hexsha stringlengths 40 40 | size int64 7 1.04M | ext stringclasses 10 values | lang stringclasses 1 value | max_stars_repo_path stringlengths 4 247 | max_stars_repo_name stringlengths 4 125 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 247 | max_issues_repo_name stringlengths 4 125 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 116k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 247 | max_forks_repo_name stringlengths 4 125 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 1 1.04M | avg_line_length float64 1.77 618k | max_line_length int64 1 1.02M | alphanum_fraction float64 0 1 | original_content stringlengths 7 1.04M | filtered:remove_function_no_docstring int64 -102 942k | filtered:remove_class_no_docstring int64 -354 977k | filtered:remove_delete_markers int64 0 60.1k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5c55da3acbe2a3fb755637361be2db476d2ff4cc | 979 | py | Python | UnitTests/test_type_checker.py | mjdroz/StatisticsCalculator | 6be77b650b16e1c3e8ed6160905d99e58449e9b4 | [
"MIT"
] | null | null | null | UnitTests/test_type_checker.py | mjdroz/StatisticsCalculator | 6be77b650b16e1c3e8ed6160905d99e58449e9b4 | [
"MIT"
] | 18 | 2020-11-02T00:14:07.000Z | 2020-11-09T04:07:07.000Z | UnitTests/test_type_checker.py | mjdroz/StatisticsCalculator | 6be77b650b16e1c3e8ed6160905d99e58449e9b4 | [
"MIT"
] | null | null | null | import unittest
from AdditionalModules.type_checker import is_valid_number
if __name__ == '__main__':
unittest.main()
| 31.580645 | 61 | 0.733401 | import unittest
from AdditionalModules.type_checker import is_valid_number
class MyTestCase(unittest.TestCase):
def test_valid_whole_positive_number_string(self):
self.assertTrue(is_valid_number("12345"))
self.assertTrue(is_valid_number("123456"))
def test_valid_negative_number_string(self):
self.assertTrue(is_valid_number("-12345"))
def test_invalid_negative_number_mixed_with_string(self):
self.assertFalse(is_valid_number("-12-12"))
self.assertFalse(is_valid_number("-12asdf"))
self.assertFalse(is_valid_number("12asdf"))
def test_alphabetical_string_negative(self):
self.assertFalse(is_valid_number("asdf"))
self.assertFalse(is_valid_number("-asdf"))
def test_valid_decimal_number(self):
self.assertTrue(is_valid_number("33.33"))
def test_invalid_decimal_number(self):
self.assertFalse(is_valid_number("33..33"))
if __name__ == '__main__':
unittest.main()
| 655 | 15 | 185 |
be2c403274d5eaf1a9f49e212f01bb768a9e7069 | 59,185 | py | Python | test/terra/backends/statevector_simulator/statevector_basics.py | sagarpahwa/qiskit-aer | 77e40c8d99fd0490d85285e96f87e4905017b646 | [
"Apache-2.0"
] | null | null | null | test/terra/backends/statevector_simulator/statevector_basics.py | sagarpahwa/qiskit-aer | 77e40c8d99fd0490d85285e96f87e4905017b646 | [
"Apache-2.0"
] | null | null | null | test/terra/backends/statevector_simulator/statevector_basics.py | sagarpahwa/qiskit-aer | 77e40c8d99fd0490d85285e96f87e4905017b646 | [
"Apache-2.0"
] | null | null | null | # This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
StatevectorSimulator Integration Tests
"""
from numpy import exp, pi
from test.terra.reference import ref_measure
from test.terra.reference import ref_reset
from test.terra.reference import ref_initialize
from test.terra.reference import ref_conditionals
from test.terra.reference import ref_1q_clifford
from test.terra.reference import ref_2q_clifford
from test.terra.reference import ref_non_clifford
from test.terra.reference import ref_unitary_gate
from test.terra.reference import ref_diagonal_gate
from qiskit import execute, transpile, assemble
from qiskit.providers.aer import StatevectorSimulator
class StatevectorSimulatorTests:
"""StatevectorSimulator tests."""
SIMULATOR = StatevectorSimulator()
BACKEND_OPTS = {}
# ---------------------------------------------------------------------
# Test initialize
# ---------------------------------------------------------------------
def test_initialize_1(self):
"""Test StatevectorSimulator initialize"""
circuits = ref_initialize.initialize_circuits_1(final_measure=False)
targets = ref_initialize.initialize_statevector_1()
qobj = assemble(circuits, shots=1)
sim_job = self.SIMULATOR.run(qobj, backend_options=self.BACKEND_OPTS)
result = sim_job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_initialize_2(self):
"""Test StatevectorSimulator initialize"""
circuits = ref_initialize.initialize_circuits_2(final_measure=False)
targets = ref_initialize.initialize_statevector_2()
qobj = assemble(circuits, shots=1)
sim_job = self.SIMULATOR.run(qobj, backend_options=self.BACKEND_OPTS)
result = sim_job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test reset
# ---------------------------------------------------------------------
def test_reset_deterministic(self):
"""Test StatevectorSimulator reset with for circuits with deterministic counts"""
# For statevector output we can combine deterministic and non-deterministic
# count output circuits
circuits = ref_reset.reset_circuits_deterministic(final_measure=False)
targets = ref_reset.reset_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_reset_nondeterministic(self):
"""Test StatevectorSimulator reset with for circuits with non-deterministic counts"""
# For statevector output we can combine deterministic and non-deterministic
# count output circuits
circuits = ref_reset.reset_circuits_nondeterministic(
final_measure=False)
targets = ref_reset.reset_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test measure
# ---------------------------------------------------------------------
def test_measure(self):
"""Test StatevectorSimulator measure with deterministic counts"""
circuits = ref_measure.measure_circuits_deterministic(
allow_sampling=True)
targets = ref_measure.measure_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test conditional
# ---------------------------------------------------------------------
def test_conditional_gate_1bit(self):
"""Test conditional gates on 1-bit conditional register."""
circuits = ref_conditionals.conditional_circuits_1bit(
final_measure=False)
targets = ref_conditionals.conditional_statevector_1bit()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_conditional_unitary_1bit(self):
"""Test conditional unitaries on 1-bit conditional register."""
circuits = ref_conditionals.conditional_circuits_1bit(
final_measure=False, conditional_type='unitary')
targets = ref_conditionals.conditional_statevector_1bit()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_conditional_gate_2bit(self):
"""Test conditional gates on 2-bit conditional register."""
circuits = ref_conditionals.conditional_circuits_2bit(
final_measure=False)
targets = ref_conditionals.conditional_statevector_2bit()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_conditional_unitary_2bit(self):
"""Test conditional unitary on 2-bit conditional register."""
circuits = ref_conditionals.conditional_circuits_2bit(
final_measure=False, conditional_type='unitary')
targets = ref_conditionals.conditional_statevector_2bit()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test h-gate
# ---------------------------------------------------------------------
def test_h_gate_deterministic_default_basis_gates(self):
"""Test h-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.h_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_h_gate_deterministic_waltz_basis_gates(self):
"""Test h-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.h_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_h_gate_deterministic_minimal_basis_gates(self):
"""Test h-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.h_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_h_gate_nondeterministic_default_basis_gates(self):
"""Test h-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.h_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_h_gate_nondeterministic_waltz_basis_gates(self):
"""Test h-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.h_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_h_gate_nondeterministic_minimal_basis_gates(self):
"""Test h-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.h_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test x-gate
# ---------------------------------------------------------------------
def test_x_gate_deterministic_default_basis_gates(self):
"""Test x-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.x_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.x_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_x_gate_deterministic_waltz_basis_gates(self):
"""Test x-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.x_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.x_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_x_gate_deterministic_minimal_basis_gates(self):
"""Test x-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.x_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.x_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test z-gate
# ---------------------------------------------------------------------
def test_z_gate_deterministic_default_basis_gates(self):
"""Test z-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.z_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.z_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_z_gate_deterministic_waltz_basis_gates(self):
"""Test z-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.z_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.z_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_z_gate_deterministic_minimal_basis_gates(self):
"""Test z-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.z_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.z_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test y-gate
# ---------------------------------------------------------------------
def test_y_gate_deterministic_default_basis_gates(self):
"""Test y-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.y_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.y_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_y_gate_deterministic_waltz_basis_gates(self):
"""Test y-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.y_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.y_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_y_gate_deterministic_minimal_basis_gates(self):
"""Test y-gate gate circuits compiling to u3, cx."""
circuits = ref_1q_clifford.y_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.y_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test s-gate
# ---------------------------------------------------------------------
def test_s_gate_deterministic_default_basis_gates(self):
"""Test s-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.s_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_s_gate_deterministic_waltz_basis_gates(self):
"""Test s-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.s_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_s_gate_deterministic_minimal_basis_gates(self):
"""Test s-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.s_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_s_gate_nondeterministic_default_basis_gates(self):
"""Test s-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.s_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_s_gate_nondeterministic_waltz_basis_gates(self):
"""Test s-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.s_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_s_gate_nondeterministic_minimal_basis_gates(self):
"""Test s-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.s_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test sdg-gate
# ---------------------------------------------------------------------
def test_sdg_gate_deterministic_default_basis_gates(self):
"""Test sdg-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.sdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_sdg_gate_deterministic_waltz_basis_gates(self):
"""Test sdg-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.sdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_sdg_gate_deterministic_minimal_basis_gates(self):
"""Test sdg-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.sdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_sdg_gate_nondeterministic_default_basis_gates(self):
"""Test sdg-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.sdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_sdg_gate_nondeterministic_waltz_basis_gates(self):
"""Test sdg-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.sdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_sdg_gate_nondeterministic_minimal_basis_gates(self):
"""Test sdg-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.sdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test cx-gate
# ---------------------------------------------------------------------
def test_cx_gate_deterministic_default_basis_gates(self):
"""Test cx-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.cx_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cx_gate_deterministic_waltz_basis_gates(self):
"""Test cx-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.cx_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cx_gate_deterministic_minimal_basis_gates(self):
"""Test cx-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.cx_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cx_gate_nondeterministic_default_basis_gates(self):
"""Test cx-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.cx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cx_gate_nondeterministic_waltz_basis_gates(self):
"""Test cx-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.cx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cx_gate_nondeterministic_minimal_basis_gates(self):
"""Test cx-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.cx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test cz-gate
# ---------------------------------------------------------------------
def test_cz_gate_deterministic_default_basis_gates(self):
"""Test cz-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.cz_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cz_gate_deterministic_waltz_basis_gates(self):
"""Test cz-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.cz_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cz_gate_deterministic_minimal_basis_gates(self):
"""Test cz-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.cz_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cz_gate_nondeterministic_default_basis_gates(self):
"""Test cz-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.cz_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cz_gate_nondeterministic_waltz_basis_gates(self):
"""Test cz-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.cz_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cz_gate_nondeterministic_minimal_basis_gates(self):
"""Test cz-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.cz_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test swap-gate
# ---------------------------------------------------------------------
def test_swap_gate_deterministic_default_basis_gates(self):
"""Test swap-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.swap_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_swap_gate_deterministic_waltz_basis_gates(self):
"""Test swap-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.swap_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_swap_gate_deterministic_minimal_basis_gates(self):
"""Test swap-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.swap_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_swap_gate_nondeterministic_default_basis_gates(self):
"""Test swap-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.swap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_swap_gate_nondeterministic_waltz_basis_gates(self):
"""Test swap-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.swap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_swap_gate_nondeterministic_minimal_basis_gates(self):
"""Test swap-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.swap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test t-gate
# ---------------------------------------------------------------------
def test_t_gate_deterministic_default_basis_gates(self):
"""Test t-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.t_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_t_gate_deterministic_waltz_basis_gates(self):
"""Test t-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.t_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_t_gate_deterministic_minimal_basis_gates(self):
"""Test t-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.t_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_t_gate_nondeterministic_default_basis_gates(self):
"""Test t-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.t_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_t_gate_nondeterministic_waltz_basis_gates(self):
"""Test t-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.t_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_t_gate_nondeterministic_minimal_basis_gates(self):
"""Test t-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.t_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test tdg-gate
# ---------------------------------------------------------------------
def test_tdg_gate_deterministic_default_basis_gates(self):
"""Test tdg-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.tdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_tdg_gate_deterministic_waltz_basis_gates(self):
"""Test tdg-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.tdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_tdg_gate_deterministic_minimal_basis_gates(self):
"""Test tdg-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.tdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_tdg_gate_nondeterministic_default_basis_gates(self):
"""Test tdg-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.tdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_tdg_gate_nondeterministic_waltz_basis_gates(self):
"""Test tdg-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.tdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_tdg_gate_nondeterministic_minimal_basis_gates(self):
"""Test tdg-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.tdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test ccx-gate
# ---------------------------------------------------------------------
def test_ccx_gate_deterministic_default_basis_gates(self):
"""Test ccx-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.ccx_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_ccx_gate_deterministic_waltz_basis_gates(self):
"""Test ccx-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.ccx_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_ccx_gate_deterministic_minimal_basis_gates(self):
"""Test ccx-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.ccx_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_ccx_gate_nondeterministic_default_basis_gates(self):
"""Test ccx-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_ccx_gate_nondeterministic_waltz_basis_gates(self):
"""Test ccx-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_ccx_gate_nondeterministic_minimal_basis_gates(self):
"""Test ccx-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test unitary gate qobj instruction
# ---------------------------------------------------------------------
def test_unitary_gate(self):
"""Test simulation with unitary gate circuit instructions."""
circuits = ref_unitary_gate.unitary_gate_circuits_deterministic(
final_measure=False)
targets = ref_unitary_gate.unitary_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_diagonal_gate(self):
"""Test simulation with diagonal gate circuit instructions."""
circuits = ref_diagonal_gate.diagonal_gate_circuits_deterministic(
final_measure=False)
targets = ref_diagonal_gate.diagonal_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test cu1 gate
# ---------------------------------------------------------------------
def test_cu1_gate_nondeterministic_default_basis_gates(self):
"""Test cu1-gate gate circuits compiling to default basis."""
circuits = ref_non_clifford.cu1_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cu1_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cu1_gate_nondeterministic_waltz_basis_gates(self):
"""Test cu1-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.cu1_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cu1_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cu1_gate_nondeterministic_minimal_basis_gates(self):
"""Test cu1-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.cu1_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cu1_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test cswap-gate (Fredkin)
# ---------------------------------------------------------------------
def test_cswap_gate_deterministic_default_basis_gates(self):
"""Test cswap-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.cswap_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.cswap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cswap_gate_deterministic_minimal_basis_gates(self):
"""Test cswap-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.cswap_gate_circuits_deterministic(
final_measure=True)
targets = ref_non_clifford.cswap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cswap_gate_deterministic_waltz_basis_gates(self):
"""Test cswap-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.cswap_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.cswap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cswap_gate_nondeterministic_default_basis_gates(self):
"""Test cswap-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.cswap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cswap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cswap_gate_nondeterministic_minimal_basis_gates(self):
"""Test cswap-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.cswap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cswap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cswap_gate_nondeterministic_waltz_basis_gates(self):
"""Test cswap-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.cswap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cswap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test cu3-gate (Fredkin)
# ---------------------------------------------------------------------
def test_cu3_gate_deterministic_default_basis_gates(self):
"""Test cu3-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.cu3_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.cu3_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cu3_gate_deterministic_minimal_basis_gates(self):
"""Test cu3-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.cu3_gate_circuits_deterministic(
final_measure=True)
targets = ref_non_clifford.cu3_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cu3_gate_deterministic_waltz_basis_gates(self):
"""Test cu3-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.cu3_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.cu3_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test global phase
# ---------------------------------------------------------------------
def test_qobj_global_phase(self):
"""Test qobj global phase."""
circuits = ref_1q_clifford.h_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_nondeterministic()
qobj = assemble(transpile(circuits, self.SIMULATOR),
shots=1, backend_options=self.BACKEND_OPTS)
# Set global phases
for i, _ in enumerate(circuits):
global_phase = (-1) ** i * (pi / 4)
qobj.experiments[i].header.global_phase = global_phase
targets[i] = exp(1j * global_phase) * targets[i]
result = self.SIMULATOR.run(qobj).result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets, ignore_phase=False)
| 45.986791 | 93 | 0.594019 | # This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative works of this code must retain this
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.
"""
StatevectorSimulator Integration Tests
"""
from numpy import exp, pi
from test.terra.reference import ref_measure
from test.terra.reference import ref_reset
from test.terra.reference import ref_initialize
from test.terra.reference import ref_conditionals
from test.terra.reference import ref_1q_clifford
from test.terra.reference import ref_2q_clifford
from test.terra.reference import ref_non_clifford
from test.terra.reference import ref_unitary_gate
from test.terra.reference import ref_diagonal_gate
from qiskit import execute, transpile, assemble
from qiskit.providers.aer import StatevectorSimulator
class StatevectorSimulatorTests:
"""StatevectorSimulator tests."""
SIMULATOR = StatevectorSimulator()
BACKEND_OPTS = {}
# ---------------------------------------------------------------------
# Test initialize
# ---------------------------------------------------------------------
def test_initialize_1(self):
"""Test StatevectorSimulator initialize"""
circuits = ref_initialize.initialize_circuits_1(final_measure=False)
targets = ref_initialize.initialize_statevector_1()
qobj = assemble(circuits, shots=1)
sim_job = self.SIMULATOR.run(qobj, backend_options=self.BACKEND_OPTS)
result = sim_job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_initialize_2(self):
"""Test StatevectorSimulator initialize"""
circuits = ref_initialize.initialize_circuits_2(final_measure=False)
targets = ref_initialize.initialize_statevector_2()
qobj = assemble(circuits, shots=1)
sim_job = self.SIMULATOR.run(qobj, backend_options=self.BACKEND_OPTS)
result = sim_job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test reset
# ---------------------------------------------------------------------
def test_reset_deterministic(self):
"""Test StatevectorSimulator reset with for circuits with deterministic counts"""
# For statevector output we can combine deterministic and non-deterministic
# count output circuits
circuits = ref_reset.reset_circuits_deterministic(final_measure=False)
targets = ref_reset.reset_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_reset_nondeterministic(self):
"""Test StatevectorSimulator reset with for circuits with non-deterministic counts"""
# For statevector output we can combine deterministic and non-deterministic
# count output circuits
circuits = ref_reset.reset_circuits_nondeterministic(
final_measure=False)
targets = ref_reset.reset_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test measure
# ---------------------------------------------------------------------
def test_measure(self):
"""Test StatevectorSimulator measure with deterministic counts"""
circuits = ref_measure.measure_circuits_deterministic(
allow_sampling=True)
targets = ref_measure.measure_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test conditional
# ---------------------------------------------------------------------
def test_conditional_gate_1bit(self):
"""Test conditional gates on 1-bit conditional register."""
circuits = ref_conditionals.conditional_circuits_1bit(
final_measure=False)
targets = ref_conditionals.conditional_statevector_1bit()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_conditional_unitary_1bit(self):
"""Test conditional unitaries on 1-bit conditional register."""
circuits = ref_conditionals.conditional_circuits_1bit(
final_measure=False, conditional_type='unitary')
targets = ref_conditionals.conditional_statevector_1bit()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_conditional_gate_2bit(self):
"""Test conditional gates on 2-bit conditional register."""
circuits = ref_conditionals.conditional_circuits_2bit(
final_measure=False)
targets = ref_conditionals.conditional_statevector_2bit()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_conditional_unitary_2bit(self):
"""Test conditional unitary on 2-bit conditional register."""
circuits = ref_conditionals.conditional_circuits_2bit(
final_measure=False, conditional_type='unitary')
targets = ref_conditionals.conditional_statevector_2bit()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test h-gate
# ---------------------------------------------------------------------
def test_h_gate_deterministic_default_basis_gates(self):
"""Test h-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.h_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_h_gate_deterministic_waltz_basis_gates(self):
"""Test h-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.h_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_h_gate_deterministic_minimal_basis_gates(self):
"""Test h-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.h_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_h_gate_nondeterministic_default_basis_gates(self):
"""Test h-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.h_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_h_gate_nondeterministic_waltz_basis_gates(self):
"""Test h-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.h_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_h_gate_nondeterministic_minimal_basis_gates(self):
"""Test h-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.h_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test x-gate
# ---------------------------------------------------------------------
def test_x_gate_deterministic_default_basis_gates(self):
"""Test x-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.x_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.x_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_x_gate_deterministic_waltz_basis_gates(self):
"""Test x-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.x_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.x_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_x_gate_deterministic_minimal_basis_gates(self):
"""Test x-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.x_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.x_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test z-gate
# ---------------------------------------------------------------------
def test_z_gate_deterministic_default_basis_gates(self):
"""Test z-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.z_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.z_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_z_gate_deterministic_waltz_basis_gates(self):
"""Test z-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.z_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.z_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_z_gate_deterministic_minimal_basis_gates(self):
"""Test z-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.z_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.z_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test y-gate
# ---------------------------------------------------------------------
def test_y_gate_deterministic_default_basis_gates(self):
"""Test y-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.y_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.y_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_y_gate_deterministic_waltz_basis_gates(self):
"""Test y-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.y_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.y_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_y_gate_deterministic_minimal_basis_gates(self):
"""Test y-gate gate circuits compiling to u3, cx."""
circuits = ref_1q_clifford.y_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.y_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test s-gate
# ---------------------------------------------------------------------
def test_s_gate_deterministic_default_basis_gates(self):
"""Test s-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.s_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_s_gate_deterministic_waltz_basis_gates(self):
"""Test s-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.s_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_s_gate_deterministic_minimal_basis_gates(self):
"""Test s-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.s_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_s_gate_nondeterministic_default_basis_gates(self):
"""Test s-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.s_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_s_gate_nondeterministic_waltz_basis_gates(self):
"""Test s-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.s_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_s_gate_nondeterministic_minimal_basis_gates(self):
"""Test s-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.s_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.s_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test sdg-gate
# ---------------------------------------------------------------------
def test_sdg_gate_deterministic_default_basis_gates(self):
"""Test sdg-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.sdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_sdg_gate_deterministic_waltz_basis_gates(self):
"""Test sdg-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.sdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_sdg_gate_deterministic_minimal_basis_gates(self):
"""Test sdg-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.sdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_sdg_gate_nondeterministic_default_basis_gates(self):
"""Test sdg-gate circuits compiling to backend default basis_gates."""
circuits = ref_1q_clifford.sdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_sdg_gate_nondeterministic_waltz_basis_gates(self):
"""Test sdg-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_1q_clifford.sdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_sdg_gate_nondeterministic_minimal_basis_gates(self):
"""Test sdg-gate gate circuits compiling to u3,cx"""
circuits = ref_1q_clifford.sdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.sdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test cx-gate
# ---------------------------------------------------------------------
def test_cx_gate_deterministic_default_basis_gates(self):
"""Test cx-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.cx_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cx_gate_deterministic_waltz_basis_gates(self):
"""Test cx-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.cx_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cx_gate_deterministic_minimal_basis_gates(self):
"""Test cx-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.cx_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cx_gate_nondeterministic_default_basis_gates(self):
"""Test cx-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.cx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cx_gate_nondeterministic_waltz_basis_gates(self):
"""Test cx-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.cx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cx_gate_nondeterministic_minimal_basis_gates(self):
"""Test cx-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.cx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test cz-gate
# ---------------------------------------------------------------------
def test_cz_gate_deterministic_default_basis_gates(self):
"""Test cz-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.cz_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cz_gate_deterministic_waltz_basis_gates(self):
"""Test cz-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.cz_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cz_gate_deterministic_minimal_basis_gates(self):
"""Test cz-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.cz_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cz_gate_nondeterministic_default_basis_gates(self):
"""Test cz-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.cz_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cz_gate_nondeterministic_waltz_basis_gates(self):
"""Test cz-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.cz_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cz_gate_nondeterministic_minimal_basis_gates(self):
"""Test cz-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.cz_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.cz_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test swap-gate
# ---------------------------------------------------------------------
def test_swap_gate_deterministic_default_basis_gates(self):
"""Test swap-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.swap_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_swap_gate_deterministic_waltz_basis_gates(self):
"""Test swap-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.swap_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_swap_gate_deterministic_minimal_basis_gates(self):
"""Test swap-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.swap_gate_circuits_deterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_swap_gate_nondeterministic_default_basis_gates(self):
"""Test swap-gate circuits compiling to backend default basis_gates."""
circuits = ref_2q_clifford.swap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_swap_gate_nondeterministic_waltz_basis_gates(self):
"""Test swap-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_2q_clifford.swap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_swap_gate_nondeterministic_minimal_basis_gates(self):
"""Test swap-gate gate circuits compiling to u3,cx"""
circuits = ref_2q_clifford.swap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_2q_clifford.swap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test t-gate
# ---------------------------------------------------------------------
def test_t_gate_deterministic_default_basis_gates(self):
"""Test t-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.t_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_t_gate_deterministic_waltz_basis_gates(self):
"""Test t-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.t_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_t_gate_deterministic_minimal_basis_gates(self):
"""Test t-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.t_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_t_gate_nondeterministic_default_basis_gates(self):
"""Test t-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.t_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_t_gate_nondeterministic_waltz_basis_gates(self):
"""Test t-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.t_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_t_gate_nondeterministic_minimal_basis_gates(self):
"""Test t-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.t_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.t_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test tdg-gate
# ---------------------------------------------------------------------
def test_tdg_gate_deterministic_default_basis_gates(self):
"""Test tdg-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.tdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_tdg_gate_deterministic_waltz_basis_gates(self):
"""Test tdg-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.tdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_tdg_gate_deterministic_minimal_basis_gates(self):
"""Test tdg-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.tdg_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_tdg_gate_nondeterministic_default_basis_gates(self):
"""Test tdg-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.tdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_tdg_gate_nondeterministic_waltz_basis_gates(self):
"""Test tdg-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.tdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_tdg_gate_nondeterministic_minimal_basis_gates(self):
"""Test tdg-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.tdg_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.tdg_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test ccx-gate
# ---------------------------------------------------------------------
def test_ccx_gate_deterministic_default_basis_gates(self):
"""Test ccx-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.ccx_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_ccx_gate_deterministic_waltz_basis_gates(self):
"""Test ccx-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.ccx_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_ccx_gate_deterministic_minimal_basis_gates(self):
"""Test ccx-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.ccx_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_ccx_gate_nondeterministic_default_basis_gates(self):
"""Test ccx-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_ccx_gate_nondeterministic_waltz_basis_gates(self):
"""Test ccx-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_ccx_gate_nondeterministic_minimal_basis_gates(self):
"""Test ccx-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.ccx_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.ccx_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test unitary gate qobj instruction
# ---------------------------------------------------------------------
def test_unitary_gate(self):
"""Test simulation with unitary gate circuit instructions."""
circuits = ref_unitary_gate.unitary_gate_circuits_deterministic(
final_measure=False)
targets = ref_unitary_gate.unitary_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_diagonal_gate(self):
"""Test simulation with diagonal gate circuit instructions."""
circuits = ref_diagonal_gate.diagonal_gate_circuits_deterministic(
final_measure=False)
targets = ref_diagonal_gate.diagonal_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test cu1 gate
# ---------------------------------------------------------------------
def test_cu1_gate_nondeterministic_default_basis_gates(self):
"""Test cu1-gate gate circuits compiling to default basis."""
circuits = ref_non_clifford.cu1_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cu1_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cu1_gate_nondeterministic_waltz_basis_gates(self):
"""Test cu1-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.cu1_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cu1_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cu1_gate_nondeterministic_minimal_basis_gates(self):
"""Test cu1-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.cu1_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cu1_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test cswap-gate (Fredkin)
# ---------------------------------------------------------------------
def test_cswap_gate_deterministic_default_basis_gates(self):
"""Test cswap-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.cswap_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.cswap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cswap_gate_deterministic_minimal_basis_gates(self):
"""Test cswap-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.cswap_gate_circuits_deterministic(
final_measure=True)
targets = ref_non_clifford.cswap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cswap_gate_deterministic_waltz_basis_gates(self):
"""Test cswap-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.cswap_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.cswap_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cswap_gate_nondeterministic_default_basis_gates(self):
"""Test cswap-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.cswap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cswap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cswap_gate_nondeterministic_minimal_basis_gates(self):
"""Test cswap-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.cswap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cswap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cswap_gate_nondeterministic_waltz_basis_gates(self):
"""Test cswap-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.cswap_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_non_clifford.cswap_gate_statevector_nondeterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test cu3-gate (Fredkin)
# ---------------------------------------------------------------------
def test_cu3_gate_deterministic_default_basis_gates(self):
"""Test cu3-gate circuits compiling to backend default basis_gates."""
circuits = ref_non_clifford.cu3_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.cu3_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cu3_gate_deterministic_minimal_basis_gates(self):
"""Test cu3-gate gate circuits compiling to u3,cx"""
circuits = ref_non_clifford.cu3_gate_circuits_deterministic(
final_measure=True)
targets = ref_non_clifford.cu3_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
def test_cu3_gate_deterministic_waltz_basis_gates(self):
"""Test cu3-gate gate circuits compiling to u1,u2,u3,cx"""
circuits = ref_non_clifford.cu3_gate_circuits_deterministic(
final_measure=False)
targets = ref_non_clifford.cu3_gate_statevector_deterministic()
job = execute(circuits,
self.SIMULATOR,
shots=1,
basis_gates=['u1', 'u2', 'u3', 'cx'],
backend_options=self.BACKEND_OPTS)
result = job.result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets)
# ---------------------------------------------------------------------
# Test global phase
# ---------------------------------------------------------------------
def test_qobj_global_phase(self):
"""Test qobj global phase."""
circuits = ref_1q_clifford.h_gate_circuits_nondeterministic(
final_measure=False)
targets = ref_1q_clifford.h_gate_statevector_nondeterministic()
qobj = assemble(transpile(circuits, self.SIMULATOR),
shots=1, backend_options=self.BACKEND_OPTS)
# Set global phases
for i, _ in enumerate(circuits):
global_phase = (-1) ** i * (pi / 4)
qobj.experiments[i].header.global_phase = global_phase
targets[i] = exp(1j * global_phase) * targets[i]
result = self.SIMULATOR.run(qobj).result()
self.assertSuccess(result)
self.compare_statevector(result, circuits, targets, ignore_phase=False)
| 0 | 0 | 0 |
123ca78a2356ea365d65b74f4b9b8e4302d0f4f3 | 350 | py | Python | account/migrations/0002_auto_20201105_1938.py | zzZ5/compost | 00cc2cbc74df6626e07072c8c1e638ffd9bac8f1 | [
"MIT"
] | 1 | 2020-11-28T00:06:06.000Z | 2020-11-28T00:06:06.000Z | account/migrations/0002_auto_20201105_1938.py | zzZ5/compost | 00cc2cbc74df6626e07072c8c1e638ffd9bac8f1 | [
"MIT"
] | null | null | null | account/migrations/0002_auto_20201105_1938.py | zzZ5/compost | 00cc2cbc74df6626e07072c8c1e638ffd9bac8f1 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-11-05 19:38
from django.db import migrations
| 18.421053 | 47 | 0.568571 | # Generated by Django 3.0.8 on 2020-11-05 19:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('account', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='user',
old_name='name',
new_name='username',
),
]
| 0 | 244 | 23 |
ca706a41024e87211c983a6cb0fdc4ec44bdb20f | 331 | py | Python | tests/config.py | cjolowicz/muckr-service | 014017ab92bd1d2034cd398f2e98a6fdaf30f164 | [
"MIT"
] | null | null | null | tests/config.py | cjolowicz/muckr-service | 014017ab92bd1d2034cd398f2e98a6fdaf30f164 | [
"MIT"
] | 12 | 2018-12-21T22:13:33.000Z | 2019-08-03T20:03:19.000Z | tests/config.py | cjolowicz/muckr-service | 014017ab92bd1d2034cd398f2e98a6fdaf30f164 | [
"MIT"
] | null | null | null | """Configuration for the test app."""
ADMIN_USERNAME = "admin"
ADMIN_EMAIL = "admin@localhost"
ADMIN_PASSWORD = "9V0aGfEGAkQTfn8GICqHjAqCzodsUL6IVp02GmtKML8"
BCRYPT_LOG_ROUNDS = 4
SECRET_KEY = "lzlD6LdPmLI6rX-4eEMUeLsIcnkXaDDQYqrAIKahsdY"
SQLALCHEMY_DATABASE_URI = "sqlite://"
SQLALCHEMY_TRACK_MODIFICATIONS = False
TESTING = True
| 33.1 | 62 | 0.821752 | """Configuration for the test app."""
ADMIN_USERNAME = "admin"
ADMIN_EMAIL = "admin@localhost"
ADMIN_PASSWORD = "9V0aGfEGAkQTfn8GICqHjAqCzodsUL6IVp02GmtKML8"
BCRYPT_LOG_ROUNDS = 4
SECRET_KEY = "lzlD6LdPmLI6rX-4eEMUeLsIcnkXaDDQYqrAIKahsdY"
SQLALCHEMY_DATABASE_URI = "sqlite://"
SQLALCHEMY_TRACK_MODIFICATIONS = False
TESTING = True
| 0 | 0 | 0 |
06c1e791f45b52a84e1415581c12c0bffeacd27b | 3,932 | py | Python | colordistance/app.py | chriskiehl/color-distance-tool | aa44db7bde5509d4b909cd635bc07a78adb0f4f0 | [
"MIT"
] | 1 | 2020-10-31T07:58:23.000Z | 2020-10-31T07:58:23.000Z | colordistance/app.py | chriskiehl/color-distance-tool | aa44db7bde5509d4b909cd635bc07a78adb0f4f0 | [
"MIT"
] | null | null | null | colordistance/app.py | chriskiehl/color-distance-tool | aa44db7bde5509d4b909cd635bc07a78adb0f4f0 | [
"MIT"
] | null | null | null | import wx
import wx.lib.mixins.inspection
from pynput import mouse
import sys
import os
import colordistance.core as core
import colordistance.screen as screen
from colordistance.components import ColorSelector, DifferenceLine
from colordistance.util import assoc
class Application(wx.Frame):
"""
Entry point for the application.
This is a quick and dirty tool for grabbing pixel colors
from any location / program on the the screen and listing their
values and distances in various color spaces.
"""
def updateState(self, nextState):
"""
Update the main component's state and project new views to children.
"""
# propagate the new info to the children
self.state = nextState
for child in [self.leftSwatch, self.rightSwatch]:
props = nextState[child.id]
isSelected = nextState['selected'] == child.id
child.updateProps(assoc(core.colorspaces(props), 'selected', isSelected))
self.difference.updateProps(core.computeDiff(nextState))
def onExternalMouseClick(self, x, y, button, pressed):
"""
Unhooks the external mouse listener when a click is registered.
"""
if core.isListening(self.state):
self.stopInputListers()
def onExternalMouseMove(self, x, y):
"""
Update the selected swatch with the color found
at the current mouse coordinates.
"""
selected = self.state['selected']
rgb = screen.get_pixel(x, y)
self.updateState(core.updateColor(self.state, selected, rgb))
def onStartColorSelection(self, swatchId):
"""
Select the supplied Swatch and install a global mouse listener.
"""
self.updateState(core.selectSwatch(self.state, swatchId))
self.startInputListeners()
def startInputListeners(self):
"""
Start a mouse listener on a separate thread.
"""
if self.mouseListener:
self.mouseListener.stop()
# it's got some weird threading setup that
# requires it to be destroyed / recreated
self.mouseListener = mouse.Listener(on_click=self.onExternalMouseClick, on_move=self.onExternalMouseMove)
self.mouseListener.start()
def stopInputListers(self):
"""
Shut down the current listener
"""
self.mouseListener.stop()
if __name__ == '__main__':
run() | 32.229508 | 113 | 0.637335 | import wx
import wx.lib.mixins.inspection
from pynput import mouse
import sys
import os
import colordistance.core as core
import colordistance.screen as screen
from colordistance.components import ColorSelector, DifferenceLine
from colordistance.util import assoc
class Application(wx.Frame):
"""
Entry point for the application.
This is a quick and dirty tool for grabbing pixel colors
from any location / program on the the screen and listing their
values and distances in various color spaces.
"""
def __init__(self, *args, **kwargs):
super(Application, self).__init__(*args, **kwargs)
self.keyboardListener = None
self.mouseListener = None
self.state = {
'selected': None,
'left': {'color': (255, 255, 255)},
'right': {'color': (255, 255, 255)}
}
self.leftSwatch = ColorSelector(self, id='left', onClick=self.onStartColorSelection)
self.rightSwatch = ColorSelector(self, id='right', onClick=self.onStartColorSelection)
self.difference = DifferenceLine(self)
path = os.path.join(os.path.dirname(__file__), 'icon.PNG')
self.icon = wx.Icon(path, wx.BITMAP_TYPE_PNG)
self.layout()
self.updateState(self.state)
def updateState(self, nextState):
"""
Update the main component's state and project new views to children.
"""
# propagate the new info to the children
self.state = nextState
for child in [self.leftSwatch, self.rightSwatch]:
props = nextState[child.id]
isSelected = nextState['selected'] == child.id
child.updateProps(assoc(core.colorspaces(props), 'selected', isSelected))
self.difference.updateProps(core.computeDiff(nextState))
def onExternalMouseClick(self, x, y, button, pressed):
"""
Unhooks the external mouse listener when a click is registered.
"""
if core.isListening(self.state):
self.stopInputListers()
def onExternalMouseMove(self, x, y):
"""
Update the selected swatch with the color found
at the current mouse coordinates.
"""
selected = self.state['selected']
rgb = screen.get_pixel(x, y)
self.updateState(core.updateColor(self.state, selected, rgb))
def onStartColorSelection(self, swatchId):
"""
Select the supplied Swatch and install a global mouse listener.
"""
self.updateState(core.selectSwatch(self.state, swatchId))
self.startInputListeners()
def startInputListeners(self):
"""
Start a mouse listener on a separate thread.
"""
if self.mouseListener:
self.mouseListener.stop()
# it's got some weird threading setup that
# requires it to be destroyed / recreated
self.mouseListener = mouse.Listener(on_click=self.onExternalMouseClick, on_move=self.onExternalMouseMove)
self.mouseListener.start()
def stopInputListers(self):
"""
Shut down the current listener
"""
self.mouseListener.stop()
def layout(self):
self.SetIcon(self.icon)
self.SetSize(500, 250)
self.SetBackgroundColour(self.leftSwatch.GetBackgroundColour())
self.SetTitle("Color Distance Tool")
sizer = wx.BoxSizer(wx.HORIZONTAL)
sizer.Add(self.leftSwatch, wx.EXPAND)
sizer.Add(self.rightSwatch, wx.EXPAND)
v = wx.BoxSizer(wx.VERTICAL)
v.AddSpacer(10)
v.Add(sizer, 1, wx.EXPAND)
v.AddSpacer(10)
line = wx.StaticLine(self, -1, style=wx.LI_HORIZONTAL)
v.Add(line, 0, wx.EXPAND)
v.Add(self.difference, 1, wx.EXPAND)
self.SetSizer(v)
def run():
app = wx.App(False)
frame = Application(None)
frame.Show(True)
app.MainLoop()
if __name__ == '__main__':
run() | 1,404 | 0 | 76 |
402a5f09a08992f4c3337ba570a6e028e88dbbac | 657 | py | Python | Conceptos/funciones_integradas.py | jaramosperez/Pythonizando | 3571a6451b383ed5fea35f84e3444fd946c6560d | [
"MIT"
] | 1 | 2020-07-13T04:34:34.000Z | 2020-07-13T04:34:34.000Z | Conceptos/funciones_integradas.py | jaramosperez/Pythonizando | 3571a6451b383ed5fea35f84e3444fd946c6560d | [
"MIT"
] | null | null | null | Conceptos/funciones_integradas.py | jaramosperez/Pythonizando | 3571a6451b383ed5fea35f84e3444fd946c6560d | [
"MIT"
] | null | null | null | n = '10.5'
print(n)
float(n)
print(n)
cadena = "Un numero podría ser " + str(10) + ' y un decimal podria ser ' + str(12.4)
print(cadena)
# CONVERSION DE UN NUMERO A BINARIO
print(bin(10))
# CONVERSION DE UN NUMERO A HEXADECIMAL
print(hex(13))
#CONVERSION DE UNA CADENA A BINARIO
print(int('0b1010', 2))
#CONVERSION DE UNA CADENA A HEXADECIMAL
print(int('0xd', 16))
#VALOR ABSOLUTO
print(abs(-10))
print(abs(10))
#REDONDEAR NUMEROS
print(round(5.5))
print(round(5.4))
# FUNCION EVAL
print(eval('2+6'))
numero = 30
print(eval('(numero *3 +15)/2'))
# FUNCION LEN(largo de una variable)
print(len('Hola soy un pythonizado'))
print(len([]))
#FUNCION HELP | 18.25 | 84 | 0.689498 | n = '10.5'
print(n)
float(n)
print(n)
cadena = "Un numero podría ser " + str(10) + ' y un decimal podria ser ' + str(12.4)
print(cadena)
# CONVERSION DE UN NUMERO A BINARIO
print(bin(10))
# CONVERSION DE UN NUMERO A HEXADECIMAL
print(hex(13))
#CONVERSION DE UNA CADENA A BINARIO
print(int('0b1010', 2))
#CONVERSION DE UNA CADENA A HEXADECIMAL
print(int('0xd', 16))
#VALOR ABSOLUTO
print(abs(-10))
print(abs(10))
#REDONDEAR NUMEROS
print(round(5.5))
print(round(5.4))
# FUNCION EVAL
print(eval('2+6'))
numero = 30
print(eval('(numero *3 +15)/2'))
# FUNCION LEN(largo de una variable)
print(len('Hola soy un pythonizado'))
print(len([]))
#FUNCION HELP | 0 | 0 | 0 |
499c5dcfc041d8549b4e3d3dd514330f36a6074d | 361 | py | Python | test7.py | Tealaves/mypython | 151f29eb720889710c7705a0c674b097bcec50f3 | [
"Apache-2.0"
] | null | null | null | test7.py | Tealaves/mypython | 151f29eb720889710c7705a0c674b097bcec50f3 | [
"Apache-2.0"
] | null | null | null | test7.py | Tealaves/mypython | 151f29eb720889710c7705a0c674b097bcec50f3 | [
"Apache-2.0"
] | null | null | null | #!/bin/python
print('I am:', __name__)
if __name__ == '__main__':
print(minmax(lessthan, 4, 2, 1, 5, 6, 3))
print(minmax(grtrthan, 4, 2, 1, 5, 6, 3))
| 20.055556 | 45 | 0.554017 | #!/bin/python
print('I am:', __name__)
def minmax(test, *args):
res = args[0]
for arg in args[:-1]:
if test(arg, res):
res = arg
return res
def lessthan(x, y): return x < y
def grtrthan(x, y): return x > y
if __name__ == '__main__':
print(minmax(lessthan, 4, 2, 1, 5, 6, 3))
print(minmax(grtrthan, 4, 2, 1, 5, 6, 3))
| 133 | 0 | 68 |
44a2faac9c8324a37b1a4590881412884bc6bc79 | 4,116 | py | Python | xc7/utils/prjxray_create_place_constraints.py | mjasperse/symbiflow-arch-defs | ff3aedec45c0f886260b34ff5288482a89411d13 | [
"ISC"
] | null | null | null | xc7/utils/prjxray_create_place_constraints.py | mjasperse/symbiflow-arch-defs | ff3aedec45c0f886260b34ff5288482a89411d13 | [
"ISC"
] | null | null | null | xc7/utils/prjxray_create_place_constraints.py | mjasperse/symbiflow-arch-defs | ff3aedec45c0f886260b34ff5288482a89411d13 | [
"ISC"
] | null | null | null | """ Convert a PCF file into a VPR io.place file. """
from __future__ import print_function
import argparse
import sys
import vpr_place_constraints
import sqlite3
import lxml.etree as ET
if __name__ == '__main__':
main()
| 24.35503 | 79 | 0.629981 | """ Convert a PCF file into a VPR io.place file. """
from __future__ import print_function
import argparse
import sys
import vpr_place_constraints
import sqlite3
import lxml.etree as ET
def get_tile_capacities(arch_xml_filename):
arch = ET.parse(arch_xml_filename, ET.XMLParser(remove_blank_text=True))
root = arch.getroot()
tile_capacities = {}
for el in root.iter('tile'):
tile_name = el.attrib['name']
capacity = 1
if 'capacity' in el.attrib:
capacity = int(el.attrib['capacity'])
tile_capacities[tile_name] = capacity
grid = {}
for el in root.iter('single'):
x = int(el.attrib['x'])
y = int(el.attrib['y'])
grid[(x, y)] = tile_capacities[el.attrib['type']]
return grid
def get_vpr_coords_from_site_name(conn, site_name, grid_capacities):
site_name = site_name.replace('"', '')
cur = conn.cursor()
cur.execute(
"""
SELECT DISTINCT tile.pkey, tile.grid_x, tile.grid_y
FROM site_instance
INNER JOIN wire_in_tile
ON
site_instance.site_pkey = wire_in_tile.site_pkey
INNER JOIN wire
ON
wire.phy_tile_pkey = site_instance.phy_tile_pkey
AND
wire_in_tile.pkey = wire.wire_in_tile_pkey
INNER JOIN tile
ON tile.pkey = wire.tile_pkey
WHERE
site_instance.name = ?;""", (site_name, )
)
results = cur.fetchall()
assert len(results) == 1
tile_pkey, x, y = results[0]
capacity = grid_capacities[(x, y)]
if capacity == 1:
return (x, y, 0)
else:
cur.execute(
"""
SELECT site_instance.name
FROM site_instance
INNER JOIN site ON site_instance.site_pkey = site.pkey
INNER JOIN site_type ON site.site_type_pkey = site_type.pkey
WHERE
site_instance.phy_tile_pkey IN (
SELECT
phy_tile_pkey
FROM
tile
WHERE
pkey = ?
)
AND
site_instance.site_pkey IN (
SELECT
wire_in_tile.site_pkey
FROM
wire_in_tile
WHERE
wire_in_tile.pkey IN (
SELECT
wire_in_tile_pkey
FROM
wire
WHERE
tile_pkey = ?
)
)
ORDER BY site_type.name, site_instance.x_coord, site_instance.y_coord;
""", (tile_pkey, tile_pkey)
)
instance_idx = None
for idx, (a_site_name, ) in enumerate(cur):
if a_site_name == site_name:
assert instance_idx is None, (tile_pkey, site_name)
instance_idx = idx
break
assert instance_idx is not None, (tile_pkey, site_name)
return (x, y, instance_idx)
def main():
parser = argparse.ArgumentParser(
description='Convert a PCF file into a VPR io.place file.'
)
parser.add_argument(
"--input",
'-i',
"-I",
type=argparse.FileType('r'),
default=sys.stdout,
help='The output constraints place file'
)
parser.add_argument(
"--output",
'-o',
"-O",
type=argparse.FileType('w'),
default=sys.stdout,
help='The output constraints place file'
)
parser.add_argument(
"--net",
'-n',
type=argparse.FileType('r'),
required=True,
help='top.net file'
)
parser.add_argument(
'--connection_database',
help='Database of fabric connectivity',
required=True
)
parser.add_argument('--arch', help='Arch XML', required=True)
args = parser.parse_args()
for line in args.input:
args.output.write(line)
place_constraints = vpr_place_constraints.PlaceConstraints()
place_constraints.load_loc_sites_from_net_file(args.net)
grid_capacities = get_tile_capacities(args.arch)
with sqlite3.connect(args.connection_database) as conn:
for block, loc in place_constraints.get_loc_sites():
vpr_loc = get_vpr_coords_from_site_name(conn, loc, grid_capacities)
place_constraints.constrain_block(
block, vpr_loc, "Constraining block {}".format(block)
)
place_constraints.output_place_constraints(args.output)
if __name__ == '__main__':
main()
| 3,818 | 0 | 69 |
ea5d3faa9c5f5e6eaf055e946f6ea32a73b4a57e | 7,301 | py | Python | da/examples/ratoken/spec.py | yagrawal-sbu/distalgo | 10e6db89b7db05d3b076dcf9295ce4f189558323 | [
"MIT"
] | null | null | null | da/examples/ratoken/spec.py | yagrawal-sbu/distalgo | 10e6db89b7db05d3b076dcf9295ce4f189558323 | [
"MIT"
] | null | null | null | da/examples/ratoken/spec.py | yagrawal-sbu/distalgo | 10e6db89b7db05d3b076dcf9295ce4f189558323 | [
"MIT"
] | null | null | null | # -*- generated by 1.0.9 -*-
import da
PatternExpr_243 = da.pat.TuplePattern([da.pat.ConstantPattern('access'), da.pat.FreePattern('newtok')])
PatternExpr_255 = da.pat.TuplePattern([da.pat.ConstantPattern('request'), da.pat.FreePattern('c'), da.pat.FreePattern('p')])
PatternExpr_283 = da.pat.TuplePattern([da.pat.ConstantPattern('request'), da.pat.FreePattern('c'), da.pat.BoundPattern('_BoundPattern288_')])
PatternExpr_318 = da.pat.TuplePattern([da.pat.ConstantPattern('access'), da.pat.FreePattern(None)])
PatternExpr_339 = da.pat.TuplePattern([da.pat.ConstantPattern('access'), da.pat.FreePattern('token1')])
PatternExpr_361 = da.pat.TuplePattern([da.pat.ConstantPattern('access'), da.pat.FreePattern('token2')])
PatternExpr_424 = da.pat.TuplePattern([da.pat.ConstantPattern('Done')])
PatternExpr_429 = da.pat.BoundPattern('_BoundPattern430_')
PatternExpr_431 = da.pat.TuplePattern([da.pat.FreePattern(None), da.pat.TuplePattern([da.pat.FreePattern(None), da.pat.FreePattern(None), da.pat.BoundPattern('_BoundPattern437_')]), da.pat.TuplePattern([da.pat.ConstantPattern('Done')])])
_config_object = {}
import sys
| 49 | 1,219 | 0.618819 | # -*- generated by 1.0.9 -*-
import da
PatternExpr_243 = da.pat.TuplePattern([da.pat.ConstantPattern('access'), da.pat.FreePattern('newtok')])
PatternExpr_255 = da.pat.TuplePattern([da.pat.ConstantPattern('request'), da.pat.FreePattern('c'), da.pat.FreePattern('p')])
PatternExpr_283 = da.pat.TuplePattern([da.pat.ConstantPattern('request'), da.pat.FreePattern('c'), da.pat.BoundPattern('_BoundPattern288_')])
PatternExpr_318 = da.pat.TuplePattern([da.pat.ConstantPattern('access'), da.pat.FreePattern(None)])
PatternExpr_339 = da.pat.TuplePattern([da.pat.ConstantPattern('access'), da.pat.FreePattern('token1')])
PatternExpr_361 = da.pat.TuplePattern([da.pat.ConstantPattern('access'), da.pat.FreePattern('token2')])
PatternExpr_424 = da.pat.TuplePattern([da.pat.ConstantPattern('Done')])
PatternExpr_429 = da.pat.BoundPattern('_BoundPattern430_')
PatternExpr_431 = da.pat.TuplePattern([da.pat.FreePattern(None), da.pat.TuplePattern([da.pat.FreePattern(None), da.pat.FreePattern(None), da.pat.BoundPattern('_BoundPattern437_')]), da.pat.TuplePattern([da.pat.ConstantPattern('Done')])])
_config_object = {}
import sys
class P(da.DistProcess):
def __init__(self, procimpl, props):
super().__init__(procimpl, props)
self._PReceivedEvent_2 = []
self._PSentEvent_3 = []
self._PReceivedEvent_4 = []
self._PSentEvent_5 = []
self._PReceivedEvent_6 = []
self._events.extend([da.pat.EventPattern(da.pat.ReceivedEvent, '_PReceivedEvent_0', PatternExpr_243, sources=None, destinations=None, timestamps=None, record_history=None, handlers=[self._P_handler_242]), da.pat.EventPattern(da.pat.ReceivedEvent, '_PReceivedEvent_1', PatternExpr_255, sources=None, destinations=None, timestamps=None, record_history=None, handlers=[self._P_handler_254]), da.pat.EventPattern(da.pat.ReceivedEvent, '_PReceivedEvent_2', PatternExpr_283, sources=None, destinations=None, timestamps=None, record_history=True, handlers=[]), da.pat.EventPattern(da.pat.SentEvent, '_PSentEvent_3', PatternExpr_318, sources=None, destinations=None, timestamps=None, record_history=True, handlers=[]), da.pat.EventPattern(da.pat.ReceivedEvent, '_PReceivedEvent_4', PatternExpr_339, sources=None, destinations=None, timestamps=None, record_history=True, handlers=[]), da.pat.EventPattern(da.pat.SentEvent, '_PSentEvent_5', PatternExpr_361, sources=None, destinations=None, timestamps=None, record_history=True, handlers=[]), da.pat.EventPattern(da.pat.ReceivedEvent, '_PReceivedEvent_6', PatternExpr_424, sources=[PatternExpr_429], destinations=None, timestamps=None, record_history=True, handlers=[])])
def setup(self, ps, nrounds, orig_token, **rest_519):
super().setup(ps=ps, nrounds=nrounds, orig_token=orig_token, **rest_519)
self._state.ps = ps
self._state.nrounds = nrounds
self._state.orig_token = orig_token
self._state.clock = 0
self._state.token = dict(((p, 0) for p in self._state.ps))
def run(self):
def anounce():
self.output('In cs!')
if self.token_present():
self.output("I'm lucky!")
for i in range(self._state.nrounds):
self.cs(anounce)
self.send(('Done',), to=self._state.ps)
super()._label('_st_label_415', block=False)
p = None
def UniversalOpExpr_416():
nonlocal p
for p in self._state.ps:
if (not PatternExpr_431.match_iter(self._PReceivedEvent_6, _BoundPattern437_=p, SELF_ID=self._id)):
return False
return True
_st_label_415 = 0
while (_st_label_415 == 0):
_st_label_415 += 1
if UniversalOpExpr_416():
_st_label_415 += 1
else:
super()._label('_st_label_415', block=True)
_st_label_415 -= 1
self.output('Done!')
def cs(self, task):
super()._label('request', block=False)
if (not self.token_present()):
self._state.clock += 1
self.send(('request', self._state.clock, self._id), to=self._state.ps)
super()._label('_st_label_210', block=False)
_st_label_210 = 0
while (_st_label_210 == 0):
_st_label_210 += 1
if self.token_present():
_st_label_210 += 1
else:
super()._label('_st_label_210', block=True)
_st_label_210 -= 1
self._state.token[self._id] = self._state.clock
task()
super()._label('release', block=False)
for p in self._state.ps:
if (self.request_pending(p) and self.token_present()):
self.send(('access', self._state.token), to=p)
break
def request_pending(self, p):
c = None
def ExistentialOpExpr_281():
nonlocal c
for (_, _, (_ConstantPattern299_, c, _BoundPattern302_)) in self._PReceivedEvent_2:
if (_ConstantPattern299_ == 'request'):
if (_BoundPattern302_ == p):
if (c > self._state.token[p]):
return True
return False
return ExistentialOpExpr_281()
def token_present(self):
def ExistentialOpExpr_316():
for (_, _, (_ConstantPattern332_, _)) in self._PSentEvent_3:
if (_ConstantPattern332_ == 'access'):
if True:
return True
return False
token1 = token2 = None
def ExistentialOpExpr_337():
nonlocal token1, token2
for (_, _, (_ConstantPattern354_, token1)) in self._PReceivedEvent_4:
if (_ConstantPattern354_ == 'access'):
def ExistentialOpExpr_359(token1):
nonlocal token2
for (_, _, (_ConstantPattern376_, token2)) in self._PSentEvent_5:
if (_ConstantPattern376_ == 'access'):
if (token2[self._id] > token1[self._id]):
return True
return False
if (not ExistentialOpExpr_359(token1=token1)):
return True
return False
return ((self._state.orig_token and (not ExistentialOpExpr_316())) or ExistentialOpExpr_337())
def _P_handler_242(self, newtok):
self._state.token = newtok
_P_handler_242._labels = None
_P_handler_242._notlabels = None
def _P_handler_254(self, c, p):
if (self.request_pending(p) and self.token_present()):
self.send(('access', self._state.token), to=p)
_P_handler_254._labels = None
_P_handler_254._notlabels = None
class Node_(da.NodeProcess):
def __init__(self, procimpl, props):
super().__init__(procimpl, props)
self._events.extend([])
def run(self):
nprocs = (int(sys.argv[1]) if (len(sys.argv) > 1) else 10)
nrounds = (int(sys.argv[2]) if (len(sys.argv) > 2) else 1)
ps = self.new(P, num=nprocs)
p = ps.pop()
self._setup(ps, ((ps | {p}), nrounds, False))
self._setup([p], ((ps | {p}), nrounds, True))
self._start((ps | {p}))
| 5,715 | 368 | 100 |
819231ebcb82e1951e26b4701c363d5616596d38 | 13,846 | py | Python | backend/moonstreamapi/providers/moonworm_provider.py | lsheiba/moonstream | 1cead0413e3e7ad96e2cded6b9cc3a95c6b7e7e0 | [
"Apache-2.0"
] | 67 | 2021-07-22T11:09:30.000Z | 2022-03-30T07:38:19.000Z | backend/moonstreamapi/providers/moonworm_provider.py | lsheiba/moonstream | 1cead0413e3e7ad96e2cded6b9cc3a95c6b7e7e0 | [
"Apache-2.0"
] | 246 | 2021-07-19T15:40:59.000Z | 2022-03-24T20:30:55.000Z | backend/moonstreamapi/providers/moonworm_provider.py | lsheiba/moonstream | 1cead0413e3e7ad96e2cded6b9cc3a95c6b7e7e0 | [
"Apache-2.0"
] | 21 | 2021-07-25T18:36:05.000Z | 2022-03-30T16:30:24.000Z | import logging
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional, Tuple, cast
from bugout.app import Bugout
from bugout.data import BugoutResource
from moonstreamdb.blockchain import AvailableBlockchainType, get_label_model
from sqlalchemy import and_, or_, text
from sqlalchemy.orm import Query, Session, query_expression
from sqlalchemy.sql.expression import label
from .. import data
from ..stream_boundaries import validate_stream_boundary
from ..stream_queries import StreamQuery
logger = logging.getLogger(__name__)
logger.setLevel(logging.WARN)
ethereum_event_type = "ethereum_blockchain"
polygon_event_type = "polygon_blockchain"
allowed_tags = ["tag:erc721"]
description = f"""Event provider for transactions from the Ethereum blockchain.
To restrict your queries to this provider, add a filter of \"type:{ethereum_event_type}\{polygon_event_type}\" to your query (query parameter: \"q\") on the /streams endpoint."""
default_time_interval_seconds: int = 5 * 60
# 200 transactions per block, 4 blocks per minute.
estimated_events_per_time_interval: float = 5 * 800
@dataclass
@dataclass
@dataclass
@dataclass
EthereumMoonwormProvider = MoonwormProvider(
event_type="ethereum_smartcontract",
blockchain=AvailableBlockchainType("ethereum"),
description="Provider for resiving transactions from Ethereum tables.",
streamboaundary_range_limit=2 * 60 * 60,
)
PolygonMoonwormProvider = MoonwormProvider(
event_type="polygon_smartcontract",
blockchain=AvailableBlockchainType("polygon"),
description="Provider for resiving transactions from Polygon tables.",
streamboaundary_range_limit=2 * 60 * 60,
)
| 34.187654 | 178 | 0.640546 | import logging
from dataclasses import dataclass, field
from typing import Any, Dict, List, Optional, Tuple, cast
from bugout.app import Bugout
from bugout.data import BugoutResource
from moonstreamdb.blockchain import AvailableBlockchainType, get_label_model
from sqlalchemy import and_, or_, text
from sqlalchemy.orm import Query, Session, query_expression
from sqlalchemy.sql.expression import label
from .. import data
from ..stream_boundaries import validate_stream_boundary
from ..stream_queries import StreamQuery
logger = logging.getLogger(__name__)
logger.setLevel(logging.WARN)
ethereum_event_type = "ethereum_blockchain"
polygon_event_type = "polygon_blockchain"
allowed_tags = ["tag:erc721"]
description = f"""Event provider for transactions from the Ethereum blockchain.
To restrict your queries to this provider, add a filter of \"type:{ethereum_event_type}\{polygon_event_type}\" to your query (query parameter: \"q\") on the /streams endpoint."""
default_time_interval_seconds: int = 5 * 60
# 200 transactions per block, 4 blocks per minute.
estimated_events_per_time_interval: float = 5 * 800
@dataclass
class ArgsFilters:
name: str
value: Any
type: str
@dataclass
class LabelsFilters:
name: str
type: str
args: List[ArgsFilters] = field(default_factory=list)
@dataclass
class AddressFilters:
address: str
label_filters: List[LabelsFilters] = field(default_factory=list)
@dataclass
class Filters:
addresses: List[AddressFilters] = field(default_factory=list)
class MoonwormProvider:
def __init__(
self,
event_type: str,
blockchain: AvailableBlockchainType,
description: str,
streamboaundary_range_limit: int,
):
self.event_type = event_type
self.blockchain = blockchain
self.description = description
self.valid_period_seconds = streamboaundary_range_limit
def default_filters(self, subscriptions: List[BugoutResource]) -> Filters:
"""
Default filter strings for the given list of subscriptions.
"""
filters = Filters()
for subscription in subscriptions:
subscription_address = cast(
Optional[str], subscription.resource_data.get("address")
)
if subscription_address is not None:
# How apply labels?
filters.addresses.append(
AddressFilters(address=subscription_address, label_filters=[])
)
else:
logger.warn(
f"Could not find subscription address for subscription with resource id: {subscription.id}"
)
return filters
def apply_query_filters(self, filters: Filters, query_filters: StreamQuery):
"""
Required to implement filters wich depends on procider
"""
pass
def events(self, row: Tuple) -> data.Event:
"""
Parses a result from the result set of a database query for Ethereum transactions with block timestamp
into an Event object.
"""
(
block_number,
address,
transaction_hash,
label_data,
block_timestamp,
log_index,
created_at,
) = row
return data.Event(
event_type=self.event_type,
event_timestamp=block_timestamp,
event_data={
"hash": transaction_hash,
"block_number": block_number,
"address": address,
"label_data": label_data,
"log_index": log_index,
"created_at": created_at,
},
)
def parse_filters(
self,
query: StreamQuery,
user_subscriptions: Dict[str, List[BugoutResource]],
) -> Optional[Filters]:
"""
Passes raw filter strings into a Filters object which is used to construct a database query
for ethereum transactions.
Right now support only addresses query.
"""
if query.subscription_types and not any(
subtype == self.event_type for subtype in query.subscription_types
):
return None
provider_subscriptions = user_subscriptions.get(self.event_type)
# If the user has no subscriptions to this event type, we do not have to return any data!
if not provider_subscriptions:
return None
parsed_filters = self.default_filters(provider_subscriptions)
self.apply_query_filters(parsed_filters, query)
if not (parsed_filters.addresses):
return None
return parsed_filters
def stream_boundary_validator(
self, stream_boundary: data.StreamBoundary
) -> data.StreamBoundary:
"""
Stream boundary validator for the events provider.
Checks that stream boundaries do not exceed periods of greater than 24 hours.
Raises an error for invalid stream boundaries, else returns None.
"""
valid_period_seconds = self.valid_period_seconds
_, stream_boundary = validate_stream_boundary(
stream_boundary, valid_period_seconds, raise_when_invalid=True
)
return stream_boundary
def generate_events_query(
self,
db_session: Session,
stream_boundary: data.StreamBoundary,
parsed_filters: Filters,
) -> Query:
"""
Builds a database query for Ethereum transactions that occurred within the window of time that
the given stream_boundary represents and satisfying the constraints of parsed_filters.
"""
Labels = get_label_model(self.blockchain)
query = db_session.query(
Labels.block_number,
Labels.address,
Labels.transaction_hash,
Labels.label_data,
Labels.block_timestamp,
Labels.log_index,
Labels.created_at,
).filter(Labels.label == "moonworm")
if stream_boundary.include_start:
query = query.filter(Labels.block_timestamp >= stream_boundary.start_time)
else:
query = query.filter(Labels.block_timestamp > stream_boundary.start_time)
if stream_boundary.end_time is not None:
if stream_boundary.include_end:
query = query.filter(Labels.block_timestamp <= stream_boundary.end_time)
else:
query = query.filter(Labels.block_timestamp <= stream_boundary.end_time)
addresses_filters = []
for address_filter in parsed_filters.addresses:
labels_filters = []
for label_filter in address_filter.label_filters:
labels_filters.append(
and_(
*(
Labels.label_data["type"] == label_filter.type,
Labels.label_data["name"] == label_filter.name,
)
)
)
addresses_filters.append(
and_(
*(
Labels.address == address_filter.address,
or_(*labels_filters),
)
)
)
query = query.filter(or_(*addresses_filters))
return query
def get_events(
self,
db_session: Session,
bugout_client: Bugout,
data_journal_id: str,
data_access_token: str,
stream_boundary: data.StreamBoundary,
query: StreamQuery,
user_subscriptions: Dict[str, List[BugoutResource]],
) -> Optional[Tuple[data.StreamBoundary, List[data.Event]]]:
"""
Returns blockchain events for the given addresses in the time period represented
by stream_boundary.
If the query does not require any data from this provider, returns None.
"""
stream_boundary = self.stream_boundary_validator(stream_boundary)
parsed_filters = self.parse_filters(query, user_subscriptions)
if parsed_filters is None:
return None
ethereum_transactions = self.generate_events_query(
db_session, stream_boundary, parsed_filters
)
ethereum_transactions = ethereum_transactions.order_by(
text("block_timestamp desc")
)
# TODO(zomglings): Catch the operational error denoting that the statement timed out here
# and wrap it in an error that tells the API to return the appropriate 400 response. Currently,
# when the statement times out, the API returns a 500 status code to the client, which doesn't
# do anything to help them get data from teh backend.
# The error message on the API side when the statement times out:
# > sqlalchemy.exc.OperationalError: (psycopg2.errors.QueryCanceled) canceling statement due to statement timeout
events: List[data.Event] = [self.events(row) for row in ethereum_transactions]
if (stream_boundary.end_time is None) and events:
stream_boundary.end_time = events[0].event_timestamp
stream_boundary.include_end = True
return stream_boundary, events
def latest_events(
self,
db_session: Session,
bugout_client: Bugout,
data_journal_id: str,
data_access_token: str,
query: StreamQuery,
num_events: int,
user_subscriptions: Dict[str, List[BugoutResource]],
) -> Optional[List[data.Event]]:
"""
Returns the num_events latest events from the current provider, subject to the constraints imposed
by the given filters.
If the query does not require any data from this provider, returns None.
"""
assert num_events > 0, f"num_events ({num_events}) should be positive."
stream_boundary = data.StreamBoundary(
start_time=0, include_start=True, end_time=None, include_end=False
)
parsed_filters = self.parse_filters(query, user_subscriptions)
if parsed_filters is None:
return None
ethereum_transactions = (
self.generate_events_query(db_session, stream_boundary, parsed_filters)
.order_by(text("block_timestamp desc"))
.limit(num_events)
)
return [self.events(row) for row in ethereum_transactions]
def next_event(
self,
db_session: Session,
bugout_client: Bugout,
data_journal_id: str,
data_access_token: str,
stream_boundary: data.StreamBoundary,
query: StreamQuery,
user_subscriptions: Dict[str, List[BugoutResource]],
) -> Optional[data.Event]:
"""
Returns the earliest event occuring after the given stream boundary corresponding to the given
query from this provider.
If the query does not require any data from this provider, returns None.
"""
assert (
stream_boundary.end_time is not None
), "Cannot return next event for up-to-date stream boundary"
next_stream_boundary = data.StreamBoundary(
start_time=stream_boundary.end_time,
include_start=(not stream_boundary.include_end),
end_time=None,
include_end=False,
)
parsed_filters = self.parse_filters(query, user_subscriptions)
if parsed_filters is None:
return None
maybe_ethereum_transaction = (
self.generate_events_query(db_session, next_stream_boundary, parsed_filters)
.order_by(text("block_timestamp asc"))
.limit(1)
).one_or_none()
if maybe_ethereum_transaction is None:
return None
return self.events(maybe_ethereum_transaction)
def previous_event(
self,
db_session: Session,
bugout_client: Bugout,
data_journal_id: str,
data_access_token: str,
stream_boundary: data.StreamBoundary,
query: StreamQuery,
user_subscriptions: Dict[str, List[BugoutResource]],
) -> Optional[data.Event]:
"""
Returns the latest event occuring before the given stream boundary corresponding to the given
query from this provider.
If the query does not require any data from this provider, returns None.
"""
assert (
stream_boundary.start_time != 0
), "Cannot return previous event for stream starting at time 0"
previous_stream_boundary = data.StreamBoundary(
start_time=0,
include_start=True,
end_time=stream_boundary.start_time,
include_end=(not stream_boundary.include_start),
)
parsed_filters = self.parse_filters(query, user_subscriptions)
if parsed_filters is None:
return None
maybe_ethereum_transaction = (
self.generate_events_query(
db_session, previous_stream_boundary, parsed_filters
)
.order_by(text("block_timestamp desc"))
.limit(1)
).one_or_none()
if maybe_ethereum_transaction is None:
return None
return self.events(maybe_ethereum_transaction)
EthereumMoonwormProvider = MoonwormProvider(
event_type="ethereum_smartcontract",
blockchain=AvailableBlockchainType("ethereum"),
description="Provider for resiving transactions from Ethereum tables.",
streamboaundary_range_limit=2 * 60 * 60,
)
PolygonMoonwormProvider = MoonwormProvider(
event_type="polygon_smartcontract",
blockchain=AvailableBlockchainType("polygon"),
description="Provider for resiving transactions from Polygon tables.",
streamboaundary_range_limit=2 * 60 * 60,
)
| 328 | 11,714 | 111 |
4fadd427d9e9cb1eb6aa7eccfdde1eb29b0ac329 | 4,994 | py | Python | microscope/monitor/epresolver.py | cilium/microscope | db922b79fb28e500f9a2d1f749620485cfda9dc0 | [
"Apache-2.0"
] | 16 | 2018-04-24T16:54:41.000Z | 2021-05-13T22:49:19.000Z | microscope/monitor/epresolver.py | cilium/microscope | db922b79fb28e500f9a2d1f749620485cfda9dc0 | [
"Apache-2.0"
] | 50 | 2018-02-06T11:32:46.000Z | 2021-06-01T21:54:45.000Z | microscope/monitor/epresolver.py | cilium/monitor-mux | db922b79fb28e500f9a2d1f749620485cfda9dc0 | [
"Apache-2.0"
] | 4 | 2018-02-13T10:10:34.000Z | 2022-02-28T11:50:41.000Z | from typing import Dict, List, Set, Callable
# https://github.com/cilium/cilium/blob/master/pkg/identity/numericidentity.go#L33
reserved_identities = {
0: ["reserved:unknown"],
1: ["reserved:host"],
2: ["reserved:world"],
3: ["reserved:cluster"],
4: ["reserved:health"],
5: ["reserved:init"]
}
class EndpointResolver:
"""EndpointResolver resolves various fields to the pod-name
endpoint_data: a list of lists of endpoint objects obtained from
cilium-agent or k8s CEPs
"""
def resolve_endpoint_ids(self, selectors: List[str],
pod_names: List[str],
ips: List[str],
namespace: str) -> Set[int]:
"""resolve_endpoint_ids returns endpoint ids that match
selectors, pod names and ips provided
"""
ids = set()
ids.update(
self.resolve_endpoint_ids_from_pods(pod_names),
self.resolve_endpoint_ids_from_selectors(selectors, namespace),
self.resolve_endpoint_ids_from_ips(ips)
)
return ids
| 33.972789 | 82 | 0.538046 | from typing import Dict, List, Set, Callable
# https://github.com/cilium/cilium/blob/master/pkg/identity/numericidentity.go#L33
reserved_identities = {
0: ["reserved:unknown"],
1: ["reserved:host"],
2: ["reserved:world"],
3: ["reserved:cluster"],
4: ["reserved:health"],
5: ["reserved:init"]
}
def get_pod_name(ep):
try:
podname = ep['status']['external-identifiers']['pod-name']
except KeyError:
podname = ep['external-identifiers']['pod-name']
return podname
class EndpointResolver:
"""EndpointResolver resolves various fields to the pod-name
endpoint_data: a list of lists of endpoint objects obtained from
cilium-agent or k8s CEPs
"""
def __init__(self,
endpoint_data: [Dict]):
self.ip_resolutions = {}
self.epid_resolutions = {}
self.ip_to_epid_resolutions = {}
self.endpoint_data = endpoint_data
for ep in endpoint_data:
podname = get_pod_name(ep)
for ip in ep['status']['networking']['addressing']:
try:
ipv4 = ip['ipv4']
self.ip_resolutions[ipv4] = podname
self.ip_to_epid_resolutions[ipv4] = ep['id']
except KeyError:
pass
try:
ipv6 = ip['ipv6']
self.ip_resolutions[ipv6] = podname
self.ip_to_epid_resolutions[ipv6] = ep['id']
except KeyError:
pass
# the str(ep['id']) below is needed because the ID is an
# int in json
self.epid_resolutions[str(ep['id'])] = podname
ep_identities = {id["id"]: id["labels"] for id in
[e["status"]["identity"]
for e in endpoint_data]}
self.identities = {**ep_identities, **reserved_identities}
def resolve_ip(self, ip) -> str:
if ip in self.ip_resolutions:
return self.ip_resolutions[ip]
return ""
def resolve_eid(self, eid) -> str:
if eid in self.epid_resolutions:
return self.epid_resolutions[eid]
return ""
def resolve_identity(self, id) -> List:
if id in self.identities:
return self.identities[id]
return ""
def resolve_id_from_ip(self, ip) -> str:
if ip in self.ip_to_epid_resolutions:
return self.ip_to_epid_resolutions[ip]
return ""
def resolve_endpoint_ids(self, selectors: List[str],
pod_names: List[str],
ips: List[str],
namespace: str) -> Set[int]:
"""resolve_endpoint_ids returns endpoint ids that match
selectors, pod names and ips provided
"""
ids = set()
ids.update(
self.resolve_endpoint_ids_from_pods(pod_names),
self.resolve_endpoint_ids_from_selectors(selectors, namespace),
self.resolve_endpoint_ids_from_ips(ips)
)
return ids
def resolve_endpoint_ids_from_pods(self, pod_names: List[str]):
try:
namesMatch = {
endpoint['id'] for endpoint in self.endpoint_data
if
get_pod_name(endpoint)
in pod_names
}
except (KeyError, TypeError):
# fall back to older API structure
namesMatch = {endpoint['id'] for endpoint in self.endpoint_data
if endpoint['pod-name'] in pod_names}
return namesMatch
def resolve_endpoint_ids_from_selectors(self, selectors: List[str],
namespace: str):
namespace_matcher = f"k8s:io.kubernetes.pod.namespace={namespace}"
def labels_match(data, selectors: List[str],
labels_getter: Callable[[Dict], List[str]]):
return {
endpoint['id'] for endpoint in data
if any([
any(
[selector in label
for selector in selectors])
for label
in labels_getter(endpoint)
]) and namespace_matcher in labels_getter(endpoint)
}
getters = [
lambda x: x['status']['labels']['security-relevant'],
lambda x: x['labels']['orchestration-identity'],
lambda x: x['labels']['security-relevant']
]
labelsMatch = []
for getter in getters:
try:
labelsMatch = labels_match(
self.endpoint_data, selectors, getter)
except (KeyError, TypeError):
continue
break
return labelsMatch
def resolve_endpoint_ids_from_ips(self, ips: List[str]):
return {self.resolve_id_from_ip(ip) for ip in ips} - {''}
| 3,634 | 0 | 238 |
6f98757d8929b926f6db70c57f06a707280ee1eb | 3,229 | py | Python | amqp_influxdb/tests/tests.py | cloudify-cosmo/cloudify-amqp-influxdb | 60c1f99bcb04876bd6a148f2815d9c900602241b | [
"Apache-2.0"
] | 3 | 2016-08-25T00:34:26.000Z | 2017-05-11T09:46:44.000Z | amqp_influxdb/tests/tests.py | cloudify-cosmo/cloudify-amqp-influxdb | 60c1f99bcb04876bd6a148f2815d9c900602241b | [
"Apache-2.0"
] | 5 | 2015-03-16T19:53:25.000Z | 2018-01-06T11:59:31.000Z | amqp_influxdb/tests/tests.py | cloudify-cosmo/cloudify-amqp-influxdb | 60c1f99bcb04876bd6a148f2815d9c900602241b | [
"Apache-2.0"
] | 6 | 2015-01-21T17:09:54.000Z | 2017-03-27T02:06:06.000Z | ########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. 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 unittest
import threading
import json
import uuid
import time
import pika
from influxdb.influxdb08 import InfluxDBClient
from amqp_influxdb import (InfluxDBPublisher,
AMQPTopicConsumer)
influx_database = 'influx'
amqp_exchange = 'exchange'
routing_key = 'routing_key'
| 29.623853 | 79 | 0.584391 | ########
# Copyright (c) 2014 GigaSpaces Technologies Ltd. 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 unittest
import threading
import json
import uuid
import time
import pika
from influxdb.influxdb08 import InfluxDBClient
from amqp_influxdb import (InfluxDBPublisher,
AMQPTopicConsumer)
influx_database = 'influx'
amqp_exchange = 'exchange'
routing_key = 'routing_key'
class Test(unittest.TestCase):
def test(self):
def start():
publisher = InfluxDBPublisher(
database=influx_database,
host='localhost')
# Default conn parameters from __main__, with username and
# password specified
conn_parameters = {
'host': 'localhost',
'port': 5672,
'connection_attempts': 12,
'retry_delay': 5,
'credentials': {
'username': 'guest',
'password': 'guest',
},
'ssl': False,
'ca_path': '',
}
consumer = AMQPTopicConsumer(
exchange=amqp_exchange,
routing_key=routing_key,
message_processor=publisher.process,
connection_parameters=conn_parameters)
consumer.consume()
thread = threading.Thread(target=start)
thread.daemon = True
thread.start()
time.sleep(5)
event_id = str(uuid.uuid4())
publish_event(event_id)
thread.join(3)
self.assertTrue(find_event(event_id), 'event not found in influxdb')
def publish_event(unique_id):
event = {
'node_id': 'node_id',
'node_name': 'node_name',
'deployment_id': unique_id,
'name': 'name',
'path': 'path',
'metric': 100,
'unit': '',
'type': 'type',
}
connection = pika.BlockingConnection(
pika.ConnectionParameters(host='localhost'))
channel = connection.channel()
channel.exchange_declare(exchange=amqp_exchange,
type='topic',
durable=False,
auto_delete=True,
internal=False)
channel.basic_publish(exchange=amqp_exchange,
routing_key=routing_key,
body=json.dumps(event))
channel.close()
connection.close()
def find_event(unique_id):
client = InfluxDBClient('localhost', 8086, 'root', 'root', influx_database)
results = client.query('select * from /{0}/ limit 1'.format(unique_id))
return bool(len(results))
| 2,173 | 9 | 96 |
e6e5d2f55796186a5638dbc834049ae6db8f09e8 | 486,178 | py | Python | script.py | minecraft-design/minecraft-design.github.io | 1b07c919e9dbc9a7e8c1833e2541fb5268d49a12 | [
"MIT"
] | null | null | null | script.py | minecraft-design/minecraft-design.github.io | 1b07c919e9dbc9a7e8c1833e2541fb5268d49a12 | [
"MIT"
] | null | null | null | script.py | minecraft-design/minecraft-design.github.io | 1b07c919e9dbc9a7e8c1833e2541fb5268d49a12 | [
"MIT"
] | null | null | null | print("<!DOCTYPE html><html><body>")
# arr =[[0, 152, 17, 252, 146, 88], [1, 260, 335, 63, 44, 17], [2, 53, 72, 130, 24, 80], [3, 352, 178, 32, 30, 287], [4, 80, 24, 17, 77, 28], [5, 85, 79, 276, 158, 63], [6, 376, 85, 16, 251, 382], [7, 17, 378, 16, 376, 384], [8, 79, 180, 183, 362, 85], [9, 80, 28, 17, 11, 36], [10, 33, 3, 25, 53, 152], [11, 28, 77, 80, 25, 85], [12, 6, 17, 378, 376, 16], [13, 210, 160, 356, 168, 63], [14, 362, 85, 125, 97, 118], [15, 25, 78, 353, 53, 43], [16, 251, 376, 382, 85, 6], [17, 80, 297, 152, 373, 75], [18, 360, 246, 377, 20, 347], [19, 104, 85, 362, 116, 125], [20, 347, 28, 374, 160, 53], [21, 14, 160, 35, 80, 28], [22, 85, 382, 258, 251, 79], [23, 24, 53, 78, 80, 28], [24, 80, 53, 130, 64, 72], [25, 160, 53, 74, 28, 130], [26, 371, 63, 88, 279, 145], [27, 30, 325, 37, 25, 210], [28, 25, 160, 14, 356, 8], [29, 371, 362, 118, 104, 125], [30, 61, 3, 32, 51, 76], [31, 181, 21, 294, 241, 43], [32, 76, 52, 3, 61, 30], [33, 53, 68, 130, 25, 24], [34, 89, 29, 246, 54, 48], [35, 371, 362, 125, 85, 14], [36, 28, 297, 14, 80, 16], [37, 90, 25, 368, 42, 48], [38, 63, 217, 44, 211, 39], [39, 45, 63, 61, 44, 46], [40, 17, 80, 25, 260, 152], [41, 63, 44, 276, 208, 61], [42, 368, 104, 22, 362, 48], [43, 25, 42, 54, 48, 89], [44, 63, 61, 276, 173, 335], [45, 39, 63, 44, 6, 386], [46, 63, 39, 61, 176, 276], [47, 347, 87, 95, 342, 80], [48, 54, 354, 368, 355, 34], [49, 80, 24, 75, 130, 53], [50, 63, 386, 83, 171, 192], [51, 30, 25, 352, 325, 160], [52, 32, 76, 337, 61, 63], [53, 130, 24, 25, 72, 80], [54, 48, 34, 89, 362, 368], [55, 178, 348, 3, 287, 352], [56, 80, 17, 75, 258, 8], [57, 42, 368, 158, 371, 116], [58, 118, 16, 22, 251, 297], [59, 80, 53, 130, 24, 363], [60, 67, 348, 287, 242, 55], [61, 63, 30, 335, 32, 52], [62, 297, 364, 6, 16, 251], [63, 44, 61, 39, 276, 371], [64, 24, 80, 53, 130, 78], [65, 382, 79, 258, 85, 22], [66, 71, 61, 260, 17, 81], [67, 60, 348, 242, 287, 178], [68, 53, 24, 130, 78, 80], [69, 85, 14, 77, 362, 97], [70, 80, 17, 49, 56, 130], [71, 343, 6, 45, 386, 376], [72, 53, 130, 2, 24, 80], [73, 6, 92, 343, 365, 105], [74, 25, 160, 28, 53, 80], [75, 258, 362, 80, 359, 17], [76, 32, 52, 61, 30, 63], [77, 80, 345, 85, 342, 22], [78, 80, 53, 24, 130, 68], [79, 85, 276, 125, 180, 153], [80, 24, 53, 130, 17, 78], [81, 28, 25, 160, 15, 11], [82, 168, 8, 210, 152, 160], [83, 79, 8, 276, 90, 356], [84, 25, 160, 28, 362, 61], [85, 79, 125, 382, 22, 276], [86, 80, 28, 347, 85, 297], [87, 80, 77, 342, 25, 47], [88, 17, 160, 350, 152, 278], [89, 256, 34, 189, 25, 368], [90, 25, 37, 53, 83, 28], [91, 22, 114, 128, 79, 258], [92, 376, 6, 73, 292, 229], [93, 80, 24, 53, 130, 78], [94, 364, 44, 17, 215, 297], [95, 80, 347, 20, 47, 28], [96, 25, 89, 42, 116, 368], [97, 362, 14, 371, 85, 104], [98, 25, 368, 104, 362, 116], [99, 107, 85, 341, 6, 297], [100, 16, 297, 17, 264, 315], [101, 20, 160, 25, 3, 34], [102, 145, 17, 88, 279, 371], [103, 25, 134, 43, 85, 320], [104, 118, 79, 116, 362, 180], [105, 112, 376, 16, 79, 251], [106, 241, 34, 22, 42, 294], [107, 123, 99, 386, 376, 85], [108, 195, 160, 328, 249, 123], [109, 364, 125, 294, 355, 241], [110, 28, 85, 160, 297, 11], [111, 29, 371, 104, 362, 355], [105, 112, 376, 16, 79, 251], [113, 158, 77, 83, 85, 256], [114, 79, 85, 125, 252, 8], [115, 34, 368, 246, 54, 161], [116, 118, 104, 362, 371, 180], [117, 211, 351, 22, 285, 336], [118, 125, 180, 116, 79, 104], [119, 85, 79, 125, 382, 22], [120, 17, 58, 376, 16, 384], [121, 160, 158, 362, 63, 347], [122, 153, 191, 79, 272, 125], [123, 107, 167, 160, 124, 290], [124, 63, 44, 123, 158, 276], [125, 79, 85, 276, 118, 333], [126, 377, 162, 160, 89, 256], [127, 290, 302, 124, 90, 295], [128, 91, 252, 79, 180, 328], [129, 297, 85, 16, 22, 376], [130, 53, 24, 80, 72, 25], [131, 63, 125, 85, 44, 158], [188, 132, 282, 246, 8, 372], [133, 284, 155, 252, 374, 247], [134, 34, 54, 246, 48, 25], [135, 251, 307, 6, 297, 77], [136, 299, 8, 114, 79, 83], [137, 85, 371, 251, 297, 382], [138, 125, 22, 79, 382, 85], [139, 374, 231, 160, 79, 166], [140, 63, 377, 44, 276, 215], [141, 42, 368, 241, 43, 89], [142, 79, 85, 276, 125, 153], [143, 114, 160, 337, 299, 252], [144, 44, 354, 127, 310, 63], [145, 160, 180, 371, 79, 25], [146, 359, 114, 351, 344, 289], [147, 114, 85, 382, 160, 133], [148, 158, 77, 161, 295, 106], [149, 46, 89, 63, 195, 82], [150, 44, 63, 371, 85, 158], [151, 63, 276, 44, 211, 176], [152, 17, 160, 297, 28, 130], [153, 79, 125, 85, 180, 276], [154, 263, 45, 44, 173, 171], [155, 133, 252, 166, 160, 139], [156, 63, 61, 44, 151, 217], [157, 345, 313, 85, 297, 382], [158, 79, 125, 85, 276, 371], [159, 367, 125, 8, 369, 353], [160, 25, 53, 28, 356, 8], [161, 104, 158, 362, 116, 8], [162, 195, 368, 115, 263, 54], [163, 377, 77, 20, 80, 342], [164, 85, 79, 382, 251, 22], [165, 79, 22, 114, 85, 180], [166, 160, 139, 252, 168, 374], [167, 206, 160, 20, 123, 270], [168, 82, 160, 210, 374, 8], [169, 51, 30, 43, 61, 25], [170, 297, 264, 80, 351, 363], [171, 44, 63, 158, 386, 240], [172, 190, 114, 63, 39, 163], [173, 44, 17, 63, 297, 215], [174, 290, 153, 85, 158, 256], [175, 290, 363, 17, 247, 211], [176, 63, 8, 350, 151, 85], [177, 251, 16, 376, 297, 308], [178, 3, 287, 352, 55, 348], [179, 160, 25, 8, 80, 362], [180, 79, 8, 85, 118, 125], [181, 44, 31, 63, 158, 276], [182, 166, 152, 160, 82, 168], [183, 79, 8, 125, 85, 180], [184, 25, 368, 256, 187, 153], [185, 303, 85, 238, 297, 382], [186, 79, 160, 180, 8, 374], [187, 160, 371, 25, 368, 256], [188, 132, 282, 246, 8, 372], [189, 89, 48, 104, 42, 118], [190, 172, 85, 297, 238, 215], [191, 367, 125, 114, 136, 321], [192, 44, 288, 5, 90, 158], [193, 359, 114, 225, 345, 297], [194, 125, 258, 79, 85, 22], [195, 160, 256, 371, 328, 263], [196, 386, 378, 17, 6, 16], [197, 255, 125, 297, 226, 262], [198, 82, 79, 20, 114, 374], [199, 359, 336, 152, 146, 161], [200, 183, 125, 85, 44, 158], [201, 203, 295, 199, 297, 17], [202, 377, 224, 211, 114, 136], [203, 201, 17, 297, 175, 295], [204, 98, 42, 25, 371, 368], [205, 263, 297, 77, 158, 17], [206, 374, 20, 167, 389, 160], [207, 63, 377, 158, 371, 368], [208, 63, 44, 61, 156, 368], [209, 175, 17, 16, 22, 295], [210, 160, 168, 82, 76, 8], [211, 224, 359, 257, 285, 258], [212, 195, 199, 256, 328, 263], [213, 85, 347, 79, 125, 20], [214, 85, 79, 125, 276, 385], [215, 17, 85, 297, 77, 80], [216, 299, 63, 377, 136, 114], [217, 63, 371, 156, 38, 276], [218, 79, 8, 125, 35, 158], [219, 278, 221, 79, 284, 299], [220, 114, 299, 359, 211, 22], [221, 219, 114, 79, 284, 216], [222, 79, 276, 85, 125, 158], [223, 294, 368, 377, 114, 195], [224, 257, 211, 359, 377, 136], [225, 211, 114, 285, 22, 193], [226, 44, 35, 187, 63, 48], [227, 42, 85, 48, 22, 125], [228, 114, 356, 362, 79, 180], [229, 376, 6, 16, 378, 386], [230, 85, 215, 297, 63, 17], [231, 79, 139, 180, 8, 276], [232, 257, 297, 85, 22, 386], [233, 63, 44, 83, 61, 39], [234, 79, 153, 125, 85, 118], [235, 22, 85, 160, 258, 79], [236, 63, 377, 151, 85, 276], [237, 344, 211, 299, 22, 253], [238, 185, 77, 345, 347, 297], [239, 134, 83, 34, 25, 104], [240, 371, 29, 158, 362, 118], [241, 294, 42, 43, 54, 368], [242, 67, 32, 60, 210, 311], [243, 63, 44, 300, 263, 361], [244, 79, 125, 180, 85, 158], [245, 85, 125, 118, 29, 14], [246, 104, 371, 362, 29, 125], [247, 382, 79, 85, 211, 22], [248, 297, 85, 251, 382, 351], [249, 328, 195, 79, 114, 272], [250, 297, 85, 263, 17, 158], [251, 382, 16, 22, 85, 258], [252, 79, 114, 180, 8, 374], [253, 359, 114, 344, 85, 79], [254, 44, 63, 216, 181, 211], [255, 125, 22, 226, 336, 197], [256, 89, 160, 368, 25, 54], [257, 224, 211, 85, 377, 125], [258, 382, 85, 22, 79, 65], [259, 34, 48, 54, 368, 89], [260, 80, 17, 69, 77, 297], [261, 17, 80, 78, 53, 386], [262, 85, 79, 125, 276, 258], [263, 14, 362, 77, 389, 85], [264, 297, 170, 351, 80, 363], [265, 195, 114, 162, 160, 256], [266, 58, 251, 16, 297, 119], [267, 85, 297, 386, 158, 28], [268, 85, 153, 389, 125, 276], [269, 114, 44, 377, 160, 328], [270, 180, 8, 252, 20, 389], [271, 383, 353, 98, 79, 125], [272, 114, 377, 125, 85, 136], [273, 125, 116, 35, 118, 104], [274, 114, 246, 252, 83, 146], [275, 63, 61, 52, 76, 337], [276, 79, 85, 125, 153, 183], [277, 286, 115, 42, 195, 54], [278, 219, 284, 323, 114, 285], [279, 80, 49, 17, 53, 24], [280, 85, 125, 377, 276, 63], [281, 63, 114, 39, 136, 61], [282, 132, 188, 85, 246, 362], [283, 80, 24, 130, 53, 342], [284, 133, 278, 252, 221, 219], [285, 211, 22, 382, 114, 251], [286, 195, 277, 189, 256, 263], [287, 178, 352, 3, 34, 348], [288, 215, 297, 85, 377, 63], [289, 146, 359, 114, 211, 79], [290, 175, 123, 124, 127, 199], [291, 63, 61, 275, 52, 76], [292, 16, 376, 386, 17, 6], [293, 329, 255, 137, 312, 91], [294, 241, 42, 43, 48, 368], [295, 161, 22, 77, 85, 42], [296, 328, 263, 149, 46, 195], [297, 351, 264, 17, 170, 28], [298, 42, 371, 160, 43, 104], [299, 79, 85, 136, 125, 160], [300, 77, 356, 83, 160, 263], [301, 374, 79, 20, 146, 114], [302, 295, 42, 127, 54, 48], [303, 85, 251, 382, 22, 297], [304, 114, 337, 160, 210, 374], [305, 17, 297, 386, 16, 388], [306, 63, 44, 61, 5, 39], [307, 91, 351, 77, 152, 22], [308, 382, 251, 258, 22, 85], [309, 89, 287, 51, 34, 61], [310, 187, 226, 184, 144, 44], [311, 32, 160, 3, 210, 82], [312, 22, 251, 297, 295, 382], [313, 345, 85, 157, 382, 377], [314, 89, 34, 42, 29, 116], [315, 17, 297, 16, 251, 215], [316, 187, 159, 153, 389, 353], [317, 337, 160, 52, 377, 74], [318, 44, 335, 63, 111, 371], [319, 34, 362, 19, 85, 125], [320, 22, 44, 272, 85, 125], [321, 276, 79, 8, 85, 153], [322, 44, 63, 215, 263, 192], [323, 278, 114, 347, 252, 379], [324, 85, 63, 377, 276, 44], [325, 25, 160, 53, 98, 30], [326, 16, 6, 251, 297, 152], [327, 378, 376, 112, 105, 386], [328, 195, 114, 263, 356, 136], [329, 116, 246, 297, 118, 371], [330, 367, 336, 153, 58, 187], [331, 373, 17, 215, 152, 292], [332, 80, 24, 54, 42, 28], [333, 79, 125, 85, 180, 118], [334, 48, 25, 325, 353, 160], [335, 61, 44, 30, 63, 90], [336, 251, 22, 350, 152, 17], [337, 52, 160, 210, 317, 89], [338, 104, 371, 158, 362, 79], [339, 247, 63, 85, 215, 80], [340, 25, 368, 362, 371, 97], [341, 28, 25, 160, 85, 8], [342, 374, 77, 28, 80, 87], [343, 71, 6, 378, 16, 365], [344, 359, 258, 85, 297, 377], [345, 77, 351, 297, 342, 80], [346, 387, 28, 85, 297, 17], [347, 360, 20, 28, 374, 79], [348, 67, 60, 287, 178, 55], [349, 16, 297, 17, 6, 376], [350, 336, 114, 372, 176, 359], [351, 297, 363, 345, 359, 264], [352, 3, 178, 287, 32, 61], [353, 87, 75, 25, 367, 74], [354, 48, 25, 246, 368, 362], [355, 362, 14, 118, 29, 371], [356, 160, 28, 362, 8, 374], [357, 79, 85, 382, 276, 258], [358, 35, 85, 226, 22, 362], [359, 344, 75, 351, 146, 211], [360, 347, 20, 377, 77, 47], [361, 63, 61, 136, 44, 368], [362, 14, 8, 125, 371, 118], [363, 297, 351, 264, 17, 77], [364, 109, 77, 345, 262, 297], [365, 28, 258, 6, 85, 297], [366, 160, 377, 211, 8, 75], [367, 114, 8, 252, 258, 136], [368, 42, 29, 48, 104, 362], [369, 362, 367, 48, 8, 42], [370, 160, 114, 25, 374, 28], [371, 362, 180, 85, 158, 118], [372, 350, 132, 188, 344, 146], [373, 17, 331, 152, 297, 215], [374, 28, 342, 20, 160, 347], [375, 160, 25, 210, 168, 114], [376, 6, 16, 251, 382, 85], [377, 85, 362, 97, 79, 371], [378, 376, 297, 16, 6, 17], [379, 79, 347, 114, 359, 85], [380, 17, 85, 262, 80, 297], [381, 28, 85, 14, 25, 48], [382, 85, 22, 251, 258, 79], [383, 8, 79, 270, 180, 389], [384, 376, 6, 16, 297, 386], [385, 79, 85, 276, 125, 153], [386, 28, 6, 16, 376, 297], [346, 387, 28, 85, 297, 17], [388, 297, 17, 215, 28, 85], [389, 79, 8, 362, 180, 85]]
# arr = [[0, 239, 10, 67, 60, 33], [1, 0, 239, 10, 67, 60], [2, 0, 239, 10, 33, 67], [3, 352, 0, 67, 239, 60], [4, 0, 239, 10, 67, 60], [5, 239, 0, 67, 348, 60], [6, 85, 79, 125, 382, 251], [7, 0, 239, 10, 67, 60], [8, 239, 0, 42, 79, 348], [9, 0, 239, 10, 67, 60], [10, 0, 239, 60, 67, 33], [11, 239, 42, 43, 0, 33], [12, 0, 239, 10, 67, 60], [13, 0, 239, 10, 67, 60], [14, 34, 42, 48, 239, 89], [15, 0, 239, 10, 33, 60], [16, 251, 79, 382, 42, 239], [17, 75, 49, 0, 373, 10], [18, 0, 239, 10, 67, 60], [19, 239, 0, 67, 348, 42], [20, 33, 0, 239, 10, 60], [21, 0, 239, 67, 10, 60], [22, 42, 79, 239, 382, 0], [23, 0, 239, 10, 67, 60], [24, 53, 68, 33, 239, 0], [25, 53, 43, 89, 33, 239], [26, 0, 239, 10, 67, 60], [27, 0, 239, 10, 67, 60], [28, 53, 356, 25, 374, 79], [29, 34, 239, 42, 0, 89], [30, 0, 239, 67, 10, 60], [31, 0, 239, 67, 10, 60], [32, 0, 239, 67, 60, 10], [33, 0, 239, 10, 60, 67], [34, 239, 0, 67, 60, 10], [35, 239, 0, 42, 67, 60], [36, 0, 239, 10, 60, 67], [37, 239, 0, 10, 60, 67], [38, 0, 239, 10, 67, 60], [39, 0, 239, 67, 60, 10], [40, 0, 239, 10, 60, 33], [41, 0, 239, 10, 67, 60], [42, 239, 0, 67, 60, 10], [43, 0, 239, 10, 60, 67], [44, 352, 0, 52, 3, 239], [45, 39, 0, 239, 67, 60], [46, 0, 239, 10, 67, 60], [47, 239, 0, 10, 33, 60], [48, 239, 0, 67, 60, 10], [49, 0, 239, 10, 33, 67], [50, 0, 239, 60, 67, 10], [51, 0, 239, 10, 67, 60], [52, 0, 239, 67, 10, 60], [53, 33, 68, 239, 2, 0], [54, 239, 0, 67, 60, 10], [55, 0, 239, 60, 67, 10], [56, 0, 239, 10, 67, 60], [57, 0, 239, 67, 60, 10], [58, 0, 239, 67, 60, 10], [59, 0, 239, 10, 67, 60], [60, 67, 0, 239, 10, 348], [61, 352, 0, 3, 239, 67], [62, 0, 239, 10, 67, 60], [63, 52, 76, 352, 32, 34], [64, 0, 239, 10, 67, 60], [65, 79, 239, 0, 42, 180], [66, 0, 239, 60, 10, 67], [67, 60, 0, 239, 348, 10], [68, 0, 239, 33, 10, 60], [69, 239, 34, 0, 67, 42], [70, 0, 239, 10, 67, 60], [71, 0, 239, 10, 67, 60], [72, 0, 239, 10, 60, 33], [73, 0, 239, 10, 67, 60], [74, 239, 0, 33, 10, 60], [75, 239, 0, 348, 67, 60], [76, 0, 239, 67, 10, 60], [77, 239, 0, 67, 60, 10], [78, 0, 239, 68, 33, 60], [79, 180, 239, 0, 348, 42], [80, 24, 53, 78, 49, 64], [81, 239, 0, 60, 10, 67], [82, 239, 0, 67, 60, 10], [83, 239, 0, 348, 60, 67], [84, 0, 239, 10, 60, 67], [85, 79, 125, 382, 180, 276], [86, 0, 239, 10, 60, 67], [87, 239, 0, 33, 68, 10], [88, 0, 239, 67, 10, 60], [89, 239, 0, 67, 60, 10], [90, 239, 0, 60, 10, 33], [91, 0, 239, 67, 10, 60], [92, 0, 239, 10, 67, 60], [93, 0, 239, 33, 60, 10], [94, 0, 239, 10, 67, 60], [95, 239, 0, 33, 10, 67], [96, 239, 0, 42, 67, 89], [97, 42, 34, 104, 239, 89], [98, 239, 0, 60, 67, 10], [99, 0, 239, 10, 67, 60], [100, 0, 239, 10, 67, 60], [101, 0, 239, 10, 67, 348], [102, 0, 239, 67, 10, 60], [103, 0, 239, 67, 10, 60], [104, 239, 0, 42, 348, 67], [112, 105, 239, 0, 67, 60], [106, 0, 239, 10, 67, 60], [107, 0, 239, 67, 10, 60], [108, 0, 239, 10, 67, 60], [109, 0, 239, 67, 10, 60], [110, 0, 239, 67, 10, 60], [111, 239, 42, 34, 89, 0], [112, 105, 239, 0, 67, 60], [113, 0, 239, 10, 67, 60], [114, 0, 239, 10, 67, 60], [115, 239, 0, 67, 60, 10], [116, 42, 104, 239, 89, 34], [117, 0, 239, 10, 67, 60], [118, 239, 104, 0, 42, 180], [119, 79, 239, 0, 42, 348], [120, 0, 239, 67, 10, 60], [121, 0, 239, 10, 67, 60], [122, 0, 239, 10, 67, 60], [123, 0, 239, 67, 60, 10], [124, 0, 239, 67, 10, 60], [125, 79, 42, 239, 0, 48], [126, 0, 239, 10, 67, 60], [127, 239, 0, 60, 10, 67], [128, 0, 239, 67, 10, 60], [129, 239, 0, 67, 60, 10], [130, 53, 2, 68, 72, 33], [131, 0, 239, 67, 60, 10], [188, 132, 239, 0, 67, 60], [133, 0, 239, 67, 10, 60], [134, 239, 0, 67, 348, 60], [135, 0, 239, 10, 67, 60], [136, 239, 0, 67, 60, 55], [137, 0, 239, 67, 10, 60], [138, 0, 239, 10, 67, 60], [139, 0, 239, 10, 67, 60], [140, 0, 239, 10, 67, 60], [141, 0, 239, 67, 10, 60], [142, 239, 0, 67, 60, 10], [143, 0, 239, 10, 67, 60], [144, 0, 239, 67, 10, 60], [145, 0, 239, 67, 10, 60], [146, 0, 239, 10, 67, 60], [147, 0, 239, 67, 10, 60], [148, 0, 239, 10, 67, 60], [149, 0, 239, 10, 67, 60], [150, 239, 0, 67, 60, 10], [151, 0, 239, 10, 67, 60], [152, 10, 0, 33, 60, 67], [153, 79, 239, 0, 180, 42], [154, 0, 239, 67, 10, 60], [155, 0, 239, 10, 67, 60], [156, 0, 239, 67, 60, 10], [157, 0, 239, 67, 10, 60], [158, 79, 104, 180, 42, 239], [159, 0, 239, 10, 67, 60], [160, 53, 89, 294, 25, 43], [161, 239, 0, 34, 42, 67], [162, 0, 239, 10, 67, 60], [163, 0, 239, 10, 33, 60], [164, 239, 0, 67, 10, 60], [165, 0, 239, 67, 10, 60], [166, 239, 0, 67, 60, 10], [167, 0, 239, 10, 60, 33], [168, 0, 239, 67, 10, 60], [169, 0, 239, 10, 67, 60], [170, 239, 0, 67, 60, 10], [171, 0, 239, 67, 10, 60], [172, 0, 239, 10, 67, 60], [173, 0, 239, 67, 60, 10], [174, 0, 239, 67, 60, 10], [175, 0, 239, 10, 67, 60], [176, 0, 239, 67, 10, 60], [177, 0, 239, 10, 67, 60], [178, 239, 0, 67, 60, 348], [179, 239, 0, 67, 60, 10], [180, 239, 0, 348, 79, 67], [181, 0, 239, 67, 10, 60], [182, 0, 239, 10, 67, 60], [183, 79, 180, 239, 42, 0], [184, 239, 0, 67, 60, 10], [185, 0, 239, 10, 60, 67], [186, 0, 239, 67, 60, 10], [187, 0, 239, 67, 60, 10], [188, 132, 239, 0, 67, 60], [189, 239, 0, 67, 60, 348], [190, 0, 239, 10, 67, 60], [191, 0, 239, 67, 10, 60], [192, 0, 239, 67, 10, 60], [193, 0, 239, 10, 67, 60], [194, 0, 239, 67, 10, 60], [195, 0, 239, 67, 60, 10], [196, 0, 239, 10, 67, 60], [197, 0, 239, 10, 67, 60], [198, 0, 239, 10, 67, 60], [199, 0, 239, 10, 67, 60], [200, 0, 239, 67, 10, 60], [201, 203, 0, 239, 10, 67], [202, 0, 239, 10, 67, 60], [203, 201, 0, 239, 10, 67], [204, 0, 239, 67, 10, 60], [205, 0, 239, 10, 67, 60], [206, 0, 239, 10, 33, 67], [207, 0, 239, 67, 10, 60], [208, 0, 239, 67, 10, 60], [209, 0, 239, 67, 10, 60], [210, 0, 239, 67, 60, 10], [211, 0, 239, 67, 60, 10], [212, 0, 239, 10, 67, 60], [213, 0, 239, 10, 67, 60], [214, 0, 239, 10, 67, 60], [215, 239, 0, 10, 67, 60], [216, 0, 239, 67, 60, 10], [217, 0, 239, 67, 10, 60], [218, 0, 239, 10, 67, 60], [219, 0, 239, 67, 10, 60], [220, 0, 239, 67, 10, 60], [221, 0, 239, 67, 10, 60], [222, 79, 239, 0, 348, 67], [223, 0, 239, 67, 10, 60], [224, 239, 0, 67, 10, 60], [225, 0, 239, 10, 67, 60], [226, 0, 239, 67, 60, 294], [227, 0, 239, 67, 60, 10], [228, 0, 239, 10, 67, 60], [229, 239, 0, 67, 60, 10], [230, 0, 239, 67, 10, 60], [231, 0, 239, 67, 60, 10], [232, 239, 0, 67, 10, 60], [233, 0, 239, 60, 10, 67], [234, 239, 0, 60, 67, 348], [235, 0, 239, 67, 60, 10], [236, 0, 239, 348, 10, 67], [237, 0, 239, 67, 10, 60], [238, 0, 239, 67, 60, 10], [239, 0, 10, 67, 60, 33], [240, 239, 34, 0, 89, 67], [241, 0, 239, 67, 10, 60], [242, 0, 67, 60, 239, 10], [243, 0, 239, 10, 67, 60], [244, 239, 0, 67, 348, 60], [245, 239, 0, 42, 67, 60], [246, 239, 0, 34, 67, 348], [247, 0, 239, 67, 60, 10], [248, 0, 239, 67, 60, 10], [249, 0, 239, 67, 10, 60], [250, 0, 239, 67, 10, 60], [251, 79, 42, 382, 239, 0], [252, 0, 239, 348, 67, 10], [253, 0, 239, 67, 60, 10], [254, 0, 239, 10, 67, 60], [255, 0, 239, 67, 10, 60], [256, 239, 0, 89, 67, 60], [257, 239, 0, 67, 60, 10], [258, 79, 42, 239, 0, 180], [259, 0, 239, 67, 10, 60], [260, 0, 239, 67, 10, 60], [261, 0, 239, 60, 33, 10], [262, 79, 239, 0, 348, 67], [263, 0, 239, 296, 67, 10], [264, 239, 0, 67, 60, 10], [265, 0, 239, 67, 10, 60], [266, 0, 239, 10, 67, 60], [267, 239, 0, 60, 10, 67], [268, 239, 0, 67, 60, 10], [269, 0, 239, 67, 10, 60], [270, 239, 0, 348, 67, 10], [271, 239, 0, 10, 60, 67], [272, 0, 239, 67, 10, 60], [273, 0, 239, 67, 60, 10], [274, 0, 239, 10, 67, 60], [275, 0, 239, 67, 60, 10], [276, 79, 239, 0, 180, 67], [277, 0, 239, 10, 67, 60], [278, 0, 239, 10, 67, 60], [279, 0, 239, 10, 67, 60], [280, 0, 239, 67, 60, 10], [281, 0, 239, 10, 67, 60], [282, 239, 0, 67, 10, 60], [283, 0, 239, 10, 33, 60], [284, 0, 239, 67, 10, 60], [285, 0, 239, 10, 67, 60], [286, 0, 239, 67, 10, 60], [287, 239, 0, 60, 67, 348], [288, 0, 239, 67, 60, 10], [289, 0, 239, 10, 67, 60], [290, 0, 239, 10, 67, 60], [291, 0, 239, 67, 60, 10], [292, 0, 239, 10, 33, 67], [293, 0, 239, 10, 67, 60], [294, 0, 239, 67, 60, 10], [295, 239, 0, 67, 60, 10], [296, 0, 239, 10, 67, 60], [297, 351, 239, 0, 348, 67], [298, 0, 239, 67, 10, 60], [299, 239, 0, 67, 348, 60], [300, 0, 239, 67, 60, 10], [301, 0, 239, 10, 67, 60], [302, 0, 239, 67, 10, 60], [303, 0, 239, 67, 10, 60], [304, 0, 239, 10, 67, 60], [305, 0, 239, 10, 67, 60], [306, 0, 352, 239, 67, 60], [307, 0, 239, 10, 67, 60], [308, 239, 0, 42, 79, 348], [309, 0, 239, 10, 67, 60], [310, 0, 239, 67, 60, 10], [311, 239, 0, 67, 60, 348], [312, 0, 239, 67, 10, 60], [313, 0, 239, 10, 67, 60], [314, 239, 0, 67, 60, 10], [315, 0, 239, 10, 67, 60], [316, 0, 239, 10, 67, 60], [317, 0, 239, 10, 67, 60], [318, 0, 239, 67, 60, 10], [319, 239, 0, 67, 60, 10], [320, 0, 239, 67, 10, 60], [321, 0, 239, 67, 60, 10], [322, 0, 239, 10, 67, 60], [323, 0, 239, 67, 60, 10], [324, 0, 239, 10, 67, 60], [325, 239, 0, 33, 10, 60], [326, 0, 239, 10, 67, 60], [327, 0, 239, 67, 60, 10], [328, 0, 239, 10, 67, 60], [329, 239, 0, 67, 60, 10], [330, 0, 239, 10, 67, 60], [331, 0, 239, 10, 67, 60], [332, 0, 239, 67, 10, 60], [333, 239, 0, 79, 42, 348], [334, 0, 239, 60, 67, 10], [335, 0, 239, 67, 60, 352], [336, 0, 239, 10, 67, 60], [337, 0, 239, 67, 60, 10], [338, 239, 0, 67, 60, 348], [339, 0, 239, 67, 60, 10], [340, 0, 239, 67, 60, 10], [341, 239, 348, 0, 33, 67], [342, 239, 33, 0, 60, 10], [343, 0, 239, 10, 67, 60], [344, 0, 239, 10, 67, 60], [345, 0, 239, 10, 60, 67], [346, 387, 0, 239, 67, 10], [347, 0, 239, 60, 67, 10], [348, 0, 67, 60, 239, 10], [349, 0, 239, 10, 67, 60], [350, 0, 239, 10, 67, 60], [351, 0, 239, 67, 348, 60], [352, 0, 239, 67, 60, 10], [353, 239, 0, 10, 33, 60], [354, 239, 0, 67, 60, 48], [355, 239, 42, 34, 0, 89], [356, 239, 0, 67, 10, 60], [357, 0, 239, 10, 67, 60], [358, 0, 239, 67, 60, 10], [359, 0, 239, 10, 67, 60], [360, 0, 239, 10, 67, 60], [361, 0, 239, 67, 60, 10], [362, 42, 34, 239, 54, 89], [363, 0, 239, 67, 10, 60], [364, 0, 239, 10, 67, 60], [365, 0, 239, 67, 10, 60], [366, 0, 239, 67, 60, 10], [367, 0, 239, 10, 67, 60], [368, 239, 42, 0, 67, 294], [369, 0, 239, 67, 60, 10], [370, 0, 239, 10, 67, 60], [371, 42, 89, 34, 104, 180], [372, 0, 239, 10, 67, 60], [373, 0, 239, 10, 67, 60], [374, 0, 239, 67, 10, 60], [375, 0, 239, 10, 67, 60], [376, 251, 42, 79, 239, 382], [377, 34, 239, 0, 42, 348], [378, 0, 239, 10, 67, 60], [379, 0, 239, 67, 10, 60], [380, 0, 239, 10, 67, 60], [381, 0, 239, 10, 67, 60], [382, 79, 239, 42, 0, 180], [383, 239, 0, 60, 10, 67], [384, 0, 239, 10, 60, 67], [385, 79, 0, 239, 67, 60], [386, 42, 239, 0, 348, 67], [346, 387, 0, 239, 67, 10], [388, 0, 239, 67, 60, 10], [389, 79, 239, 0, 42, 180]]
# arr = [[[0, 239, 10, 67, 60, 33], [0.0, 52.86775955154521, 66.90291473471092, 68.49087530467106, 69.39020103732227, 79.13279977354523]], [[1, 0, 239, 10, 67, 60], [0.0, 238.15961034566715, 239.79783151646723, 242.1321952983535, 242.66643772882975, 243.15632831575658]], [[2, 0, 239, 10, 33, 67], [0.0, 135.01111065390137, 136.59795020423988, 141.47791347061914, 142.35167719419397, 142.87407042567241]], [[3, 352, 0, 67, 239, 60], [0.0, 127.34991166074674, 131.33544837552427, 133.65627557282897, 133.9552163971228, 134.0447686409283]], [[4, 0, 239, 10, 67, 60], [0.0, 214.54836284623568, 215.64786110694445, 219.54270655159556, 219.78170988505846, 219.98636321372285]], [[5, 239, 0, 67, 348, 60], [0.0, 282.7914425862282, 284.89296235603996, 287.3969380491031, 287.6890682664185, 287.76900458527496]], [[6, 85, 79, 125, 382, 251], [0.0, 542.9990791889062, 548.0501801842602, 553.0045207771814, 555.3017197884408, 556.0323731582541]], [[7, 0, 239, 10, 67, 60], [0.0, 268.6093818167936, 269.74803057668464, 273.11719096387907, 273.21420168065936, 273.55072655725115]], [[8, 239, 0, 42, 79, 348], [0.0, 253.8936785349332, 256.36107348815653, 256.5248525971704, 257.8100075637096, 258.13949717158744]], [[9, 0, 239, 10, 67, 60], [0.0, 113.66617790706258, 117.0341830406826, 123.58802530989804, 124.63145670335399, 124.64750298341319]], [[10, 0, 239, 60, 67, 33], [0.0, 66.90291473471092, 72.8766080440082, 82.67405880927826, 83.48053665376139, 88.6904729945669]], [[11, 239, 42, 43, 0, 33], [0.0, 368.09373806138024, 368.13041167499324, 368.80618216076584, 368.92817729200357, 370.2998784768907]], [[12, 0, 239, 10, 67, 60], [0.0, 335.6203211964377, 337.6210893886814, 339.6719005157771, 339.7587379303143, 340.32631399878557]], [[13, 0, 239, 10, 67, 60], [0.0, 166.08130538986018, 168.14874367654372, 172.00872070915474, 173.1762108374011, 173.37243148782335]], [[14, 34, 42, 48, 239, 89], [0.0, 306.25479588081555, 306.3217262944305, 308.0405817420815, 308.2369218636859, 308.33585584553737]], [[15, 0, 239, 10, 33, 60], [0.0, 222.56459736445058, 222.58930791931584, 224.7420743875076, 224.98222151983475, 225.4196087300304]], [[16, 251, 79, 382, 42, 239], [0.0, 427.66692647433, 434.8126033131974, 436.8901463754933, 439.70558331683714, 444.68865512850675]], [[17, 75, 49, 0, 373, 10], [0.0, 470.89383092157834, 471.6047073556412, 474.08543533839975, 475.23047040357164, 475.43979639908144]], [[18, 0, 239, 10, 67, 60], [0.0, 152.33187453714342, 152.9640480635891, 158.5339080449353, 159.3988707613702, 159.92498241363043]], [[19, 239, 0, 67, 348, 42], [0.0, 220.43819995635965, 222.79138223908032, 226.4221720591868, 226.48399501951567, 226.63186007267382]], [[20, 33, 0, 239, 10, 60], [0.0, 244.76315082136037, 246.27017683836587, 246.56844891429236, 246.58264334701258, 247.6449070746257]], [[21, 0, 239, 67, 10, 60], [0.0, 237.34784599823104, 238.4386713601634, 241.86979968569867, 242.0702377410325, 242.21684499637922]], [[22, 42, 79, 239, 382, 0], [0.0, 296.33427071467787, 297.6927946726289, 305.37681640884267, 306.12089115249876, 307.58413483143113]], [[23, 0, 239, 10, 67, 60], [0.0, 155.0129026887762, 156.30738946063937, 161.30406070524077, 161.98148042291749, 162.265215003093]], [[24, 53, 68, 33, 239, 0], [0.0, 205.4628920267599, 209.72601173912597, 214.10978492352936, 215.43908651867238, 215.71972557000902]], [[25, 53, 43, 89, 33, 239], [0.0, 259.53805116013336, 265.194268414685, 269.6738771182704, 271.8860055243741, 272.3765775539446]], [[26, 0, 239, 10, 67, 60], [0.0, 124.87593843491227, 128.32380917039518, 134.20879255846094, 134.27955912945202, 135.31814364674088]], [[27, 0, 239, 10, 67, 60], [0.0, 133.15780112332885, 135.80132547217644, 139.51702405083043, 140.57026712644463, 140.98226838861686]], [[28, 53, 356, 25, 374, 79], [0.0, 440.8004083482682, 441.6638993623998, 443.784857785842, 448.42056152678816, 450.57962670320546]], [[29, 34, 239, 42, 0, 89], [0.0, 234.27547887049553, 235.7392627459414, 237.5668327018736, 237.76458945772393, 238.39463081202143]], [[30, 0, 239, 67, 10, 60], [0.0, 153.07841127997116, 156.17298101784445, 157.06049789810294, 157.16551784663199, 157.82902141241325]], [[31, 0, 239, 67, 10, 60], [0.0, 149.39210153150668, 152.0690632574555, 157.60393396105314, 157.92403236999743, 158.11072069913538]], [[32, 0, 239, 67, 60, 10], [0.0, 143.17471843869643, 145.7532160880164, 146.2942240828393, 146.81961721786362, 147.73963584630903]], [[33, 0, 239, 10, 60, 67], [0.0, 79.13279977354523, 81.68843247363729, 88.6904729945669, 91.4603739331958, 92.69843580125827]], [[34, 239, 0, 67, 60, 10], [0.0, 136.93794214898952, 139.37359864766353, 144.9482666333061, 145.97945060863876, 147.34653032901724]], [[35, 239, 0, 42, 67, 60], [0.0, 273.03845882952095, 274.3665431498527, 276.5556001964162, 277.49234223668225, 277.85247884444004]], [[36, 0, 239, 10, 60, 67], [0.0, 327.0382240656281, 327.22316543912353, 329.2020656071283, 329.88937539726857, 330.1408790198512]], [[37, 239, 0, 10, 60, 67], [0.0, 241.32343441945292, 241.38765502817247, 242.84562997921128, 243.69037732335678, 243.80525014855607]], [[38, 0, 239, 10, 67, 60], [0.0, 206.77282219866325, 208.68636754709206, 212.13910530592892, 212.84736315021618, 213.21350801485352]], [[39, 0, 239, 67, 60, 10], [0.0, 285.02982300103264, 286.27085076898766, 287.77595452017874, 288.0954702871949, 288.15273727660474]], [[40, 0, 239, 10, 60, 33], [0.0, 262.3490041909822, 263.3742584232559, 264.1760776451948, 266.0338324348991, 266.19729525297583]], [[41, 0, 239, 10, 67, 60], [0.0, 164.16150584104668, 166.48723674804626, 171.32133550728585, 171.41178489240465, 171.73817280965812]], [[42, 239, 0, 67, 60, 10], [0.0, 140.85808461000738, 142.01408380861386, 149.6629546681476, 150.38949431393138, 150.8509197850646]], [[43, 0, 239, 10, 60, 67], [0.0, 134.8406466908254, 137.3062270984095, 142.2603247571156, 142.74802975873257, 142.9930068220121]], [[44, 352, 0, 52, 3, 239], [0.0, 347.29814281104353, 349.1375087268625, 349.76277675018537, 349.7885075299073, 349.81423641698746]], [[45, 39, 0, 239, 67, 60], [0.0, 416.8297014369298, 477.7876097179583, 478.4997387669088, 479.45802736005993, 479.5894077228979]], [[46, 0, 239, 10, 67, 60], [0.0, 208.11054754625005, 210.34970881843407, 213.78493866500511, 213.8293712285569, 214.07241765346603]], [[47, 239, 0, 10, 33, 60], [0.0, 214.86507394176468, 215.24869337582516, 216.96082595712988, 217.5086205188199, 218.6069532288486]], [[48, 239, 0, 67, 60, 10], [0.0, 160.4088526235382, 162.34531098864542, 167.62756336593336, 168.41318238190263, 169.38122682280937]], [[49, 0, 239, 10, 33, 67], [0.0, 161.76526203112954, 164.42931612093994, 165.87947431795172, 167.21842003798506, 167.26326554267678]], [[50, 0, 239, 60, 67, 10], [0.0, 273.6110377890483, 274.58332068791066, 277.2652159936403, 277.2688226252638, 277.36798661705717]], [[51, 0, 239, 10, 67, 60], [0.0, 132.61598696989742, 134.41726079637243, 137.53908535394584, 138.49187701811252, 139.3843606722074]], [[52, 0, 239, 67, 10, 60], [0.0, 152.2859153040753, 154.68031548972223, 157.60076141948045, 157.61662348876783, 158.23400393088713]], [[53, 33, 68, 239, 2, 0], [0.0, 176.82759965570986, 176.83325479106017, 181.39735389470266, 182.38420984284795, 182.61434773861555]], [[54, 239, 0, 67, 60, 10], [0.0, 153.17310468878014, 154.90965108733542, 160.51791177311023, 161.32575739788115, 162.0154313638056]], [[55, 0, 239, 60, 67, 10], [0.0, 84.2852300228219, 87.16077099245967, 92.05976319760984, 92.38506372785592, 95.28903399657277]], [[56, 0, 239, 10, 67, 60], [0.0, 247.13963664293107, 248.25188821034172, 250.60327212548523, 250.84457339157248, 251.08365139928964]], [[57, 0, 239, 67, 60, 10], [0.0, 207.0917670985498, 207.91344352879156, 212.54646550813308, 212.91782452392283, 213.11733857197072]], [[58, 0, 239, 67, 60, 10], [0.0, 236.73825208444873, 237.2298463515921, 241.48291865057453, 241.85532865744347, 241.9442084448396]], [[59, 0, 239, 10, 67, 60], [0.0, 129.21300244170476, 131.95832675507825, 137.73162309360913, 138.00362314084367, 138.1557092558972]], [[60, 67, 0, 239, 10, 348], [0.0, 28.142494558940577, 69.39020103732227, 75.37904218017101, 82.67405880927826, 84.78207357690657]], [[61, 352, 0, 3, 239, 67], [0.0, 211.3409567499873, 215.38802195108252, 217.13820483738002, 217.56148556212793, 217.74526401279087]], [[62, 0, 239, 10, 67, 60], [0.0, 149.8632710172843, 152.6302722267113, 158.3445610054226, 159.04087524910065, 159.3047394147456]], [[63, 52, 76, 352, 32, 34], [0.0, 324.3023280829171, 325.51958466427175, 325.6992477731565, 327.26136343907143, 327.414110874898]], [[64, 0, 239, 10, 67, 60], [0.0, 162.52384440444425, 163.67345539213133, 168.85496735364347, 169.10647533432893, 169.2660627532879]], [[65, 79, 239, 0, 42, 180], [0.0, 295.5892420234539, 301.3585903869342, 303.75648141233137, 303.8618106969021, 304.75071780063126]], [[66, 0, 239, 60, 10, 67], [0.0, 348.5297691733089, 349.62551394313317, 350.8418447106901, 350.88887129688226, 350.95013890864897]], [[67, 60, 0, 239, 348, 10], [0.0, 28.142494558940577, 68.49087530467106, 75.03332592921628, 82.64381404557754, 83.48053665376139]], [[68, 0, 239, 33, 10, 60], [0.0, 104.01922899156675, 105.60776486603625, 109.89995450408522, 111.1935249913411, 111.44056711987785]], [[69, 239, 34, 0, 67, 42], [0.0, 292.0188350089768, 293.54897376758106, 293.8468989116611, 295.80567945866085, 296.1148425864533]], [[70, 0, 239, 10, 67, 60], [0.0, 184.9648615278048, 186.04569331215382, 188.886209131318, 189.49142460808088, 189.69712702094358]], [[71, 0, 239, 10, 67, 60], [0.0, 485.95884599418497, 486.9137500625753, 488.1352271655878, 488.1362514708368, 488.27553696657793]], [[72, 0, 239, 10, 60, 33], [0.0, 156.53753543479596, 157.95252451290546, 162.1480804696744, 162.4776907763032, 162.52384440444425]], [[73, 0, 239, 10, 67, 60], [0.0, 451.7565716179456, 452.68863471485565, 454.64491639080273, 454.88350156935786, 454.9758235335148]], [[74, 239, 0, 33, 10, 60], [0.0, 235.14038360094594, 237.63838073846574, 238.11761799581316, 238.8095475478315, 239.18821041180104]], [[75, 239, 0, 348, 67, 60], [0.0, 249.5215421561834, 251.3523423403888, 255.31353273964936, 255.71664005300866, 256.06835025047513]], [[76, 0, 239, 67, 10, 60], [0.0, 148.96979559628858, 151.1853167473614, 154.4376897004096, 154.62858726639132, 155.0709515028524]], [[77, 239, 0, 67, 60, 10], [0.0, 340.0397035641573, 340.85774158730794, 342.7375088898208, 343.0757933751666, 343.2287866715145]], [[78, 0, 239, 68, 33, 60], [0.0, 173.49639765712718, 174.2469511928401, 175.15992692394, 176.00284088616297, 177.14965424747518]], [[79, 180, 239, 0, 348, 42], [0.0, 223.13672938357772, 225.52161758909057, 228.62851965579446, 231.62037906885482, 232.25201829047685]], [[80, 24, 53, 78, 49, 64], [0.0, 316.5233008800458, 331.9457787048963, 334.79396649282677, 337.4285109471338, 339.20790085138054]], [[81, 239, 0, 60, 10, 67], [0.0, 394.74675426151384, 394.7556206059643, 395.2379030406876, 395.39853312828564, 395.5161185084623]], [[82, 239, 0, 67, 60, 10], [0.0, 222.25210910135362, 223.2778538055219, 225.76979425955102, 225.9690244259155, 226.37800246490383]], [[83, 239, 0, 348, 60, 67], [0.0, 243.55902775302746, 247.4792920629926, 248.49346067854583, 248.53369992819887, 248.9196657558418]], [[84, 0, 239, 10, 60, 67], [0.0, 140.3388755833536, 141.53444810363305, 145.4269576110289, 146.31472926537506, 146.86047800548656]], [[85, 79, 125, 382, 180, 276], [0.0, 290.51850199255813, 309.93547715613323, 326.4138477454656, 334.39049029540297, 337.5470337597414]], [[86, 0, 239, 10, 60, 67], [0.0, 293.4280150224242, 293.8690184418902, 296.0776925065446, 296.7069261072279, 296.79117237546]], [[87, 239, 0, 33, 68, 10], [0.0, 267.6733083443323, 269.43644890771554, 269.7628588223368, 270.01851788349626, 270.64737205448716]], [[88, 0, 239, 67, 10, 60], [0.0, 218.10318658836692, 221.53555019454552, 222.37355957937086, 223.02690420664499, 223.4233649375105]], [[89, 239, 0, 67, 60, 10], [0.0, 150.16990377569002, 150.4725888658795, 156.20179256333776, 156.89168237991458, 157.77198737418502]], [[90, 239, 0, 60, 10, 33], [0.0, 243.76423035384005, 245.33242753455974, 245.71324750611228, 246.7225161998799, 246.7630442347476]], [[91, 0, 239, 67, 10, 60], [0.0, 203.13788420676238, 203.6516633862832, 209.00239233080563, 209.27254956157054, 209.51372270092477]], [[92, 0, 239, 10, 67, 60], [0.0, 363.82413333917253, 364.9808214139477, 367.40440933663274, 367.69960565657397, 367.8138115949427]], [[93, 0, 239, 33, 60, 10], [0.0, 176.53894754416092, 177.51901306620653, 180.3108427133543, 180.51869709257267, 180.75950874020432]], [[94, 0, 239, 10, 67, 60], [0.0, 235.39753609585637, 237.2403844205282, 240.7072911234722, 240.73844728252277, 240.9460520531515]], [[95, 239, 0, 33, 10, 67], [0.0, 225.68783751013257, 226.54800815721157, 228.10523887013204, 229.1025971044414, 230.2672360541117]], [[96, 239, 0, 42, 67, 89], [0.0, 394.1953830272496, 395.6475704462243, 396.4353667371265, 397.2631369759847, 397.43049706835535]], [[97, 42, 34, 104, 239, 89], [0.0, 306.7050700591694, 307.6020155980776, 307.78563969100315, 309.1488314711864, 309.780567498996]], [[98, 239, 0, 60, 67, 10], [0.0, 167.30212192318422, 168.44286865284622, 173.2512626216617, 173.5280957078709, 173.73255308087772]], [[99, 0, 239, 10, 67, 60], [0.0, 305.96405017583356, 307.46544521295397, 309.12457035958823, 309.1326576083478, 309.4042662924996]], [[100, 0, 239, 10, 67, 60], [0.0, 215.47157585166542, 215.96527498651258, 220.17720136290225, 220.37014316826134, 220.72833982069452]], [[101, 0, 239, 10, 67, 348], [0.0, 202.07424378183381, 202.37341722667037, 203.70567002417974, 205.17066067057445, 205.3850043211529]], [[102, 0, 239, 67, 10, 60], [0.0, 185.09457042279766, 188.07179480187878, 191.24591498905278, 191.49412523625887, 192.45518958968086]], [[103, 0, 239, 67, 10, 60], [0.0, 139.40588222883568, 141.68627315304755, 146.9251510123437, 147.07141122597554, 147.305804366291]], [[104, 239, 0, 42, 348, 67], [0.0, 200.9601950635996, 203.45023961647232, 206.67849428520617, 207.60780332155147, 207.97836425936234]], [[112, 105, 239, 0, 67, 60], [0.0, 0.0, 340.8826777646526, 341.0513157869355, 344.6026697517011, 344.7738389147297]], [[106, 0, 239, 10, 67, 60], [0.0, 125.777581468241, 129.11622671066561, 135.52859476877933, 136.06983501129116, 136.67113813823312]], [[107, 0, 239, 67, 10, 60], [0.0, 359.11001099941507, 359.8708101527547, 361.0720149776219, 361.33087330035886, 361.3377921004112]], [[108, 0, 239, 10, 67, 60], [0.0, 131.74976280813564, 134.60683489332925, 139.34848402476433, 140.10353314602742, 140.46707799338606]], [[109, 0, 239, 67, 10, 60], [0.0, 166.0511969243221, 168.34488409215172, 172.86989327236827, 172.92483916430282, 173.53385836775485]], [[110, 0, 239, 67, 10, 60], [0.0, 286.1206039417644, 286.31101969711193, 289.5306546809854, 289.56346454620274, 289.851686212104]], [[111, 239, 42, 34, 89, 0], [0.0, 267.4434519669532, 267.5761573832766, 268.86427802889693, 269.26009730370373, 269.4011878221772]], [[112, 105, 239, 0, 67, 60], [0.0, 0.0, 340.8826777646526, 341.0513157869355, 344.6026697517011, 344.7738389147297]], [[113, 0, 239, 10, 67, 60], [0.0, 193.45542122153103, 194.7151766041877, 199.79739738044637, 200.0099997500125, 200.36466754395596]], [[114, 0, 239, 10, 67, 60], [0.0, 239.14639867662652, 239.64557162609952, 243.20567427590993, 243.35570673399053, 243.58160850113458]], [[115, 239, 0, 67, 60, 10], [0.0, 188.30560267819968, 189.19830866051632, 193.92524332845377, 194.5944500750214, 195.53004884160387]], [[116, 42, 104, 239, 89, 34], [0.0, 266.1390613946025, 268.81592214747997, 269.1486578082826, 270.31463149448643, 270.3682673687872]], [[117, 0, 239, 10, 67, 60], [0.0, 216.44398813549893, 218.1857007230309, 222.09007181771995, 222.13734490175216, 222.51067390127602]], [[118, 239, 104, 0, 42, 180], [0.0, 258.6580754587028, 259.1659699883455, 260.7354981585745, 261.5511422265252, 263.81811916545837]], [[119, 79, 239, 0, 42, 348], [0.0, 312.04486856860825, 324.06789412096964, 325.7621831950418, 326.712411763006, 328.5391909650963]], [[120, 0, 239, 67, 10, 60], [0.0, 201.5068237057991, 202.795463460108, 206.99275349634829, 207.01449224631594, 207.24381776062705]], [[121, 0, 239, 10, 67, 60], [0.0, 220.82345889873204, 222.63422917422199, 225.73214215082442, 226.17692189964916, 226.58331800907143]], [[122, 0, 239, 10, 67, 60], [0.0, 138.19551367537227, 140.46707799338606, 146.7310464761974, 147.2175261305528, 147.50932173933958]], [[123, 0, 239, 67, 60, 10], [0.0, 210.459022139703, 211.66482938835162, 213.8644430474594, 214.23818520515897, 214.64622055838765]], [[124, 0, 239, 67, 10, 60], [0.0, 259.636284059066, 260.9635989941892, 262.5109521524769, 262.9695799897775, 263.0285155643775]], [[125, 79, 42, 239, 0, 48], [0.0, 239.46398476597687, 268.2088738278434, 271.58608211762254, 273.04212129266796, 273.2068813189009]], [[126, 0, 239, 10, 67, 60], [0.0, 140.99645385611655, 143.87842089764538, 148.79516121164693, 148.87914561818255, 149.16098685648336]], [[127, 239, 0, 60, 10, 67], [0.0, 215.57829204258948, 215.7475376452765, 219.1346617949794, 219.52904135899652, 220.06817125609055]], [[128, 0, 239, 67, 10, 60], [0.0, 157.20368952413298, 158.9528231897754, 165.32997308413258, 165.36323654307205, 166.4692163734785]], [[129, 239, 0, 67, 60, 10], [0.0, 300.0083332175958, 300.1499625187383, 303.4485129309419, 303.72849718128197, 303.75648141233137]], [[130, 53, 2, 68, 72, 33], [0.0, 201.32560691576222, 235.61409125941512, 236.46564232463032, 236.9936708015638, 237.57104200638597]], [[131, 0, 239, 67, 60, 10], [0.0, 230.73144562456153, 232.08619088605855, 235.7032032026718, 236.07625886564705, 236.1927179233094]], [[188, 132, 239, 0, 67, 60], [0.0, 0.0, 206.77282219866325, 208.24024587000469, 212.52529261243237, 212.98591502726183]], [[133, 0, 239, 67, 10, 60], [0.0, 201.72258178002778, 203.6344764522943, 206.5986447196593, 206.8622730224146, 207.38129134519343]], [[134, 239, 0, 67, 348, 60], [0.0, 163.94206293688023, 167.36188335460378, 170.54324964653395, 171.05846953600397, 171.26879458909028]], [[135, 0, 239, 10, 67, 60], [0.0, 210.25222947688331, 212.082531105228, 216.2868465718616, 216.41395518773737, 216.61717383439384]], [[136, 239, 0, 67, 60, 55], [0.0, 250.88443554752456, 251.71412356083638, 254.17513647089874, 254.7959968288356, 255.0215677153601]], [[137, 0, 239, 67, 10, 60], [0.0, 232.43063481391604, 233.02574965011914, 236.9367004075139, 237.05695518166092, 237.1855813492886]], [[138, 0, 239, 10, 67, 60], [0.0, 139.50627226042562, 142.36923825040296, 148.57994481086604, 148.8858623241307, 149.25481566770299]], [[139, 0, 239, 10, 67, 60], [0.0, 180.0499930574839, 181.89282558693733, 185.81173267584586, 186.11555550248883, 187.01604209265042]], [[140, 0, 239, 10, 67, 60], [0.0, 305.8823303167412, 306.00816982557836, 308.00324673613426, 308.33909904519084, 308.63408755353]], [[141, 0, 239, 67, 10, 60], [0.0, 160.94719630984568, 162.63148526653748, 167.80643611018024, 168.20820431833877, 168.3478541591784]], [[142, 239, 0, 67, 60, 10], [0.0, 277.3229164710338, 278.357683565588, 281.6842203603177, 282.0106380972179, 282.76315177193794]], [[143, 0, 239, 10, 67, 60], [0.0, 165.81917862539302, 167.59773268156107, 171.7963911145982, 171.84004189943624, 172.35718725948158]], [[144, 0, 239, 67, 10, 60], [0.0, 231.95689254686957, 232.59621665022843, 236.2011854330964, 236.2964240101826, 236.48890037378075]], [[145, 0, 239, 67, 10, 60], [0.0, 200.70625301669105, 200.78844588272503, 204.96829023046467, 205.03902067655318, 205.06584308460538]], [[146, 0, 239, 10, 67, 60], [0.0, 223.69622258768698, 225.31977276750482, 228.92356803090414, 229.1047795223836, 229.85865221914096]], [[147, 0, 239, 67, 10, 60], [0.0, 217.48103365581102, 218.908656749796, 222.07881483833617, 222.63872080121195, 222.7307791931775]], [[148, 0, 239, 10, 67, 60], [0.0, 195.17171926280713, 197.37527707390305, 201.60853156550692, 202.0272258879976, 202.4228247999716]], [[149, 0, 239, 10, 67, 60], [0.0, 133.31541546272885, 136.09555466656508, 141.3470905254155, 141.7321417322126, 142.08448191129108]], [[150, 239, 0, 67, 60, 10], [0.0, 213.82469455140114, 214.01869077255847, 218.38269162184076, 218.96803419677494, 218.9931505778206]], [[151, 0, 239, 10, 67, 60], [0.0, 244.34811233156682, 245.75801105966008, 248.31431694527805, 248.34854539537776, 248.7870575411832]], [[152, 10, 0, 33, 60, 67], [0.0, 366.17755256159546, 366.4587289177323, 366.6551513343294, 368.11275446525894, 368.51458587144145]], [[153, 79, 239, 0, 180, 42], [0.0, 262.43856423932823, 273.0604328715532, 275.28712283722973, 276.23178672991276, 277.4292702654138]], [[154, 0, 239, 67, 10, 60], [0.0, 352.1618945882703, 353.0481553556115, 355.19994369368925, 355.26328265105025, 355.36319449262044]], [[155, 0, 239, 10, 67, 60], [0.0, 153.53501229361333, 154.38911878756224, 160.22172137385118, 160.5677427131614, 160.90991268408544]], [[156, 0, 239, 67, 60, 10], [0.0, 230.39965277751614, 231.95904810979027, 234.29255216502295, 234.56129262945325, 234.72111110848124]], [[157, 0, 239, 67, 10, 60], [0.0, 267.4041884488723, 268.77871939571406, 271.56214758320056, 271.68916062294426, 271.78300167596944]], [[158, 79, 104, 180, 42, 239], [0.0, 295.2354992205375, 303.10559216220344, 305.83982736066275, 306.1159910883455, 307.1286375445963]], [[159, 0, 239, 10, 67, 60], [0.0, 226.2476519215172, 227.22455853186293, 231.52969571957718, 231.54481207748967, 231.91593304471343]], [[160, 53, 89, 294, 25, 43], [0.0, 290.2895106613396, 295.1779124528121, 300.0999833388866, 300.5128948980393, 300.61270764889497]], [[161, 239, 0, 34, 42, 67], [0.0, 262.7470266244701, 263.964012698701, 265.81572564466535, 267.20965551416737, 267.27888057233406]], [[162, 0, 239, 10, 67, 60], [0.0, 186.99197843757898, 188.0026595556563, 192.37983262286096, 192.6992475335594, 193.1553778697347]], [[163, 0, 239, 10, 33, 60], [0.0, 254.15349692656207, 254.68608128439215, 255.98437452313374, 256.3630238548453, 257.4315442986737]], [[164, 239, 0, 67, 10, 60], [0.0, 239.4347510283334, 239.88747362044563, 244.8162576300847, 245.03061033266843, 245.19991843391793]], [[165, 0, 239, 67, 10, 60], [0.0, 166.0421633200435, 167.52611736681538, 173.1271209256366, 173.49927953740902, 173.97413600877573]], [[166, 239, 0, 67, 60, 10], [0.0, 173.1069033863179, 173.1790980459247, 178.1684596105607, 178.85189403526036, 179.09494688572315]], [[167, 0, 239, 10, 60, 33], [0.0, 219.29204271929248, 220.1635755523606, 222.4162763828223, 222.54437759691885, 222.88786418286662]], [[168, 0, 239, 67, 10, 60], [0.0, 213.32838535928593, 214.2101771625242, 216.73024708148145, 217.0875399464465, 217.476435505091]], [[169, 0, 239, 10, 67, 60], [0.0, 140.4563989286355, 142.56577429383253, 145.19641868861643, 146.43428560279182, 146.55715608594485]], [[170, 239, 0, 67, 60, 10], [0.0, 348.7047461678719, 349.69701171156726, 352.3762194019341, 352.5691421551239, 352.6102664415771]], [[171, 0, 239, 67, 10, 60], [0.0, 408.53641208587516, 409.18088909429775, 410.0085364964978, 410.08291844455067, 410.276735874702]], [[172, 0, 239, 10, 67, 60], [0.0, 231.46273998205413, 233.36666428605437, 236.15884484812335, 236.4402672981064, 236.8459414893994]], [[173, 0, 239, 67, 60, 10], [0.0, 311.2458835069148, 312.648364780627, 314.13850448488483, 314.49801271232224, 314.6331196806846]], [[174, 0, 239, 67, 60, 10], [0.0, 237.70780382646254, 237.91595154591883, 242.04958169763484, 242.19000805152965, 242.39018131929353]], [[175, 0, 239, 10, 67, 60], [0.0, 240.06665740997852, 240.90039435418117, 244.14749640330126, 244.59149617270018, 244.78357788054328]], [[176, 0, 239, 67, 10, 60], [0.0, 254.0373988215121, 255.67557568137008, 258.21309029559285, 258.30795574275294, 258.4221352748251]], [[177, 0, 239, 10, 67, 60], [0.0, 168.8253535462017, 170.2967997350508, 175.73844200970942, 176.50779019635365, 176.56443583009576]], [[178, 239, 0, 67, 60, 348], [0.0, 111.15304764152893, 112.05355862265152, 115.12167476196652, 115.15641536623133, 118.17360111293893]], [[179, 239, 0, 67, 60, 10], [0.0, 197.13447187135992, 199.0150748059051, 203.46989949375805, 203.8970328376556, 204.70222275295401]], [[180, 239, 0, 348, 79, 67], [0.0, 217.19116004110296, 219.53815158190613, 222.14859891523062, 223.13672938357772, 223.19498202244603]], [[181, 0, 239, 67, 10, 60], [0.0, 260.3958525015328, 261.71549438273615, 264.56190201916826, 264.8848806557294, 264.91319332943766]], [[182, 0, 239, 10, 67, 60], [0.0, 214.3968283347494, 216.043977004683, 218.15590755237412, 219.27380144467784, 219.96136024311178]], [[183, 79, 180, 239, 42, 0], [0.0, 275.2598772069769, 287.4821733603668, 288.8840597886979, 289.71537756908936, 291.04810598937075]], [[184, 239, 0, 67, 60, 10], [0.0, 213.76154939558236, 214.74403367730616, 218.8652553513234, 219.08902300206645, 219.4288039433292]], [[185, 0, 239, 10, 60, 67], [0.0, 218.87667760636353, 219.50398629637687, 224.67977212023337, 224.68644818947138, 224.7398496039365]], [[186, 0, 239, 67, 60, 10], [0.0, 166.4932431061393, 169.1478643081254, 171.86331778480246, 172.71653076645558, 173.01445026355458]], [[187, 0, 239, 67, 60, 10], [0.0, 230.01521688792678, 230.65558740251666, 233.79905902291395, 234.17514812635434, 234.40349826741067]], [[188, 132, 239, 0, 67, 60], [0.0, 0.0, 206.77282219866325, 208.24024587000469, 212.52529261243237, 212.98591502726183]], [[189, 239, 0, 67, 60, 348], [0.0, 188.41443681416771, 189.38056922503955, 194.11336893681485, 194.69463269438117, 195.7396229688818]], [[190, 0, 239, 10, 67, 60], [0.0, 227.13432149281184, 228.69411885748178, 232.4607493750289, 232.63920563825866, 232.85403153048478]], [[191, 0, 239, 67, 10, 60], [0.0, 205.3703970877984, 205.5139897914495, 210.48990474604713, 211.04264971801317, 211.1066081391106]], [[192, 0, 239, 67, 10, 60], [0.0, 297.07743098391035, 298.0234890071586, 300.2498959200486, 300.30817504690077, 300.462976088569]], [[193, 0, 239, 10, 67, 60], [0.0, 226.67818598180108, 228.61758462550512, 232.0280155498469, 232.44354153213206, 232.9291737846507]], [[194, 0, 239, 67, 10, 60], [0.0, 184.87833837418594, 185.5181931779199, 191.44973230589798, 191.78633945096297, 191.8671415328847]], [[195, 0, 239, 67, 60, 10], [0.0, 189.16130682568252, 190.11312421818752, 193.8169239256469, 194.38878568477145, 194.59188061170485]], [[196, 0, 239, 10, 67, 60], [0.0, 449.54087689552773, 450.58850406995515, 451.4432411721323, 451.4598542506299, 451.75435803099896]], [[197, 0, 239, 10, 67, 60], [0.0, 164.76953601925328, 167.15262486721528, 172.27594144279112, 172.37169141132193, 172.6151789385858]], [[198, 0, 239, 10, 67, 60], [0.0, 207.2245159241541, 207.4777096461208, 211.93867037423823, 212.32286735064596, 212.47823417940953]], [[199, 0, 239, 10, 67, 60], [0.0, 222.35557110178283, 224.13611935607344, 227.75425352778814, 227.8793540450736, 228.12058214900296]], [[200, 0, 239, 67, 10, 60], [0.0, 255.4623259895674, 255.96093451931293, 259.71522866401193, 259.83263844251746, 259.9923075785128]], [[201, 203, 0, 239, 10, 67], [0.0, 176.10224302944013, 185.02702505309867, 186.5851012272952, 191.09421759959145, 191.66637681137502]], [[202, 0, 239, 10, 67, 60], [0.0, 219.62240322881453, 220.64677654568172, 224.0, 224.0111604362604, 224.64861450718988]], [[203, 201, 0, 239, 10, 67], [0.0, 176.10224302944013, 186.89836810416512, 188.60540819393276, 193.0362660227347, 193.23043238579166]], [[204, 0, 239, 67, 10, 60], [0.0, 180.67650649710936, 181.8818297686715, 186.6413673331826, 187.0561413052242, 187.4593289223025]], [[205, 0, 239, 10, 67, 60], [0.0, 229.19205919926634, 231.36551169091732, 233.91237675676763, 234.1580662714825, 234.5165239380799]], [[206, 0, 239, 10, 33, 67], [0.0, 227.4884612458399, 228.84929538890873, 230.66642581875672, 230.90474226399076, 231.05843416763648]], [[207, 0, 239, 67, 10, 60], [0.0, 209.65447765311382, 210.15232570685484, 213.98130759484576, 214.1985060638846, 214.625254804741]], [[208, 0, 239, 67, 10, 60], [0.0, 192.16659439142902, 194.23954283306992, 198.03282556182447, 198.13631671150043, 198.32549004099297]], [[209, 0, 239, 67, 10, 60], [0.0, 253.2785028382788, 254.36784387968538, 257.7886731413931, 257.8565492672234, 258.0949437706985]], [[210, 0, 239, 67, 60, 10], [0.0, 195.78048932414077, 198.39606850943392, 198.53211327137984, 198.58751219550538, 199.18333263604163]], [[211, 0, 239, 67, 60, 10], [0.0, 250.5972864976794, 251.09360804289702, 254.82935466700064, 255.18228778659383, 255.24693925686944]], [[212, 0, 239, 10, 67, 60], [0.0, 154.35349040433132, 157.2768260107, 162.1141573089778, 162.9539812339668, 163.24827717314508]], [[213, 0, 239, 10, 67, 60], [0.0, 212.53470304870214, 214.00934559032697, 216.84787294322257, 217.08984315255285, 217.42125011139092]], [[214, 0, 239, 10, 67, 60], [0.0, 168.75722206767924, 171.6682847820179, 176.7399219191861, 177.03107071923844, 177.2681584492827]], [[215, 239, 0, 10, 67, 60], [0.0, 406.3643685167291, 406.4320361388851, 407.54263580636564, 407.5929341880205, 407.6837009251167]], [[216, 0, 239, 67, 60, 10], [0.0, 234.61670869739862, 235.457002444183, 238.23937541892607, 238.54559312634555, 238.7655754081815]], [[217, 0, 239, 67, 10, 60], [0.0, 213.39634486091836, 214.92556851151983, 218.86297082878136, 218.9748844045819, 219.0821763631172]], [[218, 0, 239, 10, 67, 60], [0.0, 158.33508770957877, 161.04347239177378, 166.39711535961192, 166.652332716947, 166.90416411821485]], [[219, 0, 239, 67, 10, 60], [0.0, 200.47443727318452, 203.31994491441316, 206.18195847357742, 206.36860226303807, 206.5841233008965]], [[220, 0, 239, 67, 10, 60], [0.0, 149.6094916775002, 151.7300233968215, 158.0632784678339, 158.09174551506476, 158.65055940651453]], [[221, 0, 239, 67, 10, 60], [0.0, 183.58649187780674, 186.89301752607025, 189.74983530954646, 190.0526242912736, 190.4862199740443]], [[222, 79, 239, 0, 348, 67], [0.0, 315.7974034092111, 317.57518794767327, 318.57024343149186, 321.7203754815663, 321.7328083985219]], [[223, 0, 239, 67, 10, 60], [0.0, 157.97468151574162, 159.8155186457185, 164.97575579460153, 165.46298679765212, 165.5203914930121]], [[224, 239, 0, 67, 10, 60], [0.0, 236.5480923617859, 237.1286570619418, 241.01659693888303, 241.2343259156955, 241.52225570327883]], [[225, 0, 239, 10, 67, 60], [0.0, 195.26136330569855, 197.40314080581393, 200.84571192833567, 201.50930499607207, 202.08414089185723]], [[226, 0, 239, 67, 60, 294], [0.0, 283.7974629907745, 284.2076705509547, 286.4611666526547, 286.799581589653, 287.0139369438355]], [[227, 0, 239, 67, 60, 10], [0.0, 165.03635963023422, 165.5234122412899, 171.68575945604806, 172.2207885244984, 172.23530416264836]], [[228, 0, 239, 10, 67, 60], [0.0, 160.27788368954714, 161.58589047314743, 167.84218778364396, 167.95237420173612, 168.5170614507623]], [[229, 239, 0, 67, 60, 10], [0.0, 408.10292819336644, 408.9193074434124, 410.86250741580204, 411.12285268517974, 411.23107859207335]], [[230, 0, 239, 67, 10, 60], [0.0, 287.0017421549911, 287.7620544825186, 290.1534077001337, 290.31362351773987, 290.4771935970189]], [[231, 0, 239, 67, 60, 10], [0.0, 175.49074049647177, 175.90338257122858, 180.94750620000266, 181.64801127455263, 181.88732776089708]], [[232, 239, 0, 67, 10, 60], [0.0, 315.2871706872958, 315.40925794909697, 318.750686273771, 318.9278915366293, 319.09246308867904]], [[233, 0, 239, 60, 10, 67], [0.0, 280.349781523011, 281.19921763760294, 283.10951944433094, 283.1501368532249, 283.6353292521931]], [[234, 239, 0, 60, 67, 348], [0.0, 260.23450962545303, 262.0934947685654, 265.1678713569953, 265.17541364161195, 265.2470546490573]], [[235, 0, 239, 67, 60, 10], [0.0, 217.35684944349003, 218.29567105190154, 222.10132822655518, 222.4882019343947, 222.71057451320087]], [[236, 0, 239, 348, 10, 67], [0.0, 228.814335215257, 229.45369903316006, 233.48019187931126, 234.23492480840682, 234.98723369579037]], [[237, 0, 239, 67, 10, 60], [0.0, 183.67090134259155, 184.27696546231707, 189.14544668059023, 189.55474143370827, 189.79989462589276]], [[238, 0, 239, 67, 60, 10], [0.0, 220.40871126160147, 222.00225224082752, 224.69312406035036, 224.84439063494557, 225.28204544525957]], [[239, 0, 10, 67, 60, 33], [0.0, 52.86775955154521, 72.8766080440082, 75.03332592921628, 75.37904218017101, 81.68843247363729]], [[240, 239, 34, 0, 89, 67], [0.0, 315.03015728656834, 315.48375552474965, 315.58992379352037, 317.4413331625231, 317.89306378088844]], [[241, 0, 239, 67, 10, 60], [0.0, 133.43912469736904, 135.59867255987427, 142.29898102235308, 142.45701105947717, 142.86707108357754]], [[242, 0, 67, 60, 239, 10], [0.0, 108.12955192730617, 109.07336980216573, 110.98198051936178, 112.1739720255996, 117.73699503554522]], [[243, 0, 239, 10, 67, 60], [0.0, 176.93219040072952, 178.84630272946657, 182.50753409106156, 183.20480343047777, 183.58649187780674]], [[244, 239, 0, 67, 348, 60], [0.0, 252.3806648695577, 254.05314404667382, 257.9689903845034, 258.2750471880704, 258.3486016993318]], [[245, 239, 0, 42, 67, 60], [0.0, 338.40508270414614, 339.1474605536654, 341.2022860415797, 341.9268927709548, 342.2250721382056]], [[246, 239, 0, 34, 67, 348], [0.0, 214.6578673144779, 217.3177397268801, 217.64650238402638, 220.56745000112778, 220.58558429779586]], [[247, 0, 239, 67, 60, 10], [0.0, 271.0719461692781, 271.9724250728371, 274.4904369918923, 274.80720514571664, 275.6954841849971]], [[248, 0, 239, 67, 60, 10], [0.0, 291.9897258466469, 293.1398983420715, 295.8800432607782, 295.9408724728641, 296.0304038439295]], [[249, 0, 239, 67, 10, 60], [0.0, 138.56767299770897, 141.088624630053, 148.05404418657398, 148.06417527545278, 148.45201244846766]], [[250, 0, 239, 67, 10, 60], [0.0, 257.63928271907605, 258.6058777367599, 261.65435215184175, 261.71740484728946, 261.8644687619915]], [[251, 79, 42, 382, 239, 0], [0.0, 323.65877093012637, 326.165602110339, 327.8261734517243, 328.58636612008115, 330.6992591464335]], [[252, 0, 239, 348, 67, 10], [0.0, 173.24260445975753, 174.32727841620198, 178.63930138690085, 178.7064632295094, 179.36833611315015]], [[253, 0, 239, 67, 60, 10], [0.0, 216.92164483979002, 217.13129668474787, 221.8422863207103, 222.3285856564558, 222.59155419736842]], [[254, 0, 239, 10, 67, 60], [0.0, 191.56200040717889, 193.62592801585225, 197.8029322330688, 198.27001790487637, 198.501889159776]], [[255, 0, 239, 67, 10, 60], [0.0, 177.89603705535433, 180.24427868867295, 185.00270268296083, 185.24848177515517, 185.43462459853606]], [[256, 239, 0, 89, 67, 60], [0.0, 214.18683432928364, 215.4460489310491, 216.69563908856125, 218.9383474862273, 219.54953882893946]], [[257, 239, 0, 67, 60, 10], [0.0, 282.6764935398768, 283.36725287160476, 286.3284826907725, 286.7437880756966, 286.7699426369507]], [[258, 79, 42, 239, 0, 180], [0.0, 303.693924865151, 310.74587688334657, 312.79386183235755, 314.6696680647819, 315.74673394985416]], [[259, 0, 239, 67, 10, 60], [0.0, 129.82295636750843, 131.07631364972087, 138.60375175297384, 138.9100428334827, 139.38794782907166]], [[260, 0, 239, 67, 10, 60], [0.0, 302.18371895256035, 303.16991935216794, 304.33205549202336, 304.4256887977754, 304.70641607947806]], [[261, 0, 239, 60, 33, 10], [0.0, 357.4618860801806, 358.1535983345693, 359.2770518694452, 359.40923749953896, 359.559452663951]], [[262, 79, 239, 0, 348, 67], [0.0, 377.3950185150832, 386.0738271367278, 387.02454702512085, 389.33404680299924, 389.37514044941287]], [[263, 0, 239, 296, 67, 10], [0.0, 339.3979964584352, 339.77639706136154, 340.0088234149226, 341.970758983864, 342.02192912151116]], [[264, 239, 0, 67, 60, 10], [0.0, 358.4299094662721, 359.46488006479854, 362.0, 362.19607949286257, 362.42930345103167]], [[265, 0, 239, 67, 10, 60], [0.0, 153.50895739337167, 155.76263993653933, 161.12107248898263, 161.4094173212951, 161.6168308066954]], [[266, 0, 239, 10, 67, 60], [0.0, 229.3294573315866, 230.21511679296822, 234.3117581343284, 234.53997527074142, 234.7402820139739]], [[267, 239, 0, 60, 10, 67], [0.0, 297.00673393039426, 297.45924090537176, 300.341472327749, 300.6492973549082, 300.6775681689607]], [[268, 239, 0, 67, 60, 10], [0.0, 314.25149164323784, 315.4155988533224, 317.9245193438216, 318.2389039699578, 318.47291878588356]], [[269, 0, 239, 67, 10, 60], [0.0, 200.9601950635996, 202.27209397245088, 206.05824419323775, 206.27408950229304, 206.5768622087188]], [[270, 239, 0, 348, 67, 10], [0.0, 201.02487408278608, 201.8662923818635, 203.11819219360927, 204.2473990042468, 204.26453436659042]], [[271, 239, 0, 10, 60, 67], [0.0, 157.30543537970962, 157.57537878742352, 163.7864463256957, 164.18587028121513, 164.872678148928]], [[272, 0, 239, 67, 10, 60], [0.0, 170.01176429882727, 171.2395982242425, 177.050840156154, 177.56688880531752, 177.58659859347495]], [[273, 0, 239, 67, 60, 10], [0.0, 189.54682798717576, 190.93192504136127, 195.93621411061304, 196.1606484491729, 196.82479518597245]], [[274, 0, 239, 10, 67, 60], [0.0, 152.1873844968761, 152.73506473629428, 159.3267083699403, 159.97499804656977, 160.4556013356966]], [[275, 0, 239, 67, 60, 10], [0.0, 190.08682226814145, 192.04686927935066, 194.77166118303762, 195.08459703420976, 195.36888186197925]], [[276, 79, 239, 0, 180, 67], [0.0, 248.6986127826209, 290.43587932622927, 292.3251614213186, 293.0921356843271, 295.057621491125]], [[277, 0, 239, 10, 67, 60], [0.0, 124.31814026923021, 126.99606293110035, 133.6899397860587, 133.79835574475496, 134.39494038095333]], [[278, 0, 239, 10, 67, 60], [0.0, 196.25493624365222, 199.5419755339713, 201.8662923818635, 202.1459868510874, 202.63514009174224]], [[279, 0, 239, 10, 67, 60], [0.0, 199.84493989090643, 202.06187171260194, 203.4649847025281, 204.31103739152223, 204.5116133621756]], [[280, 0, 239, 67, 60, 10], [0.0, 218.2131985009156, 218.86982432487125, 222.11708624056817, 222.57133687876345, 223.43455417638518]], [[281, 0, 239, 10, 67, 60], [0.0, 158.25296205758679, 161.2854612170607, 166.61332479726823, 166.74231616479364, 166.99401186868948]], [[282, 239, 0, 67, 10, 60], [0.0, 195.29464918425185, 195.54283418218117, 201.23617964968426, 201.72506041639943, 201.89601283829256]], [[283, 0, 239, 10, 33, 60], [0.0, 174.38463235044537, 175.30259553126987, 179.3655485314836, 179.5995545651492, 179.94165721144174]], [[284, 0, 239, 67, 10, 60], [0.0, 196.60620539545542, 199.58206332233365, 201.79940535095736, 202.1435133760171, 202.57097521609555]], [[285, 0, 239, 10, 67, 60], [0.0, 202.67214904865443, 204.55561590921917, 209.40869131915227, 209.78798821667556, 210.0833168054998]], [[286, 0, 239, 67, 10, 60], [0.0, 132.1060180309739, 134.5399568901373, 141.0070920202243, 141.16656828017037, 141.573302567963]], [[287, 239, 0, 60, 67, 348], [0.0, 114.17530380953667, 114.7214016650773, 116.50751048752178, 116.62761251093156, 120.00833304400157]], [[288, 0, 239, 67, 60, 10], [0.0, 341.9327419244902, 341.96929686742345, 344.1409594918919, 344.3849590211512, 344.5025399035543]], [[289, 0, 239, 10, 67, 60], [0.0, 179.84993744786235, 182.00274723201295, 186.87428929630744, 186.8876667947888, 186.94651641579205]], [[290, 0, 239, 10, 67, 60], [0.0, 181.64801127455263, 183.15294155431957, 187.68057970924963, 187.90156997747516, 188.1834211613765]], [[291, 0, 239, 67, 60, 10], [0.0, 142.90906199398273, 145.79437574886077, 149.70637928959474, 150.09996668887038, 150.52242357868147]], [[292, 0, 239, 10, 33, 67], [0.0, 350.823317355047, 351.5935152985618, 352.33932508307953, 352.73361053350163, 352.74636780553817]], [[293, 0, 239, 10, 67, 60], [0.0, 169.54055562018192, 171.14029332684925, 176.3746013461122, 176.87566254292872, 177.40631330367023]], [[294, 0, 239, 67, 60, 10], [0.0, 119.87493482792806, 122.65806129235861, 129.0852431535069, 129.70350804816346, 129.94614268996213]], [[295, 239, 0, 67, 60, 10], [0.0, 226.66495097389893, 227.5917397446577, 231.7131847780786, 232.29076606701352, 232.86476762275566]], [[296, 0, 239, 10, 67, 60], [0.0, 106.40018796975878, 110.66164647247935, 118.1397477566293, 119.13018089468345, 119.48221624995077]], [[297, 351, 239, 0, 348, 67], [0.0, 462.9330405145003, 465.7821379142828, 466.2660184915903, 467.3232286116324, 467.87712062036115]], [[298, 0, 239, 67, 10, 60], [0.0, 164.14018398917432, 165.12722367919832, 170.4435390385919, 170.985379491932, 171.0]], [[299, 239, 0, 67, 348, 60], [0.0, 230.0478211155237, 230.93938598688618, 234.24346308915432, 234.75519163588268, 234.80630315219395]], [[300, 0, 239, 67, 60, 10], [0.0, 240.72598530279194, 241.50362316122713, 243.80319932273244, 243.9672109116305, 243.96926035875913]], [[301, 0, 239, 10, 67, 60], [0.0, 163.82612734237478, 165.48715962273326, 170.21457046915813, 171.09061926359377, 171.33592734741887]], [[302, 0, 239, 67, 10, 60], [0.0, 158.28771272590933, 159.43023552638942, 165.3118265581746, 165.83425460380616, 165.8613879117138]], [[303, 0, 239, 67, 10, 60], [0.0, 278.86197302608326, 279.26868782590003, 283.1130516242584, 283.24900705915985, 283.4554638739568]], [[304, 0, 239, 10, 67, 60], [0.0, 190.9607289470796, 192.8393113449641, 196.70282153543198, 196.9746176541536, 197.33980845232418]], [[305, 0, 239, 10, 67, 60], [0.0, 325.57948338309035, 327.1314720414409, 329.4692701907114, 329.68014802229146, 329.8317753037145]], [[306, 0, 352, 239, 67, 60], [0.0, 356.0238756038701, 356.70435937902414, 357.25341146026864, 357.7652861863487, 358.0195525386847]], [[307, 0, 239, 10, 67, 60], [0.0, 241.84912652312806, 242.7714975033107, 245.74173434726143, 245.8698842884179, 246.22347572885897]], [[308, 239, 0, 42, 79, 348], [0.0, 322.71039648576556, 324.7167996885902, 325.4243383645421, 325.6224807963971, 327.10854467592253]], [[309, 0, 239, 10, 67, 60], [0.0, 104.54185764563398, 106.69582934679312, 114.00438588054409, 114.44649404852908, 114.84772527133482]], [[310, 0, 239, 67, 60, 10], [0.0, 201.45967338402988, 203.19694879598956, 206.49213060065995, 206.6954281061872, 207.01207694238516]], [[311, 239, 0, 67, 60, 348], [0.0, 162.5453782794208, 162.67759526130203, 164.92119330152812, 165.96686416269966, 167.37682037845025]], [[312, 0, 239, 67, 10, 60], [0.0, 206.6131651178114, 206.7413843428548, 211.84900282984577, 212.31344752511558, 212.39585683341377]], [[313, 0, 239, 10, 67, 60], [0.0, 230.9198995322837, 231.8469322635087, 236.07625886564705, 236.31546711969574, 236.62417458915732]], [[314, 239, 0, 67, 60, 10], [0.0, 191.87756512943352, 192.04686927935066, 197.7801810091193, 198.23975383358405, 198.5698869416005]], [[315, 0, 239, 10, 67, 60], [0.0, 285.1052437258915, 286.0174819831823, 288.6884133456, 288.87367481305733, 289.29223978530774]], [[316, 0, 239, 10, 67, 60], [0.0, 163.707055437449, 165.64117845511726, 171.27755252805312, 171.44386836512993, 171.688671728801]], [[317, 0, 239, 10, 67, 60], [0.0, 173.78434912269861, 174.55658108475888, 178.74842656650156, 178.8798479426903, 178.90779748239035]], [[318, 0, 239, 67, 60, 10], [0.0, 254.24987708944914, 254.6880444779456, 257.4917474405733, 257.9030825717289, 258.10269274069964]], [[319, 239, 0, 67, 60, 10], [0.0, 218.3506354467511, 219.75440837443966, 223.95312009436262, 224.6085483680441, 225.55265460641337]], [[320, 0, 239, 67, 10, 60], [0.0, 211.0213259365034, 212.33228675827894, 215.89117629027825, 216.01851772475433, 216.43243749493743]], [[321, 0, 239, 67, 60, 10], [0.0, 241.92974186734463, 242.8847463304355, 246.1361411901958, 246.35949342373635, 246.7873578609731]], [[322, 0, 239, 10, 67, 60], [0.0, 211.33859089148862, 213.30494602798126, 216.8732348631338, 217.09675262426197, 217.36375042771047]], [[323, 0, 239, 67, 60, 10], [0.0, 143.09437445266673, 145.9143584435747, 151.08606818631557, 151.46946887079258, 151.6904743218901]], [[324, 0, 239, 10, 67, 60], [0.0, 228.08770243044668, 229.13969538253298, 231.54265265820897, 232.5833184043946, 233.09440147716975]], [[325, 239, 0, 33, 10, 60], [0.0, 180.29697723478338, 180.41064270158788, 182.49383551232629, 183.33575755972973, 184.13853480464104]], [[326, 0, 239, 10, 67, 60], [0.0, 254.9568590958086, 256.378626254218, 259.45519844474114, 260.06922155457, 260.27677575995904]], [[327, 0, 239, 67, 60, 10], [0.0, 318.13833469105856, 318.64243283028077, 321.560258738545, 321.7530108639234, 321.7607807051692]], [[328, 0, 239, 10, 67, 60], [0.0, 215.46229368499723, 216.34463247328324, 220.14086399394367, 220.54704713507275, 220.97284901091356]], [[329, 239, 0, 67, 60, 10], [0.0, 211.1989583307645, 212.02358359390118, 216.96313050838845, 217.51551668789057, 217.9587116864109]], [[330, 0, 239, 10, 67, 60], [0.0, 176.4822937294277, 177.87355059142436, 183.06829326784035, 183.14748155516637, 183.4747939091362]], [[331, 0, 239, 10, 67, 60], [0.0, 276.5736791525904, 278.5964823898536, 281.09606898709916, 281.3289889080043, 281.47824072208493]], [[332, 0, 239, 67, 10, 60], [0.0, 222.93272527827762, 222.9484245290825, 227.41591852814526, 227.56757238235855, 227.86399452304877]], [[333, 239, 0, 79, 42, 348], [0.0, 266.61957917602376, 268.47159998778267, 268.72662689060047, 270.138853184802, 271.66523517005265]], [[334, 0, 239, 60, 67, 10], [0.0, 153.18942522250026, 153.32318807016765, 158.5812094795597, 158.62534475927862, 158.83639381451596]], [[335, 0, 239, 67, 60, 352], [0.0, 253.81292323284092, 254.86074629098925, 256.4995126701024, 256.9591407208547, 257.1575392633862]], [[336, 0, 239, 10, 67, 60], [0.0, 251.13741258522197, 252.76273459511393, 256.1093516449565, 256.4039781282654, 256.5365471039166]], [[337, 0, 239, 67, 60, 10], [0.0, 174.4820907715173, 177.1863425888124, 180.0583238842348, 180.34688796871433, 180.5602392554906]], [[338, 239, 0, 67, 60, 348], [0.0, 215.03255567471638, 216.64717861075414, 220.44727260730625, 220.96379793984352, 221.14022700540036]], [[339, 0, 239, 67, 60, 10], [0.0, 263.79347982844456, 265.2998303806469, 267.9813426341468, 268.13429471069156, 268.2517474314007]], [[340, 0, 239, 67, 60, 10], [0.0, 202.52407264322926, 202.94580557380337, 207.73300171133135, 208.00240383226344, 208.0672968056249]], [[341, 239, 348, 0, 33, 67], [0.0, 348.3073355529567, 350.01714243733835, 350.22135857197514, 350.2984441872387, 350.7648785155093]], [[342, 239, 33, 0, 60, 10], [0.0, 277.65626231007286, 277.9568311806709, 278.3271456398028, 279.50491945581206, 279.5138636991017]], [[343, 0, 239, 10, 67, 60], [0.0, 458.0589481715208, 458.94770943975743, 460.72551481332135, 460.9566140104728, 461.015184131716]], [[344, 0, 239, 10, 67, 60], [0.0, 247.33580412063273, 247.7579463912308, 251.25087064525766, 251.46371507635052, 252.01190448072091]], [[345, 0, 239, 10, 60, 67], [0.0, 292.12839642869363, 293.5166094107793, 295.9138388112323, 296.2127613726323, 296.28027271487383]], [[346, 387, 0, 239, 67, 10], [0.0, 0.0, 307.3694844970789, 307.77751704762323, 310.6557580345164, 311.20732639190874]], [[347, 0, 239, 60, 67, 10], [0.0, 256.55798564846896, 256.7430622236948, 258.26149538791105, 258.55947091530027, 258.7817613356861]], [[348, 0, 67, 60, 239, 10], [0.0, 82.50454532933323, 82.64381404557754, 84.78207357690657, 88.40814442120137, 94.39809320108114]], [[349, 0, 239, 10, 67, 60], [0.0, 254.76655981505894, 255.6384165183316, 259.5765782962708, 259.5939136420575, 259.8518808860155]], [[350, 0, 239, 10, 67, 60], [0.0, 235.85164828764712, 237.11811402758752, 240.8485000991287, 240.9502023240487, 241.2156711327023]], [[351, 0, 239, 67, 348, 60], [0.0, 332.02861322482437, 332.1144381083123, 334.1376961673136, 334.36207918961145, 334.4248794572557]], [[352, 0, 239, 67, 60, 10], [0.0, 106.91585476438937, 108.7382177525455, 110.91438139393827, 111.6870628139177, 113.86395390991831]], [[353, 239, 0, 10, 33, 60], [0.0, 202.3635342644519, 203.43549346168678, 207.06037766796427, 207.64392598869827, 208.0264406271472]], [[354, 239, 0, 67, 60, 48], [0.0, 224.68199749868702, 226.04645540242387, 229.59965156767987, 229.95651762887695, 230.31065976198323]], [[355, 239, 42, 34, 0, 89], [0.0, 246.23972059763227, 247.69134017966798, 248.03628766775236, 248.23980341597115, 249.85795964907743]], [[356, 239, 0, 67, 10, 60], [0.0, 218.0619178123498, 218.26589289213283, 222.12383933292708, 222.46797522340154, 222.50617968946392]], [[357, 0, 239, 10, 67, 60], [0.0, 179.5995545651492, 180.4632926664035, 185.18099254513137, 185.52897347853784, 185.94891771666755]], [[358, 0, 239, 67, 60, 10], [0.0, 202.37835852679504, 203.90684147423792, 207.8076033257686, 207.9326814139615, 208.27145747797513]], [[359, 0, 239, 10, 67, 60], [0.0, 269.6182486405547, 270.42004363582225, 273.492230236985, 273.57814240176424, 274.27540903259995]], [[360, 0, 239, 10, 67, 60], [0.0, 196.43574012892867, 196.6011190202131, 200.70127054904262, 201.12185361118767, 201.6829194552677]], [[361, 0, 239, 67, 60, 10], [0.0, 182.09063677191094, 182.8879438344693, 187.1416575752176, 187.7391807801451, 188.03988938520465]], [[362, 42, 34, 239, 54, 89], [0.0, 258.47630452325797, 261.0383113644432, 262.16216355530787, 263.19764436635825, 263.24133414036635]], [[363, 0, 239, 67, 10, 60], [0.0, 321.69084537798085, 321.8105032468642, 324.6413405590853, 324.8491957816734, 324.93076185550666]], [[364, 0, 239, 10, 67, 60], [0.0, 223.5329953273118, 224.88219138028694, 228.9475922563939, 229.05021283552654, 229.23350540442382]], [[365, 0, 239, 67, 10, 60], [0.0, 444.285943959518, 444.5323385311804, 446.6911684822076, 446.89148570989806, 446.99776285793644]], [[366, 0, 239, 67, 60, 10], [0.0, 206.9081922012756, 207.92787210953705, 211.48522407014633, 211.68372634664195, 211.7616584748051]], [[367, 0, 239, 10, 67, 60], [0.0, 201.06715296139248, 202.06682063119615, 206.15528128088303, 206.26924152669974, 206.96618081222834]], [[368, 239, 42, 0, 67, 294], [0.0, 202.06434618705003, 202.89652535221, 203.11326889201504, 207.340299990137, 207.88698852982597]], [[369, 0, 239, 67, 60, 10], [0.0, 153.30688177638993, 154.92578868606736, 160.08122938058665, 160.59887919907786, 161.03105290595352]], [[370, 0, 239, 10, 67, 60], [0.0, 141.13468744429912, 142.53420642077467, 148.39474384222643, 148.95636945092346, 148.96308267486947]], [[371, 42, 89, 34, 104, 180], [0.0, 287.34648075102643, 287.43694960808364, 287.61606352914293, 288.43716820132596, 289.76369682898513]], [[372, 0, 239, 10, 67, 60], [0.0, 193.5794410571536, 194.6997688750554, 199.55199823604875, 199.81991892701788, 200.29478275781423]], [[373, 0, 239, 10, 67, 60], [0.0, 280.9644105576363, 282.86392488261913, 283.58596580225895, 284.66120213334307, 284.9666647171209]], [[374, 0, 239, 67, 10, 60], [0.0, 236.68967024354907, 236.70023236152517, 239.65183078791617, 239.70398411373975, 239.73109935926126]], [[375, 0, 239, 10, 67, 60], [0.0, 158.52444606432158, 159.06916734552928, 162.77591959500643, 163.78949905290023, 164.3198101264726]], [[376, 251, 42, 79, 239, 382], [0.0, 468.5242789866924, 468.7355331100897, 470.11487957732203, 472.84458334636764, 473.5894846805617]], [[377, 34, 239, 0, 42, 348], [0.0, 306.7034398242054, 306.9934852728963, 308.6000648088072, 308.7458501745408, 309.42042595795124]], [[378, 0, 239, 10, 67, 60], [0.0, 513.5231250878581, 513.9581695040949, 515.7402446968823, 515.7664200003719, 516.2354114161484]], [[379, 0, 239, 67, 10, 60], [0.0, 172.73679399595213, 174.92569851225406, 179.51323071016242, 179.91664736760742, 180.13050824332896]], [[380, 0, 239, 10, 67, 60], [0.0, 305.31786714832134, 306.52895458667524, 308.9158461458395, 309.434968935316, 309.5803611342296]], [[381, 0, 239, 10, 67, 60], [0.0, 231.8296788592867, 232.09049959013834, 236.17154782064668, 236.32604596192948, 236.7023447285641]], [[382, 79, 239, 42, 0, 180], [0.0, 280.4050641482782, 295.97128239070764, 296.0912021658192, 298.328677803526, 299.85829986845454]], [[383, 239, 0, 60, 10, 67], [0.0, 178.01685313475238, 178.64769799804307, 183.9347710466947, 184.23083346714796, 184.39088914585776]], [[384, 0, 239, 10, 60, 67], [0.0, 374.00802130435653, 374.626480644388, 376.16485747608056, 376.4080232938719, 376.5169318901874]], [[385, 79, 0, 239, 67, 60], [0.0, 288.2845816203149, 295.6163053689698, 296.81307248839295, 299.6164214458213, 299.7565679013556]], [[386, 42, 239, 0, 348, 67], [0.0, 565.054864592811, 566.1218950014211, 566.816548805696, 567.8485713638804, 567.982394093338]], [[346, 387, 0, 239, 67, 10], [0.0, 0.0, 307.3694844970789, 307.77751704762323, 310.6557580345164, 311.20732639190874]], [[388, 0, 239, 67, 60, 10], [0.0, 384.56728930058523, 385.5295060044043, 387.33577165038605, 387.50096774072705, 387.78086595395604]], [[389, 79, 239, 0, 42, 180], [0.0, 308.8705230351385, 311.9471109018322, 313.4230368048909, 313.8630274498734, 314.19579882614596]]]
#only on material count
# arr = [[[0, 13, 342, 303, 304, 335], [0.0, 9687.418541593008, 11335.890084153074, 11408.62406252393, 11560.403323413937, 11634.421085726612]], [[1, 6, 126, 25, 28, 3], [0.0, 8013.441208369847, 8492.494333233317, 11592.527075663873, 12147.094632050908, 12305.700630195746]], [[2, 159, 223, 281, 194, 257], [0.0, 42330.0846207517, 42776.655502738875, 43067.1848975528, 43157.37998303419, 43842.620667565025]], [[3, 69, 19, 33, 25, 92], [0.0, 5559.671842833892, 5840.552627962528, 7440.9936164466635, 8466.559986204551, 8515.833429559318]], [[4, 15, 6, 10, 126, 42], [0.0, 10411.519485646655, 10939.462601060437, 11086.787902724576, 11756.45422735954, 11958.056781935768]], [[46, 5, 214, 284, 242, 84], [0.0, 0.0, 12249.800284086268, 12582.802112407237, 12713.466757733706, 12732.93029903172]], [[6, 126, 15, 1, 28, 298], [0.0, 4320.728410812232, 6204.547364635071, 8013.441208369847, 8310.608521642684, 8578.706429293405]], [[7, 116, 109, 59, 104, 82], [0.0, 1523.9622698741593, 1576.8414631788448, 1597.5847395365292, 2123.8589877861477, 2176.944877574993]], [[8, 342, 339, 224, 172, 304], [0.0, 11182.32846950938, 11263.541538965443, 11553.886186041475, 11602.16178132334, 11692.529281554098]], [[9, 338, 163, 177, 38, 195], [0.0, 6997.112833161975, 7586.394400504102, 7645.985024834929, 7847.491446315823, 8485.491618050188]], [[10, 22, 23, 269, 171, 4], [0.0, 7164.204212611475, 8537.159890736497, 10800.238284408359, 11073.824994102082, 11086.787902724576]], [[11, 288, 227, 116, 109, 52], [0.0, 2621.9345910987176, 3169.057904172784, 3768.365958873952, 3771.1162803604984, 4019.8308422121445]], [[12, 150, 29, 15, 67, 157], [0.0, 4709.397307511865, 5284.6540094882275, 5627.924039999119, 5806.233632915575, 6318.48929729251]], [[13, 343, 335, 345, 211, 303], [0.0, 5951.2965814182035, 6129.670953648328, 6142.810431716089, 6752.343000766475, 6863.08640481817]], [[14, 13, 374, 343, 68, 192], [0.0, 7616.510355799433, 7839.158245628162, 7952.340850340861, 8349.228826664174, 8369.972401388191]], [[15, 29, 150, 157, 261, 12], [0.0, 4580.116264899833, 4651.190815264409, 5157.209322879962, 5419.697039503223, 5627.924039999119]], [[16, 67, 366, 175, 29, 308], [0.0, 7992.256064466404, 8088.71528736177, 8351.43957650416, 8888.816906652988, 8956.038912376385]], [[17, 246, 318, 389, 351, 244], [0.0, 4257.849926899726, 4670.002462526118, 5181.607376094797, 5187.10275587442, 5222.22816429922]], [[18, 33, 338, 25, 198, 177], [0.0, 7210.427241155686, 9529.757656939655, 9535.327000161033, 9572.189874840553, 9629.55180680804]], [[19, 69, 360, 92, 188, 3], [0.0, 4394.241914141733, 5003.515164361951, 5200.561315858125, 5736.203709771821, 5840.552627962528]], [[20, 198, 83, 358, 49, 330], [0.0, 3713.035281275954, 3814.6120379404247, 3941.8316808306263, 4410.9700747114575, 4703.398771101595]], [[21, 118, 295, 15, 12, 164], [0.0, 8494.58386267391, 9156.790977192828, 10083.269856549512, 10200.36244454088, 10283.18914539648]], [[22, 10, 23, 96, 206, 171], [0.0, 7164.204212611475, 8399.945059344138, 10018.127270103929, 11924.889349591467, 12087.557569666422]], [[23, 171, 321, 308, 96, 347], [0.0, 6644.003988559911, 6739.3590941572475, 6968.371187013505, 7147.577841478888, 7322.92858083431]], [[24, 159, 136, 85, 223, 371], [0.0, 18726.375730503754, 19381.93045080907, 21552.3997735751, 23151.439350502595, 24491.920443280884]], [[25, 177, 358, 198, 338, 62], [0.0, 5145.716762512294, 5175.791920083341, 5270.434896666498, 5365.624847117062, 5529.825313696627]], [[26, 28, 298, 42, 372, 215], [0.0, 5075.005911326606, 5750.680394527242, 5833.669256994263, 6220.651171702204, 6357.671350423832]], [[27, 314, 158, 155, 108, 80], [0.0, 5900.165590896581, 6119.470156802793, 6350.13558910359, 6513.388519042911, 6551.054037328649]], [[28, 298, 215, 138, 204, 49], [0.0, 4137.343833910834, 4357.124280990846, 4444.112509826906, 4533.074673993359, 4814.676313107663]], [[29, 157, 386, 261, 277, 150], [0.0, 2728.2256138376824, 2886.9975753367025, 3123.191796864227, 3317.714424117905, 3625.5839529653704]], [[30, 322, 75, 70, 244, 190], [0.0, 10439.649275718031, 11206.710623550516, 11379.98110718994, 11442.969894218895, 11474.894117158554]], [[31, 42, 157, 218, 265, 261], [0.0, 6102.832948721438, 6353.740787913841, 6589.431007302527, 6594.2898025488685, 6664.441311918052]], [[32, 12, 164, 240, 67, 150], [0.0, 15082.319881238429, 15905.230020342366, 16173.47414750461, 16493.565290742932, 16535.59312513464]], [[33, 19, 18, 69, 3, 92], [0.0, 7089.571707797305, 7210.427241155686, 7422.513523059422, 7440.9936164466635, 7595.967943586913]], [[34, 291, 100, 125, 81, 101], [0.0, 2590.221805174221, 2728.716181650265, 3586.776268461695, 4311.905379295793, 4426.0125395213245]], [[35, 65, 300, 41, 357, 71], [0.0, 87633.22626150426, 98196.75400948852, 112560.06614248235, 113816.118304922, 122259.17191360328]], [[36, 83, 49, 358, 353, 177], [0.0, 8800.677928432558, 9801.314299623291, 9858.485076318775, 9887.2882531056, 9918.656915127169]], [[37, 43, 149, 107, 275, 186], [0.0, 28470.162574175793, 33837.66664532293, 36327.466027786744, 36921.1021910235, 37526.86692224652]], [[38, 195, 338, 188, 177, 302], [0.0, 3726.157001523151, 4423.1206178443745, 4588.86739838928, 5342.771097473669, 5817.703412859752]], [[39, 244, 253, 17, 322, 75], [0.0, 12265.506349107647, 13048.478148811071, 13265.147002577845, 13324.34955260481, 13697.29093653194]], [[40, 267, 226, 365, 184, 152], [0.0, 9167.635627575957, 9542.009379580382, 10339.580262273706, 10655.325898347737, 11440.862642301061]], [[41, 311, 91, 228, 387, 317], [0.0, 21493.25075459736, 22901.544620396242, 26588.21453200647, 26730.030041135382, 26971.63128177456]], [[42, 298, 215, 331, 372, 182], [0.0, 2922.2440007637965, 3652.9221179762376, 4244.196154750626, 4652.727157270239, 4657.335074911402]], [[43, 149, 275, 148, 176, 186], [0.0, 17882.87541196885, 21346.153845599445, 22445.89040336783, 22475.41530205838, 22525.50976115746]], [[44, 27, 14, 293, 368, 229], [0.0, 8689.916685446415, 10094.093817673778, 10357.461271952698, 11171.12411532519, 11428.526239196373]], [[45, 312, 8, 304, 0, 342], [0.0, 25026.478178121666, 28035.00836454307, 30264.905203882598, 30332.760045864605, 30514.91445178898]], [[46, 5, 214, 284, 242, 84], [0.0, 0.0, 12249.800284086268, 12582.802112407237, 12713.466757733706, 12732.93029903172]], [[47, 349, 345, 335, 162, 343], [0.0, 14784.960568090806, 15499.649673460364, 15529.69078893717, 15729.04358185837, 15755.035036457393]], [[48, 68, 229, 27, 14, 314], [0.0, 8518.12044995843, 9291.917993611438, 9587.547027264065, 10427.053179110577, 11237.76178782946]], [[49, 358, 235, 353, 204, 83], [0.0, 3203.708788264002, 3260.6028583683724, 3534.9544551521453, 3585.9732291248356, 3936.8180044294654]], [[50, 349, 290, 58, 318, 246], [0.0, 5608.485357028224, 6140.370754278604, 6279.485727350609, 6629.063055968015, 6735.340228971362]], [[51, 121, 291, 34, 100, 125], [0.0, 3903.0398409444915, 6014.623429608873, 6146.597920801392, 6306.868002424024, 6554.54300466478]], [[52, 116, 109, 59, 104, 7], [0.0, 2454.3263841632797, 2458.54713194602, 2478.455164008419, 2536.020504648967, 2581.7763264853133]], [[53, 127, 72, 70, 244, 105], [0.0, 6544.517705683132, 10559.960558638464, 10560.661248236305, 11494.826401472968, 11760.031207441585]], [[54, 88, 256, 266, 292, 303], [0.0, 10213.72086949707, 11931.468141012656, 12850.754763826131, 13271.955394741199, 14323.101514685986]], [[55, 134, 325, 128, 207, 41], [0.0, 79627.48027534212, 95909.36823897861, 97996.56482754894, 99248.8186781082, 99668.72921834611]], [[56, 151, 376, 64, 130, 165], [0.0, 29007.75937572566, 30897.567347608452, 34654.38074760535, 36085.18729340337, 37380.830555245826]], [[57, 97, 92, 133, 19, 69], [0.0, 11301.370713324999, 12572.30086340603, 12769.75089811857, 12825.98389988074, 12950.219496209322]], [[58, 228, 290, 246, 50, 349], [0.0, 5780.755659946198, 5855.0525189788, 6247.456682522897, 6279.485727350609, 6486.444249355728]], [[59, 109, 116, 7, 82, 104], [0.0, 981.1635949218662, 994.0794736840712, 1597.5847395365292, 1854.2195123555355, 2306.1920995441815]], [[60, 63, 75, 190, 40, 111], [0.0, 11547.243870292166, 21389.73674452306, 21721.699933476662, 21734.61879122797, 21975.066643812483]], [[61, 257, 169, 194, 56, 115], [0.0, 47812.38025867359, 47893.2227147015, 48030.579280287675, 48182.89573074661, 48814.236980618676]], [[62, 358, 198, 49, 330, 20], [0.0, 4077.1875110178585, 4626.531962496315, 4737.067236170498, 5027.006962398203, 5260.186403541228]], [[63, 60, 111, 30, 271, 75], [0.0, 11547.243870292166, 16248.687116194957, 16463.340122830483, 16916.76990444689, 16932.907753838383]], [[64, 165, 130, 376, 169, 151], [0.0, 16863.581114342232, 18454.431744163787, 18489.52219501629, 19386.7809086501, 23769.088770922626]], [[65, 300, 71, 41, 311, 105], [0.0, 35789.14205453939, 46575.668862615385, 50275.35858648847, 61043.70617025149, 61755.024338105475]], [[66, 124, 98, 262, 298, 42], [0.0, 70766.93359189728, 76609.44302760594, 77061.80488413181, 77365.32652939558, 77385.85443735826]], [[67, 308, 175, 269, 164, 171], [0.0, 3402.3882788417905, 3434.8312913445984, 4025.447180127942, 4600.743418187978, 4646.858723912316]], [[68, 229, 14, 48, 192, 374], [0.0, 7998.447474354008, 8349.228826664174, 8518.12044995843, 8799.289744064574, 9081.3251235709]], [[69, 19, 3, 92, 97, 33], [0.0, 4394.241914141733, 5559.671842833892, 6057.394984644802, 6309.7211507324155, 7422.513523059422]], [[70, 244, 75, 253, 190, 17], [0.0, 7420.992386466921, 7870.131828629048, 8643.706843710053, 8649.64398111275, 8842.641969456867]], [[71, 168, 243, 307, 300, 311], [0.0, 26383.56979258114, 26502.85333695223, 26962.482841904603, 29114.892014225297, 30565.579742579725]], [[72, 111, 326, 320, 53, 176], [0.0, 9867.66963370785, 10152.184937243805, 10188.02306632646, 10559.960558638464, 10922.383668412313]], [[73, 102, 113, 119, 228, 127], [0.0, 10962.069558254043, 13639.97078442619, 15069.014997669887, 19247.69131610334, 19495.402252839]], [[74, 123, 118, 135, 242, 84], [0.0, 5829.433677468164, 10431.451241318247, 11358.395265177207, 12447.462030470308, 12686.356056803703]], [[75, 190, 111, 359, 326, 106], [0.0, 4574.059903411848, 5706.35452806781, 6311.288537216469, 7377.809363218868, 7455.10026760204]], [[76, 155, 80, 236, 158, 323], [0.0, 3681.365371706536, 4439.738956290111, 4476.900490294596, 4925.196645820347, 5024.97611934624]], [[77, 0, 135, 60, 144, 13], [0.0, 31140.00362877307, 33653.84934892292, 34801.2612271452, 35745.85024866523, 36531.40990982965]], [[78, 210, 143, 193, 205, 152], [0.0, 9700.890680757102, 9881.578214030389, 10322.911992262649, 10447.974636263241, 11186.723246777852]], [[79, 52, 259, 59, 82, 104], [0.0, 4623.869699721219, 5006.558498609599, 5226.079314361771, 5337.916915801519, 5440.154133845842]], [[80, 158, 155, 208, 323, 76], [0.0, 2854.5090646203944, 3025.4502144309035, 3579.7881222217607, 4356.849205561285, 4439.738956290111]], [[81, 125, 291, 104, 336, 52], [0.0, 2205.660445308842, 2651.585374827671, 3755.605943120231, 3841.1141612818537, 4040.1861343259916]], [[82, 59, 104, 109, 7, 116], [0.0, 1854.2195123555355, 2022.3338003405868, 2106.731591826543, 2176.944877574993, 2266.0357455256526]], [[83, 20, 49, 358, 198, 353], [0.0, 3814.6120379404247, 3936.8180044294654, 4016.633416183259, 4885.5048869078, 4997.766000924813]], [[84, 103, 283, 153, 123, 202], [0.0, 7961.855123022523, 8845.299994912553, 9531.56739471531, 9707.308329294996, 10359.717708509243]], [[85, 136, 383, 371, 180, 159], [0.0, 10310.779020035296, 17687.362381090064, 18283.885227161103, 18946.6371422477, 19238.032175874952]], [[86, 58, 389, 246, 17, 50], [0.0, 7404.340956493022, 8087.341033986387, 8090.610978164752, 8176.552941184935, 8183.78335490377]], [[87, 292, 108, 314, 158, 323], [0.0, 3864.8957295119876, 6470.914695775243, 6587.764340047388, 7294.921521167997, 7473.182387711409]], [[88, 292, 256, 266, 87, 54], [0.0, 8207.676163202346, 9180.621874361235, 9475.794320266772, 9797.387151684881, 10213.72086949707]], [[89, 321, 350, 170, 242, 183], [0.0, 8263.40680349213, 8497.229666191211, 8674.179615387267, 8708.591734603247, 8939.527951743314]], [[90, 176, 320, 326, 106, 275], [0.0, 6200.620372188577, 6575.926398614875, 6656.8164312980725, 6816.6767563087515, 7944.0154833685965]], [[91, 244, 322, 311, 75, 253], [0.0, 9612.941277257445, 10071.83960356796, 10355.313611861304, 10451.506829161046, 10559.162750900281]], [[92, 97, 133, 19, 217, 69], [0.0, 2825.3422801494335, 4858.450473144704, 5200.561315858125, 5846.568138660491, 6057.394984644802]], [[93, 384, 106, 230, 173, 241], [0.0, 19704.558863369664, 21034.183559149616, 21321.782242580004, 21889.812128019737, 22503.82018680384]], [[94, 220, 120, 355, 145, 205], [0.0, 19269.120737594647, 23320.902984232835, 23843.036341875588, 26185.879057232352, 28251.68125970559]], [[95, 324, 164, 150, 29, 240], [0.0, 5556.310376499859, 7347.075948974531, 7481.646276054489, 7589.848483336146, 7846.312445983782]], [[96, 183, 103, 272, 206, 23], [0.0, 6227.564531981985, 6367.634254572101, 6836.6076382954725, 7019.705122011893, 7147.577841478888]], [[97, 92, 133, 19, 69, 217], [0.0, 2825.3422801494335, 5195.834870355293, 5906.209190335202, 6309.7211507324155, 6422.918184127834]], [[98, 358, 198, 49, 62, 20], [0.0, 9991.417116705717, 10189.072872445266, 10372.5028802117, 10538.07572567212, 10579.368270364728]], [[99, 194, 257, 223, 159, 281], [0.0, 18517.995706879294, 19246.998805008534, 19472.249382133537, 20334.18235385923, 21716.13881425517]], [[100, 34, 291, 125, 101, 81], [0.0, 2728.716181650265, 2909.2780891485777, 3853.5388930176896, 4289.892889105741, 4813.285987763453]], [[101, 125, 291, 100, 34, 133], [0.0, 2725.8721540086945, 4263.860222849713, 4289.892889105741, 4426.0125395213245, 4863.549835254081]], [[102, 119, 228, 58, 73, 127], [0.0, 8235.095506428568, 9689.73415528001, 10624.850681303715, 10962.069558254043, 11849.826918567207]], [[103, 272, 242, 183, 96, 236], [0.0, 4010.61566346116, 5984.071189416115, 6067.569035453985, 6367.634254572101, 6491.21814453959]], [[104, 82, 7, 336, 59, 116], [0.0, 2022.3338003405868, 2123.8589877861477, 2134.545853337426, 2306.1920995441815, 2393.7936418998192]], [[105, 72, 53, 91, 75, 70], [0.0, 11629.098632310244, 11760.031207441585, 12554.68088005426, 12820.366804424903, 12928.053913872729]], [[106, 230, 326, 111, 90, 75], [0.0, 4471.076827789923, 6168.897551426835, 6790.427379775149, 6816.6767563087515, 7455.10026760204]], [[107, 258, 210, 193, 148, 365], [0.0, 16393.88599447977, 19117.65874786973, 19709.049698044804, 20232.31689649013, 20769.036833709935]], [[108, 314, 158, 155, 323, 252], [0.0, 4186.657855617055, 5386.445859748337, 5575.270038303078, 5803.962956463454, 6204.925785212906]], [[109, 116, 59, 7, 82, 104], [0.0, 316.69543728951953, 981.1635949218662, 1576.8414631788448, 2106.731591826543, 2398.2560330373403]], [[110, 200, 370, 225, 20, 198], [0.0, 6483.8684440694815, 8301.895687130742, 8445.698668553123, 8868.95737953453, 9589.538153633886]], [[111, 320, 326, 359, 190, 75], [0.0, 4614.0771558351735, 4767.075518596281, 4887.354396808155, 5663.831565292174, 5706.35452806781]], [[112, 95, 324, 200, 137, 164], [0.0, 16775.72618398381, 19005.678519852954, 20137.7478879839, 20205.4010106209, 20950.399900717886]], [[113, 108, 192, 374, 379, 119], [0.0, 8767.114690706401, 10211.92156256598, 10340.044487331765, 10344.922571000712, 10410.67279286022]], [[114, 161, 154, 382, 169, 115], [0.0, 12924.70607015881, 12924.70607015881, 19701.89668534479, 21702.148718502507, 24970.75627609224]], [[115, 257, 169, 194, 382, 156], [0.0, 15485.333383560072, 18125.96662250044, 18551.709516915147, 18729.320169189272, 23889.115073606223]], [[116, 109, 59, 7, 82, 104], [0.0, 316.69543728951953, 994.0794736840712, 1523.9622698741593, 2266.0357455256526, 2393.7936418998192]], [[117, 29, 157, 261, 277, 386], [0.0, 4959.588188549529, 5570.282757634481, 5753.268114732704, 5840.757485121258, 5850.576210938543]], [[118, 164, 67, 21, 12, 123], [0.0, 8253.852433863838, 8274.54953456682, 8494.58386267391, 8804.156461581086, 8976.20276063325]], [[119, 102, 228, 187, 250, 304], [0.0, 8235.095506428568, 8391.994041942595, 9232.473070634975, 9586.013874390126, 9752.28727017411]], [[120, 220, 145, 94, 355, 205], [0.0, 20288.833086207793, 23039.356978874213, 23320.902984232835, 23469.4764321661, 23514.30815482352]], [[121, 51, 100, 34, 101, 133], [0.0, 3903.0398409444915, 8398.219335073358, 8515.121960371443, 8563.739895629713, 8606.645455692944]], [[122, 64, 165, 154, 161, 169], [0.0, 32280.992379417334, 34175.09577162879, 34660.23521270449, 34660.23521270449, 35087.64205528778]], [[123, 74, 135, 242, 118, 103], [0.0, 5829.433677468164, 8320.984557130243, 8393.155187413135, 8976.20276063325, 9066.352298471531]], [[124, 213, 16, 117, 150, 31], [0.0, 13129.489974861934, 14303.986367443169, 15598.104211730348, 15853.588647369403, 15878.281298679653]], [[125, 81, 291, 101, 34, 100], [0.0, 2205.660445308842, 2451.5152457204913, 2725.8721540086945, 3586.776268461695, 3853.5388930176896]], [[126, 6, 1, 15, 28, 298], [0.0, 4320.728410812232, 8492.494333233317, 8966.329014708304, 11431.008791878345, 11740.983434108064]], [[127, 53, 102, 58, 86, 70], [0.0, 6544.517705683132, 11849.826918567207, 12849.75875259921, 13927.963418964024, 14072.079590451442]], [[128, 57, 83, 36, 295, 213], [0.0, 16985.75632699351, 18004.63917994471, 18433.63849054223, 19100.039947602203, 19487.982348103666]], [[129, 179, 142, 309, 73, 328], [0.0, 38156.85246453119, 39897.284569253585, 40328.49440532091, 42621.019333188175, 47105.722794581976]], [[130, 376, 64, 151, 289, 165], [0.0, 16137.830833169617, 18454.431744163787, 22601.221515661495, 23481.62413462919, 23668.730996823637]], [[131, 133, 101, 217, 100, 34], [0.0, 5939.661438162953, 5980.202254104789, 6502.368799137742, 6783.747194582063, 7241.313002487877]], [[132, 298, 28, 215, 49, 204], [0.0, 13051.116350718816, 13078.496167373372, 13116.854805935758, 13183.756596660907, 13185.924389287236]], [[133, 92, 101, 100, 97, 217], [0.0, 4858.450473144704, 4863.549835254081, 4980.045381319331, 5195.834870355293, 5616.351662778961]], [[134, 325, 207, 21, 128, 202], [0.0, 27223.83949776372, 28533.97511739295, 32395.406310154533, 32898.53046870027, 33354.147673115556]], [[135, 123, 144, 84, 103, 185], [0.0, 8320.984557130243, 8783.622487334027, 10853.094167102763, 11308.527313492239, 11326.084451389192]], [[136, 85, 159, 371, 180, 383], [0.0, 10310.779020035296, 11119.50943162512, 12090.436427193188, 13268.10871978369, 13277.13169325363]], [[137, 380, 164, 324, 166, 95], [0.0, 5859.001792114421, 8190.077289012601, 8977.795386396372, 9033.44352946317, 9109.061587232793]], [[138, 298, 28, 215, 265, 42], [0.0, 4143.561028873594, 4444.112509826906, 4889.045919195278, 5060.080631768628, 5496.843821685313]], [[139, 192, 374, 379, 343, 369], [0.0, 6392.713039078166, 6808.027761400507, 7018.122327232549, 7534.52407256092, 7673.886108094125]], [[140, 301, 372, 42, 274, 182], [0.0, 3351.7280617615743, 6034.880860464438, 6053.023459396139, 6536.538762984581, 6887.878846205122]], [[141, 161, 154, 114, 64, 376], [0.0, 27954.670218051222, 27954.670218051222, 31742.323292411977, 35267.34661127769, 37178.8252100574]], [[142, 309, 332, 179, 117, 308], [0.0, 7900.2963868452425, 7942.1417766242375, 8047.613559310611, 10233.439304554457, 12232.990558322197]], [[143, 193, 205, 152, 367, 78], [0.0, 7644.999934597776, 7993.774827952061, 8246.971989766911, 8833.953644886304, 9881.578214030389]], [[144, 108, 155, 158, 323, 314], [0.0, 7657.076987989608, 7913.690921434827, 8062.299609912795, 8264.201836838207, 8306.150973826565]], [[145, 220, 355, 205, 120, 78], [0.0, 15704.663511199467, 19620.46319534786, 21477.74550552269, 23039.356978874213, 23836.796680762287]], [[146, 271, 111, 191, 326, 72], [0.0, 12102.063790940783, 12838.353515930305, 12873.721373402486, 13756.797665154489, 14019.44324857446]], [[147, 290, 387, 349, 162, 250], [0.0, 4296.291656766332, 4905.537483293752, 5694.138301797736, 5809.373804464643, 5810.684813341712]], [[148, 258, 365, 184, 299, 152], [0.0, 11570.081114668124, 11583.21432073153, 11739.814053041897, 12022.766861251199, 12213.484105692363]], [[149, 186, 275, 176, 359, 320], [0.0, 7833.191239845993, 7973.352055440672, 8112.378442848928, 8253.700382252799, 8303.089966994216]], [[150, 29, 157, 261, 386, 15], [0.0, 3625.5839529653704, 4021.3853334392115, 4120.718869323652, 4333.924087936935, 4651.190815264409]], [[151, 376, 289, 197, 363, 130], [0.0, 16785.00348525433, 17182.120358093176, 17307.343932562268, 22198.771047064743, 22601.221515661495]], [[152, 365, 267, 193, 367, 184], [0.0, 4351.311526425107, 5119.524489637685, 5150.357172080398, 5662.571853848744, 5732.2881993144765]], [[153, 283, 202, 293, 103, 236], [0.0, 7147.439051856266, 7195.045656561187, 8522.657684079539, 8775.46728100561, 8816.544391086567]], [[154, 161, 114, 169, 382, 115], [0.0, 0.0, 12924.70607015881, 18088.03057272958, 21056.44998569322, 24625.97742222631]], [[155, 80, 158, 76, 323, 208], [0.0, 3025.4502144309035, 3127.1381485313373, 3681.365371706536, 3966.955507691005, 4921.112475853402]], [[156, 169, 382, 115, 257, 161], [0.0, 19891.36448311176, 20963.29742669316, 23889.115073606223, 24431.338583876244, 26693.89542573358]], [[157, 29, 261, 386, 277, 150], [0.0, 2728.2256138376824, 3014.9208944846296, 3211.149638369411, 4018.9941527700685, 4021.3853334392115]], [[158, 80, 323, 155, 208, 239], [0.0, 2854.5090646203944, 3105.5584038945394, 3127.1381485313373, 3769.839651762393, 4686.893960823095]], [[159, 223, 281, 136, 371, 180], [0.0, 6924.809744678911, 10367.315419142991, 11119.50943162512, 12001.769911142273, 12920.273487817509]], [[160, 371, 180, 381, 159, 223], [0.0, 10843.425980749811, 11587.710256992103, 12414.421895521353, 13308.810615528346, 13624.545423609552]], [[154, 161, 114, 169, 382, 115], [0.0, 0.0, 12924.70607015881, 18088.03057272958, 21056.44998569322, 24625.97742222631]], [[162, 187, 340, 345, 335, 290], [0.0, 3974.2527599537502, 4180.831017871926, 4391.472418221479, 4631.18602519916, 4826.042063637656]], [[163, 338, 38, 177, 334, 195], [0.0, 5544.138706778538, 6145.519017951209, 6278.836118262683, 6977.996632272045, 7178.180967348204]], [[164, 269, 308, 67, 324, 305], [0.0, 4579.060493157958, 4598.129619747578, 4600.743418187978, 4756.520156585064, 4869.703276381427]], [[165, 64, 169, 376, 382, 130], [0.0, 16863.581114342232, 18467.71848388425, 19897.78608287867, 22019.137131141175, 23668.730996823637]], [[166, 269, 238, 277, 240, 366], [0.0, 4920.396833589746, 5323.026394824658, 5334.095612191442, 5483.752729655122, 5505.672347679255]], [[167, 378, 322, 253, 361, 351], [0.0, 11033.256545553539, 11600.078663526381, 12921.790123663208, 12955.875655469992, 13398.666575446976]], [[168, 78, 243, 307, 193, 258], [0.0, 16096.602809288674, 17461.489856252243, 17720.50936062505, 18132.80072134473, 18241.074365288903]], [[169, 382, 154, 161, 115, 165], [0.0, 15625.562389878964, 18088.03057272958, 18088.03057272958, 18125.96662250044, 18467.71848388425]], [[170, 242, 171, 350, 183, 268], [0.0, 6155.067668190172, 6208.469054444904, 6477.5297760797675, 6655.3222311169875, 6761.828155166323]], [[171, 175, 321, 308, 269, 347], [0.0, 3079.481449854829, 3337.189536121675, 3426.7658221711035, 3525.1387206746913, 3843.2551307452904]], [[172, 252, 224, 339, 369, 379], [0.0, 4398.434494226326, 4883.859539339763, 5519.966847726533, 6771.472661098175, 6943.950244637414]], [[173, 384, 361, 253, 244, 375], [0.0, 6206.158312515078, 6371.372536588957, 6578.552120337727, 7632.037604729159, 7754.209050573759]], [[174, 167, 30, 146, 271, 191], [0.0, 16571.985849619832, 17086.923508929278, 17155.010725732584, 18531.673615731528, 19241.114442775917]], [[175, 308, 171, 269, 67, 321], [0.0, 2661.3256095412303, 3079.481449854829, 3430.285265105513, 3434.8312913445984, 3970.1057920413155]], [[176, 320, 326, 90, 216, 111], [0.0, 4161.276607004153, 4628.675404475885, 6200.620372188577, 6740.225070426061, 6843.7093012488485]], [[177, 338, 280, 358, 25, 38], [0.0, 3692.7562876528964, 4826.09314041907, 4834.917062370357, 5145.716762512294, 5342.771097473669]], [[178, 223, 159, 371, 180, 383], [0.0, 14616.26587059773, 16030.58383216282, 16381.694509421179, 16461.783591093645, 16678.032977542647]], [[179, 142, 309, 332, 328, 268], [0.0, 8047.613559310611, 8280.709691807822, 12492.673372821368, 13428.059949225726, 15174.62882577363]], [[180, 371, 383, 160, 354, 159], [0.0, 6721.008108907473, 8524.36830504173, 11587.710256992103, 11642.493847969172, 12920.273487817509]], [[237, 181, 42, 298, 331, 215], [0.0, 0.0, 5454.203149865249, 5701.44139669961, 5862.3156687438795, 5919.937161828662]], [[182, 274, 42, 298, 215, 372], [0.0, 2501.643459807972, 4657.335074911402, 4990.421224706388, 5208.428361799747, 5284.377919869093]], [[183, 350, 251, 321, 305, 171], [0.0, 5239.498640137242, 5435.151147852284, 5562.9298036196715, 5922.555022960952, 6046.368662263326]], [[184, 365, 152, 267, 367, 299], [0.0, 5633.042694672215, 5732.2881993144765, 5885.497005351374, 6813.192350139544, 7948.297364844876]], [[185, 76, 155, 80, 236, 158], [0.0, 6197.530153214262, 6620.042069352732, 6971.182539569596, 7036.0699257469005, 7173.943824703397]], [[186, 359, 190, 320, 111, 75], [0.0, 4598.87214434148, 6016.232209614253, 6387.625380374149, 7130.054137241877, 7550.41204173653]], [[187, 250, 335, 345, 304, 276], [0.0, 3465.6123557028127, 3662.0574817989955, 3674.159087464777, 3682.3986747770805, 3844.0694582694523]], [[188, 302, 338, 38, 360, 217], [0.0, 4209.132095812627, 4378.454750251509, 4588.86739838928, 4845.745453488039, 5277.97650620008]], [[189, 170, 350, 337, 183, 272], [0.0, 6817.070191805275, 7327.548020995837, 7385.622384064866, 7787.375167538803, 8187.037803748069]], [[190, 75, 359, 111, 186, 326], [0.0, 4574.059903411848, 5257.299782207592, 5663.831565292174, 6016.232209614253, 7063.990302937852]], [[191, 186, 106, 271, 359, 111], [0.0, 10079.556984312356, 10231.48009820671, 10619.916383851616, 11112.92625729155, 11236.148850918627]], [[192, 379, 374, 369, 343, 303], [0.0, 3041.477437036152, 3462.3887707766153, 3860.9270907387, 4492.91030402344, 4947.21002182038]], [[193, 152, 365, 299, 367, 258], [0.0, 5150.357172080398, 5558.813272632928, 6235.21114317711, 6566.976853926013, 6619.059751958733]], [[194, 257, 223, 159, 281, 99], [0.0, 8902.25960079799, 11364.048970327434, 13606.038475618096, 15011.042602031346, 18517.995706879294]], [[195, 38, 177, 338, 163, 188], [0.0, 3726.157001523151, 6829.459641875043, 6913.601955565565, 7178.180967348204, 7474.904547885545]], [[196, 268, 270, 350, 242, 251], [0.0, 2519.0946786494546, 2526.122522760921, 5479.049552614029, 5726.572797057591, 6098.440456378991]], [[197, 363, 289, 151, 376, 130], [0.0, 9906.421654664211, 16333.7541306339, 17307.343932562268, 27087.333017482546, 31075.9089006259]], [[198, 330, 358, 20, 360, 62], [0.0, 2764.227016726376, 3467.8483242494904, 3713.035281275954, 3939.599852776929, 4626.531962496315]], [[199, 246, 17, 318, 389, 351], [0.0, 7184.647312151098, 7244.052940170993, 7538.174845411852, 7836.538138744684, 7928.900932663997]], [[200, 225, 110, 20, 370, 262], [0.0, 6279.783754238676, 6483.8684440694815, 7956.451910242404, 8143.962180658748, 8696.70483574095]], [[201, 248, 286, 356, 214, 206], [0.0, 12757.34682447726, 12761.200883929381, 12827.77899716081, 12949.134334000864, 13119.935060814898]], [[202, 293, 153, 283, 84, 229], [0.0, 6958.000574877815, 7195.045656561187, 7273.580617550066, 10359.717708509243, 11086.508647901737]], [[203, 220, 205, 145, 93, 367], [0.0, 20553.0964090572, 23535.33887582671, 25742.8766846287, 27271.284696544826, 27714.750494998145]], [[204, 49, 215, 235, 372, 298], [0.0, 3585.9732291248356, 3880.0432987274767, 3892.0173432296006, 4066.3573379623194, 4442.144752256504]], [[205, 143, 193, 367, 152, 78], [0.0, 7993.774827952061, 8547.638504288772, 8785.687736312962, 10036.699507308167, 10447.974636263241]], [[206, 356, 248, 214, 272, 344], [0.0, 4691.3586518193215, 6004.728303595426, 6185.4883396543555, 6549.901373303265, 6667.9436110393135]], [[207, 325, 283, 21, 380, 137], [0.0, 9649.180224247031, 14305.570523401015, 15693.630427660772, 16239.221810173049, 17045.87466221666]], [[208, 80, 158, 239, 155, 323], [0.0, 3579.7881222217607, 3769.839651762393, 4628.879346018861, 4921.112475853402, 5138.024717729567]], [[209, 96, 206, 272, 103, 76], [0.0, 9086.512312213086, 10302.253054550738, 10507.047825150506, 10706.598619542996, 10964.77081383829]], [[210, 383, 78, 354, 143, 193], [0.0, 9157.775603278342, 9700.890680757102, 12050.565961812748, 12652.199492578357, 12883.401569461383]], [[211, 345, 343, 335, 303, 374], [0.0, 3448.66785875358, 3492.553363944494, 3774.555602981628, 4089.801095407942, 4430.424358907395]], [[212, 175, 171, 308, 321, 67], [0.0, 4894.56678368985, 4965.835478547391, 5084.571171691867, 5666.671333331412, 5676.732334715104]], [[213, 200, 124, 285, 353, 265], [0.0, 12569.274760303397, 13129.489974861934, 14457.595408642475, 14679.359693120134, 14783.305922560083]], [[214, 356, 236, 221, 248, 239], [0.0, 4619.454296775757, 5558.741134465608, 5635.780158948714, 5937.600525464811, 6096.747001475459]], [[215, 298, 372, 42, 377, 204], [0.0, 1824.8068390928395, 3554.3711117439607, 3652.9221179762376, 3851.085561241142, 3880.0432987274767]], [[216, 176, 226, 320, 359, 326], [0.0, 6740.225070426061, 6773.68097861126, 6838.589840018189, 8291.028163020555, 8495.816499901584]], [[217, 188, 133, 92, 319, 19], [0.0, 5277.97650620008, 5616.351662778961, 5846.568138660491, 6034.7758864766465, 6314.764207791135]], [[218, 29, 157, 277, 150, 386], [0.0, 4353.692455835621, 5169.272385935955, 5206.974841498661, 5215.006711405077, 5306.900319395494]], [[219, 313, 287, 254, 323, 356], [0.0, 3341.1869148552582, 13227.696473687321, 14380.94127656462, 14686.12474412498, 15096.552520360401]], [[220, 145, 355, 94, 120, 203], [0.0, 15704.663511199467, 16997.6353061242, 19269.120737594647, 20288.833086207793, 20553.0964090572]], [[221, 208, 239, 236, 214, 248], [0.0, 5176.102781050624, 5295.02351269567, 5328.3071420480255, 5635.780158948714, 5716.358806093263]], [[222, 87, 254, 323, 158, 327], [0.0, 13352.535527007596, 13959.539533953117, 14297.186506442447, 14489.113188873915, 14828.523695904458]], [[223, 159, 281, 194, 371, 160], [0.0, 6924.809744678911, 10354.55431199238, 11364.048970327434, 13278.405514217435, 13624.545423609552]], [[224, 252, 339, 172, 369, 379], [0.0, 3211.2072496181245, 4261.338756775856, 4883.859539339763, 5017.144805564217, 5734.165240032764]], [[225, 200, 330, 20, 198, 83], [0.0, 6279.783754238676, 6813.370751691119, 6984.244626299969, 7586.312806627472, 8021.629385604897]], [[226, 216, 267, 365, 176, 184], [0.0, 6773.68097861126, 7220.968633085176, 7370.945733079304, 7934.60320368952, 8223.409694281321]], [[227, 288, 116, 109, 11, 59], [0.0, 2181.261332348786, 3153.8126133300943, 3157.0983513346555, 3169.057904172784, 3511.3370672722376]], [[228, 58, 387, 290, 147, 349], [0.0, 5780.755659946198, 6737.796820920025, 6757.027156967774, 7364.48504649171, 7968.416969511573]], [[229, 293, 68, 48, 27, 202], [0.0, 7536.92377565277, 7998.447474354008, 9291.917993611438, 9797.855581707663, 11086.508647901737]], [[230, 106, 111, 326, 75, 359], [0.0, 4471.076827789923, 7489.993457941068, 7491.514065928195, 7703.950674816137, 7824.3176699313535]], [[231, 250, 187, 162, 290, 349], [0.0, 3609.4279325122975, 5438.032088908634, 6014.698994962258, 6080.050986628319, 6195.293455519279]], [[232, 387, 147, 14, 317, 340], [0.0, 13771.56552465986, 13885.288005655482, 14341.091555387267, 15151.367034033596, 15349.709410930227]], [[233, 192, 369, 374, 211, 276], [0.0, 5414.492035269791, 5541.903283169059, 5678.982127106934, 5706.305109262911, 5969.345441503616]], [[234, 255, 286, 350, 196, 268], [0.0, 5149.416860189122, 5373.35202643564, 7322.80069372368, 7333.511846312106, 7464.629930545787]], [[235, 49, 204, 348, 353, 262], [0.0, 3260.6028583683724, 3892.0173432296006, 4198.451619347304, 4225.609068524915, 4471.274538652262]], [[236, 76, 272, 80, 155, 221], [0.0, 4476.900490294596, 5120.7197736255785, 5129.3537604653475, 5282.505371506971, 5328.3071420480255]], [[237, 181, 42, 298, 331, 215], [0.0, 0.0, 5454.203149865249, 5701.44139669961, 5862.3156687438795, 5919.937161828662]], [[238, 277, 331, 261, 29, 166], [0.0, 3404.265265809937, 4545.124750763173, 4626.376984206972, 4923.19763974594, 5323.026394824658]], [[239, 208, 158, 323, 221, 80], [0.0, 4628.879346018861, 4686.893960823095, 5293.3456339067825, 5295.02351269567, 5399.39616994345]], [[240, 261, 277, 29, 157, 166], [0.0, 4688.566305385902, 4850.396890977067, 5339.4047421037485, 5432.184827488843, 5483.752729655122]], [[241, 230, 384, 75, 173, 190], [0.0, 11140.636471943602, 11383.131423294733, 11663.63541096857, 11857.917523747583, 12369.035411057726]], [[242, 270, 268, 196, 103, 272], [0.0, 4413.301825164465, 5012.846895727018, 5726.572797057591, 5984.071189416115, 6139.441179781756]], [[243, 226, 267, 326, 176, 90], [0.0, 10294.978678948295, 10704.62245947983, 11049.613386901825, 11130.002785264702, 11522.89785600827]], [[244, 253, 17, 322, 246, 361], [0.0, 4647.453496270834, 5222.22816429922, 5695.193499785587, 6850.202259787663, 7327.117577874672]], [[245, 376, 130, 64, 165, 151], [0.0, 29346.581061513793, 32532.411499918046, 32620.455990068564, 33460.40527250081, 34632.49326860542]], [[246, 318, 351, 389, 17, 361], [0.0, 3386.364865161461, 4172.432503947787, 4190.21371769985, 4257.849926899726, 4942.667194946469]], [[247, 302, 235, 358, 338, 280], [0.0, 5133.148936082022, 5314.567903414162, 5416.793424157875, 5593.006436613497, 5643.004961897517]], [[248, 356, 221, 214, 206, 272], [0.0, 5265.34101459725, 5716.358806093263, 5937.600525464811, 6004.728303595426, 6749.531094824291]], [[249, 252, 314, 379, 369, 339], [0.0, 6223.773855146088, 6434.058361563097, 6512.911330580204, 6866.417333660983, 6945.3056808178]], [[250, 187, 231, 276, 162, 290], [0.0, 3465.6123557028127, 3609.4279325122975, 4780.997071741416, 4926.040194720299, 5053.137441233911]], [[251, 321, 350, 305, 171, 183], [0.0, 4607.030496968736, 5312.720207200827, 5350.592303661343, 5371.144384579509, 5435.151147852284]], [[252, 224, 314, 172, 339, 379], [0.0, 3211.2072496181245, 3910.258047750813, 4398.434494226326, 4701.547404844494, 4840.402772497347]], [[253, 244, 322, 361, 17, 351], [0.0, 4647.453496270834, 4750.141576837474, 5465.867726171207, 6433.225551774164, 6533.259829518493]], [[254, 327, 287, 314, 252, 379], [0.0, 4232.0903818326, 5539.057681591698, 5543.605144668945, 6060.422592526036, 6274.705650466801]], [[255, 234, 350, 286, 321, 196], [0.0, 5149.416860189122, 5500.807577074479, 5516.138504424993, 7035.498560869727, 7188.729373122903]], [[256, 303, 266, 340, 335, 343], [0.0, 5337.691729577496, 5975.981760346997, 6396.366312211958, 6810.770587826314, 7058.317575739987]], [[257, 194, 223, 115, 159, 281], [0.0, 8902.25960079799, 14268.904197589947, 15485.333383560072, 16956.74694627481, 18511.03643775788]], [[258, 365, 193, 299, 152, 367], [0.0, 6169.643992970745, 6619.059751958733, 7867.338558877455, 8035.3202176391205, 8356.163294239766]], [[259, 52, 7, 104, 116, 59], [0.0, 3513.0856807086275, 4172.3669541400595, 4279.340486570331, 4337.506080687381, 4352.026998997134]], [[260, 217, 334, 188, 360, 92], [0.0, 6329.4192466607865, 6852.420229378814, 6855.753642014859, 7188.974127092127, 7386.140060951999]], [[261, 277, 157, 29, 386, 150], [0.0, 2310.9733879904375, 3014.9208944846296, 3123.191796864227, 3360.1785666836217, 4120.718869323652]], [[262, 215, 235, 298, 204, 285], [0.0, 4100.636657886187, 4471.274538652262, 4872.719466581264, 5365.970462087916, 5447.989537434887]], [[263, 76, 80, 158, 155, 208], [0.0, 5407.656886304825, 6187.471616096514, 6238.040156972381, 6269.184955000132, 6720.108778881485]], [[264, 88, 292, 87, 266, 256], [0.0, 11374.995560438694, 12011.587988271993, 12972.828257554325, 13595.751542301734, 13750.869499780732]], [[265, 42, 298, 138, 215, 372], [0.0, 4674.07188648185, 4696.492733945193, 5060.080631768628, 5500.193996578666, 5796.921424342407]], [[266, 303, 192, 256, 369, 233], [0.0, 4967.177367479442, 5681.918338026339, 5975.981760346997, 5976.574771556029, 6242.483800539654]], [[267, 365, 152, 184, 226, 367], [0.0, 4431.790495950819, 5119.524489637685, 5885.497005351374, 7220.968633085176, 7307.623485101021]], [[268, 196, 270, 242, 286, 350], [0.0, 2519.0946786494546, 2564.2146945994987, 5012.846895727018, 5579.828133553936, 5623.458900000959]], [[269, 347, 308, 175, 171, 321], [0.0, 2999.444448560433, 3123.1226360807545, 3430.285265105513, 3525.1387206746913, 3709.6313833048157]], [[270, 196, 268, 242, 350, 251], [0.0, 2526.122522760921, 2564.2146945994987, 4413.301825164465, 5472.571698936434, 5511.091089793382]], [[271, 191, 106, 111, 326, 230], [0.0, 10619.916383851616, 11159.452809165869, 11466.854625397498, 11790.346644607189, 12013.534908593723]], [[272, 103, 236, 356, 76, 242], [0.0, 4010.61566346116, 5120.7197736255785, 5526.078175342799, 5699.600249140285, 6139.441179781756]], [[273, 353, 204, 235, 377, 358], [0.0, 6028.351764786126, 6234.833438031846, 6502.553729112894, 6766.773233972009, 6795.573559310502]], [[274, 182, 372, 42, 298, 215], [0.0, 2501.643459807972, 4730.12219715305, 5192.530211756115, 5377.375568062919, 5660.139927598963]], [[275, 176, 320, 90, 149, 359], [0.0, 7659.825389654779, 7908.96415467917, 7944.0154833685965, 7973.352055440672, 8339.300750062921]], [[276, 187, 335, 304, 345, 250], [0.0, 3844.0694582694523, 3868.9237521564055, 4020.8971635693447, 4698.330235307008, 4780.997071741416]], [[277, 261, 29, 238, 386, 157], [0.0, 2310.9733879904375, 3317.714424117905, 3404.265265809937, 3691.9190131962537, 4018.9941527700685]], [[278, 281, 178, 354, 223, 159], [0.0, 26302.634772965237, 27160.715141542205, 28080.384167599987, 28898.098501458535, 30013.018092154613]], [[279, 286, 268, 248, 350, 242], [0.0, 6039.77830718976, 6992.599802648511, 7285.650966111401, 7298.387493138467, 7594.413341397741]], [[280, 338, 235, 358, 177, 198], [0.0, 4484.572889361929, 4566.267950963894, 4696.235726621908, 4826.09314041907, 5194.589107908343]], [[281, 223, 159, 194, 371, 180], [0.0, 10354.55431199238, 10367.315419142991, 15011.042602031346, 15419.13875675292, 16115.071455007575]], [[282, 76, 272, 189, 236, 103], [0.0, 10177.014149543076, 10522.148925005766, 10565.100946039276, 10762.638384708463, 10821.215088889048]], [[283, 153, 202, 103, 183, 84], [0.0, 7147.439051856266, 7273.580617550066, 8479.605474313059, 8725.80099475114, 8845.299994912553]], [[284, 385, 286, 171, 347, 279], [0.0, 7653.4699319981655, 8082.108883206165, 8774.262134219607, 8776.781186744945, 9323.454295485124]], [[285, 262, 215, 298, 331, 377], [0.0, 5447.989537434887, 5827.146385667688, 5936.731508161709, 6137.2537832486605, 6337.931918220643]], [[286, 234, 350, 255, 268, 321], [0.0, 5373.35202643564, 5512.3757128846, 5516.138504424993, 5579.828133553936, 5841.4559828864585]], [[287, 252, 254, 314, 158, 224], [0.0, 5379.455734551591, 5539.057681591698, 5837.057991831159, 6596.784292365485, 6641.2452145663165]], [[288, 227, 116, 109, 11, 59], [0.0, 2181.261332348786, 2450.042244533755, 2454.270360005189, 2621.9345910987176, 2804.3603548759565]], [[289, 197, 151, 376, 363, 130], [0.0, 16333.7541306339, 17182.120358093176, 19096.953631404147, 21878.77738814489, 23481.62413462919]], [[290, 147, 349, 162, 387, 250], [0.0, 4296.291656766332, 4529.128503365741, 4826.042063637656, 4846.729825356474, 5053.137441233911]], [[291, 125, 34, 81, 100, 336], [0.0, 2451.5152457204913, 2590.221805174221, 2651.585374827671, 2909.2780891485777, 4258.005049315935]], [[292, 87, 192, 379, 314, 369], [0.0, 3864.8957295119876, 5671.015429356545, 5781.941110042543, 5981.908056799269, 6471.057100659829]], [[293, 202, 229, 153, 27, 44], [0.0, 6958.000574877815, 7536.92377565277, 8522.657684079539, 9115.181731594823, 10357.461271952698]], [[294, 210, 383, 354, 180, 371], [0.0, 13293.220941517522, 14355.042354517802, 16249.633134320295, 16293.139967483248, 16560.72878831122]], [[295, 138, 238, 240, 331, 157], [0.0, 6196.563563782752, 6235.405359718003, 6687.476504631623, 6735.929705690225, 6898.697558235178]], [[296, 166, 331, 95, 265, 285], [0.0, 8200.0015853657, 8404.118454662572, 8578.73050048782, 8864.370141188825, 8932.442834969614]], [[297, 351, 318, 246, 316, 361], [0.0, 9430.686295280953, 9954.556142792104, 9976.915705767991, 10180.492031331296, 10331.907471517541]], [[298, 215, 42, 372, 28, 138], [0.0, 1824.8068390928395, 2922.2440007637965, 3601.5185686040827, 4137.343833910834, 4143.561028873594]], [[299, 193, 365, 152, 267, 258], [0.0, 6235.21114317711, 6569.980136956276, 7132.475096346288, 7558.105979675067, 7867.338558877455]], [[300, 41, 71, 65, 311, 91], [0.0, 27031.414687359593, 29114.892014225297, 35789.14205453939, 36452.44482884515, 39615.59210714892]], [[301, 140, 372, 42, 274, 298], [0.0, 3351.7280617615743, 5239.206428458417, 6115.455829290242, 6412.831667835981, 6820.816373426278]], [[302, 188, 247, 38, 338, 334], [0.0, 4209.132095812627, 5133.148936082022, 5817.703412859752, 6440.216067803936, 7198.846713189551]], [[303, 335, 345, 211, 343, 340], [0.0, 3525.2425448470917, 3886.9050670166876, 4089.801095407942, 4156.678722249291, 4223.30214405742]], [[304, 187, 342, 276, 335, 250], [0.0, 3682.3986747770805, 3714.128565356886, 4020.8971635693447, 4438.109394776114, 5413.879662497126]], [[305, 321, 308, 347, 269, 171], [0.0, 3328.4624077793037, 3506.223894733478, 3871.4552819321057, 4479.15427285107, 4618.031398767228]], [[306, 226, 176, 216, 320, 388], [0.0, 8777.448433343257, 9290.163346249623, 9357.268351394012, 10032.860609018746, 10445.02814740104]], [[307, 168, 243, 143, 78, 267], [0.0, 17720.50936062505, 19745.12496795095, 19815.677682077894, 20305.719095860655, 21266.202152711707]], [[308, 175, 269, 67, 171, 305], [0.0, 2661.3256095412303, 3123.1226360807545, 3402.3882788417905, 3426.7658221711035, 3506.223894733478]], [[309, 142, 179, 332, 328, 103], [0.0, 7900.2963868452425, 8280.709691807822, 10935.059441996646, 12488.209519382672, 14048.156427090353]], [[310, 381, 210, 383, 143, 193], [0.0, 15653.276174654302, 19609.76634231015, 20383.608365547057, 21071.01146124694, 21746.006713877377]], [[311, 91, 191, 271, 106, 230], [0.0, 10355.313611861304, 13205.94563066197, 14015.68685437856, 14369.232860525297, 15207.311498091962]], [[312, 290, 50, 250, 349, 58], [0.0, 10170.892684518896, 10278.433878757989, 10302.145795900968, 10667.537625900366, 10727.432125163972]], [[313, 219, 287, 254, 356, 323], [0.0, 3341.1869148552582, 14921.470235871531, 15736.877263294646, 15945.209249175754, 15966.127833635806]], [[314, 252, 108, 158, 379, 323], [0.0, 3910.258047750813, 4186.657855617055, 4925.250958073101, 4955.559806923936, 5251.081602870022]], [[315, 246, 361, 351, 318, 389], [0.0, 5139.250042564577, 5597.272192773905, 5902.137917737945, 6619.09797479989, 7495.610048555088]], [[316, 318, 246, 351, 50, 389], [0.0, 6662.0879609924095, 6988.322617051963, 7231.351602570573, 7333.3137802769625, 7518.968280289524]], [[317, 387, 162, 231, 250, 340], [0.0, 7350.42243683994, 7975.704859133141, 8032.765028307501, 8081.292223400908, 8572.585724272461]], [[318, 246, 389, 17, 351, 361], [0.0, 3386.364865161461, 3843.336571262007, 4670.002462526118, 5264.1567225909985, 5792.676238147615]], [[319, 217, 133, 92, 97, 334], [0.0, 6034.7758864766465, 6074.287283295053, 6492.968581473347, 6921.5038828277775, 7014.087324805701]], [[320, 176, 326, 111, 359, 186], [0.0, 4161.276607004153, 4246.168979209377, 4614.0771558351735, 5213.257810620918, 6387.625380374149]], [[321, 305, 171, 347, 308, 269], [0.0, 3328.4624077793037, 3337.189536121675, 3409.5653681957765, 3586.798293743321, 3709.6313833048157]], [[322, 253, 244, 17, 361, 351], [0.0, 4750.141576837474, 5695.193499785587, 7192.287257889523, 7298.907109972013, 7516.680982987105]], [[323, 158, 155, 80, 76, 208], [0.0, 3105.5584038945394, 3966.955507691005, 4356.849205561285, 5024.97611934624, 5138.024717729567]], [[324, 164, 95, 175, 269, 67], [0.0, 4756.520156585064, 5556.310376499859, 5633.3514003655055, 5799.806289868654, 5856.360473877953]], [[325, 207, 283, 21, 202, 118], [0.0, 9649.180224247031, 14556.324776536143, 15760.593611917033, 16771.169011133363, 17373.779381585344]], [[326, 320, 176, 111, 106, 90], [0.0, 4246.168979209377, 4628.675404475885, 4767.075518596281, 6168.897551426835, 6656.8164312980725]], [[327, 254, 379, 192, 339, 369], [0.0, 4232.0903818326, 4270.048945855305, 5622.356890130686, 5828.429719915991, 5834.549768405443]], [[328, 76, 108, 155, 158, 323], [0.0, 8311.52928166652, 8463.363279453388, 8597.389371198678, 8852.042080785654, 8876.854172509538]], [[329, 263, 87, 208, 314, 292], [0.0, 7763.317718604591, 8185.635894663285, 8315.405943187621, 8365.212250744149, 8509.953231363848]], [[330, 198, 360, 358, 20, 62], [0.0, 2764.227016726376, 3925.3496659533403, 4511.063178453612, 4703.398771101595, 5027.006962398203]], [[331, 42, 238, 261, 277, 298], [0.0, 4244.196154750626, 4545.124750763173, 4602.128963860096, 4648.023343314876, 5180.552962763724]], [[332, 321, 183, 308, 171, 305], [0.0, 6584.293280223778, 6706.427961292062, 6846.223776652352, 6862.665954277536, 7083.847965618686]], [[333, 235, 204, 348, 49, 262], [0.0, 4746.7149693235215, 5167.260783045501, 5420.004151289923, 6146.200452311981, 6384.4831427453855]], [[334, 338, 188, 360, 38, 260], [0.0, 5280.375838896319, 5355.355917210359, 6391.357445801322, 6555.293967473923, 6852.420229378814]], [[335, 345, 343, 303, 340, 187], [0.0, 2507.7017366505133, 2721.0470411222223, 3525.2425448470917, 3646.8282109252145, 3662.0574817989955]], [[336, 104, 82, 7, 59, 116], [0.0, 2134.545853337426, 2833.633356664196, 3050.9678792147256, 3293.6217147693205, 3409.9205269331424]], [[337, 189, 272, 356, 103, 76], [0.0, 7385.622384064866, 7895.2100668696585, 8697.481934445164, 8878.724683196342, 9057.245110959513]], [[338, 177, 188, 38, 280, 360], [0.0, 3692.7562876528964, 4378.454750251509, 4423.1206178443745, 4484.572889361929, 4954.995963671414]], [[339, 379, 369, 342, 224, 252], [0.0, 3569.795092158652, 3850.801215331687, 4047.623747336207, 4261.338756775856, 4701.547404844494]], [[340, 335, 345, 162, 303, 187], [0.0, 3646.8282109252145, 3671.903865843985, 4180.831017871926, 4223.30214405742, 4448.9485274612925]], [[341, 232, 147, 173, 389, 318], [0.0, 27811.716649642465, 28817.53636243043, 29458.7516707684, 30238.79961241848, 30329.296628837274]], [[342, 304, 339, 369, 374, 335], [0.0, 3714.128565356886, 4047.623747336207, 4748.294009431177, 4823.558230186508, 5229.193245616383]], [[343, 335, 345, 211, 374, 303], [0.0, 2721.0470411222223, 3282.1275112341386, 3492.553363944494, 3873.9425653976855, 4156.678722249291]], [[344, 242, 272, 356, 268, 206], [0.0, 6162.715959704779, 6174.154840947868, 6489.983204908931, 6557.766083049928, 6667.9436110393135]], [[345, 335, 343, 211, 340, 187], [0.0, 2507.7017366505133, 3282.1275112341386, 3448.66785875358, 3671.903865843985, 3674.159087464777]], [[346, 22, 10, 209, 23, 4], [0.0, 17968.757330433287, 19690.571804800387, 22430.959408817092, 23304.68409998299, 23747.92235122896]], [[347, 269, 321, 308, 171, 305], [0.0, 2999.444448560433, 3409.5653681957765, 3841.2248046684276, 3843.2551307452904, 3871.4552819321057]], [[348, 235, 333, 204, 377, 215], [0.0, 4198.451619347304, 5420.004151289923, 5923.593757171401, 6037.947416134062, 6092.5857400614395]], [[349, 290, 250, 162, 187, 50], [0.0, 4529.128503365741, 5350.480819515195, 5420.36539358741, 5519.871194149371, 5608.485357028224]], [[350, 321, 183, 251, 270, 196], [0.0, 4992.711688050893, 5239.498640137242, 5312.720207200827, 5472.571698936434, 5479.049552614029]], [[351, 361, 246, 17, 318, 315], [0.0, 4131.371927096373, 4172.432503947787, 5187.10275587442, 5264.1567225909985, 5902.137917737945]], [[352, 362, 255, 234, 286, 385], [0.0, 8390.306073082198, 9027.27921358368, 9175.75293913257, 9859.453737403508, 10419.904606089252]], [[353, 49, 377, 235, 358, 204], [0.0, 3534.9544551521453, 4224.474286819604, 4225.609068524915, 4261.774865006362, 4587.085676112884]], [[354, 383, 180, 210, 371, 294], [0.0, 9225.645885248361, 11642.493847969172, 12050.565961812748, 12433.332015192065, 16249.633134320295]], [[355, 220, 180, 371, 160, 145], [0.0, 16997.6353061242, 17619.283611997394, 17786.446047482335, 19162.13046610423, 19620.46319534786]], [[356, 214, 206, 248, 272, 221], [0.0, 4619.454296775757, 4691.3586518193215, 5265.34101459725, 5526.078175342799, 6153.850176921762]], [[357, 229, 68, 293, 48, 364], [0.0, 15952.356001544098, 19986.577145674542, 20571.561972781747, 21159.797258007933, 21583.73392163645]], [[358, 49, 198, 20, 83, 62], [0.0, 3203.708788264002, 3467.8483242494904, 3941.8316808306263, 4016.633416183259, 4077.1875110178585]], [[359, 186, 111, 320, 190, 75], [0.0, 4598.87214434148, 4887.354396808155, 5213.257810620918, 5257.299782207592, 6311.288537216469]], [[360, 330, 198, 358, 188, 338], [0.0, 3925.3496659533403, 3939.599852776929, 4807.091948361296, 4845.745453488039, 4954.995963671414]], [[361, 351, 246, 253, 315, 17], [0.0, 4131.371927096373, 4942.667194946469, 5465.867726171207, 5597.272192773905, 5734.306148088014]], [[362, 331, 238, 277, 166, 261], [0.0, 5800.896223860585, 6135.253702985721, 6148.377997488444, 6793.62686640943, 7610.415625969452]], [[363, 197, 289, 151, 376, 130], [0.0, 9906.421654664211, 21878.77738814489, 22198.771047064743, 33345.99526180018, 38159.717399372865]], [[364, 214, 239, 221, 172, 208], [0.0, 11734.665312653788, 12422.249635231132, 12518.376092768582, 13267.813308906634, 13347.870242102295]], [[365, 152, 267, 193, 184, 258], [0.0, 4351.311526425107, 4431.790495950819, 5558.813272632928, 5633.042694672215, 6169.643992970745]], [[366, 175, 29, 308, 277, 269], [0.0, 4046.4851414530117, 4699.589450154131, 4916.279690985858, 4947.754035923775, 4991.12301992247]], [[367, 152, 365, 193, 184, 267], [0.0, 5662.571853848744, 6444.9813033088, 6566.976853926013, 6813.192350139544, 7307.623485101021]], [[368, 27, 314, 158, 252, 208], [0.0, 6878.220845538474, 6941.016063949139, 7120.072963109296, 7454.397494097025, 7507.731748004852]], [[369, 379, 339, 192, 374, 342], [0.0, 3559.992556171993, 3850.801215331687, 3860.9270907387, 4628.341387581517, 4748.294009431177]], [[370, 177, 338, 25, 38, 20], [0.0, 6272.633657404201, 7005.035474571132, 7560.201187799171, 7666.159142621552, 7850.265664294426]], [[371, 180, 383, 160, 159, 136], [0.0, 6721.008108907473, 7425.562941622676, 10843.425980749811, 12001.769911142273, 12090.436427193188]], [[372, 215, 298, 204, 42, 274], [0.0, 3554.3711117439607, 3601.5185686040827, 4066.3573379623194, 4652.727157270239, 4730.12219715305]], [[373, 171, 308, 321, 175, 305], [0.0, 7305.8190505924795, 7583.837155424687, 7628.821796319534, 7653.936111570308, 7970.509770397374]], [[374, 192, 343, 379, 211, 369], [0.0, 3462.3887707766153, 3873.9425653976855, 4199.124551617872, 4430.424358907395, 4628.341387581517]], [[375, 253, 244, 173, 322, 361], [0.0, 7475.702241261351, 7571.29169957148, 7754.209050573759, 8288.657249518767, 8640.65657227505]], [[376, 130, 151, 64, 289, 165], [0.0, 16137.830833169617, 16785.00348525433, 18489.52219501629, 19096.953631404147, 19897.78608287867]], [[377, 215, 353, 298, 204, 235], [0.0, 3851.085561241142, 4224.474286819604, 4698.036185471542, 4726.746872850291, 4935.9255464401]], [[378, 361, 351, 253, 315, 246], [0.0, 6449.810849939709, 6768.150707541906, 7424.680599190783, 8369.964516053817, 9087.428624203878]], [[379, 192, 369, 339, 374, 327], [0.0, 3041.477437036152, 3559.992556171993, 3569.795092158652, 4199.124551617872, 4270.048945855305]], [[380, 137, 164, 270, 251, 321], [0.0, 5859.001792114421, 8945.163833044087, 9349.604002309403, 9515.08570639277, 9900.858952636383]], [[381, 160, 371, 383, 180, 310], [0.0, 12414.421895521353, 12580.78105683427, 12774.406718121982, 13242.908517391486, 15653.276174654302]], [[382, 169, 115, 257, 114, 156], [0.0, 15625.562389878964, 18729.320169189272, 18774.91336864168, 19701.89668534479, 20963.29742669316]], [[383, 371, 180, 210, 354, 381], [0.0, 7425.562941622676, 8524.36830504173, 9157.775603278342, 9225.645885248361, 12774.406718121982]], [[384, 173, 253, 361, 375, 389], [0.0, 6206.158312515078, 8696.045250572239, 8750.229996977223, 8863.358787728273, 9166.953637932287]], [[385, 284, 352, 286, 347, 166], [0.0, 7653.4699319981655, 10419.904606089252, 11069.990785904025, 12244.11303443414, 12506.330556961942]], [[386, 29, 157, 261, 277, 150], [0.0, 2886.9975753367025, 3211.149638369411, 3360.1785666836217, 3691.9190131962537, 4333.924087936935]], [[387, 290, 147, 349, 162, 250], [0.0, 4846.729825356474, 4905.537483293752, 5658.564570630965, 5735.358576410023, 5860.482403352134]], [[388, 320, 359, 111, 326, 176], [0.0, 7626.255765446108, 7949.735341506659, 8248.000909311299, 8574.21623240282, 8769.130971766815]], [[389, 318, 246, 17, 351, 361], [0.0, 3843.336571262007, 4190.21371769985, 5181.607376094797, 5993.533348534902, 6723.874032133559]]]
#2048
arr = [[[0, 128, 337, 30, 356, 166], [0.0, 0.1005626916885376, 0.10077941417694092, 0.10181653499603271, 0.11069488525390625, 0.11128991842269897]], [[1, 335, 308, 131, 273, 14], [0.0, 0.0942697525024414, 0.09997010231018066, 0.10416316986083984, 0.11758792400360107, 0.12119185924530029]], [[2, 210, 72, 76, 311, 242], [1.7881393432617188e-07, 0.049562931060791016, 0.05202406644821167, 0.06311362981796265, 0.06434881687164307, 0.06878328323364258]], [[3, 287, 242, 55, 10, 32], [0.0, 0.04105997085571289, 0.0548740029335022, 0.0632060170173645, 0.06866198778152466, 0.0732453465461731]], [[4, 100, 17, 305, 99, 386], [0.0, 0.06099724769592285, 0.06115597486495972, 0.06637638807296753, 0.07505744695663452, 0.0750969648361206]], [[5, 97, 19, 104, 303, 288], [5.960464477539063e-08, 0.08154857158660889, 0.08185344934463501, 0.08393651247024536, 0.08458435535430908, 0.08599615097045898]], [[6, 378, 229, 71, 16, 171], [1.7881393432617188e-07, 0.06647306680679321, 0.06806796789169312, 0.06850755214691162, 0.07522445917129517, 0.07776880264282227]], [[7, 45, 107, 96, 12, 71], [0.0, 0.0580938458442688, 0.0590936541557312, 0.06011974811553955, 0.060225725173950195, 0.06028568744659424]], [[8, 176, 321, 46, 313, 151], [0.0, 0.03362011909484863, 0.038350820541381836, 0.0428888201713562, 0.04345816373825073, 0.04350876808166504]], [[9, 170, 250, 263, 385, 150], [0.0, 0.12281560897827148, 0.13004720211029053, 0.1312175989151001, 0.13205206394195557, 0.13637584447860718]], [[10, 178, 348, 67, 60, 55], [0.0, 0.047936201095581055, 0.049902498722076416, 0.05183291435241699, 0.05232119560241699, 0.05429047346115112]], [[11, 129, 305, 100, 386, 292], [0.0, 0.08831846714019775, 0.09069520235061646, 0.09222710132598877, 0.0927320122718811, 0.09927761554718018]], [[12, 71, 229, 45, 378, 96], [0.0, 0.02828037738800049, 0.03667175769805908, 0.03744018077850342, 0.04182732105255127, 0.042524099349975586]], [[13, 281, 231, 155, 139, 82], [0.0, 0.035893142223358154, 0.037699997425079346, 0.04320460557937622, 0.04357856512069702, 0.04388362169265747]], [[14, 19, 152, 5, 192, 260], [0.0, 0.0910763144493103, 0.09139037132263184, 0.09370124340057373, 0.09395545721054077, 0.09890615940093994]], [[15, 71, 45, 229, 92, 12], [1.1920928955078125e-07, 0.09209758043289185, 0.09580999612808228, 0.09787583351135254, 0.0991814136505127, 0.09936380386352539]], [[16, 171, 154, 196, 384, 71], [1.1920928955078125e-07, 0.05150872468948364, 0.06328332424163818, 0.06411761045455933, 0.06560969352722168, 0.06584668159484863]], [[17, 305, 57, 100, 388, 36], [0.0, 0.04877501726150513, 0.055229246616363525, 0.05591011047363281, 0.05608147382736206, 0.056215643882751465]], [[18, 143, 198, 114, 360, 165], [0.0, 0.06015002727508545, 0.06475073099136353, 0.06770288944244385, 0.06871318817138672, 0.07012557983398438]], [[19, 152, 215, 39, 315, 260], [0.0, 0.052642107009887695, 0.06158459186553955, 0.06263852119445801, 0.06486845016479492, 0.06546270847320557]], [[20, 231, 281, 13, 289, 360], [0.0, 0.044324636459350586, 0.04457515478134155, 0.04825270175933838, 0.048373520374298096, 0.048667192459106445]], [[21, 181, 62, 262, 310, 340], [0.0, 0.09325623512268066, 0.11275607347488403, 0.12407243251800537, 0.1299898624420166, 0.13688838481903076]], [[22, 332, 305, 100, 4, 384], [0.0, 0.06975585222244263, 0.07071477174758911, 0.07576745748519897, 0.08226519823074341, 0.08533704280853271]], [[23, 388, 257, 57, 209, 248], [3.5762786865234375e-07, 0.07066106796264648, 0.0736396312713623, 0.08093774318695068, 0.08467257022857666, 0.0850268006324768]], [[24, 41, 78, 208, 382, 35], [1.1920928955078125e-07, 0.06995820999145508, 0.09289264678955078, 0.10452008247375488, 0.10537409782409668, 0.11078232526779175]], [[25, 373, 331, 288, 86, 363], [0.0, 0.049719810485839844, 0.05682593584060669, 0.059105873107910156, 0.05919879674911499, 0.06151348352432251]], [[26, 88, 295, 276, 130, 354], [0.0, 0.13215720653533936, 0.13317841291427612, 0.13640064001083374, 0.14095628261566162, 0.14118832349777222]], [[27, 291, 104, 121, 227, 88], [1.1920928955078125e-07, 0.11909270286560059, 0.12615466117858887, 0.14922082424163818, 0.15525811910629272, 0.15731382369995117]], [[28, 388, 349, 23, 257, 57], [0.0, 0.09190154075622559, 0.0920032262802124, 0.09242939949035645, 0.09547334909439087, 0.09568190574645996]], [[29, 258, 194, 125, 118, 318], [0.0, 0.09951764345169067, 0.10150337219238281, 0.1082921028137207, 0.10872000455856323, 0.11350959539413452]], [[30, 375, 337, 76, 52, 309], [0.0, 0.05500936508178711, 0.06323885917663574, 0.06384491920471191, 0.06425493955612183, 0.06765508651733398]], [[31, 236, 255, 247, 389, 151], [1.1920928955078125e-07, 0.08536458015441895, 0.08772879838943481, 0.09057903289794922, 0.09326386451721191, 0.09366410970687866]], [[32, 76, 375, 309, 242, 210], [0.0, 0.04529482126235962, 0.0609058141708374, 0.06201910972595215, 0.06534546613693237, 0.0663800835609436]], [[33, 10, 287, 242, 3, 67], [2.384185791015625e-07, 0.058835625648498535, 0.06372332572937012, 0.0736684799194336, 0.07995736598968506, 0.08360564708709717]], [[34, 259, 18, 128, 198, 49], [5.960464477539063e-08, 0.05369997024536133, 0.07236450910568237, 0.07848501205444336, 0.08096760511398315, 0.08247578144073486]], [[35, 78, 197, 254, 125, 255], [2.384185791015625e-07, 0.09112715721130371, 0.09396719932556152, 0.09481298923492432, 0.09809255599975586, 0.10170602798461914]], [[36, 17, 388, 209, 305, 326], [1.7881393432617188e-07, 0.056215643882751465, 0.05823516845703125, 0.06366699934005737, 0.06771749258041382, 0.07028859853744507]], [[37, 70, 80, 90, 346, 387], [5.960464477539063e-08, 0.07081067562103271, 0.07245051860809326, 0.07526904344558716, 0.07646703720092773, 0.07646703720092773]], [[38, 276, 320, 206, 63, 140], [0.0, 0.06224709749221802, 0.07289868593215942, 0.07399356365203857, 0.07406628131866455, 0.07515543699264526]], [[39, 303, 152, 215, 264, 70], [0.0, 0.04280740022659302, 0.04761064052581787, 0.04792964458465576, 0.048143982887268066, 0.04962873458862305]], [[40, 69, 234, 351, 157, 63], [5.960464477539063e-08, 0.0488094687461853, 0.05567371845245361, 0.05606424808502197, 0.06058239936828613, 0.06100970506668091]], [[41, 24, 78, 273, 382, 208], [0.0, 0.06995820999145508, 0.09829652309417725, 0.10327845811843872, 0.10604262351989746, 0.11442548036575317]], [[42, 298, 325, 189, 227, 290], [0.0, 0.18739008903503418, 0.1901332139968872, 0.19261431694030762, 0.1977393627166748, 0.19783663749694824]], [[43, 0, 356, 370, 30, 337], [1.1920928955078125e-07, 0.12884116172790527, 0.1444295048713684, 0.14681416749954224, 0.15216153860092163, 0.16057586669921875]], [[44, 312, 266, 226, 267, 354], [5.960464477539063e-08, 0.1110842227935791, 0.11402487754821777, 0.11455321311950684, 0.11788570880889893, 0.11900615692138672]], [[45, 229, 71, 378, 12, 96], [1.1920928955078125e-07, 0.02926015853881836, 0.03166651725769043, 0.037140846252441406, 0.03744018077850342, 0.038410067558288574]], [[46, 164, 313, 247, 163, 176], [5.960464477539063e-08, 0.030757546424865723, 0.032804667949676514, 0.03646284341812134, 0.038690388202667236, 0.04049760103225708]], [[47, 313, 235, 46, 117, 164], [0.0, 0.04832732677459717, 0.04969966411590576, 0.0541345477104187, 0.058829545974731445, 0.05934387445449829]], [[48, 369, 210, 20, 252, 383], [1.1920928955078125e-07, 0.1252894401550293, 0.13540172576904297, 0.13950371742248535, 0.14341557025909424, 0.148326575756073]], [[49, 211, 224, 95, 366, 359], [5.960464477539063e-08, 0.055333852767944336, 0.061171889305114746, 0.06294906139373779, 0.063076913356781, 0.06368374824523926]], [[50, 386, 305, 4, 384, 292], [0.0, 0.0706782341003418, 0.07111704349517822, 0.08032643795013428, 0.08162033557891846, 0.0816696286201477]], [[51, 375, 76, 309, 84, 30], [2.384185791015625e-07, 0.06318801641464233, 0.06871497631072998, 0.07387340068817139, 0.07428938150405884, 0.07462084293365479]], [[52, 76, 337, 168, 375, 210], [0.0, 0.04663097858428955, 0.057126522064208984, 0.058302998542785645, 0.0616837739944458, 0.0629071593284607]], [[53, 383, 49, 299, 8, 95], [0.0, 0.08219456672668457, 0.09958779811859131, 0.10117167234420776, 0.10236853361129761, 0.10305947065353394]], [[54, 191, 367, 383, 64, 122], [0.0, 0.17235052585601807, 0.19537591934204102, 0.22151511907577515, 0.22621870040893555, 0.2338804006576538]], [[55, 348, 67, 60, 10, 178], [0.0, 0.050887346267700195, 0.05339038372039795, 0.05345034599304199, 0.05429047346115112, 0.05748450756072998]], [[56, 266, 144, 94, 167, 150], [5.960464477539063e-08, 0.0745808482170105, 0.09138768911361694, 0.09912258386611938, 0.10033959150314331, 0.10937082767486572]], [[57, 17, 388, 209, 257, 305], [0.0, 0.055229246616363525, 0.06635099649429321, 0.06721103191375732, 0.06899487972259521, 0.06986367702484131]], [[58, 380, 99, 142, 94, 384], [0.0, 0.10433363914489746, 0.11881721019744873, 0.12344497442245483, 0.12403273582458496, 0.12717264890670776]], [[59, 271, 286, 179, 123, 227], [0.0, 0.07521593570709229, 0.1281530261039734, 0.13956236839294434, 0.15041756629943848, 0.15301060676574707]], [[60, 67, 348, 178, 10, 55], [0.0, 0.00017821788787841797, 0.047116994857788086, 0.05019253492355347, 0.05232119560241699, 0.05345034599304199]], [[61, 253, 366, 146, 213, 224], [0.0, 0.05778157711029053, 0.060382068157196045, 0.06183302402496338, 0.0628814697265625, 0.06408083438873291]], [[62, 310, 21, 262, 181, 37], [1.1920928955078125e-07, 0.1019512414932251, 0.11275607347488403, 0.12274575233459473, 0.1298845410346985, 0.14955198764801025]], [[63, 140, 69, 351, 283, 206], [2.384185791015625e-07, 0.04478907585144043, 0.04597270488739014, 0.05061972141265869, 0.05126082897186279, 0.05416899919509888]], [[64, 279, 75, 238, 98, 247], [2.384185791015625e-07, 0.10077059268951416, 0.1112896203994751, 0.12097221612930298, 0.12214481830596924, 0.1225970983505249]], [[65, 94, 56, 167, 381, 318], [2.384185791015625e-07, 0.10081690549850464, 0.16298234462738037, 0.1641629934310913, 0.18637174367904663, 0.1864812970161438]], [[66, 71, 12, 45, 229, 96], [0.0, 0.041068196296691895, 0.046581804752349854, 0.05200648307800293, 0.052407026290893555, 0.053811490535736084]], [[67, 60, 348, 178, 10, 55], [0.0, 0.00017821788787841797, 0.04662448167800903, 0.049785733222961426, 0.05183291435241699, 0.05339038372039795]], [[68, 212, 256, 296, 83, 123], [1.1920928955078125e-07, 0.07987916469573975, 0.09101331233978271, 0.10285460948944092, 0.11461901664733887, 0.12338972091674805]], [[69, 351, 140, 63, 157, 40], [0.0, 0.04005134105682373, 0.041211724281311035, 0.04597270488739014, 0.04673677682876587, 0.0488094687461853]], [[70, 248, 264, 215, 39, 297], [1.7881393432617188e-07, 0.04572033882141113, 0.04826486110687256, 0.049379944801330566, 0.04962873458862305, 0.054569780826568604]], [[71, 12, 229, 45, 96, 378], [4.172325134277344e-07, 0.02828037738800049, 0.030160605907440186, 0.03166651725769043, 0.037590622901916504, 0.03851675987243652]], [[72, 210, 82, 168, 311, 139], [0.0, 0.04411518573760986, 0.04566693305969238, 0.04905962944030762, 0.051091670989990234, 0.05183684825897217]], [[73, 45, 327, 92, 12, 343], [5.960464477539063e-08, 0.10720217227935791, 0.11332958936691284, 0.1157228946685791, 0.11603295803070068, 0.11604249477386475]], [[74, 189, 389, 237, 117, 157], [1.7881393432617188e-07, 0.06960052251815796, 0.08840560913085938, 0.09126400947570801, 0.09154009819030762, 0.0926206111907959]], [[75, 247, 164, 307, 117, 283], [0.0, 0.04551893472671509, 0.053152620792388916, 0.05444025993347168, 0.05548286437988281, 0.057063281536102295]], [[76, 32, 375, 210, 52, 309], [0.0, 0.04529482126235962, 0.04639464616775513, 0.04660993814468384, 0.04663097858428955, 0.048916518688201904]], [[77, 336, 63, 69, 164, 247], [1.1920928955078125e-07, 0.05293452739715576, 0.05473989248275757, 0.05812329053878784, 0.058454275131225586, 0.059741437435150146]], [[78, 125, 35, 24, 258, 340], [0.0, 0.08225131034851074, 0.09112715721130371, 0.09289264678955078, 0.0959402322769165, 0.0964822769165039]], [[79, 213, 289, 359, 347, 304], [0.0, 0.07817733287811279, 0.07885366678237915, 0.08214700222015381, 0.08364582061767578, 0.0837395191192627]], [[80, 215, 264, 182, 37, 248], [0.0, 0.06977283954620361, 0.0714913010597229, 0.07219105958938599, 0.07245051860809326, 0.07489895820617676]], [[81, 129, 107, 261, 96, 154], [0.0, 0.15226155519485474, 0.1616497039794922, 0.17522186040878296, 0.18650835752487183, 0.1891527771949768]], [[82, 281, 231, 13, 168, 139], [0.0, 0.0423809289932251, 0.04366481304168701, 0.04388362169265747, 0.0441509485244751, 0.045389533042907715]], [[83, 216, 136, 115, 372, 46], [0.0, 0.06969684362411499, 0.07079887390136719, 0.07450193166732788, 0.07597553730010986, 0.07600688934326172]], [[84, 168, 166, 139, 210, 311], [0.0, 0.04298079013824463, 0.045029282569885254, 0.048431575298309326, 0.05172085762023926, 0.05417817831039429]], [[85, 385, 387, 346, 124, 80], [5.960464477539063e-08, 0.060361623764038086, 0.07113653421401978, 0.07113653421401978, 0.08159124851226807, 0.08374738693237305]], [[86, 288, 190, 303, 25, 269], [0.0, 0.054333627223968506, 0.054544806480407715, 0.05677121877670288, 0.05919879674911499, 0.06163662672042847]], [[87, 254, 137, 329, 39, 217], [0.0, 0.057404398918151855, 0.08084362745285034, 0.09660136699676514, 0.09774887561798096, 0.0977867841720581]], [[88, 295, 199, 201, 63, 93], [1.1920928955078125e-07, 0.05963146686553955, 0.07073652744293213, 0.08101546764373779, 0.08127003908157349, 0.08339250087738037]], [[89, 149, 84, 139, 166, 168], [0.0, 0.04874807596206665, 0.0644349455833435, 0.07213848829269409, 0.0721510648727417, 0.07362496852874756]], [[90, 207, 387, 346, 315, 37], [1.1920928955078125e-07, 0.061542391777038574, 0.0673600435256958, 0.0673600435256958, 0.07291239500045776, 0.07526904344558716]], [[91, 313, 176, 46, 164, 151], [0.0, 0.04198896884918213, 0.042483389377593994, 0.04323005676269531, 0.0462191104888916, 0.04850655794143677]], [[92, 45, 229, 12, 71, 378], [0.0, 0.040180325508117676, 0.042765915393829346, 0.045211851596832275, 0.05054116249084473, 0.057910025119781494]], [[93, 199, 88, 63, 295, 203], [1.1920928955078125e-07, 0.07741540670394897, 0.08339250087738037, 0.08914095163345337, 0.0915137529373169, 0.0935211181640625]], [[94, 56, 65, 129, 58, 167], [0.0, 0.09912258386611938, 0.10081684589385986, 0.10811948776245117, 0.12403273582458496, 0.13024282455444336]], [[95, 224, 285, 366, 321, 213], [0.0, 0.03451073169708252, 0.03666502237319946, 0.04081171751022339, 0.04123347997665405, 0.041637539863586426]], [[96, 229, 378, 71, 45, 261], [1.1920928955078125e-07, 0.035408854484558105, 0.03636223077774048, 0.037590622901916504, 0.038410067558288574, 0.04035520553588867]], [[97, 205, 170, 160, 19, 319], [0.0, 0.06477290391921997, 0.06766068935394287, 0.0766134262084961, 0.07778501510620117, 0.07952713966369629]], [[98, 241, 64, 236, 362, 197], [5.960464477539063e-08, 0.10403168201446533, 0.12214481830596924, 0.13926100730895996, 0.14328312873840332, 0.14532190561294556]], [[99, 142, 386, 292, 305, 384], [1.7881393432617188e-07, 0.04474687576293945, 0.05754208564758301, 0.05966871976852417, 0.06204444169998169, 0.07085573673248291]], [[100, 305, 17, 4, 209, 257], [1.7881393432617188e-07, 0.04650908708572388, 0.05591011047363281, 0.06099724769592285, 0.0654001235961914, 0.06881314516067505]], [[101, 95, 321, 313, 224, 253], [1.1920928955078125e-07, 0.048243939876556396, 0.04940342903137207, 0.04948067665100098, 0.04967641830444336, 0.05025213956832886]], [[102, 71, 196, 343, 16, 229], [0.0, 0.09819847345352173, 0.09978246688842773, 0.10211288928985596, 0.10580718517303467, 0.10837650299072266]], [[103, 217, 320, 137, 363, 233], [0.0, 0.08282500505447388, 0.0857122540473938, 0.09019076824188232, 0.09669601917266846, 0.09772109985351562]], [[104, 121, 235, 238, 5, 63], [0.0, 0.06613713502883911, 0.07678675651550293, 0.07891273498535156, 0.08393651247024536, 0.08574026823043823]], [[105, 112, 327, 378, 154, 229], [2.384185791015625e-07, 2.384185791015625e-07, 0.05802124738693237, 0.05985313653945923, 0.06026118993759155, 0.06101179122924805]], [[106, 190, 307, 235, 234, 86], [0.0, 0.06245231628417969, 0.06550025939941406, 0.07288551330566406, 0.07616257667541504, 0.07705569267272949]], [[107, 378, 96, 229, 12, 154], [5.960464477539063e-08, 0.043897151947021484, 0.04902195930480957, 0.04976707696914673, 0.051196157932281494, 0.052003324031829834]], [[108, 328, 249, 138, 220, 275], [0.0, 0.06590616703033447, 0.08359116315841675, 0.10840874910354614, 0.10897600650787354, 0.11880385875701904]], [[109, 355, 241, 180, 159, 364], [0.0, 0.11657929420471191, 0.12503910064697266, 0.1260690689086914, 0.1325162649154663, 0.1346331238746643]], [[110, 384, 386, 232, 16, 305], [0.0, 0.07200497388839722, 0.09606689214706421, 0.09742778539657593, 0.09962868690490723, 0.10093814134597778]], [[111, 16, 196, 384, 110, 171], [0.0, 0.11385107040405273, 0.11557066440582275, 0.11656224727630615, 0.12670302391052246, 0.12846243381500244]], [[105, 112, 327, 378, 154, 229], [2.384185791015625e-07, 2.384185791015625e-07, 0.05802124738693237, 0.05985313653945923, 0.06026118993759155, 0.06101179122924805]], [[113, 124, 201, 123, 88, 217], [5.960464477539063e-08, 0.0777277946472168, 0.08865678310394287, 0.10174578428268433, 0.10515928268432617, 0.10644412040710449]], [[114, 289, 198, 213, 252, 143], [1.1920928955078125e-07, 0.050698280334472656, 0.05676358938217163, 0.06200987100601196, 0.06275969743728638, 0.063576340675354]], [[115, 253, 216, 366, 224, 350], [0.0, 0.055370450019836426, 0.060330986976623535, 0.062326788902282715, 0.06277275085449219, 0.06360357999801636]], [[116, 333, 332, 102, 382, 120], [1.1920928955078125e-07, 0.07276517152786255, 0.09047341346740723, 0.11065751314163208, 0.12521463632583618, 0.1300889253616333]], [[117, 237, 313, 247, 46, 164], [1.1920928955078125e-07, 0.03674668073654175, 0.03934609889984131, 0.03998589515686035, 0.04171347618103027, 0.0431370735168457]], [[118, 167, 29, 381, 266, 355], [1.7881393432617188e-07, 0.10203838348388672, 0.10872000455856323, 0.11471152305603027, 0.1239631175994873, 0.1299229860305786]], [[119, 183, 207, 177, 318, 37], [0.0, 0.11215156316757202, 0.13054955005645752, 0.13418471813201904, 0.13678085803985596, 0.15105986595153809]], [[120, 110, 116, 333, 365, 384], [0.0, 0.12943404912948608, 0.1300889253616333, 0.13278615474700928, 0.13954782485961914, 0.14322787523269653]], [[121, 47, 238, 104, 235, 46], [5.960464477539063e-08, 0.06309103965759277, 0.06599342823028564, 0.06613713502883911, 0.0713815689086914, 0.07837450504302979]], [[122, 367, 357, 361, 353, 359], [1.7881393432617188e-07, 0.09586310386657715, 0.10388410091400146, 0.11352717876434326, 0.12096035480499268, 0.12133049964904785]], [[123, 286, 256, 113, 263, 290], [0.0, 0.09271705150604248, 0.09450113773345947, 0.10174578428268433, 0.1035568118095398, 0.10465335845947266]], [[124, 113, 385, 37, 85, 207], [1.1920928955078125e-07, 0.0777277946472168, 0.07818859815597534, 0.07925033569335938, 0.08159124851226807, 0.08329004049301147]], [[125, 78, 340, 273, 35, 280], [1.1920928955078125e-07, 0.08225131034851074, 0.09489220380783081, 0.09756767749786377, 0.09809255599975586, 0.10554414987564087]], [[126, 83, 212, 162, 265, 350], [0.0, 0.10565441846847534, 0.11218750476837158, 0.11417609453201294, 0.11477464437484741, 0.1185951828956604]], [[127, 290, 354, 302, 144, 381], [2.980232238769531e-07, 0.09275192022323608, 0.09446471929550171, 0.0950326919555664, 0.09758371114730835, 0.10467958450317383]], [[128, 374, 231, 186, 20, 304], [0.0, 0.05354666709899902, 0.05509597063064575, 0.056864380836486816, 0.05753493309020996, 0.059204936027526855]], [[129, 174, 305, 100, 11, 386], [0.0, 0.06721508502960205, 0.07833313941955566, 0.08523988723754883, 0.08831846714019775, 0.09280383586883545]], [[130, 157, 288, 172, 351, 303], [1.1920928955078125e-07, 0.052381277084350586, 0.05249941349029541, 0.055913448333740234, 0.05718696117401123, 0.05879563093185425]], [[131, 335, 308, 23, 1, 177], [2.384185791015625e-07, 0.07537662982940674, 0.08919519186019897, 0.10340988636016846, 0.10416316986083984, 0.10516226291656494]], [[188, 132, 282, 246, 372, 176], [3.5762786865234375e-07, 3.5762786865234375e-07, 0.03381061553955078, 0.03964346647262573, 0.04205894470214844, 0.042507946491241455]], [[133, 284, 285, 95, 213, 146], [2.980232238769531e-07, 0.05062246322631836, 0.051327526569366455, 0.05221682786941528, 0.05582070350646973, 0.05612307786941528]], [[134, 132, 188, 246, 282, 342], [0.0, 0.05285942554473877, 0.05285942554473877, 0.058534443378448486, 0.060078978538513184, 0.061326026916503906]], [[135, 349, 326, 251, 341, 170], [5.960464477539063e-08, 0.0872570276260376, 0.09068471193313599, 0.09406256675720215, 0.09529423713684082, 0.09625828266143799]], [[136, 372, 313, 46, 188, 132], [0.0, 0.04761546850204468, 0.051690757274627686, 0.05169868469238281, 0.05170726776123047, 0.05170726776123047]], [[137, 329, 315, 217, 215, 39], [0.0, 0.03967493772506714, 0.05989658832550049, 0.06065559387207031, 0.061300039291381836, 0.06167083978652954]], [[138, 236, 108, 249, 176, 255], [0.0, 0.10527598857879639, 0.10840874910354614, 0.11044037342071533, 0.11077278852462769, 0.11326533555984497]], [[139, 168, 155, 231, 166, 13], [0.0, 0.03546905517578125, 0.03861701488494873, 0.04148101806640625, 0.04350167512893677, 0.04357856512069702]], [[140, 351, 175, 69, 206, 63], [5.960464477539063e-08, 0.038742244243621826, 0.03926432132720947, 0.041211724281311035, 0.04249817132949829, 0.04478907585144043]], [[141, 254, 181, 329, 87, 262], [0.0, 0.09456205368041992, 0.10321056842803955, 0.11289513111114502, 0.11427438259124756, 0.11794519424438477]], [[142, 99, 292, 386, 384, 4], [1.7881393432617188e-07, 0.04474687576293945, 0.06172895431518555, 0.0668976902961731, 0.07155561447143555, 0.08189666271209717]], [[143, 18, 114, 219, 133, 95], [0.0, 0.06015002727508545, 0.063576340675354, 0.06993556022644043, 0.07025337219238281, 0.07231974601745605]], [[144, 56, 150, 127, 266, 302], [5.960464477539063e-08, 0.09138768911361694, 0.09296572208404541, 0.09758371114730835, 0.1053779125213623, 0.10982018709182739]], [[145, 333, 222, 332, 335, 22], [0.0, 0.1586158275604248, 0.1672675609588623, 0.1762371063232422, 0.17648464441299438, 0.17766046524047852]], [[146, 253, 224, 213, 95, 321], [0.0, 0.039893269538879395, 0.041908979415893555, 0.04300886392593384, 0.04475212097167969, 0.04629397392272949]], [[147, 91, 46, 247, 140, 283], [1.7881393432617188e-07, 0.05453014373779297, 0.05913197994232178, 0.05989283323287964, 0.061430394649505615, 0.06162184476852417]], [[148, 4, 142, 161, 171, 232], [0.0, 0.12091636657714844, 0.12572097778320312, 0.12703359127044678, 0.13017600774765015, 0.13085651397705078]], [[149, 89, 84, 51, 168, 270], [1.7881393432617188e-07, 0.04874807596206665, 0.09636402130126953, 0.09851789474487305, 0.09899759292602539, 0.09978771209716797]], [[150, 263, 385, 170, 80, 250], [0.0, 0.06800848245620728, 0.07880616188049316, 0.08270537853240967, 0.0842665433883667, 0.08466446399688721]], [[151, 236, 176, 313, 163, 247], [0.0, 0.027031242847442627, 0.03211629390716553, 0.0324057936668396, 0.03695887327194214, 0.037789881229400635]], [[152, 315, 215, 264, 248, 297], [0.0, 0.03177213668823242, 0.035214245319366455, 0.04025083780288696, 0.041791558265686035, 0.0418393611907959]], [[153, 214, 354, 320, 276, 187], [0.0, 0.0711216926574707, 0.08582174777984619, 0.09790593385696411, 0.10246086120605469, 0.10278666019439697]], [[154, 378, 229, 171, 261, 96], [0.0, 0.0352669358253479, 0.03776901960372925, 0.04543197154998779, 0.045757174491882324, 0.04837346076965332]], [[155, 139, 166, 13, 168, 231], [0.0, 0.03861701488494873, 0.04088938236236572, 0.04320460557937622, 0.044882118701934814, 0.0454789400100708]], [[156, 326, 208, 5, 388, 28], [1.1920928955078125e-07, 0.09791409969329834, 0.09890776872634888, 0.10843789577484131, 0.10897552967071533, 0.11238610744476318]], [[157, 351, 234, 237, 283, 117], [0.0, 0.037863969802856445, 0.04127538204193115, 0.0439186692237854, 0.04423302412033081, 0.04579967260360718]], [[158, 152, 205, 315, 387, 346], [0.0, 0.06236445903778076, 0.06301093101501465, 0.07053852081298828, 0.07330489158630371, 0.07330489158630371]], [[159, 241, 180, 125, 109, 64], [0.0, 0.10740554332733154, 0.12016165256500244, 0.12514865398406982, 0.1325162649154663, 0.13385224342346191]], [[160, 205, 97, 170, 158, 260], [0.0, 0.07577264308929443, 0.0766134262084961, 0.08114367723464966, 0.0825076699256897, 0.09719175100326538]], [[161, 148, 142, 99, 100, 341], [0.0, 0.12703359127044678, 0.13155686855316162, 0.14235204458236694, 0.1438489556312561, 0.14404624700546265]], [[162, 115, 270, 356, 79, 344], [5.960464477539063e-08, 0.07994192838668823, 0.08232247829437256, 0.08413445949554443, 0.09695416688919067, 0.09810996055603027]], [[163, 151, 46, 202, 176, 164], [0.0, 0.03695887327194214, 0.038690388202667236, 0.03973519802093506, 0.040413856506347656, 0.044187188148498535]], [[164, 46, 247, 176, 313, 151], [0.0, 0.030757546424865723, 0.03191095590591431, 0.037723660469055176, 0.03801286220550537, 0.040484607219696045]], [[165, 313, 202, 321, 46, 253], [0.0, 0.040986478328704834, 0.04548847675323486, 0.04929262399673462, 0.050762712955474854, 0.053789496421813965]], [[166, 168, 155, 139, 84, 231], [1.1920928955078125e-07, 0.037104904651641846, 0.04088938236236572, 0.04350167512893677, 0.045029282569885254, 0.04504692554473877]], [[167, 266, 56, 118, 302, 381], [0.0, 0.10016560554504395, 0.10033959150314331, 0.10203838348388672, 0.11453378200531006, 0.12158674001693726]], [[168, 139, 166, 311, 231, 84], [0.0, 0.03546905517578125, 0.037104904651641846, 0.04137420654296875, 0.042484819889068604, 0.04298079013824463]], [[169, 2, 369, 82, 13, 281], [5.960464477539063e-08, 0.14825159311294556, 0.16334044933319092, 0.16586869955062866, 0.16706585884094238, 0.16994917392730713]], [[170, 152, 264, 215, 315, 248], [2.384185791015625e-07, 0.04558873176574707, 0.04932451248168945, 0.05118155479431152, 0.05197376012802124, 0.05300372838973999]], [[171, 154, 16, 378, 71, 229], [0.0, 0.04543197154998779, 0.05150872468948364, 0.053610920906066895, 0.05579036474227905, 0.056551456451416016]], [[172, 185, 190, 303, 363, 351], [0.0, 0.02820265293121338, 0.041084229946136475, 0.04118317365646362, 0.04431450366973877, 0.04499173164367676]], [[173, 152, 315, 215, 264, 39], [0.0, 0.05225187540054321, 0.05319458246231079, 0.0546075701713562, 0.05595582723617554, 0.06201666593551636]], [[174, 129, 11, 56, 124, 250], [5.960464477539063e-08, 0.06721508502960205, 0.11344987154006958, 0.11787307262420654, 0.12291491031646729, 0.12521004676818848]], [[175, 140, 260, 206, 303, 351], [0.0, 0.03926432132720947, 0.043672263622283936, 0.045515596866607666, 0.05085843801498413, 0.05103576183319092]], [[176, 321, 151, 8, 164, 313], [5.960464477539063e-08, 0.03206610679626465, 0.03211629390716553, 0.03362011909484863, 0.037723660469055176, 0.038135647773742676]], [[177, 318, 335, 131, 183, 200], [1.1920928955078125e-07, 0.07769155502319336, 0.08400803804397583, 0.10516226291656494, 0.10611903667449951, 0.10703790187835693]], [[178, 348, 10, 67, 60, 55], [0.0, 0.045823872089385986, 0.047936201095581055, 0.049785733222961426, 0.05019253492355347, 0.05748450756072998]], [[179, 324, 40, 336, 234, 69], [0.0, 0.12637484073638916, 0.1275320053100586, 0.12896084785461426, 0.13002431392669678, 0.13068783283233643]], [[180, 364, 191, 159, 109, 294], [0.0, 0.09463024139404297, 0.11927121877670288, 0.12016165256500244, 0.1260690689086914, 0.13898307085037231]], [[181, 340, 21, 262, 254, 141], [1.7881393432617188e-07, 0.08142566680908203, 0.09325623512268066, 0.09351694583892822, 0.09795248508453369, 0.10321056842803955]], [[182, 215, 39, 264, 315, 303], [0.0, 0.044873058795928955, 0.05113095045089722, 0.05302906036376953, 0.0557781457901001, 0.055938005447387695]], [[183, 318, 177, 37, 90, 119], [0.0, 0.09742510318756104, 0.10611903667449951, 0.10896170139312744, 0.11013084650039673, 0.11215156316757202]], [[184, 354, 153, 334, 201, 276], [0.0, 0.12017548084259033, 0.12688851356506348, 0.1272869110107422, 0.13057005405426025, 0.13365823030471802]], [[185, 172, 190, 303, 351, 206], [0.0, 0.02820265293121338, 0.04222702980041504, 0.04655247926712036, 0.048988282680511475, 0.05116105079650879]], [[186, 198, 13, 304, 270, 289], [0.0, 0.044846296310424805, 0.04499310255050659, 0.04679000377655029, 0.047149658203125, 0.04737955331802368]], [[187, 316, 153, 354, 310, 74], [1.1920928955078125e-07, 0.09895980358123779, 0.10278666019439697, 0.12309175729751587, 0.12310522794723511, 0.13652777671813965]], [[188, 132, 282, 246, 372, 176], [3.5762786865234375e-07, 3.5762786865234375e-07, 0.03381061553955078, 0.03964346647262573, 0.04205894470214844, 0.042507946491241455]], [[189, 74, 286, 324, 265, 117], [0.0, 0.06960052251815796, 0.08125758171081543, 0.08426856994628906, 0.08709573745727539, 0.08909231424331665]], [[190, 172, 185, 238, 234, 117], [0.0, 0.041084229946136475, 0.04222702980041504, 0.04545170068740845, 0.04728883504867554, 0.052237510681152344]], [[191, 367, 353, 383, 313, 75], [0.0, 0.06222623586654663, 0.0990610122680664, 0.10220921039581299, 0.10430020093917847, 0.10488665103912354]], [[192, 267, 269, 276, 288, 14], [5.960464477539063e-08, 0.06630659103393555, 0.0887455940246582, 0.09064161777496338, 0.09125697612762451, 0.09395545721054077]], [[193, 225, 313, 247, 283, 164], [1.7881393432617188e-07, 0.03489327430725098, 0.038313984870910645, 0.038887202739715576, 0.039339661598205566, 0.04055428504943848]], [[194, 258, 29, 125, 273, 355], [0.0, 0.08551156520843506, 0.10150337219238281, 0.12372344732284546, 0.13050705194473267, 0.13089263439178467]], [[195, 212, 68, 328, 256, 115], [0.0, 0.1354144811630249, 0.1399354338645935, 0.15249371528625488, 0.1573815941810608, 0.15895235538482666]], [[196, 229, 71, 261, 378, 96], [0.0, 0.040293097496032715, 0.0447850227355957, 0.04824566841125488, 0.048985421657562256, 0.05021512508392334]], [[197, 280, 255, 35, 340, 78], [5.960464477539063e-08, 0.09247159957885742, 0.09326112270355225, 0.09396719932556152, 0.1096886396408081, 0.1113814115524292]], [[198, 186, 13, 289, 95, 304], [5.960464477539063e-08, 0.044846296310424805, 0.0480571985244751, 0.04828965663909912, 0.05143260955810547, 0.052844464778900146]], [[199, 295, 88, 46, 93, 235], [0.0, 0.06588059663772583, 0.07073652744293213, 0.07666236162185669, 0.07741540670394897, 0.08306300640106201]], [[200, 276, 266, 267, 90, 308], [1.1920928955078125e-07, 0.08952897787094116, 0.09026122093200684, 0.09285891056060791, 0.09985148906707764, 0.10495865345001221]], [[201, 203, 295, 276, 130, 331], [0.0, 0.04549610614776611, 0.0586322546005249, 0.06823927164077759, 0.07002449035644531, 0.07159221172332764]], [[202, 377, 163, 313, 151, 46], [0.0, 0.034522414207458496, 0.03973519802093506, 0.03975391387939453, 0.041041791439056396, 0.04146873950958252]], [[203, 201, 320, 295, 217, 38], [0.0, 0.04549610614776611, 0.06591594219207764, 0.06635880470275879, 0.07521557807922363, 0.07876408100128174]], [[204, 303, 39, 363, 182, 288], [0.0, 0.05752992630004883, 0.0648108720779419, 0.06578505039215088, 0.06773388385772705, 0.06806808710098267]], [[205, 158, 97, 160, 170, 19], [0.0, 0.06301093101501465, 0.06477290391921997, 0.07577264308929443, 0.07917684316635132, 0.08983564376831055]], [[206, 140, 175, 172, 351, 185], [1.1920928955078125e-07, 0.04249817132949829, 0.045515596866607666, 0.04913550615310669, 0.05045241117477417, 0.05116105079650879]], [[207, 90, 276, 354, 124, 80], [0.0, 0.061542391777038574, 0.06277155876159668, 0.08175718784332275, 0.08329004049301147, 0.0853080153465271]], [[208, 382, 156, 24, 41, 87], [0.0, 0.09446132183074951, 0.09890776872634888, 0.10452008247375488, 0.11442548036575317, 0.11987102031707764]], [[209, 257, 341, 388, 248, 36], [0.0, 0.04481673240661621, 0.052691102027893066, 0.0558357834815979, 0.05723994970321655, 0.06366699934005737]], [[210, 168, 72, 76, 311, 2], [0.0, 0.043467044830322266, 0.04411518573760986, 0.04660993814468384, 0.04725754261016846, 0.049562931060791016]], [[211, 224, 366, 95, 299, 253], [1.1920928955078125e-07, 0.03252840042114258, 0.04077184200286865, 0.04481750726699829, 0.04558032751083374, 0.04579252004623413]], [[212, 296, 256, 68, 115, 324], [1.1920928955078125e-07, 0.054102301597595215, 0.06585943698883057, 0.07987916469573975, 0.08727675676345825, 0.093014657497406]], [[213, 253, 299, 379, 95, 224], [5.960464477539063e-08, 0.030906081199645996, 0.03753340244293213, 0.03827625513076782, 0.041637539863586426, 0.04195582866668701]], [[214, 153, 157, 237, 130, 75], [0.0, 0.0711216926574707, 0.0840272307395935, 0.08504241704940796, 0.08600491285324097, 0.08705717325210571]], [[215, 315, 297, 264, 152, 248], [1.1920928955078125e-07, 0.03144371509552002, 0.03445601463317871, 0.034531354904174805, 0.035214245319366455, 0.036588191986083984]], [[216, 350, 253, 136, 299, 115], [0.0, 0.05223274230957031, 0.0527644157409668, 0.055375516414642334, 0.056859731674194336, 0.060330986976623535]], [[217, 137, 320, 351, 363, 303], [0.0, 0.06065559387207031, 0.06691849231719971, 0.06917881965637207, 0.06983077526092529, 0.07056742906570435]], [[218, 62, 310, 322, 262, 181], [1.1920928955078125e-07, 0.21044594049453735, 0.22777140140533447, 0.23025846481323242, 0.2338012456893921, 0.23700296878814697]], [[219, 299, 213, 224, 321, 253], [1.1920928955078125e-07, 0.042787373065948486, 0.04551136493682861, 0.050069570541381836, 0.050669968128204346, 0.05123239755630493]], [[220, 275, 299, 213, 188, 132], [0.0, 0.06486648321151733, 0.08075761795043945, 0.08616268634796143, 0.0863046646118164, 0.0863046646118164]], [[221, 299, 219, 323, 213, 246], [1.1920928955078125e-07, 0.042986929416656494, 0.055373966693878174, 0.05539369583129883, 0.05661743879318237, 0.05843895673751831]], [[222, 306, 50, 226, 332, 305], [1.1920928955078125e-07, 0.081417977809906, 0.09294962882995605, 0.10582900047302246, 0.10664987564086914, 0.10735034942626953]], [[223, 202, 253, 46, 321, 165], [5.960464477539063e-08, 0.10697489976882935, 0.10969197750091553, 0.11341613531112671, 0.11358588933944702, 0.11368012428283691]], [[224, 211, 95, 253, 321, 366], [0.0, 0.03252840042114258, 0.03451073169708252, 0.0354006290435791, 0.03650498390197754, 0.03657233715057373]], [[225, 193, 313, 46, 164, 247], [0.0, 0.03489327430725098, 0.03862518072128296, 0.04578787088394165, 0.0464855432510376, 0.04913681745529175]], [[226, 305, 388, 57, 17, 100], [1.1920928955078125e-07, 0.0770488977432251, 0.07988893985748291, 0.08052527904510498, 0.08152008056640625, 0.08529442548751831]], [[227, 123, 263, 59, 27, 97], [5.960464477539063e-08, 0.1452654004096985, 0.15197491645812988, 0.15301060676574707, 0.15525811910629272, 0.1553562879562378]], [[228, 128, 259, 370, 374, 186], [5.960464477539063e-08, 0.06796705722808838, 0.07095599174499512, 0.07302343845367432, 0.0776023268699646, 0.07835996150970459]], [[229, 378, 45, 71, 96, 12], [1.1920928955078125e-07, 0.027566850185394287, 0.02926015853881836, 0.030160605907440186, 0.035408854484558105, 0.03667175769805908]], [[230, 351, 336, 303, 69, 331], [0.0, 0.05624890327453613, 0.0582427978515625, 0.05877023935317993, 0.060225069522857666, 0.06074255704879761]], [[231, 13, 281, 139, 168, 82], [0.0, 0.037699997425079346, 0.03872549533843994, 0.04148101806640625, 0.042484819889068604, 0.04366481304168701]], [[232, 386, 305, 384, 292, 4], [5.960464477539063e-08, 0.06365704536437988, 0.06490051746368408, 0.06970226764678955, 0.07316362857818604, 0.08598101139068604]], [[233, 339, 303, 268, 39, 86], [0.0, 0.04054689407348633, 0.05130600929260254, 0.05691629648208618, 0.060648202896118164, 0.06563824415206909]], [[234, 157, 351, 190, 117, 307], [0.0, 0.04127538204193115, 0.045442938804626465, 0.04728883504867554, 0.047707974910736084, 0.0501326322555542]], [[235, 117, 307, 47, 46, 237], [0.0, 0.048740386962890625, 0.049649059772491455, 0.04969966411590576, 0.05088818073272705, 0.05182367563247681]], [[236, 151, 313, 176, 321, 163], [1.7881393432617188e-07, 0.027031242847442627, 0.036487877368927, 0.042211294174194336, 0.044904351234436035, 0.04566991329193115]], [[237, 117, 157, 313, 46, 247], [0.0, 0.03674668073654175, 0.0439186692237854, 0.04923820495605469, 0.04925954341888428, 0.050660014152526855]], [[238, 190, 283, 247, 117, 46], [2.384185791015625e-07, 0.04545170068740845, 0.048127174377441406, 0.05011308193206787, 0.05219733715057373, 0.05455470085144043]], [[239, 352, 10, 178, 348, 55], [1.1920928955078125e-07, 0.07018280029296875, 0.07621383666992188, 0.08183848857879639, 0.08508491516113281, 0.09700721502304077]], [[240, 250, 341, 17, 36, 209], [3.5762786865234375e-07, 0.08225679397583008, 0.09454113245010376, 0.10358309745788574, 0.10411477088928223, 0.10527968406677246]], [[241, 98, 159, 64, 109, 125], [0.0, 0.10403168201446533, 0.10740554332733154, 0.12294292449951172, 0.12503910064697266, 0.16849833726882935]], [[242, 287, 3, 32, 2, 33], [0.0, 0.04150635004043579, 0.0548740029335022, 0.06534552574157715, 0.06878328323364258, 0.0736684799194336]], [[243, 293, 300, 330, 217, 371], [5.960464477539063e-08, 0.06615966558456421, 0.0826120376586914, 0.08586001396179199, 0.1071932315826416, 0.10994827747344971]], [[244, 269, 190, 172, 288, 86], [0.0, 0.087715744972229, 0.08964782953262329, 0.089851975440979, 0.09056812524795532, 0.09312558174133301]], [[245, 17, 209, 308, 341, 388], [0.0, 0.09572231769561768, 0.09672737121582031, 0.10142326354980469, 0.10246080160140991, 0.1030501127243042]], [[246, 188, 132, 224, 321, 372], [2.384185791015625e-07, 0.03964346647262573, 0.03964346647262573, 0.043895840644836426, 0.04490387439727783, 0.04494786262512207]], [[247, 164, 313, 46, 151, 283], [1.1920928955078125e-07, 0.03191101551055908, 0.036084651947021484, 0.03646284341812134, 0.037789881229400635, 0.03851914405822754]], [[248, 264, 215, 388, 297, 315], [0.0, 0.03045344352722168, 0.036588191986083984, 0.037600159645080566, 0.03769958019256592, 0.04073596000671387]], [[249, 328, 361, 108, 284, 323], [0.0, 0.0680626630783081, 0.08284461498260498, 0.08359116315841675, 0.0961313247680664, 0.09724795818328857]], [[250, 341, 209, 251, 248, 388], [1.7881393432617188e-07, 0.055074095726013184, 0.07054895162582397, 0.07269281148910522, 0.07282203435897827, 0.07555252313613892]], [[251, 341, 388, 257, 209, 17], [0.0, 0.057681381702423096, 0.06265377998352051, 0.06784355640411377, 0.06860435009002686, 0.06961339712142944]], [[252, 186, 231, 304, 13, 289], [0.0, 0.05910623073577881, 0.059171199798583984, 0.05929088592529297, 0.05941861867904663, 0.059744834899902344]], [[253, 213, 224, 321, 299, 146], [0.0, 0.030906081199645996, 0.0354006290435791, 0.03874349594116211, 0.039844810962677, 0.039893269538879395]], [[254, 87, 137, 329, 39, 217], [0.0, 0.057404398918151855, 0.06811177730560303, 0.08019626140594482, 0.08181190490722656, 0.08715856075286865]], [[255, 247, 31, 283, 236, 197], [1.1920928955078125e-07, 0.08484518527984619, 0.08772879838943481, 0.0910344123840332, 0.09178638458251953, 0.09326112270355225]], [[256, 212, 88, 68, 199, 286], [1.1920928955078125e-07, 0.06585943698883057, 0.08477741479873657, 0.09101331233978271, 0.09127217531204224, 0.0913705825805664]], [[257, 209, 248, 341, 388, 264], [0.0, 0.04481673240661621, 0.05372977256774902, 0.05492275953292847, 0.05695760250091553, 0.06178706884384155]], [[258, 194, 78, 29, 273, 382], [2.384185791015625e-07, 0.08551156520843506, 0.0959402322769165, 0.09951764345169067, 0.10328960418701172, 0.11100852489471436]], [[259, 34, 128, 228, 374, 198], [2.384185791015625e-07, 0.05369997024536133, 0.06417191028594971, 0.07095599174499512, 0.07719868421554565, 0.07916557788848877]], [[260, 175, 303, 288, 331, 363], [0.0, 0.043672263622283936, 0.04999136924743652, 0.05283915996551514, 0.0539584755897522, 0.05498528480529785]], [[261, 229, 96, 154, 71, 196], [2.384185791015625e-07, 0.04008185863494873, 0.04035520553588867, 0.045757174491882324, 0.045952022075653076, 0.04824566841125488]], [[262, 380, 181, 215, 388, 264], [0.0, 0.06650638580322266, 0.09351694583892822, 0.0969964861869812, 0.09846818447113037, 0.09926259517669678]], [[263, 150, 97, 371, 319, 205], [0.0, 0.06800848245620728, 0.08075070381164551, 0.08405357599258423, 0.08942008018493652, 0.09152472019195557]], [[264, 248, 215, 315, 297, 388], [5.960464477539063e-08, 0.03045344352722168, 0.034531354904174805, 0.0374680757522583, 0.03838038444519043, 0.03965330123901367]], [[265, 216, 136, 83, 189, 115], [0.0, 0.0791158676147461, 0.08031988143920898, 0.08484184741973877, 0.08709573745727539, 0.0943061113357544]], [[266, 56, 267, 248, 215, 200], [0.0, 0.0745808482170105, 0.07996994256973267, 0.08767545223236084, 0.08880102634429932, 0.09026122093200684]], [[267, 192, 276, 266, 90, 269], [1.7881393432617188e-07, 0.06630659103393555, 0.07420194149017334, 0.07996994256973267, 0.08030372858047485, 0.082244873046875]], [[268, 152, 233, 39, 339, 303], [0.0, 0.05531883239746094, 0.05691629648208618, 0.05727463960647583, 0.06058347225189209, 0.06145739555358887]], [[269, 288, 312, 86, 303, 130], [0.0, 0.05372023582458496, 0.05730891227722168, 0.06163662672042847, 0.06565994024276733, 0.0677182674407959]], [[270, 186, 289, 20, 360, 304], [1.7881393432617188e-07, 0.047149658203125, 0.05168914794921875, 0.05243945121765137, 0.06000322103500366, 0.06070125102996826]], [[271, 59, 263, 286, 123, 230], [0.0, 0.07521593570709229, 0.12492185831069946, 0.13138270378112793, 0.1408390998840332, 0.14951682090759277]], [[272, 202, 377, 165, 146, 313], [0.0, 0.05979001522064209, 0.06650447845458984, 0.07192915678024292, 0.07383853197097778, 0.08441793918609619]], [[273, 125, 78, 23, 41, 258], [2.384185791015625e-07, 0.09756767749786377, 0.10178303718566895, 0.1018635630607605, 0.10327845811843872, 0.10328960418701172]], [[274, 237, 117, 202, 235, 190], [0.0, 0.05543482303619385, 0.0557628870010376, 0.06523430347442627, 0.06983757019042969, 0.07042336463928223]], [[275, 132, 188, 282, 372, 176], [0.0, 0.053835272789001465, 0.053835272789001465, 0.05692321062088013, 0.06260430812835693, 0.06409168243408203]], [[276, 354, 38, 207, 130, 320], [0.0, 0.05522477626800537, 0.06224709749221802, 0.06277155876159668, 0.06394577026367188, 0.06529438495635986]], [[277, 381, 127, 177, 118, 167], [0.0, 0.1591728925704956, 0.19076621532440186, 0.19699203968048096, 0.19869089126586914, 0.21264678239822388]], [[278, 91, 313, 176, 193, 225], [0.0, 0.0635988712310791, 0.0677107572555542, 0.06895166635513306, 0.07034182548522949, 0.07039022445678711]], [[279, 238, 307, 64, 5, 190], [0.0, 0.09339433908462524, 0.098471999168396, 0.10077059268951416, 0.10425817966461182, 0.10922586917877197]], [[280, 351, 303, 283, 358, 197], [5.960464477539063e-08, 0.0880466103553772, 0.08958911895751953, 0.0904076099395752, 0.0909963846206665, 0.09247159957885742]], [[281, 13, 231, 82, 304, 20], [1.1920928955078125e-07, 0.035893142223358154, 0.03872549533843994, 0.0423809289932251, 0.044074833393096924, 0.04457515478134155]], [[282, 188, 132, 342, 164, 46], [0.0, 0.03381061553955078, 0.03381061553955078, 0.04350912570953369, 0.04944014549255371, 0.05007064342498779]], [[283, 247, 193, 351, 157, 117], [0.0, 0.03851914405822754, 0.039339661598205566, 0.04178851842880249, 0.04423302412033081, 0.04747408628463745]], [[284, 146, 253, 133, 213, 379], [0.0, 0.04868978261947632, 0.04876363277435303, 0.05062246322631836, 0.051867783069610596, 0.052555620670318604]], [[285, 95, 224, 213, 211, 366], [1.1920928955078125e-07, 0.03666502237319946, 0.04348456859588623, 0.04803037643432617, 0.048557400703430176, 0.048645734786987305]], [[286, 189, 256, 123, 265, 290], [0.0, 0.08125758171081543, 0.0913705825805664, 0.09271705150604248, 0.10418927669525146, 0.10796999931335449]], [[287, 3, 242, 33, 55, 10], [5.960464477539063e-08, 0.04105997085571289, 0.04150635004043579, 0.06372332572937012, 0.06944763660430908, 0.07096236944198608]], [[288, 303, 331, 363, 351, 373], [0.0, 0.04160332679748535, 0.04203832149505615, 0.044401586055755615, 0.04695868492126465, 0.04745805263519287]], [[289, 304, 347, 213, 379, 186], [0.0, 0.03910118341445923, 0.041539788246154785, 0.04505115747451782, 0.04618537425994873, 0.04737955331802368]], [[290, 127, 130, 244, 175, 256], [0.0, 0.09275192022323608, 0.09686529636383057, 0.0981932282447815, 0.09869617223739624, 0.10425323247909546]], [[291, 121, 104, 27, 235, 88], [0.0, 0.10475432872772217, 0.1054224967956543, 0.11909270286560059, 0.12896931171417236, 0.13102245330810547]], [[292, 386, 384, 99, 142, 305], [0.0, 0.042023658752441406, 0.05793106555938721, 0.05966871976852417, 0.06172895431518555, 0.06439316272735596]], [[293, 330, 243, 91, 278, 164], [2.384185791015625e-07, 0.057213544845581055, 0.06615966558456421, 0.0834115743637085, 0.08465111255645752, 0.08929014205932617]], [[294, 180, 364, 367, 191, 53], [1.7881393432617188e-07, 0.13898307085037231, 0.17861628532409668, 0.17916858196258545, 0.18024379014968872, 0.21236133575439453]], [[295, 201, 88, 199, 203, 63], [0.0, 0.0586322546005249, 0.05963146686553955, 0.06588059663772583, 0.06635880470275879, 0.07643353939056396]], [[296, 212, 256, 115, 216, 328], [0.0, 0.054102301597595215, 0.09216362237930298, 0.09972792863845825, 0.0998152494430542, 0.10177075862884521]], [[297, 215, 315, 248, 264, 152], [0.0, 0.03445601463317871, 0.03624904155731201, 0.03769958019256592, 0.03838038444519043, 0.0418393611907959]], [[298, 91, 46, 317, 165, 202], [1.1920928955078125e-07, 0.06858813762664795, 0.06986820697784424, 0.06991815567016602, 0.07157760858535767, 0.07216203212738037]], [[299, 213, 253, 224, 219, 221], [0.0, 0.03753340244293213, 0.039844810962677, 0.04193270206451416, 0.042787373065948486, 0.042986929416656494]], [[300, 243, 319, 217, 268, 97], [5.960464477539063e-08, 0.0826120376586914, 0.10118997097015381, 0.10354286432266235, 0.10860276222229004, 0.1131487488746643]], [[301, 47, 372, 313, 188, 132], [0.0, 0.06917333602905273, 0.069283127784729, 0.07534009218215942, 0.07737171649932861, 0.07737171649932861]], [[302, 127, 266, 144, 56, 209], [0.0, 0.0950326919555664, 0.09872925281524658, 0.10982018709182739, 0.11005795001983643, 0.11384689807891846]], [[303, 351, 172, 288, 339, 39], [0.0, 0.03783857822418213, 0.04118317365646362, 0.04160332679748535, 0.042714476585388184, 0.04280740022659302]], [[304, 289, 379, 281, 13, 186], [0.0, 0.03910118341445923, 0.04258298873901367, 0.044074833393096924, 0.04461604356765747, 0.04679000377655029]], [[305, 100, 386, 17, 99, 292], [0.0, 0.04650908708572388, 0.04854476451873779, 0.04877501726150513, 0.06204444169998169, 0.06439316272735596]], [[306, 222, 50, 154, 171, 384], [0.0, 0.081417977809906, 0.09683197736740112, 0.10035860538482666, 0.10071921348571777, 0.10157209634780884]], [[307, 235, 234, 117, 190, 237], [0.0, 0.049649059772491455, 0.0501326322555542, 0.05283832550048828, 0.0531730055809021, 0.05398571491241455]], [[308, 335, 264, 90, 388, 215], [0.0, 0.06522762775421143, 0.08123135566711426, 0.08319449424743652, 0.0839340090751648, 0.08515548706054688]], [[309, 76, 375, 210, 32, 52], [0.0, 0.048916518688201904, 0.05542290210723877, 0.0577014684677124, 0.06201910972595215, 0.06447947025299072]], [[310, 150, 62, 144, 37, 187], [1.1920928955078125e-07, 0.09853595495223999, 0.1019512414932251, 0.11184245347976685, 0.12122154235839844, 0.12310522794723511]], [[311, 168, 210, 82, 139, 166], [2.384185791015625e-07, 0.04137420654296875, 0.04725754261016846, 0.04775416851043701, 0.04891955852508545, 0.04995232820510864]], [[312, 269, 233, 39, 70, 130], [2.384185791015625e-07, 0.05730891227722168, 0.06580018997192383, 0.06815570592880249, 0.07101285457611084, 0.07387733459472656]], [[313, 151, 46, 247, 236, 164], [1.1920928955078125e-07, 0.0324057936668396, 0.032804667949676514, 0.036084651947021484, 0.036487877368927, 0.03801286220550537]], [[314, 7, 66, 45, 92, 12], [0.0, 0.08248728513717651, 0.09026765823364258, 0.09096992015838623, 0.09211653470993042, 0.09220266342163086]], [[315, 215, 152, 297, 264, 248], [0.0, 0.03144371509552002, 0.03177213668823242, 0.03624904155731201, 0.0374680757522583, 0.04073596000671387]], [[316, 187, 21, 62, 364, 310], [0.0, 0.09895980358123779, 0.13923871517181396, 0.15209215879440308, 0.15368974208831787, 0.15771400928497314]], [[317, 163, 176, 321, 202, 246], [0.0, 0.044974327087402344, 0.05607086420059204, 0.05673724412918091, 0.056943535804748535, 0.05719214677810669]], [[318, 177, 183, 335, 200, 131], [0.0, 0.07769155502319336, 0.09742510318756104, 0.10032248497009277, 0.10812985897064209, 0.11335617303848267]], [[319, 336, 331, 19, 303, 230], [2.980232238769531e-07, 0.06446951627731323, 0.06622767448425293, 0.07193160057067871, 0.07529675960540771, 0.07670629024505615]], [[320, 276, 203, 217, 303, 351], [0.0, 0.06529438495635986, 0.06591594219207764, 0.06691849231719971, 0.06704151630401611, 0.06942254304885864]], [[321, 176, 224, 372, 8, 253], [0.0, 0.03206610679626465, 0.03650498390197754, 0.03693962097167969, 0.038350820541381836, 0.03874349594116211]], [[322, 331, 315, 373, 346, 387], [2.384185791015625e-07, 0.07767236232757568, 0.07784914970397949, 0.07870745658874512, 0.07933491468429565, 0.07933491468429565]], [[323, 379, 299, 213, 347, 304], [0.0, 0.04601097106933594, 0.04676765203475952, 0.04953145980834961, 0.050191521644592285, 0.05185931921005249]], [[324, 164, 176, 163, 46, 345], [5.960464477539063e-08, 0.06198537349700928, 0.06390035152435303, 0.06644272804260254, 0.0677499771118164, 0.07166612148284912]], [[325, 42, 334, 123, 184, 227], [2.384185791015625e-07, 0.1901332139968872, 0.19377505779266357, 0.2292109727859497, 0.23054975271224976, 0.2381860613822937]], [[326, 388, 341, 264, 248, 17], [2.384185791015625e-07, 0.05044037103652954, 0.05334681272506714, 0.06420791149139404, 0.06461226940155029, 0.06480830907821655]], [[327, 105, 112, 378, 229, 45], [1.1920928955078125e-07, 0.05802124738693237, 0.05802124738693237, 0.06874489784240723, 0.07055974006652832, 0.07171428203582764]], [[328, 108, 249, 299, 219, 213], [0.0, 0.06590616703033447, 0.0680626630783081, 0.09312856197357178, 0.09489619731903076, 0.09814012050628662]], [[329, 137, 315, 215, 248, 264], [0.0, 0.03967493772506714, 0.05463773012161255, 0.05477309226989746, 0.05577051639556885, 0.05688828229904175]], [[330, 293, 217, 147, 243, 320], [0.0, 0.057213544845581055, 0.07589870691299438, 0.08149898052215576, 0.08586001396179199, 0.09196585416793823]], [[331, 373, 288, 303, 363, 339], [0.0, 0.03210270404815674, 0.04203832149505615, 0.04452788829803467, 0.0456920862197876, 0.048503756523132324]], [[332, 22, 116, 382, 222, 384], [5.960464477539063e-08, 0.06975585222244263, 0.09047341346740723, 0.1030498743057251, 0.10664987564086914, 0.11271607875823975]], [[333, 116, 365, 332, 120, 102], [0.0, 0.07276517152786255, 0.10660481452941895, 0.1320357322692871, 0.13278615474700928, 0.1329137086868286]], [[334, 184, 127, 144, 123, 310], [0.0, 0.1272869110107422, 0.14212852716445923, 0.14426326751708984, 0.1913425326347351, 0.1933962106704712]], [[335, 308, 131, 177, 1, 90], [0.0, 0.06522762775421143, 0.07537657022476196, 0.08400803804397583, 0.0942697525024414, 0.09663796424865723]], [[336, 69, 77, 351, 230, 63], [1.1920928955078125e-07, 0.05019855499267578, 0.05293452739715576, 0.054332852363586426, 0.0582427978515625, 0.05951261520385742]], [[337, 168, 52, 166, 76, 210], [2.384185791015625e-07, 0.055319905281066895, 0.057126522064208984, 0.05814945697784424, 0.05853843688964844, 0.0612410306930542]], [[338, 130, 274, 157, 190, 237], [4.76837158203125e-07, 0.07828080654144287, 0.08334171772003174, 0.09800612926483154, 0.09929805994033813, 0.10116899013519287]], [[339, 233, 303, 331, 351, 288], [0.0, 0.04054689407348633, 0.042714476585388184, 0.048503756523132324, 0.054982781410217285, 0.055851101875305176]], [[340, 181, 125, 78, 280, 197], [0.0, 0.08142566680908203, 0.09489220380783081, 0.0964822769165039, 0.10186576843261719, 0.1096886396408081]], [[341, 388, 209, 326, 248, 257], [0.0, 0.047194480895996094, 0.052691102027893066, 0.05334681272506714, 0.05471837520599365, 0.05492275953292847]], [[342, 132, 188, 282, 164, 151], [0.0, 0.04290473461151123, 0.04290473461151123, 0.04350912570953369, 0.05410408973693848, 0.05540722608566284]], [[343, 71, 229, 45, 378, 12], [0.0, 0.04008209705352783, 0.04128265380859375, 0.044260263442993164, 0.046939074993133545, 0.05131399631500244]], [[344, 359, 224, 366, 95, 211], [0.0, 0.04086506366729736, 0.04802405834197998, 0.04822266101837158, 0.05011516809463501, 0.05083727836608887]], [[345, 164, 176, 313, 46, 8], [0.0, 0.04628211259841919, 0.04675418138504028, 0.048407673835754395, 0.04846423864364624, 0.04954719543457031]], [[387, 346, 297, 315, 264, 248], [2.980232238769531e-07, 2.980232238769531e-07, 0.04432255029678345, 0.04545408487319946, 0.04711806774139404, 0.047833144664764404]], [[347, 289, 360, 304, 379, 323], [1.7881393432617188e-07, 0.041539788246154785, 0.047107577323913574, 0.04742884635925293, 0.048440515995025635, 0.050191521644592285]], [[348, 178, 67, 60, 10, 55], [0.0, 0.045823872089385986, 0.04662448167800903, 0.047116994857788086, 0.049902498722076416, 0.050887346267700195]], [[349, 388, 341, 248, 297, 215], [0.0, 0.052068352699279785, 0.06194567680358887, 0.06292980909347534, 0.06334900856018066, 0.06582224369049072]], [[350, 224, 253, 321, 372, 359], [2.384185791015625e-07, 0.039740920066833496, 0.04149752855300903, 0.04431033134460449, 0.04641515016555786, 0.04891777038574219]], [[351, 303, 157, 140, 69, 283], [5.960464477539063e-08, 0.03783857822418213, 0.037863969802856445, 0.038742244243621826, 0.04005134105682373, 0.04178851842880249]], [[352, 10, 178, 348, 67, 60], [0.0, 0.060358524322509766, 0.061482906341552734, 0.06514978408813477, 0.06976073980331421, 0.07005321979522705]], [[353, 224, 95, 366, 285, 146], [1.1920928955078125e-07, 0.06009876728057861, 0.06254065036773682, 0.06606340408325195, 0.06646668910980225, 0.0669865608215332]], [[354, 276, 38, 207, 130, 153], [1.1920928955078125e-07, 0.05522477626800537, 0.07937604188919067, 0.08175718784332275, 0.0833061933517456, 0.08582174777984619]], [[355, 109, 29, 125, 118, 194], [0.0, 0.11657929420471191, 0.11731171607971191, 0.12449026107788086, 0.1299229860305786, 0.13089263439178467]], [[356, 128, 162, 374, 186, 168], [0.0, 0.08394289016723633, 0.08413445949554443, 0.08752745389938354, 0.08858656883239746, 0.08945125341415405]], [[357, 359, 299, 219, 213, 379], [0.0, 0.060013532638549805, 0.06145179271697998, 0.06561899185180664, 0.06595849990844727, 0.06624698638916016]], [[358, 280, 303, 172, 185, 254], [0.0, 0.0909963846206665, 0.09514296054840088, 0.09590023756027222, 0.09894323348999023, 0.09992170333862305]], [[359, 344, 224, 253, 366, 211], [0.0, 0.04086506366729736, 0.04346853494644165, 0.043941378593444824, 0.04764068126678467, 0.047681212425231934]], [[360, 347, 20, 289, 281, 304], [5.960464477539063e-08, 0.047107577323913574, 0.048667192459106445, 0.053971827030181885, 0.057216763496398926, 0.05878889560699463]], [[361, 379, 284, 289, 323, 304], [0.0, 0.05255246162414551, 0.05539870262145996, 0.05594289302825928, 0.05623650550842285, 0.05740863084793091]], [[362, 98, 191, 236, 369, 64], [0.0, 0.14328312873840332, 0.15711617469787598, 0.16508632898330688, 0.17009973526000977, 0.17091631889343262]], [[363, 351, 303, 172, 288, 331], [0.0, 0.04253339767456055, 0.04371905326843262, 0.04431450366973877, 0.044401586055755615, 0.0456920862197876]], [[364, 180, 109, 191, 159, 153], [0.0, 0.09463024139404297, 0.1346331238746643, 0.14883947372436523, 0.14951008558273315, 0.15180611610412598]], [[365, 105, 112, 229, 45, 343], [0.0, 0.07727980613708496, 0.07727980613708496, 0.08045876026153564, 0.08407634496688843, 0.0856505036354065]], [[366, 224, 211, 95, 253, 213], [0.0, 0.03657233715057373, 0.04077184200286865, 0.04081171751022339, 0.042626142501831055, 0.04421001672744751]], [[367, 191, 353, 357, 122, 383], [0.0, 0.06222623586654663, 0.08190727233886719, 0.095009446144104, 0.09586310386657715, 0.09700959920883179]], [[368, 347, 289, 304, 20, 361], [5.960464477539063e-08, 0.057599425315856934, 0.05887603759765625, 0.06240040063858032, 0.06439077854156494, 0.06465780735015869]], [[369, 82, 2, 210, 13, 311], [0.0, 0.10376942157745361, 0.11329436302185059, 0.11345469951629639, 0.11726236343383789, 0.11798977851867676]], [[370, 228, 259, 128, 220, 323], [0.0, 0.07302343845367432, 0.10194361209869385, 0.10335290431976318, 0.1067693829536438, 0.112862229347229]], [[371, 331, 263, 385, 150, 260], [0.0, 0.08280110359191895, 0.08405357599258423, 0.08771222829818726, 0.08802986145019531, 0.0894361138343811]], [[372, 321, 313, 151, 176, 224], [0.0, 0.03693962097167969, 0.039354801177978516, 0.03986310958862305, 0.04081320762634277, 0.04128897190093994]], [[373, 331, 288, 25, 363, 69], [0.0, 0.03210270404815674, 0.04745805263519287, 0.049719810485839844, 0.05109107494354248, 0.05379456281661987]], [[374, 139, 231, 281, 304, 13], [0.0, 0.051259756088256836, 0.05210977792739868, 0.052222251892089844, 0.052236199378967285, 0.05283236503601074]], [[375, 76, 84, 30, 309, 210], [2.980232238769531e-07, 0.04639464616775513, 0.05475902557373047, 0.05500936508178711, 0.05542290210723877, 0.058007240295410156]], [[376, 229, 378, 45, 71, 92], [1.1920928955078125e-07, 0.05503499507904053, 0.05789291858673096, 0.0647956132888794, 0.0661664605140686, 0.06734025478363037]], [[377, 202, 163, 151, 176, 313], [0.0, 0.034522414207458496, 0.0456504225730896, 0.05094647407531738, 0.052927613258361816, 0.05370604991912842]], [[378, 229, 154, 96, 45, 71], [0.0, 0.027566850185394287, 0.0352669358253479, 0.03636223077774048, 0.037140846252441406, 0.03851675987243652]], [[379, 213, 304, 323, 289, 347], [0.0, 0.03827625513076782, 0.04258298873901367, 0.04601097106933594, 0.04618537425994873, 0.048440515995025635]], [[380, 262, 305, 100, 36, 226], [1.1920928955078125e-07, 0.06650638580322266, 0.08381253480911255, 0.09024930000305176, 0.09478932619094849, 0.09635621309280396]], [[381, 127, 118, 167, 177, 266], [1.1920928955078125e-07, 0.10467958450317383, 0.11471152305603027, 0.12158674001693726, 0.1332908272743225, 0.13792860507965088]], [[382, 208, 332, 24, 22, 41], [0.0, 0.09446132183074951, 0.1030498743057251, 0.10537409782409668, 0.10602927207946777, 0.10604262351989746]], [[383, 18, 49, 53, 143, 353], [0.0, 0.07739043235778809, 0.08003437519073486, 0.08219456672668457, 0.08422672748565674, 0.08482646942138672]], [[384, 386, 292, 16, 171, 305], [5.960464477539063e-08, 0.04579782485961914, 0.05793106555938721, 0.06560969352722168, 0.06700634956359863, 0.06717205047607422]], [[385, 85, 124, 150, 371, 250], [1.7881393432617188e-07, 0.060361623764038086, 0.07818859815597534, 0.07880616188049316, 0.08771222829818726, 0.0902637243270874]], [[386, 292, 384, 305, 99, 232], [0.0, 0.042023658752441406, 0.04579782485961914, 0.04854476451873779, 0.05754208564758301, 0.06365704536437988]], [[387, 346, 297, 315, 264, 248], [2.980232238769531e-07, 2.980232238769531e-07, 0.04432255029678345, 0.04545408487319946, 0.04711806774139404, 0.047833144664764404]], [[388, 248, 264, 215, 297, 341], [0.0, 0.037600159645080566, 0.03965330123901367, 0.04084932804107666, 0.04194521903991699, 0.047194480895996094]], [[389, 164, 247, 151, 46, 163], [1.7881393432617188e-07, 0.042870163917541504, 0.04697549343109131, 0.05527430772781372, 0.057344913482666016, 0.05813324451446533]]]
#128
arr = [[[0, 337, 166, 228, 311, 168], [0.0, 0.11806827783584595, 0.12051904201507568, 0.1213676929473877, 0.12779784202575684, 0.128251850605011]], [[1, 308, 335, 172, 283, 131], [1.1920928955078125e-07, 0.05873662233352661, 0.06430906057357788, 0.09030401706695557, 0.09459918737411499, 0.09885072708129883]], [[2, 210, 72, 242, 32, 311], [1.1920928955078125e-07, 0.08070212602615356, 0.08375227451324463, 0.08606845140457153, 0.08756506443023682, 0.09379899501800537]], [[3, 242, 287, 55, 178, 60], [5.960464477539063e-08, 0.07188153266906738, 0.07488304376602173, 0.0826789140701294, 0.08638626337051392, 0.08723008632659912]], [[4, 22, 100, 17, 386, 251], [5.960464477539063e-08, 0.0730472207069397, 0.08066970109939575, 0.08578681945800781, 0.08882713317871094, 0.09335851669311523]], [[5, 260, 363, 19, 238, 97], [0.0, 0.06686043739318848, 0.07084870338439941, 0.07785630226135254, 0.07794296741485596, 0.07909798622131348]], [[6, 71, 229, 154, 196, 45], [5.960464477539063e-08, 0.06519591808319092, 0.0692262053489685, 0.08055233955383301, 0.08204948902130127, 0.08317774534225464]], [[7, 105, 112, 96, 229, 154], [0.0, 0.0671161413192749, 0.0671161413192749, 0.06965261697769165, 0.07191312313079834, 0.07477378845214844]], [[8, 321, 151, 163, 202, 253], [5.960464477539063e-08, 0.03046882152557373, 0.032094717025756836, 0.04268765449523926, 0.04372161626815796, 0.04475682973861694]], [[9, 250, 263, 240, 371, 385], [0.0, 0.16462481021881104, 0.1868736743927002, 0.1876423954963684, 0.1962783932685852, 0.19822198152542114]], [[10, 352, 33, 348, 67, 60], [0.0, 0.07143038511276245, 0.07184755802154541, 0.0742417573928833, 0.07520413398742676, 0.07525491714477539]], [[11, 305, 386, 100, 292, 4], [0.0, 0.07599306106567383, 0.07645130157470703, 0.07988739013671875, 0.09166347980499268, 0.09362560510635376]], [[12, 71, 45, 229, 112, 105], [0.0, 0.0331730842590332, 0.042566895484924316, 0.05662614107131958, 0.05707716941833496, 0.05707716941833496]], [[13, 304, 374, 231, 281, 289], [1.1920928955078125e-07, 0.04616272449493408, 0.06017768383026123, 0.060539960861206055, 0.06096917390823364, 0.06183600425720215]], [[14, 192, 5, 19, 260, 288], [0.0, 0.06339478492736816, 0.0816468596458435, 0.08379250764846802, 0.08900642395019531, 0.09854227304458618]], [[15, 45, 229, 314, 96, 196], [5.960464477539063e-08, 0.0885198712348938, 0.10021483898162842, 0.10695964097976685, 0.10700559616088867, 0.11028844118118286]], [[16, 171, 105, 112, 154, 71], [1.1920928955078125e-07, 0.07262229919433594, 0.0783202052116394, 0.0783202052116394, 0.0793159008026123, 0.08245623111724854]], [[17, 57, 36, 305, 100, 326], [0.0, 0.05552417039871216, 0.059703946113586426, 0.06582891941070557, 0.07246571779251099, 0.07316482067108154]], [[18, 8, 353, 383, 224, 165], [5.960464477539063e-08, 0.05780375003814697, 0.07077878713607788, 0.07524287700653076, 0.07547593116760254, 0.07612013816833496]], [[19, 288, 303, 260, 152, 315], [0.0, 0.03999197483062744, 0.04062122106552124, 0.04233872890472412, 0.04276394844055176, 0.046284496784210205]], [[20, 347, 360, 128, 304, 166], [0.0, 0.05472034215927124, 0.061170876026153564, 0.06370824575424194, 0.0668177604675293, 0.07102328538894653]], [[21, 181, 262, 258, 78, 29], [1.1920928955078125e-07, 0.1004793643951416, 0.11212015151977539, 0.11597728729248047, 0.12139278650283813, 0.12481844425201416]], [[22, 4, 382, 305, 332, 100], [5.960464477539063e-08, 0.0730472207069397, 0.07650792598724365, 0.08513808250427246, 0.08530533313751221, 0.09037089347839355]], [[23, 257, 388, 57, 36, 28], [1.1920928955078125e-07, 0.07529038190841675, 0.07598185539245605, 0.07717573642730713, 0.08461827039718628, 0.0866134762763977]], [[24, 78, 41, 197, 125, 35], [0.0, 0.07653254270553589, 0.0922507643699646, 0.10104703903198242, 0.10192036628723145, 0.11340075731277466]], [[25, 331, 288, 373, 363, 172], [0.0, 0.06096988916397095, 0.06146049499511719, 0.06236720085144043, 0.0716448426246643, 0.07525116205215454]], [[26, 130, 207, 88, 276, 373], [0.0, 0.17135608196258545, 0.1752428412437439, 0.17819255590438843, 0.1783151626586914, 0.18402886390686035]], [[27, 104, 291, 88, 5, 121], [1.1920928955078125e-07, 0.11520320177078247, 0.12610465288162231, 0.13650155067443848, 0.16133761405944824, 0.16422677040100098]], [[28, 326, 23, 36, 70, 349], [0.0, 0.08566009998321533, 0.0866134762763977, 0.09792578220367432, 0.09998351335525513, 0.10227566957473755]], [[29, 200, 318, 258, 273, 125], [0.0, 0.08160406351089478, 0.09463256597518921, 0.09899711608886719, 0.09903490543365479, 0.1055595874786377]], [[30, 375, 52, 76, 84, 309], [0.0, 0.08745414018630981, 0.09098505973815918, 0.09330475330352783, 0.10291874408721924, 0.10419607162475586]], [[31, 236, 151, 377, 255, 8], [5.960464477539063e-08, 0.09297531843185425, 0.09469377994537354, 0.11525958776473999, 0.12025880813598633, 0.12053167819976807]], [[32, 375, 76, 210, 72, 84], [5.960464477539063e-08, 0.06378895044326782, 0.06449520587921143, 0.06518489122390747, 0.07579731941223145, 0.07841718196868896]], [[33, 10, 287, 348, 60, 242], [0.0, 0.07184755802154541, 0.0821605920791626, 0.08762335777282715, 0.1025083065032959, 0.10423910617828369]], [[34, 259, 128, 304, 374, 231], [1.1920928955078125e-07, 0.06300848722457886, 0.07885348796844482, 0.08727270364761353, 0.08769434690475464, 0.08835417032241821]], [[35, 197, 255, 125, 78, 280], [0.0, 0.07181352376937866, 0.08242928981781006, 0.08852541446685791, 0.10030078887939453, 0.10068273544311523]], [[36, 341, 257, 326, 17, 388], [1.1920928955078125e-07, 0.055358171463012695, 0.05718731880187988, 0.057654500007629395, 0.059703946113586426, 0.06021958589553833]], [[37, 80, 207, 90, 388, 150], [1.1920928955078125e-07, 0.08412444591522217, 0.08814007043838501, 0.08815276622772217, 0.09181535243988037, 0.09795975685119629]], [[38, 283, 206, 320, 307, 276], [0.0, 0.07350289821624756, 0.07959818840026855, 0.08408427238464355, 0.08422660827636719, 0.08522540330886841]], [[39, 170, 268, 248, 303, 19], [0.0, 0.04701024293899536, 0.04841804504394531, 0.0515822172164917, 0.052092909812927246, 0.05773812532424927]], [[40, 77, 336, 69, 234, 63], [0.0, 0.05993962287902832, 0.06763255596160889, 0.06813287734985352, 0.06856411695480347, 0.07050079107284546]], [[41, 78, 24, 125, 273, 258], [0.0, 0.08926749229431152, 0.0922507643699646, 0.0984007716178894, 0.09979856014251709, 0.11706960201263428]], [[42, 286, 265, 189, 47, 256], [0.0, 0.16482150554656982, 0.1695263385772705, 0.18037128448486328, 0.19629478454589844, 0.1993856430053711]], [[43, 0, 309, 370, 51, 30], [1.1920928955078125e-07, 0.1943853497505188, 0.1983618140220642, 0.1995105743408203, 0.20318681001663208, 0.20975393056869507]], [[44, 312, 269, 226, 167, 182], [1.1920928955078125e-07, 0.09230577945709229, 0.10010284185409546, 0.11117970943450928, 0.11239206790924072, 0.11459589004516602]], [[45, 229, 92, 12, 378, 71], [0.0, 0.038412392139434814, 0.04063725471496582, 0.042566895484924316, 0.04539757966995239, 0.04620075225830078]], [[46, 164, 117, 91, 313, 163], [0.0, 0.0395808219909668, 0.04672956466674805, 0.04730403423309326, 0.04911649227142334, 0.04982554912567139]], [[47, 136, 193, 8, 345, 313], [0.0, 0.05691111087799072, 0.0589255690574646, 0.059319257736206055, 0.059746503829956055, 0.0628972053527832]], [[48, 369, 360, 20, 337, 383], [1.1920928955078125e-07, 0.1637793779373169, 0.18067151308059692, 0.18994271755218506, 0.19039404392242432, 0.1908586025238037]], [[49, 224, 379, 359, 304, 285], [0.0, 0.05690222978591919, 0.06211531162261963, 0.06213235855102539, 0.07017660140991211, 0.07135164737701416]], [[50, 305, 292, 17, 306, 386], [1.1920928955078125e-07, 0.07878339290618896, 0.08271139860153198, 0.08645898103713989, 0.09126144647598267, 0.09330493211746216]], [[51, 375, 32, 76, 89, 84], [0.0, 0.07914280891418457, 0.08490169048309326, 0.09615355730056763, 0.11385643482208252, 0.11430561542510986]], [[52, 76, 309, 168, 375, 32], [0.0, 0.07286405563354492, 0.08114540576934814, 0.08417296409606934, 0.08427995443344116, 0.08773136138916016]], [[53, 383, 221, 34, 13, 114], [0.0, 0.11164265871047974, 0.11971515417098999, 0.12377458810806274, 0.1271512508392334, 0.12757861614227295]], [[54, 64, 191, 367, 272, 282], [1.1920928955078125e-07, 0.20754313468933105, 0.20978045463562012, 0.22912001609802246, 0.27875053882598877, 0.2882688045501709]], [[55, 178, 60, 67, 348, 352], [0.0, 0.05140554904937744, 0.05668199062347412, 0.05702483654022217, 0.06871509552001953, 0.0812373161315918]], [[56, 257, 266, 209, 302, 388], [0.0, 0.08539271354675293, 0.08810365200042725, 0.0998769998550415, 0.10015982389450073, 0.10109871625900269]], [[57, 17, 305, 36, 226, 23], [0.0, 0.05552417039871216, 0.05601775646209717, 0.07109367847442627, 0.07666343450546265, 0.07717573642730713]], [[58, 99, 380, 142, 22, 332], [1.1920928955078125e-07, 0.13350200653076172, 0.1354251503944397, 0.14429080486297607, 0.1462622880935669, 0.14726471900939941]], [[59, 271, 286, 150, 290, 189], [5.960464477539063e-08, 0.11619776487350464, 0.13016939163208008, 0.18314051628112793, 0.1838386058807373, 0.18635106086730957]], [[60, 67, 178, 348, 55, 352], [0.0, 0.00025784969329833984, 0.04921156167984009, 0.05217677354812622, 0.05668199062347412, 0.05942666530609131]], [[61, 95, 186, 198, 83, 359], [0.0, 0.10137617588043213, 0.11253225803375244, 0.11618930101394653, 0.11809778213500977, 0.11847609281539917]], [[62, 310, 21, 262, 318, 380], [0.0, 0.12234485149383545, 0.12768805027008057, 0.12810677289962769, 0.13432490825653076, 0.14450615644454956]], [[63, 69, 77, 190, 164, 238], [0.0, 0.04697078466415405, 0.04825013875961304, 0.05744278430938721, 0.05977821350097656, 0.06098282337188721]], [[64, 279, 241, 130, 283, 136], [0.0, 0.12107616662979126, 0.1457386016845703, 0.14955401420593262, 0.15560060739517212, 0.1558213233947754]], [[65, 94, 56, 118, 167, 318], [0.0, 0.11840325593948364, 0.15109401941299438, 0.1809123158454895, 0.1849445104598999, 0.19118893146514893]], [[66, 96, 229, 196, 71, 12], [0.0, 0.07307112216949463, 0.07432729005813599, 0.07539916038513184, 0.07554316520690918, 0.08119159936904907]], [[67, 60, 178, 348, 55, 352], [5.960464477539063e-08, 0.00025784969329833984, 0.0494803786277771, 0.05234450101852417, 0.05702483654022217, 0.058455705642700195]], [[68, 212, 256, 126, 265, 296], [0.0, 0.10323083400726318, 0.12161743640899658, 0.1348785161972046, 0.13832080364227295, 0.14227497577667236]], [[69, 363, 206, 331, 63, 336], [0.0, 0.044667959213256836, 0.04530811309814453, 0.04561668634414673, 0.04697078466415405, 0.04863053560256958]], [[70, 264, 297, 173, 315, 152], [0.0, 0.04422461986541748, 0.04879528284072876, 0.05431610345840454, 0.05840122699737549, 0.05970555543899536]], [[71, 12, 229, 45, 196, 6], [0.0, 0.0331730842590332, 0.04257094860076904, 0.04620075225830078, 0.060866713523864746, 0.06519591808319092]], [[72, 210, 82, 139, 166, 32], [1.1920928955078125e-07, 0.05598902702331543, 0.05923861265182495, 0.07066202163696289, 0.07358533143997192, 0.07579731941223145]], [[73, 71, 12, 92, 229, 45], [5.960464477539063e-08, 0.10803830623626709, 0.11100262403488159, 0.11310338973999023, 0.12937545776367188, 0.1299269199371338]], [[74, 163, 75, 351, 188, 132], [5.960464477539063e-08, 0.09797841310501099, 0.10010653734207153, 0.10084313154220581, 0.1013420820236206, 0.1013420820236206]], [[75, 247, 307, 164, 190, 234], [1.1920928955078125e-07, 0.04891800880432129, 0.049049556255340576, 0.05582636594772339, 0.05663567781448364, 0.05683857202529907]], [[76, 375, 32, 210, 337, 52], [0.0, 0.0643799901008606, 0.06449520587921143, 0.0663377046585083, 0.07047748565673828, 0.07286405563354492]], [[77, 63, 336, 193, 234, 40], [1.1920928955078125e-07, 0.04825013875961304, 0.05646979808807373, 0.05847036838531494, 0.059393465518951416, 0.05993962287902832]], [[78, 125, 273, 280, 197, 24], [1.1920928955078125e-07, 0.06183171272277832, 0.07054013013839722, 0.07373017072677612, 0.0764002799987793, 0.07653254270553589]], [[79, 347, 304, 270, 20, 379], [5.960464477539063e-08, 0.0881812572479248, 0.0940433144569397, 0.10373663902282715, 0.11294025182723999, 0.11744564771652222]], [[80, 90, 257, 37, 183, 388], [0.0, 0.07265079021453857, 0.08320903778076172, 0.08412444591522217, 0.08859717845916748, 0.09152323007583618]], [[81, 107, 261, 12, 45, 171], [1.1920928955078125e-07, 0.1512170433998108, 0.18020308017730713, 0.18338441848754883, 0.194724440574646, 0.1968601942062378]], [[82, 72, 139, 231, 374, 210], [0.0, 0.05923861265182495, 0.06710934638977051, 0.06887072324752808, 0.06970804929733276, 0.071319580078125]], [[83, 265, 115, 372, 189, 313], [0.0, 0.08827638626098633, 0.09416007995605469, 0.11179429292678833, 0.11653804779052734, 0.11740535497665405]], [[84, 168, 166, 32, 155, 210], [5.960464477539063e-08, 0.06126141548156738, 0.06738686561584473, 0.07841718196868896, 0.07845044136047363, 0.08062475919723511]], [[85, 385, 150, 387, 346, 250], [1.7881393432617188e-07, 0.058542847633361816, 0.0721813440322876, 0.08316802978515625, 0.08316802978515625, 0.08638513088226318]], [[86, 303, 190, 268, 234, 339], [5.960464477539063e-08, 0.046943604946136475, 0.05873459577560425, 0.059321582317352295, 0.0617145299911499, 0.06269514560699463]], [[87, 254, 137, 182, 280, 268], [0.0, 0.049445152282714844, 0.08912384510040283, 0.09635007381439209, 0.10342633724212646, 0.10494530200958252]], [[88, 295, 104, 203, 175, 63], [0.0, 0.044881224632263184, 0.0607946515083313, 0.0733070969581604, 0.09700405597686768, 0.10402047634124756]], [[89, 149, 84, 72, 270, 32], [0.0, 0.06829583644866943, 0.08230215311050415, 0.08501029014587402, 0.09409695863723755, 0.09540665149688721]], [[90, 387, 346, 267, 152, 248], [5.960464477539063e-08, 0.05090886354446411, 0.05090886354446411, 0.062455713748931885, 0.06702077388763428, 0.06857270002365112]], [[91, 46, 237, 164, 307, 163], [0.0, 0.04730403423309326, 0.05319929122924805, 0.05488097667694092, 0.05569726228713989, 0.05651813745498657]], [[92, 45, 229, 71, 12, 96], [5.960464477539063e-08, 0.04063725471496582, 0.05758225917816162, 0.06552809476852417, 0.06788969039916992, 0.07114511728286743]], [[93, 63, 203, 86, 247, 147], [5.960464477539063e-08, 0.09289449453353882, 0.10878390073776245, 0.11689144372940063, 0.11886775493621826, 0.12146854400634766]], [[94, 65, 56, 50, 129, 305], [5.960464477539063e-08, 0.11840325593948364, 0.1317015290260315, 0.1495378017425537, 0.16650187969207764, 0.16974198818206787]], [[95, 321, 366, 213, 8, 224], [5.960464477539063e-08, 0.04649758338928223, 0.04673123359680176, 0.04901152849197388, 0.05763357877731323, 0.05815136432647705]], [[96, 229, 378, 45, 196, 154], [5.960464477539063e-08, 0.04848337173461914, 0.050690293312072754, 0.05418658256530762, 0.05752062797546387, 0.06046539545059204]], [[97, 319, 170, 268, 205, 5], [1.1920928955078125e-07, 0.0721430778503418, 0.07464861869812012, 0.07825648784637451, 0.07898473739624023, 0.07909798622131348]], [[98, 241, 362, 41, 197, 125], [5.960464477539063e-08, 0.1532909870147705, 0.15389442443847656, 0.15644967555999756, 0.15921998023986816, 0.16170859336853027]], [[99, 142, 292, 386, 171, 110], [0.0, 0.04686284065246582, 0.06907474994659424, 0.07451629638671875, 0.07583063840866089, 0.0880233645439148]], [[100, 386, 305, 257, 17, 36], [0.0, 0.05370521545410156, 0.061225295066833496, 0.06962519884109497, 0.07246571779251099, 0.07712900638580322]], [[101, 95, 8, 198, 165, 225], [5.960464477539063e-08, 0.07346135377883911, 0.07351154088973999, 0.0760616660118103, 0.07667803764343262, 0.07696741819381714]], [[102, 196, 343, 229, 378, 66], [1.1920928955078125e-07, 0.10032510757446289, 0.10289502143859863, 0.10748332738876343, 0.1095116138458252, 0.11267662048339844]], [[103, 217, 373, 25, 86, 322], [5.960464477539063e-08, 0.09505975246429443, 0.10306274890899658, 0.10306739807128906, 0.11271548271179199, 0.11747223138809204]], [[104, 88, 63, 244, 121, 140], [0.0, 0.0607946515083313, 0.06333780288696289, 0.0670509934425354, 0.07244795560836792, 0.0745745301246643]], [[112, 105, 229, 154, 327, 378], [1.1920928955078125e-07, 1.1920928955078125e-07, 0.049777865409851074, 0.0535508394241333, 0.05435752868652344, 0.056685686111450195]], [[106, 238, 190, 283, 235, 279], [0.0, 0.06755733489990234, 0.07343709468841553, 0.08556544780731201, 0.08739793300628662, 0.08835649490356445]], [[107, 12, 45, 378, 154, 96], [0.0, 0.061264634132385254, 0.06747037172317505, 0.06912761926651001, 0.07236480712890625, 0.07541203498840332]], [[108, 328, 249, 293, 138, 255], [0.0, 0.08239531517028809, 0.10393786430358887, 0.1550310254096985, 0.1601586937904358, 0.16225582361221313]], [[109, 355, 125, 78, 98, 194], [5.960464477539063e-08, 0.13815557956695557, 0.14912563562393188, 0.15697163343429565, 0.16378003358840942, 0.16425007581710815]], [[110, 384, 386, 292, 99, 16], [1.1920928955078125e-07, 0.06573820114135742, 0.07976126670837402, 0.08336865901947021, 0.0880233645439148, 0.0923689603805542]], [[111, 171, 110, 16, 6, 384], [0.0, 0.11118972301483154, 0.11422908306121826, 0.11437797546386719, 0.11968767642974854, 0.1209028959274292]], [[112, 105, 229, 154, 327, 378], [1.1920928955078125e-07, 1.1920928955078125e-07, 0.049777865409851074, 0.0535508394241333, 0.05435752868652344, 0.056685686111450195]], [[113, 124, 37, 123, 85, 385], [0.0, 0.14606237411499023, 0.16481781005859375, 0.1667875051498413, 0.16692090034484863, 0.1752108335494995]], [[114, 289, 252, 347, 383, 20], [0.0, 0.060366034507751465, 0.062210679054260254, 0.06606674194335938, 0.07102227210998535, 0.0728675127029419]], [[115, 224, 372, 216, 350, 189], [1.1920928955078125e-07, 0.07645082473754883, 0.08070391416549683, 0.08188188076019287, 0.084861159324646, 0.08597534894943237]], [[116, 333, 332, 382, 120, 365], [0.0, 0.06863021850585938, 0.08790826797485352, 0.10010802745819092, 0.11425924301147461, 0.1145317554473877]], [[117, 237, 46, 190, 283, 247], [0.0, 0.03163957595825195, 0.04672956466674805, 0.04746425151824951, 0.048038482666015625, 0.048079490661621094]], [[118, 266, 167, 318, 381, 200], [0.0, 0.10446792840957642, 0.10497462749481201, 0.10592859983444214, 0.11477428674697876, 0.11718660593032837]], [[119, 183, 80, 318, 37, 207], [1.1920928955078125e-07, 0.10501426458358765, 0.13437926769256592, 0.14435917139053345, 0.14450031518936157, 0.16524100303649902]], [[120, 116, 110, 102, 16, 343], [0.0, 0.11425924301147461, 0.12387096881866455, 0.13020771741867065, 0.1373334527015686, 0.13876092433929443]], [[121, 279, 77, 104, 238, 63], [5.960464477539063e-08, 0.06830894947052002, 0.06837743520736694, 0.07244795560836792, 0.07287830114364624, 0.07479739189147949]], [[122, 367, 114, 272, 357, 252], [0.0, 0.14369654655456543, 0.1522362232208252, 0.16406738758087158, 0.17553269863128662, 0.17569297552108765]], [[123, 286, 150, 124, 256, 40], [0.0, 0.09737896919250488, 0.1327303647994995, 0.1347963809967041, 0.1348344087600708, 0.13515841960906982]], [[124, 385, 150, 37, 85, 207], [0.0, 0.08621573448181152, 0.09296941757202148, 0.09875690937042236, 0.09954261779785156, 0.10271090269088745]], [[125, 78, 340, 181, 273, 280], [5.960464477539063e-08, 0.06183171272277832, 0.0762563943862915, 0.07879173755645752, 0.0840916633605957, 0.08618855476379395]], [[126, 162, 212, 68, 265, 256], [1.1920928955078125e-07, 0.11954694986343384, 0.13455939292907715, 0.1348785161972046, 0.13732784986495972, 0.1413111686706543]], [[127, 381, 354, 276, 267, 302], [0.0, 0.07926666736602783, 0.09810268878936768, 0.10095643997192383, 0.10108041763305664, 0.11057496070861816]], [[128, 374, 20, 304, 228, 231], [5.960464477539063e-08, 0.0487520694732666, 0.06370824575424194, 0.06701576709747314, 0.06891363859176636, 0.07392853498458862]], [[129, 100, 11, 386, 305, 174], [0.0, 0.08111023902893066, 0.10516810417175293, 0.11053889989852905, 0.11206066608428955, 0.1222638487815857]], [[130, 172, 157, 351, 288, 363], [1.1920928955078125e-07, 0.06434714794158936, 0.07173281908035278, 0.07520699501037598, 0.07525032758712769, 0.07639521360397339]], [[131, 335, 1, 308, 158, 192], [1.1920928955078125e-07, 0.074149489402771, 0.09885072708129883, 0.09945684671401978, 0.10386443138122559, 0.10528433322906494]], [[132, 188, 282, 275, 246, 163], [0.0, 0.0, 0.034394025802612305, 0.03677946329116821, 0.0415608286857605, 0.04936659336090088]], [[133, 304, 284, 95, 231, 13], [1.1920928955078125e-07, 0.055005669593811035, 0.061547696590423584, 0.06228369474411011, 0.06697291135787964, 0.06810557842254639]], [[134, 163, 282, 132, 188, 202], [5.960464477539063e-08, 0.052668094635009766, 0.06171548366546631, 0.06436276435852051, 0.06436276435852051, 0.06769657135009766]], [[135, 326, 268, 349, 341, 170], [5.960464477539063e-08, 0.07549571990966797, 0.0830385684967041, 0.08575856685638428, 0.09123122692108154, 0.09299659729003906]], [[136, 188, 132, 238, 345, 283], [0.0, 0.05247533321380615, 0.05247533321380615, 0.05349230766296387, 0.05446004867553711, 0.054979681968688965]], [[137, 329, 254, 182, 152, 248], [0.0, 0.04429143667221069, 0.054872870445251465, 0.055037498474121094, 0.05680537223815918, 0.06529206037521362]], [[138, 249, 328, 108, 285, 236], [0.0, 0.13826942443847656, 0.1578301191329956, 0.1601586937904358, 0.16712844371795654, 0.17435604333877563]], [[139, 166, 168, 155, 231, 311], [0.0, 0.04330563545227051, 0.04734140634536743, 0.0501784086227417, 0.05779379606246948, 0.062281012535095215]], [[140, 351, 172, 69, 164, 363], [0.0, 0.050107717514038086, 0.05096173286437988, 0.05219614505767822, 0.05517756938934326, 0.056077420711517334]], [[141, 87, 254, 340, 388, 181], [0.0, 0.10747766494750977, 0.10787785053253174, 0.11045026779174805, 0.1271350383758545, 0.1281617283821106]], [[142, 99, 292, 384, 386, 4], [1.1920928955078125e-07, 0.04686284065246582, 0.06256484985351562, 0.08858227729797363, 0.0908505916595459, 0.09501564502716064]], [[143, 353, 383, 8, 377, 224], [0.0, 0.06536757946014404, 0.0756446123123169, 0.07577168941497803, 0.08327758312225342, 0.08709251880645752]], [[144, 150, 56, 240, 209, 127], [0.0, 0.09240204095840454, 0.10405373573303223, 0.10424476861953735, 0.11327773332595825, 0.1145477294921875]], [[145, 50, 222, 306, 335, 131], [1.1920928955078125e-07, 0.13106340169906616, 0.1374637484550476, 0.14972013235092163, 0.16515827178955078, 0.17570650577545166]], [[146, 224, 285, 321, 95, 304], [0.0, 0.051537156105041504, 0.05873119831085205, 0.059645235538482666, 0.0627673864364624, 0.06478077173233032]], [[147, 91, 247, 163, 140, 221], [0.0, 0.06426531076431274, 0.0786142349243164, 0.0804370641708374, 0.08185869455337524, 0.08271521329879761]], [[148, 4, 161, 232, 50, 142], [0.0, 0.10342836380004883, 0.1159166693687439, 0.11924421787261963, 0.12032639980316162, 0.1338897943496704]], [[149, 89, 84, 72, 375, 51], [1.1920928955078125e-07, 0.06829583644866943, 0.11200261116027832, 0.11280262470245361, 0.11641538143157959, 0.12225937843322754]], [[150, 85, 90, 346, 387, 385], [0.0, 0.0721813440322876, 0.07418626546859741, 0.07704323530197144, 0.07704323530197144, 0.07759344577789307]], [[151, 236, 8, 313, 176, 202], [5.960464477539063e-08, 0.028228282928466797, 0.032094717025756836, 0.042961299419403076, 0.04336357116699219, 0.04604780673980713]], [[152, 315, 264, 215, 248, 19], [0.0, 0.025939881801605225, 0.035234153270721436, 0.03942990303039551, 0.04178398847579956, 0.04276394844055176]], [[153, 330, 214, 187, 354, 320], [0.0, 0.13566505908966064, 0.13972890377044678, 0.14604437351226807, 0.14945226907730103, 0.15148979425430298]], [[154, 378, 171, 229, 112, 105], [5.960464477539063e-08, 0.041099607944488525, 0.047025978565216064, 0.05352061986923218, 0.0535508394241333, 0.0535508394241333]], [[155, 166, 139, 168, 311, 252], [5.960464477539063e-08, 0.036835312843322754, 0.0501784086227417, 0.05369985103607178, 0.06479793787002563, 0.07417619228363037]], [[156, 170, 192, 326, 5, 208], [0.0, 0.10410702228546143, 0.10636073350906372, 0.10661816596984863, 0.10698807239532471, 0.11077338457107544]], [[157, 351, 117, 190, 234, 303], [0.0, 0.04097670316696167, 0.050458669662475586, 0.0528300404548645, 0.05337029695510864, 0.05489116907119751]], [[158, 205, 288, 19, 363, 260], [0.0, 0.04507172107696533, 0.07509732246398926, 0.07584583759307861, 0.0781404972076416, 0.08269286155700684]], [[159, 273, 241, 125, 38, 78], [5.960464477539063e-08, 0.11222851276397705, 0.12807691097259521, 0.1295374035835266, 0.1492946743965149, 0.1512630581855774]], [[160, 205, 97, 319, 19, 331], [0.0, 0.07825088500976562, 0.08146381378173828, 0.0864974856376648, 0.0907280445098877, 0.0920068621635437]], [[161, 148, 306, 205, 4, 50], [0.0, 0.1159166693687439, 0.12440824508666992, 0.13137948513031006, 0.1377987265586853, 0.13866811990737915]], [[162, 270, 115, 359, 126, 253], [0.0, 0.09666323661804199, 0.10709714889526367, 0.11876153945922852, 0.11954694986343384, 0.12045109272003174]], [[163, 8, 202, 132, 188, 46], [5.960464477539063e-08, 0.04268765449523926, 0.04706317186355591, 0.04936659336090088, 0.04936659336090088, 0.04982554912567139]], [[164, 46, 389, 247, 91, 140], [0.0, 0.0395808219909668, 0.04684293270111084, 0.053727924823760986, 0.05488109588623047, 0.05517756938934326]], [[165, 8, 151, 91, 202, 225], [0.0, 0.05782139301300049, 0.06758928298950195, 0.06823426485061646, 0.06963241100311279, 0.07241064310073853]], [[166, 155, 168, 139, 311, 84], [0.0, 0.036835312843322754, 0.03731173276901245, 0.04330563545227051, 0.05621558427810669, 0.06738686561584473]], [[167, 118, 44, 302, 56, 200], [0.0, 0.10497462749481201, 0.11239206790924072, 0.114571213722229, 0.11637532711029053, 0.12341445684432983]], [[168, 166, 139, 155, 311, 84], [5.960464477539063e-08, 0.03731173276901245, 0.04734140634536743, 0.05369985103607178, 0.05893987417221069, 0.06126141548156738]], [[169, 138, 82, 13, 281, 285], [5.960464477539063e-08, 0.19056308269500732, 0.1986757516860962, 0.20136553049087524, 0.20696133375167847, 0.2108217477798462]], [[170, 39, 264, 152, 248, 315], [0.0, 0.04701024293899536, 0.05895578861236572, 0.05956423282623291, 0.06124359369277954, 0.06190145015716553]], [[171, 154, 71, 112, 105, 12], [1.1920928955078125e-07, 0.047025978565216064, 0.0685732364654541, 0.06915086507797241, 0.06915086507797241, 0.0717538595199585]], [[172, 363, 288, 303, 190, 185], [0.0, 0.04405093193054199, 0.04492223262786865, 0.04755216836929321, 0.04886507987976074, 0.05048590898513794]], [[173, 215, 297, 315, 152, 248], [0.0, 0.040596604347229004, 0.044446706771850586, 0.04681575298309326, 0.048950910568237305, 0.04938638210296631]], [[174, 129, 50, 11, 183, 124], [0.0, 0.1222638487815857, 0.16443300247192383, 0.17070603370666504, 0.17088115215301514, 0.17400312423706055]], [[175, 363, 260, 331, 206, 69], [1.1920928955078125e-07, 0.051937103271484375, 0.05422860383987427, 0.055515825748443604, 0.05594301223754883, 0.05988001823425293]], [[176, 151, 8, 193, 236, 132], [0.0, 0.04336357116699219, 0.04689514636993408, 0.06258130073547363, 0.06324297189712524, 0.06656181812286377]], [[177, 318, 200, 335, 308, 131], [5.960464477539063e-08, 0.07598745822906494, 0.08936035633087158, 0.09206676483154297, 0.11436992883682251, 0.11679363250732422]], [[178, 352, 60, 67, 55, 348], [0.0, 0.048963844776153564, 0.04921156167984009, 0.0494803786277771, 0.05140554904937744, 0.06321114301681519]], [[179, 206, 234, 69, 63, 91], [0.0, 0.10575443506240845, 0.1181478500366211, 0.11908876895904541, 0.1227109432220459, 0.12300777435302734]], [[180, 364, 191, 109, 316, 355], [0.0, 0.1472560167312622, 0.16996073722839355, 0.1750476360321045, 0.2053655982017517, 0.2055422067642212]], [[181, 125, 262, 78, 280, 21], [1.1920928955078125e-07, 0.07879173755645752, 0.08267003297805786, 0.08674067258834839, 0.08836686611175537, 0.1004793643951416]], [[182, 248, 137, 264, 215, 308], [1.1920928955078125e-07, 0.04993438720703125, 0.055037498474121094, 0.05862569808959961, 0.058795809745788574, 0.06108289957046509]], [[183, 80, 119, 257, 318, 388], [5.960464477539063e-08, 0.08859717845916748, 0.10501426458358765, 0.11154627799987793, 0.11243844032287598, 0.11253130435943604]], [[184, 127, 354, 381, 144, 355], [1.1920928955078125e-07, 0.13169622421264648, 0.13442844152450562, 0.14584141969680786, 0.14975732564926147, 0.14980435371398926]], [[185, 172, 190, 238, 288, 19], [0.0, 0.05048590898513794, 0.056359291076660156, 0.0595012903213501, 0.0615079402923584, 0.06444025039672852]], [[186, 270, 198, 304, 311, 13], [1.1920928955078125e-07, 0.059976816177368164, 0.06674003601074219, 0.0674293041229248, 0.07114511728286743, 0.07215243577957153]], [[187, 316, 364, 330, 153, 293], [0.0, 0.1203203797340393, 0.13787120580673218, 0.14491885900497437, 0.14604437351226807, 0.16676443815231323]], [[132, 188, 282, 275, 246, 163], [0.0, 0.0, 0.034394025802612305, 0.03677946329116821, 0.0415608286857605, 0.04936659336090088]], [[189, 265, 8, 216, 46, 47], [0.0, 0.07015085220336914, 0.07815027236938477, 0.08036577701568604, 0.08098524808883667, 0.08227676153182983]], [[190, 238, 283, 117, 234, 172], [1.1920928955078125e-07, 0.0376092791557312, 0.045771241188049316, 0.04746425151824951, 0.048643648624420166, 0.04886507987976074]], [[191, 367, 383, 91, 219, 282], [0.0, 0.08043456077575684, 0.11376547813415527, 0.11754059791564941, 0.11981338262557983, 0.12312251329421997]], [[192, 19, 14, 260, 215, 152], [5.960464477539063e-08, 0.054094672203063965, 0.06339478492736816, 0.06928235292434692, 0.07150602340698242, 0.07431834936141968]], [[193, 283, 247, 238, 117, 225], [0.0, 0.03426092863082886, 0.04740428924560547, 0.048508524894714355, 0.05131101608276367, 0.05199539661407471]], [[194, 258, 29, 41, 109, 125], [0.0, 0.08827251195907593, 0.12481260299682617, 0.1509702205657959, 0.16425007581710815, 0.16519522666931152]], [[195, 179, 97, 205, 275, 68], [5.960464477539063e-08, 0.1584063172340393, 0.1754661202430725, 0.18017792701721191, 0.18154776096343994, 0.1817312240600586]], [[196, 229, 378, 96, 45, 71], [0.0, 0.04449963569641113, 0.054442763328552246, 0.05752062797546387, 0.059394657611846924, 0.060866713523864746]], [[197, 35, 78, 340, 280, 125], [0.0, 0.07181352376937866, 0.0764002799987793, 0.08934658765792847, 0.09151214361190796, 0.09173917770385742]], [[198, 304, 186, 13, 101, 270], [0.0, 0.0655326247215271, 0.06674003601074219, 0.07118630409240723, 0.0760616660118103, 0.08199983835220337]], [[199, 295, 307, 203, 91, 235], [5.960464477539063e-08, 0.08035171031951904, 0.09354054927825928, 0.09908372163772583, 0.10615992546081543, 0.10645455121994019]], [[200, 266, 29, 257, 318, 90], [5.960464477539063e-08, 0.07578623294830322, 0.08160406351089478, 0.08582192659378052, 0.08652377128601074, 0.08735579252243042]], [[201, 203, 69, 86, 303, 269], [0.0, 0.04995155334472656, 0.08650219440460205, 0.08654177188873291, 0.08894574642181396, 0.09422469139099121]], [[202, 8, 151, 163, 377, 253], [0.0, 0.04372161626815796, 0.04604780673980713, 0.04706317186355591, 0.05661022663116455, 0.063274085521698]], [[203, 201, 295, 63, 86, 88], [5.960464477539063e-08, 0.04995155334472656, 0.0644034743309021, 0.06540894508361816, 0.07159304618835449, 0.0733070969581604]], [[204, 173, 315, 363, 215, 303], [0.0, 0.06478476524353027, 0.06878995895385742, 0.06900709867477417, 0.0702868103981018, 0.07331430912017822]], [[205, 158, 19, 160, 97, 373], [0.0, 0.04507172107696533, 0.07707202434539795, 0.07825088500976562, 0.07898473739624023, 0.08535981178283691]], [[206, 363, 69, 172, 288, 260], [5.960464477539063e-08, 0.04477423429489136, 0.04530811309814453, 0.053413331508636475, 0.05352377891540527, 0.05511504411697388]], [[207, 90, 37, 276, 80, 124], [0.0, 0.08789414167404175, 0.08814007043838501, 0.08917218446731567, 0.1014103889465332, 0.10271090269088745]], [[208, 156, 204, 22, 254, 87], [0.0, 0.11077338457107544, 0.11310482025146484, 0.11537551879882812, 0.12271374464035034, 0.12376481294631958]], [[209, 257, 248, 264, 387, 346], [0.0, 0.0535120964050293, 0.06753349304199219, 0.07666671276092529, 0.07735675573348999, 0.07735675573348999]], [[210, 72, 32, 76, 168, 82], [0.0, 0.05598902702331543, 0.06518489122390747, 0.0663377046585083, 0.07121419906616211, 0.071319580078125]], [[211, 285, 321, 224, 359, 95], [1.1920928955078125e-07, 0.05889904499053955, 0.06161689758300781, 0.06313198804855347, 0.06820535659790039, 0.07061213254928589]], [[212, 296, 256, 68, 321, 95], [0.0, 0.08799147605895996, 0.09798276424407959, 0.10323083400726318, 0.12246114015579224, 0.1260390281677246]], [[213, 95, 224, 285, 379, 253], [5.960464477539063e-08, 0.04901152849197388, 0.052663207054138184, 0.057246267795562744, 0.05839955806732178, 0.062480270862579346]], [[214, 283, 172, 157, 234, 38], [0.0, 0.07610774040222168, 0.0802164077758789, 0.08521932363510132, 0.08650738000869751, 0.08775085210800171]], [[215, 315, 152, 297, 173, 248], [0.0, 0.03874093294143677, 0.03942990303039551, 0.03982400894165039, 0.040596604347229004, 0.04928433895111084]], [[216, 321, 350, 8, 224, 345], [1.1920928955078125e-07, 0.06412333250045776, 0.06684821844100952, 0.07529604434967041, 0.07761901617050171, 0.07922542095184326]], [[217, 137, 373, 303, 86, 182], [0.0, 0.06863003969192505, 0.0716240406036377, 0.0718851089477539, 0.07218122482299805, 0.07507562637329102]], [[218, 179, 322, 220, 278, 206], [1.1920928955078125e-07, 0.19722449779510498, 0.20341980457305908, 0.2034226655960083, 0.20555871725082397, 0.2105364203453064]], [[219, 299, 321, 8, 95, 91], [0.0, 0.0465923547744751, 0.04885601997375488, 0.0579647421836853, 0.06074637174606323, 0.06578123569488525]], [[220, 275, 132, 188, 299, 246], [0.0, 0.0674898624420166, 0.0765458345413208, 0.0765458345413208, 0.0862932801246643, 0.09004384279251099]], [[221, 299, 219, 91, 323, 133], [5.960464477539063e-08, 0.06125450134277344, 0.06858354806900024, 0.07109421491622925, 0.07147520780563354, 0.07649827003479004]], [[222, 50, 226, 22, 232, 332], [0.0, 0.09910988807678223, 0.10605192184448242, 0.11430466175079346, 0.12115323543548584, 0.12291014194488525]], [[223, 134, 165, 317, 191, 298], [0.0, 0.14939391613006592, 0.1529691219329834, 0.16131079196929932, 0.16180503368377686, 0.16323846578598022]], [[224, 321, 8, 285, 146, 213], [5.960464477539063e-08, 0.04515945911407471, 0.04667854309082031, 0.050014495849609375, 0.051537156105041504, 0.052663207054138184]], [[225, 193, 117, 46, 237, 8], [0.0, 0.05199539661407471, 0.05351752042770386, 0.05565035343170166, 0.06030082702636719, 0.06143707036972046]], [[226, 57, 17, 349, 388, 326], [0.0, 0.07666343450546265, 0.07686328887939453, 0.0820150375366211, 0.08259427547454834, 0.08445537090301514]], [[227, 290, 286, 88, 27, 175], [0.0, 0.16290444135665894, 0.17007100582122803, 0.1832672357559204, 0.1890324354171753, 0.19068282842636108]], [[228, 128, 374, 301, 34, 259], [0.0, 0.06891363859176636, 0.0833587646484375, 0.09209877252578735, 0.10161781311035156, 0.10565197467803955]], [[229, 45, 71, 196, 378, 96], [0.0, 0.038412392139434814, 0.04257094860076904, 0.04449963569641113, 0.04581707715988159, 0.04848337173461914]], [[230, 351, 303, 268, 331, 336], [1.1920928955078125e-07, 0.05433380603790283, 0.0595552921295166, 0.06521165370941162, 0.06802582740783691, 0.0684441328048706]], [[231, 374, 304, 139, 13, 281], [0.0, 0.04459434747695923, 0.04843538999557495, 0.05779379606246948, 0.060539960861206055, 0.06268799304962158]], [[232, 386, 292, 4, 384, 305], [0.0, 0.07286757230758667, 0.07941031455993652, 0.09729671478271484, 0.09843051433563232, 0.10412657260894775]], [[233, 339, 268, 329, 303, 39], [0.0, 0.04107910394668579, 0.057210326194763184, 0.06006050109863281, 0.061401426792144775, 0.06676709651947021]], [[234, 190, 157, 283, 75, 69], [0.0, 0.048643648624420166, 0.05337029695510864, 0.05529952049255371, 0.05683857202529907, 0.057764649391174316]], [[235, 46, 117, 307, 190, 47], [0.0, 0.05206632614135742, 0.056294798851013184, 0.06047391891479492, 0.06311643123626709, 0.06667077541351318]], [[236, 151, 247, 8, 163, 313], [5.960464477539063e-08, 0.028228282928466797, 0.047266244888305664, 0.05271565914154053, 0.057910263538360596, 0.060495972633361816]], [[237, 117, 91, 46, 247, 8], [0.0, 0.03163957595825195, 0.05319929122924805, 0.05577272176742554, 0.057256102561950684, 0.05908071994781494]], [[238, 190, 193, 283, 136, 117], [0.0, 0.0376092791557312, 0.048508524894714355, 0.05249607563018799, 0.05349230766296387, 0.054657816886901855]], [[239, 352, 10, 178, 348, 33], [0.0, 0.08457291126251221, 0.09652739763259888, 0.1004289984703064, 0.11191165447235107, 0.1193273663520813]], [[240, 150, 385, 341, 85, 144], [1.1920928955078125e-07, 0.07852602005004883, 0.08080339431762695, 0.08571076393127441, 0.09053713083267212, 0.10424476861953735]], [[241, 159, 64, 35, 98, 125], [0.0, 0.12807691097259521, 0.1457386016845703, 0.15276122093200684, 0.1532909870147705, 0.16197556257247925]], [[242, 287, 3, 32, 76, 2], [0.0, 0.04186451435089111, 0.07188153266906738, 0.07954484224319458, 0.08383142948150635, 0.08606845140457153]], [[243, 293, 300, 255, 373, 363], [5.960464477539063e-08, 0.10548943281173706, 0.10621058940887451, 0.10998773574829102, 0.12352168560028076, 0.12397807836532593]], [[244, 190, 185, 104, 363, 172], [0.0, 0.0644528865814209, 0.0669141411781311, 0.0670509934425354, 0.07312607765197754, 0.07352590560913086]], [[245, 209, 36, 257, 341, 302], [0.0, 0.08126163482666016, 0.09135574102401733, 0.09685021638870239, 0.09709084033966064, 0.0990985631942749]], [[246, 188, 132, 163, 372, 284], [0.0, 0.0415608286857605, 0.0415608286857605, 0.05901658535003662, 0.05942380428314209, 0.06018352508544922]], [[247, 283, 236, 193, 117, 75], [1.1920928955078125e-07, 0.04262739419937134, 0.047266244888305664, 0.04740428924560547, 0.048079490661621094, 0.04891800880432129]], [[248, 264, 152, 315, 215, 173], [5.960464477539063e-08, 0.034703969955444336, 0.04178398847579956, 0.04789149761199951, 0.04928433895111084, 0.04938638210296631]], [[249, 108, 328, 323, 220, 221], [0.0, 0.10393786430358887, 0.1142808198928833, 0.11931794881820679, 0.13157522678375244, 0.13440287113189697]], [[250, 341, 251, 349, 85, 326], [1.1920928955078125e-07, 0.06585121154785156, 0.06845849752426147, 0.07956397533416748, 0.08638513088226318, 0.09163963794708252]], [[251, 250, 349, 100, 36, 326], [0.0, 0.06845849752426147, 0.07275807857513428, 0.0807950496673584, 0.08136975765228271, 0.08159780502319336]], [[252, 114, 155, 166, 139, 311], [0.0, 0.062210679054260254, 0.07417619228363037, 0.07989400625228882, 0.08635818958282471, 0.08863580226898193]], [[253, 8, 321, 224, 313, 95], [1.1920928955078125e-07, 0.04475682973861694, 0.047764480113983154, 0.054917752742767334, 0.06010115146636963, 0.06021678447723389]], [[254, 87, 137, 329, 182, 280], [0.0, 0.049445152282714844, 0.054872870445251465, 0.06593704223632812, 0.07009071111679077, 0.08071565628051758]], [[255, 35, 389, 247, 280, 197], [0.0, 0.08242928981781006, 0.09281480312347412, 0.09936583042144775, 0.10298168659210205, 0.10433328151702881]], [[256, 212, 189, 265, 295, 46], [0.0, 0.09798276424407959, 0.10911273956298828, 0.11174654960632324, 0.1153174638748169, 0.11591267585754395]], [[257, 209, 326, 264, 36, 388], [0.0, 0.0535120964050293, 0.05699622631072998, 0.05713856220245361, 0.05718731880187988, 0.060674965381622314]], [[258, 194, 29, 78, 125, 21], [0.0, 0.08827251195907593, 0.09899711608886719, 0.10101127624511719, 0.11554676294326782, 0.11597728729248047]], [[259, 34, 128, 49, 186, 198], [5.960464477539063e-08, 0.06300848722457886, 0.07985520362854004, 0.09414631128311157, 0.09461885690689087, 0.09540235996246338]], [[260, 363, 19, 288, 331, 315], [0.0, 0.041184306144714355, 0.04233872890472412, 0.046856462955474854, 0.04998207092285156, 0.05077916383743286]], [[261, 96, 229, 196, 71, 154], [1.1920928955078125e-07, 0.0668478012084961, 0.07565474510192871, 0.07677018642425537, 0.07692015171051025, 0.08568096160888672]], [[262, 380, 181, 388, 173, 182], [0.0, 0.07526886463165283, 0.08267003297805786, 0.08452105522155762, 0.08831435441970825, 0.089596688747406]], [[263, 150, 85, 385, 371, 97], [1.1920928955078125e-07, 0.07770246267318726, 0.09517168998718262, 0.09627079963684082, 0.09661328792572021, 0.1087958812713623]], [[264, 248, 152, 326, 70, 297], [0.0, 0.034703969955444336, 0.035234153270721436, 0.04307854175567627, 0.04422461986541748, 0.04460024833679199]], [[265, 189, 286, 83, 46, 115], [1.1920928955078125e-07, 0.07015085220336914, 0.08546054363250732, 0.08827638626098633, 0.09088790416717529, 0.09191560745239258]], [[266, 264, 257, 200, 209, 152], [0.0, 0.07379353046417236, 0.07528263330459595, 0.07578623294830322, 0.07843029499053955, 0.07947683334350586]], [[267, 276, 90, 152, 388, 248], [0.0, 0.052724480628967285, 0.062455713748931885, 0.07220536470413208, 0.0757591724395752, 0.07689779996871948]], [[268, 339, 39, 303, 152, 233], [5.960464477539063e-08, 0.04681771993637085, 0.04841804504394531, 0.05131250619888306, 0.0557708740234375, 0.057210326194763184]], [[269, 312, 288, 182, 19, 172], [0.0, 0.04907113313674927, 0.05427896976470947, 0.06361854076385498, 0.06449049711227417, 0.06872117519378662]], [[270, 186, 304, 374, 213, 198], [0.0, 0.059976816177368164, 0.06237828731536865, 0.07262945175170898, 0.07714873552322388, 0.08199983835220337]], [[271, 59, 150, 286, 263, 371], [0.0, 0.11619776487350464, 0.1551436185836792, 0.16315841674804688, 0.16908442974090576, 0.17036491632461548]], [[272, 377, 383, 202, 151, 8], [0.0, 0.07423877716064453, 0.10491394996643066, 0.11017286777496338, 0.11490774154663086, 0.12164676189422607]], [[273, 78, 125, 308, 200, 335], [0.0, 0.07054013013839722, 0.0840916633605957, 0.0929824709892273, 0.09617948532104492, 0.09777271747589111]], [[274, 117, 190, 238, 237, 283], [0.0, 0.0602039098739624, 0.06437474489212036, 0.06592780351638794, 0.06900656223297119, 0.06972438097000122]], [[275, 132, 188, 282, 136, 372], [0.0, 0.03677946329116821, 0.03677946329116821, 0.055346548557281494, 0.05701279640197754, 0.06132173538208008]], [[276, 267, 339, 182, 354, 206], [0.0, 0.052724480628967285, 0.0751226544380188, 0.0752863883972168, 0.0759652853012085, 0.07761406898498535]], [[277, 381, 127, 177, 118, 290], [1.1920928955078125e-07, 0.20386701822280884, 0.2118140459060669, 0.223175048828125, 0.2352008819580078, 0.2528958320617676]], [[278, 247, 117, 313, 163, 151], [0.0, 0.08228921890258789, 0.08605366945266724, 0.09073907136917114, 0.09262996912002563, 0.09705865383148193]], [[279, 121, 238, 75, 77, 63], [0.0, 0.06830894947052002, 0.0749673843383789, 0.07659637928009033, 0.08383011817932129, 0.08461636304855347]], [[280, 173, 268, 78, 204, 152], [0.0, 0.06104695796966553, 0.06586730480194092, 0.07373017072677612, 0.07461392879486084, 0.07500910758972168]], [[281, 347, 374, 13, 231, 304], [0.0, 0.054061710834503174, 0.058662474155426025, 0.06096917390823364, 0.06268799304962158, 0.06528431177139282]], [[282, 132, 188, 275, 163, 164], [0.0, 0.034394025802612305, 0.034394025802612305, 0.055346548557281494, 0.05858612060546875, 0.05955207347869873]], [[283, 193, 247, 190, 117, 238], [5.960464477539063e-08, 0.03426092863082886, 0.04262739419937134, 0.045771241188049316, 0.048038482666015625, 0.05249607563018799]], [[284, 246, 133, 317, 213, 361], [0.0, 0.06018352508544922, 0.061547696590423584, 0.07738995552062988, 0.07766473293304443, 0.07780963182449341]], [[285, 224, 359, 213, 321, 146], [1.1920928955078125e-07, 0.050014495849609375, 0.05248570442199707, 0.057246267795562744, 0.05825597047805786, 0.05873119831085205]], [[286, 265, 123, 189, 256, 290], [0.0, 0.08546054363250732, 0.09737896919250488, 0.10208237171173096, 0.12074887752532959, 0.12594324350357056]], [[287, 242, 3, 10, 33, 60], [5.960464477539063e-08, 0.04186451435089111, 0.07488304376602173, 0.07999897003173828, 0.0821605920791626, 0.09939980506896973]], [[288, 331, 303, 19, 363, 373], [0.0, 0.027839303016662598, 0.03927206993103027, 0.03999197483062744, 0.04050922393798828, 0.04128873348236084]], [[289, 347, 304, 114, 13, 213], [0.0, 0.045119643211364746, 0.05490243434906006, 0.060366034507751465, 0.06183600425720215, 0.06365859508514404]], [[290, 175, 150, 206, 124, 88], [0.0, 0.09117835760116577, 0.10829430818557739, 0.10947161912918091, 0.11036396026611328, 0.11181306838989258]], [[291, 104, 121, 279, 244, 88], [0.0, 0.09056371450424194, 0.09485673904418945, 0.09834009408950806, 0.1174042820930481, 0.11781883239746094]], [[292, 386, 142, 305, 99, 384], [0.0, 0.053168296813964844, 0.06256484985351562, 0.06650185585021973, 0.06907474994659424, 0.07013511657714844]], [[293, 330, 243, 389, 324, 75], [1.1920928955078125e-07, 0.07350432872772217, 0.10548943281173706, 0.10855245590209961, 0.11153793334960938, 0.11170679330825806]], [[294, 180, 362, 367, 98, 191], [5.960464477539063e-08, 0.23050177097320557, 0.24189400672912598, 0.2475716471672058, 0.2652132511138916, 0.27455025911331177]], [[295, 88, 203, 199, 104, 63], [0.0, 0.044881224632263184, 0.0644034743309021, 0.08035171031951904, 0.0836673378944397, 0.08949708938598633]], [[296, 212, 219, 95, 321, 101], [1.1920928955078125e-07, 0.08799147605895996, 0.09373527765274048, 0.11066526174545288, 0.11206430196762085, 0.11286532878875732]], [[297, 215, 315, 173, 264, 388], [0.0, 0.03982400894165039, 0.04051452875137329, 0.044446706771850586, 0.04460024833679199, 0.0458376407623291]], [[298, 91, 165, 202, 163, 46], [0.0, 0.0764613151550293, 0.08623778820037842, 0.08670163154602051, 0.08697837591171265, 0.08934038877487183]], [[299, 219, 321, 8, 91, 221], [0.0, 0.0465923547744751, 0.051371097564697266, 0.056941986083984375, 0.06075394153594971, 0.06125450134277344]], [[300, 243, 135, 254, 87, 5], [1.1920928955078125e-07, 0.10621058940887451, 0.1088402271270752, 0.11114859580993652, 0.11517488956451416, 0.116111159324646]], [[301, 313, 299, 47, 345, 8], [1.7881393432617188e-07, 0.06776642799377441, 0.07012295722961426, 0.07044178247451782, 0.07238805294036865, 0.07264143228530884]], [[302, 209, 266, 245, 56, 200], [2.384185791015625e-07, 0.08683079481124878, 0.08722388744354248, 0.0990985631942749, 0.10015982389450073, 0.10617649555206299]], [[303, 288, 19, 351, 339, 86], [0.0, 0.03927206993103027, 0.04062122106552124, 0.041650235652923584, 0.042568981647491455, 0.046943604946136475]], [[304, 13, 374, 231, 347, 289], [0.0, 0.04616272449493408, 0.047936320304870605, 0.04843538999557495, 0.05087113380432129, 0.05490243434906006]], [[305, 57, 386, 100, 17, 292], [0.0, 0.05601775646209717, 0.05782437324523926, 0.061225295066833496, 0.06582891941070557, 0.06650185585021973]], [[306, 50, 171, 99, 386, 161], [0.0, 0.09126144647598267, 0.11265754699707031, 0.11875498294830322, 0.12428486347198486, 0.12440824508666992]], [[307, 75, 117, 91, 190, 46], [0.0, 0.049049556255340576, 0.049109578132629395, 0.05569726228713989, 0.059270381927490234, 0.05997884273529053]], [[308, 335, 1, 182, 248, 264], [0.0, 0.05675303936004639, 0.05873662233352661, 0.06108289957046509, 0.07594621181488037, 0.08117151260375977]], [[309, 76, 52, 166, 375, 168], [0.0, 0.07609665393829346, 0.08114540576934814, 0.08554476499557495, 0.08778238296508789, 0.08961915969848633]], [[310, 262, 150, 62, 144, 349], [5.960464477539063e-08, 0.10105150938034058, 0.120627760887146, 0.12234485149383545, 0.12921500205993652, 0.1293470859527588]], [[311, 166, 168, 139, 155, 13], [0.0, 0.05621558427810669, 0.05893987417221069, 0.062281012535095215, 0.06479793787002563, 0.0690237283706665]], [[312, 269, 288, 182, 322, 206], [0.0, 0.04907113313674927, 0.06162261962890625, 0.06232297420501709, 0.06593751907348633, 0.06698447465896606]], [[313, 151, 8, 46, 117, 372], [1.1920928955078125e-07, 0.042961299419403076, 0.04610252380371094, 0.04911649227142334, 0.051548779010772705, 0.05292773246765137]], [[314, 96, 15, 66, 45, 7], [0.0, 0.10416150093078613, 0.10695964097976685, 0.11011087894439697, 0.11841833591461182, 0.11849546432495117]], [[315, 152, 215, 297, 19, 346], [0.0, 0.025939881801605225, 0.03874093294143677, 0.04051452875137329, 0.046284496784210205, 0.04641503095626831]], [[316, 187, 355, 181, 21, 310], [0.0, 0.1203203797340393, 0.13318681716918945, 0.1412954330444336, 0.1428539752960205, 0.15394890308380127]], [[317, 163, 246, 284, 134, 342], [0.0, 0.07104361057281494, 0.07464897632598877, 0.07738995552062988, 0.08496689796447754, 0.08564084768295288]], [[318, 177, 200, 29, 118, 388], [1.1920928955078125e-07, 0.07598745822906494, 0.08652377128601074, 0.09463256597518921, 0.10592859983444214, 0.10957849025726318]], [[319, 351, 331, 268, 260, 19], [0.0, 0.057172298431396484, 0.06419873237609863, 0.06447470188140869, 0.06787759065628052, 0.0681147575378418]], [[320, 303, 339, 283, 276, 38], [5.960464477539063e-08, 0.07463830709457397, 0.07960259914398193, 0.08238983154296875, 0.0833888053894043, 0.08408427238464355]], [[321, 8, 372, 224, 95, 253], [0.0, 0.03046882152557373, 0.04243266582489014, 0.04515945911407471, 0.04649758338928223, 0.047764480113983154]], [[322, 312, 329, 182, 137, 25], [0.0, 0.06593751907348633, 0.07553726434707642, 0.07633191347122192, 0.0781780481338501, 0.07945442199707031]], [[323, 347, 213, 299, 221, 304], [0.0, 0.06761026382446289, 0.06875884532928467, 0.07075738906860352, 0.07147520780563354, 0.07245767116546631]], [[324, 176, 164, 225, 389, 236], [0.0, 0.08187150955200195, 0.0875503420829773, 0.09000933170318604, 0.09170740842819214, 0.09402036666870117]], [[325, 334, 42, 26, 256, 153], [0.0, 0.19073832035064697, 0.20836347341537476, 0.257876455783844, 0.2724803686141968, 0.27290797233581543]], [[326, 264, 388, 297, 341, 248], [0.0, 0.04307854175567627, 0.044568419456481934, 0.045932233333587646, 0.05069541931152344, 0.05250287055969238]], [[327, 112, 105, 378, 12, 154], [0.0, 0.05435752868652344, 0.05435752868652344, 0.0715188980102539, 0.08104133605957031, 0.08265650272369385]], [[328, 108, 249, 296, 138, 213], [0.0, 0.08239531517028809, 0.1142808198928833, 0.1560470461845398, 0.1578301191329956, 0.16361010074615479]], [[329, 137, 152, 315, 215, 233], [0.0, 0.04429143667221069, 0.04730415344238281, 0.05535697937011719, 0.05952489376068115, 0.06006050109863281]], [[330, 293, 389, 217, 86, 164], [5.960464477539063e-08, 0.07350432872772217, 0.0969545841217041, 0.0982547402381897, 0.09884679317474365, 0.09957504272460938]], [[331, 288, 373, 363, 69, 303], [0.0, 0.027839303016662598, 0.034401535987854004, 0.038819313049316406, 0.04561668634414673, 0.0475468635559082]], [[332, 22, 116, 382, 365, 384], [5.960464477539063e-08, 0.08530533313751221, 0.08790826797485352, 0.09442883729934692, 0.10882997512817383, 0.11858075857162476]], [[333, 116, 332, 102, 365, 120], [0.0, 0.06863021850585938, 0.12136560678482056, 0.1216202974319458, 0.1228380799293518, 0.14308273792266846]], [[334, 184, 144, 127, 325, 150], [5.960464477539063e-08, 0.15888965129852295, 0.16191941499710083, 0.1877266764640808, 0.19073832035064697, 0.21324670314788818]], [[335, 308, 1, 131, 177, 273], [5.960464477539063e-08, 0.05675303936004639, 0.06430906057357788, 0.074149489402771, 0.09206676483154297, 0.09777271747589111]], [[336, 69, 77, 331, 373, 351], [1.1920928955078125e-07, 0.04863053560256958, 0.05646979808807373, 0.06160604953765869, 0.06212282180786133, 0.06423449516296387]], [[337, 168, 76, 210, 166, 139], [0.0, 0.06913262605667114, 0.07047748565673828, 0.0716477632522583, 0.07197761535644531, 0.07750082015991211]], [[338, 283, 206, 130, 247, 274], [0.0, 0.0997501015663147, 0.1050717830657959, 0.10827946662902832, 0.10839003324508667, 0.11244672536849976]], [[339, 233, 303, 268, 19, 288], [0.0, 0.04107910394668579, 0.042568981647491455, 0.04681771993637085, 0.05602717399597168, 0.06087464094161987]], [[340, 125, 78, 197, 388, 262], [0.0, 0.0762563943862915, 0.0786779522895813, 0.08934658765792847, 0.09838312864303589, 0.0997617244720459]], [[341, 326, 349, 36, 264, 388], [5.960464477539063e-08, 0.05069541931152344, 0.05247986316680908, 0.055358171463012695, 0.05793386697769165, 0.06310844421386719]], [[342, 282, 246, 132, 188, 163], [5.960464477539063e-08, 0.05993133783340454, 0.06389498710632324, 0.06911766529083252, 0.06911766529083252, 0.07010316848754883]], [[343, 229, 96, 196, 378, 71], [0.0, 0.058039844036102295, 0.06213557720184326, 0.06473851203918457, 0.07081723213195801, 0.07203304767608643]], [[344, 359, 95, 211, 49, 285], [0.0, 0.05843091011047363, 0.08642023801803589, 0.0870211124420166, 0.08802950382232666, 0.0897831916809082]], [[345, 136, 313, 132, 188, 8], [0.0, 0.05446004867553711, 0.05659574270248413, 0.057068049907684326, 0.057068049907684326, 0.05854952335357666]], [[387, 346, 315, 152, 264, 297], [0.0, 0.0, 0.04641503095626831, 0.0478900671005249, 0.04920417070388794, 0.05038332939147949]], [[347, 289, 304, 281, 20, 374], [1.1920928955078125e-07, 0.045119643211364746, 0.05087113380432129, 0.054061710834503174, 0.05472034215927124, 0.06261008977890015]], [[348, 60, 67, 178, 55, 10], [0.0, 0.05217677354812622, 0.05234450101852417, 0.06321114301681519, 0.06871509552001953, 0.0742417573928833]], [[349, 341, 326, 388, 173, 264], [0.0, 0.05247986316680908, 0.056552886962890625, 0.058469414710998535, 0.0611722469329834, 0.06245839595794678]], [[350, 224, 253, 216, 372, 321], [0.0, 0.05838167667388916, 0.06641924381256104, 0.06684821844100952, 0.0706171989440918, 0.0720822811126709]], [[351, 157, 303, 140, 172, 288], [0.0, 0.04097670316696167, 0.041650235652923584, 0.050107717514038086, 0.050922274589538574, 0.05100816488265991]], [[352, 178, 67, 60, 10, 348], [0.0, 0.048963844776153564, 0.058455705642700195, 0.05942666530609131, 0.07143038511276245, 0.07425081729888916]], [[353, 8, 383, 321, 143, 151], [1.1920928955078125e-07, 0.0534975528717041, 0.06119650602340698, 0.061949968338012695, 0.06536757946014404, 0.06628632545471191]], [[354, 276, 127, 38, 206, 267], [0.0, 0.0759652853012085, 0.09810268878936768, 0.10548591613769531, 0.10928034782409668, 0.11062818765640259]], [[355, 125, 29, 318, 200, 262], [0.0, 0.09951424598693848, 0.10733246803283691, 0.1129341721534729, 0.1209675669670105, 0.12102353572845459]], [[356, 168, 128, 311, 374, 166], [0.0, 0.10542583465576172, 0.11813569068908691, 0.11967229843139648, 0.12026029825210571, 0.12747657299041748]], [[357, 219, 359, 353, 347, 350], [0.0, 0.06830102205276489, 0.08395975828170776, 0.08658337593078613, 0.09591937065124512, 0.0964195728302002]], [[358, 280, 315, 254, 35, 340], [0.0, 0.08801501989364624, 0.10729539394378662, 0.11087137460708618, 0.11285018920898438, 0.12003719806671143]], [[359, 285, 344, 304, 49, 95], [0.0, 0.05248570442199707, 0.05843091011047363, 0.058469533920288086, 0.06213235855102539, 0.06266748905181885]], [[360, 20, 347, 374, 231, 353], [0.0, 0.061170876026153564, 0.0643267035484314, 0.06894165277481079, 0.08408069610595703, 0.08515703678131104]], [[361, 133, 284, 323, 359, 379], [0.0, 0.07708626985549927, 0.07780963182449341, 0.08486324548721313, 0.08513146638870239, 0.0874943733215332]], [[362, 98, 109, 369, 72, 348], [1.1920928955078125e-07, 0.15389442443847656, 0.1991451382637024, 0.2075546383857727, 0.2129327654838562, 0.22282814979553223]], [[363, 331, 288, 260, 172, 69], [0.0, 0.038819313049316406, 0.04050922393798828, 0.041184306144714355, 0.04405093193054199, 0.044667959213256836]], [[364, 187, 236, 180, 316, 151], [0.0, 0.13787120580673218, 0.14192986488342285, 0.1472560167312622, 0.16062122583389282, 0.1642172932624817]], [[365, 6, 71, 171, 384, 12], [0.0, 0.09160000085830688, 0.09196507930755615, 0.10402095317840576, 0.10615408420562744, 0.10824704170227051]], [[366, 95, 321, 224, 285, 253], [0.0, 0.04673123359680176, 0.049785494804382324, 0.060256123542785645, 0.06336390972137451, 0.06398439407348633]], [[367, 191, 383, 219, 353, 347], [0.0, 0.08043456077575684, 0.11865586042404175, 0.13335072994232178, 0.13763201236724854, 0.1380765438079834]], [[368, 361, 379, 20, 347, 289], [0.0, 0.08775055408477783, 0.08788299560546875, 0.09014463424682617, 0.09836161136627197, 0.09879195690155029]], [[369, 281, 13, 82, 231, 139], [1.1920928955078125e-07, 0.10062682628631592, 0.11288124322891235, 0.11928069591522217, 0.12688541412353516, 0.12852996587753296]], [[370, 221, 323, 228, 128, 220], [0.0, 0.10689890384674072, 0.11113089323043823, 0.11400377750396729, 0.12057745456695557, 0.13412034511566162]], [[371, 331, 373, 288, 97, 363], [0.0, 0.07231360673904419, 0.07725876569747925, 0.07972174882888794, 0.08429688215255737, 0.08433985710144043]], [[372, 321, 313, 8, 151, 136], [0.0, 0.04243266582489014, 0.05292773246765137, 0.05308419466018677, 0.053322792053222656, 0.05532360076904297]], [[373, 331, 288, 363, 69, 303], [0.0, 0.034401535987854004, 0.04128873348236084, 0.04657423496246338, 0.052274465560913086, 0.0582505464553833]], [[374, 231, 304, 128, 281, 13], [0.0, 0.04459434747695923, 0.047936320304870605, 0.0487520694732666, 0.058662474155426025, 0.06017768383026123]], [[375, 32, 76, 51, 210, 84], [2.384185791015625e-07, 0.06378889083862305, 0.0643799901008606, 0.07914280891418457, 0.08125960826873779, 0.08215689659118652]], [[376, 229, 92, 45, 154, 378], [0.0, 0.07085955142974854, 0.07370626926422119, 0.07904994487762451, 0.08417898416519165, 0.08616083860397339]], [[377, 8, 163, 202, 151, 247], [1.1920928955078125e-07, 0.05127918720245361, 0.05167233943939209, 0.05661022663116455, 0.05780613422393799, 0.0677417516708374]], [[378, 154, 45, 229, 96, 196], [0.0, 0.041099607944488525, 0.04539757966995239, 0.04581707715988159, 0.050690293312072754, 0.054442763328552246]], [[379, 304, 213, 95, 49, 359], [0.0, 0.057021915912628174, 0.05839955806732178, 0.06133770942687988, 0.06211531162261963, 0.06681966781616211]], [[380, 262, 100, 349, 251, 257], [0.0, 0.07526886463165283, 0.08793282508850098, 0.09064650535583496, 0.09894859790802002, 0.1000814437866211]], [[381, 127, 118, 355, 354, 267], [0.0, 0.07926666736602783, 0.11477428674697876, 0.12137174606323242, 0.1270795464515686, 0.14360886812210083]], [[382, 22, 332, 116, 380, 258], [0.0, 0.07650792598724365, 0.09442883729934692, 0.10010802745819092, 0.11742997169494629, 0.12010425329208374]], [[383, 8, 353, 151, 114, 321], [0.0, 0.05677920579910278, 0.06119650602340698, 0.06440353393554688, 0.07102227210998535, 0.07439041137695312]], [[384, 386, 110, 292, 305, 100], [0.0, 0.0470728874206543, 0.06573820114135742, 0.07013511657714844, 0.07468140125274658, 0.07850885391235352]], [[385, 85, 150, 240, 124, 263], [0.0, 0.058542847633361816, 0.07759344577789307, 0.08080339431762695, 0.08621573448181152, 0.09627079963684082]], [[386, 384, 292, 100, 305, 232], [1.1920928955078125e-07, 0.0470728874206543, 0.053168296813964844, 0.05370521545410156, 0.05782437324523926, 0.07286757230758667]], [[387, 346, 315, 152, 264, 297], [0.0, 0.0, 0.04641503095626831, 0.0478900671005249, 0.04920417070388794, 0.05038332939147949]], [[388, 326, 297, 248, 215, 152], [1.1920928955078125e-07, 0.044568419456481934, 0.0458376407623291, 0.05191069841384888, 0.05220592021942139, 0.05337119102478027]], [[389, 164, 193, 163, 247, 176], [0.0, 0.04684293270111084, 0.05505537986755371, 0.06487202644348145, 0.06634032726287842, 0.06893455982208252]]]
#material
#arr = [[[0, 85, 122, 123, 144, 136], [1.1102230246251565e-16, 0.0037238606918820194, 0.004294924775404496, 0.005215244518371853, 0.005322740266486936, 0.005507408310754691]], [[1, 74, 77, 69, 60, 3], [0.0, 0.0073575493494688615, 0.0077341369321182185, 0.015151470215409413, 0.016733581363366334, 0.021210746526266422]], [[2, 39, 43, 70, 96, 17], [0.0, 0.010841308112169323, 0.025475308161440946, 0.0281763981486729, 0.0285238741477315, 0.028539607047489812]], [[3, 74, 1, 6, 5, 46], [0.0, 0.021040963151627512, 0.021210746526266422, 0.0225468457810184, 0.02287331575184126, 0.02287331575184126]], [[4, 33, 18, 22, 10, 346], [0.0, 0.0033192913288883075, 0.006120627551838842, 0.009936223760966256, 0.011254676838570288, 0.016880942705457147]], [[5, 46, 8, 19, 301, 167], [2.220446049250313e-16, 2.220446049250313e-16, 0.010118003407665555, 0.015249068279530431, 0.01533388335487007, 0.016083733044451876]], [[6, 24, 126, 60, 123, 122], [1.1102230246251565e-16, 0.006287295562535489, 0.00638176572540361, 0.006579436915938097, 0.0072415657907430875, 0.00746513230896273]], [[7, 338, 140, 278, 286, 166], [0.0, 0.005027845830225641, 0.006004384229012616, 0.006167175994712393, 0.00803866192194469, 0.008991940160625989]], [[8, 301, 107, 177, 284, 140], [1.1102230246251565e-16, 0.0019881683513983672, 0.0029490446148027205, 0.004427715009876043, 0.004502607032066064, 0.005436634408391261]], [[9, 31, 8, 301, 338, 284], [0.0, 0.021945114750374084, 0.030614609133159165, 0.030869441946096643, 0.03370732402322563, 0.03390676962441275]], [[10, 22, 4, 23, 206, 33], [0.0, 0.007756237597196902, 0.011254676838570288, 0.0135985647833059, 0.013962126707013245, 0.014593972341047423]], [[11, 112, 110, 52, 79, 259], [1.1102230246251565e-16, 0.1169557329885268, 0.15702822548921413, 0.20735139192108587, 0.21387616177258462, 0.22511327657011138]], [[12, 85, 13, 86, 67, 144], [1.1102230246251565e-16, 0.0026564267672556374, 0.002796746807568362, 0.0034922665179563106, 0.00392824529171365, 0.004060698885230529]], [[13, 40, 67, 103, 136, 17], [0.0, 0.001628668813055012, 0.0016771064347457232, 0.0018002117700844922, 0.0022126578179212375, 0.0022316322152858836]], [[14, 27, 382, 78, 103, 165], [0.0, 0.0021345059590256454, 0.0021559039047259754, 0.0022505762990918665, 0.0023356861427651365, 0.002799554595387499]], [[15, 24, 40, 103, 136, 159], [1.1102230246251565e-16, 0.0020066284169920623, 0.003224013970659634, 0.003942858106775082, 0.0040172553510891, 0.004181435143706502]], [[16, 91, 154, 161, 141, 243], [0.0, 0.009600963588952682, 0.00967592363295966, 0.00967592363295966, 0.00990853361287658, 0.010070696633053822]], [[17, 345, 197, 159, 365, 383], [0.0, 0.00046578140214748043, 0.0004958962066315964, 0.0005048999269711141, 0.0005349237575977828, 0.0005372868253664675]], [[18, 4, 33, 22, 346, 10], [0.0, 0.006120627551838842, 0.009131317851275078, 0.014570511489963911, 0.01727132642912954, 0.018941197115547204]], [[19, 122, 0, 85, 144, 25], [0.0, 0.005299376313756432, 0.005524129401898392, 0.005762163080632932, 0.005909150051006895, 0.006083543956251214]], [[20, 355, 205, 324, 256, 230], [0.0, 0.003829583477203302, 0.0041079604820467575, 0.004251932958105775, 0.004611255346264609, 0.0047057663494373125]], [[21, 84, 44, 174, 63, 97], [2.220446049250313e-16, 0.004335837981277013, 0.007865758277550094, 0.008508184441014865, 0.008817618369016178, 0.010477468629888964]], [[22, 10, 4, 33, 23, 24], [0.0, 0.007756237597196902, 0.009936223760966256, 0.012109077090557863, 0.012798029381898446, 0.013677480260457453]], [[23, 96, 239, 70, 206, 24], [0.0, 0.004600398234978487, 0.004898370569102917, 0.005103195137798444, 0.005623005100530487, 0.006300539958736584]], [[24, 15, 96, 70, 40, 136], [1.1102230246251565e-16, 0.0020066284169920623, 0.0037024025695676643, 0.005862796698315242, 0.005940779857792844, 0.006148425053355555]], [[25, 12, 19, 0, 85, 13], [0.0, 0.00516345759923853, 0.006083543956251214, 0.006948309287092225, 0.00885326751233706, 0.00888859861332758]], [[26, 28, 224, 149, 208, 214], [0.0, 0.005872748136883765, 0.00877598246853517, 0.008959470550087167, 0.009041787422716996, 0.009113315704685432]], [[27, 382, 78, 210, 103, 30], [0.0, 0.001248884690200902, 0.0013939537409488612, 0.0015188692815992777, 0.001663398502915081, 0.0016648573381150555]], [[28, 13, 67, 150, 17, 103], [0.0, 0.0026018708635705545, 0.0031480734694369072, 0.0034496286354025463, 0.0035096718336675714, 0.0037652215061911853]], [[29, 159, 365, 187, 223, 17], [0.0, 0.00047914703195872654, 0.0005252408983796863, 0.0005439070588952877, 0.0006735080543751604, 0.0006847658531035083]], [[30, 27, 78, 382, 210, 387], [0.0, 0.0016648573381150555, 0.002885280911467336, 0.002943710590773474, 0.0033850204237322323, 0.0035160928518961354]], [[31, 218, 378, 149, 304, 214], [0.0, 0.0077052931572682, 0.007910313306282113, 0.008738790304471, 0.008980016038800054, 0.008980111547663316]], [[32, 25, 26, 12, 59, 28], [0.0, 0.03972285077913129, 0.04349412739908931, 0.04526486645829997, 0.04583135276227712, 0.04800293153152113]], [[33, 4, 18, 22, 10, 346], [0.0, 0.0033192913288883075, 0.009131317851275078, 0.012109077090557863, 0.014593972341047423, 0.019298134414060808]], [[34, 386, 206, 239, 344, 208], [1.1102230246251565e-16, 0.005637919689715054, 0.007129218034151896, 0.007160800992629501, 0.007821069497189748, 0.008113557690435758]], [[35, 65, 300, 213, 357, 41], [0.0, 0.18086276819937264, 0.23389536151411505, 0.25573979394351687, 0.2917025183979858, 0.32260570552651435]], [[36, 312, 30, 45, 48, 337], [1.1102230246251565e-16, 0.02545546596297088, 0.028895961173812656, 0.028911779838673435, 0.030245312800025514, 0.031474130095031194]], [[37, 385, 301, 8, 284, 4], [2.220446049250313e-16, 0.018379390024499065, 0.018431871752247142, 0.021215928708885556, 0.022359858873097105, 0.023698842680160537]], [[38, 195, 301, 188, 352, 140], [0.0, 0.008250648553632667, 0.010646331991309599, 0.011571771979145717, 0.011924291434506684, 0.011927419755140778]], [[39, 152, 383, 136, 197, 345], [0.0, 0.0068021398722407644, 0.006906649277202637, 0.00691288677787838, 0.0069301383118930415, 0.006939284781993904]], [[40, 136, 159, 85, 103, 13], [1.1102230246251565e-16, 0.0003942700970840374, 0.00137706809168181, 0.0014327776873594988, 0.0014878185951668899, 0.001628668813055012]], [[41, 357, 71, 229, 300, 141], [1.1102230246251565e-16, 0.00848889869992353, 0.009642285673555073, 0.011792975016709617, 0.012317220195299683, 0.01574160032672145]], [[42, 233, 186, 287, 258, 276], [0.0, 0.0018464038143776174, 0.001892497674082505, 0.0019426204203979447, 0.0019629106889923476, 0.0020858002893366923]], [[43, 107, 177, 214, 378, 8], [0.0, 0.007294477026396962, 0.007494725937956304, 0.008259594041565177, 0.008924674101308927, 0.008983633445778239]], [[44, 14, 30, 84, 146, 27], [2.220446049250313e-16, 0.005003862649008317, 0.00602163687327506, 0.006370296456636115, 0.007090666774960397, 0.007266527613824958]], [[45, 36, 312, 8, 301, 19], [0.0, 0.028911779838673435, 0.0385179640990817, 0.047603598928426916, 0.049876774013171477, 0.050105949343614786]], [[5, 46, 8, 19, 301, 167], [2.220446049250313e-16, 2.220446049250313e-16, 0.010118003407665555, 0.015249068279530431, 0.01533388335487007, 0.016083733044451876]], [[47, 349, 96, 70, 159, 17], [0.0, 0.013931671536282275, 0.015281454037296305, 0.015350979125838049, 0.01605747576679073, 0.016310653031179734]], [[48, 68, 30, 114, 91, 27], [0.0, 0.006095846884599632, 0.006103271185819881, 0.006310587593590045, 0.0065121405174408675, 0.006895925975322403]], [[49, 363, 151, 326, 75, 197], [0.0, 0.0001159059298493359, 0.00017939318238591184, 0.00024416997142173713, 0.00031423437935240717, 0.0005274347425265891]], [[50, 193, 303, 345, 275, 211], [0.0, 0.0007616141352454475, 0.0009726599452576368, 0.0011242155856063807, 0.0011499811846441554, 0.001159366818682117]], [[51, 121, 98, 73, 179, 142], [0.0, 0.00022313508358129397, 0.012070981722101415, 0.02078785233783098, 0.027640920522143952, 0.02892292104508254]], [[52, 81, 125, 101, 93, 200], [0.0, 0.007958992975723667, 0.011556187435676768, 0.015159710381531077, 0.02686207495083015, 0.02778780637870082]], [[53, 117, 72, 113, 127, 119], [1.1102230246251565e-16, 0.0003568821734355465, 0.0006985717087625298, 0.0007724764067341683, 0.0011017440343140672, 0.0011411729251742386]], [[54, 93, 220, 355, 203, 95], [0.0, 0.003083155574060359, 0.004280233305062109, 0.006221106141180099, 0.007256307486707914, 0.0077465936444742756]], [[55, 128, 134, 57, 325, 207], [0.0, 0.13591683865884763, 0.14845111367433805, 0.25240026401246396, 0.28255502910849994, 0.32962030757418814]], [[56, 270, 151, 49, 327, 254], [0.0, 0.0060288312938171496, 0.006558781343816822, 0.006916613772153468, 0.006926558754208556, 0.007530066807400648]], [[57, 232, 202, 174, 325, 21], [0.0, 0.08066919606790968, 0.08237513673286556, 0.08280386031200448, 0.08287256376853147, 0.08779095917846069]], [[58, 108, 64, 381, 383, 152], [1.1102230246251565e-16, 0.00014513077286781861, 0.0003121620552027915, 0.0008667097167774918, 0.0009283864139035813, 0.0009386108517990266]], [[59, 67, 150, 332, 115, 28], [1.1102230246251565e-16, 0.011804586918769289, 0.011872733201583219, 0.011968504451528972, 0.011982924478518453, 0.012059655607350783]], [[60, 122, 123, 135, 74, 85], [0.0, 0.0017671987259958444, 0.0021416771494204845, 0.0027894661983975944, 0.0028961074456008706, 0.0043256683451553535]], [[61, 56, 137, 222, 380, 333], [0.0, 0.012341653919201945, 0.014401967012609984, 0.014605002938478884, 0.01627833163371517, 0.018305454083280548]], [[62, 143, 371, 29, 184, 75], [0.0, 0.007368105066671515, 0.00821927507972986, 0.008325907753650719, 0.008356613059053442, 0.008398491249730244]], [[63, 122, 85, 84, 123, 40], [0.0, 0.002952467744306353, 0.0035715138202356833, 0.0038404848670968716, 0.0046119649495894866, 0.0048500597807483725]], [[64, 58, 108, 17, 345, 152], [1.1102230246251565e-16, 0.0003121620552027915, 0.00032914286960228356, 0.0006783097312040853, 0.0007741794927148549, 0.0008053475666894849]], [[65, 124, 300, 357, 213, 71], [0.0, 0.035965403918702066, 0.041000082971106244, 0.05082219009287858, 0.05389411249847342, 0.06672028510929995]], [[66, 124, 65, 364, 105, 328], [0.0, 0.44298917036949403, 0.47384462654525794, 0.5260616282222064, 0.5262334375067994, 0.535503644583266]], [[67, 76, 192, 17, 326, 75], [1.1102230246251565e-16, 0.0011106385411518982, 0.0012131127394554575, 0.0012506314283680098, 0.0012508007423748246, 0.001269260406278061]], [[68, 91, 168, 191, 229, 387], [0.0, 0.002280463453672721, 0.0024751440062453778, 0.0028624195395781094, 0.0030698439405743017, 0.0032811027822249317]], [[69, 74, 60, 6, 135, 126], [0.0, 0.007317921729402155, 0.008905668782471676, 0.011142529603215712, 0.012033122362548054, 0.012188016820680492]], [[70, 64, 17, 159, 108, 343], [1.1102230246251565e-16, 0.0010467274524441628, 0.001063043624706772, 0.0016906462444878922, 0.0017232321423945596, 0.0017922547373337983]], [[71, 41, 229, 141, 357, 311], [0.0, 0.009642285673555073, 0.012459092275087458, 0.013290168478813813, 0.013860351365951873, 0.01649168548091151]], [[72, 117, 381, 53, 58, 113], [0.0, 0.00040960674386403273, 0.0005584996856728974, 0.0006985717087625298, 0.0010287537979005723, 0.0010957241326071676]], [[73, 142, 98, 179, 102, 309], [0.0, 0.0012211068314161855, 0.00408547888847266, 0.005067673410673379, 0.006990767594821201, 0.0071241592252616615]], [[74, 60, 123, 135, 122, 69], [0.0, 0.0028961074456008706, 0.005287196723512522, 0.005864806809103951, 0.006879392821390828, 0.007317921729402155]], [[75, 197, 383, 152, 326, 345], [1.1102230246251565e-16, 0.00023061030529847315, 0.000236026283136348, 0.0002759281596673713, 0.000285913718182762, 0.00028725126453332805]], [[76, 383, 267, 152, 75, 111], [0.0, 0.00034233021372398476, 0.0003955220557000372, 0.0004091973325462961, 0.00041465010423780146, 0.0004466964996349132]], [[77, 1, 74, 69, 3, 126], [0.0, 0.0077341369321182185, 0.022659126396609497, 0.030719570279379882, 0.033195381619972375, 0.03862087063759767]], [[78, 289, 160, 382, 210, 387], [0.0, 0.0007908559482855404, 0.0008092081514788907, 0.0008996715597339167, 0.0011822210008064493, 0.0011835442728354018]], [[79, 200, 112, 110, 32, 213], [0.0, 0.12376660908341608, 0.1252612280772556, 0.13662865632314414, 0.14923433733066194, 0.15276648239169388]], [[80, 290, 211, 308, 158, 343], [1.1102230246251565e-16, 0.000667569908151866, 0.0007658148814387866, 0.0007728234609633011, 0.0007773818202517768, 0.000778398665883695]], [[81, 125, 101, 52, 93, 220], [2.220446049250313e-16, 0.000416581495789603, 0.0016292680318785724, 0.007958992975723667, 0.00960414599810766, 0.010220463007135083]], [[82, 142, 73, 102, 309, 179], [0.0, 0.003860720170444143, 0.007304686141754058, 0.010385414390376435, 0.010573190000497501, 0.010960464670702885]], [[83, 78, 138, 27, 382, 289], [0.0, 0.002519433084226308, 0.002779769544956512, 0.0029163768654550948, 0.003558062915882343, 0.003589442018740785]], [[84, 63, 21, 14, 44, 118], [2.220446049250313e-16, 0.0038404848670968716, 0.004335837981277013, 0.006168203630150915, 0.006370296456636115, 0.007749099385754632]], [[85, 122, 144, 40, 136, 123], [0.0, 0.0009448431254608369, 0.0013580767781296021, 0.0014327776873594988, 0.0016635845267508609, 0.002124972545903936]], [[86, 40, 67, 13, 136, 108], [0.0, 0.0018483343671610308, 0.0021633869316598497, 0.002338727753223191, 0.0024068104279109104, 0.00241791842700001]], [[87, 292, 198, 205, 90, 257], [0.0, 0.000527929466826893, 0.0011539102769834164, 0.0012452821188686514, 0.001401579715737289, 0.0017315949482541448]], [[88, 95, 355, 87, 324, 220], [0.0, 0.0016729980584541115, 0.003491239691174708, 0.004549373615446606, 0.0045820182468577775, 0.004633552413491504]], [[89, 386, 109, 116, 208, 50], [0.0, 0.00660901994834151, 0.006822541760495349, 0.007863739288424765, 0.008339040060992176, 0.008426154419415632]], [[90, 257, 340, 205, 371, 292], [0.0, 0.00010238618628100049, 0.00013322884815170077, 0.0003391978430871134, 0.00035999831929900417, 0.0005189484206833406]], [[91, 243, 154, 161, 114, 194], [0.0, 0.0005140144794650858, 0.0013693768214123603, 0.0013693768214123603, 0.0014891327006293364, 0.002257540167906469]], [[92, 103, 138, 97, 15, 28], [1.1102230246251565e-16, 0.008250978332365655, 0.008924357007266348, 0.010087682912783502, 0.010701860840758304, 0.010960522694728358]], [[93, 220, 54, 101, 200, 95], [0.0, 0.0021459618469691355, 0.003083155574060359, 0.004447984333002419, 0.004959407096901569, 0.005272316826884227]], [[94, 88, 95, 220, 101, 93], [0.0, 0.004879858035156559, 0.0054374737484369495, 0.008078786696265605, 0.008332922510267737, 0.00879603243141347]], [[95, 88, 220, 355, 101, 330], [0.0, 0.0016729980584541115, 0.003462766609841905, 0.003597021192627614, 0.004513033981805692, 0.004652103838092669]], [[96, 70, 17, 64, 159, 150], [1.1102230246251565e-16, 0.0021683854604885866, 0.0028273530352240783, 0.0035051204000368097, 0.0035272998267423805, 0.0035682078621556146]], [[97, 84, 92, 21, 63, 14], [1.1102230246251565e-16, 0.008142376159398945, 0.010087682912783502, 0.010477468629888964, 0.012293650629635389, 0.012665078404529684]], [[98, 73, 142, 179, 51, 82], [2.220446049250313e-16, 0.00408547888847266, 0.0076884978330213904, 0.009838946787198877, 0.012070981722101415, 0.012679895801451568]], [[99, 241, 183, 371, 152, 162], [0.0, 0.0031434085931890676, 0.0033844930794458827, 0.004321355790130155, 0.00448569504825469, 0.0049126132942286516]], [[100, 133, 186, 369, 130, 165], [0.0, 0.008946469960234626, 0.011507469647851876, 0.011807552264003096, 0.012053842224368005, 0.01207368846597412]], [[101, 125, 81, 220, 93, 95], [1.1102230246251565e-16, 0.0005245512634838301, 0.0016292680318785724, 0.004209112544376614, 0.004447984333002419, 0.004513033981805692]], [[102, 127, 113, 117, 53, 72], [1.1102230246251565e-16, 0.00044872427668185555, 0.0006436589679563731, 0.0016611187081552181, 0.001985275161888733, 0.0024478245913499563]], [[103, 308, 343, 290, 210, 40], [0.0, 0.001352206248583676, 0.001355523036356887, 0.0013646016441215547, 0.0014455083116863277, 0.0014878185951668899]], [[104, 367, 272, 169, 303, 151], [0.0, 0.008885745945864332, 0.00898080294121828, 0.00898499191259472, 0.009130374987445622, 0.009474942378946305]], [[105, 328, 228, 381, 72, 108], [1.1102230246251565e-16, 0.0010663597173665718, 0.003144832147769505, 0.0039822146114991686, 0.004495985479032516, 0.0046719479828986055]], [[106, 230, 180, 257, 289, 90], [1.1102230246251565e-16, 0.0007516441120059003, 0.0007711775868768367, 0.0008044240713752648, 0.0008096295783888152, 0.0008563419228598823]], [[107, 214, 378, 149, 177, 372], [0.0, 0.001250974809151817, 0.0013302338649938683, 0.0020937462484178493, 0.0025967141482594602, 0.0028160454137104995]], [[108, 58, 64, 381, 115, 345], [0.0, 0.00014513077286781861, 0.00032914286960228356, 0.0008621619886627352, 0.0010291134800106683, 0.0010381428124790482]], [[109, 116, 386, 50, 211, 332], [0.0, 0.002317611345666548, 0.004068498995587255, 0.004344940409279796, 0.0044211111995486885, 0.004662411281621814]], [[110, 112, 200, 93, 220, 203], [0.0, 0.01134094874183511, 0.01597976345004215, 0.0171844052024418, 0.01947528393383835, 0.021645811714160912]], [[111, 267, 383, 152, 197, 76], [2.220446049250313e-16, 9.598302356539357e-05, 0.000323954233137691, 0.000389280175573381, 0.0004270555128020881, 0.0004466964996349132]], [[112, 110, 200, 52, 93, 81], [2.220446049250313e-16, 0.01134094874183511, 0.026227395318173197, 0.03076188871040053, 0.032590618801843885, 0.034803020424468034]], [[113, 127, 117, 102, 53, 72], [0.0, 8.707468068480662e-05, 0.00047123570725537967, 0.0006436589679563731, 0.0007724764067341683, 0.0010957241326071676]], [[114, 91, 161, 154, 243, 194], [1.1102230246251565e-16, 0.0014891327006293364, 0.0018466096284972533, 0.0018466096284972533, 0.0019288142330742275, 0.0031017409447537947]], [[115, 108, 64, 58, 381, 72], [0.0, 0.0010291134800106683, 0.0010968299688810523, 0.0011353774421003493, 0.001136193343988734, 0.00174200429173188]], [[116, 109, 386, 50, 211, 360], [0.0, 0.002317611345666548, 0.0030911479124187125, 0.00375239394772231, 0.003943930122408457, 0.004087058387835296]], [[117, 53, 72, 113, 127, 381], [0.0, 0.0003568821734355465, 0.00040960674386403273, 0.00047123570725537967, 0.0007824695061386944, 0.0012771411672394262]], [[118, 63, 84, 85, 0, 135], [1.1102230246251565e-16, 0.005582686719911578, 0.007749099385754632, 0.008474182203491054, 0.008714244952033212, 0.00875002450222051]], [[119, 53, 117, 72, 332, 113], [2.220446049250313e-16, 0.0011411729251742386, 0.0015079267496853621, 0.0021720960800827305, 0.002335836384388279, 0.0024184332681810305]], [[120, 198, 95, 88, 87, 291], [0.0, 0.006004719977611761, 0.007379891701950525, 0.007627704738280894, 0.007826999587898453, 0.008471185298407735]], [[121, 51, 98, 73, 179, 142], [0.0, 0.00022313508358129397, 0.015051874543403065, 0.02471771401601386, 0.03214074520093968, 0.03349796680692896]], [[122, 85, 123, 60, 144, 135], [1.1102230246251565e-16, 0.0009448431254608369, 0.0013664003683538928, 0.0017671987259958444, 0.0024134602075353007, 0.002677518929659395]], [[123, 135, 122, 85, 60, 63], [0.0, 0.0010848510110692544, 0.0013664003683538928, 0.002124972545903936, 0.0021416771494204845, 0.0046119649495894866]], [[124, 71, 357, 41, 300, 65], [1.1102230246251565e-16, 0.0221768882373079, 0.02548261092762516, 0.03424410791892041, 0.03534052353166517, 0.035965403918702066]], [[125, 81, 101, 220, 93, 95], [0.0, 0.000416581495789603, 0.0005245512634838301, 0.007249046585563024, 0.00731394609254199, 0.007463084470404002]], [[126, 6, 69, 74, 60, 24], [0.0, 0.00638176572540361, 0.012188016820680492, 0.015258471070562218, 0.016162586052225092, 0.018472689118869567]], [[127, 113, 102, 117, 53, 72], [2.220446049250313e-16, 8.707468068480662e-05, 0.00044872427668185555, 0.0007824695061386944, 0.0011017440343140672, 0.0016086954520029284]], [[128, 134, 325, 41, 207, 202], [0.0, 0.05292520489930996, 0.05971190248393776, 0.08687963008799404, 0.08796621792495452, 0.08890148167530021]], [[129, 121, 51, 98, 73, 179], [1.1102230246251565e-16, 0.061483365586736394, 0.06527530922360347, 0.1100536995806688, 0.13931012131482068, 0.15029817873130424]], [[130, 193, 318, 159, 216, 340], [1.1102230246251565e-16, 0.0013738767349252834, 0.0014811460967160128, 0.001578662619971749, 0.0017408298044642168, 0.0018066245187797758]], [[131, 120, 330, 291, 87, 95], [0.0, 0.03209784288812878, 0.03621985039894515, 0.038338461663052215, 0.04112862620970059, 0.043508744746202144]], [[132, 139, 271, 169, 249, 367], [0.0, 0.04824349164456965, 0.05642920879994939, 0.059308835486676315, 0.05963390556750259, 0.060358158311543564]], [[133, 100, 130, 159, 75, 198], [0.0, 0.008946469960234626, 0.010283980763894807, 0.011512437572280931, 0.01161406468797166, 0.011820420134145748]], [[134, 128, 325, 207, 57, 174], [2.220446049250313e-16, 0.05292520489930996, 0.09094632783954204, 0.10133129552391007, 0.11401867480974426, 0.1178054647967034]], [[135, 123, 122, 60, 85, 12], [0.0, 0.0010848510110692544, 0.002677518929659395, 0.0027894661983975944, 0.003074015304410982, 0.004905765359080827]], [[136, 40, 144, 159, 85, 29], [3.3306690738754696e-16, 0.0003942700970840374, 0.0012638875146058215, 0.0015677304628788358, 0.0016635845267508609, 0.0018722971332065796]], [[137, 380, 222, 330, 56, 61], [1.1102230246251565e-16, 0.002575070488611164, 0.0031078995556110822, 0.009718466063569853, 0.009976404899377012, 0.014401967012609984]], [[138, 305, 83, 103, 290, 27], [0.0, 0.0026603647120353457, 0.002779769544956512, 0.002893297344060075, 0.0030782765691049763, 0.0032649535605212554]], [[139, 67, 169, 40, 159, 17], [0.0, 0.002698467482674771, 0.002822910126398348, 0.0029097781958806745, 0.0030785549437903903, 0.0030849134994165306]], [[140, 338, 301, 8, 107, 7], [0.0, 0.0033011096740055423, 0.003695538078501426, 0.005436634408391261, 0.005942031895545763, 0.006004384229012616]], [[141, 154, 161, 114, 91, 243], [0.0, 0.003019552534335279, 0.003019552534335279, 0.003147042131553035, 0.0032745918019737585, 0.0042206317373918445]], [[142, 73, 102, 82, 127, 113], [0.0, 0.0012211068314161855, 0.0036603494073480514, 0.003860720170444143, 0.004279253174320652, 0.005252646870906985]], [[143, 257, 75, 371, 340, 76], [1.1102230246251565e-16, 0.000946494249837504, 0.0009943172741921913, 0.0010312908797691644, 0.0010486494679800007, 0.001079629645976632]], [[144, 136, 85, 40, 122, 13], [0.0, 0.0012638875146058215, 0.0013580767781296021, 0.0018859591179127833, 0.0024134602075353007, 0.003847649592695346]], [[145, 355, 220, 324, 384, 164], [0.0, 0.005118674086421193, 0.005616337141725936, 0.005830622569803712, 0.006001279149056682, 0.00706827330872295]], [[146, 78, 382, 14, 27, 160], [0.0, 0.003301471313787996, 0.0035182561222404374, 0.003592085454882432, 0.003736370185429716, 0.0038463033565165894]], [[147, 320, 267, 111, 210, 335], [0.0, 0.0006970563680639419, 0.0008825654034071428, 0.0010242475715421806, 0.0011819790959765042, 0.0011949044045158619]], [[148, 156, 157, 171, 172, 170], [2.220446049250313e-16, 0.0003732786618871886, 0.0011067099947099646, 0.0012231347403406367, 0.0015433239818117839, 0.0018362893326234753]], [[149, 339, 304, 342, 171, 269], [0.0, 0.0005660129101057176, 0.0006748835173278067, 0.0009489461610623362, 0.0010315531924606214, 0.001113373356348868]], [[150, 17, 67, 76, 64, 50], [1.1102230246251565e-16, 0.0018602222570947013, 0.001867502694308465, 0.0023118432488090646, 0.002553277769588025, 0.0026322466229832253]], [[151, 49, 363, 326, 75, 176], [1.1102230246251565e-16, 0.00017939318238591184, 0.000281525908466862, 0.0004803868037919212, 0.0005893048729800343, 0.0007388908036517483]], [[152, 383, 197, 345, 267, 75], [0.0, 0.0001657145358371359, 0.0002000319545832907, 0.0002343911064125459, 0.0002533963225223035, 0.0002759281596673713]], [[153, 167, 283, 191, 168, 382], [0.0, 0.0034710162920010834, 0.003760628547777478, 0.00395110116472408, 0.003975109815128608, 0.004388877064993468]], [[154, 161, 243, 91, 114, 194], [0.0, 0.0, 0.0011737724343430234, 0.0013693768214123603, 0.0018466096284972533, 0.002647778794667821]], [[155, 343, 197, 152, 290, 267], [0.0, 0.00038126399842441927, 0.0004612680518488732, 0.0004667801815310124, 0.0004673989967505232, 0.0004709115459535784]], [[156, 148, 172, 171, 157, 170], [2.220446049250313e-16, 0.0003732786618871886, 0.0006557614362764363, 0.0009612895792707743, 0.001695710791263294, 0.002029844499075617]], [[157, 175, 171, 223, 176, 320], [1.1102230246251565e-16, 0.00030990108463158084, 0.0005252324792629492, 0.000978538337566448, 0.001031385588389111, 0.0010501588963244268]], [[158, 190, 314, 335, 290, 343], [0.0, 0.00027308060705788506, 0.00047256054304967154, 0.0005674619560794847, 0.0005868019045454087, 0.0006131768611522537]], [[159, 29, 17, 365, 197, 345], [0.0, 0.00047914703195872654, 0.0005048999269711141, 0.0005460841170635833, 0.0005562133267236202, 0.0005692780323225399]], [[160, 78, 289, 382, 106, 257], [1.1102230246251565e-16, 0.0008092081514788907, 0.0008799127544770746, 0.0016188287663312373, 0.001785591571536238, 0.0017929309740160049]], [[154, 161, 243, 91, 114, 194], [0.0, 0.0, 0.0011737724343430234, 0.0013693768214123603, 0.0018466096284972533, 0.002647778794667821]], [[162, 192, 75, 17, 363, 345], [0.0, 0.0004571357713679669, 0.0006653238621218138, 0.000669062278751742, 0.000677389739435208, 0.0006864546824043583]], [[163, 301, 385, 43, 140, 8], [1.1102230246251565e-16, 0.0158849406355418, 0.016958559476847768, 0.020013599802097826, 0.02020460971756588, 0.020278209802706892]], [[164, 289, 384, 106, 369, 275], [0.0, 0.0024458190702768556, 0.0024774991390799084, 0.0028558915873949653, 0.002937283216039255, 0.0029483658846329863]], [[165, 382, 322, 210, 387, 253], [1.1102230246251565e-16, 0.0003855876260611124, 0.0006731604060146168, 0.0009429544801009548, 0.0010404088322377714, 0.001215305934939348]], [[166, 268, 254, 356, 224, 321], [1.1102230246251565e-16, 0.0028766950191688734, 0.003286753811481913, 0.003391754101234268, 0.0034231620769666904, 0.0034478113348358486]], [[167, 153, 191, 165, 382, 168], [0.0, 0.0034710162920010834, 0.003968352568612388, 0.004362413670900733, 0.004396085395676375, 0.005189055002334353]], [[168, 191, 68, 293, 229, 153], [0.0, 0.002110345212412934, 0.0024751440062453778, 0.0029025210798033774, 0.003718580666450033, 0.003975109815128608]], [[169, 176, 197, 365, 383, 320], [0.0, 0.0003762776976561355, 0.0004167944042302585, 0.0004435594823208877, 0.000468840169084328, 0.00047626798000344195]], [[170, 148, 171, 156, 157, 172], [2.220446049250313e-16, 0.0018362893326234753, 0.0020290505390754277, 0.002029844499075617, 0.0023307514889804315, 0.002473378463448639]], [[171, 157, 250, 252, 172, 156], [1.1102230246251565e-16, 0.0005252324792629492, 0.0007629414865933937, 0.000791524815857092, 0.0008024226077800733, 0.0009612895792707743]], [[172, 156, 171, 149, 148, 252], [0.0, 0.0006557614362764363, 0.0008024226077800733, 0.001404051441427412, 0.0015433239818117839, 0.0017626053082179238]], [[173, 376, 303, 361, 176, 369], [3.3306690738754696e-16, 0.0008830071037226883, 0.0010209915422481064, 0.0013134906872290797, 0.0014729201190288865, 0.001474423091613053]], [[174, 202, 295, 293, 283, 44], [2.220446049250313e-16, 0.005038361309066319, 0.007293401922060405, 0.007482120340655096, 0.007626397241568661, 0.008201321681815532]], [[175, 157, 365, 193, 197, 363], [2.220446049250313e-16, 0.00030990108463158084, 0.0008648963688177025, 0.0008822845937568324, 0.0008990563157659226, 0.0009080904851159755]], [[176, 169, 363, 320, 75, 335], [1.1102230246251565e-16, 0.0003762776976561355, 0.00043740426362781637, 0.000452952029315834, 0.0004675322171682206, 0.00047536003506676305]], [[177, 372, 107, 214, 301, 149], [0.0, 0.0021089798924573966, 0.0025967141482594602, 0.004003143914921958, 0.004092632582947231, 0.0041853950959880315]], [[178, 342, 149, 378, 361, 304], [0.0, 0.0016330676143174738, 0.001648187276976465, 0.0017761533048823441, 0.0018486956613182892, 0.0018661218749664865]], [[179, 73, 142, 98, 309, 102], [1.1102230246251565e-16, 0.005067673410673379, 0.005461524002988716, 0.009838946787198877, 0.010336819312422918, 0.010361677728411234]], [[180, 363, 326, 340, 49, 257], [0.0, 0.0005436195652176457, 0.0006302513736783366, 0.0007179477116520117, 0.0007258771980666046, 0.0007310859460017971]], [[181, 237, 356, 287, 233, 366], [0.0, 0.0, 0.006848447859148177, 0.00857710965246028, 0.008855742171654857, 0.009319564537077052]], [[182, 196, 268, 274, 327, 270], [3.3306690738754696e-16, 0.0016565412900658716, 0.0017128673438330244, 0.002102593701137967, 0.0021366615763670493, 0.002188444895521169]], [[183, 152, 111, 371, 210, 267], [0.0, 0.0016058867222157325, 0.0016919917377915539, 0.00171038804998358, 0.0017139790361319074, 0.0017561842490537716]], [[184, 318, 192, 152, 335, 75], [0.0, 0.0006263770306811356, 0.0006294271204169144, 0.0006453393503793592, 0.0006564869270564433, 0.0006807431382283013]], [[185, 199, 159, 210, 29, 197], [0.0, 0.002100950774455379, 0.004182723143769551, 0.004367466401845044, 0.004393595563601527, 0.0044479173976103015]], [[186, 276, 250, 258, 351, 252], [0.0, 0.0005661965311787309, 0.0005914634487151904, 0.0006122341902560224, 0.0006268381113399002, 0.0007118654419693282]], [[187, 365, 246, 253, 314, 226], [0.0, 0.00023004068245291442, 0.0002897619657661332, 0.0003162779187090292, 0.000316548442474196, 0.0003358232789506532]], [[188, 234, 362, 255, 331, 286], [0.0, 0.002627659527219217, 0.0027100215627877677, 0.003984911897888632, 0.0060851455417861855, 0.006402788710883289]], [[189, 337, 299, 249, 312, 193], [0.0, 0.006331572293608145, 0.006456361244487452, 0.0065717439608307116, 0.0069295941893570134, 0.006944538681574408]], [[190, 158, 314, 351, 363, 290], [1.1102230246251565e-16, 0.00027308060705788506, 0.00036100386679172036, 0.00043262877254623966, 0.0004345999861898875, 0.0004480257329357862]], [[191, 382, 168, 387, 165, 322], [0.0, 0.0016236109064329263, 0.002110345212412934, 0.002249892510590823, 0.0024003654504793914, 0.0027143580852607707]], [[192, 162, 226, 318, 246, 335], [0.0, 0.0004571357713679669, 0.0005025332205321753, 0.0005029578635838972, 0.0005095309365904521, 0.0005871856557770894]], [[193, 345, 365, 197, 335, 359], [0.0, 0.0003432707432144966, 0.00034491000053749055, 0.00034913048897511345, 0.000417891800095882, 0.0004339745383034055]], [[194, 383, 326, 320, 345, 75], [0.0, 0.0005724483591678098, 0.0006561935332272117, 0.0006607899839063958, 0.0006845406759798944, 0.0006887855725863368]], [[195, 38, 301, 385, 8, 284], [1.1102230246251565e-16, 0.008250648553632667, 0.02125157193529592, 0.021556786758544222, 0.02429234295474747, 0.025559237250538547]], [[196, 254, 270, 268, 235, 327], [0.0, 0.0008606517878703146, 0.0010402807471852071, 0.0010420836214378726, 0.0013782402663133908, 0.0015217509980315347]], [[197, 383, 345, 152, 365, 75], [0.0, 0.00012968773379229415, 0.00019079968652380153, 0.0002000319545832907, 0.00022776412381741995, 0.00023061030529847315]], [[198, 87, 292, 205, 384, 90], [0.0, 0.0011539102769834164, 0.0012699659606045799, 0.0016241239027702248, 0.0019556603969562714, 0.0020855789826150772]], [[199, 185, 197, 152, 383, 335], [0.0, 0.002100950774455379, 0.0023156159726728243, 0.002441382698089689, 0.002477004593693599, 0.0024959685652247154]], [[200, 93, 220, 101, 54, 95], [1.1102230246251565e-16, 0.004959407096901569, 0.009303184390655694, 0.009829065274972404, 0.009979983459610153, 0.012221269442268867]], [[201, 338, 140, 301, 7, 8], [0.0, 0.01521504254732542, 0.01615372429844697, 0.016871130954363434, 0.017461993793592923, 0.018569503185449365]], [[202, 283, 293, 174, 168, 153], [1.1102230246251565e-16, 0.002561155401250126, 0.0036654331967644893, 0.005038361309066319, 0.0056065799489398715, 0.006547526344572785]], [[203, 220, 355, 93, 54, 101], [0.0, 0.004835493054951456, 0.0060776245087883485, 0.0064481092133050755, 0.007256307486707914, 0.009686114782374466]], [[204, 323, 327, 281, 360, 379], [0.0, 0.0013637556794839911, 0.0014674279739713691, 0.0023648948652145174, 0.0026705913255101743, 0.0027418529029084038]], [[205, 90, 340, 292, 257, 303], [1.1102230246251565e-16, 0.0003391978430871134, 0.0004765204108392318, 0.0005334955318491152, 0.0006627787636738214, 0.0009571582349415797]], [[206, 239, 356, 149, 214, 224], [1.1102230246251565e-16, 0.0011360406902442, 0.0028002777098002918, 0.003309693417706816, 0.00341279178470022, 0.0037963973705463783]], [[207, 325, 174, 283, 232, 202], [0.0, 0.01600200236116789, 0.029111662913377745, 0.031830457504181564, 0.0329945065635574, 0.03443385178500469]], [[208, 275, 359, 193, 386, 258], [0.0, 0.0010589497499396971, 0.0011004493467433596, 0.001209346570571812, 0.0012795265986559334, 0.0013148074936448761]], [[209, 23, 96, 70, 15, 24], [1.1102230246251565e-16, 0.008224184540715163, 0.00953764065285767, 0.010119145630164916, 0.010705631829377893, 0.011058159395185396]], [[210, 387, 308, 322, 111, 267], [0.0, 0.0007026000046540526, 0.0007149543813659287, 0.0007649258160817851, 0.0007826845584204545, 0.0008493810770974219]], [[211, 193, 365, 345, 197, 80], [0.0, 0.0005710794141209341, 0.0006282883060811928, 0.0006342809485012646, 0.0007392269543905483, 0.0007658148814387866]], [[212, 231, 349, 157, 175, 250], [0.0, 0.003894641621597028, 0.004285458800305952, 0.0047080416039260164, 0.0047116156552858834, 0.004718305960991875]], [[213, 300, 357, 41, 71, 141], [0.0, 0.00643923009123526, 0.015737391620232244, 0.02215888405144184, 0.0321700962801853, 0.041430253078443835]], [[214, 149, 107, 378, 339, 304], [0.0, 0.0011389249629955023, 0.001250974809151817, 0.0013053526872623955, 0.0014757398552713852, 0.0016567233894273503]], [[215, 298, 277, 276, 287, 350], [1.1102230246251565e-16, 0.0008930975169878508, 0.0011879116654994748, 0.0012171627106053462, 0.001270064538679172, 0.0013395761233263581]], [[216, 276, 359, 233, 350, 186], [0.0, 0.0004744320961370674, 0.0005420399311863999, 0.0006143985175887101, 0.0008600831597574965, 0.0008833247730495319]], [[217, 279, 362, 255, 188, 331], [0.0, 0.008400453603609193, 0.012957066517097715, 0.01303403337263076, 0.013794237627728023, 0.014037412084164869]], [[218, 343, 290, 335, 155, 267], [0.0, 0.003546234002132831, 0.0035898506312040945, 0.0037966429779561217, 0.003807363660572438, 0.0038094168899625025]], [[219, 313, 247, 255, 234, 362], [0.0, 0.0012082262467723037, 0.010209267773264585, 0.012394239664795914, 0.012944442818485502, 0.013679999367810503]], [[220, 93, 355, 95, 101, 54], [0.0, 0.0021459618469691355, 0.003289358034291756, 0.003462766609841905, 0.004209112544376614, 0.004280233305062109]], [[221, 277, 298, 186, 261, 342], [0.0, 0.001467006761446621, 0.0015219959474359612, 0.001719024262056612, 0.0018097239380291397, 0.001816055154375662]], [[222, 137, 380, 330, 56, 61], [0.0, 0.0031078995556110822, 0.00468927626284632, 0.011368241356271902, 0.011490994589928083, 0.014605002938478884]], [[223, 250, 335, 365, 187, 320], [0.0, 0.00036054096081172826, 0.00038552915378620156, 0.00040087917624531677, 0.0004070689324504606, 0.0004196641217666386]], [[224, 252, 250, 258, 361, 339], [1.1102230246251565e-16, 0.0005644592904563428, 0.0009833034111027539, 0.0011830802099707105, 0.0012490392389390426, 0.0013946991320800128]], [[225, 95, 94, 101, 88, 93], [0.0, 0.011129519757703488, 0.013638126878981804, 0.01365044199335097, 0.014094633723713779, 0.014954092707468947]], [[226, 246, 314, 365, 187, 320], [0.0, 0.00022451597877792828, 0.0003031117781940873, 0.0003223635261430102, 0.0003358232789506532, 0.0004789320015198273]], [[227, 336, 273, 16, 163, 297], [0.0, 0.15522199908713474, 0.1752150541286761, 0.2017153311504566, 0.22326249597104497, 0.22806495940488514]], [[228, 381, 58, 108, 72, 64], [0.0, 0.0015300186451298048, 0.0017187186844321856, 0.0017939180353822026, 0.0018675743753275853, 0.0019546210964686006]], [[229, 68, 168, 311, 91, 293], [2.220446049250313e-16, 0.0030698439405743017, 0.003718580666450033, 0.003752192184338532, 0.004516895149574429, 0.004862204054993269]], [[230, 106, 371, 257, 180, 340], [0.0, 0.0007516441120059003, 0.0011607309238143015, 0.0011736168279574688, 0.0012060464230880807, 0.001243194435863737]], [[231, 250, 252, 223, 157, 171], [1.1102230246251565e-16, 0.00087805765956539, 0.0009947393066925825, 0.0010460966639720404, 0.0011176388964656558, 0.0011780376660461833]], [[232, 283, 78, 168, 307, 202], [2.220446049250313e-16, 0.005808504160451644, 0.008952726611660244, 0.0094824604862781, 0.009511798620829626, 0.009537454347731678]], [[233, 216, 276, 359, 321, 350], [0.0, 0.0006143985175887101, 0.0010514662657933327, 0.0013149617683435588, 0.001334440605463949, 0.001365243537923]], [[234, 362, 255, 188, 286, 331], [2.220446049250313e-16, 0.0016054216410312794, 0.0023378387311966398, 0.002627659527219217, 0.003760007067707738, 0.0039050818338466353]], [[235, 268, 196, 254, 270, 287], [1.1102230246251565e-16, 0.0013434586275890004, 0.0013782402663133908, 0.0016492491286569377, 0.0017648753057544209, 0.00261731258095399]], [[236, 244, 304, 187, 314, 253], [2.220446049250313e-16, 0.0010302313674497299, 0.0010455227026849867, 0.0012224880179512176, 0.0012246243488562847, 0.0012290985859395587]], [[181, 237, 356, 287, 233, 366], [0.0, 0.0, 0.006848447859148177, 0.00857710965246028, 0.008855742171654857, 0.009319564537077052]], [[238, 305, 331, 276, 277, 233], [0.0, 0.002276713404246289, 0.0025370371471274966, 0.002722752201309131, 0.0030940618217538685, 0.0031702869397628453]], [[239, 206, 258, 250, 304, 252], [0.0, 0.0011360406902442, 0.001330833299109213, 0.0014997239942924345, 0.0015151292883690548, 0.0015269698796802622]], [[240, 342, 214, 221, 279, 164], [3.3306690738754696e-16, 0.004101258594718882, 0.0041925368244019046, 0.00425180676650605, 0.004265474083642418, 0.004500753068326868]], [[241, 99, 230, 371, 198, 292], [0.0, 0.0031434085931890676, 0.003991563443060175, 0.0041579533394343615, 0.0043352822953447445, 0.004463555563856025]], [[242, 342, 379, 304, 29, 339], [0.0, 0.0024201364411143844, 0.0024932361736043074, 0.0025862863453868234, 0.0027055354263867404, 0.002744232154136439]], [[243, 91, 154, 161, 194, 106], [1.1102230246251565e-16, 0.0005140144794650858, 0.0011737724343430234, 0.0011737724343430234, 0.001484654387697848, 0.0016189013128264929]], [[244, 383, 197, 365, 152, 345], [0.0, 0.00027013202819636817, 0.0002822349975456495, 0.000296421545250225, 0.0003445238652761695, 0.0003473830684065371]], [[245, 376, 223, 187, 246, 253], [0.0, 0.008214039243593318, 0.00826830893081687, 0.008424532199721835, 0.008503947739910478, 0.00856689883966777]], [[246, 365, 226, 187, 314, 379], [0.0, 0.00020277228942888748, 0.00022451597877792828, 0.0002897619657661332, 0.00035644989680450045, 0.0003710055813893609]], [[247, 362, 255, 331, 234, 188], [0.0, 0.0040982557161135524, 0.004298756766647371, 0.004593190004248404, 0.0055049765173952325, 0.007903869541307063]], [[248, 215, 221, 42, 277, 298], [0.0, 0.0019488161932568193, 0.0020038145624198256, 0.0026168183878875206, 0.002625421775007797, 0.002717831212787125]], [[249, 162, 367, 258, 253, 269], [1.1102230246251565e-16, 0.003022060372727231, 0.0032412292252780306, 0.0032416927993275113, 0.0032469728872842607, 0.0033675201310572334]], [[250, 252, 223, 258, 187, 359], [0.0, 8.731760711222503e-05, 0.00036054096081172826, 0.00039961084000439406, 0.0005346616865063991, 0.0005747605009833734]], [[251, 317, 354, 318, 194, 243], [0.0, 0.0015303932977456247, 0.0016818394662108105, 0.0025640052472980512, 0.0025654132758817783, 0.002577120915297715]], [[252, 250, 258, 224, 361, 186], [0.0, 8.731760711222503e-05, 0.00048051147337246913, 0.0005644592904563428, 0.0007117249234394052, 0.0007118654419693282]], [[253, 187, 351, 304, 226, 246], [0.0, 0.0003162779187090292, 0.0004334230711874332, 0.00044960434656182713, 0.0005093936837634594, 0.0005708877381412902]], [[254, 270, 196, 268, 327, 235], [0.0, 0.0006171363041493905, 0.0008606517878703146, 0.0011903997872725336, 0.0012693978332682931, 0.0016492491286569377]], [[255, 362, 234, 331, 287, 188], [1.1102230246251565e-16, 0.002170085209253325, 0.0023378387311966398, 0.0023545632928307914, 0.0036744965759901715, 0.003984911897888632]], [[256, 205, 384, 90, 340, 173], [0.0, 0.0015078818710854147, 0.0018703285102773526, 0.0019539397545814685, 0.001984017559768514, 0.0022185691286386033]], [[257, 90, 340, 371, 75, 303], [1.1102230246251565e-16, 0.00010238618628100049, 0.00012909423160722966, 0.00020765015252288688, 0.00036999090016509584, 0.00045735864987339614]], [[258, 250, 252, 361, 351, 304], [3.3306690738754696e-16, 0.00039961084000439406, 0.00048051147337246913, 0.0004907049036889655, 0.0004952597875194087, 0.0005091001416551721]], [[259, 222, 380, 137, 225, 112], [0.0, 0.08063475152362387, 0.08903303667781304, 0.08966031535943719, 0.091572488056059, 0.09285200306684571]], [[260, 296, 166, 278, 297, 375], [0.0, 0.02445407121960974, 0.03210128798720413, 0.0345699512652472, 0.03536827440531021, 0.03564637123533021]], [[261, 277, 298, 350, 359, 193], [0.0, 0.0007956016137277144, 0.0009903101686530302, 0.0009947610610309132, 0.001253543464402762, 0.0012913358938839714]], [[262, 287, 221, 324, 350, 277], [1.1102230246251565e-16, 0.005733624279643745, 0.0061288772230378985, 0.006184714340095598, 0.006209550607935044, 0.006324663036254563]], [[263, 111, 267, 76, 290, 329], [0.0, 0.002645113270723365, 0.0030076432514803964, 0.0034032367647687245, 0.0034968282328415867, 0.00357588058157543]], [[264, 95, 88, 330, 24, 87], [0.0, 0.010170743243302915, 0.011000992084472472, 0.011138566644411707, 0.011497868608559614, 0.011792110185803839]], [[265, 173, 292, 376, 275, 87], [0.0, 0.0032799839958401744, 0.00419578560414835, 0.004396030409786422, 0.004536785395084286, 0.0045679606716206855]], [[266, 205, 318, 340, 384, 90], [0.0, 0.001356709805958256, 0.0013784141938431027, 0.0013982467310431623, 0.0015944486491381582, 0.0016356190357659228]], [[267, 111, 383, 152, 343, 197], [4.440892098500626e-16, 9.598302356539357e-05, 0.00022932248900553454, 0.0002533963225223035, 0.00027803784047197855, 0.00029712227865141827]], [[268, 196, 270, 254, 235, 327], [1.1102230246251565e-16, 0.0010420836214378726, 0.0010752904781965444, 0.0011903997872725336, 0.0013434586275890004, 0.0013688266913869374]], [[269, 304, 258, 339, 361, 253], [2.220446049250313e-16, 0.00033851197652357, 0.0005577423052706143, 0.0006423085138629325, 0.0006898255260069375, 0.0006959067407331654]], [[270, 327, 254, 196, 268, 323], [2.220446049250313e-16, 0.0005057910626216078, 0.0006171363041493905, 0.0010402807471852071, 0.0010752904781965444, 0.0016818570137927535]], [[271, 382, 27, 387, 78, 68], [0.0, 0.0029994343039856375, 0.003027633847953126, 0.003278549004785747, 0.0036743039483935203, 0.0036977175270890283]], [[272, 335, 290, 303, 190, 314], [0.0, 0.0007883557998882296, 0.0008118779278573074, 0.0008875442782656506, 0.0009377122248335201, 0.0009434688155802728]], [[273, 306, 16, 281, 366, 358], [0.0, 0.008912996543657292, 0.013372857498114454, 0.013489308382101717, 0.013833652923388007, 0.01383564710484797]], [[274, 182, 372, 344, 268, 327], [4.440892098500626e-16, 0.002102593701137967, 0.0034078699197630513, 0.004252606110609181, 0.0044422378187459755, 0.004618455025181323]], [[275, 376, 208, 50, 223, 193], [0.0, 0.0009645478549794584, 0.0010589497499396971, 0.0011499811846441554, 0.0013322414010459305, 0.00137973318924689]], [[276, 298, 216, 351, 186, 359], [0.0, 0.00041775261850207634, 0.0004744320961370674, 0.0005342999694933903, 0.0005661965311787309, 0.0007059340120468827]], [[277, 350, 298, 261, 276, 215], [0.0, 0.0004766960662601072, 0.0007820480781103312, 0.0007956016137277144, 0.0010431856201920109, 0.0011879116654994748]], [[278, 234, 286, 338, 7, 287], [0.0, 0.00395356680451453, 0.004669193232970215, 0.0060760845522196405, 0.006167175994712393, 0.006890212642305382]], [[279, 166, 240, 265, 42, 224], [0.0, 0.004176861383680341, 0.004265474083642418, 0.004787663993283675, 0.005105459167785487, 0.005112522018457355]], [[280, 235, 268, 196, 339, 356], [1.1102230246251565e-16, 0.005746499753966461, 0.00712466142252044, 0.007217966900624595, 0.007535414804518581, 0.007786885836797652]], [[281, 306, 226, 323, 314, 246], [0.0, 0.0007209859430759025, 0.0008951329013417997, 0.0010258906524802658, 0.001077871704087352, 0.0010914484823268955]], [[282, 99, 249, 241, 183, 371], [0.0, 0.005573560224819363, 0.006934484358523729, 0.00713887622596987, 0.009828310070093993, 0.010738944938756934]], [[283, 202, 153, 168, 68, 293], [1.1102230246251565e-16, 0.002561155401250126, 0.003760628547777478, 0.004412181579289132, 0.005270854452041451, 0.005434191638002406]], [[284, 301, 8, 107, 177, 140], [0.0, 0.0035615439776902624, 0.004502607032066064, 0.005245148640681041, 0.0066321104741355885, 0.006859654984729069]], [[285, 324, 355, 262, 266, 130], [1.1102230246251565e-16, 0.00754279856254636, 0.007698315635890185, 0.00809270310712995, 0.008320257202949044, 0.009296381115039831]], [[286, 287, 42, 214, 356, 248], [1.1102230246251565e-16, 0.0024656882873073105, 0.0026227974665284925, 0.002811501698942398, 0.0028867179399394427, 0.0031103888900501087]], [[287, 215, 350, 216, 276, 233], [0.0, 0.001270064538679172, 0.0015224107289740774, 0.001544823818386054, 0.0015750485702967776, 0.0015831352205938343]], [[288, 219, 313, 247, 278, 234], [1.1102230246251565e-16, 0.023721349087059584, 0.025497433821621396, 0.02616876016367442, 0.032225479837889814, 0.03349128049616512]], [[289, 340, 90, 257, 78, 106], [1.1102230246251565e-16, 0.0007054758298625785, 0.0007161486386861871, 0.0007504288043831409, 0.0007908559482855404, 0.0008096295783888152]], [[290, 343, 335, 267, 244, 190], [2.220446049250313e-16, 0.0001520850383173178, 0.000222529321260434, 0.0003013293864919664, 0.0003944803558785237, 0.0004480257329357862]], [[291, 87, 292, 330, 198, 205], [0.0, 0.003404210440442812, 0.003530750043393205, 0.0038541016295289277, 0.004444628974742071, 0.004555421264933468]], [[292, 90, 87, 205, 257, 340], [0.0, 0.0005189484206833406, 0.000527929466826893, 0.0005334955318491152, 0.0007860235009524708, 0.0008831057079835558]], [[293, 168, 202, 68, 229, 283], [1.1102230246251565e-16, 0.0029025210798033774, 0.0036654331967644893, 0.004765288265991652, 0.004862204054993269, 0.005434191638002406]], [[294, 388, 358, 210, 367, 308], [0.0, 0.0028633568264965215, 0.0030535871670482884, 0.0034778456251943757, 0.003562556658407212, 0.003713612180371695]], [[295, 153, 27, 167, 191, 14], [3.3306690738754696e-16, 0.0047278056340225305, 0.005522311875746921, 0.005732485021178624, 0.005854194269595769, 0.005873186172022482]], [[296, 375, 266, 166, 297, 173], [1.1102230246251565e-16, 0.014173875225850674, 0.014487829295041665, 0.015179486109256346, 0.015509650975743527, 0.016273861477571594]], [[297, 215, 287, 350, 358, 235], [0.0, 0.0032512837038936038, 0.0034696133364319204, 0.0035031271038540313, 0.003638746259674752, 0.0036550688604840564]], [[298, 276, 351, 277, 186, 215], [0.0, 0.00041775261850207634, 0.0007658204783457245, 0.0007820480781103312, 0.0008368631668339566, 0.0008930975169878508]], [[299, 193, 197, 383, 318, 365], [0.0, 0.000902232574985451, 0.0010050351981070182, 0.0011414543642604968, 0.0011487557599434428, 0.001169747528615095]], [[300, 213, 357, 41, 71, 124], [0.0, 0.00643923009123526, 0.008504536692426012, 0.012317220195299683, 0.02435137888100991, 0.03534052353166517]], [[301, 8, 284, 140, 107, 177], [2.220446049250313e-16, 0.0019881683513983672, 0.0035615439776902624, 0.003695538078501426, 0.0037020191289739435, 0.004092632582947231]], [[302, 362, 234, 188, 255, 352], [0.0, 0.006827127922489851, 0.008955181934512835, 0.009550085754251425, 0.011941607733105042, 0.01233607280871074]], [[303, 257, 340, 90, 246, 223], [1.1102230246251565e-16, 0.00045735864987339614, 0.0005492948954717303, 0.0005589811801443023, 0.0006630512629592911, 0.0006763425147143787]], [[304, 269, 339, 351, 253, 342], [1.1102230246251565e-16, 0.00033851197652357, 0.00034191120183812984, 0.00040979975265686974, 0.00044960434656182713, 0.0004541836404517996]], [[305, 210, 158, 190, 276, 387], [0.0, 0.001438676942686068, 0.0017369671578484347, 0.001821061721427153, 0.001909200690217605, 0.0019328302091410343]], [[306, 281, 375, 184, 358, 323], [0.0, 0.0007209859430759025, 0.0017332519371443533, 0.0019439897783247728, 0.002007121319506422, 0.0020734240725244213]], [[307, 114, 229, 91, 68, 311], [0.0, 0.004362394873438813, 0.006181238652350651, 0.0074040388621609, 0.007575255289945515, 0.008598435020677364]], [[308, 290, 267, 111, 343, 335], [0.0, 0.0005402122248175933, 0.0005965222065650311, 0.000617906360282805, 0.0006201789873387931, 0.0006605172772575774]], [[309, 142, 73, 102, 127, 113], [0.0, 0.005767976939934805, 0.0071241592252616615, 0.007888117621546953, 0.008610281340180936, 0.009311719133520913]], [[310, 113, 117, 53, 127, 72], [0.0, 0.0021092163048037627, 0.002220517970949687, 0.0022832002470174473, 0.002330260533239703, 0.0025666862425272052]], [[311, 68, 229, 168, 91, 243], [0.0, 0.0037416161823111693, 0.003752192184338532, 0.004404530525792705, 0.004468066351493438, 0.005353343401022226]], [[312, 223, 250, 265, 351, 187], [1.1102230246251565e-16, 0.0052654428425482624, 0.005407230981031019, 0.0054507469554165855, 0.0054548861934183845, 0.005461955610597702]], [[313, 219, 247, 255, 234, 278], [0.0, 0.0012082262467723037, 0.014494192510068449, 0.01715361266178539, 0.017569109940420602, 0.01813962790847201]], [[314, 365, 226, 187, 246, 190], [1.1102230246251565e-16, 0.0002771184546850325, 0.0003031117781940873, 0.000316548442474196, 0.00035644989680450045, 0.00036100386679172036]], [[315, 339, 269, 304, 361, 253], [0.0, 0.0009057907808652788, 0.0011847970084318815, 0.001215283260924127, 0.0012544462862781325, 0.0013169806111562599]], [[316, 321, 359, 233, 258, 387], [1.1102230246251565e-16, 0.0016839161017826454, 0.001810128002707967, 0.0020401059440920966, 0.002091010361771395, 0.002109709399582882]], [[317, 251, 106, 387, 318, 223], [0.0, 0.0015303932977456247, 0.003224791180050146, 0.003563551129037612, 0.0036334835497021656, 0.003673126934040205]], [[318, 192, 223, 193, 335, 257], [2.220446049250313e-16, 0.0005029578635838972, 0.0005095066887810251, 0.0005118757101575389, 0.000542542207983554, 0.0005697037477038203]], [[319, 338, 278, 7, 286, 140], [0.0, 0.022348690801784254, 0.023347135219388915, 0.023510043817457915, 0.0242235586947096, 0.024256952885989502]], [[320, 365, 383, 197, 335, 345], [0.0, 0.0002633213729655859, 0.0002987117427758479, 0.00031959610345833056, 0.0003674573110588053, 0.0003949570726264895]], [[321, 258, 190, 359, 314, 369], [0.0, 0.000726766661093281, 0.0008606533971570185, 0.0009256143349907209, 0.0009558413594031867, 0.000984469332132809]], [[322, 165, 210, 276, 382, 387], [0.0, 0.0006731604060146168, 0.0007649258160817851, 0.0008580407503723242, 0.000984215003845046, 0.0009940005804585095]], [[323, 379, 226, 246, 314, 192], [1.1102230246251565e-16, 0.0005464176571343682, 0.000571832770666636, 0.0006718428363846618, 0.0007164139460088537, 0.0008022483320387908]], [[324, 355, 384, 205, 256, 292], [0.0, 0.002075283599211053, 0.0022419903621052617, 0.002323877685849074, 0.0025528000265118145, 0.0031668169387903955]], [[325, 207, 174, 202, 232, 283], [0.0, 0.01600200236116789, 0.02850961224931925, 0.029966992364715117, 0.030141241201000257, 0.033048305659088784]], [[326, 363, 49, 75, 343, 197], [1.1102230246251565e-16, 0.0001351944424867746, 0.00024416997142173713, 0.000285913718182762, 0.0003053379738308104, 0.0003573336404751881]], [[327, 270, 323, 254, 268, 204], [1.1102230246251565e-16, 0.0005057910626216078, 0.0009227209932124447, 0.0012693978332682931, 0.0013688266913869374, 0.0014674279739713691]], [[328, 105, 117, 53, 119, 72], [0.0, 0.0010663597173665718, 0.0026229737021717936, 0.00286977641663122, 0.0029114240345861075, 0.0030429950570750597]], [[329, 263, 106, 76, 111, 230], [2.220446049250313e-16, 0.00357588058157543, 0.004540599931707079, 0.004967034037010487, 0.005084618172740751, 0.005118533647243018]], [[330, 87, 292, 291, 173, 95], [0.0, 0.0028952298983577762, 0.0037465076893551386, 0.0038541016295289277, 0.004544541555329351, 0.004652103838092669]], [[331, 287, 255, 238, 233, 350], [0.0, 0.0022088602754816167, 0.0023545632928307914, 0.0025370371471274966, 0.0028339712412133178, 0.002923600211461097]], [[332, 117, 53, 119, 72, 381], [0.0, 0.00192972076010256, 0.002236811163354835, 0.002335836384388279, 0.002418644481716248, 0.002533710196107042]], [[333, 182, 274, 196, 270, 327], [0.0, 0.004299252334245773, 0.006649826118269697, 0.007502102183872594, 0.00828458145253863, 0.008563081549890827]], [[334, 338, 140, 7, 301, 278], [0.0, 0.013435356989250469, 0.014734967730447024, 0.016594635829799476, 0.01707386013930179, 0.01744256542099154]], [[335, 290, 197, 343, 383, 152], [0.0, 0.000222529321260434, 0.00024707683965219385, 0.00029633780056903536, 0.00032011720549907086, 0.00034444997309179826]], [[336, 273, 297, 358, 16, 148], [0.0, 0.015536489566365774, 0.01577483023684756, 0.018194441040011222, 0.021360321706843433, 0.021590066559822096]], [[337, 312, 189, 233, 162, 318], [0.0, 0.005490103034574312, 0.006331572293608145, 0.007583835756398871, 0.007707403399371926, 0.00780843693470501]], [[338, 140, 286, 301, 214, 107], [1.1102230246251565e-16, 0.0033011096740055423, 0.004267685508951402, 0.004709234100045645, 0.004795512487801523, 0.004892649039928587]], [[339, 304, 149, 253, 269, 342], [0.0, 0.00034191120183812984, 0.0005660129101057176, 0.0005709897295801403, 0.0006423085138629325, 0.0007478748449105677]], [[340, 257, 90, 371, 205, 303], [1.1102230246251565e-16, 0.00012909423160722966, 0.00013322884815170077, 0.00034375575789258317, 0.0004765204108392318, 0.0005492948954717303]], [[341, 307, 232, 56, 147, 143], [3.3306690738754696e-16, 0.02732089884269262, 0.030772868737766967, 0.03332179732530682, 0.03599173205812889, 0.03695444558373073]], [[342, 351, 304, 253, 339, 258], [0.0, 0.0002759280732707037, 0.0004541836404517996, 0.0006699756997234907, 0.0007478748449105677, 0.0007838335097105631]], [[343, 290, 267, 335, 326, 244], [1.1102230246251565e-16, 0.0001520850383173178, 0.00027803784047197855, 0.00029633780056903536, 0.0003053379738308104, 0.0003564003633923507]], [[344, 372, 204, 269, 304, 315], [0.0, 0.0028331224885962403, 0.0031083265823143025, 0.0031418324600995806, 0.003259561096186636, 0.003602932659720337]], [[345, 365, 383, 197, 152, 75], [0.0, 0.0001634687047806782, 0.00018354731618119846, 0.00019079968652380153, 0.0002343911064125459, 0.00028725126453332805]], [[346, 4, 18, 33, 22, 10], [0.0, 0.016880942705457147, 0.01727132642912954, 0.019298134414060808, 0.035016003684806396, 0.03554198327530744]], [[347, 304, 269, 258, 351, 342], [1.1102230246251565e-16, 0.0012970137300796214, 0.00143236685735193, 0.0016785602161036861, 0.0016872832005891958, 0.0017468139497479607]], [[348, 196, 235, 280, 254, 268], [0.0, 0.007045640310400114, 0.007062420129217428, 0.00866495714492077, 0.00879431359245686, 0.009017025873813145]], [[349, 345, 365, 193, 197, 383], [0.0, 0.0008785013055458979, 0.0008843389718985462, 0.0008898589431116655, 0.0009880694334842843, 0.0009960886853506157]], [[350, 277, 216, 261, 298, 276], [0.0, 0.0004766960662601072, 0.0008600831597574965, 0.0009947610610309132, 0.0010761039964365393, 0.001078864624365461]], [[351, 342, 304, 190, 253, 258], [1.1102230246251565e-16, 0.0002759280732707037, 0.00040979975265686974, 0.00043262877254623966, 0.0004334230711874332, 0.0004952597875194087]], [[352, 362, 234, 188, 7, 278], [0.0, 0.008337254050678866, 0.009069561153352446, 0.010187822368460053, 0.011524600949348929, 0.011576817747780854]], [[353, 148, 175, 275, 386, 157], [1.1102230246251565e-16, 0.0026713401703658546, 0.002751060128829974, 0.002920995462663778, 0.0029444632587869446, 0.0030252799623874393]], [[354, 223, 158, 250, 194, 318], [1.1102230246251565e-16, 0.0013173881581375335, 0.001481150934211417, 0.0014862369438594092, 0.0014899502891547733, 0.0015322831200524911]], [[355, 384, 324, 205, 256, 266], [0.0, 0.0020458509896652544, 0.002075283599211053, 0.0027075868752348686, 0.002940772756330645, 0.0031248840037980674]], [[356, 224, 258, 239, 339, 252], [0.0, 0.0015597386449800466, 0.0019327790439226389, 0.0020017225520505555, 0.0020321043723292576, 0.002036573543821918]], [[357, 41, 300, 71, 213, 141], [0.0, 0.00848889869992353, 0.008504536692426012, 0.013860351365951873, 0.015737391620232244, 0.023565949218681936]], [[358, 152, 184, 335, 197, 193], [0.0, 0.0011825848646951354, 0.0012214694244174762, 0.001233291265476999, 0.0013566904832987836, 0.0013970222398718146]], [[359, 365, 193, 187, 216, 314], [2.220446049250313e-16, 0.00037659454058602826, 0.0004339745383034055, 0.0004870216672699934, 0.0005420399311863999, 0.0005637768820585531]], [[360, 327, 270, 204, 196, 254], [0.0, 0.0024815580329146103, 0.0025025007974929236, 0.0026705913255101743, 0.003024464908274349, 0.003122786140688616]], [[361, 258, 253, 250, 269, 252], [0.0, 0.0004907049036889655, 0.0006225504804886484, 0.0006390284416066816, 0.0006898255260069375, 0.0007117249234394052]], [[362, 234, 255, 188, 331, 247], [0.0, 0.0016054216410312794, 0.002170085209253325, 0.0027100215627877677, 0.003890455091812517, 0.0040982557161135524]], [[363, 49, 326, 151, 75, 197], [1.1102230246251565e-16, 0.0001159059298493359, 0.0001351944424867746, 0.000281525908466862, 0.0002918706408007177, 0.000347236771260917]], [[364, 301, 107, 279, 8, 378], [0.0, 0.009981930003629236, 0.010290357407476192, 0.010569109910308239, 0.010648243774370125, 0.011689839576030314]], [[365, 345, 246, 383, 197, 187], [0.0, 0.0001634687047806782, 0.00020277228942888748, 0.00021265522896851685, 0.00022776412381741995, 0.00023004068245291442]], [[366, 318, 281, 216, 388, 233], [1.1102230246251565e-16, 0.002002165563349978, 0.0020780367626599405, 0.0024922083476606183, 0.002500223806759405, 0.0025100797877201098]], [[367, 371, 257, 340, 335, 303], [1.1102230246251565e-16, 0.0005218042430703562, 0.0007058106152380006, 0.0007437615195652336, 0.0007912251365007616, 0.0008099644237193893]], [[368, 322, 165, 170, 342, 299], [0.0, 0.0029650084386145803, 0.0032087319441959083, 0.00327628308458483, 0.003281157255655809, 0.003281461992061141]], [[369, 258, 376, 361, 253, 321], [0.0, 0.0007984145029107381, 0.0007984298420906644, 0.0009670893740602038, 0.000968356496272027, 0.000984469332132809]], [[370, 364, 385, 301, 140, 145], [1.1102230246251565e-16, 0.016840901748604642, 0.017867842398272882, 0.018065466364524108, 0.018121204290787896, 0.0183839776708441]], [[371, 257, 340, 90, 75, 367], [1.1102230246251565e-16, 0.00020765015252288688, 0.00034375575789258317, 0.00035999831929900417, 0.0004464791618710162, 0.0005218042430703562]], [[372, 149, 339, 177, 214, 315], [0.0, 0.0019323119021308344, 0.0019396360344924313, 0.0021089798924573966, 0.0024143829128346894, 0.002503374730476682]], [[373, 369, 178, 299, 289, 340], [0.0, 0.007687589490775859, 0.007884245889221764, 0.00874444508719796, 0.009012293370738278, 0.00943270397869167]], [[374, 335, 197, 290, 190, 244], [2.220446049250313e-16, 0.00046632952714631415, 0.0005415723840554998, 0.0005470511239119569, 0.0005712762514745728, 0.0005895096560795121]], [[375, 184, 192, 281, 318, 226], [0.0, 0.001004345552234498, 0.0010978057186358248, 0.001407785700516917, 0.0014904196670888492, 0.0017060182295607351]], [[376, 223, 303, 369, 379, 180], [1.1102230246251565e-16, 0.0007828779999174973, 0.0007910175402227049, 0.0007984298420906644, 0.0008120033606451305, 0.0008218088218165942]], [[377, 233, 316, 366, 321, 208], [0.0, 0.003577829637812724, 0.0044029140901421515, 0.004529727598743594, 0.004716893031237457, 0.004943598507355151]], [[378, 149, 214, 107, 342, 304], [1.1102230246251565e-16, 0.0011134228860765205, 0.0013053526872623955, 0.0013302338649938683, 0.0015572248926344345, 0.001575007375327231]], [[379, 246, 187, 323, 226, 176], [0.0, 0.0003710055813893609, 0.0005103753810405953, 0.0005464176571343682, 0.0005553592046009248, 0.0005840218066677227]], [[380, 137, 222, 56, 330, 87], [0.0, 0.002575070488611164, 0.00468927626284632, 0.008301721678146579, 0.008331925408027852, 0.012485985520831466]], [[381, 72, 108, 58, 64, 115], [0.0, 0.0005584996856728974, 0.0008621619886627352, 0.0008667097167774918, 0.0009694156648140106, 0.001136193343988734]], [[382, 165, 387, 210, 78, 322], [0.0, 0.0003855876260611124, 0.0006172667998594061, 0.0008598513462941826, 0.0008996715597339167, 0.000984215003845046]], [[383, 197, 152, 345, 365, 267], [0.0, 0.00012968773379229415, 0.0001657145358371359, 0.00018354731618119846, 0.00021265522896851685, 0.00022932248900553454]], [[384, 205, 266, 292, 256, 340], [1.1102230246251565e-16, 0.001186141474488811, 0.0015944486491381582, 0.0018470165710749997, 0.0018703285102773526, 0.0018778328374232656]], [[385, 301, 140, 8, 284, 338], [0.0, 0.006237602395101294, 0.006433233155200169, 0.009787079089202622, 0.010862031725554444, 0.01191416125409872]], [[386, 208, 359, 50, 275, 175], [0.0, 0.0012795265986559334, 0.0015522947561489309, 0.001588176637037586, 0.0016477507644473421, 0.0017322007327914557]], [[387, 382, 210, 322, 165, 111], [1.1102230246251565e-16, 0.0006172667998594061, 0.0007026000046540526, 0.0009940005804585095, 0.0010404088322377714, 0.0010956775328506696]], [[388, 318, 281, 345, 367, 193], [2.220446049250313e-16, 0.0016841512801911707, 0.0019260752800034364, 0.001996294512042307, 0.002005072585208767, 0.0020154852705824844]], [[389, 371, 162, 340, 257, 318], [1.1102230246251565e-16, 0.0007045209639875427, 0.0007886362836836414, 0.0007952651829651325, 0.0007983086007150586, 0.0008160655615894186]]]
#1024
# arr = [[[0, 30, 128, 337, 168, 356], [0.0, 0.11617553234100342, 0.12028801441192627, 0.12172508239746094, 0.12229013442993164, 0.13157528638839722]], [[1, 308, 131, 335, 14, 273], [1.1920928955078125e-07, 0.09152323007583618, 0.09530746936798096, 0.09792345762252808, 0.11284255981445312, 0.1139482855796814]], [[2, 210, 72, 242, 32, 76], [0.0, 0.05474531650543213, 0.06035196781158447, 0.07726788520812988, 0.07879078388214111, 0.07962918281555176]], [[3, 287, 242, 10, 55, 60], [5.960464477539063e-08, 0.04547286033630371, 0.05911374092102051, 0.0688011646270752, 0.06963825225830078, 0.07963049411773682]], [[4, 100, 17, 305, 99, 386], [5.960464477539063e-08, 0.057402968406677246, 0.06171727180480957, 0.06885606050491333, 0.07127273082733154, 0.07133889198303223]], [[5, 303, 86, 336, 204, 288], [1.7881393432617188e-07, 0.06685054302215576, 0.06924188137054443, 0.07040941715240479, 0.07138228416442871, 0.07150429487228394]], [[6, 229, 378, 71, 171, 154], [5.960464477539063e-08, 0.06507629156112671, 0.06527107954025269, 0.06558096408843994, 0.06919741630554199, 0.07155203819274902]], [[7, 378, 96, 71, 12, 229], [2.384185791015625e-07, 0.06263887882232666, 0.06479465961456299, 0.06682157516479492, 0.06800729036331177, 0.06844073534011841]], [[8, 176, 321, 151, 46, 313], [0.0, 0.035824596881866455, 0.03882884979248047, 0.04619842767715454, 0.04646342992782593, 0.049373626708984375]], [[9, 250, 170, 263, 385, 150], [0.0, 0.1243472695350647, 0.12764054536819458, 0.13026326894760132, 0.1394362449645996, 0.14256280660629272]], [[10, 178, 67, 60, 33, 55], [0.0, 0.04849761724472046, 0.05534982681274414, 0.055718421936035156, 0.05690276622772217, 0.05749237537384033]], [[11, 129, 100, 386, 305, 292], [1.1920928955078125e-07, 0.07783496379852295, 0.08101773262023926, 0.08625543117523193, 0.08643084764480591, 0.09466797113418579]], [[12, 71, 229, 45, 92, 378], [0.0, 0.029432058334350586, 0.03492254018783569, 0.036500394344329834, 0.04144144058227539, 0.04249376058578491]], [[13, 281, 231, 304, 139, 155], [0.0, 0.04092681407928467, 0.044399380683898926, 0.04615187644958496, 0.04930591583251953, 0.05151861906051636]], [[14, 5, 19, 152, 315, 260], [1.1920928955078125e-07, 0.08595079183578491, 0.08756589889526367, 0.09131407737731934, 0.09383296966552734, 0.09431779384613037]], [[15, 71, 12, 229, 45, 196], [5.960464477539063e-08, 0.09386277198791504, 0.0964280366897583, 0.09687477350234985, 0.09700775146484375, 0.1040419340133667]], [[16, 171, 196, 154, 71, 229], [5.960464477539063e-08, 0.06084948778152466, 0.06248915195465088, 0.06671041250228882, 0.06714320182800293, 0.06777167320251465]], [[17, 305, 36, 100, 57, 388], [0.0, 0.048119425773620605, 0.05619388818740845, 0.058135986328125, 0.06001162528991699, 0.06094622611999512]], [[18, 213, 253, 366, 198, 143], [5.960464477539063e-08, 0.0709906816482544, 0.073921799659729, 0.07414793968200684, 0.07428687810897827, 0.07432305812835693]], [[19, 152, 315, 170, 268, 215], [1.1920928955078125e-07, 0.04561346769332886, 0.04969894886016846, 0.054750144481658936, 0.05508875846862793, 0.055826783180236816]], [[20, 347, 231, 304, 281, 289], [0.0, 0.048122286796569824, 0.05073964595794678, 0.05105018615722656, 0.051641106605529785, 0.05222505331039429]], [[21, 181, 62, 310, 262, 280], [2.384185791015625e-07, 0.09735721349716187, 0.10330069065093994, 0.11817789077758789, 0.11947906017303467, 0.14250165224075317]], [[22, 332, 305, 100, 4, 23], [0.0, 0.06321287155151367, 0.07300567626953125, 0.07520925998687744, 0.08097869157791138, 0.08376157283782959]], [[23, 388, 257, 57, 297, 248], [0.0, 0.0681842565536499, 0.07428377866744995, 0.08000856637954712, 0.08050918579101562, 0.080982506275177]], [[24, 41, 78, 208, 382, 35], [5.960464477539063e-08, 0.07531964778900146, 0.07827329635620117, 0.09844052791595459, 0.10058444738388062, 0.10261309146881104]], [[25, 373, 288, 331, 86, 363], [0.0, 0.04675966501235962, 0.054194509983062744, 0.0570104718208313, 0.058488309383392334, 0.06268560886383057]], [[26, 295, 88, 40, 276, 203], [0.0, 0.12375527620315552, 0.12604349851608276, 0.13150596618652344, 0.13273584842681885, 0.1337190866470337]], [[27, 104, 291, 121, 88, 336], [0.0, 0.1282169222831726, 0.12951922416687012, 0.13412004709243774, 0.1601942777633667, 0.16911864280700684]], [[28, 226, 388, 23, 251, 156], [0.0, 0.09043443202972412, 0.09421920776367188, 0.0944938063621521, 0.09689211845397949, 0.09729921817779541]], [[29, 118, 125, 194, 355, 318], [0.0, 0.09765148162841797, 0.10014116764068604, 0.10909831523895264, 0.10919511318206787, 0.11081206798553467]], [[30, 76, 375, 337, 52, 84], [2.384185791015625e-07, 0.06300628185272217, 0.06751018762588501, 0.07941257953643799, 0.08168601989746094, 0.08268928527832031]], [[31, 255, 236, 75, 247, 151], [5.960464477539063e-08, 0.07916033267974854, 0.0918511152267456, 0.09806352853775024, 0.09809231758117676, 0.10154247283935547]], [[32, 76, 242, 210, 375, 309], [0.0, 0.05519449710845947, 0.06627368927001953, 0.0665442943572998, 0.0674518346786499, 0.07316380739212036]], [[33, 10, 287, 242, 3, 352], [0.0, 0.05690276622772217, 0.0674174427986145, 0.07973748445510864, 0.08629518747329712, 0.08706068992614746]], [[34, 259, 304, 13, 49, 18], [0.0, 0.06770718097686768, 0.08926331996917725, 0.09101736545562744, 0.09148478507995605, 0.09419906139373779]], [[35, 197, 78, 280, 255, 254], [1.1920928955078125e-07, 0.08288902044296265, 0.08446109294891357, 0.08866453170776367, 0.09202700853347778, 0.09258615970611572]], [[36, 388, 17, 326, 305, 349], [1.1920928955078125e-07, 0.055124640464782715, 0.05619388818740845, 0.06192493438720703, 0.06493300199508667, 0.06606364250183105]], [[37, 346, 387, 70, 90, 80], [1.1920928955078125e-07, 0.0757865309715271, 0.0757865309715271, 0.07733356952667236, 0.07820868492126465, 0.08028900623321533]], [[38, 276, 140, 320, 63, 147], [0.0, 0.07209646701812744, 0.07427352666854858, 0.0779600739479065, 0.07893538475036621, 0.08000361919403076]], [[39, 152, 303, 215, 248, 182], [0.0, 0.04680907726287842, 0.046988725662231445, 0.05009472370147705, 0.05115067958831787, 0.05171966552734375]], [[40, 69, 234, 140, 63, 351], [1.1920928955078125e-07, 0.05321848392486572, 0.05599021911621094, 0.05893898010253906, 0.06051325798034668, 0.06151282787322998]], [[41, 24, 273, 78, 258, 382], [0.0, 0.07531964778900146, 0.08988595008850098, 0.0967136025428772, 0.10013306140899658, 0.10073888301849365]], [[42, 290, 189, 265, 127, 286], [0.0, 0.19229137897491455, 0.1951528787612915, 0.19584250450134277, 0.1972649097442627, 0.1972818374633789]], [[43, 0, 370, 356, 228, 30], [0.0, 0.15947985649108887, 0.18010371923446655, 0.18024855852127075, 0.18984311819076538, 0.19423627853393555]], [[44, 312, 267, 276, 266, 354], [1.1920928955078125e-07, 0.11025482416152954, 0.11132943630218506, 0.11678493022918701, 0.11826646327972412, 0.12106072902679443]], [[45, 229, 71, 12, 378, 96], [0.0, 0.03085505962371826, 0.033685922622680664, 0.036500394344329834, 0.03766930103302002, 0.04120278358459473]], [[46, 164, 313, 247, 163, 176], [2.384185791015625e-07, 0.029860258102416992, 0.03459441661834717, 0.03558027744293213, 0.040169358253479004, 0.041584789752960205]], [[47, 313, 46, 235, 117, 193], [1.7881393432617188e-07, 0.05039703845977783, 0.05306112766265869, 0.05788624286651611, 0.060740113258361816, 0.060788512229919434]], [[48, 369, 210, 2, 20, 231], [1.1920928955078125e-07, 0.13578474521636963, 0.15226519107818604, 0.1604372262954712, 0.16494297981262207, 0.1657320261001587]], [[49, 211, 224, 359, 95, 213], [0.0, 0.06111502647399902, 0.06611239910125732, 0.0689084529876709, 0.07265043258666992, 0.07348579168319702]], [[50, 386, 384, 305, 232, 4], [1.1920928955078125e-07, 0.07172131538391113, 0.08286666870117188, 0.08391672372817993, 0.08942997455596924, 0.0896415114402771]], [[51, 375, 30, 76, 309, 84], [0.0, 0.08408212661743164, 0.08719950914382935, 0.08947622776031494, 0.09042227268218994, 0.09813308715820312]], [[52, 76, 337, 210, 375, 168], [0.0, 0.05523824691772461, 0.07480299472808838, 0.07864648103713989, 0.07992011308670044, 0.08027136325836182]], [[53, 383, 299, 49, 151, 95], [0.0, 0.09847688674926758, 0.11616277694702148, 0.11667525768280029, 0.126784086227417, 0.12686115503311157]], [[54, 191, 367, 383, 122, 26], [1.1920928955078125e-07, 0.17346352338790894, 0.19414258003234863, 0.20784175395965576, 0.2285834550857544, 0.24666500091552734]], [[55, 10, 348, 60, 67, 178], [0.0, 0.05749237537384033, 0.06219989061355591, 0.06703293323516846, 0.0672234296798706, 0.06919103860855103]], [[56, 266, 144, 167, 388, 341], [1.1920928955078125e-07, 0.07561671733856201, 0.08944547176361084, 0.0911402702331543, 0.10190999507904053, 0.10326147079467773]], [[57, 305, 17, 388, 100, 209], [1.1920928955078125e-07, 0.058255672454833984, 0.06001162528991699, 0.06017744541168213, 0.06697487831115723, 0.06823241710662842]], [[58, 380, 142, 100, 384, 99], [0.0, 0.11171996593475342, 0.12208354473114014, 0.12288045883178711, 0.1242029070854187, 0.12581968307495117]], [[59, 271, 286, 179, 189, 123], [0.0, 0.07416236400604248, 0.1211060881614685, 0.13071811199188232, 0.13854634761810303, 0.14639973640441895]], [[60, 67, 348, 10, 178, 55], [5.960464477539063e-08, 0.00019949674606323242, 0.049979567527770996, 0.055718421936035156, 0.059829115867614746, 0.06703293323516846]], [[61, 253, 213, 366, 146, 321], [2.384185791015625e-07, 0.06911629438400269, 0.06999897956848145, 0.07548487186431885, 0.07614243030548096, 0.07694381475448608]], [[62, 310, 21, 181, 262, 380], [0.0, 0.10104107856750488, 0.10330069065093994, 0.11214053630828857, 0.11530011892318726, 0.1395357847213745]], [[63, 140, 69, 351, 283, 336], [0.0, 0.04347902536392212, 0.047768354415893555, 0.05444133281707764, 0.05565601587295532, 0.05622696876525879]], [[64, 75, 279, 159, 247, 283], [0.0, 0.11140668392181396, 0.11970376968383789, 0.14227449893951416, 0.14246320724487305, 0.14272010326385498]], [[65, 94, 56, 167, 118, 318], [0.0, 0.11101210117340088, 0.157537579536438, 0.15797024965286255, 0.1805347204208374, 0.18264400959014893]], [[66, 71, 96, 12, 229, 45], [1.1920928955078125e-07, 0.04769331216812134, 0.052574753761291504, 0.05407702922821045, 0.05789744853973389, 0.058569908142089844]], [[67, 60, 348, 10, 178, 55], [1.1920928955078125e-07, 0.00019949674606323242, 0.050065040588378906, 0.05534982681274414, 0.05942332744598389, 0.0672234296798706]], [[68, 212, 256, 296, 286, 123], [5.960464477539063e-08, 0.08544027805328369, 0.09655654430389404, 0.10494279861450195, 0.11514413356781006, 0.12154465913772583]], [[69, 140, 351, 63, 336, 157], [0.0, 0.04053759574890137, 0.040578365325927734, 0.047768354415893555, 0.05072653293609619, 0.05141538381576538]], [[70, 248, 264, 215, 315, 39], [0.0, 0.04600030183792114, 0.048271775245666504, 0.0512545108795166, 0.052302777767181396, 0.05254089832305908]], [[71, 12, 229, 45, 96, 343], [1.7881393432617188e-07, 0.029432058334350586, 0.033486127853393555, 0.033685922622680664, 0.041126906871795654, 0.04268908500671387]], [[72, 210, 82, 168, 139, 2], [0.0, 0.047621190547943115, 0.05227929353713989, 0.05517059564590454, 0.0589221715927124, 0.06035196781158447]], [[73, 327, 92, 45, 12, 343], [0.0, 0.12128210067749023, 0.12262946367263794, 0.13158291578292847, 0.1322295069694519, 0.13942402601242065]], [[74, 189, 389, 237, 247, 157], [1.1920928955078125e-07, 0.07308119535446167, 0.08133608102798462, 0.08440577983856201, 0.08580482006072998, 0.08629906177520752]], [[75, 247, 307, 283, 164, 237], [0.0, 0.04952383041381836, 0.05635339021682739, 0.05775421857833862, 0.059663236141204834, 0.06007826328277588]], [[76, 32, 52, 375, 210, 30], [0.0, 0.05519449710845947, 0.05523824691772461, 0.05726778507232666, 0.0587693452835083, 0.06300628185272217]], [[77, 336, 63, 164, 69, 234], [0.0, 0.058626770973205566, 0.06292641162872314, 0.06857079267501831, 0.06863999366760254, 0.06908917427062988]], [[78, 24, 35, 125, 258, 273], [0.0, 0.07827329635620117, 0.08446109294891357, 0.08523368835449219, 0.09212398529052734, 0.09268152713775635]], [[79, 289, 213, 379, 253, 366], [1.1920928955078125e-07, 0.08480453491210938, 0.08493554592132568, 0.08774226903915405, 0.09152603149414062, 0.09398150444030762]], [[80, 388, 85, 215, 264, 315], [2.384185791015625e-07, 0.06761443614959717, 0.06820231676101685, 0.06900930404663086, 0.0700383186340332, 0.07165968418121338]], [[81, 129, 107, 261, 154, 6], [0.0, 0.13627099990844727, 0.15081804990768433, 0.15843087434768677, 0.16914242506027222, 0.16987240314483643]], [[82, 168, 281, 139, 72, 311], [0.0, 0.047386229038238525, 0.04809534549713135, 0.05102431774139404, 0.05227929353713989, 0.05482804775238037]], [[83, 216, 350, 372, 253, 46], [0.0, 0.07874304056167603, 0.08155572414398193, 0.08182984590530396, 0.08225172758102417, 0.0831761360168457]], [[84, 168, 166, 139, 210, 155], [1.7881393432617188e-07, 0.05246996879577637, 0.058403193950653076, 0.05912673473358154, 0.06598472595214844, 0.06718742847442627]], [[85, 385, 250, 80, 346, 387], [0.0, 0.05518990755081177, 0.06770020723342896, 0.06820231676101685, 0.06838119029998779, 0.06838119029998779]], [[86, 288, 303, 25, 190, 373], [1.1920928955078125e-07, 0.04978358745574951, 0.05153530836105347, 0.058488309383392334, 0.059221506118774414, 0.060619354248046875]], [[87, 254, 137, 329, 217, 35], [0.0, 0.05593407154083252, 0.07995688915252686, 0.09236836433410645, 0.10273963212966919, 0.10481995344161987]], [[88, 295, 199, 203, 63, 93], [1.1920928955078125e-07, 0.05892181396484375, 0.07467961311340332, 0.084739089012146, 0.08537513017654419, 0.0862848162651062]], [[89, 149, 166, 168, 84, 270], [0.0, 0.050150394439697266, 0.08506548404693604, 0.08782964944839478, 0.08805763721466064, 0.09040260314941406]], [[90, 387, 346, 315, 207, 297], [0.0, 0.05682116746902466, 0.05682116746902466, 0.061657845973968506, 0.06739163398742676, 0.06745648384094238]], [[91, 176, 313, 46, 164, 151], [2.980232238769531e-07, 0.04372429847717285, 0.048770129680633545, 0.04907935857772827, 0.050143301486968994, 0.05268430709838867]], [[92, 12, 229, 45, 71, 378], [0.0, 0.04144144058227539, 0.04464578628540039, 0.04483771324157715, 0.049227356910705566, 0.05665326118469238]], [[93, 88, 295, 199, 203, 63], [5.960464477539063e-08, 0.0862848162651062, 0.08801358938217163, 0.08861398696899414, 0.09171092510223389, 0.10052341222763062]], [[94, 65, 56, 129, 58, 167], [0.0, 0.11101216077804565, 0.11443078517913818, 0.11567211151123047, 0.13159215450286865, 0.14105665683746338]], [[95, 224, 285, 253, 321, 213], [0.0, 0.038228750228881836, 0.045319557189941406, 0.045413196086883545, 0.04714524745941162, 0.047507524490356445]], [[96, 229, 378, 71, 45, 12], [0.0, 0.0316767692565918, 0.036698341369628906, 0.041126906871795654, 0.04120278358459473, 0.04339563846588135]], [[97, 205, 170, 263, 19, 319], [2.384185791015625e-07, 0.058473944664001465, 0.06488692760467529, 0.06861639022827148, 0.07781904935836792, 0.08035469055175781]], [[98, 241, 255, 31, 197, 64], [0.0, 0.11433207988739014, 0.14628684520721436, 0.14921057224273682, 0.1501874327659607, 0.1519148349761963]], [[99, 142, 292, 386, 384, 4], [2.384185791015625e-07, 0.05203735828399658, 0.05942487716674805, 0.060056328773498535, 0.06892013549804688, 0.07127273082733154]], [[100, 305, 4, 17, 386, 36], [0.0, 0.04670250415802002, 0.057402968406677246, 0.058135986328125, 0.06205320358276367, 0.06682336330413818]], [[101, 95, 225, 321, 253, 313], [0.0, 0.061447858810424805, 0.06223863363265991, 0.06277120113372803, 0.06317341327667236, 0.06344658136367798]], [[102, 116, 196, 16, 71, 12], [0.0, 0.10424625873565674, 0.10933911800384521, 0.11369442939758301, 0.11446934938430786, 0.11686515808105469]], [[103, 320, 217, 373, 254, 363], [1.7881393432617188e-07, 0.0886383056640625, 0.09232902526855469, 0.1002190113067627, 0.10117149353027344, 0.1013866662979126]], [[104, 121, 238, 235, 63, 5], [1.1920928955078125e-07, 0.06068903207778931, 0.0809105634689331, 0.08257389068603516, 0.08702385425567627, 0.08930325508117676]], [[105, 112, 229, 154, 378, 327], [5.960464477539063e-08, 5.960464477539063e-08, 0.05917179584503174, 0.06011837720870972, 0.062169671058654785, 0.06381475925445557]], [[106, 190, 307, 235, 86, 234], [0.0, 0.06543266773223877, 0.06772446632385254, 0.07941097021102905, 0.0797114372253418, 0.0801997184753418]], [[107, 154, 378, 12, 229, 71], [5.960464477539063e-08, 0.04877239465713501, 0.050668418407440186, 0.055678725242614746, 0.056058406829833984, 0.05793118476867676]], [[108, 328, 249, 138, 275, 220], [0.0, 0.07177650928497314, 0.08685648441314697, 0.12503087520599365, 0.12726235389709473, 0.12866270542144775]], [[109, 355, 241, 364, 180, 159], [0.0, 0.11791908740997314, 0.13346326351165771, 0.13997960090637207, 0.1401059627532959, 0.14248263835906982]], [[110, 384, 16, 386, 100, 232], [0.0, 0.06843173503875732, 0.09134280681610107, 0.09449940919876099, 0.09659075736999512, 0.09662806987762451]], [[111, 196, 384, 102, 16, 171], [0.0, 0.11676740646362305, 0.11820906400680542, 0.12492799758911133, 0.12523800134658813, 0.1256476640701294]], [[105, 112, 229, 154, 378, 327], [5.960464477539063e-08, 5.960464477539063e-08, 0.05917179584503174, 0.06011837720870972, 0.062169671058654785, 0.06381475925445557]], [[113, 124, 201, 88, 385, 123], [0.0, 0.06997668743133545, 0.08683311939239502, 0.09911012649536133, 0.10122346878051758, 0.10211563110351562]], [[114, 289, 213, 146, 379, 304], [0.0, 0.061497390270233154, 0.0671466588973999, 0.06792783737182617, 0.07411056756973267, 0.07517170906066895]], [[115, 253, 216, 350, 224, 213], [2.384185791015625e-07, 0.059723496437072754, 0.061445772647857666, 0.06264358758926392, 0.07254195213317871, 0.07257330417633057]], [[116, 333, 332, 102, 120, 382], [0.0, 0.07187950611114502, 0.08473366498947144, 0.10424625873565674, 0.11376458406448364, 0.1228262186050415]], [[117, 237, 247, 313, 46, 164], [0.0, 0.03872096538543701, 0.040894508361816406, 0.043010056018829346, 0.04485189914703369, 0.04846489429473877]], [[118, 167, 29, 266, 381, 56], [0.0, 0.09618115425109863, 0.09765148162841797, 0.10769784450531006, 0.12497621774673462, 0.12993431091308594]], [[119, 183, 207, 177, 37, 318], [0.0, 0.12758320569992065, 0.1407933235168457, 0.14410948753356934, 0.16429543495178223, 0.16598790884017944]], [[120, 116, 110, 333, 365, 332], [0.0, 0.11376458406448364, 0.11943799257278442, 0.1230822205543518, 0.13411009311676025, 0.14439153671264648]], [[121, 104, 238, 235, 47, 46], [0.0, 0.06068903207778931, 0.06908172369003296, 0.0730048418045044, 0.07663142681121826, 0.08185994625091553]], [[122, 367, 357, 353, 361, 114], [0.0, 0.10035276412963867, 0.12486898899078369, 0.12508511543273926, 0.12585455179214478, 0.13232958316802979]], [[123, 256, 290, 113, 286, 263], [0.0, 0.09953594207763672, 0.10008323192596436, 0.10211563110351562, 0.10259056091308594, 0.10428380966186523]], [[124, 385, 113, 85, 158, 207], [5.960464477539063e-08, 0.06751072406768799, 0.06997668743133545, 0.07188832759857178, 0.08282577991485596, 0.08580648899078369]], [[125, 273, 78, 280, 35, 29], [1.1920928955078125e-07, 0.08050459623336792, 0.08523368835449219, 0.09892523288726807, 0.09948348999023438, 0.10014116764068604]], [[126, 212, 162, 256, 296, 265], [0.0, 0.11717283725738525, 0.12505805492401123, 0.12548720836639404, 0.13098573684692383, 0.13601279258728027]], [[127, 290, 302, 354, 144, 381], [0.0, 0.08490544557571411, 0.09099435806274414, 0.09609770774841309, 0.10459303855895996, 0.10605096817016602]], [[128, 20, 374, 231, 289, 168], [0.0, 0.06490373611450195, 0.06525397300720215, 0.06637740135192871, 0.06836909055709839, 0.06965410709381104]], [[129, 174, 11, 100, 305, 386], [1.1920928955078125e-07, 0.0763406753540039, 0.07783496379852295, 0.07945269346237183, 0.08530986309051514, 0.08531677722930908]], [[130, 157, 288, 172, 351, 303], [0.0, 0.04884684085845947, 0.0528639554977417, 0.0539630651473999, 0.05597800016403198, 0.059380173683166504]], [[131, 335, 308, 1, 14, 266], [0.0, 0.07167452573776245, 0.0836445689201355, 0.09530746936798096, 0.10374307632446289, 0.11023187637329102]], [[188, 132, 282, 246, 342, 163], [0.0, 0.0, 0.03051072359085083, 0.042162418365478516, 0.04667508602142334, 0.049598515033721924]], [[133, 284, 95, 285, 224, 213], [0.0, 0.051020264625549316, 0.05794936418533325, 0.05939239263534546, 0.06011301279067993, 0.062019169330596924]], [[134, 342, 132, 188, 282, 321], [2.384185791015625e-07, 0.05448150634765625, 0.05530667304992676, 0.05530667304992676, 0.05598604679107666, 0.05657905340194702]], [[135, 326, 349, 4, 341, 305], [1.1920928955078125e-07, 0.08756411075592041, 0.09014558792114258, 0.0955694317817688, 0.09764736890792847, 0.09987294673919678]], [[136, 372, 246, 132, 188, 321], [0.0, 0.054118454456329346, 0.0567631721496582, 0.05791270732879639, 0.05791270732879639, 0.05853301286697388]], [[137, 329, 315, 248, 39, 387], [1.7881393432617188e-07, 0.04169309139251709, 0.06096470355987549, 0.06104719638824463, 0.061425626277923584, 0.06146848201751709]], [[138, 236, 255, 151, 176, 163], [1.1920928955078125e-07, 0.10861378908157349, 0.11450457572937012, 0.11727523803710938, 0.12122660875320435, 0.12285304069519043]], [[139, 168, 231, 155, 166, 13], [1.1920928955078125e-07, 0.038502275943756104, 0.045600056648254395, 0.04667651653289795, 0.048254430294036865, 0.04930591583251953]], [[140, 175, 351, 69, 63, 206], [1.1920928955078125e-07, 0.039841413497924805, 0.040223777294158936, 0.04053759574890137, 0.04347902536392212, 0.04510903358459473]], [[141, 254, 181, 208, 340, 248], [0.0, 0.10457015037536621, 0.11484718322753906, 0.12001848220825195, 0.12691915035247803, 0.12879371643066406]], [[142, 99, 292, 386, 384, 4], [0.0, 0.05203735828399658, 0.061025798320770264, 0.06602048873901367, 0.069080650806427, 0.08171546459197998]], [[143, 18, 219, 114, 165, 133], [0.0, 0.07432305812835693, 0.0778089165687561, 0.08044552803039551, 0.08148324489593506, 0.082938551902771]], [[144, 56, 150, 302, 127, 266], [0.0, 0.08944547176361084, 0.0936194658279419, 0.10178756713867188, 0.10459303855895996, 0.11129051446914673]], [[145, 333, 365, 50, 222, 110], [5.960464477539063e-08, 0.16857504844665527, 0.17762494087219238, 0.1813753843307495, 0.186751127243042, 0.19355249404907227]], [[146, 253, 224, 213, 202, 321], [0.0, 0.04297149181365967, 0.04311162233352661, 0.047022104263305664, 0.0490720272064209, 0.05018973350524902]], [[147, 140, 283, 91, 247, 46], [1.7881393432617188e-07, 0.0520288348197937, 0.05517733097076416, 0.05667293071746826, 0.05982697010040283, 0.06205064058303833]], [[148, 4, 161, 110, 171, 232], [1.1920928955078125e-07, 0.12286829948425293, 0.13056790828704834, 0.13077515363693237, 0.13434815406799316, 0.1363142728805542]], [[149, 89, 168, 296, 166, 84], [0.0, 0.050150394439697266, 0.11693650484085083, 0.11724996566772461, 0.11926507949829102, 0.1200377345085144]], [[150, 385, 170, 263, 315, 371], [0.0, 0.06793951988220215, 0.07390886545181274, 0.07398378849029541, 0.07402956485748291, 0.07626998424530029]], [[151, 236, 176, 247, 313, 163], [1.1920928955078125e-07, 0.03054708242416382, 0.03439533710479736, 0.03513038158416748, 0.03524297475814819, 0.041649699211120605]], [[152, 315, 215, 264, 170, 297], [0.0, 0.029022693634033203, 0.0330541729927063, 0.03768515586853027, 0.04138529300689697, 0.04211932420730591]], [[153, 214, 354, 278, 330, 130], [0.0, 0.076576828956604, 0.08762705326080322, 0.10594677925109863, 0.10622787475585938, 0.10626578330993652]], [[154, 378, 229, 96, 261, 171], [0.0, 0.03307163715362549, 0.03770929574966431, 0.0436440110206604, 0.046885788440704346, 0.047960102558135986]], [[155, 139, 168, 166, 13, 231], [0.0, 0.04667651653289795, 0.048741936683654785, 0.04926431179046631, 0.05151861906051636, 0.05759221315383911]], [[156, 326, 208, 5, 248, 28], [1.1920928955078125e-07, 0.08948791027069092, 0.09110891819000244, 0.09485805034637451, 0.09494328498840332, 0.09729921817779541]], [[157, 237, 234, 283, 351, 130], [0.0, 0.03891444206237793, 0.041809797286987305, 0.04224354028701782, 0.04318952560424805, 0.04884684085845947]], [[158, 205, 315, 387, 346, 152], [0.0, 0.06234467029571533, 0.06409400701522827, 0.06934535503387451, 0.06934535503387451, 0.06979984045028687]], [[159, 241, 125, 180, 194, 64], [0.0, 0.12192630767822266, 0.13011354207992554, 0.13670051097869873, 0.13846337795257568, 0.14227449893951416]], [[160, 205, 97, 170, 158, 319], [0.0, 0.07380890846252441, 0.08169972896575928, 0.09030342102050781, 0.09129774570465088, 0.09142541885375977]], [[161, 142, 4, 148, 100, 306], [0.0, 0.11919295787811279, 0.12914371490478516, 0.13056790828704834, 0.13110291957855225, 0.1322256326675415]], [[162, 115, 270, 356, 253, 216], [5.960464477539063e-08, 0.08436042070388794, 0.1007341742515564, 0.10078573226928711, 0.10137671232223511, 0.10393643379211426]], [[163, 202, 46, 176, 247, 151], [0.0, 0.038528621196746826, 0.040169358253479004, 0.04089045524597168, 0.04152274131774902, 0.041649699211120605]], [[164, 46, 247, 176, 313, 151], [1.1920928955078125e-07, 0.029860258102416992, 0.03600424528121948, 0.040330350399017334, 0.04087251424789429, 0.04346191883087158]], [[165, 313, 202, 176, 321, 46], [0.0, 0.04685312509536743, 0.04824185371398926, 0.05150878429412842, 0.052893638610839844, 0.05407130718231201]], [[166, 168, 139, 155, 231, 13], [0.0, 0.04307818412780762, 0.048254430294036865, 0.04926431179046631, 0.055117011070251465, 0.05737227201461792]], [[167, 56, 266, 118, 302, 44], [0.0, 0.0911402702331543, 0.09277230501174927, 0.09618115425109863, 0.11065590381622314, 0.1223975419998169]], [[168, 139, 166, 82, 231, 155], [1.1920928955078125e-07, 0.038502275943756104, 0.04307818412780762, 0.047386229038238525, 0.0475611686706543, 0.048741936683654785]], [[169, 2, 242, 82, 287, 210], [0.0, 0.14898580312728882, 0.16719865798950195, 0.17281115055084229, 0.17548668384552002, 0.17557591199874878]], [[170, 152, 264, 248, 215, 315], [0.0, 0.04138529300689697, 0.04343944787979126, 0.04387307167053223, 0.0440831184387207, 0.044556260108947754]], [[171, 154, 71, 196, 96, 229], [0.0, 0.047960102558135986, 0.056061625480651855, 0.05887669324874878, 0.059157371520996094, 0.05950188636779785]], [[172, 185, 303, 190, 288, 351], [1.1920928955078125e-07, 0.03271961212158203, 0.042091548442840576, 0.044192731380462646, 0.04748642444610596, 0.04832947254180908]], [[173, 152, 315, 264, 297, 248], [5.960464477539063e-08, 0.05035513639450073, 0.05108517408370972, 0.054639577865600586, 0.05777186155319214, 0.05777931213378906]], [[174, 129, 11, 124, 245, 56], [0.0, 0.0763406753540039, 0.1170300841331482, 0.12576216459274292, 0.1260395050048828, 0.12780272960662842]], [[175, 140, 206, 260, 69, 351], [0.0, 0.039841413497924805, 0.04417717456817627, 0.04677695035934448, 0.05299878120422363, 0.053450584411621094]], [[176, 151, 8, 321, 313, 164], [0.0, 0.03439533710479736, 0.035824596881866455, 0.03728067874908447, 0.03986799716949463, 0.04033041000366211]], [[177, 335, 318, 183, 131, 200], [0.0, 0.09554845094680786, 0.09661346673965454, 0.10847395658493042, 0.11351335048675537, 0.12389826774597168]], [[178, 10, 348, 67, 60, 352], [2.384185791015625e-07, 0.04849761724472046, 0.057170331478118896, 0.05942332744598389, 0.059829115867614746, 0.06130194664001465]], [[179, 336, 40, 59, 324, 189], [0.0, 0.12969249486923218, 0.1300143003463745, 0.13071811199188232, 0.1313653588294983, 0.13262450695037842]], [[180, 364, 191, 159, 109, 294], [1.1920928955078125e-07, 0.10436761379241943, 0.13479876518249512, 0.13670051097869873, 0.1401059627532959, 0.14787226915359497]], [[181, 340, 262, 21, 280, 254], [0.0, 0.08431589603424072, 0.0846407413482666, 0.09735721349716187, 0.10347855091094971, 0.10864698886871338]], [[182, 215, 39, 264, 152, 248], [1.1920928955078125e-07, 0.0442354679107666, 0.05171966552734375, 0.05360865592956543, 0.05443882942199707, 0.05518054962158203]], [[183, 318, 90, 177, 37, 207], [0.0, 0.10338234901428223, 0.10645782947540283, 0.10847395658493042, 0.11037266254425049, 0.11133712530136108]], [[184, 354, 334, 310, 153, 127], [0.0, 0.12634629011154175, 0.12635016441345215, 0.1350364089012146, 0.13823461532592773, 0.1463993787765503]], [[185, 172, 303, 190, 206, 351], [2.384185791015625e-07, 0.03271961212158203, 0.04315638542175293, 0.04532593488693237, 0.04881632328033447, 0.05002951622009277]], [[186, 270, 304, 13, 289, 231], [0.0, 0.0514562726020813, 0.05253458023071289, 0.053816914558410645, 0.05741381645202637, 0.05839073657989502]], [[187, 316, 153, 354, 310, 74], [0.0, 0.10764938592910767, 0.11472475528717041, 0.12159013748168945, 0.13145673274993896, 0.13740986585617065]], [[188, 132, 282, 246, 342, 163], [0.0, 0.0, 0.03051072359085083, 0.042162418365478516, 0.04667508602142334, 0.049598515033721924]], [[189, 74, 265, 286, 324, 117], [0.0, 0.07308119535446167, 0.08028513193130493, 0.08207583427429199, 0.08360898494720459, 0.0908135175704956]], [[190, 238, 172, 185, 234, 157], [0.0, 0.04393422603607178, 0.044192731380462646, 0.04532593488693237, 0.04832237958908081, 0.05062073469161987]], [[191, 367, 383, 219, 353, 321], [1.1920928955078125e-07, 0.07330566644668579, 0.09736895561218262, 0.10805535316467285, 0.11266076564788818, 0.12059873342514038]], [[192, 267, 308, 269, 14, 86], [0.0, 0.06974786520004272, 0.0913735032081604, 0.09656786918640137, 0.09775185585021973, 0.09786266088485718]], [[193, 247, 283, 313, 164, 46], [0.0, 0.039536237716674805, 0.04009842872619629, 0.04227590560913086, 0.04506206512451172, 0.04586458206176758]], [[194, 258, 29, 273, 125, 78], [0.0, 0.08314931392669678, 0.10909831523895264, 0.12307608127593994, 0.12335461378097534, 0.13683819770812988]], [[195, 68, 263, 265, 115, 271], [0.0, 0.16237014532089233, 0.16380560398101807, 0.1642734408378601, 0.16475909948349, 0.165144681930542]], [[196, 229, 71, 96, 12, 261], [1.7881393432617188e-07, 0.04011428356170654, 0.04373753070831299, 0.04440498352050781, 0.04806393384933472, 0.049077391624450684]], [[197, 35, 280, 255, 340, 78], [0.0, 0.08288908004760742, 0.08588320016860962, 0.08636099100112915, 0.09568792581558228, 0.10139358043670654]], [[198, 95, 186, 213, 289, 13], [1.1920928955078125e-07, 0.05938601493835449, 0.05971860885620117, 0.06081593036651611, 0.06375157833099365, 0.06488990783691406]], [[199, 295, 88, 46, 235, 256], [0.0, 0.06582975387573242, 0.07467961311340332, 0.08034956455230713, 0.08534824848175049, 0.08859682083129883]], [[200, 267, 276, 90, 266, 318], [0.0, 0.08372175693511963, 0.09043216705322266, 0.09410595893859863, 0.09464442729949951, 0.09950971603393555]], [[201, 203, 295, 276, 130, 217], [5.960464477539063e-08, 0.05367302894592285, 0.0641709566116333, 0.06987738609313965, 0.07016229629516602, 0.07367247343063354]], [[202, 377, 163, 313, 151, 46], [5.960464477539063e-08, 0.03765213489532471, 0.038528621196746826, 0.04629582166671753, 0.04703104496002197, 0.04782074689865112]], [[203, 201, 295, 320, 217, 63], [0.0, 0.05367302894592285, 0.06436455249786377, 0.0712890625, 0.07761603593826294, 0.07933443784713745]], [[204, 303, 39, 363, 288, 315], [1.1920928955078125e-07, 0.05359905958175659, 0.06129831075668335, 0.06167316436767578, 0.06218141317367554, 0.06325232982635498]], [[205, 97, 158, 160, 170, 19], [0.0, 0.058473944664001465, 0.06234467029571533, 0.07380890846252441, 0.0769963264465332, 0.07950949668884277]], [[206, 175, 140, 185, 172, 283], [0.0, 0.04417717456817627, 0.04510903358459473, 0.04881632328033447, 0.049293339252471924, 0.049936532974243164]], [[207, 276, 90, 124, 354, 37], [0.0, 0.05671370029449463, 0.06739163398742676, 0.08580648899078369, 0.08856755495071411, 0.09021544456481934]], [[208, 156, 382, 24, 41, 141], [0.0, 0.09110891819000244, 0.09255808591842651, 0.09844052791595459, 0.11123883724212646, 0.12001848220825195]], [[209, 341, 257, 388, 248, 297], [0.0, 0.052298665046691895, 0.052356839179992676, 0.059981346130371094, 0.06338274478912354, 0.06636857986450195]], [[210, 72, 168, 2, 139, 82], [0.0, 0.047621190547943115, 0.05250430107116699, 0.05474531650543213, 0.05731761455535889, 0.057859063148498535]], [[211, 224, 366, 95, 285, 359], [0.0, 0.04029190540313721, 0.046714723110198975, 0.04931008815765381, 0.04990732669830322, 0.05194205045700073]], [[212, 296, 256, 68, 83, 253], [5.960464477539063e-08, 0.061678946018218994, 0.06460320949554443, 0.08544027805328369, 0.09528481960296631, 0.09984481334686279]], [[213, 253, 299, 366, 379, 146], [1.1920928955078125e-07, 0.034073472023010254, 0.044950902462005615, 0.04644334316253662, 0.04664558172225952, 0.047022104263305664]], [[214, 153, 130, 237, 283, 354], [0.0, 0.076576828956604, 0.07987087965011597, 0.08594679832458496, 0.08641105890274048, 0.08822894096374512]], [[215, 315, 152, 297, 264, 248], [0.0, 0.03122788667678833, 0.0330541729927063, 0.03325831890106201, 0.03361070156097412, 0.0337100625038147]], [[216, 253, 350, 115, 321, 299], [0.0, 0.050394296646118164, 0.053394436836242676, 0.061445772647857666, 0.06209397315979004, 0.06213897466659546]], [[217, 320, 140, 137, 63, 303], [0.0, 0.06385838985443115, 0.0667266845703125, 0.06779682636260986, 0.06818455457687378, 0.07030534744262695]], [[218, 62, 9, 322, 135, 150], [0.0, 0.24574607610702515, 0.25244301557540894, 0.2537848949432373, 0.2544664144515991, 0.2551991939544678]], [[219, 299, 321, 213, 253, 224], [0.0, 0.04879504442214966, 0.05218100547790527, 0.05616891384124756, 0.05658745765686035, 0.056980669498443604]], [[220, 275, 299, 188, 132, 213], [1.1920928955078125e-07, 0.07839620113372803, 0.09609067440032959, 0.10004889965057373, 0.10004889965057373, 0.10803067684173584]], [[221, 299, 323, 219, 246, 213], [5.960464477539063e-08, 0.05705660581588745, 0.059783995151519775, 0.06143224239349365, 0.0712653398513794, 0.07286858558654785]], [[222, 306, 226, 50, 28, 22], [0.0, 0.08839988708496094, 0.09808802604675293, 0.09855282306671143, 0.10258936882019043, 0.10683900117874146]], [[223, 202, 165, 372, 146, 46], [0.0, 0.10599768161773682, 0.11256325244903564, 0.11376464366912842, 0.11489713191986084, 0.11684775352478027]], [[224, 95, 321, 211, 253, 350], [1.1920928955078125e-07, 0.038228750228881836, 0.03859192132949829, 0.04029190540313721, 0.04080760478973389, 0.04297339916229248]], [[225, 313, 193, 247, 46, 164], [2.384185791015625e-07, 0.04574239253997803, 0.04641461372375488, 0.05041724443435669, 0.05070233345031738, 0.0545041561126709]], [[226, 57, 388, 305, 23, 349], [0.0, 0.07655215263366699, 0.07695472240447998, 0.0799216628074646, 0.0837939977645874, 0.08413827419281006]], [[227, 123, 263, 290, 59, 97], [5.960464477539063e-08, 0.14671951532363892, 0.14684391021728516, 0.15178614854812622, 0.1536693572998047, 0.15961027145385742]], [[228, 370, 128, 259, 374, 304], [1.7881393432617188e-07, 0.07744860649108887, 0.07922613620758057, 0.08515393733978271, 0.08637106418609619, 0.09057092666625977]], [[229, 378, 45, 96, 71, 12], [0.0, 0.02970176935195923, 0.03085505962371826, 0.0316767692565918, 0.033486127853393555, 0.03492254018783569]], [[230, 339, 303, 288, 351, 336], [0.0, 0.054657578468322754, 0.055512845516204834, 0.05623066425323486, 0.058684587478637695, 0.059938669204711914]], [[231, 13, 139, 281, 168, 20], [0.0, 0.044399380683898926, 0.045600056648254395, 0.04671525955200195, 0.0475611686706543, 0.05073964595794678]], [[232, 305, 386, 384, 292, 4], [1.1920928955078125e-07, 0.06703424453735352, 0.06848669052124023, 0.07342743873596191, 0.08094269037246704, 0.0882001519203186]], [[233, 339, 268, 303, 39, 288], [0.0, 0.04059338569641113, 0.052489399909973145, 0.05279940366744995, 0.05973005294799805, 0.06287527084350586]], [[234, 157, 351, 237, 190, 288], [5.960464477539063e-08, 0.041809797286987305, 0.04629331827163696, 0.04806828498840332, 0.04832237958908081, 0.048908352851867676]], [[235, 46, 307, 47, 117, 190], [2.384185791015625e-07, 0.05465340614318848, 0.057533442974090576, 0.05788624286651611, 0.05819946527481079, 0.05842334032058716]], [[236, 151, 313, 247, 163, 176], [0.0, 0.03054708242416382, 0.04198288917541504, 0.04526472091674805, 0.04932737350463867, 0.0503961443901062]], [[237, 117, 157, 234, 46, 247], [0.0, 0.03872096538543701, 0.03891444206237793, 0.04806828498840332, 0.04839742183685303, 0.04879486560821533]], [[238, 190, 283, 46, 185, 193], [1.1920928955078125e-07, 0.04393422603607178, 0.04766535758972168, 0.049554526805877686, 0.050442516803741455, 0.05430269241333008]], [[239, 352, 10, 178, 348, 67], [0.0, 0.07084167003631592, 0.08190447092056274, 0.08273911476135254, 0.0911741852760315, 0.10066437721252441]], [[240, 250, 341, 209, 85, 251], [0.0, 0.08492350578308105, 0.09451693296432495, 0.1040802001953125, 0.10992419719696045, 0.11272639036178589]], [[241, 98, 159, 109, 64, 194], [0.0, 0.11433207988739014, 0.12192630767822266, 0.13346326351165771, 0.15266716480255127, 0.17041456699371338]], [[242, 287, 3, 32, 2, 33], [1.1920928955078125e-07, 0.04439401626586914, 0.05911374092102051, 0.06627368927001953, 0.07726788520812988, 0.07973748445510864]], [[243, 293, 300, 319, 330, 331], [1.7881393432617188e-07, 0.07479345798492432, 0.07886958122253418, 0.0907595157623291, 0.09081459045410156, 0.09595084190368652]], [[244, 190, 86, 288, 269, 104], [0.0, 0.0859760046005249, 0.08694314956665039, 0.0883176326751709, 0.08976149559020996, 0.09542155265808105]], [[245, 209, 341, 17, 36, 388], [0.0, 0.08879446983337402, 0.09406983852386475, 0.09827637672424316, 0.10112810134887695, 0.10261666774749756]], [[246, 188, 132, 321, 224, 282], [5.960464477539063e-08, 0.042162418365478516, 0.042162418365478516, 0.04614973068237305, 0.047497332096099854, 0.04827314615249634]], [[247, 151, 46, 164, 313, 283], [5.960464477539063e-08, 0.03513038158416748, 0.03558027744293213, 0.03600424528121948, 0.03616070747375488, 0.03636515140533447]], [[248, 264, 297, 215, 388, 315], [0.0, 0.027991533279418945, 0.032820940017700195, 0.0337100625038147, 0.03383636474609375, 0.037406086921691895]], [[249, 328, 361, 108, 323, 284], [0.0, 0.07809829711914062, 0.0789412260055542, 0.08685648441314697, 0.09731101989746094, 0.1051023006439209]], [[250, 341, 85, 170, 209, 251], [2.384185791015625e-07, 0.05126452445983887, 0.06770020723342896, 0.06879866123199463, 0.06937408447265625, 0.07097244262695312]], [[251, 341, 388, 326, 209, 100], [0.0, 0.05367177724838257, 0.06482815742492676, 0.06632876396179199, 0.06644272804260254, 0.06829798221588135]], [[252, 168, 231, 139, 20, 304], [0.0, 0.06338435411453247, 0.06504929065704346, 0.06552678346633911, 0.06628251075744629, 0.06873869895935059]], [[253, 213, 224, 146, 350, 95], [5.960464477539063e-08, 0.034073472023010254, 0.04080760478973389, 0.04297149181365967, 0.04321259260177612, 0.045413196086883545]], [[254, 87, 137, 329, 39, 182], [0.0, 0.05593407154083252, 0.06454432010650635, 0.07064652442932129, 0.08084940910339355, 0.0835336446762085]], [[255, 31, 197, 35, 247, 236], [5.960464477539063e-08, 0.07916033267974854, 0.08636099100112915, 0.09202700853347778, 0.09254544973373413, 0.0929495096206665]], [[256, 212, 199, 88, 286, 295], [0.0, 0.06460320949554443, 0.08859682083129883, 0.08902466297149658, 0.09178006649017334, 0.09236466884613037]], [[257, 209, 388, 248, 341, 264], [2.384185791015625e-07, 0.052356839179992676, 0.05862081050872803, 0.06059980392456055, 0.061239540576934814, 0.06209409236907959]], [[258, 194, 273, 78, 382, 41], [0.0, 0.08314931392669678, 0.09160691499710083, 0.09212398529052734, 0.09972637891769409, 0.10013306140899658]], [[259, 34, 228, 128, 289, 299], [0.0, 0.06770718097686768, 0.08515393733978271, 0.08645570278167725, 0.09383285045623779, 0.09447968006134033]], [[260, 175, 303, 331, 315, 351], [0.0, 0.04677695035934448, 0.05026984214782715, 0.052726566791534424, 0.052922606468200684, 0.05300849676132202]], [[261, 229, 96, 154, 196, 71], [0.0, 0.04361617565155029, 0.04490005970001221, 0.046885788440704346, 0.049077391624450684, 0.051032304763793945]], [[262, 380, 181, 388, 264, 248], [5.960464477539063e-08, 0.06579279899597168, 0.0846407413482666, 0.0911334753036499, 0.09974491596221924, 0.09974539279937744]], [[263, 97, 150, 371, 205, 385], [5.960464477539063e-08, 0.06861639022827148, 0.07398378849029541, 0.07639729976654053, 0.08363115787506104, 0.08503293991088867]], [[264, 248, 215, 315, 388, 152], [0.0, 0.027991533279418945, 0.03361070156097412, 0.034439265727996826, 0.03712153434753418, 0.03768515586853027]], [[265, 189, 216, 136, 83, 115], [0.0, 0.08028513193130493, 0.08032166957855225, 0.08686035871505737, 0.09290587902069092, 0.09560561180114746]], [[266, 56, 267, 264, 388, 248], [0.0, 0.07561671733856201, 0.07990676164627075, 0.09084254503250122, 0.09090793132781982, 0.09234952926635742]], [[267, 192, 276, 90, 266, 269], [1.1920928955078125e-07, 0.06974786520004272, 0.07608139514923096, 0.07759428024291992, 0.07990676164627075, 0.08077740669250488]], [[268, 152, 233, 303, 39, 19], [0.0, 0.0469512939453125, 0.052489399909973145, 0.05345869064331055, 0.05399841070175171, 0.05508875846862793]], [[269, 288, 86, 312, 303, 185], [0.0, 0.055486083030700684, 0.06312799453735352, 0.06374728679656982, 0.06543993949890137, 0.06904160976409912]], [[270, 186, 289, 20, 304, 231], [0.0, 0.0514562726020813, 0.05224037170410156, 0.05715465545654297, 0.05957794189453125, 0.06545329093933105]], [[271, 59, 263, 286, 324, 319], [0.0, 0.07416236400604248, 0.13379919528961182, 0.14302611351013184, 0.1525256633758545, 0.15428918600082397]], [[272, 202, 377, 165, 146, 46], [0.0, 0.07074785232543945, 0.07616078853607178, 0.08292841911315918, 0.08365535736083984, 0.09586316347122192]], [[273, 125, 41, 258, 78, 23], [0.0, 0.08050459623336792, 0.08988595008850098, 0.09160691499710083, 0.09268152713775635, 0.10079669952392578]], [[274, 117, 237, 202, 190, 157], [0.0, 0.06511354446411133, 0.06642013788223267, 0.06781589984893799, 0.07089567184448242, 0.076163649559021]], [[275, 132, 188, 282, 246, 372], [0.0, 0.05321246385574341, 0.05321246385574341, 0.06017589569091797, 0.06959843635559082, 0.07199835777282715]], [[276, 207, 354, 130, 363, 288], [5.960464477539063e-08, 0.05671370029449463, 0.06128227710723877, 0.06226271390914917, 0.06686133146286011, 0.06722378730773926]], [[277, 381, 118, 127, 167, 177], [0.0, 0.15473634004592896, 0.18263989686965942, 0.18882620334625244, 0.19302308559417725, 0.20029878616333008]], [[278, 219, 91, 313, 176, 165], [5.960464477539063e-08, 0.07216066122055054, 0.07420873641967773, 0.07645106315612793, 0.07768899202346802, 0.0789564847946167]], [[279, 5, 238, 307, 14, 190], [2.384185791015625e-07, 0.09229850769042969, 0.09850603342056274, 0.09944677352905273, 0.10949325561523438, 0.10966455936431885]], [[280, 197, 204, 35, 78, 39], [0.0, 0.08588320016860962, 0.0866660475730896, 0.08866453170776367, 0.09372454881668091, 0.0948103666305542]], [[281, 13, 231, 304, 82, 20], [0.0, 0.04092681407928467, 0.04671525955200195, 0.04710507392883301, 0.04809534549713135, 0.051641106605529785]], [[282, 132, 188, 163, 342, 246], [0.0, 0.03051072359085083, 0.03051072359085083, 0.04447174072265625, 0.047084808349609375, 0.04827314615249634]], [[283, 247, 193, 157, 351, 140], [1.1920928955078125e-07, 0.03636515140533447, 0.04009842872619629, 0.04224354028701782, 0.04572492837905884, 0.047081947326660156]], [[284, 246, 133, 146, 253, 224], [1.1920928955078125e-07, 0.05098390579223633, 0.051020264625549316, 0.05194532871246338, 0.053162336349487305, 0.053975820541381836]], [[285, 95, 211, 224, 299, 133], [2.384185791015625e-07, 0.045319557189941406, 0.04990732669830322, 0.051267027854919434, 0.05906081199645996, 0.05939239263534546]], [[286, 189, 256, 265, 123, 290], [0.0, 0.08207583427429199, 0.09178006649017334, 0.09577703475952148, 0.10259056091308594, 0.10346311330795288]], [[287, 242, 3, 10, 33, 55], [0.0, 0.04439401626586914, 0.04547286033630371, 0.06250250339508057, 0.0674174427986145, 0.07249850034713745]], [[288, 303, 363, 351, 331, 373], [0.0, 0.03659999370574951, 0.03985881805419922, 0.04112839698791504, 0.04183554649353027, 0.044930100440979004]], [[289, 347, 379, 304, 20, 270], [0.0, 0.04471755027770996, 0.04571676254272461, 0.0495530366897583, 0.05222505331039429, 0.05224037170410156]], [[290, 127, 256, 175, 244, 123], [1.7881393432617188e-07, 0.08490544557571411, 0.09311741590499878, 0.09445226192474365, 0.09826362133026123, 0.10008323192596436]], [[291, 121, 104, 235, 238, 27], [0.0, 0.09857821464538574, 0.10529184341430664, 0.12712407112121582, 0.12942755222320557, 0.12951922416687012]], [[292, 386, 384, 99, 142, 305], [0.0, 0.04100000858306885, 0.0495830774307251, 0.05942487716674805, 0.061025798320770264, 0.07426929473876953]], [[293, 330, 243, 91, 147, 247], [0.0, 0.05935186147689819, 0.07479345798492432, 0.0830075740814209, 0.08485555648803711, 0.08539712429046631]], [[294, 180, 364, 191, 367, 353], [0.0, 0.14787226915359497, 0.18130362033843994, 0.18247848749160767, 0.1886061429977417, 0.219915509223938]], [[295, 88, 201, 203, 199, 63], [5.960464477539063e-08, 0.05892181396484375, 0.0641709566116333, 0.06436455249786377, 0.06582975387573242, 0.07778739929199219]], [[296, 212, 216, 256, 253, 68], [1.1920928955078125e-07, 0.061678946018218994, 0.09516030550003052, 0.09949254989624023, 0.10453188419342041, 0.10494279861450195]], [[297, 315, 248, 215, 388, 264], [5.960464477539063e-08, 0.03181099891662598, 0.032820940017700195, 0.03325831890106201, 0.03570961952209473, 0.038028597831726074]], [[298, 165, 46, 91, 317, 176], [0.0, 0.07285881042480469, 0.07455956935882568, 0.076804518699646, 0.07867515087127686, 0.07960057258605957]], [[299, 213, 253, 219, 321, 224], [0.0, 0.044950902462005615, 0.047103047370910645, 0.04879504442214966, 0.05067932605743408, 0.05362284183502197]], [[300, 243, 319, 268, 205, 331], [1.1920928955078125e-07, 0.07886958122253418, 0.08785009384155273, 0.10014307498931885, 0.10056126117706299, 0.10154461860656738]], [[301, 253, 47, 350, 372, 136], [0.0, 0.08043920993804932, 0.08330214023590088, 0.08347982168197632, 0.0848701000213623, 0.08563423156738281]], [[302, 127, 266, 144, 209, 56], [0.0, 0.09099435806274414, 0.09933710098266602, 0.10178756713867188, 0.10841000080108643, 0.10854208469390869]], [[303, 351, 288, 172, 185, 331], [0.0, 0.035733163356781006, 0.03659999370574951, 0.042091548442840576, 0.04315638542175293, 0.043724894523620605]], [[304, 379, 13, 281, 289, 20], [0.0, 0.04207432270050049, 0.04615187644958496, 0.04710507392883301, 0.0495530366897583, 0.05105018615722656]], [[305, 100, 17, 386, 57, 384], [5.960464477539063e-08, 0.04670250415802002, 0.048119425773620605, 0.0510176420211792, 0.058255672454833984, 0.06261122226715088]], [[306, 222, 386, 50, 384, 154], [5.960464477539063e-08, 0.08839988708496094, 0.09433853626251221, 0.09574484825134277, 0.10182827711105347, 0.10687518119812012]], [[307, 234, 190, 237, 75, 235], [0.0, 0.05184704065322876, 0.05193096399307251, 0.055587053298950195, 0.05635339021682739, 0.057533442974090576]], [[308, 335, 264, 90, 131, 387], [0.0, 0.06575512886047363, 0.08238101005554199, 0.08303147554397583, 0.0836445689201355, 0.0871124267578125]], [[309, 76, 210, 375, 32, 168], [0.0, 0.06593167781829834, 0.06833362579345703, 0.07156187295913696, 0.07316380739212036, 0.07995998859405518]], [[310, 62, 150, 144, 21, 56], [1.1920928955078125e-07, 0.10104107856750488, 0.10221803188323975, 0.11560547351837158, 0.11817789077758789, 0.12230360507965088]], [[311, 168, 82, 210, 139, 13], [2.384185791015625e-07, 0.05165773630142212, 0.05482804775238037, 0.06124305725097656, 0.06368148326873779, 0.06369411945343018]], [[312, 269, 233, 70, 157, 288], [5.960464477539063e-08, 0.06374728679656982, 0.0738992691040039, 0.0778346061706543, 0.08098965883255005, 0.08297508955001831]], [[313, 46, 151, 247, 176, 164], [1.1920928955078125e-07, 0.03459441661834717, 0.03524297475814819, 0.03616070747375488, 0.03986799716949463, 0.04087251424789429]], [[314, 7, 66, 12, 71, 92], [1.1920928955078125e-07, 0.09306597709655762, 0.09961330890655518, 0.10214090347290039, 0.10666036605834961, 0.10812437534332275]], [[315, 152, 215, 297, 264, 346], [0.0, 0.029022693634033203, 0.03122788667678833, 0.03181099891662598, 0.034439265727996826, 0.03713566064834595]], [[316, 187, 21, 62, 364, 310], [0.0, 0.10764938592910767, 0.15033257007598877, 0.15456503629684448, 0.1598653793334961, 0.1609399914741516]], [[317, 163, 246, 202, 176, 321], [0.0, 0.04508185386657715, 0.05675947666168213, 0.06066417694091797, 0.06198209524154663, 0.06432461738586426]], [[318, 177, 200, 183, 335, 29], [0.0, 0.09661346673965454, 0.09950971603393555, 0.10338234901428223, 0.11081039905548096, 0.11081206798553467]], [[319, 331, 336, 19, 260, 268], [1.1920928955078125e-07, 0.061822712421417236, 0.063728928565979, 0.0644921064376831, 0.07183587551116943, 0.07218503952026367]], [[320, 303, 217, 276, 363, 373], [1.1920928955078125e-07, 0.06338858604431152, 0.06385838985443115, 0.06788754463195801, 0.06934404373168945, 0.07050752639770508]], [[321, 176, 372, 224, 8, 350], [1.1920928955078125e-07, 0.03728067874908447, 0.03848421573638916, 0.03859192132949829, 0.03882884979248047, 0.04415726661682129]], [[322, 331, 315, 288, 215, 373], [5.960464477539063e-08, 0.07240182161331177, 0.07340139150619507, 0.07544600963592529, 0.07686710357666016, 0.07772386074066162]], [[323, 379, 361, 221, 347, 289], [0.0, 0.05575680732727051, 0.05919218063354492, 0.059783995151519775, 0.060251474380493164, 0.06181180477142334]], [[324, 176, 164, 46, 345, 163], [0.0, 0.0651627779006958, 0.07201546430587769, 0.07234358787536621, 0.0735517144203186, 0.07466632127761841]], [[325, 334, 42, 123, 127, 290], [1.1920928955078125e-07, 0.19827699661254883, 0.2067275047302246, 0.2369593381881714, 0.24180060625076294, 0.24313586950302124]], [[326, 388, 341, 264, 248, 215], [0.0, 0.04782378673553467, 0.05234503746032715, 0.055666565895080566, 0.058726608753204346, 0.06087803840637207]], [[327, 105, 112, 378, 45, 229], [5.960464477539063e-08, 0.06381475925445557, 0.06381475925445557, 0.06944799423217773, 0.07256990671157837, 0.07371711730957031]], [[328, 108, 249, 219, 213, 296], [1.1920928955078125e-07, 0.07177650928497314, 0.07809829711914062, 0.1048508882522583, 0.10536694526672363, 0.10550308227539062]], [[329, 137, 248, 215, 264, 315], [1.1920928955078125e-07, 0.04169309139251709, 0.051375508308410645, 0.05369555950164795, 0.05403542518615723, 0.05770862102508545]], [[330, 293, 217, 147, 283, 247], [0.0, 0.05935186147689819, 0.07420563697814941, 0.08270502090454102, 0.09033524990081787, 0.09044539928436279]], [[331, 373, 288, 303, 363, 351], [0.0, 0.033246397972106934, 0.04183554649353027, 0.043724894523620605, 0.04915785789489746, 0.04934459924697876]], [[332, 22, 116, 382, 23, 222], [0.0, 0.06321287155151367, 0.08473366498947144, 0.09938156604766846, 0.10419625043869019, 0.10917425155639648]], [[333, 116, 365, 120, 102, 332], [0.0, 0.07187950611114502, 0.1041383147239685, 0.1230822205543518, 0.12585747241973877, 0.12862420082092285]], [[334, 184, 127, 144, 123, 325], [0.0, 0.12635016441345215, 0.15765130519866943, 0.16203105449676514, 0.19199228286743164, 0.19827699661254883]], [[335, 308, 131, 90, 177, 1], [1.1920928955078125e-07, 0.06575512886047363, 0.07167452573776245, 0.09271591901779175, 0.09554845094680786, 0.09792345762252808]], [[336, 69, 331, 351, 234, 63], [1.7881393432617188e-07, 0.05072653293609619, 0.05346435308456421, 0.055133044719696045, 0.05547332763671875, 0.05622696876525879]], [[337, 168, 52, 76, 30, 155], [5.960464477539063e-08, 0.07063150405883789, 0.07480299472808838, 0.07576721906661987, 0.07941257953643799, 0.08121269941329956]], [[338, 274, 130, 235, 190, 237], [0.0, 0.07895278930664062, 0.08027344942092896, 0.09132903814315796, 0.09283792972564697, 0.09636551141738892]], [[339, 233, 303, 288, 351, 331], [5.960464477539063e-08, 0.04059338569641113, 0.04445230960845947, 0.04978436231613159, 0.0513913631439209, 0.05194687843322754]], [[340, 181, 197, 280, 125, 78], [0.0, 0.08431589603424072, 0.09568792581558228, 0.0972057580947876, 0.10161662101745605, 0.10323655605316162]], [[341, 388, 250, 209, 326, 251], [0.0, 0.04771256446838379, 0.05126452445983887, 0.052298665046691895, 0.05234503746032715, 0.05367177724838257]], [[342, 132, 188, 282, 134, 164], [5.960464477539063e-08, 0.04667508602142334, 0.04667508602142334, 0.047084808349609375, 0.05448150634765625, 0.05536198616027832]], [[343, 229, 71, 378, 12, 45], [0.0, 0.040993690490722656, 0.04268908500671387, 0.050421059131622314, 0.05212092399597168, 0.05409228801727295]], [[344, 359, 211, 224, 95, 366], [1.1920928955078125e-07, 0.04343211650848389, 0.056131064891815186, 0.05887031555175781, 0.058905959129333496, 0.06205892562866211]], [[345, 164, 176, 321, 46, 313], [1.7881393432617188e-07, 0.05255228281021118, 0.052925705909729004, 0.053695738315582275, 0.053798675537109375, 0.05791795253753662]], [[346, 387, 315, 297, 248, 264], [0.0, 0.0, 0.03713566064834595, 0.040827035903930664, 0.04180556535720825, 0.04437363147735596]], [[347, 289, 20, 360, 379, 304], [0.0, 0.04471755027770996, 0.048122286796569824, 0.05400210618972778, 0.05555236339569092, 0.056641221046447754]], [[348, 60, 67, 178, 10, 55], [5.960464477539063e-08, 0.049979567527770996, 0.050065040588378906, 0.057170331478118896, 0.05815911293029785, 0.06219989061355591]], [[349, 388, 341, 248, 170, 297], [0.0, 0.045649588108062744, 0.05782216787338257, 0.06094694137573242, 0.06208372116088867, 0.06222832202911377]], [[350, 224, 253, 321, 372, 95], [0.0, 0.04297339916229248, 0.04321259260177612, 0.04415726661682129, 0.04859113693237305, 0.05195820331573486]], [[351, 303, 140, 69, 288, 157], [0.0, 0.035733163356781006, 0.040223777294158936, 0.040578365325927734, 0.04112839698791504, 0.04318952560424805]], [[352, 178, 10, 348, 67, 60], [1.1920928955078125e-07, 0.06130194664001465, 0.06439387798309326, 0.06561315059661865, 0.06792712211608887, 0.06887274980545044]], [[353, 224, 95, 285, 146, 18], [2.980232238769531e-07, 0.07158005237579346, 0.0747573971748352, 0.07702744007110596, 0.07743364572525024, 0.07780194282531738]], [[354, 276, 38, 130, 153, 214], [0.0, 0.06128227710723877, 0.0828404426574707, 0.08307832479476929, 0.08762705326080322, 0.08822894096374512]], [[355, 29, 109, 125, 118, 194], [1.7881393432617188e-07, 0.10919511318206787, 0.11791908740997314, 0.1233258843421936, 0.13243824243545532, 0.13881301879882812]], [[356, 162, 128, 368, 168, 270], [0.0, 0.10078573226928711, 0.102932870388031, 0.10747706890106201, 0.10797029733657837, 0.10857933759689331]], [[357, 289, 299, 359, 379, 219], [5.960464477539063e-08, 0.07635098695755005, 0.07760334014892578, 0.07969707250595093, 0.0798446536064148, 0.08094775676727295]], [[358, 254, 280, 204, 339, 363], [0.0, 0.09638917446136475, 0.10009729862213135, 0.10281389951705933, 0.10327589511871338, 0.10647010803222656]], [[359, 344, 253, 224, 211, 146], [0.0, 0.04343211650848389, 0.046810269355773926, 0.04906141757965088, 0.05194205045700073, 0.05402171611785889]], [[360, 20, 347, 289, 270, 304], [0.0, 0.053896427154541016, 0.05400210618972778, 0.05926358699798584, 0.06819576025009155, 0.06975936889648438]], [[361, 379, 284, 323, 289, 304], [0.0, 0.057805418968200684, 0.05850052833557129, 0.05919218063354492, 0.06452643871307373, 0.06546151638031006]], [[362, 98, 191, 133, 64, 369], [0.0, 0.15810954570770264, 0.17317330837249756, 0.18159371614456177, 0.1845613718032837, 0.1861586570739746]], [[363, 288, 351, 303, 331, 172], [5.960464477539063e-08, 0.03985881805419922, 0.04546666145324707, 0.04653573036193848, 0.04915785789489746, 0.050364017486572266]], [[364, 180, 109, 191, 316, 159], [0.0, 0.10436761379241943, 0.13997960090637207, 0.1563243865966797, 0.1598653793334961, 0.1599714756011963]], [[365, 112, 105, 154, 171, 229], [2.384185791015625e-07, 0.08683943748474121, 0.08683943748474121, 0.09181201457977295, 0.09193217754364014, 0.09252995252609253]], [[366, 224, 253, 213, 211, 321], [0.0, 0.04480636119842529, 0.046170175075531006, 0.04644334316253662, 0.046714723110198975, 0.048661231994628906]], [[367, 191, 353, 122, 114, 383], [1.1920928955078125e-07, 0.07330566644668579, 0.09505820274353027, 0.10035276412963867, 0.10394275188446045, 0.10790622234344482]], [[368, 289, 20, 347, 304, 379], [5.960464477539063e-08, 0.0611882209777832, 0.06305336952209473, 0.06535029411315918, 0.0661655068397522, 0.07076561450958252]], [[369, 82, 311, 210, 2, 13], [0.0, 0.11155915260314941, 0.1138831377029419, 0.12465178966522217, 0.12531542778015137, 0.13487780094146729]], [[370, 228, 128, 220, 323, 299], [0.0, 0.07744860649108887, 0.1090625524520874, 0.11793023347854614, 0.11981886625289917, 0.12765365839004517]], [[371, 385, 150, 263, 331, 85], [0.0, 0.0749121904373169, 0.07626998424530029, 0.07639729976654053, 0.07772469520568848, 0.08155781030654907]], [[372, 321, 176, 350, 151, 313], [1.1920928955078125e-07, 0.03848421573638916, 0.04800677299499512, 0.04859113693237305, 0.0493321418762207, 0.04996424913406372]], [[373, 331, 288, 25, 303, 363], [0.0, 0.033246397972106934, 0.044930100440979004, 0.04675966501235962, 0.05111527442932129, 0.0514606237411499]], [[374, 13, 281, 20, 139, 304], [0.0, 0.057478904724121094, 0.05882209539413452, 0.059035539627075195, 0.0593072772026062, 0.06184113025665283]], [[375, 76, 210, 32, 30, 309], [0.0, 0.05726778507232666, 0.06423544883728027, 0.0674518346786499, 0.06751018762588501, 0.07156187295913696]], [[376, 229, 378, 154, 71, 12], [0.0, 0.06217598915100098, 0.06300097703933716, 0.06955546140670776, 0.07049202919006348, 0.07113766670227051]], [[377, 202, 163, 176, 151, 46], [0.0, 0.03765213489532471, 0.047450244426727295, 0.051348865032196045, 0.05275428295135498, 0.05338025093078613]], [[378, 229, 154, 96, 45, 12], [0.0, 0.02970176935195923, 0.03307163715362549, 0.036698341369628906, 0.03766930103302002, 0.04249376058578491]], [[379, 304, 289, 213, 253, 284], [5.960464477539063e-08, 0.04207432270050049, 0.04571676254272461, 0.04664558172225952, 0.05271625518798828, 0.05414682626724243]], [[380, 262, 305, 349, 388, 100], [0.0, 0.06579279899597168, 0.09099876880645752, 0.09142804145812988, 0.09515321254730225, 0.09535479545593262]], [[381, 127, 118, 167, 267, 266], [0.0, 0.10605096817016602, 0.12497621774673462, 0.1289827823638916, 0.13705205917358398, 0.1390153169631958]], [[382, 208, 332, 258, 24, 41], [1.7881393432617188e-07, 0.09255808591842651, 0.09938156604766846, 0.09972637891769409, 0.10058444738388062, 0.10073888301849365]], [[383, 18, 47, 321, 49, 224], [5.960464477539063e-08, 0.08280330896377563, 0.09032094478607178, 0.09070509672164917, 0.09118568897247314, 0.09198343753814697]], [[384, 386, 292, 305, 110, 99], [0.0, 0.039878129959106445, 0.0495830774307251, 0.06261122226715088, 0.06843173503875732, 0.06892013549804688]], [[385, 85, 124, 150, 371, 250], [0.0, 0.05518990755081177, 0.06751072406768799, 0.06793951988220215, 0.0749121904373169, 0.07666707038879395]], [[386, 384, 292, 305, 99, 100], [2.384185791015625e-07, 0.039878129959106445, 0.04100000858306885, 0.0510176420211792, 0.060056328773498535, 0.06205320358276367]], [[346, 387, 315, 297, 248, 264], [0.0, 0.0, 0.03713566064834595, 0.040827035903930664, 0.04180556535720825, 0.04437363147735596]], [[388, 248, 297, 215, 264, 349], [0.0, 0.03383636474609375, 0.03570961952209473, 0.03682076930999756, 0.03712153434753418, 0.045649588108062744]], [[389, 247, 164, 151, 46, 163], [5.960464477539063e-08, 0.04677700996398926, 0.05047893524169922, 0.05546367168426514, 0.057257115840911865, 0.05798715353012085]]]
#1024 with more training
# arr = [[[0, 242, 287, 162, 304, 239], [0.0, 0.02417755126953125, 0.027088820934295654, 0.02874159812927246, 0.0384824275970459, 0.04332250356674194]], [[1, 362, 88, 74, 50, 40], [5.960464477539063e-08, 0.33329272270202637, 0.34015023708343506, 0.34056055545806885, 0.34303873777389526, 0.36730706691741943]], [[2, 46, 51, 79, 30, 39], [5.960464477539063e-08, 0.017279505729675293, 0.03309130668640137, 0.034694015979766846, 0.04400724172592163, 0.057182133197784424]], [[3, 67, 60, 0, 55, 89], [0.0, 0.1310710906982422, 0.13108831644058228, 0.14222025871276855, 0.1442035436630249, 0.15213382244110107]], [[4, 16, 73, 22, 23, 45], [0.0, 0.09508335590362549, 0.1786431074142456, 0.1863243579864502, 0.20590192079544067, 0.2099645733833313]], [[5, 93, 80, 36, 40, 38], [0.0, 0.28011244535446167, 0.2918214201927185, 0.2989855408668518, 0.3083920478820801, 0.31730449199676514]], [[6, 71, 66, 12, 92, 7], [0.0, 0.07704448699951172, 0.08678042888641357, 0.1544513702392578, 0.1649916172027588, 0.2266005277633667]], [[7, 92, 12, 107, 66, 343], [5.960464477539063e-08, 0.07060033082962036, 0.0837438702583313, 0.1601160168647766, 0.17922216653823853, 0.20381224155426025]], [[8, 95, 49, 91, 342, 75], [1.1920928955078125e-07, 0.09401881694793701, 0.10207319259643555, 0.10255730152130127, 0.12647700309753418, 0.13714969158172607]], [[9, 70, 81, 22, 85, 80], [0.0, 0.14420896768569946, 0.21288633346557617, 0.2196197509765625, 0.22024720907211304, 0.2476050853729248]], [[10, 60, 67, 32, 33, 76], [1.1920928955078125e-07, 0.01917421817779541, 0.019174695014953613, 0.02688276767730713, 0.03628098964691162, 0.08620917797088623]], [[11, 25, 86, 22, 81, 14], [2.384185791015625e-07, 0.17483532428741455, 0.19327759742736816, 0.1982276439666748, 0.20550256967544556, 0.20552432537078857]], [[12, 92, 7, 66, 6, 71], [3.5762786865234375e-07, 0.058287739753723145, 0.0837438702583313, 0.1208985447883606, 0.1544513702392578, 0.1589977741241455]], [[13, 39, 18, 20, 53, 82], [0.0, 0.07383453845977783, 0.0876273512840271, 0.11924540996551514, 0.11937904357910156, 0.12201356887817383]], [[14, 25, 77, 86, 80, 36], [0.0, 0.09683585166931152, 0.10896188020706177, 0.14511191844940186, 0.15637004375457764, 0.16834479570388794]], [[15, 43, 2, 46, 57, 79], [5.960464477539063e-08, 0.08221268653869629, 0.08623319864273071, 0.0929902195930481, 0.09337806701660156, 0.09840899705886841]], [[16, 4, 17, 22, 73, 56], [1.1920928955078125e-07, 0.09508335590362549, 0.1665610671043396, 0.19376885890960693, 0.2080674171447754, 0.21028363704681396]], [[17, 56, 16, 65, 22, 23], [0.0, 0.10731863975524902, 0.1665610671043396, 0.1740283966064453, 0.17843973636627197, 0.18040138483047485]], [[18, 13, 20, 39, 53, 82], [1.1920928955078125e-07, 0.0876273512840271, 0.10854983329772949, 0.12584203481674194, 0.127899169921875, 0.19609063863754272]], [[19, 319, 280, 255, 268, 27], [1.1920928955078125e-07, 0.1039050817489624, 0.18554013967514038, 0.18598252534866333, 0.19147396087646484, 0.196833074092865]], [[20, 18, 39, 13, 53, 72], [0.0, 0.10854983329772949, 0.11176300048828125, 0.11924540996551514, 0.14414668083190918, 0.14724910259246826]], [[21, 31, 93, 87, 75, 69], [0.0, 0.12188690900802612, 0.13152754306793213, 0.13324028253555298, 0.1335768699645996, 0.14134138822555542]], [[22, 23, 70, 81, 37, 85], [0.0, 0.09513497352600098, 0.13474690914154053, 0.13606655597686768, 0.15301281213760376, 0.16288429498672485]], [[23, 70, 22, 56, 37, 85], [5.960464477539063e-08, 0.08697259426116943, 0.09513497352600098, 0.1285158395767212, 0.12864649295806885, 0.1422523856163025]], [[24, 87, 78, 36, 35, 80], [0.0, 0.08980894088745117, 0.09630030393600464, 0.10440921783447266, 0.10785996913909912, 0.11897587776184082]], [[25, 86, 80, 14, 36, 29], [1.1920928955078125e-07, 0.07768410444259644, 0.08373391628265381, 0.09683585166931152, 0.10744667053222656, 0.11084353923797607]], [[26, 46, 82, 89, 39, 2], [0.0, 0.12468385696411133, 0.13860565423965454, 0.1405370831489563, 0.14470303058624268, 0.1529363989830017]], [[27, 83, 88, 19, 57, 44], [0.0, 0.113955557346344, 0.11426687240600586, 0.196833074092865, 0.27875053882598877, 0.2795398235321045]], [[28, 85, 23, 81, 22, 56], [1.1920928955078125e-07, 0.11964619159698486, 0.1515953540802002, 0.17312616109848022, 0.17633986473083496, 0.17716598510742188]], [[29, 94, 90, 37, 25, 36], [5.960464477539063e-08, 0.06003838777542114, 0.07706320285797119, 0.10974478721618652, 0.11084353923797607, 0.11642962694168091]], [[30, 2, 46, 39, 52, 72], [0.0, 0.04400724172592163, 0.04837071895599365, 0.052057504653930664, 0.06022286415100098, 0.06605613231658936]], [[31, 21, 87, 342, 8, 64], [1.1920928955078125e-07, 0.12188690900802612, 0.13384735584259033, 0.14479339122772217, 0.18042778968811035, 0.18550175428390503]], [[32, 10, 60, 67, 33, 76], [1.1920928955078125e-07, 0.026882827281951904, 0.05404394865036011, 0.05405169725418091, 0.06169462203979492, 0.09388256072998047]], [[33, 76, 10, 55, 67, 60], [1.1920928955078125e-07, 0.026992619037628174, 0.03628098964691162, 0.04069983959197998, 0.04624831676483154, 0.0462491512298584]], [[34, 13, 39, 18, 72, 30], [0.0, 0.19904112815856934, 0.2157374620437622, 0.23617315292358398, 0.2484026551246643, 0.2489687204360962]], [[35, 78, 36, 87, 24, 80], [1.1920928955078125e-07, 0.04283493757247925, 0.05837368965148926, 0.09499895572662354, 0.10785996913909912, 0.12051701545715332]], [[36, 78, 35, 80, 87, 24], [1.1920928955078125e-07, 0.0537867546081543, 0.05837368965148926, 0.08838582038879395, 0.10397577285766602, 0.10440921783447266]], [[37, 90, 29, 70, 23, 94], [0.0, 0.09711205959320068, 0.10974478721618652, 0.12261056900024414, 0.12864649295806885, 0.14070844650268555]], [[38, 90, 29, 94, 37, 40], [1.1920928955078125e-07, 0.06176203489303589, 0.12131911516189575, 0.13099908828735352, 0.15955901145935059, 0.1690884232521057]], [[39, 46, 30, 2, 72, 82], [0.0, 0.049373090267181396, 0.052057504653930664, 0.057182133197784424, 0.05899810791015625, 0.07310020923614502]], [[40, 64, 94, 38, 90, 29], [1.1920928955078125e-07, 0.10770642757415771, 0.12941914796829224, 0.1690884232521057, 0.17472410202026367, 0.1882217526435852]], [[41, 45, 62, 73, 23, 56], [1.1920928955078125e-07, 0.257236123085022, 0.2585371136665344, 0.28093647956848145, 0.31125807762145996, 0.31582850217819214]], [[42, 43, 46, 79, 39, 2], [0.0, 0.15521371364593506, 0.1552344560623169, 0.16746413707733154, 0.17371827363967896, 0.17993533611297607]], [[43, 52, 46, 2, 79, 15], [0.0, 0.04440563917160034, 0.05837392807006836, 0.05892229080200195, 0.06387972831726074, 0.08221268653869629]], [[44, 63, 19, 88, 53, 27], [0.0, 0.20826005935668945, 0.24937599897384644, 0.24947214126586914, 0.2731148600578308, 0.2795398235321045]], [[45, 23, 28, 22, 56, 70], [0.0, 0.16450226306915283, 0.18059372901916504, 0.18714654445648193, 0.19053542613983154, 0.19877111911773682]], [[46, 2, 79, 30, 39, 51], [5.960464477539063e-08, 0.017279505729675293, 0.024503231048583984, 0.04837071895599365, 0.049373090267181396, 0.054108262062072754]], [[47, 53, 95, 342, 61, 345], [0.0, 0.14277136325836182, 0.14579784870147705, 0.1577472686767578, 0.1601649522781372, 0.16372591257095337]], [[48, 84, 369, 20, 59, 360], [0.0, 0.19081419706344604, 0.19529390335083008, 0.21240776777267456, 0.21397662162780762, 0.21851634979248047]], [[49, 95, 91, 8, 75, 47], [5.960464477539063e-08, 0.04294753074645996, 0.09899592399597168, 0.10207319259643555, 0.15972846746444702, 0.20867770910263062]], [[50, 74, 64, 40, 88, 58], [1.7881393432617188e-07, 0.17347508668899536, 0.19765150547027588, 0.2253294587135315, 0.24871540069580078, 0.2589240074157715]], [[51, 2, 46, 79, 30, 82], [0.0, 0.03309130668640137, 0.054108262062072754, 0.0653378963470459, 0.07710087299346924, 0.08115017414093018]], [[52, 43, 55, 76, 30, 2], [5.960464477539063e-08, 0.04440563917160034, 0.05488640069961548, 0.0594249963760376, 0.06022286415100098, 0.07509094476699829]], [[53, 13, 18, 47, 20, 39], [0.0, 0.11937904357910156, 0.127899169921875, 0.14277136325836182, 0.14414668083190918, 0.1584545373916626]], [[54, 68, 353, 34, 360, 47], [5.960464477539063e-08, 0.23742270469665527, 0.2607543468475342, 0.28040027618408203, 0.28045809268951416, 0.2815018892288208]], [[55, 76, 33, 52, 67, 60], [0.0, 0.0325850248336792, 0.04069983959197998, 0.05488640069961548, 0.0571361780166626, 0.05713951587677002]], [[56, 65, 17, 23, 81, 22], [0.0, 0.1054384708404541, 0.10731863975524902, 0.1285158395767212, 0.14520263671875, 0.17398858070373535]], [[57, 15, 43, 52, 89, 2], [1.1920928955078125e-07, 0.09337806701660156, 0.10937941074371338, 0.12626147270202637, 0.13047558069229126, 0.1319746971130371]], [[58, 62, 96, 11, 81, 50], [0.0, 0.23205137252807617, 0.23478734493255615, 0.255800724029541, 0.2581946849822998, 0.2589240074157715]], [[59, 42, 48, 20, 49, 91], [0.0, 0.20398366451263428, 0.21397662162780762, 0.2399086356163025, 0.2652561664581299, 0.271345317363739]], [[67, 60, 10, 33, 32, 55], [0.0, 0.0, 0.01917421817779541, 0.0462491512298584, 0.05404394865036011, 0.05713951587677002]], [[61, 342, 345, 69, 95, 53], [0.0, 0.07439553737640381, 0.09997725486755371, 0.13940495252609253, 0.1413273811340332, 0.1593111753463745]], [[62, 96, 58, 41, 12, 120], [0.0, 0.21210730075836182, 0.23205137252807617, 0.2585371136665344, 0.26697826385498047, 0.281490683555603]], [[63, 2, 82, 88, 15, 51], [5.960464477539063e-08, 0.17624306678771973, 0.17645704746246338, 0.1776413917541504, 0.18231111764907837, 0.19053047895431519]], [[64, 69, 40, 342, 345, 94], [0.0, 0.10532915592193604, 0.10770642757415771, 0.12335515022277832, 0.1406097412109375, 0.1452122926712036]], [[65, 56, 17, 45, 28, 16], [1.7881393432617188e-07, 0.1054384708404541, 0.1740283966064453, 0.2006128430366516, 0.22131240367889404, 0.2225818634033203]], [[66, 71, 6, 12, 92, 7], [0.0, 0.034782230854034424, 0.08678042888641357, 0.1208985447883606, 0.1230694055557251, 0.17922216653823853]], [[60, 67, 10, 33, 32, 55], [0.0, 5.960464477539063e-08, 0.019174695014953613, 0.04624831676483154, 0.05405169725418091, 0.0571361780166626]], [[68, 47, 8, 345, 42, 54], [1.1920928955078125e-07, 0.17940807342529297, 0.20615124702453613, 0.21354925632476807, 0.22459495067596436, 0.23742270469665527]], [[69, 93, 64, 342, 77, 87], [5.960464477539063e-08, 0.09487831592559814, 0.10532915592193604, 0.11541950702667236, 0.13123637437820435, 0.1327056884765625]], [[70, 85, 23, 37, 81, 22], [0.0, 0.08361822366714478, 0.08697259426116943, 0.12261056900024414, 0.12588167190551758, 0.13474690914154053]], [[71, 66, 6, 12, 92, 15], [0.0, 0.034782230854034424, 0.07704448699951172, 0.1589977741241455, 0.17620879411697388, 0.20742428302764893]], [[72, 46, 39, 2, 30, 51], [0.0, 0.058366239070892334, 0.05899810791015625, 0.0647745132446289, 0.06605613231658936, 0.08971607685089111]], [[73, 4, 16, 56, 22, 45], [1.1920928955078125e-07, 0.1786431074142456, 0.2080674171447754, 0.23215585947036743, 0.24913936853408813, 0.25419747829437256]], [[74, 50, 64, 40, 88, 42], [0.0, 0.17347508668899536, 0.174324631690979, 0.1940116286277771, 0.21435308456420898, 0.2186720371246338]], [[75, 91, 21, 8, 95, 49], [1.1920928955078125e-07, 0.12344485521316528, 0.1335768699645996, 0.13714969158172607, 0.14116305112838745, 0.15972846746444702]], [[76, 33, 55, 52, 60, 67], [0.0, 0.026992619037628174, 0.0325850248336792, 0.0594249963760376, 0.0766146183013916, 0.07662153244018555]], [[77, 86, 14, 25, 69, 93], [0.0, 0.09367531538009644, 0.10896188020706177, 0.1298319697380066, 0.13123637437820435, 0.15974795818328857]], [[78, 35, 36, 24, 87, 80], [1.1920928955078125e-07, 0.04283493757247925, 0.0537867546081543, 0.09630030393600464, 0.0976417064666748, 0.10700833797454834]], [[79, 46, 2, 82, 43, 51], [0.0, 0.024503231048583984, 0.034694015979766846, 0.052777647972106934, 0.06387972831726074, 0.0653378963470459]], [[80, 25, 36, 78, 24, 35], [1.1920928955078125e-07, 0.08373391628265381, 0.08838582038879395, 0.10700833797454834, 0.11897587776184082, 0.12051701545715332]], [[81, 80, 70, 85, 22, 37], [5.960464477539063e-08, 0.12460660934448242, 0.12588167190551758, 0.1302553415298462, 0.13606655597686768, 0.14355003833770752]], [[82, 79, 46, 2, 39, 89], [0.0, 0.052777647972106934, 0.05862629413604736, 0.06091439723968506, 0.07310020923614502, 0.07322442531585693]], [[83, 27, 88, 19, 104, 121], [2.384185791015625e-07, 0.113955557346344, 0.19691550731658936, 0.23095953464508057, 0.23186296224594116, 0.23226267099380493]], [[84, 72, 30, 39, 375, 20], [0.0, 0.09150111675262451, 0.14774620532989502, 0.15036225318908691, 0.15379291772842407, 0.1611948013305664]], [[85, 70, 28, 80, 81, 36], [5.960464477539063e-08, 0.08361822366714478, 0.11964619159698486, 0.12970709800720215, 0.1302553415298462, 0.14012765884399414]], [[86, 25, 77, 14, 80, 69], [0.0, 0.07768410444259644, 0.09367531538009644, 0.14511191844940186, 0.1475428342819214, 0.17262279987335205]], [[87, 24, 35, 78, 36, 80], [5.960464477539063e-08, 0.08980894088745117, 0.09499895572662354, 0.0976417064666748, 0.10397577285766602, 0.12292855978012085]], [[88, 27, 63, 83, 55, 74], [1.1920928955078125e-07, 0.11426687240600586, 0.1776413917541504, 0.19691550731658936, 0.21165847778320312, 0.21435308456420898]], [[89, 82, 43, 15, 79, 46], [0.0, 0.07322442531585693, 0.11388921737670898, 0.12215065956115723, 0.12693876028060913, 0.12709534168243408]], [[90, 38, 94, 29, 37, 70], [0.0, 0.06176203489303589, 0.07373607158660889, 0.07706320285797119, 0.09711205959320068, 0.15535211563110352]], [[91, 49, 95, 8, 75, 342], [0.0, 0.09899592399597168, 0.10158157348632812, 0.10255730152130127, 0.12344485521316528, 0.15891200304031372]], [[92, 12, 7, 66, 6, 71], [5.960464477539063e-08, 0.058287739753723145, 0.07060033082962036, 0.1230694055557251, 0.1649916172027588, 0.17620879411697388]], [[93, 69, 21, 36, 78, 77], [5.960464477539063e-08, 0.09487831592559814, 0.13152754306793213, 0.15536320209503174, 0.15770280361175537, 0.15974795818328857]], [[94, 29, 90, 25, 40, 38], [0.0, 0.06003838777542114, 0.07373607158660889, 0.12066769599914551, 0.12941914796829224, 0.13099908828735352]], [[95, 49, 8, 91, 75, 61], [0.0, 0.04294753074645996, 0.09401881694793701, 0.10158157348632812, 0.14116305112838745, 0.1413273811340332]], [[96, 12, 92, 62, 343, 7], [1.1920928955078125e-07, 0.16783475875854492, 0.20014965534210205, 0.21210730075836182, 0.21388226747512817, 0.21618926525115967]], [[97, 173, 160, 152, 332, 85], [0.0, 0.11781042814254761, 0.17603254318237305, 0.19527125358581543, 0.19803833961486816, 0.22793757915496826]], [[98, 165, 317, 155, 221, 284], [0.0, 0.025884032249450684, 0.02913224697113037, 0.02920067310333252, 0.03485584259033203, 0.035285890102386475]], [[99, 196, 250, 384, 258, 268], [0.0, 0.11504894495010376, 0.17314177751541138, 0.1798076629638672, 0.1922721266746521, 0.20563191175460815]], [[100, 248, 315, 305, 226, 257], [0.0, 0.04013031721115112, 0.0512617826461792, 0.0571979284286499, 0.057879090309143066, 0.06354749202728271]], [[101, 162, 169, 242, 304, 0], [0.0, 0.037683725357055664, 0.041791439056396484, 0.049993038177490234, 0.05022537708282471, 0.05064880847930908]], [[102, 116, 110, 120, 111, 112], [0.0, 0.0800710916519165, 0.1007009744644165, 0.102744460105896, 0.11617255210876465, 0.12554436922073364]], [[103, 123, 113, 130, 128, 126], [0.0, 0.09250622987747192, 0.09995269775390625, 0.1115521788597107, 0.15229099988937378, 0.15572738647460938]], [[104, 121, 106, 83, 103, 204], [0.0, 0.05174332857131958, 0.14523661136627197, 0.23186296224594116, 0.28671932220458984, 0.29321324825286865]], [[112, 105, 116, 118, 102, 129], [0.0, 0.0, 0.10222375392913818, 0.11296188831329346, 0.12554436922073364, 0.14613431692123413]], [[106, 117, 104, 121, 113, 130], [0.0, 0.10283505916595459, 0.14523661136627197, 0.15431416034698486, 0.17419558763504028, 0.17529505491256714]], [[107, 129, 7, 112, 105, 12], [0.0, 0.1486908197402954, 0.1601160168647766, 0.2026979923248291, 0.2026979923248291, 0.22144418954849243]], [[108, 123, 117, 113, 122, 103], [0.0, 0.09729921817779541, 0.15713709592819214, 0.18082189559936523, 0.1821807622909546, 0.18351435661315918]], [[109, 194, 167, 118, 113, 214], [1.7881393432617188e-07, 0.24629521369934082, 0.2469896674156189, 0.2675386667251587, 0.2679411768913269, 0.28066468238830566]], [[110, 120, 102, 116, 111, 105], [0.0, 0.026362955570220947, 0.1007009744644165, 0.10389459133148193, 0.11578118801116943, 0.18905508518218994]], [[111, 116, 118, 110, 102, 120], [0.0, 0.08512067794799805, 0.10209929943084717, 0.11578118801116943, 0.11617255210876465, 0.11760544776916504]], [[112, 105, 116, 118, 102, 129], [0.0, 0.0, 0.10222375392913818, 0.11296188831329346, 0.12554436922073364, 0.14613431692123413]], [[113, 123, 130, 103, 117, 122], [0.0, 0.06174361705780029, 0.08432650566101074, 0.09995269775390625, 0.12407118082046509, 0.13494467735290527]], [[114, 115, 119, 126, 366, 103], [0.0, 0.16363143920898438, 0.1757245659828186, 0.18466758728027344, 0.20015233755111694, 0.2258443832397461]], [[115, 114, 119, 126, 366, 103], [0.0, 0.16363143920898438, 0.18791413307189941, 0.19979941844940186, 0.273831844329834, 0.3101414442062378]], [[116, 118, 120, 102, 111, 112], [0.0, 0.05833888053894043, 0.07671487331390381, 0.0800710916519165, 0.08512067794799805, 0.10222375392913818]], [[117, 122, 130, 106, 113, 123], [0.0, 0.06911647319793701, 0.0703427791595459, 0.10283505916595459, 0.12407118082046509, 0.12918955087661743]], [[118, 116, 111, 105, 112, 102], [0.0, 0.05833888053894043, 0.10209929943084717, 0.11296188831329346, 0.11296188831329346, 0.13758665323257446]], [[119, 126, 114, 115, 103, 111], [5.960464477539063e-08, 0.14197814464569092, 0.1757245659828186, 0.18791413307189941, 0.22890961170196533, 0.23399889469146729]], [[120, 110, 116, 102, 111, 105], [1.1920928955078125e-07, 0.026362955570220947, 0.07671487331390381, 0.102744460105896, 0.11760544776916504, 0.1528283953666687]], [[121, 104, 106, 83, 103, 108], [0.0, 0.05174332857131958, 0.15431416034698486, 0.23226267099380493, 0.23235267400741577, 0.2581578493118286]], [[122, 117, 130, 113, 123, 348], [5.960464477539063e-08, 0.06911647319793701, 0.07690596580505371, 0.13494467735290527, 0.1441594362258911, 0.15867388248443604]], [[123, 113, 103, 108, 130, 117], [0.0, 0.06174361705780029, 0.09250622987747192, 0.09729921817779541, 0.1001657247543335, 0.12918955087661743]], [[124, 129, 127, 105, 112, 107], [0.0, 0.0800122618675232, 0.14320462942123413, 0.16236472129821777, 0.16236472129821777, 0.22215735912322998]], [[125, 119, 126, 74, 1, 40], [0.0, 0.32422685623168945, 0.3328399658203125, 0.36914098262786865, 0.3723585605621338, 0.39004218578338623]], [[126, 119, 103, 113, 114, 115], [0.0, 0.14197814464569092, 0.15572738647460938, 0.18086957931518555, 0.18466758728027344, 0.19979941844940186]], [[127, 113, 124, 118, 112, 105], [0.0, 0.13832998275756836, 0.14320462942123413, 0.1438049077987671, 0.16037893295288086, 0.16037893295288086]], [[128, 130, 103, 113, 123, 117], [0.0, 0.15018689632415771, 0.15229099988937378, 0.21485137939453125, 0.22213459014892578, 0.2587693929672241]], [[129, 124, 112, 105, 107, 127], [1.7881393432617188e-07, 0.0800122618675232, 0.14613431692123413, 0.14613431692123413, 0.1486908197402954, 0.22953182458877563]], [[130, 117, 122, 113, 123, 103], [5.960464477539063e-08, 0.0703427791595459, 0.07690596580505371, 0.08432650566101074, 0.1001657247543335, 0.1115521788597107]], [[131, 245, 177, 318, 308, 257], [0.0, 0.055518150329589844, 0.06992286443710327, 0.07343059778213501, 0.07476681470870972, 0.07642090320587158]], [[132, 188, 246, 282, 134, 163], [1.1920928955078125e-07, 1.1920928955078125e-07, 0.009184300899505615, 0.010227084159851074, 0.012455523014068604, 0.014620363712310791]], [[133, 231, 281, 289, 323, 216], [0.0, 0.012139737606048584, 0.019771099090576172, 0.023848295211791992, 0.02432262897491455, 0.025453627109527588]], [[134, 246, 163, 265, 132, 188], [0.0, 0.009662985801696777, 0.010675668716430664, 0.011736392974853516, 0.012455523014068604, 0.012455523014068604]], [[135, 336, 208, 326, 257, 222], [0.0, 0.0622098445892334, 0.06561464071273804, 0.06816703081130981, 0.07664275169372559, 0.08093523979187012]], [[136, 236, 304, 283, 143, 212], [0.0, 0.009837090969085693, 0.01687490940093994, 0.017215490341186523, 0.020133554935455322, 0.0208432674407959]], [[137, 257, 262, 100, 248, 315], [0.0, 0.1009172797203064, 0.11464732885360718, 0.1148613691329956, 0.11575788259506226, 0.11660182476043701]], [[138, 243, 249, 253, 213, 146], [0.0, 0.08285653591156006, 0.08734333515167236, 0.10759592056274414, 0.11129087209701538, 0.11327439546585083]], [[139, 166, 186, 311, 270, 252], [1.1920928955078125e-07, 0.0023834705352783203, 0.00615084171295166, 0.0069427490234375, 0.006964743137359619, 0.009951949119567871]], [[140, 157, 175, 260, 206, 163], [1.1920928955078125e-07, 0.00917273759841919, 0.009253382682800293, 0.016649186611175537, 0.020775675773620605, 0.02785170078277588]], [[141, 251, 190, 288, 234, 338], [0.0, 0.050203561782836914, 0.053574442863464355, 0.05821722745895386, 0.06145668029785156, 0.0632239580154419]], [[142, 244, 192, 234, 141, 307], [0.0, 0.07168322801589966, 0.11116176843643188, 0.11250007152557373, 0.12240147590637207, 0.12607765197753906]], [[143, 178, 270, 169, 304, 309], [1.7881393432617188e-07, 0.008305549621582031, 0.010303795337677002, 0.010855793952941895, 0.012103438377380371, 0.017591774463653564]], [[144, 207, 290, 316, 278, 184], [5.960464477539063e-08, 0.05777740478515625, 0.07604718208312988, 0.0806153416633606, 0.08423936367034912, 0.09111654758453369]], [[145, 306, 183, 266, 308, 318], [0.0, 0.1101272702217102, 0.1690385937690735, 0.17684781551361084, 0.18776237964630127, 0.19149577617645264]], [[146, 211, 151, 253, 249, 213], [0.0, 0.07141280174255371, 0.08061468601226807, 0.08299827575683594, 0.10374844074249268, 0.11271893978118896]], [[147, 202, 134, 298, 299, 263], [0.0, 0.015430808067321777, 0.01843106746673584, 0.019907593727111816, 0.020157992839813232, 0.021443426609039307]], [[148, 141, 326, 251, 320, 266], [2.384185791015625e-07, 0.0697246789932251, 0.07189738750457764, 0.0720984935760498, 0.07444441318511963, 0.08394116163253784]], [[149, 301, 294, 277, 0, 191], [0.0, 0.2434070110321045, 0.24388349056243896, 0.26137876510620117, 0.27030640840530396, 0.2720605134963989]], [[150, 278, 324, 201, 317, 157], [5.960464477539063e-08, 0.030818819999694824, 0.03406637907028198, 0.04712069034576416, 0.04968106746673584, 0.05026888847351074]], [[151, 146, 156, 138, 247, 249], [0.0, 0.08061468601226807, 0.09094512462615967, 0.15195691585540771, 0.15286153554916382, 0.15862548351287842]], [[152, 160, 335, 158, 97, 322], [0.0, 0.11864924430847168, 0.1509777307510376, 0.17311900854110718, 0.19527125358581543, 0.19697624444961548]], [[153, 203, 263, 313, 159, 321], [0.0, 0.03948467969894409, 0.03969979286193848, 0.04513251781463623, 0.048084795475006104, 0.04892367124557495]], [[154, 327, 314, 333, 306, 229], [1.7881393432617188e-07, 0.11595845222473145, 0.1296924352645874, 0.18476200103759766, 0.19026756286621094, 0.2161388397216797]], [[155, 311, 186, 252, 139, 210], [5.960464477539063e-08, 0.01166999340057373, 0.014692425727844238, 0.015743732452392578, 0.0222628116607666, 0.023987233638763428]], [[156, 151, 146, 243, 138, 249], [0.0, 0.09094512462615967, 0.15215027332305908, 0.1527167558670044, 0.162459135055542, 0.1801847219467163]], [[157, 140, 175, 260, 202, 206], [0.0, 0.00917273759841919, 0.016841650009155273, 0.022033870220184326, 0.023179054260253906, 0.023448586463928223]], [[158, 160, 152, 322, 217, 331], [0.0, 0.1691794991493225, 0.17311900854110718, 0.17418140172958374, 0.20550519227981567, 0.22731423377990723]], [[159, 200, 263, 153, 313, 163], [0.0, 0.02367544174194336, 0.04079270362854004, 0.048084795475006104, 0.049371957778930664, 0.05027037858963013]], [[160, 152, 158, 97, 322, 300], [0.0, 0.11864924430847168, 0.1691794991493225, 0.17603254318237305, 0.2027079463005066, 0.21390819549560547]], [[161, 215, 227, 208, 176, 140], [0.0, 0.04483765363693237, 0.047068774700164795, 0.06337660551071167, 0.06433916091918945, 0.06466799974441528]], [[162, 304, 169, 143, 287, 259], [1.1920928955078125e-07, 0.009294092655181885, 0.015631258487701416, 0.018658876419067383, 0.022070884704589844, 0.022275984287261963]], [[163, 134, 282, 132, 188, 246], [0.0, 0.010675668716430664, 0.010870575904846191, 0.014620363712310791, 0.014620363712310791, 0.017035722732543945]], [[164, 275, 219, 206, 299, 215], [0.0, 0.028338909149169922, 0.03232836723327637, 0.04023498296737671, 0.04144608974456787, 0.04228854179382324]], [[165, 98, 317, 272, 274, 337], [0.0, 0.025884032249450684, 0.026877403259277344, 0.03050220012664795, 0.03589272499084473, 0.03639101982116699]], [[166, 139, 270, 186, 252, 311], [2.384185791015625e-07, 0.0023834705352783203, 0.00459665060043335, 0.005848884582519531, 0.006370425224304199, 0.009076416492462158]], [[167, 276, 177, 183, 245, 302], [0.0, 0.08144116401672363, 0.08787387609481812, 0.09491252899169922, 0.09895056486129761, 0.10040020942687988]], [[168, 210, 337, 155, 311, 301], [0.0, 0.009001016616821289, 0.023273587226867676, 0.03242290019989014, 0.03640639781951904, 0.03837096691131592]], [[169, 143, 304, 178, 162, 270], [1.7881393432617188e-07, 0.010855793952941895, 0.011031270027160645, 0.013438105583190918, 0.015631258487701416, 0.019932687282562256]], [[170, 264, 185, 222, 215, 257], [5.960464477539063e-08, 0.057533860206604004, 0.062402188777923584, 0.06285601854324341, 0.08015859127044678, 0.08025968074798584]], [[171, 261, 222, 229, 250, 264], [1.1920928955078125e-07, 0.19245398044586182, 0.2541447877883911, 0.2707113027572632, 0.2790524363517761, 0.279777467250824]], [[172, 190, 338, 269, 182, 237], [0.0, 0.032443344593048096, 0.034452080726623535, 0.041176557540893555, 0.055611491203308105, 0.05690455436706543]], [[173, 97, 332, 9, 160, 179], [0.0, 0.11781042814254761, 0.1407971978187561, 0.25234419107437134, 0.26205122470855713, 0.27025383710861206]], [[174, 290, 201, 184, 199, 150], [0.0, 0.05240929126739502, 0.09604024887084961, 0.09652203321456909, 0.10052603483200073, 0.10644876956939697]], [[175, 140, 260, 157, 163, 284], [5.960464477539063e-08, 0.009253382682800293, 0.015648603439331055, 0.016841650009155273, 0.019767463207244873, 0.023148775100708008]], [[176, 216, 219, 236, 275, 299], [0.0, 0.025877177715301514, 0.03280460834503174, 0.03655517101287842, 0.0371246337890625, 0.037436485290527344]], [[177, 318, 245, 131, 207, 194], [0.0, 0.05292713642120361, 0.06310611963272095, 0.06992286443710327, 0.07095229625701904, 0.08473718166351318]], [[178, 143, 309, 270, 304, 169], [1.1920928955078125e-07, 0.008305549621582031, 0.00853961706161499, 0.011079788208007812, 0.012186825275421143, 0.013438105583190918]], [[179, 331, 279, 322, 335, 247], [0.0, 0.12730205059051514, 0.14452457427978516, 0.15102267265319824, 0.1794251799583435, 0.22004425525665283]], [[180, 159, 316, 187, 200, 194], [1.1920928955078125e-07, 0.05197608470916748, 0.05255758762359619, 0.05637025833129883, 0.05900609493255615, 0.06604659557342529]], [[181, 340, 182, 303, 214, 157], [0.0, 0.02881145477294922, 0.05271804332733154, 0.05414426326751709, 0.06432151794433594, 0.06631684303283691]], [[182, 193, 225, 254, 303, 190], [0.0, 0.02787315845489502, 0.030061542987823486, 0.03692883253097534, 0.038714051246643066, 0.04245877265930176]], [[183, 177, 167, 318, 276, 207], [0.0, 0.09046077728271484, 0.09491252899169922, 0.09946751594543457, 0.09981459379196167, 0.10603821277618408]], [[184, 190, 237, 267, 278, 290], [1.1920928955078125e-07, 0.04302334785461426, 0.045333147048950195, 0.04605114459991455, 0.048557937145233154, 0.04961192607879639]], [[185, 238, 303, 206, 182, 280], [0.0, 0.05207854509353638, 0.05504274368286133, 0.05799686908721924, 0.05915963649749756, 0.05971574783325195]], [[186, 166, 252, 139, 270, 311], [2.384185791015625e-07, 0.005848884582519531, 0.005979955196380615, 0.00615084171295166, 0.0074149370193481445, 0.007462859153747559]], [[187, 316, 278, 263, 180, 153], [0.0, 0.050583481788635254, 0.055142343044281006, 0.055735111236572266, 0.05637025833129883, 0.06238090991973877]], [[132, 188, 246, 282, 134, 163], [1.1920928955078125e-07, 1.1920928955078125e-07, 0.009184300899505615, 0.010227084159851074, 0.012455523014068604, 0.014620363712310791]], [[189, 321, 324, 313, 190, 251], [5.960464477539063e-08, 0.049379825592041016, 0.0515141487121582, 0.05222135782241821, 0.05570697784423828, 0.05889707803726196]], [[190, 251, 237, 267, 269, 172], [0.0, 0.020168423652648926, 0.026023268699645996, 0.030175983905792236, 0.032198309898376465, 0.032443344593048096]], [[191, 249, 253, 321, 289, 223], [0.0, 0.08758902549743652, 0.0884636640548706, 0.09344714879989624, 0.09486675262451172, 0.0963364839553833]], [[192, 142, 168, 337, 301, 210], [0.0, 0.11116176843643188, 0.1141234040260315, 0.12502706050872803, 0.12688922882080078, 0.1301441192626953]], [[193, 225, 182, 278, 254, 234], [1.1920928955078125e-07, 0.004168808460235596, 0.02787315845489502, 0.041097044944763184, 0.046907901763916016, 0.04839324951171875]], [[194, 207, 180, 203, 267, 184], [0.0, 0.05775153636932373, 0.06604659557342529, 0.06642806529998779, 0.0669940710067749, 0.067466139793396]], [[195, 304, 270, 162, 212, 178], [0.0, 0.019631028175354004, 0.022655725479125977, 0.024656176567077637, 0.025959491729736328, 0.02629268169403076]], [[196, 99, 264, 250, 315, 262], [1.1920928955078125e-07, 0.11504894495010376, 0.14672374725341797, 0.15811991691589355, 0.1601390242576599, 0.16079378128051758]], [[197, 273, 226, 255, 248, 257], [0.0, 0.0724111795425415, 0.0938711166381836, 0.09465855360031128, 0.10270881652832031, 0.10411512851715088]], [[198, 155, 224, 186, 252, 311], [0.0, 0.04132157564163208, 0.04352843761444092, 0.04412877559661865, 0.05095779895782471, 0.05290931463241577]], [[199, 201, 203, 202, 313, 147], [1.1920928955078125e-07, 0.02421557903289795, 0.02618306875228882, 0.04389691352844238, 0.04441189765930176, 0.04707831144332886]], [[200, 159, 207, 251, 202, 263], [0.0, 0.02367544174194336, 0.035880446434020996, 0.0397915244102478, 0.04135477542877197, 0.041734158992767334]], [[201, 203, 199, 278, 202, 284], [0.0, 0.024013757705688477, 0.02421557903289795, 0.033941030502319336, 0.03844171762466431, 0.04601395130157471]], [[202, 284, 147, 313, 263, 321], [0.0, 0.015408694744110107, 0.015430808067321777, 0.017575621604919434, 0.019577860832214355, 0.019932448863983154]], [[203, 201, 199, 272, 313, 202], [0.0, 0.024013757705688477, 0.02618306875228882, 0.02797311544418335, 0.03503727912902832, 0.035833001136779785]], [[204, 201, 182, 141, 303, 285], [0.0, 0.08391344547271729, 0.0846053957939148, 0.08890378475189209, 0.0898967981338501, 0.09938699007034302]], [[205, 185, 161, 303, 182, 254], [0.0, 0.06216013431549072, 0.0785643458366394, 0.07934355735778809, 0.08379125595092773, 0.0858919620513916]], [[206, 140, 157, 260, 175, 163], [0.0, 0.020775675773620605, 0.023448586463928223, 0.02406400442123413, 0.02967047691345215, 0.03104710578918457]], [[207, 200, 278, 267, 201, 159], [0.0, 0.035880446434020996, 0.04588353633880615, 0.04698812961578369, 0.051849961280822754, 0.051938533782958984]], [[208, 215, 161, 135, 336, 273], [5.960464477539063e-08, 0.0419696569442749, 0.06337660551071167, 0.06561464071273804, 0.06732916831970215, 0.07107079029083252]], [[209, 260, 206, 164, 140, 329], [5.960464477539063e-08, 0.03821289539337158, 0.0395580530166626, 0.050665438175201416, 0.05072593688964844, 0.051414430141448975]], [[210, 168, 337, 311, 155, 301], [0.0, 0.009001016616821289, 0.017895638942718506, 0.02212357521057129, 0.023987233638763428, 0.031350135803222656]], [[211, 253, 324, 321, 224, 189], [0.0, 0.03262734413146973, 0.05678212642669678, 0.05720841884613037, 0.0695427656173706, 0.06982934474945068]], [[212, 296, 328, 236, 136, 270], [0.0, 0.01654648780822754, 0.01875680685043335, 0.020511865615844727, 0.0208432674407959, 0.024537205696105957]], [[213, 253, 289, 216, 133, 249], [1.1920928955078125e-07, 0.04064208269119263, 0.04737907648086548, 0.04845905303955078, 0.05111539363861084, 0.05512881278991699]], [[214, 190, 269, 184, 172, 181], [0.0, 0.0505366325378418, 0.059067606925964355, 0.059583306312561035, 0.06359636783599854, 0.06432151794433594]], [[215, 140, 157, 219, 303, 208], [5.960464477539063e-08, 0.03347361087799072, 0.03601419925689697, 0.04002046585083008, 0.041385769844055176, 0.0419696569442749]], [[216, 219, 323, 299, 236, 133], [0.0, 0.021624326705932617, 0.021645188331604004, 0.023011207580566406, 0.02427774667739868, 0.025453627109527588]], [[217, 263, 320, 324, 163, 147], [0.0, 0.06861650943756104, 0.07597154378890991, 0.0769888162612915, 0.07723158597946167, 0.08057188987731934]], [[218, 293, 187, 324, 217, 150], [1.1920928955078125e-07, 0.17299962043762207, 0.18260902166366577, 0.18610131740570068, 0.1870136260986328, 0.19092988967895508]], [[219, 299, 246, 323, 216, 236], [0.0, 0.012714385986328125, 0.019647598266601562, 0.020683646202087402, 0.021624326705932617, 0.022108793258666992]], [[220, 228, 291, 275, 164, 227], [1.1920928955078125e-07, 0.0604100227355957, 0.06329357624053955, 0.0634998083114624, 0.0714414119720459, 0.07444256544113159]], [[221, 283, 224, 299, 323, 134], [0.0, 0.01919376850128174, 0.01956939697265625, 0.019834578037261963, 0.02044367790222168, 0.02106940746307373]], [[222, 170, 264, 135, 257, 273], [0.0, 0.06285601854324341, 0.0649675726890564, 0.08093523979187012, 0.08210724592208862, 0.08456867933273315]], [[223, 298, 147, 328, 224, 253], [0.0, 0.051122188568115234, 0.053047776222229004, 0.05311477184295654, 0.0534023642539978, 0.05350714921951294]], [[224, 283, 221, 134, 236, 321], [2.384185791015625e-07, 0.015696227550506592, 0.01956939697265625, 0.020390987396240234, 0.021351516246795654, 0.022302865982055664]], [[225, 193, 182, 278, 272, 98], [0.0, 0.004168808460235596, 0.030061542987823486, 0.040799856185913086, 0.04687166213989258, 0.04761052131652832]], [[226, 248, 100, 264, 250, 315], [5.960464477539063e-08, 0.04519575834274292, 0.057879090309143066, 0.06670796871185303, 0.0831688642501831, 0.09024757146835327]], [[227, 215, 161, 176, 275, 219], [0.0, 0.043943583965301514, 0.047068774700164795, 0.047433316707611084, 0.04912829399108887, 0.04947841167449951]], [[228, 220, 291, 323, 249, 216], [0.0, 0.0604100227355957, 0.06179332733154297, 0.06524443626403809, 0.06798678636550903, 0.07157540321350098]], [[229, 306, 305, 222, 100, 258], [0.0, 0.11274594068527222, 0.13907289505004883, 0.16795110702514648, 0.16888123750686646, 0.170964777469635]], [[230, 339, 319, 185, 197, 255], [5.960464477539063e-08, 0.06212460994720459, 0.09777265787124634, 0.12673091888427734, 0.14012861251831055, 0.14189159870147705]], [[231, 133, 281, 155, 289, 186], [0.0, 0.012139737606048584, 0.018488764762878418, 0.030945181846618652, 0.03574979305267334, 0.037368714809417725]], [[232, 266, 222, 308, 264, 288], [1.1920928955078125e-07, 0.103737473487854, 0.10481077432632446, 0.10489726066589355, 0.12260323762893677, 0.12493866682052612]], [[233, 219, 299, 147, 251, 202], [1.1920928955078125e-07, 0.06753361225128174, 0.06914007663726807, 0.07151758670806885, 0.07228213548660278, 0.07688313722610474]], [[234, 237, 307, 193, 182, 251], [0.0, 0.0384678840637207, 0.04729741811752319, 0.04839324951171875, 0.05123579502105713, 0.055409789085388184]], [[235, 279, 77, 247, 335, 243], [1.1920928955078125e-07, 0.13759773969650269, 0.17178338766098022, 0.2016385793685913, 0.20646822452545166, 0.23604023456573486]], [[236, 283, 136, 299, 246, 265], [0.0, 0.007670342922210693, 0.009837090969085693, 0.013717353343963623, 0.015579938888549805, 0.018702685832977295]], [[237, 272, 190, 251, 313, 267], [0.0, 0.01598811149597168, 0.026023268699645996, 0.029005467891693115, 0.034403860569000244, 0.03607141971588135]], [[238, 307, 185, 234, 303, 189], [5.960464477539063e-08, 0.051914215087890625, 0.05207854509353638, 0.05608940124511719, 0.05885380506515503, 0.06553924083709717]], [[239, 287, 309, 162, 304, 178], [5.960464477539063e-08, 0.0162503719329834, 0.02078002691268921, 0.02269834280014038, 0.02562272548675537, 0.025643348693847656]], [[240, 310, 276, 167, 248, 288], [0.0, 0.08398652076721191, 0.11308455467224121, 0.14121711254119873, 0.1418323516845703, 0.14343202114105225]], [[241, 263, 200, 159, 163, 282], [0.0, 0.04825782775878906, 0.052292823791503906, 0.0527266263961792, 0.05364495515823364, 0.054522693157196045]], [[242, 287, 162, 169, 0, 239], [1.1920928955078125e-07, 0.0021944046020507812, 0.02374279499053955, 0.023859024047851562, 0.02417755126953125, 0.0257875919342041]], [[243, 219, 249, 216, 323, 299], [1.1920928955078125e-07, 0.05697721242904663, 0.059064269065856934, 0.06455874443054199, 0.0678289532661438, 0.06983935832977295]], [[244, 142, 141, 307, 234, 238], [1.1920928955078125e-07, 0.07168322801589966, 0.07623863220214844, 0.07743698358535767, 0.08933353424072266, 0.09532088041305542]], [[245, 131, 177, 266, 318, 308], [0.0, 0.055518269538879395, 0.06310611963272095, 0.06999176740646362, 0.08046483993530273, 0.09180808067321777]], [[246, 188, 132, 134, 299, 236], [1.1920928955078125e-07, 0.009184300899505615, 0.009184300899505615, 0.009662985801696777, 0.013514697551727295, 0.015579938888549805]], [[247, 256, 213, 253, 176, 279], [0.0, 0.10108691453933716, 0.10209798812866211, 0.11603707075119019, 0.11894798278808594, 0.1262955665588379]], [[248, 100, 264, 226, 315, 250], [0.0, 0.04013031721115112, 0.0431177020072937, 0.04519575834274292, 0.0602225661277771, 0.07712984085083008]], [[249, 216, 323, 213, 224, 298], [0.0, 0.053444504737854004, 0.05347800254821777, 0.05512881278991699, 0.055180907249450684, 0.05770528316497803]], [[250, 264, 248, 100, 226, 170], [0.0, 0.07635104656219482, 0.07712984085083008, 0.07894241809844971, 0.0831688642501831, 0.10424381494522095]], [[251, 190, 237, 313, 267, 320], [1.1920928955078125e-07, 0.020168423652648926, 0.029005467891693115, 0.032627224922180176, 0.03404170274734497, 0.03594863414764404]], [[252, 186, 166, 139, 311, 270], [1.7881393432617188e-07, 0.005979955196380615, 0.006370425224304199, 0.009951949119567871, 0.010087728500366211, 0.011365294456481934]], [[253, 211, 213, 321, 216, 224], [0.0, 0.03262734413146973, 0.04064208269119263, 0.040883421897888184, 0.04197072982788086, 0.04507136344909668]], [[254, 182, 193, 225, 278, 98], [0.0, 0.03692883253097534, 0.046907901763916016, 0.048598647117614746, 0.05384713411331177, 0.05458426475524902]], [[255, 273, 197, 336, 222, 135], [0.0, 0.09391242265701294, 0.0946584939956665, 0.09792590141296387, 0.10161978006362915, 0.10180461406707764]], [[256, 189, 275, 176, 212, 201], [0.0, 0.06812107563018799, 0.07430565357208252, 0.07836425304412842, 0.08581972122192383, 0.0861361026763916]], [[257, 273, 315, 100, 209, 266], [2.384185791015625e-07, 0.04823946952819824, 0.055569469928741455, 0.06354749202728271, 0.06381475925445557, 0.06655001640319824]], [[258, 226, 100, 264, 250, 248], [0.0, 0.09238320589065552, 0.10224437713623047, 0.1041187047958374, 0.10483801364898682, 0.1060602068901062]], [[259, 139, 270, 186, 304, 162], [1.7881393432617188e-07, 0.01855182647705078, 0.02075815200805664, 0.0212860107421875, 0.021549224853515625, 0.022275984287261963]], [[260, 175, 140, 157, 206, 163], [0.0, 0.015648603439331055, 0.016649186611175537, 0.022033870220184326, 0.02406400442123413, 0.02748262882232666]], [[261, 171, 378, 365, 314, 376], [1.1920928955078125e-07, 0.19245398044586182, 0.2584153413772583, 0.2835538387298584, 0.33348995447158813, 0.3505164384841919]], [[262, 250, 137, 264, 248, 100], [0.0, 0.10677742958068848, 0.11464732885360718, 0.11534923315048218, 0.13215667009353638, 0.13236749172210693]], [[263, 202, 147, 313, 284, 163], [0.0, 0.019577860832214355, 0.021443426609039307, 0.02147650718688965, 0.02158653736114502, 0.023872852325439453]], [[264, 248, 170, 222, 226, 250], [5.960464477539063e-08, 0.0431177020072937, 0.057533860206604004, 0.0649675726890564, 0.06670796871185303, 0.07635104656219482]], [[265, 134, 246, 283, 236, 299], [1.1920928955078125e-07, 0.011736392974853516, 0.017399609088897705, 0.01851963996887207, 0.018702685832977295, 0.01908773183822632]], [[266, 257, 245, 308, 267, 273], [0.0, 0.06655001640319824, 0.06999176740646362, 0.07756400108337402, 0.08080315589904785, 0.08301019668579102]], [[267, 190, 251, 237, 200, 338], [1.7881393432617188e-07, 0.030175983905792236, 0.03404170274734497, 0.03607141971588135, 0.04474818706512451, 0.045062363147735596]], [[268, 255, 326, 135, 319, 197], [5.960464477539063e-08, 0.10383635759353638, 0.10588335990905762, 0.11251139640808105, 0.1144254207611084, 0.11579561233520508]], [[269, 288, 190, 172, 338, 214], [0.0, 0.019575893878936768, 0.032198309898376465, 0.041176557540893555, 0.04948568344116211, 0.059067606925964355]], [[270, 166, 139, 186, 309, 143], [0.0, 0.00459665060043335, 0.006964743137359619, 0.0074149370193481445, 0.009103715419769287, 0.010303795337677002]], [[271, 339, 205, 150, 286, 310], [0.0, 0.09119290113449097, 0.11225080490112305, 0.12104082107543945, 0.12915170192718506, 0.13240092992782593]], [[272, 237, 203, 317, 165, 284], [0.0, 0.01598811149597168, 0.02797311544418335, 0.02876049280166626, 0.03050220012664795, 0.03663355112075806]], [[273, 257, 206, 164, 209, 208], [1.1920928955078125e-07, 0.04823946952819824, 0.06325209140777588, 0.06881368160247803, 0.07076108455657959, 0.07107079029083252]], [[274, 98, 165, 337, 155, 317], [0.0, 0.03571951389312744, 0.03589272499084473, 0.04840528964996338, 0.05019235610961914, 0.055007219314575195]], [[275, 164, 219, 176, 246, 163], [0.0, 0.028338909149169922, 0.03297317028045654, 0.0371246337890625, 0.040894150733947754, 0.043616652488708496]], [[276, 315, 182, 167, 183, 257], [0.0, 0.07222163677215576, 0.08126461505889893, 0.08144116401672363, 0.09981459379196167, 0.10561132431030273]], [[277, 289, 201, 207, 295, 223], [0.0, 0.11927878856658936, 0.1237567663192749, 0.12394821643829346, 0.1243894100189209, 0.1246684193611145]], [[278, 150, 201, 157, 202, 225], [0.0, 0.030818819999694824, 0.033941030502319336, 0.03452855348587036, 0.03534209728240967, 0.040799856185913086]], [[279, 247, 235, 179, 335, 151], [1.1920928955078125e-07, 0.1262955665588379, 0.13759773969650269, 0.14452457427978516, 0.14974796772003174, 0.162686288356781]], [[280, 185, 170, 315, 248, 131], [0.0, 0.05971574783325195, 0.08684772253036499, 0.09977197647094727, 0.10151749849319458, 0.10329890251159668]], [[281, 231, 133, 155, 289, 216], [0.0, 0.018488764762878418, 0.019771099090576172, 0.04031932353973389, 0.04608023166656494, 0.05264502763748169]], [[282, 132, 188, 163, 134, 175], [5.960464477539063e-08, 0.010227084159851074, 0.010227084159851074, 0.010870575904846191, 0.019846200942993164, 0.024072766304016113]], [[283, 236, 224, 136, 246, 299], [1.1920928955078125e-07, 0.007670342922210693, 0.015696227550506592, 0.017215490341186523, 0.01747840642929077, 0.01786249876022339]], [[284, 317, 202, 298, 221, 263], [0.0, 0.013387918472290039, 0.015408694744110107, 0.016520261764526367, 0.021330595016479492, 0.02158653736114502]], [[285, 204, 281, 189, 215, 201], [1.7881393432617188e-07, 0.09938699007034302, 0.1236991286277771, 0.14318597316741943, 0.1439579725265503, 0.14399266242980957]], [[286, 150, 290, 278, 184, 334], [0.0, 0.06892329454421997, 0.07358825206756592, 0.0960233211517334, 0.10170519351959229, 0.10394448041915894]], [[287, 242, 239, 162, 169, 304], [1.1920928955078125e-07, 0.0021944046020507812, 0.0162503719329834, 0.022070884704589844, 0.02298504114151001, 0.024961650371551514]], [[288, 269, 190, 338, 141, 172], [5.960464477539063e-08, 0.019575893878936768, 0.04839646816253662, 0.05758464336395264, 0.05821722745895386, 0.06612145900726318]], [[289, 133, 231, 328, 155, 323], [1.7881393432617188e-07, 0.023848295211791992, 0.03574979305267334, 0.037627995014190674, 0.03942149877548218, 0.04384005069732666]], [[290, 184, 201, 174, 150, 278], [0.0, 0.04961192607879639, 0.05132943391799927, 0.05240929126739502, 0.05435460805892944, 0.05523049831390381]], [[291, 246, 136, 219, 236, 323], [0.0, 0.03494745492935181, 0.04055488109588623, 0.04113370180130005, 0.04253000020980835, 0.04801291227340698]], [[292, 232, 222, 266, 326, 308], [0.0, 0.1615593433380127, 0.17287510633468628, 0.17742687463760376, 0.18920427560806274, 0.18978482484817505]], [[293, 324, 150, 201, 278, 317], [0.0, 0.060674965381622314, 0.06171315908432007, 0.06429660320281982, 0.06777846813201904, 0.07364928722381592]], [[294, 178, 304, 309, 270, 166], [1.1920928955078125e-07, 0.016531765460968018, 0.02340257167816162, 0.024524927139282227, 0.027309060096740723, 0.028326809406280518]], [[295, 168, 210, 225, 272, 203], [0.0, 0.053950607776641846, 0.06494021415710449, 0.06918442249298096, 0.07108837366104126, 0.0720212459564209]], [[296, 212, 328, 270, 195, 186], [0.0, 0.01654648780822754, 0.03083944320678711, 0.03370875120162964, 0.03571128845214844, 0.03672921657562256]], [[297, 157, 175, 140, 340, 206], [0.0, 0.04038745164871216, 0.04525315761566162, 0.045385122299194336, 0.04543250799179077, 0.04742574691772461]], [[298, 284, 147, 323, 202, 134], [5.960464477539063e-08, 0.016520261764526367, 0.019907593727111816, 0.02005469799041748, 0.02216237783432007, 0.023342430591583252]], [[299, 219, 246, 236, 134, 283], [0.0, 0.012714385986328125, 0.013514697551727295, 0.013717353343963623, 0.014214754104614258, 0.01786249876022339]], [[300, 220, 255, 135, 275, 208], [1.7881393432617188e-07, 0.10167264938354492, 0.11539125442504883, 0.12487971782684326, 0.13152235746383667, 0.13350838422775269]], [[301, 311, 337, 155, 139, 210], [1.1920928955078125e-07, 0.024713456630706787, 0.026933610439300537, 0.02728712558746338, 0.029225409030914307, 0.031350135803222656]], [[302, 167, 276, 315, 183, 144], [5.960464477539063e-08, 0.10040020942687988, 0.11646288633346558, 0.12316745519638062, 0.1312776803970337, 0.1394059658050537]], [[303, 157, 140, 182, 215, 190], [0.0, 0.03805816173553467, 0.03825658559799194, 0.038714051246643066, 0.041385769844055176, 0.049843013286590576]], [[304, 162, 169, 143, 178, 270], [1.1920928955078125e-07, 0.009294092655181885, 0.011031270027160645, 0.012103438377380371, 0.012186825275421143, 0.014280319213867188]], [[305, 100, 226, 250, 248, 229], [1.1920928955078125e-07, 0.0571979284286499, 0.09763658046722412, 0.12003070116043091, 0.121055006980896, 0.13907289505004883]], [[306, 327, 145, 229, 266, 257], [0.0, 0.10300534963607788, 0.1101272702217102, 0.11274594068527222, 0.12832564115524292, 0.13976943492889404]], [[307, 234, 238, 303, 338, 141], [1.1920928955078125e-07, 0.04729741811752319, 0.051914215087890625, 0.06986117362976074, 0.07161754369735718, 0.07476300001144409]], [[308, 131, 266, 135, 208, 257], [0.0, 0.07476681470870972, 0.07756400108337402, 0.0820913314819336, 0.08416074514389038, 0.08506673574447632]], [[309, 178, 270, 166, 139, 143], [0.0, 0.00853961706161499, 0.009103715419769287, 0.00929337739944458, 0.012069523334503174, 0.017591774463653564]], [[310, 240, 286, 185, 276, 280], [0.0, 0.08398652076721191, 0.10540258884429932, 0.10991179943084717, 0.1138608455657959, 0.11453396081924438]], [[311, 139, 186, 166, 252, 155], [0.0, 0.0069427490234375, 0.007462859153747559, 0.009076416492462158, 0.010087728500366211, 0.01166999340057373]], [[312, 225, 274, 272, 237, 193], [0.0, 0.05490225553512573, 0.05644106864929199, 0.05769842863082886, 0.06180131435394287, 0.061990439891815186]], [[313, 202, 321, 263, 163, 147], [0.0, 0.017575621604919434, 0.018253326416015625, 0.02147650718688965, 0.022833406925201416, 0.023091793060302734]], [[314, 327, 154, 333, 306, 229], [0.0, 0.11612343788146973, 0.1296924352645874, 0.17369884252548218, 0.19680774211883545, 0.19702553749084473]], [[315, 100, 257, 248, 276, 131], [1.1920928955078125e-07, 0.0512617826461792, 0.055569469928741455, 0.0602225661277771, 0.07222163677215576, 0.08709228038787842]], [[316, 187, 180, 207, 194, 144], [0.0, 0.050583481788635254, 0.05255758762359619, 0.054965078830718994, 0.07657277584075928, 0.0806153416633606]], [[317, 284, 165, 272, 98, 263], [1.7881393432617188e-07, 0.013387918472290039, 0.026877403259277344, 0.02876049280166626, 0.02913224697113037, 0.030522286891937256]], [[318, 177, 131, 245, 207, 266], [0.0, 0.05292713642120361, 0.07343053817749023, 0.08046483993530273, 0.08235538005828857, 0.0987844467163086]], [[319, 230, 19, 339, 185, 255], [0.0, 0.09777265787124634, 0.1039050817489624, 0.10520273447036743, 0.1090078353881836, 0.11291950941085815]], [[320, 251, 237, 203, 147, 190], [5.960464477539063e-08, 0.03594863414764404, 0.05135059356689453, 0.052388906478881836, 0.05367434024810791, 0.05399268865585327]], [[321, 313, 202, 224, 134, 147], [1.1920928955078125e-07, 0.018253326416015625, 0.019932448863983154, 0.022302865982055664, 0.02447575330734253, 0.02617931365966797]], [[322, 331, 179, 335, 158, 152], [0.0, 0.13416630029678345, 0.15102267265319824, 0.17183518409729004, 0.17418140172958374, 0.19697624444961548]], [[323, 134, 246, 298, 221, 219], [1.1920928955078125e-07, 0.01453542709350586, 0.016091644763946533, 0.02005469799041748, 0.02044367790222168, 0.020683646202087402]], [[324, 313, 150, 340, 317, 321], [0.0, 0.028543591499328613, 0.03406637907028198, 0.0382114052772522, 0.040027737617492676, 0.040135741233825684]], [[325, 337, 165, 210, 168, 301], [1.1920928955078125e-07, 0.029712677001953125, 0.04549598693847656, 0.055130839347839355, 0.05804872512817383, 0.06450283527374268]], [[326, 135, 148, 336, 208, 308], [0.0, 0.06816703081130981, 0.07189738750457764, 0.08737444877624512, 0.0882422924041748, 0.09878647327423096]], [[327, 306, 154, 314, 333, 229], [1.1920928955078125e-07, 0.10300534963607788, 0.11595845222473145, 0.11612343788146973, 0.12553620338439941, 0.178086519241333]], [[328, 252, 186, 212, 166, 270], [0.0, 0.01485520601272583, 0.016758441925048828, 0.01875680685043335, 0.018893837928771973, 0.01897042989730835]], [[329, 163, 282, 206, 260, 132], [1.7881393432617188e-07, 0.03820192813873291, 0.03828555345535278, 0.04130512475967407, 0.042256951332092285, 0.043357014656066895]], [[330, 165, 274, 317, 98, 325], [1.1920928955078125e-07, 0.06233382225036621, 0.0653199553489685, 0.06912171840667725, 0.06982195377349854, 0.0698235034942627]], [[331, 335, 179, 322, 217, 152], [5.960464477539063e-08, 0.1272348165512085, 0.12730205059051514, 0.13416630029678345, 0.20645546913146973, 0.2066502571105957]], [[332, 173, 97, 160, 179, 292], [0.0, 0.1407971978187561, 0.19803833961486816, 0.24782347679138184, 0.29000604152679443, 0.29583168029785156]], [[333, 327, 314, 306, 154, 229], [1.1920928955078125e-07, 0.12553620338439941, 0.17369884252548218, 0.17674678564071655, 0.18476200103759766, 0.21121728420257568]], [[334, 278, 150, 317, 202, 284], [0.0, 0.047153353691101074, 0.05262744426727295, 0.05584442615509033, 0.06563794612884521, 0.06577849388122559]], [[335, 241, 233, 331, 153, 159], [0.0, 0.11114466190338135, 0.11937052011489868, 0.1272348165512085, 0.13256293535232544, 0.13365519046783447]], [[336, 135, 208, 215, 164, 176], [0.0, 0.0622098445892334, 0.06732916831970215, 0.07458579540252686, 0.08058607578277588, 0.08508956432342529]], [[337, 210, 168, 301, 325, 165], [0.0, 0.017895638942718506, 0.023273587226867676, 0.026933610439300537, 0.029712677001953125, 0.03639101982116699]], [[338, 190, 172, 267, 269, 237], [0.0, 0.033115506172180176, 0.034452080726623535, 0.045062363147735596, 0.04948568344116211, 0.04964101314544678]], [[339, 230, 185, 271, 220, 205], [0.0, 0.06212460994720459, 0.07515597343444824, 0.09119290113449097, 0.09696352481842041, 0.09773552417755127]], [[340, 181, 324, 313, 157, 297], [0.0, 0.02881145477294922, 0.0382114052772522, 0.04109454154968262, 0.042108893394470215, 0.04543250799179077]], [[341, 349, 385, 388, 346, 387], [2.384185791015625e-07, 0.0722353458404541, 0.09744536876678467, 0.11024713516235352, 0.12062901258468628, 0.12062901258468628]], [[342, 345, 61, 69, 64, 8], [0.0, 0.0666857361793518, 0.07439553737640381, 0.11541950702667236, 0.12335515022277832, 0.12647700309753418]], [[343, 92, 7, 96, 99, 12], [0.0, 0.1891764998435974, 0.20381224155426025, 0.21388226747512817, 0.22354435920715332, 0.22633010149002075]], [[344, 359, 350, 357, 353, 368], [1.1920928955078125e-07, 0.0467381477355957, 0.06640791893005371, 0.08592104911804199, 0.08673089742660522, 0.14354759454727173]], [[345, 342, 61, 377, 389, 64], [0.0, 0.0666857361793518, 0.09997725486755371, 0.1102132797241211, 0.13959234952926636, 0.1406097412109375]], [[346, 387, 341, 349, 385, 354], [0.0, 0.0, 0.12062901258468628, 0.1265110969543457, 0.16938412189483643, 0.17005324363708496]], [[347, 360, 366, 374, 368, 367], [0.0, 0.06326377391815186, 0.06389367580413818, 0.08058959245681763, 0.09195613861083984, 0.1031719446182251]], [[348, 117, 122, 379, 108, 325], [0.0, 0.1585390567779541, 0.15867388248443604, 0.16299843788146973, 0.24832665920257568, 0.2492152452468872]], [[349, 388, 341, 387, 346, 380], [0.0, 0.07058513164520264, 0.0722353458404541, 0.1265110969543457, 0.1265110969543457, 0.16601336002349854]], [[350, 344, 359, 353, 372, 368], [0.0, 0.06640791893005371, 0.09039974212646484, 0.10793232917785645, 0.13767576217651367, 0.14601409435272217]], [[351, 363, 373, 354, 371, 381], [0.0, 0.022709369659423828, 0.10086333751678467, 0.2066878080368042, 0.23898297548294067, 0.2433077096939087]], [[352, 370, 375, 369, 32, 10], [0.0, 0.1310194730758667, 0.14964842796325684, 0.2084224820137024, 0.28312039375305176, 0.3224097490310669]], [[353, 368, 344, 359, 350, 357], [0.0, 0.0820278525352478, 0.08673089742660522, 0.10682487487792969, 0.10793232917785645, 0.15117639303207397]], [[354, 381, 355, 346, 387, 341], [0.0, 0.029329538345336914, 0.0825769305229187, 0.17005324363708496, 0.17005324363708496, 0.18214625120162964]], [[355, 381, 354, 364, 351, 363], [1.7881393432617188e-07, 0.06616461277008057, 0.0825769305229187, 0.1317482590675354, 0.2475452423095703, 0.28270119428634644]], [[356, 361, 374, 368, 357, 359], [0.0, 0.08381849527359009, 0.1004076600074768, 0.13015997409820557, 0.1840115785598755, 0.19223642349243164]], [[357, 359, 344, 368, 347, 367], [0.0, 0.028156280517578125, 0.08592104911804199, 0.11522328853607178, 0.12430191040039062, 0.14110112190246582]], [[358, 367, 347, 362, 357, 368], [5.960464477539063e-08, 0.17866230010986328, 0.19540059566497803, 0.1961911916732788, 0.22999250888824463, 0.23048913478851318]], [[359, 357, 344, 350, 368, 353], [0.0, 0.028156280517578125, 0.0467381477355957, 0.09039974212646484, 0.10252678394317627, 0.10682487487792969]], [[360, 347, 366, 374, 368, 372], [0.0, 0.06326377391815186, 0.08457744121551514, 0.09264117479324341, 0.10485172271728516, 0.16277897357940674]], [[361, 356, 374, 368, 359, 357], [0.0, 0.08381849527359009, 0.16663306951522827, 0.1779308319091797, 0.18325412273406982, 0.19962209463119507]], [[362, 358, 367, 347, 368, 374], [1.1920928955078125e-07, 0.1961911916732788, 0.1973731517791748, 0.208543598651886, 0.2127755880355835, 0.21867728233337402]], [[363, 351, 373, 354, 36, 78], [1.1920928955078125e-07, 0.022709369659423828, 0.10493165254592896, 0.2494293451309204, 0.25454968214035034, 0.27526217699050903]], [[364, 355, 354, 381, 389, 377], [5.960464477539063e-08, 0.1317482590675354, 0.22085881233215332, 0.22296857833862305, 0.22627341747283936, 0.24590301513671875]], [[365, 261, 378, 372, 366, 376], [1.1920928955078125e-07, 0.2835538387298584, 0.3101106882095337, 0.31889164447784424, 0.327480673789978, 0.34233587980270386]], [[366, 372, 347, 360, 368, 367], [0.0, 0.05768275260925293, 0.06389367580413818, 0.08457744121551514, 0.1425795555114746, 0.14384692907333374]], [[367, 347, 368, 357, 366, 353], [0.0, 0.1031719446182251, 0.12589150667190552, 0.14110112190246582, 0.14384692907333374, 0.15916478633880615]], [[368, 353, 374, 347, 359, 360], [0.0, 0.0820278525352478, 0.08933752775192261, 0.09195613861083984, 0.10252678394317627, 0.10485172271728516]], [[369, 375, 370, 84, 360, 48], [0.0, 0.15375781059265137, 0.15668678283691406, 0.1693333387374878, 0.18558114767074585, 0.19529390335083008]], [[370, 375, 352, 369, 84, 360], [0.0, 0.0695832371711731, 0.1310194730758667, 0.15668678283691406, 0.23300009965896606, 0.32893913984298706]], [[371, 385, 341, 354, 387, 346], [0.0, 0.03303933143615723, 0.15321165323257446, 0.198014497756958, 0.2000829577445984, 0.2000829577445984]], [[372, 366, 350, 347, 377, 360], [1.1920928955078125e-07, 0.05768275260925293, 0.13767576217651367, 0.14904510974884033, 0.1604536771774292, 0.16277897357940674]], [[373, 351, 363, 371, 389, 377], [5.960464477539063e-08, 0.10086333751678467, 0.10493165254592896, 0.276042640209198, 0.279620885848999, 0.2942497730255127]], [[374, 347, 368, 360, 356, 359], [0.0, 0.08058959245681763, 0.08933752775192261, 0.09264117479324341, 0.1004076600074768, 0.14920765161514282]], [[375, 370, 352, 369, 84, 361], [0.0, 0.0695832371711731, 0.14964842796325684, 0.15375781059265137, 0.15379291772842407, 0.26272857189178467]], [[376, 378, 386, 384, 380, 365], [5.960464477539063e-08, 0.1732240915298462, 0.17802459001541138, 0.2387292981147766, 0.2657686471939087, 0.34233587980270386]], [[377, 345, 389, 342, 372, 61], [1.1920928955078125e-07, 0.1102132797241211, 0.1276479959487915, 0.15085554122924805, 0.1604536771774292, 0.20251786708831787]], [[378, 384, 376, 305, 99, 333], [0.0, 0.11744308471679688, 0.1732240915298462, 0.2102653980255127, 0.22969919443130493, 0.24546420574188232]], [[379, 348, 359, 350, 357, 344], [0.0, 0.16299843788146973, 0.20514291524887085, 0.2177128791809082, 0.21799957752227783, 0.24222278594970703]], [[380, 386, 349, 341, 388, 346], [0.0, 0.07391178607940674, 0.16601336002349854, 0.2032971978187561, 0.21057450771331787, 0.244299054145813]], [[381, 354, 355, 364, 346, 387], [0.0, 0.029329538345336914, 0.06616461277008057, 0.22296857833862305, 0.22590994834899902, 0.22590994834899902]], [[382, 386, 349, 380, 387, 346], [0.0, 0.23309147357940674, 0.26531755924224854, 0.27239447832107544, 0.29042690992355347, 0.29042690992355347]], [[383, 344, 350, 389, 353, 367], [0.0, 0.15802979469299316, 0.19357597827911377, 0.19764947891235352, 0.2018110752105713, 0.20745670795440674]], [[384, 378, 99, 386, 305, 376], [1.1920928955078125e-07, 0.11744308471679688, 0.1798076629638672, 0.20864450931549072, 0.234178364276886, 0.2387292981147766]], [[385, 371, 341, 346, 387, 349], [0.0, 0.03303933143615723, 0.09744536876678467, 0.16938412189483643, 0.16938412189483643, 0.19946181774139404]], [[386, 380, 376, 384, 382, 349], [1.1920928955078125e-07, 0.07391178607940674, 0.17802459001541138, 0.20864450931549072, 0.23309147357940674, 0.2583709955215454]], [[346, 387, 341, 349, 385, 354], [0.0, 0.0, 0.12062901258468628, 0.1265110969543457, 0.16938412189483643, 0.17005324363708496]], [[388, 349, 341, 387, 346, 380], [0.0, 0.07058513164520264, 0.11024713516235352, 0.18378227949142456, 0.18378227949142456, 0.21057450771331787]], [[389, 377, 345, 342, 383, 61], [0.0, 0.1276479959487915, 0.13959234952926636, 0.15592706203460693, 0.19764947891235352, 0.20971935987472534]]]
#2048
arr = [[[0, 128, 337, 30, 356, 166], [0.0, 0.1005626916885376, 0.10077941417694092, 0.10181653499603271, 0.11069488525390625, 0.11128991842269897]], [[1, 335, 308, 131, 273, 14], [0.0, 0.0942697525024414, 0.09997010231018066, 0.10416316986083984, 0.11758792400360107, 0.12119185924530029]], [[2, 210, 72, 76, 311, 242], [1.7881393432617188e-07, 0.049562931060791016, 0.05202406644821167, 0.06311362981796265, 0.06434881687164307, 0.06878328323364258]], [[3, 287, 242, 55, 10, 32], [0.0, 0.04105997085571289, 0.0548740029335022, 0.0632060170173645, 0.06866198778152466, 0.0732453465461731]], [[4, 100, 17, 305, 99, 386], [0.0, 0.06099724769592285, 0.06115597486495972, 0.06637638807296753, 0.07505744695663452, 0.0750969648361206]], [[5, 97, 19, 104, 303, 288], [5.960464477539063e-08, 0.08154857158660889, 0.08185344934463501, 0.08393651247024536, 0.08458435535430908, 0.08599615097045898]], [[6, 378, 229, 71, 16, 171], [1.7881393432617188e-07, 0.06647306680679321, 0.06806796789169312, 0.06850755214691162, 0.07522445917129517, 0.07776880264282227]], [[7, 45, 107, 96, 12, 71], [0.0, 0.0580938458442688, 0.0590936541557312, 0.06011974811553955, 0.060225725173950195, 0.06028568744659424]], [[8, 176, 321, 46, 313, 151], [0.0, 0.03362011909484863, 0.038350820541381836, 0.0428888201713562, 0.04345816373825073, 0.04350876808166504]], [[9, 170, 250, 263, 385, 150], [0.0, 0.12281560897827148, 0.13004720211029053, 0.1312175989151001, 0.13205206394195557, 0.13637584447860718]], [[10, 178, 348, 67, 60, 55], [0.0, 0.047936201095581055, 0.049902498722076416, 0.05183291435241699, 0.05232119560241699, 0.05429047346115112]], [[11, 129, 305, 100, 386, 292], [0.0, 0.08831846714019775, 0.09069520235061646, 0.09222710132598877, 0.0927320122718811, 0.09927761554718018]], [[12, 71, 229, 45, 378, 96], [0.0, 0.02828037738800049, 0.03667175769805908, 0.03744018077850342, 0.04182732105255127, 0.042524099349975586]], [[13, 281, 231, 155, 139, 82], [0.0, 0.035893142223358154, 0.037699997425079346, 0.04320460557937622, 0.04357856512069702, 0.04388362169265747]], [[14, 19, 152, 5, 192, 260], [0.0, 0.0910763144493103, 0.09139037132263184, 0.09370124340057373, 0.09395545721054077, 0.09890615940093994]], [[15, 71, 45, 229, 92, 12], [1.1920928955078125e-07, 0.09209758043289185, 0.09580999612808228, 0.09787583351135254, 0.0991814136505127, 0.09936380386352539]], [[16, 171, 154, 196, 384, 71], [1.1920928955078125e-07, 0.05150872468948364, 0.06328332424163818, 0.06411761045455933, 0.06560969352722168, 0.06584668159484863]], [[17, 305, 57, 100, 388, 36], [0.0, 0.04877501726150513, 0.055229246616363525, 0.05591011047363281, 0.05608147382736206, 0.056215643882751465]], [[18, 143, 198, 114, 360, 165], [0.0, 0.06015002727508545, 0.06475073099136353, 0.06770288944244385, 0.06871318817138672, 0.07012557983398438]], [[19, 152, 215, 39, 315, 260], [0.0, 0.052642107009887695, 0.06158459186553955, 0.06263852119445801, 0.06486845016479492, 0.06546270847320557]], [[20, 231, 281, 13, 289, 360], [0.0, 0.044324636459350586, 0.04457515478134155, 0.04825270175933838, 0.048373520374298096, 0.048667192459106445]], [[21, 181, 62, 262, 310, 340], [0.0, 0.09325623512268066, 0.11275607347488403, 0.12407243251800537, 0.1299898624420166, 0.13688838481903076]], [[22, 332, 305, 100, 4, 384], [0.0, 0.06975585222244263, 0.07071477174758911, 0.07576745748519897, 0.08226519823074341, 0.08533704280853271]], [[23, 388, 257, 57, 209, 248], [3.5762786865234375e-07, 0.07066106796264648, 0.0736396312713623, 0.08093774318695068, 0.08467257022857666, 0.0850268006324768]], [[24, 41, 78, 208, 382, 35], [1.1920928955078125e-07, 0.06995820999145508, 0.09289264678955078, 0.10452008247375488, 0.10537409782409668, 0.11078232526779175]], [[25, 373, 331, 288, 86, 363], [0.0, 0.049719810485839844, 0.05682593584060669, 0.059105873107910156, 0.05919879674911499, 0.06151348352432251]], [[26, 88, 295, 276, 130, 354], [0.0, 0.13215720653533936, 0.13317841291427612, 0.13640064001083374, 0.14095628261566162, 0.14118832349777222]], [[27, 291, 104, 121, 227, 88], [1.1920928955078125e-07, 0.11909270286560059, 0.12615466117858887, 0.14922082424163818, 0.15525811910629272, 0.15731382369995117]], [[28, 388, 349, 23, 257, 57], [0.0, 0.09190154075622559, 0.0920032262802124, 0.09242939949035645, 0.09547334909439087, 0.09568190574645996]], [[29, 258, 194, 125, 118, 318], [0.0, 0.09951764345169067, 0.10150337219238281, 0.1082921028137207, 0.10872000455856323, 0.11350959539413452]], [[30, 375, 337, 76, 52, 309], [0.0, 0.05500936508178711, 0.06323885917663574, 0.06384491920471191, 0.06425493955612183, 0.06765508651733398]], [[31, 236, 255, 247, 389, 151], [1.1920928955078125e-07, 0.08536458015441895, 0.08772879838943481, 0.09057903289794922, 0.09326386451721191, 0.09366410970687866]], [[32, 76, 375, 309, 242, 210], [0.0, 0.04529482126235962, 0.0609058141708374, 0.06201910972595215, 0.06534546613693237, 0.0663800835609436]], [[33, 10, 287, 242, 3, 67], [2.384185791015625e-07, 0.058835625648498535, 0.06372332572937012, 0.0736684799194336, 0.07995736598968506, 0.08360564708709717]], [[34, 259, 18, 128, 198, 49], [5.960464477539063e-08, 0.05369997024536133, 0.07236450910568237, 0.07848501205444336, 0.08096760511398315, 0.08247578144073486]], [[35, 78, 197, 254, 125, 255], [2.384185791015625e-07, 0.09112715721130371, 0.09396719932556152, 0.09481298923492432, 0.09809255599975586, 0.10170602798461914]], [[36, 17, 388, 209, 305, 326], [1.7881393432617188e-07, 0.056215643882751465, 0.05823516845703125, 0.06366699934005737, 0.06771749258041382, 0.07028859853744507]], [[37, 70, 80, 90, 346, 387], [5.960464477539063e-08, 0.07081067562103271, 0.07245051860809326, 0.07526904344558716, 0.07646703720092773, 0.07646703720092773]], [[38, 276, 320, 206, 63, 140], [0.0, 0.06224709749221802, 0.07289868593215942, 0.07399356365203857, 0.07406628131866455, 0.07515543699264526]], [[39, 303, 152, 215, 264, 70], [0.0, 0.04280740022659302, 0.04761064052581787, 0.04792964458465576, 0.048143982887268066, 0.04962873458862305]], [[40, 69, 234, 351, 157, 63], [5.960464477539063e-08, 0.0488094687461853, 0.05567371845245361, 0.05606424808502197, 0.06058239936828613, 0.06100970506668091]], [[41, 24, 78, 273, 382, 208], [0.0, 0.06995820999145508, 0.09829652309417725, 0.10327845811843872, 0.10604262351989746, 0.11442548036575317]], [[42, 298, 325, 189, 227, 290], [0.0, 0.18739008903503418, 0.1901332139968872, 0.19261431694030762, 0.1977393627166748, 0.19783663749694824]], [[43, 0, 356, 370, 30, 337], [1.1920928955078125e-07, 0.12884116172790527, 0.1444295048713684, 0.14681416749954224, 0.15216153860092163, 0.16057586669921875]], [[44, 312, 266, 226, 267, 354], [5.960464477539063e-08, 0.1110842227935791, 0.11402487754821777, 0.11455321311950684, 0.11788570880889893, 0.11900615692138672]], [[45, 229, 71, 378, 12, 96], [1.1920928955078125e-07, 0.02926015853881836, 0.03166651725769043, 0.037140846252441406, 0.03744018077850342, 0.038410067558288574]], [[46, 164, 313, 247, 163, 176], [5.960464477539063e-08, 0.030757546424865723, 0.032804667949676514, 0.03646284341812134, 0.038690388202667236, 0.04049760103225708]], [[47, 313, 235, 46, 117, 164], [0.0, 0.04832732677459717, 0.04969966411590576, 0.0541345477104187, 0.058829545974731445, 0.05934387445449829]], [[48, 369, 210, 20, 252, 383], [1.1920928955078125e-07, 0.1252894401550293, 0.13540172576904297, 0.13950371742248535, 0.14341557025909424, 0.148326575756073]], [[49, 211, 224, 95, 366, 359], [5.960464477539063e-08, 0.055333852767944336, 0.061171889305114746, 0.06294906139373779, 0.063076913356781, 0.06368374824523926]], [[50, 386, 305, 4, 384, 292], [0.0, 0.0706782341003418, 0.07111704349517822, 0.08032643795013428, 0.08162033557891846, 0.0816696286201477]], [[51, 375, 76, 309, 84, 30], [2.384185791015625e-07, 0.06318801641464233, 0.06871497631072998, 0.07387340068817139, 0.07428938150405884, 0.07462084293365479]], [[52, 76, 337, 168, 375, 210], [0.0, 0.04663097858428955, 0.057126522064208984, 0.058302998542785645, 0.0616837739944458, 0.0629071593284607]], [[53, 383, 49, 299, 8, 95], [0.0, 0.08219456672668457, 0.09958779811859131, 0.10117167234420776, 0.10236853361129761, 0.10305947065353394]], [[54, 191, 367, 383, 64, 122], [0.0, 0.17235052585601807, 0.19537591934204102, 0.22151511907577515, 0.22621870040893555, 0.2338804006576538]], [[55, 348, 67, 60, 10, 178], [0.0, 0.050887346267700195, 0.05339038372039795, 0.05345034599304199, 0.05429047346115112, 0.05748450756072998]], [[56, 266, 144, 94, 167, 150], [5.960464477539063e-08, 0.0745808482170105, 0.09138768911361694, 0.09912258386611938, 0.10033959150314331, 0.10937082767486572]], [[57, 17, 388, 209, 257, 305], [0.0, 0.055229246616363525, 0.06635099649429321, 0.06721103191375732, 0.06899487972259521, 0.06986367702484131]], [[58, 380, 99, 142, 94, 384], [0.0, 0.10433363914489746, 0.11881721019744873, 0.12344497442245483, 0.12403273582458496, 0.12717264890670776]], [[59, 271, 286, 179, 123, 227], [0.0, 0.07521593570709229, 0.1281530261039734, 0.13956236839294434, 0.15041756629943848, 0.15301060676574707]], [[60, 67, 348, 178, 10, 55], [0.0, 0.00017821788787841797, 0.047116994857788086, 0.05019253492355347, 0.05232119560241699, 0.05345034599304199]], [[61, 253, 366, 146, 213, 224], [0.0, 0.05778157711029053, 0.060382068157196045, 0.06183302402496338, 0.0628814697265625, 0.06408083438873291]], [[62, 310, 21, 262, 181, 37], [1.1920928955078125e-07, 0.1019512414932251, 0.11275607347488403, 0.12274575233459473, 0.1298845410346985, 0.14955198764801025]], [[63, 140, 69, 351, 283, 206], [2.384185791015625e-07, 0.04478907585144043, 0.04597270488739014, 0.05061972141265869, 0.05126082897186279, 0.05416899919509888]], [[64, 279, 75, 238, 98, 247], [2.384185791015625e-07, 0.10077059268951416, 0.1112896203994751, 0.12097221612930298, 0.12214481830596924, 0.1225970983505249]], [[65, 94, 56, 167, 381, 318], [2.384185791015625e-07, 0.10081690549850464, 0.16298234462738037, 0.1641629934310913, 0.18637174367904663, 0.1864812970161438]], [[66, 71, 12, 45, 229, 96], [0.0, 0.041068196296691895, 0.046581804752349854, 0.05200648307800293, 0.052407026290893555, 0.053811490535736084]], [[67, 60, 348, 178, 10, 55], [0.0, 0.00017821788787841797, 0.04662448167800903, 0.049785733222961426, 0.05183291435241699, 0.05339038372039795]], [[68, 212, 256, 296, 83, 123], [1.1920928955078125e-07, 0.07987916469573975, 0.09101331233978271, 0.10285460948944092, 0.11461901664733887, 0.12338972091674805]], [[69, 351, 140, 63, 157, 40], [0.0, 0.04005134105682373, 0.041211724281311035, 0.04597270488739014, 0.04673677682876587, 0.0488094687461853]], [[70, 248, 264, 215, 39, 297], [1.7881393432617188e-07, 0.04572033882141113, 0.04826486110687256, 0.049379944801330566, 0.04962873458862305, 0.054569780826568604]], [[71, 12, 229, 45, 96, 378], [4.172325134277344e-07, 0.02828037738800049, 0.030160605907440186, 0.03166651725769043, 0.037590622901916504, 0.03851675987243652]], [[72, 210, 82, 168, 311, 139], [0.0, 0.04411518573760986, 0.04566693305969238, 0.04905962944030762, 0.051091670989990234, 0.05183684825897217]], [[73, 45, 327, 92, 12, 343], [5.960464477539063e-08, 0.10720217227935791, 0.11332958936691284, 0.1157228946685791, 0.11603295803070068, 0.11604249477386475]], [[74, 189, 389, 237, 117, 157], [1.7881393432617188e-07, 0.06960052251815796, 0.08840560913085938, 0.09126400947570801, 0.09154009819030762, 0.0926206111907959]], [[75, 247, 164, 307, 117, 283], [0.0, 0.04551893472671509, 0.053152620792388916, 0.05444025993347168, 0.05548286437988281, 0.057063281536102295]], [[76, 32, 375, 210, 52, 309], [0.0, 0.04529482126235962, 0.04639464616775513, 0.04660993814468384, 0.04663097858428955, 0.048916518688201904]], [[77, 336, 63, 69, 164, 247], [1.1920928955078125e-07, 0.05293452739715576, 0.05473989248275757, 0.05812329053878784, 0.058454275131225586, 0.059741437435150146]], [[78, 125, 35, 24, 258, 340], [0.0, 0.08225131034851074, 0.09112715721130371, 0.09289264678955078, 0.0959402322769165, 0.0964822769165039]], [[79, 213, 289, 359, 347, 304], [0.0, 0.07817733287811279, 0.07885366678237915, 0.08214700222015381, 0.08364582061767578, 0.0837395191192627]], [[80, 215, 264, 182, 37, 248], [0.0, 0.06977283954620361, 0.0714913010597229, 0.07219105958938599, 0.07245051860809326, 0.07489895820617676]], [[81, 129, 107, 261, 96, 154], [0.0, 0.15226155519485474, 0.1616497039794922, 0.17522186040878296, 0.18650835752487183, 0.1891527771949768]], [[82, 281, 231, 13, 168, 139], [0.0, 0.0423809289932251, 0.04366481304168701, 0.04388362169265747, 0.0441509485244751, 0.045389533042907715]], [[83, 216, 136, 115, 372, 46], [0.0, 0.06969684362411499, 0.07079887390136719, 0.07450193166732788, 0.07597553730010986, 0.07600688934326172]], [[84, 168, 166, 139, 210, 311], [0.0, 0.04298079013824463, 0.045029282569885254, 0.048431575298309326, 0.05172085762023926, 0.05417817831039429]], [[85, 385, 387, 346, 124, 80], [5.960464477539063e-08, 0.060361623764038086, 0.07113653421401978, 0.07113653421401978, 0.08159124851226807, 0.08374738693237305]], [[86, 288, 190, 303, 25, 269], [0.0, 0.054333627223968506, 0.054544806480407715, 0.05677121877670288, 0.05919879674911499, 0.06163662672042847]], [[87, 254, 137, 329, 39, 217], [0.0, 0.057404398918151855, 0.08084362745285034, 0.09660136699676514, 0.09774887561798096, 0.0977867841720581]], [[88, 295, 199, 201, 63, 93], [1.1920928955078125e-07, 0.05963146686553955, 0.07073652744293213, 0.08101546764373779, 0.08127003908157349, 0.08339250087738037]], [[89, 149, 84, 139, 166, 168], [0.0, 0.04874807596206665, 0.0644349455833435, 0.07213848829269409, 0.0721510648727417, 0.07362496852874756]], [[90, 207, 387, 346, 315, 37], [1.1920928955078125e-07, 0.061542391777038574, 0.0673600435256958, 0.0673600435256958, 0.07291239500045776, 0.07526904344558716]], [[91, 313, 176, 46, 164, 151], [0.0, 0.04198896884918213, 0.042483389377593994, 0.04323005676269531, 0.0462191104888916, 0.04850655794143677]], [[92, 45, 229, 12, 71, 378], [0.0, 0.040180325508117676, 0.042765915393829346, 0.045211851596832275, 0.05054116249084473, 0.057910025119781494]], [[93, 199, 88, 63, 295, 203], [1.1920928955078125e-07, 0.07741540670394897, 0.08339250087738037, 0.08914095163345337, 0.0915137529373169, 0.0935211181640625]], [[94, 56, 65, 129, 58, 167], [0.0, 0.09912258386611938, 0.10081684589385986, 0.10811948776245117, 0.12403273582458496, 0.13024282455444336]], [[95, 224, 285, 366, 321, 213], [0.0, 0.03451073169708252, 0.03666502237319946, 0.04081171751022339, 0.04123347997665405, 0.041637539863586426]], [[96, 229, 378, 71, 45, 261], [1.1920928955078125e-07, 0.035408854484558105, 0.03636223077774048, 0.037590622901916504, 0.038410067558288574, 0.04035520553588867]], [[97, 205, 170, 160, 19, 319], [0.0, 0.06477290391921997, 0.06766068935394287, 0.0766134262084961, 0.07778501510620117, 0.07952713966369629]], [[98, 241, 64, 236, 362, 197], [5.960464477539063e-08, 0.10403168201446533, 0.12214481830596924, 0.13926100730895996, 0.14328312873840332, 0.14532190561294556]], [[99, 142, 386, 292, 305, 384], [1.7881393432617188e-07, 0.04474687576293945, 0.05754208564758301, 0.05966871976852417, 0.06204444169998169, 0.07085573673248291]], [[100, 305, 17, 4, 209, 257], [1.7881393432617188e-07, 0.04650908708572388, 0.05591011047363281, 0.06099724769592285, 0.0654001235961914, 0.06881314516067505]], [[101, 95, 321, 313, 224, 253], [1.1920928955078125e-07, 0.048243939876556396, 0.04940342903137207, 0.04948067665100098, 0.04967641830444336, 0.05025213956832886]], [[102, 71, 196, 343, 16, 229], [0.0, 0.09819847345352173, 0.09978246688842773, 0.10211288928985596, 0.10580718517303467, 0.10837650299072266]], [[103, 217, 320, 137, 363, 233], [0.0, 0.08282500505447388, 0.0857122540473938, 0.09019076824188232, 0.09669601917266846, 0.09772109985351562]], [[104, 121, 235, 238, 5, 63], [0.0, 0.06613713502883911, 0.07678675651550293, 0.07891273498535156, 0.08393651247024536, 0.08574026823043823]], [[105, 112, 327, 378, 154, 229], [2.384185791015625e-07, 2.384185791015625e-07, 0.05802124738693237, 0.05985313653945923, 0.06026118993759155, 0.06101179122924805]], [[106, 190, 307, 235, 234, 86], [0.0, 0.06245231628417969, 0.06550025939941406, 0.07288551330566406, 0.07616257667541504, 0.07705569267272949]], [[107, 378, 96, 229, 12, 154], [5.960464477539063e-08, 0.043897151947021484, 0.04902195930480957, 0.04976707696914673, 0.051196157932281494, 0.052003324031829834]], [[108, 328, 249, 138, 220, 275], [0.0, 0.06590616703033447, 0.08359116315841675, 0.10840874910354614, 0.10897600650787354, 0.11880385875701904]], [[109, 355, 241, 180, 159, 364], [0.0, 0.11657929420471191, 0.12503910064697266, 0.1260690689086914, 0.1325162649154663, 0.1346331238746643]], [[110, 384, 386, 232, 16, 305], [0.0, 0.07200497388839722, 0.09606689214706421, 0.09742778539657593, 0.09962868690490723, 0.10093814134597778]], [[111, 16, 196, 384, 110, 171], [0.0, 0.11385107040405273, 0.11557066440582275, 0.11656224727630615, 0.12670302391052246, 0.12846243381500244]], [[105, 112, 327, 378, 154, 229], [2.384185791015625e-07, 2.384185791015625e-07, 0.05802124738693237, 0.05985313653945923, 0.06026118993759155, 0.06101179122924805]], [[113, 124, 201, 123, 88, 217], [5.960464477539063e-08, 0.0777277946472168, 0.08865678310394287, 0.10174578428268433, 0.10515928268432617, 0.10644412040710449]], [[114, 289, 198, 213, 252, 143], [1.1920928955078125e-07, 0.050698280334472656, 0.05676358938217163, 0.06200987100601196, 0.06275969743728638, 0.063576340675354]], [[115, 253, 216, 366, 224, 350], [0.0, 0.055370450019836426, 0.060330986976623535, 0.062326788902282715, 0.06277275085449219, 0.06360357999801636]], [[116, 333, 332, 102, 382, 120], [1.1920928955078125e-07, 0.07276517152786255, 0.09047341346740723, 0.11065751314163208, 0.12521463632583618, 0.1300889253616333]], [[117, 237, 313, 247, 46, 164], [1.1920928955078125e-07, 0.03674668073654175, 0.03934609889984131, 0.03998589515686035, 0.04171347618103027, 0.0431370735168457]], [[118, 167, 29, 381, 266, 355], [1.7881393432617188e-07, 0.10203838348388672, 0.10872000455856323, 0.11471152305603027, 0.1239631175994873, 0.1299229860305786]], [[119, 183, 207, 177, 318, 37], [0.0, 0.11215156316757202, 0.13054955005645752, 0.13418471813201904, 0.13678085803985596, 0.15105986595153809]], [[120, 110, 116, 333, 365, 384], [0.0, 0.12943404912948608, 0.1300889253616333, 0.13278615474700928, 0.13954782485961914, 0.14322787523269653]], [[121, 47, 238, 104, 235, 46], [5.960464477539063e-08, 0.06309103965759277, 0.06599342823028564, 0.06613713502883911, 0.0713815689086914, 0.07837450504302979]], [[122, 367, 357, 361, 353, 359], [1.7881393432617188e-07, 0.09586310386657715, 0.10388410091400146, 0.11352717876434326, 0.12096035480499268, 0.12133049964904785]], [[123, 286, 256, 113, 263, 290], [0.0, 0.09271705150604248, 0.09450113773345947, 0.10174578428268433, 0.1035568118095398, 0.10465335845947266]], [[124, 113, 385, 37, 85, 207], [1.1920928955078125e-07, 0.0777277946472168, 0.07818859815597534, 0.07925033569335938, 0.08159124851226807, 0.08329004049301147]], [[125, 78, 340, 273, 35, 280], [1.1920928955078125e-07, 0.08225131034851074, 0.09489220380783081, 0.09756767749786377, 0.09809255599975586, 0.10554414987564087]], [[126, 83, 212, 162, 265, 350], [0.0, 0.10565441846847534, 0.11218750476837158, 0.11417609453201294, 0.11477464437484741, 0.1185951828956604]], [[127, 290, 354, 302, 144, 381], [2.980232238769531e-07, 0.09275192022323608, 0.09446471929550171, 0.0950326919555664, 0.09758371114730835, 0.10467958450317383]], [[128, 374, 231, 186, 20, 304], [0.0, 0.05354666709899902, 0.05509597063064575, 0.056864380836486816, 0.05753493309020996, 0.059204936027526855]], [[129, 174, 305, 100, 11, 386], [0.0, 0.06721508502960205, 0.07833313941955566, 0.08523988723754883, 0.08831846714019775, 0.09280383586883545]], [[130, 157, 288, 172, 351, 303], [1.1920928955078125e-07, 0.052381277084350586, 0.05249941349029541, 0.055913448333740234, 0.05718696117401123, 0.05879563093185425]], [[131, 335, 308, 23, 1, 177], [2.384185791015625e-07, 0.07537662982940674, 0.08919519186019897, 0.10340988636016846, 0.10416316986083984, 0.10516226291656494]], [[188, 132, 282, 246, 372, 176], [3.5762786865234375e-07, 3.5762786865234375e-07, 0.03381061553955078, 0.03964346647262573, 0.04205894470214844, 0.042507946491241455]], [[133, 284, 285, 95, 213, 146], [2.980232238769531e-07, 0.05062246322631836, 0.051327526569366455, 0.05221682786941528, 0.05582070350646973, 0.05612307786941528]], [[134, 132, 188, 246, 282, 342], [0.0, 0.05285942554473877, 0.05285942554473877, 0.058534443378448486, 0.060078978538513184, 0.061326026916503906]], [[135, 349, 326, 251, 341, 170], [5.960464477539063e-08, 0.0872570276260376, 0.09068471193313599, 0.09406256675720215, 0.09529423713684082, 0.09625828266143799]], [[136, 372, 313, 46, 188, 132], [0.0, 0.04761546850204468, 0.051690757274627686, 0.05169868469238281, 0.05170726776123047, 0.05170726776123047]], [[137, 329, 315, 217, 215, 39], [0.0, 0.03967493772506714, 0.05989658832550049, 0.06065559387207031, 0.061300039291381836, 0.06167083978652954]], [[138, 236, 108, 249, 176, 255], [0.0, 0.10527598857879639, 0.10840874910354614, 0.11044037342071533, 0.11077278852462769, 0.11326533555984497]], [[139, 168, 155, 231, 166, 13], [0.0, 0.03546905517578125, 0.03861701488494873, 0.04148101806640625, 0.04350167512893677, 0.04357856512069702]], [[140, 351, 175, 69, 206, 63], [5.960464477539063e-08, 0.038742244243621826, 0.03926432132720947, 0.041211724281311035, 0.04249817132949829, 0.04478907585144043]], [[141, 254, 181, 329, 87, 262], [0.0, 0.09456205368041992, 0.10321056842803955, 0.11289513111114502, 0.11427438259124756, 0.11794519424438477]], [[142, 99, 292, 386, 384, 4], [1.7881393432617188e-07, 0.04474687576293945, 0.06172895431518555, 0.0668976902961731, 0.07155561447143555, 0.08189666271209717]], [[143, 18, 114, 219, 133, 95], [0.0, 0.06015002727508545, 0.063576340675354, 0.06993556022644043, 0.07025337219238281, 0.07231974601745605]], [[144, 56, 150, 127, 266, 302], [5.960464477539063e-08, 0.09138768911361694, 0.09296572208404541, 0.09758371114730835, 0.1053779125213623, 0.10982018709182739]], [[145, 333, 222, 332, 335, 22], [0.0, 0.1586158275604248, 0.1672675609588623, 0.1762371063232422, 0.17648464441299438, 0.17766046524047852]], [[146, 253, 224, 213, 95, 321], [0.0, 0.039893269538879395, 0.041908979415893555, 0.04300886392593384, 0.04475212097167969, 0.04629397392272949]], [[147, 91, 46, 247, 140, 283], [1.7881393432617188e-07, 0.05453014373779297, 0.05913197994232178, 0.05989283323287964, 0.061430394649505615, 0.06162184476852417]], [[148, 4, 142, 161, 171, 232], [0.0, 0.12091636657714844, 0.12572097778320312, 0.12703359127044678, 0.13017600774765015, 0.13085651397705078]], [[149, 89, 84, 51, 168, 270], [1.7881393432617188e-07, 0.04874807596206665, 0.09636402130126953, 0.09851789474487305, 0.09899759292602539, 0.09978771209716797]], [[150, 263, 385, 170, 80, 250], [0.0, 0.06800848245620728, 0.07880616188049316, 0.08270537853240967, 0.0842665433883667, 0.08466446399688721]], [[151, 236, 176, 313, 163, 247], [0.0, 0.027031242847442627, 0.03211629390716553, 0.0324057936668396, 0.03695887327194214, 0.037789881229400635]], [[152, 315, 215, 264, 248, 297], [0.0, 0.03177213668823242, 0.035214245319366455, 0.04025083780288696, 0.041791558265686035, 0.0418393611907959]], [[153, 214, 354, 320, 276, 187], [0.0, 0.0711216926574707, 0.08582174777984619, 0.09790593385696411, 0.10246086120605469, 0.10278666019439697]], [[154, 378, 229, 171, 261, 96], [0.0, 0.0352669358253479, 0.03776901960372925, 0.04543197154998779, 0.045757174491882324, 0.04837346076965332]], [[155, 139, 166, 13, 168, 231], [0.0, 0.03861701488494873, 0.04088938236236572, 0.04320460557937622, 0.044882118701934814, 0.0454789400100708]], [[156, 326, 208, 5, 388, 28], [1.1920928955078125e-07, 0.09791409969329834, 0.09890776872634888, 0.10843789577484131, 0.10897552967071533, 0.11238610744476318]], [[157, 351, 234, 237, 283, 117], [0.0, 0.037863969802856445, 0.04127538204193115, 0.0439186692237854, 0.04423302412033081, 0.04579967260360718]], [[158, 152, 205, 315, 387, 346], [0.0, 0.06236445903778076, 0.06301093101501465, 0.07053852081298828, 0.07330489158630371, 0.07330489158630371]], [[159, 241, 180, 125, 109, 64], [0.0, 0.10740554332733154, 0.12016165256500244, 0.12514865398406982, 0.1325162649154663, 0.13385224342346191]], [[160, 205, 97, 170, 158, 260], [0.0, 0.07577264308929443, 0.0766134262084961, 0.08114367723464966, 0.0825076699256897, 0.09719175100326538]], [[161, 148, 142, 99, 100, 341], [0.0, 0.12703359127044678, 0.13155686855316162, 0.14235204458236694, 0.1438489556312561, 0.14404624700546265]], [[162, 115, 270, 356, 79, 344], [5.960464477539063e-08, 0.07994192838668823, 0.08232247829437256, 0.08413445949554443, 0.09695416688919067, 0.09810996055603027]], [[163, 151, 46, 202, 176, 164], [0.0, 0.03695887327194214, 0.038690388202667236, 0.03973519802093506, 0.040413856506347656, 0.044187188148498535]], [[164, 46, 247, 176, 313, 151], [0.0, 0.030757546424865723, 0.03191095590591431, 0.037723660469055176, 0.03801286220550537, 0.040484607219696045]], [[165, 313, 202, 321, 46, 253], [0.0, 0.040986478328704834, 0.04548847675323486, 0.04929262399673462, 0.050762712955474854, 0.053789496421813965]], [[166, 168, 155, 139, 84, 231], [1.1920928955078125e-07, 0.037104904651641846, 0.04088938236236572, 0.04350167512893677, 0.045029282569885254, 0.04504692554473877]], [[167, 266, 56, 118, 302, 381], [0.0, 0.10016560554504395, 0.10033959150314331, 0.10203838348388672, 0.11453378200531006, 0.12158674001693726]], [[168, 139, 166, 311, 231, 84], [0.0, 0.03546905517578125, 0.037104904651641846, 0.04137420654296875, 0.042484819889068604, 0.04298079013824463]], [[169, 2, 369, 82, 13, 281], [5.960464477539063e-08, 0.14825159311294556, 0.16334044933319092, 0.16586869955062866, 0.16706585884094238, 0.16994917392730713]], [[170, 152, 264, 215, 315, 248], [2.384185791015625e-07, 0.04558873176574707, 0.04932451248168945, 0.05118155479431152, 0.05197376012802124, 0.05300372838973999]], [[171, 154, 16, 378, 71, 229], [0.0, 0.04543197154998779, 0.05150872468948364, 0.053610920906066895, 0.05579036474227905, 0.056551456451416016]], [[172, 185, 190, 303, 363, 351], [0.0, 0.02820265293121338, 0.041084229946136475, 0.04118317365646362, 0.04431450366973877, 0.04499173164367676]], [[173, 152, 315, 215, 264, 39], [0.0, 0.05225187540054321, 0.05319458246231079, 0.0546075701713562, 0.05595582723617554, 0.06201666593551636]], [[174, 129, 11, 56, 124, 250], [5.960464477539063e-08, 0.06721508502960205, 0.11344987154006958, 0.11787307262420654, 0.12291491031646729, 0.12521004676818848]], [[175, 140, 260, 206, 303, 351], [0.0, 0.03926432132720947, 0.043672263622283936, 0.045515596866607666, 0.05085843801498413, 0.05103576183319092]], [[176, 321, 151, 8, 164, 313], [5.960464477539063e-08, 0.03206610679626465, 0.03211629390716553, 0.03362011909484863, 0.037723660469055176, 0.038135647773742676]], [[177, 318, 335, 131, 183, 200], [1.1920928955078125e-07, 0.07769155502319336, 0.08400803804397583, 0.10516226291656494, 0.10611903667449951, 0.10703790187835693]], [[178, 348, 10, 67, 60, 55], [0.0, 0.045823872089385986, 0.047936201095581055, 0.049785733222961426, 0.05019253492355347, 0.05748450756072998]], [[179, 324, 40, 336, 234, 69], [0.0, 0.12637484073638916, 0.1275320053100586, 0.12896084785461426, 0.13002431392669678, 0.13068783283233643]], [[180, 364, 191, 159, 109, 294], [0.0, 0.09463024139404297, 0.11927121877670288, 0.12016165256500244, 0.1260690689086914, 0.13898307085037231]], [[181, 340, 21, 262, 254, 141], [1.7881393432617188e-07, 0.08142566680908203, 0.09325623512268066, 0.09351694583892822, 0.09795248508453369, 0.10321056842803955]], [[182, 215, 39, 264, 315, 303], [0.0, 0.044873058795928955, 0.05113095045089722, 0.05302906036376953, 0.0557781457901001, 0.055938005447387695]], [[183, 318, 177, 37, 90, 119], [0.0, 0.09742510318756104, 0.10611903667449951, 0.10896170139312744, 0.11013084650039673, 0.11215156316757202]], [[184, 354, 153, 334, 201, 276], [0.0, 0.12017548084259033, 0.12688851356506348, 0.1272869110107422, 0.13057005405426025, 0.13365823030471802]], [[185, 172, 190, 303, 351, 206], [0.0, 0.02820265293121338, 0.04222702980041504, 0.04655247926712036, 0.048988282680511475, 0.05116105079650879]], [[186, 198, 13, 304, 270, 289], [0.0, 0.044846296310424805, 0.04499310255050659, 0.04679000377655029, 0.047149658203125, 0.04737955331802368]], [[187, 316, 153, 354, 310, 74], [1.1920928955078125e-07, 0.09895980358123779, 0.10278666019439697, 0.12309175729751587, 0.12310522794723511, 0.13652777671813965]], [[188, 132, 282, 246, 372, 176], [3.5762786865234375e-07, 3.5762786865234375e-07, 0.03381061553955078, 0.03964346647262573, 0.04205894470214844, 0.042507946491241455]], [[189, 74, 286, 324, 265, 117], [0.0, 0.06960052251815796, 0.08125758171081543, 0.08426856994628906, 0.08709573745727539, 0.08909231424331665]], [[190, 172, 185, 238, 234, 117], [0.0, 0.041084229946136475, 0.04222702980041504, 0.04545170068740845, 0.04728883504867554, 0.052237510681152344]], [[191, 367, 353, 383, 313, 75], [0.0, 0.06222623586654663, 0.0990610122680664, 0.10220921039581299, 0.10430020093917847, 0.10488665103912354]], [[192, 267, 269, 276, 288, 14], [5.960464477539063e-08, 0.06630659103393555, 0.0887455940246582, 0.09064161777496338, 0.09125697612762451, 0.09395545721054077]], [[193, 225, 313, 247, 283, 164], [1.7881393432617188e-07, 0.03489327430725098, 0.038313984870910645, 0.038887202739715576, 0.039339661598205566, 0.04055428504943848]], [[194, 258, 29, 125, 273, 355], [0.0, 0.08551156520843506, 0.10150337219238281, 0.12372344732284546, 0.13050705194473267, 0.13089263439178467]], [[195, 212, 68, 328, 256, 115], [0.0, 0.1354144811630249, 0.1399354338645935, 0.15249371528625488, 0.1573815941810608, 0.15895235538482666]], [[196, 229, 71, 261, 378, 96], [0.0, 0.040293097496032715, 0.0447850227355957, 0.04824566841125488, 0.048985421657562256, 0.05021512508392334]], [[197, 280, 255, 35, 340, 78], [5.960464477539063e-08, 0.09247159957885742, 0.09326112270355225, 0.09396719932556152, 0.1096886396408081, 0.1113814115524292]], [[198, 186, 13, 289, 95, 304], [5.960464477539063e-08, 0.044846296310424805, 0.0480571985244751, 0.04828965663909912, 0.05143260955810547, 0.052844464778900146]], [[199, 295, 88, 46, 93, 235], [0.0, 0.06588059663772583, 0.07073652744293213, 0.07666236162185669, 0.07741540670394897, 0.08306300640106201]], [[200, 276, 266, 267, 90, 308], [1.1920928955078125e-07, 0.08952897787094116, 0.09026122093200684, 0.09285891056060791, 0.09985148906707764, 0.10495865345001221]], [[201, 203, 295, 276, 130, 331], [0.0, 0.04549610614776611, 0.0586322546005249, 0.06823927164077759, 0.07002449035644531, 0.07159221172332764]], [[202, 377, 163, 313, 151, 46], [0.0, 0.034522414207458496, 0.03973519802093506, 0.03975391387939453, 0.041041791439056396, 0.04146873950958252]], [[203, 201, 320, 295, 217, 38], [0.0, 0.04549610614776611, 0.06591594219207764, 0.06635880470275879, 0.07521557807922363, 0.07876408100128174]], [[204, 303, 39, 363, 182, 288], [0.0, 0.05752992630004883, 0.0648108720779419, 0.06578505039215088, 0.06773388385772705, 0.06806808710098267]], [[205, 158, 97, 160, 170, 19], [0.0, 0.06301093101501465, 0.06477290391921997, 0.07577264308929443, 0.07917684316635132, 0.08983564376831055]], [[206, 140, 175, 172, 351, 185], [1.1920928955078125e-07, 0.04249817132949829, 0.045515596866607666, 0.04913550615310669, 0.05045241117477417, 0.05116105079650879]], [[207, 90, 276, 354, 124, 80], [0.0, 0.061542391777038574, 0.06277155876159668, 0.08175718784332275, 0.08329004049301147, 0.0853080153465271]], [[208, 382, 156, 24, 41, 87], [0.0, 0.09446132183074951, 0.09890776872634888, 0.10452008247375488, 0.11442548036575317, 0.11987102031707764]], [[209, 257, 341, 388, 248, 36], [0.0, 0.04481673240661621, 0.052691102027893066, 0.0558357834815979, 0.05723994970321655, 0.06366699934005737]], [[210, 168, 72, 76, 311, 2], [0.0, 0.043467044830322266, 0.04411518573760986, 0.04660993814468384, 0.04725754261016846, 0.049562931060791016]], [[211, 224, 366, 95, 299, 253], [1.1920928955078125e-07, 0.03252840042114258, 0.04077184200286865, 0.04481750726699829, 0.04558032751083374, 0.04579252004623413]], [[212, 296, 256, 68, 115, 324], [1.1920928955078125e-07, 0.054102301597595215, 0.06585943698883057, 0.07987916469573975, 0.08727675676345825, 0.093014657497406]], [[213, 253, 299, 379, 95, 224], [5.960464477539063e-08, 0.030906081199645996, 0.03753340244293213, 0.03827625513076782, 0.041637539863586426, 0.04195582866668701]], [[214, 153, 157, 237, 130, 75], [0.0, 0.0711216926574707, 0.0840272307395935, 0.08504241704940796, 0.08600491285324097, 0.08705717325210571]], [[215, 315, 297, 264, 152, 248], [1.1920928955078125e-07, 0.03144371509552002, 0.03445601463317871, 0.034531354904174805, 0.035214245319366455, 0.036588191986083984]], [[216, 350, 253, 136, 299, 115], [0.0, 0.05223274230957031, 0.0527644157409668, 0.055375516414642334, 0.056859731674194336, 0.060330986976623535]], [[217, 137, 320, 351, 363, 303], [0.0, 0.06065559387207031, 0.06691849231719971, 0.06917881965637207, 0.06983077526092529, 0.07056742906570435]], [[218, 62, 310, 322, 262, 181], [1.1920928955078125e-07, 0.21044594049453735, 0.22777140140533447, 0.23025846481323242, 0.2338012456893921, 0.23700296878814697]], [[219, 299, 213, 224, 321, 253], [1.1920928955078125e-07, 0.042787373065948486, 0.04551136493682861, 0.050069570541381836, 0.050669968128204346, 0.05123239755630493]], [[220, 275, 299, 213, 188, 132], [0.0, 0.06486648321151733, 0.08075761795043945, 0.08616268634796143, 0.0863046646118164, 0.0863046646118164]], [[221, 299, 219, 323, 213, 246], [1.1920928955078125e-07, 0.042986929416656494, 0.055373966693878174, 0.05539369583129883, 0.05661743879318237, 0.05843895673751831]], [[222, 306, 50, 226, 332, 305], [1.1920928955078125e-07, 0.081417977809906, 0.09294962882995605, 0.10582900047302246, 0.10664987564086914, 0.10735034942626953]], [[223, 202, 253, 46, 321, 165], [5.960464477539063e-08, 0.10697489976882935, 0.10969197750091553, 0.11341613531112671, 0.11358588933944702, 0.11368012428283691]], [[224, 211, 95, 253, 321, 366], [0.0, 0.03252840042114258, 0.03451073169708252, 0.0354006290435791, 0.03650498390197754, 0.03657233715057373]], [[225, 193, 313, 46, 164, 247], [0.0, 0.03489327430725098, 0.03862518072128296, 0.04578787088394165, 0.0464855432510376, 0.04913681745529175]], [[226, 305, 388, 57, 17, 100], [1.1920928955078125e-07, 0.0770488977432251, 0.07988893985748291, 0.08052527904510498, 0.08152008056640625, 0.08529442548751831]], [[227, 123, 263, 59, 27, 97], [5.960464477539063e-08, 0.1452654004096985, 0.15197491645812988, 0.15301060676574707, 0.15525811910629272, 0.1553562879562378]], [[228, 128, 259, 370, 374, 186], [5.960464477539063e-08, 0.06796705722808838, 0.07095599174499512, 0.07302343845367432, 0.0776023268699646, 0.07835996150970459]], [[229, 378, 45, 71, 96, 12], [1.1920928955078125e-07, 0.027566850185394287, 0.02926015853881836, 0.030160605907440186, 0.035408854484558105, 0.03667175769805908]], [[230, 351, 336, 303, 69, 331], [0.0, 0.05624890327453613, 0.0582427978515625, 0.05877023935317993, 0.060225069522857666, 0.06074255704879761]], [[231, 13, 281, 139, 168, 82], [0.0, 0.037699997425079346, 0.03872549533843994, 0.04148101806640625, 0.042484819889068604, 0.04366481304168701]], [[232, 386, 305, 384, 292, 4], [5.960464477539063e-08, 0.06365704536437988, 0.06490051746368408, 0.06970226764678955, 0.07316362857818604, 0.08598101139068604]], [[233, 339, 303, 268, 39, 86], [0.0, 0.04054689407348633, 0.05130600929260254, 0.05691629648208618, 0.060648202896118164, 0.06563824415206909]], [[234, 157, 351, 190, 117, 307], [0.0, 0.04127538204193115, 0.045442938804626465, 0.04728883504867554, 0.047707974910736084, 0.0501326322555542]], [[235, 117, 307, 47, 46, 237], [0.0, 0.048740386962890625, 0.049649059772491455, 0.04969966411590576, 0.05088818073272705, 0.05182367563247681]], [[236, 151, 313, 176, 321, 163], [1.7881393432617188e-07, 0.027031242847442627, 0.036487877368927, 0.042211294174194336, 0.044904351234436035, 0.04566991329193115]], [[237, 117, 157, 313, 46, 247], [0.0, 0.03674668073654175, 0.0439186692237854, 0.04923820495605469, 0.04925954341888428, 0.050660014152526855]], [[238, 190, 283, 247, 117, 46], [2.384185791015625e-07, 0.04545170068740845, 0.048127174377441406, 0.05011308193206787, 0.05219733715057373, 0.05455470085144043]], [[239, 352, 10, 178, 348, 55], [1.1920928955078125e-07, 0.07018280029296875, 0.07621383666992188, 0.08183848857879639, 0.08508491516113281, 0.09700721502304077]], [[240, 250, 341, 17, 36, 209], [3.5762786865234375e-07, 0.08225679397583008, 0.09454113245010376, 0.10358309745788574, 0.10411477088928223, 0.10527968406677246]], [[241, 98, 159, 64, 109, 125], [0.0, 0.10403168201446533, 0.10740554332733154, 0.12294292449951172, 0.12503910064697266, 0.16849833726882935]], [[242, 287, 3, 32, 2, 33], [0.0, 0.04150635004043579, 0.0548740029335022, 0.06534552574157715, 0.06878328323364258, 0.0736684799194336]], [[243, 293, 300, 330, 217, 371], [5.960464477539063e-08, 0.06615966558456421, 0.0826120376586914, 0.08586001396179199, 0.1071932315826416, 0.10994827747344971]], [[244, 269, 190, 172, 288, 86], [0.0, 0.087715744972229, 0.08964782953262329, 0.089851975440979, 0.09056812524795532, 0.09312558174133301]], [[245, 17, 209, 308, 341, 388], [0.0, 0.09572231769561768, 0.09672737121582031, 0.10142326354980469, 0.10246080160140991, 0.1030501127243042]], [[246, 188, 132, 224, 321, 372], [2.384185791015625e-07, 0.03964346647262573, 0.03964346647262573, 0.043895840644836426, 0.04490387439727783, 0.04494786262512207]], [[247, 164, 313, 46, 151, 283], [1.1920928955078125e-07, 0.03191101551055908, 0.036084651947021484, 0.03646284341812134, 0.037789881229400635, 0.03851914405822754]], [[248, 264, 215, 388, 297, 315], [0.0, 0.03045344352722168, 0.036588191986083984, 0.037600159645080566, 0.03769958019256592, 0.04073596000671387]], [[249, 328, 361, 108, 284, 323], [0.0, 0.0680626630783081, 0.08284461498260498, 0.08359116315841675, 0.0961313247680664, 0.09724795818328857]], [[250, 341, 209, 251, 248, 388], [1.7881393432617188e-07, 0.055074095726013184, 0.07054895162582397, 0.07269281148910522, 0.07282203435897827, 0.07555252313613892]], [[251, 341, 388, 257, 209, 17], [0.0, 0.057681381702423096, 0.06265377998352051, 0.06784355640411377, 0.06860435009002686, 0.06961339712142944]], [[252, 186, 231, 304, 13, 289], [0.0, 0.05910623073577881, 0.059171199798583984, 0.05929088592529297, 0.05941861867904663, 0.059744834899902344]], [[253, 213, 224, 321, 299, 146], [0.0, 0.030906081199645996, 0.0354006290435791, 0.03874349594116211, 0.039844810962677, 0.039893269538879395]], [[254, 87, 137, 329, 39, 217], [0.0, 0.057404398918151855, 0.06811177730560303, 0.08019626140594482, 0.08181190490722656, 0.08715856075286865]], [[255, 247, 31, 283, 236, 197], [1.1920928955078125e-07, 0.08484518527984619, 0.08772879838943481, 0.0910344123840332, 0.09178638458251953, 0.09326112270355225]], [[256, 212, 88, 68, 199, 286], [1.1920928955078125e-07, 0.06585943698883057, 0.08477741479873657, 0.09101331233978271, 0.09127217531204224, 0.0913705825805664]], [[257, 209, 248, 341, 388, 264], [0.0, 0.04481673240661621, 0.05372977256774902, 0.05492275953292847, 0.05695760250091553, 0.06178706884384155]], [[258, 194, 78, 29, 273, 382], [2.384185791015625e-07, 0.08551156520843506, 0.0959402322769165, 0.09951764345169067, 0.10328960418701172, 0.11100852489471436]], [[259, 34, 128, 228, 374, 198], [2.384185791015625e-07, 0.05369997024536133, 0.06417191028594971, 0.07095599174499512, 0.07719868421554565, 0.07916557788848877]], [[260, 175, 303, 288, 331, 363], [0.0, 0.043672263622283936, 0.04999136924743652, 0.05283915996551514, 0.0539584755897522, 0.05498528480529785]], [[261, 229, 96, 154, 71, 196], [2.384185791015625e-07, 0.04008185863494873, 0.04035520553588867, 0.045757174491882324, 0.045952022075653076, 0.04824566841125488]], [[262, 380, 181, 215, 388, 264], [0.0, 0.06650638580322266, 0.09351694583892822, 0.0969964861869812, 0.09846818447113037, 0.09926259517669678]], [[263, 150, 97, 371, 319, 205], [0.0, 0.06800848245620728, 0.08075070381164551, 0.08405357599258423, 0.08942008018493652, 0.09152472019195557]], [[264, 248, 215, 315, 297, 388], [5.960464477539063e-08, 0.03045344352722168, 0.034531354904174805, 0.0374680757522583, 0.03838038444519043, 0.03965330123901367]], [[265, 216, 136, 83, 189, 115], [0.0, 0.0791158676147461, 0.08031988143920898, 0.08484184741973877, 0.08709573745727539, 0.0943061113357544]], [[266, 56, 267, 248, 215, 200], [0.0, 0.0745808482170105, 0.07996994256973267, 0.08767545223236084, 0.08880102634429932, 0.09026122093200684]], [[267, 192, 276, 266, 90, 269], [1.7881393432617188e-07, 0.06630659103393555, 0.07420194149017334, 0.07996994256973267, 0.08030372858047485, 0.082244873046875]], [[268, 152, 233, 39, 339, 303], [0.0, 0.05531883239746094, 0.05691629648208618, 0.05727463960647583, 0.06058347225189209, 0.06145739555358887]], [[269, 288, 312, 86, 303, 130], [0.0, 0.05372023582458496, 0.05730891227722168, 0.06163662672042847, 0.06565994024276733, 0.0677182674407959]], [[270, 186, 289, 20, 360, 304], [1.7881393432617188e-07, 0.047149658203125, 0.05168914794921875, 0.05243945121765137, 0.06000322103500366, 0.06070125102996826]], [[271, 59, 263, 286, 123, 230], [0.0, 0.07521593570709229, 0.12492185831069946, 0.13138270378112793, 0.1408390998840332, 0.14951682090759277]], [[272, 202, 377, 165, 146, 313], [0.0, 0.05979001522064209, 0.06650447845458984, 0.07192915678024292, 0.07383853197097778, 0.08441793918609619]], [[273, 125, 78, 23, 41, 258], [2.384185791015625e-07, 0.09756767749786377, 0.10178303718566895, 0.1018635630607605, 0.10327845811843872, 0.10328960418701172]], [[274, 237, 117, 202, 235, 190], [0.0, 0.05543482303619385, 0.0557628870010376, 0.06523430347442627, 0.06983757019042969, 0.07042336463928223]], [[275, 132, 188, 282, 372, 176], [0.0, 0.053835272789001465, 0.053835272789001465, 0.05692321062088013, 0.06260430812835693, 0.06409168243408203]], [[276, 354, 38, 207, 130, 320], [0.0, 0.05522477626800537, 0.06224709749221802, 0.06277155876159668, 0.06394577026367188, 0.06529438495635986]], [[277, 381, 127, 177, 118, 167], [0.0, 0.1591728925704956, 0.19076621532440186, 0.19699203968048096, 0.19869089126586914, 0.21264678239822388]], [[278, 91, 313, 176, 193, 225], [0.0, 0.0635988712310791, 0.0677107572555542, 0.06895166635513306, 0.07034182548522949, 0.07039022445678711]], [[279, 238, 307, 64, 5, 190], [0.0, 0.09339433908462524, 0.098471999168396, 0.10077059268951416, 0.10425817966461182, 0.10922586917877197]], [[280, 351, 303, 283, 358, 197], [5.960464477539063e-08, 0.0880466103553772, 0.08958911895751953, 0.0904076099395752, 0.0909963846206665, 0.09247159957885742]], [[281, 13, 231, 82, 304, 20], [1.1920928955078125e-07, 0.035893142223358154, 0.03872549533843994, 0.0423809289932251, 0.044074833393096924, 0.04457515478134155]], [[282, 188, 132, 342, 164, 46], [0.0, 0.03381061553955078, 0.03381061553955078, 0.04350912570953369, 0.04944014549255371, 0.05007064342498779]], [[283, 247, 193, 351, 157, 117], [0.0, 0.03851914405822754, 0.039339661598205566, 0.04178851842880249, 0.04423302412033081, 0.04747408628463745]], [[284, 146, 253, 133, 213, 379], [0.0, 0.04868978261947632, 0.04876363277435303, 0.05062246322631836, 0.051867783069610596, 0.052555620670318604]], [[285, 95, 224, 213, 211, 366], [1.1920928955078125e-07, 0.03666502237319946, 0.04348456859588623, 0.04803037643432617, 0.048557400703430176, 0.048645734786987305]], [[286, 189, 256, 123, 265, 290], [0.0, 0.08125758171081543, 0.0913705825805664, 0.09271705150604248, 0.10418927669525146, 0.10796999931335449]], [[287, 3, 242, 33, 55, 10], [5.960464477539063e-08, 0.04105997085571289, 0.04150635004043579, 0.06372332572937012, 0.06944763660430908, 0.07096236944198608]], [[288, 303, 331, 363, 351, 373], [0.0, 0.04160332679748535, 0.04203832149505615, 0.044401586055755615, 0.04695868492126465, 0.04745805263519287]], [[289, 304, 347, 213, 379, 186], [0.0, 0.03910118341445923, 0.041539788246154785, 0.04505115747451782, 0.04618537425994873, 0.04737955331802368]], [[290, 127, 130, 244, 175, 256], [0.0, 0.09275192022323608, 0.09686529636383057, 0.0981932282447815, 0.09869617223739624, 0.10425323247909546]], [[291, 121, 104, 27, 235, 88], [0.0, 0.10475432872772217, 0.1054224967956543, 0.11909270286560059, 0.12896931171417236, 0.13102245330810547]], [[292, 386, 384, 99, 142, 305], [0.0, 0.042023658752441406, 0.05793106555938721, 0.05966871976852417, 0.06172895431518555, 0.06439316272735596]], [[293, 330, 243, 91, 278, 164], [2.384185791015625e-07, 0.057213544845581055, 0.06615966558456421, 0.0834115743637085, 0.08465111255645752, 0.08929014205932617]], [[294, 180, 364, 367, 191, 53], [1.7881393432617188e-07, 0.13898307085037231, 0.17861628532409668, 0.17916858196258545, 0.18024379014968872, 0.21236133575439453]], [[295, 201, 88, 199, 203, 63], [0.0, 0.0586322546005249, 0.05963146686553955, 0.06588059663772583, 0.06635880470275879, 0.07643353939056396]], [[296, 212, 256, 115, 216, 328], [0.0, 0.054102301597595215, 0.09216362237930298, 0.09972792863845825, 0.0998152494430542, 0.10177075862884521]], [[297, 215, 315, 248, 264, 152], [0.0, 0.03445601463317871, 0.03624904155731201, 0.03769958019256592, 0.03838038444519043, 0.0418393611907959]], [[298, 91, 46, 317, 165, 202], [1.1920928955078125e-07, 0.06858813762664795, 0.06986820697784424, 0.06991815567016602, 0.07157760858535767, 0.07216203212738037]], [[299, 213, 253, 224, 219, 221], [0.0, 0.03753340244293213, 0.039844810962677, 0.04193270206451416, 0.042787373065948486, 0.042986929416656494]], [[300, 243, 319, 217, 268, 97], [5.960464477539063e-08, 0.0826120376586914, 0.10118997097015381, 0.10354286432266235, 0.10860276222229004, 0.1131487488746643]], [[301, 47, 372, 313, 188, 132], [0.0, 0.06917333602905273, 0.069283127784729, 0.07534009218215942, 0.07737171649932861, 0.07737171649932861]], [[302, 127, 266, 144, 56, 209], [0.0, 0.0950326919555664, 0.09872925281524658, 0.10982018709182739, 0.11005795001983643, 0.11384689807891846]], [[303, 351, 172, 288, 339, 39], [0.0, 0.03783857822418213, 0.04118317365646362, 0.04160332679748535, 0.042714476585388184, 0.04280740022659302]], [[304, 289, 379, 281, 13, 186], [0.0, 0.03910118341445923, 0.04258298873901367, 0.044074833393096924, 0.04461604356765747, 0.04679000377655029]], [[305, 100, 386, 17, 99, 292], [0.0, 0.04650908708572388, 0.04854476451873779, 0.04877501726150513, 0.06204444169998169, 0.06439316272735596]], [[306, 222, 50, 154, 171, 384], [0.0, 0.081417977809906, 0.09683197736740112, 0.10035860538482666, 0.10071921348571777, 0.10157209634780884]], [[307, 235, 234, 117, 190, 237], [0.0, 0.049649059772491455, 0.0501326322555542, 0.05283832550048828, 0.0531730055809021, 0.05398571491241455]], [[308, 335, 264, 90, 388, 215], [0.0, 0.06522762775421143, 0.08123135566711426, 0.08319449424743652, 0.0839340090751648, 0.08515548706054688]], [[309, 76, 375, 210, 32, 52], [0.0, 0.048916518688201904, 0.05542290210723877, 0.0577014684677124, 0.06201910972595215, 0.06447947025299072]], [[310, 150, 62, 144, 37, 187], [1.1920928955078125e-07, 0.09853595495223999, 0.1019512414932251, 0.11184245347976685, 0.12122154235839844, 0.12310522794723511]], [[311, 168, 210, 82, 139, 166], [2.384185791015625e-07, 0.04137420654296875, 0.04725754261016846, 0.04775416851043701, 0.04891955852508545, 0.04995232820510864]], [[312, 269, 233, 39, 70, 130], [2.384185791015625e-07, 0.05730891227722168, 0.06580018997192383, 0.06815570592880249, 0.07101285457611084, 0.07387733459472656]], [[313, 151, 46, 247, 236, 164], [1.1920928955078125e-07, 0.0324057936668396, 0.032804667949676514, 0.036084651947021484, 0.036487877368927, 0.03801286220550537]], [[314, 7, 66, 45, 92, 12], [0.0, 0.08248728513717651, 0.09026765823364258, 0.09096992015838623, 0.09211653470993042, 0.09220266342163086]], [[315, 215, 152, 297, 264, 248], [0.0, 0.03144371509552002, 0.03177213668823242, 0.03624904155731201, 0.0374680757522583, 0.04073596000671387]], [[316, 187, 21, 62, 364, 310], [0.0, 0.09895980358123779, 0.13923871517181396, 0.15209215879440308, 0.15368974208831787, 0.15771400928497314]], [[317, 163, 176, 321, 202, 246], [0.0, 0.044974327087402344, 0.05607086420059204, 0.05673724412918091, 0.056943535804748535, 0.05719214677810669]], [[318, 177, 183, 335, 200, 131], [0.0, 0.07769155502319336, 0.09742510318756104, 0.10032248497009277, 0.10812985897064209, 0.11335617303848267]], [[319, 336, 331, 19, 303, 230], [2.980232238769531e-07, 0.06446951627731323, 0.06622767448425293, 0.07193160057067871, 0.07529675960540771, 0.07670629024505615]], [[320, 276, 203, 217, 303, 351], [0.0, 0.06529438495635986, 0.06591594219207764, 0.06691849231719971, 0.06704151630401611, 0.06942254304885864]], [[321, 176, 224, 372, 8, 253], [0.0, 0.03206610679626465, 0.03650498390197754, 0.03693962097167969, 0.038350820541381836, 0.03874349594116211]], [[322, 331, 315, 373, 346, 387], [2.384185791015625e-07, 0.07767236232757568, 0.07784914970397949, 0.07870745658874512, 0.07933491468429565, 0.07933491468429565]], [[323, 379, 299, 213, 347, 304], [0.0, 0.04601097106933594, 0.04676765203475952, 0.04953145980834961, 0.050191521644592285, 0.05185931921005249]], [[324, 164, 176, 163, 46, 345], [5.960464477539063e-08, 0.06198537349700928, 0.06390035152435303, 0.06644272804260254, 0.0677499771118164, 0.07166612148284912]], [[325, 42, 334, 123, 184, 227], [2.384185791015625e-07, 0.1901332139968872, 0.19377505779266357, 0.2292109727859497, 0.23054975271224976, 0.2381860613822937]], [[326, 388, 341, 264, 248, 17], [2.384185791015625e-07, 0.05044037103652954, 0.05334681272506714, 0.06420791149139404, 0.06461226940155029, 0.06480830907821655]], [[327, 105, 112, 378, 229, 45], [1.1920928955078125e-07, 0.05802124738693237, 0.05802124738693237, 0.06874489784240723, 0.07055974006652832, 0.07171428203582764]], [[328, 108, 249, 299, 219, 213], [0.0, 0.06590616703033447, 0.0680626630783081, 0.09312856197357178, 0.09489619731903076, 0.09814012050628662]], [[329, 137, 315, 215, 248, 264], [0.0, 0.03967493772506714, 0.05463773012161255, 0.05477309226989746, 0.05577051639556885, 0.05688828229904175]], [[330, 293, 217, 147, 243, 320], [0.0, 0.057213544845581055, 0.07589870691299438, 0.08149898052215576, 0.08586001396179199, 0.09196585416793823]], [[331, 373, 288, 303, 363, 339], [0.0, 0.03210270404815674, 0.04203832149505615, 0.04452788829803467, 0.0456920862197876, 0.048503756523132324]], [[332, 22, 116, 382, 222, 384], [5.960464477539063e-08, 0.06975585222244263, 0.09047341346740723, 0.1030498743057251, 0.10664987564086914, 0.11271607875823975]], [[333, 116, 365, 332, 120, 102], [0.0, 0.07276517152786255, 0.10660481452941895, 0.1320357322692871, 0.13278615474700928, 0.1329137086868286]], [[334, 184, 127, 144, 123, 310], [0.0, 0.1272869110107422, 0.14212852716445923, 0.14426326751708984, 0.1913425326347351, 0.1933962106704712]], [[335, 308, 131, 177, 1, 90], [0.0, 0.06522762775421143, 0.07537657022476196, 0.08400803804397583, 0.0942697525024414, 0.09663796424865723]], [[336, 69, 77, 351, 230, 63], [1.1920928955078125e-07, 0.05019855499267578, 0.05293452739715576, 0.054332852363586426, 0.0582427978515625, 0.05951261520385742]], [[337, 168, 52, 166, 76, 210], [2.384185791015625e-07, 0.055319905281066895, 0.057126522064208984, 0.05814945697784424, 0.05853843688964844, 0.0612410306930542]], [[338, 130, 274, 157, 190, 237], [4.76837158203125e-07, 0.07828080654144287, 0.08334171772003174, 0.09800612926483154, 0.09929805994033813, 0.10116899013519287]], [[339, 233, 303, 331, 351, 288], [0.0, 0.04054689407348633, 0.042714476585388184, 0.048503756523132324, 0.054982781410217285, 0.055851101875305176]], [[340, 181, 125, 78, 280, 197], [0.0, 0.08142566680908203, 0.09489220380783081, 0.0964822769165039, 0.10186576843261719, 0.1096886396408081]], [[341, 388, 209, 326, 248, 257], [0.0, 0.047194480895996094, 0.052691102027893066, 0.05334681272506714, 0.05471837520599365, 0.05492275953292847]], [[342, 132, 188, 282, 164, 151], [0.0, 0.04290473461151123, 0.04290473461151123, 0.04350912570953369, 0.05410408973693848, 0.05540722608566284]], [[343, 71, 229, 45, 378, 12], [0.0, 0.04008209705352783, 0.04128265380859375, 0.044260263442993164, 0.046939074993133545, 0.05131399631500244]], [[344, 359, 224, 366, 95, 211], [0.0, 0.04086506366729736, 0.04802405834197998, 0.04822266101837158, 0.05011516809463501, 0.05083727836608887]], [[345, 164, 176, 313, 46, 8], [0.0, 0.04628211259841919, 0.04675418138504028, 0.048407673835754395, 0.04846423864364624, 0.04954719543457031]], [[387, 346, 297, 315, 264, 248], [2.980232238769531e-07, 2.980232238769531e-07, 0.04432255029678345, 0.04545408487319946, 0.04711806774139404, 0.047833144664764404]], [[347, 289, 360, 304, 379, 323], [1.7881393432617188e-07, 0.041539788246154785, 0.047107577323913574, 0.04742884635925293, 0.048440515995025635, 0.050191521644592285]], [[348, 178, 67, 60, 10, 55], [0.0, 0.045823872089385986, 0.04662448167800903, 0.047116994857788086, 0.049902498722076416, 0.050887346267700195]], [[349, 388, 341, 248, 297, 215], [0.0, 0.052068352699279785, 0.06194567680358887, 0.06292980909347534, 0.06334900856018066, 0.06582224369049072]], [[350, 224, 253, 321, 372, 359], [2.384185791015625e-07, 0.039740920066833496, 0.04149752855300903, 0.04431033134460449, 0.04641515016555786, 0.04891777038574219]], [[351, 303, 157, 140, 69, 283], [5.960464477539063e-08, 0.03783857822418213, 0.037863969802856445, 0.038742244243621826, 0.04005134105682373, 0.04178851842880249]], [[352, 10, 178, 348, 67, 60], [0.0, 0.060358524322509766, 0.061482906341552734, 0.06514978408813477, 0.06976073980331421, 0.07005321979522705]], [[353, 224, 95, 366, 285, 146], [1.1920928955078125e-07, 0.06009876728057861, 0.06254065036773682, 0.06606340408325195, 0.06646668910980225, 0.0669865608215332]], [[354, 276, 38, 207, 130, 153], [1.1920928955078125e-07, 0.05522477626800537, 0.07937604188919067, 0.08175718784332275, 0.0833061933517456, 0.08582174777984619]], [[355, 109, 29, 125, 118, 194], [0.0, 0.11657929420471191, 0.11731171607971191, 0.12449026107788086, 0.1299229860305786, 0.13089263439178467]], [[356, 128, 162, 374, 186, 168], [0.0, 0.08394289016723633, 0.08413445949554443, 0.08752745389938354, 0.08858656883239746, 0.08945125341415405]], [[357, 359, 299, 219, 213, 379], [0.0, 0.060013532638549805, 0.06145179271697998, 0.06561899185180664, 0.06595849990844727, 0.06624698638916016]], [[358, 280, 303, 172, 185, 254], [0.0, 0.0909963846206665, 0.09514296054840088, 0.09590023756027222, 0.09894323348999023, 0.09992170333862305]], [[359, 344, 224, 253, 366, 211], [0.0, 0.04086506366729736, 0.04346853494644165, 0.043941378593444824, 0.04764068126678467, 0.047681212425231934]], [[360, 347, 20, 289, 281, 304], [5.960464477539063e-08, 0.047107577323913574, 0.048667192459106445, 0.053971827030181885, 0.057216763496398926, 0.05878889560699463]], [[361, 379, 284, 289, 323, 304], [0.0, 0.05255246162414551, 0.05539870262145996, 0.05594289302825928, 0.05623650550842285, 0.05740863084793091]], [[362, 98, 191, 236, 369, 64], [0.0, 0.14328312873840332, 0.15711617469787598, 0.16508632898330688, 0.17009973526000977, 0.17091631889343262]], [[363, 351, 303, 172, 288, 331], [0.0, 0.04253339767456055, 0.04371905326843262, 0.04431450366973877, 0.044401586055755615, 0.0456920862197876]], [[364, 180, 109, 191, 159, 153], [0.0, 0.09463024139404297, 0.1346331238746643, 0.14883947372436523, 0.14951008558273315, 0.15180611610412598]], [[365, 105, 112, 229, 45, 343], [0.0, 0.07727980613708496, 0.07727980613708496, 0.08045876026153564, 0.08407634496688843, 0.0856505036354065]], [[366, 224, 211, 95, 253, 213], [0.0, 0.03657233715057373, 0.04077184200286865, 0.04081171751022339, 0.042626142501831055, 0.04421001672744751]], [[367, 191, 353, 357, 122, 383], [0.0, 0.06222623586654663, 0.08190727233886719, 0.095009446144104, 0.09586310386657715, 0.09700959920883179]], [[368, 347, 289, 304, 20, 361], [5.960464477539063e-08, 0.057599425315856934, 0.05887603759765625, 0.06240040063858032, 0.06439077854156494, 0.06465780735015869]], [[369, 82, 2, 210, 13, 311], [0.0, 0.10376942157745361, 0.11329436302185059, 0.11345469951629639, 0.11726236343383789, 0.11798977851867676]], [[370, 228, 259, 128, 220, 323], [0.0, 0.07302343845367432, 0.10194361209869385, 0.10335290431976318, 0.1067693829536438, 0.112862229347229]], [[371, 331, 263, 385, 150, 260], [0.0, 0.08280110359191895, 0.08405357599258423, 0.08771222829818726, 0.08802986145019531, 0.0894361138343811]], [[372, 321, 313, 151, 176, 224], [0.0, 0.03693962097167969, 0.039354801177978516, 0.03986310958862305, 0.04081320762634277, 0.04128897190093994]], [[373, 331, 288, 25, 363, 69], [0.0, 0.03210270404815674, 0.04745805263519287, 0.049719810485839844, 0.05109107494354248, 0.05379456281661987]], [[374, 139, 231, 281, 304, 13], [0.0, 0.051259756088256836, 0.05210977792739868, 0.052222251892089844, 0.052236199378967285, 0.05283236503601074]], [[375, 76, 84, 30, 309, 210], [2.980232238769531e-07, 0.04639464616775513, 0.05475902557373047, 0.05500936508178711, 0.05542290210723877, 0.058007240295410156]], [[376, 229, 378, 45, 71, 92], [1.1920928955078125e-07, 0.05503499507904053, 0.05789291858673096, 0.0647956132888794, 0.0661664605140686, 0.06734025478363037]], [[377, 202, 163, 151, 176, 313], [0.0, 0.034522414207458496, 0.0456504225730896, 0.05094647407531738, 0.052927613258361816, 0.05370604991912842]], [[378, 229, 154, 96, 45, 71], [0.0, 0.027566850185394287, 0.0352669358253479, 0.03636223077774048, 0.037140846252441406, 0.03851675987243652]], [[379, 213, 304, 323, 289, 347], [0.0, 0.03827625513076782, 0.04258298873901367, 0.04601097106933594, 0.04618537425994873, 0.048440515995025635]], [[380, 262, 305, 100, 36, 226], [1.1920928955078125e-07, 0.06650638580322266, 0.08381253480911255, 0.09024930000305176, 0.09478932619094849, 0.09635621309280396]], [[381, 127, 118, 167, 177, 266], [1.1920928955078125e-07, 0.10467958450317383, 0.11471152305603027, 0.12158674001693726, 0.1332908272743225, 0.13792860507965088]], [[382, 208, 332, 24, 22, 41], [0.0, 0.09446132183074951, 0.1030498743057251, 0.10537409782409668, 0.10602927207946777, 0.10604262351989746]], [[383, 18, 49, 53, 143, 353], [0.0, 0.07739043235778809, 0.08003437519073486, 0.08219456672668457, 0.08422672748565674, 0.08482646942138672]], [[384, 386, 292, 16, 171, 305], [5.960464477539063e-08, 0.04579782485961914, 0.05793106555938721, 0.06560969352722168, 0.06700634956359863, 0.06717205047607422]], [[385, 85, 124, 150, 371, 250], [1.7881393432617188e-07, 0.060361623764038086, 0.07818859815597534, 0.07880616188049316, 0.08771222829818726, 0.0902637243270874]], [[386, 292, 384, 305, 99, 232], [0.0, 0.042023658752441406, 0.04579782485961914, 0.04854476451873779, 0.05754208564758301, 0.06365704536437988]], [[387, 346, 297, 315, 264, 248], [2.980232238769531e-07, 2.980232238769531e-07, 0.04432255029678345, 0.04545408487319946, 0.04711806774139404, 0.047833144664764404]], [[388, 248, 264, 215, 297, 341], [0.0, 0.037600159645080566, 0.03965330123901367, 0.04084932804107666, 0.04194521903991699, 0.047194480895996094]], [[389, 164, 247, 151, 46, 163], [1.7881393432617188e-07, 0.042870163917541504, 0.04697549343109131, 0.05527430772781372, 0.057344913482666016, 0.05813324451446533]]]
pred = [2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,2,2,2,1,1,1,1,1,1,1,2,1
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,3,0,0,3,0,3,3,3,3,3,3,3,3,3,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3
,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3]
title = "Nearest neighbors on Model 3 : 3D CNN 2048"
print("<h3>"+title+"</h3>"+"<br/><br/>")
print("<table style=\"width:100%\">")
print("<td>")
print("<b>Original</b>")
print("</td>")
print("<td>")
print("<b>Nearest neighbors</b>")
print("</td>")
for i in range(0, 390):
print("</tr>")
typ = []
print("<tr id=\"a"+str(i)+"\">")
for j in range(0, 5):
print("<td>")
print("<figure>")
print("<a href=\"#a"+str(arr[i][0][j])+"\">")
print("<img src=\"./"+ str(arr[i][0][j]+1)+".png\" alt='missing' >")
print("</a>")
print("<figcaption>")
if arr[i][0][j] < 97 :
print("Ancient, ")
elif arr[i][0][j] < 131:
print("Asian,")
elif arr[i][0][j] < 341:
print("Medieval, ")
else:
print("Modern,")
if pred[arr[i][0][j]] == 0:
print("Ancient")
if pred[arr[i][0][j]] == 1:
print("Asian")
if pred[arr[i][0][j]] == 2:
print("Medieval")
if pred[arr[i][0][j]] == 3:
print("Modern")
# if pred[i] == 0 :
# print("Ancient, Ancient")
# elif pred[i] == 1:
# print("Asian, Asian")
# elif pred[i] == 2:
# print("Medieval, Medieval")
# else:
# print("Modern, Modern")
if j!=0:
print(", Distance: "+str(arr[i][1][j]))
print("</figcaption>")
print("</figure>")
print("</td>")
print("</tr>")
print("</table>")
print("</body></html>") | 5,227.72043 | 61,586 | 0.741782 | print("<!DOCTYPE html><html><body>")
# arr =[[0, 152, 17, 252, 146, 88], [1, 260, 335, 63, 44, 17], [2, 53, 72, 130, 24, 80], [3, 352, 178, 32, 30, 287], [4, 80, 24, 17, 77, 28], [5, 85, 79, 276, 158, 63], [6, 376, 85, 16, 251, 382], [7, 17, 378, 16, 376, 384], [8, 79, 180, 183, 362, 85], [9, 80, 28, 17, 11, 36], [10, 33, 3, 25, 53, 152], [11, 28, 77, 80, 25, 85], [12, 6, 17, 378, 376, 16], [13, 210, 160, 356, 168, 63], [14, 362, 85, 125, 97, 118], [15, 25, 78, 353, 53, 43], [16, 251, 376, 382, 85, 6], [17, 80, 297, 152, 373, 75], [18, 360, 246, 377, 20, 347], [19, 104, 85, 362, 116, 125], [20, 347, 28, 374, 160, 53], [21, 14, 160, 35, 80, 28], [22, 85, 382, 258, 251, 79], [23, 24, 53, 78, 80, 28], [24, 80, 53, 130, 64, 72], [25, 160, 53, 74, 28, 130], [26, 371, 63, 88, 279, 145], [27, 30, 325, 37, 25, 210], [28, 25, 160, 14, 356, 8], [29, 371, 362, 118, 104, 125], [30, 61, 3, 32, 51, 76], [31, 181, 21, 294, 241, 43], [32, 76, 52, 3, 61, 30], [33, 53, 68, 130, 25, 24], [34, 89, 29, 246, 54, 48], [35, 371, 362, 125, 85, 14], [36, 28, 297, 14, 80, 16], [37, 90, 25, 368, 42, 48], [38, 63, 217, 44, 211, 39], [39, 45, 63, 61, 44, 46], [40, 17, 80, 25, 260, 152], [41, 63, 44, 276, 208, 61], [42, 368, 104, 22, 362, 48], [43, 25, 42, 54, 48, 89], [44, 63, 61, 276, 173, 335], [45, 39, 63, 44, 6, 386], [46, 63, 39, 61, 176, 276], [47, 347, 87, 95, 342, 80], [48, 54, 354, 368, 355, 34], [49, 80, 24, 75, 130, 53], [50, 63, 386, 83, 171, 192], [51, 30, 25, 352, 325, 160], [52, 32, 76, 337, 61, 63], [53, 130, 24, 25, 72, 80], [54, 48, 34, 89, 362, 368], [55, 178, 348, 3, 287, 352], [56, 80, 17, 75, 258, 8], [57, 42, 368, 158, 371, 116], [58, 118, 16, 22, 251, 297], [59, 80, 53, 130, 24, 363], [60, 67, 348, 287, 242, 55], [61, 63, 30, 335, 32, 52], [62, 297, 364, 6, 16, 251], [63, 44, 61, 39, 276, 371], [64, 24, 80, 53, 130, 78], [65, 382, 79, 258, 85, 22], [66, 71, 61, 260, 17, 81], [67, 60, 348, 242, 287, 178], [68, 53, 24, 130, 78, 80], [69, 85, 14, 77, 362, 97], [70, 80, 17, 49, 56, 130], [71, 343, 6, 45, 386, 376], [72, 53, 130, 2, 24, 80], [73, 6, 92, 343, 365, 105], [74, 25, 160, 28, 53, 80], [75, 258, 362, 80, 359, 17], [76, 32, 52, 61, 30, 63], [77, 80, 345, 85, 342, 22], [78, 80, 53, 24, 130, 68], [79, 85, 276, 125, 180, 153], [80, 24, 53, 130, 17, 78], [81, 28, 25, 160, 15, 11], [82, 168, 8, 210, 152, 160], [83, 79, 8, 276, 90, 356], [84, 25, 160, 28, 362, 61], [85, 79, 125, 382, 22, 276], [86, 80, 28, 347, 85, 297], [87, 80, 77, 342, 25, 47], [88, 17, 160, 350, 152, 278], [89, 256, 34, 189, 25, 368], [90, 25, 37, 53, 83, 28], [91, 22, 114, 128, 79, 258], [92, 376, 6, 73, 292, 229], [93, 80, 24, 53, 130, 78], [94, 364, 44, 17, 215, 297], [95, 80, 347, 20, 47, 28], [96, 25, 89, 42, 116, 368], [97, 362, 14, 371, 85, 104], [98, 25, 368, 104, 362, 116], [99, 107, 85, 341, 6, 297], [100, 16, 297, 17, 264, 315], [101, 20, 160, 25, 3, 34], [102, 145, 17, 88, 279, 371], [103, 25, 134, 43, 85, 320], [104, 118, 79, 116, 362, 180], [105, 112, 376, 16, 79, 251], [106, 241, 34, 22, 42, 294], [107, 123, 99, 386, 376, 85], [108, 195, 160, 328, 249, 123], [109, 364, 125, 294, 355, 241], [110, 28, 85, 160, 297, 11], [111, 29, 371, 104, 362, 355], [105, 112, 376, 16, 79, 251], [113, 158, 77, 83, 85, 256], [114, 79, 85, 125, 252, 8], [115, 34, 368, 246, 54, 161], [116, 118, 104, 362, 371, 180], [117, 211, 351, 22, 285, 336], [118, 125, 180, 116, 79, 104], [119, 85, 79, 125, 382, 22], [120, 17, 58, 376, 16, 384], [121, 160, 158, 362, 63, 347], [122, 153, 191, 79, 272, 125], [123, 107, 167, 160, 124, 290], [124, 63, 44, 123, 158, 276], [125, 79, 85, 276, 118, 333], [126, 377, 162, 160, 89, 256], [127, 290, 302, 124, 90, 295], [128, 91, 252, 79, 180, 328], [129, 297, 85, 16, 22, 376], [130, 53, 24, 80, 72, 25], [131, 63, 125, 85, 44, 158], [188, 132, 282, 246, 8, 372], [133, 284, 155, 252, 374, 247], [134, 34, 54, 246, 48, 25], [135, 251, 307, 6, 297, 77], [136, 299, 8, 114, 79, 83], [137, 85, 371, 251, 297, 382], [138, 125, 22, 79, 382, 85], [139, 374, 231, 160, 79, 166], [140, 63, 377, 44, 276, 215], [141, 42, 368, 241, 43, 89], [142, 79, 85, 276, 125, 153], [143, 114, 160, 337, 299, 252], [144, 44, 354, 127, 310, 63], [145, 160, 180, 371, 79, 25], [146, 359, 114, 351, 344, 289], [147, 114, 85, 382, 160, 133], [148, 158, 77, 161, 295, 106], [149, 46, 89, 63, 195, 82], [150, 44, 63, 371, 85, 158], [151, 63, 276, 44, 211, 176], [152, 17, 160, 297, 28, 130], [153, 79, 125, 85, 180, 276], [154, 263, 45, 44, 173, 171], [155, 133, 252, 166, 160, 139], [156, 63, 61, 44, 151, 217], [157, 345, 313, 85, 297, 382], [158, 79, 125, 85, 276, 371], [159, 367, 125, 8, 369, 353], [160, 25, 53, 28, 356, 8], [161, 104, 158, 362, 116, 8], [162, 195, 368, 115, 263, 54], [163, 377, 77, 20, 80, 342], [164, 85, 79, 382, 251, 22], [165, 79, 22, 114, 85, 180], [166, 160, 139, 252, 168, 374], [167, 206, 160, 20, 123, 270], [168, 82, 160, 210, 374, 8], [169, 51, 30, 43, 61, 25], [170, 297, 264, 80, 351, 363], [171, 44, 63, 158, 386, 240], [172, 190, 114, 63, 39, 163], [173, 44, 17, 63, 297, 215], [174, 290, 153, 85, 158, 256], [175, 290, 363, 17, 247, 211], [176, 63, 8, 350, 151, 85], [177, 251, 16, 376, 297, 308], [178, 3, 287, 352, 55, 348], [179, 160, 25, 8, 80, 362], [180, 79, 8, 85, 118, 125], [181, 44, 31, 63, 158, 276], [182, 166, 152, 160, 82, 168], [183, 79, 8, 125, 85, 180], [184, 25, 368, 256, 187, 153], [185, 303, 85, 238, 297, 382], [186, 79, 160, 180, 8, 374], [187, 160, 371, 25, 368, 256], [188, 132, 282, 246, 8, 372], [189, 89, 48, 104, 42, 118], [190, 172, 85, 297, 238, 215], [191, 367, 125, 114, 136, 321], [192, 44, 288, 5, 90, 158], [193, 359, 114, 225, 345, 297], [194, 125, 258, 79, 85, 22], [195, 160, 256, 371, 328, 263], [196, 386, 378, 17, 6, 16], [197, 255, 125, 297, 226, 262], [198, 82, 79, 20, 114, 374], [199, 359, 336, 152, 146, 161], [200, 183, 125, 85, 44, 158], [201, 203, 295, 199, 297, 17], [202, 377, 224, 211, 114, 136], [203, 201, 17, 297, 175, 295], [204, 98, 42, 25, 371, 368], [205, 263, 297, 77, 158, 17], [206, 374, 20, 167, 389, 160], [207, 63, 377, 158, 371, 368], [208, 63, 44, 61, 156, 368], [209, 175, 17, 16, 22, 295], [210, 160, 168, 82, 76, 8], [211, 224, 359, 257, 285, 258], [212, 195, 199, 256, 328, 263], [213, 85, 347, 79, 125, 20], [214, 85, 79, 125, 276, 385], [215, 17, 85, 297, 77, 80], [216, 299, 63, 377, 136, 114], [217, 63, 371, 156, 38, 276], [218, 79, 8, 125, 35, 158], [219, 278, 221, 79, 284, 299], [220, 114, 299, 359, 211, 22], [221, 219, 114, 79, 284, 216], [222, 79, 276, 85, 125, 158], [223, 294, 368, 377, 114, 195], [224, 257, 211, 359, 377, 136], [225, 211, 114, 285, 22, 193], [226, 44, 35, 187, 63, 48], [227, 42, 85, 48, 22, 125], [228, 114, 356, 362, 79, 180], [229, 376, 6, 16, 378, 386], [230, 85, 215, 297, 63, 17], [231, 79, 139, 180, 8, 276], [232, 257, 297, 85, 22, 386], [233, 63, 44, 83, 61, 39], [234, 79, 153, 125, 85, 118], [235, 22, 85, 160, 258, 79], [236, 63, 377, 151, 85, 276], [237, 344, 211, 299, 22, 253], [238, 185, 77, 345, 347, 297], [239, 134, 83, 34, 25, 104], [240, 371, 29, 158, 362, 118], [241, 294, 42, 43, 54, 368], [242, 67, 32, 60, 210, 311], [243, 63, 44, 300, 263, 361], [244, 79, 125, 180, 85, 158], [245, 85, 125, 118, 29, 14], [246, 104, 371, 362, 29, 125], [247, 382, 79, 85, 211, 22], [248, 297, 85, 251, 382, 351], [249, 328, 195, 79, 114, 272], [250, 297, 85, 263, 17, 158], [251, 382, 16, 22, 85, 258], [252, 79, 114, 180, 8, 374], [253, 359, 114, 344, 85, 79], [254, 44, 63, 216, 181, 211], [255, 125, 22, 226, 336, 197], [256, 89, 160, 368, 25, 54], [257, 224, 211, 85, 377, 125], [258, 382, 85, 22, 79, 65], [259, 34, 48, 54, 368, 89], [260, 80, 17, 69, 77, 297], [261, 17, 80, 78, 53, 386], [262, 85, 79, 125, 276, 258], [263, 14, 362, 77, 389, 85], [264, 297, 170, 351, 80, 363], [265, 195, 114, 162, 160, 256], [266, 58, 251, 16, 297, 119], [267, 85, 297, 386, 158, 28], [268, 85, 153, 389, 125, 276], [269, 114, 44, 377, 160, 328], [270, 180, 8, 252, 20, 389], [271, 383, 353, 98, 79, 125], [272, 114, 377, 125, 85, 136], [273, 125, 116, 35, 118, 104], [274, 114, 246, 252, 83, 146], [275, 63, 61, 52, 76, 337], [276, 79, 85, 125, 153, 183], [277, 286, 115, 42, 195, 54], [278, 219, 284, 323, 114, 285], [279, 80, 49, 17, 53, 24], [280, 85, 125, 377, 276, 63], [281, 63, 114, 39, 136, 61], [282, 132, 188, 85, 246, 362], [283, 80, 24, 130, 53, 342], [284, 133, 278, 252, 221, 219], [285, 211, 22, 382, 114, 251], [286, 195, 277, 189, 256, 263], [287, 178, 352, 3, 34, 348], [288, 215, 297, 85, 377, 63], [289, 146, 359, 114, 211, 79], [290, 175, 123, 124, 127, 199], [291, 63, 61, 275, 52, 76], [292, 16, 376, 386, 17, 6], [293, 329, 255, 137, 312, 91], [294, 241, 42, 43, 48, 368], [295, 161, 22, 77, 85, 42], [296, 328, 263, 149, 46, 195], [297, 351, 264, 17, 170, 28], [298, 42, 371, 160, 43, 104], [299, 79, 85, 136, 125, 160], [300, 77, 356, 83, 160, 263], [301, 374, 79, 20, 146, 114], [302, 295, 42, 127, 54, 48], [303, 85, 251, 382, 22, 297], [304, 114, 337, 160, 210, 374], [305, 17, 297, 386, 16, 388], [306, 63, 44, 61, 5, 39], [307, 91, 351, 77, 152, 22], [308, 382, 251, 258, 22, 85], [309, 89, 287, 51, 34, 61], [310, 187, 226, 184, 144, 44], [311, 32, 160, 3, 210, 82], [312, 22, 251, 297, 295, 382], [313, 345, 85, 157, 382, 377], [314, 89, 34, 42, 29, 116], [315, 17, 297, 16, 251, 215], [316, 187, 159, 153, 389, 353], [317, 337, 160, 52, 377, 74], [318, 44, 335, 63, 111, 371], [319, 34, 362, 19, 85, 125], [320, 22, 44, 272, 85, 125], [321, 276, 79, 8, 85, 153], [322, 44, 63, 215, 263, 192], [323, 278, 114, 347, 252, 379], [324, 85, 63, 377, 276, 44], [325, 25, 160, 53, 98, 30], [326, 16, 6, 251, 297, 152], [327, 378, 376, 112, 105, 386], [328, 195, 114, 263, 356, 136], [329, 116, 246, 297, 118, 371], [330, 367, 336, 153, 58, 187], [331, 373, 17, 215, 152, 292], [332, 80, 24, 54, 42, 28], [333, 79, 125, 85, 180, 118], [334, 48, 25, 325, 353, 160], [335, 61, 44, 30, 63, 90], [336, 251, 22, 350, 152, 17], [337, 52, 160, 210, 317, 89], [338, 104, 371, 158, 362, 79], [339, 247, 63, 85, 215, 80], [340, 25, 368, 362, 371, 97], [341, 28, 25, 160, 85, 8], [342, 374, 77, 28, 80, 87], [343, 71, 6, 378, 16, 365], [344, 359, 258, 85, 297, 377], [345, 77, 351, 297, 342, 80], [346, 387, 28, 85, 297, 17], [347, 360, 20, 28, 374, 79], [348, 67, 60, 287, 178, 55], [349, 16, 297, 17, 6, 376], [350, 336, 114, 372, 176, 359], [351, 297, 363, 345, 359, 264], [352, 3, 178, 287, 32, 61], [353, 87, 75, 25, 367, 74], [354, 48, 25, 246, 368, 362], [355, 362, 14, 118, 29, 371], [356, 160, 28, 362, 8, 374], [357, 79, 85, 382, 276, 258], [358, 35, 85, 226, 22, 362], [359, 344, 75, 351, 146, 211], [360, 347, 20, 377, 77, 47], [361, 63, 61, 136, 44, 368], [362, 14, 8, 125, 371, 118], [363, 297, 351, 264, 17, 77], [364, 109, 77, 345, 262, 297], [365, 28, 258, 6, 85, 297], [366, 160, 377, 211, 8, 75], [367, 114, 8, 252, 258, 136], [368, 42, 29, 48, 104, 362], [369, 362, 367, 48, 8, 42], [370, 160, 114, 25, 374, 28], [371, 362, 180, 85, 158, 118], [372, 350, 132, 188, 344, 146], [373, 17, 331, 152, 297, 215], [374, 28, 342, 20, 160, 347], [375, 160, 25, 210, 168, 114], [376, 6, 16, 251, 382, 85], [377, 85, 362, 97, 79, 371], [378, 376, 297, 16, 6, 17], [379, 79, 347, 114, 359, 85], [380, 17, 85, 262, 80, 297], [381, 28, 85, 14, 25, 48], [382, 85, 22, 251, 258, 79], [383, 8, 79, 270, 180, 389], [384, 376, 6, 16, 297, 386], [385, 79, 85, 276, 125, 153], [386, 28, 6, 16, 376, 297], [346, 387, 28, 85, 297, 17], [388, 297, 17, 215, 28, 85], [389, 79, 8, 362, 180, 85]]
# arr = [[0, 239, 10, 67, 60, 33], [1, 0, 239, 10, 67, 60], [2, 0, 239, 10, 33, 67], [3, 352, 0, 67, 239, 60], [4, 0, 239, 10, 67, 60], [5, 239, 0, 67, 348, 60], [6, 85, 79, 125, 382, 251], [7, 0, 239, 10, 67, 60], [8, 239, 0, 42, 79, 348], [9, 0, 239, 10, 67, 60], [10, 0, 239, 60, 67, 33], [11, 239, 42, 43, 0, 33], [12, 0, 239, 10, 67, 60], [13, 0, 239, 10, 67, 60], [14, 34, 42, 48, 239, 89], [15, 0, 239, 10, 33, 60], [16, 251, 79, 382, 42, 239], [17, 75, 49, 0, 373, 10], [18, 0, 239, 10, 67, 60], [19, 239, 0, 67, 348, 42], [20, 33, 0, 239, 10, 60], [21, 0, 239, 67, 10, 60], [22, 42, 79, 239, 382, 0], [23, 0, 239, 10, 67, 60], [24, 53, 68, 33, 239, 0], [25, 53, 43, 89, 33, 239], [26, 0, 239, 10, 67, 60], [27, 0, 239, 10, 67, 60], [28, 53, 356, 25, 374, 79], [29, 34, 239, 42, 0, 89], [30, 0, 239, 67, 10, 60], [31, 0, 239, 67, 10, 60], [32, 0, 239, 67, 60, 10], [33, 0, 239, 10, 60, 67], [34, 239, 0, 67, 60, 10], [35, 239, 0, 42, 67, 60], [36, 0, 239, 10, 60, 67], [37, 239, 0, 10, 60, 67], [38, 0, 239, 10, 67, 60], [39, 0, 239, 67, 60, 10], [40, 0, 239, 10, 60, 33], [41, 0, 239, 10, 67, 60], [42, 239, 0, 67, 60, 10], [43, 0, 239, 10, 60, 67], [44, 352, 0, 52, 3, 239], [45, 39, 0, 239, 67, 60], [46, 0, 239, 10, 67, 60], [47, 239, 0, 10, 33, 60], [48, 239, 0, 67, 60, 10], [49, 0, 239, 10, 33, 67], [50, 0, 239, 60, 67, 10], [51, 0, 239, 10, 67, 60], [52, 0, 239, 67, 10, 60], [53, 33, 68, 239, 2, 0], [54, 239, 0, 67, 60, 10], [55, 0, 239, 60, 67, 10], [56, 0, 239, 10, 67, 60], [57, 0, 239, 67, 60, 10], [58, 0, 239, 67, 60, 10], [59, 0, 239, 10, 67, 60], [60, 67, 0, 239, 10, 348], [61, 352, 0, 3, 239, 67], [62, 0, 239, 10, 67, 60], [63, 52, 76, 352, 32, 34], [64, 0, 239, 10, 67, 60], [65, 79, 239, 0, 42, 180], [66, 0, 239, 60, 10, 67], [67, 60, 0, 239, 348, 10], [68, 0, 239, 33, 10, 60], [69, 239, 34, 0, 67, 42], [70, 0, 239, 10, 67, 60], [71, 0, 239, 10, 67, 60], [72, 0, 239, 10, 60, 33], [73, 0, 239, 10, 67, 60], [74, 239, 0, 33, 10, 60], [75, 239, 0, 348, 67, 60], [76, 0, 239, 67, 10, 60], [77, 239, 0, 67, 60, 10], [78, 0, 239, 68, 33, 60], [79, 180, 239, 0, 348, 42], [80, 24, 53, 78, 49, 64], [81, 239, 0, 60, 10, 67], [82, 239, 0, 67, 60, 10], [83, 239, 0, 348, 60, 67], [84, 0, 239, 10, 60, 67], [85, 79, 125, 382, 180, 276], [86, 0, 239, 10, 60, 67], [87, 239, 0, 33, 68, 10], [88, 0, 239, 67, 10, 60], [89, 239, 0, 67, 60, 10], [90, 239, 0, 60, 10, 33], [91, 0, 239, 67, 10, 60], [92, 0, 239, 10, 67, 60], [93, 0, 239, 33, 60, 10], [94, 0, 239, 10, 67, 60], [95, 239, 0, 33, 10, 67], [96, 239, 0, 42, 67, 89], [97, 42, 34, 104, 239, 89], [98, 239, 0, 60, 67, 10], [99, 0, 239, 10, 67, 60], [100, 0, 239, 10, 67, 60], [101, 0, 239, 10, 67, 348], [102, 0, 239, 67, 10, 60], [103, 0, 239, 67, 10, 60], [104, 239, 0, 42, 348, 67], [112, 105, 239, 0, 67, 60], [106, 0, 239, 10, 67, 60], [107, 0, 239, 67, 10, 60], [108, 0, 239, 10, 67, 60], [109, 0, 239, 67, 10, 60], [110, 0, 239, 67, 10, 60], [111, 239, 42, 34, 89, 0], [112, 105, 239, 0, 67, 60], [113, 0, 239, 10, 67, 60], [114, 0, 239, 10, 67, 60], [115, 239, 0, 67, 60, 10], [116, 42, 104, 239, 89, 34], [117, 0, 239, 10, 67, 60], [118, 239, 104, 0, 42, 180], [119, 79, 239, 0, 42, 348], [120, 0, 239, 67, 10, 60], [121, 0, 239, 10, 67, 60], [122, 0, 239, 10, 67, 60], [123, 0, 239, 67, 60, 10], [124, 0, 239, 67, 10, 60], [125, 79, 42, 239, 0, 48], [126, 0, 239, 10, 67, 60], [127, 239, 0, 60, 10, 67], [128, 0, 239, 67, 10, 60], [129, 239, 0, 67, 60, 10], [130, 53, 2, 68, 72, 33], [131, 0, 239, 67, 60, 10], [188, 132, 239, 0, 67, 60], [133, 0, 239, 67, 10, 60], [134, 239, 0, 67, 348, 60], [135, 0, 239, 10, 67, 60], [136, 239, 0, 67, 60, 55], [137, 0, 239, 67, 10, 60], [138, 0, 239, 10, 67, 60], [139, 0, 239, 10, 67, 60], [140, 0, 239, 10, 67, 60], [141, 0, 239, 67, 10, 60], [142, 239, 0, 67, 60, 10], [143, 0, 239, 10, 67, 60], [144, 0, 239, 67, 10, 60], [145, 0, 239, 67, 10, 60], [146, 0, 239, 10, 67, 60], [147, 0, 239, 67, 10, 60], [148, 0, 239, 10, 67, 60], [149, 0, 239, 10, 67, 60], [150, 239, 0, 67, 60, 10], [151, 0, 239, 10, 67, 60], [152, 10, 0, 33, 60, 67], [153, 79, 239, 0, 180, 42], [154, 0, 239, 67, 10, 60], [155, 0, 239, 10, 67, 60], [156, 0, 239, 67, 60, 10], [157, 0, 239, 67, 10, 60], [158, 79, 104, 180, 42, 239], [159, 0, 239, 10, 67, 60], [160, 53, 89, 294, 25, 43], [161, 239, 0, 34, 42, 67], [162, 0, 239, 10, 67, 60], [163, 0, 239, 10, 33, 60], [164, 239, 0, 67, 10, 60], [165, 0, 239, 67, 10, 60], [166, 239, 0, 67, 60, 10], [167, 0, 239, 10, 60, 33], [168, 0, 239, 67, 10, 60], [169, 0, 239, 10, 67, 60], [170, 239, 0, 67, 60, 10], [171, 0, 239, 67, 10, 60], [172, 0, 239, 10, 67, 60], [173, 0, 239, 67, 60, 10], [174, 0, 239, 67, 60, 10], [175, 0, 239, 10, 67, 60], [176, 0, 239, 67, 10, 60], [177, 0, 239, 10, 67, 60], [178, 239, 0, 67, 60, 348], [179, 239, 0, 67, 60, 10], [180, 239, 0, 348, 79, 67], [181, 0, 239, 67, 10, 60], [182, 0, 239, 10, 67, 60], [183, 79, 180, 239, 42, 0], [184, 239, 0, 67, 60, 10], [185, 0, 239, 10, 60, 67], [186, 0, 239, 67, 60, 10], [187, 0, 239, 67, 60, 10], [188, 132, 239, 0, 67, 60], [189, 239, 0, 67, 60, 348], [190, 0, 239, 10, 67, 60], [191, 0, 239, 67, 10, 60], [192, 0, 239, 67, 10, 60], [193, 0, 239, 10, 67, 60], [194, 0, 239, 67, 10, 60], [195, 0, 239, 67, 60, 10], [196, 0, 239, 10, 67, 60], [197, 0, 239, 10, 67, 60], [198, 0, 239, 10, 67, 60], [199, 0, 239, 10, 67, 60], [200, 0, 239, 67, 10, 60], [201, 203, 0, 239, 10, 67], [202, 0, 239, 10, 67, 60], [203, 201, 0, 239, 10, 67], [204, 0, 239, 67, 10, 60], [205, 0, 239, 10, 67, 60], [206, 0, 239, 10, 33, 67], [207, 0, 239, 67, 10, 60], [208, 0, 239, 67, 10, 60], [209, 0, 239, 67, 10, 60], [210, 0, 239, 67, 60, 10], [211, 0, 239, 67, 60, 10], [212, 0, 239, 10, 67, 60], [213, 0, 239, 10, 67, 60], [214, 0, 239, 10, 67, 60], [215, 239, 0, 10, 67, 60], [216, 0, 239, 67, 60, 10], [217, 0, 239, 67, 10, 60], [218, 0, 239, 10, 67, 60], [219, 0, 239, 67, 10, 60], [220, 0, 239, 67, 10, 60], [221, 0, 239, 67, 10, 60], [222, 79, 239, 0, 348, 67], [223, 0, 239, 67, 10, 60], [224, 239, 0, 67, 10, 60], [225, 0, 239, 10, 67, 60], [226, 0, 239, 67, 60, 294], [227, 0, 239, 67, 60, 10], [228, 0, 239, 10, 67, 60], [229, 239, 0, 67, 60, 10], [230, 0, 239, 67, 10, 60], [231, 0, 239, 67, 60, 10], [232, 239, 0, 67, 10, 60], [233, 0, 239, 60, 10, 67], [234, 239, 0, 60, 67, 348], [235, 0, 239, 67, 60, 10], [236, 0, 239, 348, 10, 67], [237, 0, 239, 67, 10, 60], [238, 0, 239, 67, 60, 10], [239, 0, 10, 67, 60, 33], [240, 239, 34, 0, 89, 67], [241, 0, 239, 67, 10, 60], [242, 0, 67, 60, 239, 10], [243, 0, 239, 10, 67, 60], [244, 239, 0, 67, 348, 60], [245, 239, 0, 42, 67, 60], [246, 239, 0, 34, 67, 348], [247, 0, 239, 67, 60, 10], [248, 0, 239, 67, 60, 10], [249, 0, 239, 67, 10, 60], [250, 0, 239, 67, 10, 60], [251, 79, 42, 382, 239, 0], [252, 0, 239, 348, 67, 10], [253, 0, 239, 67, 60, 10], [254, 0, 239, 10, 67, 60], [255, 0, 239, 67, 10, 60], [256, 239, 0, 89, 67, 60], [257, 239, 0, 67, 60, 10], [258, 79, 42, 239, 0, 180], [259, 0, 239, 67, 10, 60], [260, 0, 239, 67, 10, 60], [261, 0, 239, 60, 33, 10], [262, 79, 239, 0, 348, 67], [263, 0, 239, 296, 67, 10], [264, 239, 0, 67, 60, 10], [265, 0, 239, 67, 10, 60], [266, 0, 239, 10, 67, 60], [267, 239, 0, 60, 10, 67], [268, 239, 0, 67, 60, 10], [269, 0, 239, 67, 10, 60], [270, 239, 0, 348, 67, 10], [271, 239, 0, 10, 60, 67], [272, 0, 239, 67, 10, 60], [273, 0, 239, 67, 60, 10], [274, 0, 239, 10, 67, 60], [275, 0, 239, 67, 60, 10], [276, 79, 239, 0, 180, 67], [277, 0, 239, 10, 67, 60], [278, 0, 239, 10, 67, 60], [279, 0, 239, 10, 67, 60], [280, 0, 239, 67, 60, 10], [281, 0, 239, 10, 67, 60], [282, 239, 0, 67, 10, 60], [283, 0, 239, 10, 33, 60], [284, 0, 239, 67, 10, 60], [285, 0, 239, 10, 67, 60], [286, 0, 239, 67, 10, 60], [287, 239, 0, 60, 67, 348], [288, 0, 239, 67, 60, 10], [289, 0, 239, 10, 67, 60], [290, 0, 239, 10, 67, 60], [291, 0, 239, 67, 60, 10], [292, 0, 239, 10, 33, 67], [293, 0, 239, 10, 67, 60], [294, 0, 239, 67, 60, 10], [295, 239, 0, 67, 60, 10], [296, 0, 239, 10, 67, 60], [297, 351, 239, 0, 348, 67], [298, 0, 239, 67, 10, 60], [299, 239, 0, 67, 348, 60], [300, 0, 239, 67, 60, 10], [301, 0, 239, 10, 67, 60], [302, 0, 239, 67, 10, 60], [303, 0, 239, 67, 10, 60], [304, 0, 239, 10, 67, 60], [305, 0, 239, 10, 67, 60], [306, 0, 352, 239, 67, 60], [307, 0, 239, 10, 67, 60], [308, 239, 0, 42, 79, 348], [309, 0, 239, 10, 67, 60], [310, 0, 239, 67, 60, 10], [311, 239, 0, 67, 60, 348], [312, 0, 239, 67, 10, 60], [313, 0, 239, 10, 67, 60], [314, 239, 0, 67, 60, 10], [315, 0, 239, 10, 67, 60], [316, 0, 239, 10, 67, 60], [317, 0, 239, 10, 67, 60], [318, 0, 239, 67, 60, 10], [319, 239, 0, 67, 60, 10], [320, 0, 239, 67, 10, 60], [321, 0, 239, 67, 60, 10], [322, 0, 239, 10, 67, 60], [323, 0, 239, 67, 60, 10], [324, 0, 239, 10, 67, 60], [325, 239, 0, 33, 10, 60], [326, 0, 239, 10, 67, 60], [327, 0, 239, 67, 60, 10], [328, 0, 239, 10, 67, 60], [329, 239, 0, 67, 60, 10], [330, 0, 239, 10, 67, 60], [331, 0, 239, 10, 67, 60], [332, 0, 239, 67, 10, 60], [333, 239, 0, 79, 42, 348], [334, 0, 239, 60, 67, 10], [335, 0, 239, 67, 60, 352], [336, 0, 239, 10, 67, 60], [337, 0, 239, 67, 60, 10], [338, 239, 0, 67, 60, 348], [339, 0, 239, 67, 60, 10], [340, 0, 239, 67, 60, 10], [341, 239, 348, 0, 33, 67], [342, 239, 33, 0, 60, 10], [343, 0, 239, 10, 67, 60], [344, 0, 239, 10, 67, 60], [345, 0, 239, 10, 60, 67], [346, 387, 0, 239, 67, 10], [347, 0, 239, 60, 67, 10], [348, 0, 67, 60, 239, 10], [349, 0, 239, 10, 67, 60], [350, 0, 239, 10, 67, 60], [351, 0, 239, 67, 348, 60], [352, 0, 239, 67, 60, 10], [353, 239, 0, 10, 33, 60], [354, 239, 0, 67, 60, 48], [355, 239, 42, 34, 0, 89], [356, 239, 0, 67, 10, 60], [357, 0, 239, 10, 67, 60], [358, 0, 239, 67, 60, 10], [359, 0, 239, 10, 67, 60], [360, 0, 239, 10, 67, 60], [361, 0, 239, 67, 60, 10], [362, 42, 34, 239, 54, 89], [363, 0, 239, 67, 10, 60], [364, 0, 239, 10, 67, 60], [365, 0, 239, 67, 10, 60], [366, 0, 239, 67, 60, 10], [367, 0, 239, 10, 67, 60], [368, 239, 42, 0, 67, 294], [369, 0, 239, 67, 60, 10], [370, 0, 239, 10, 67, 60], [371, 42, 89, 34, 104, 180], [372, 0, 239, 10, 67, 60], [373, 0, 239, 10, 67, 60], [374, 0, 239, 67, 10, 60], [375, 0, 239, 10, 67, 60], [376, 251, 42, 79, 239, 382], [377, 34, 239, 0, 42, 348], [378, 0, 239, 10, 67, 60], [379, 0, 239, 67, 10, 60], [380, 0, 239, 10, 67, 60], [381, 0, 239, 10, 67, 60], [382, 79, 239, 42, 0, 180], [383, 239, 0, 60, 10, 67], [384, 0, 239, 10, 60, 67], [385, 79, 0, 239, 67, 60], [386, 42, 239, 0, 348, 67], [346, 387, 0, 239, 67, 10], [388, 0, 239, 67, 60, 10], [389, 79, 239, 0, 42, 180]]
# arr = [[[0, 239, 10, 67, 60, 33], [0.0, 52.86775955154521, 66.90291473471092, 68.49087530467106, 69.39020103732227, 79.13279977354523]], [[1, 0, 239, 10, 67, 60], [0.0, 238.15961034566715, 239.79783151646723, 242.1321952983535, 242.66643772882975, 243.15632831575658]], [[2, 0, 239, 10, 33, 67], [0.0, 135.01111065390137, 136.59795020423988, 141.47791347061914, 142.35167719419397, 142.87407042567241]], [[3, 352, 0, 67, 239, 60], [0.0, 127.34991166074674, 131.33544837552427, 133.65627557282897, 133.9552163971228, 134.0447686409283]], [[4, 0, 239, 10, 67, 60], [0.0, 214.54836284623568, 215.64786110694445, 219.54270655159556, 219.78170988505846, 219.98636321372285]], [[5, 239, 0, 67, 348, 60], [0.0, 282.7914425862282, 284.89296235603996, 287.3969380491031, 287.6890682664185, 287.76900458527496]], [[6, 85, 79, 125, 382, 251], [0.0, 542.9990791889062, 548.0501801842602, 553.0045207771814, 555.3017197884408, 556.0323731582541]], [[7, 0, 239, 10, 67, 60], [0.0, 268.6093818167936, 269.74803057668464, 273.11719096387907, 273.21420168065936, 273.55072655725115]], [[8, 239, 0, 42, 79, 348], [0.0, 253.8936785349332, 256.36107348815653, 256.5248525971704, 257.8100075637096, 258.13949717158744]], [[9, 0, 239, 10, 67, 60], [0.0, 113.66617790706258, 117.0341830406826, 123.58802530989804, 124.63145670335399, 124.64750298341319]], [[10, 0, 239, 60, 67, 33], [0.0, 66.90291473471092, 72.8766080440082, 82.67405880927826, 83.48053665376139, 88.6904729945669]], [[11, 239, 42, 43, 0, 33], [0.0, 368.09373806138024, 368.13041167499324, 368.80618216076584, 368.92817729200357, 370.2998784768907]], [[12, 0, 239, 10, 67, 60], [0.0, 335.6203211964377, 337.6210893886814, 339.6719005157771, 339.7587379303143, 340.32631399878557]], [[13, 0, 239, 10, 67, 60], [0.0, 166.08130538986018, 168.14874367654372, 172.00872070915474, 173.1762108374011, 173.37243148782335]], [[14, 34, 42, 48, 239, 89], [0.0, 306.25479588081555, 306.3217262944305, 308.0405817420815, 308.2369218636859, 308.33585584553737]], [[15, 0, 239, 10, 33, 60], [0.0, 222.56459736445058, 222.58930791931584, 224.7420743875076, 224.98222151983475, 225.4196087300304]], [[16, 251, 79, 382, 42, 239], [0.0, 427.66692647433, 434.8126033131974, 436.8901463754933, 439.70558331683714, 444.68865512850675]], [[17, 75, 49, 0, 373, 10], [0.0, 470.89383092157834, 471.6047073556412, 474.08543533839975, 475.23047040357164, 475.43979639908144]], [[18, 0, 239, 10, 67, 60], [0.0, 152.33187453714342, 152.9640480635891, 158.5339080449353, 159.3988707613702, 159.92498241363043]], [[19, 239, 0, 67, 348, 42], [0.0, 220.43819995635965, 222.79138223908032, 226.4221720591868, 226.48399501951567, 226.63186007267382]], [[20, 33, 0, 239, 10, 60], [0.0, 244.76315082136037, 246.27017683836587, 246.56844891429236, 246.58264334701258, 247.6449070746257]], [[21, 0, 239, 67, 10, 60], [0.0, 237.34784599823104, 238.4386713601634, 241.86979968569867, 242.0702377410325, 242.21684499637922]], [[22, 42, 79, 239, 382, 0], [0.0, 296.33427071467787, 297.6927946726289, 305.37681640884267, 306.12089115249876, 307.58413483143113]], [[23, 0, 239, 10, 67, 60], [0.0, 155.0129026887762, 156.30738946063937, 161.30406070524077, 161.98148042291749, 162.265215003093]], [[24, 53, 68, 33, 239, 0], [0.0, 205.4628920267599, 209.72601173912597, 214.10978492352936, 215.43908651867238, 215.71972557000902]], [[25, 53, 43, 89, 33, 239], [0.0, 259.53805116013336, 265.194268414685, 269.6738771182704, 271.8860055243741, 272.3765775539446]], [[26, 0, 239, 10, 67, 60], [0.0, 124.87593843491227, 128.32380917039518, 134.20879255846094, 134.27955912945202, 135.31814364674088]], [[27, 0, 239, 10, 67, 60], [0.0, 133.15780112332885, 135.80132547217644, 139.51702405083043, 140.57026712644463, 140.98226838861686]], [[28, 53, 356, 25, 374, 79], [0.0, 440.8004083482682, 441.6638993623998, 443.784857785842, 448.42056152678816, 450.57962670320546]], [[29, 34, 239, 42, 0, 89], [0.0, 234.27547887049553, 235.7392627459414, 237.5668327018736, 237.76458945772393, 238.39463081202143]], [[30, 0, 239, 67, 10, 60], [0.0, 153.07841127997116, 156.17298101784445, 157.06049789810294, 157.16551784663199, 157.82902141241325]], [[31, 0, 239, 67, 10, 60], [0.0, 149.39210153150668, 152.0690632574555, 157.60393396105314, 157.92403236999743, 158.11072069913538]], [[32, 0, 239, 67, 60, 10], [0.0, 143.17471843869643, 145.7532160880164, 146.2942240828393, 146.81961721786362, 147.73963584630903]], [[33, 0, 239, 10, 60, 67], [0.0, 79.13279977354523, 81.68843247363729, 88.6904729945669, 91.4603739331958, 92.69843580125827]], [[34, 239, 0, 67, 60, 10], [0.0, 136.93794214898952, 139.37359864766353, 144.9482666333061, 145.97945060863876, 147.34653032901724]], [[35, 239, 0, 42, 67, 60], [0.0, 273.03845882952095, 274.3665431498527, 276.5556001964162, 277.49234223668225, 277.85247884444004]], [[36, 0, 239, 10, 60, 67], [0.0, 327.0382240656281, 327.22316543912353, 329.2020656071283, 329.88937539726857, 330.1408790198512]], [[37, 239, 0, 10, 60, 67], [0.0, 241.32343441945292, 241.38765502817247, 242.84562997921128, 243.69037732335678, 243.80525014855607]], [[38, 0, 239, 10, 67, 60], [0.0, 206.77282219866325, 208.68636754709206, 212.13910530592892, 212.84736315021618, 213.21350801485352]], [[39, 0, 239, 67, 60, 10], [0.0, 285.02982300103264, 286.27085076898766, 287.77595452017874, 288.0954702871949, 288.15273727660474]], [[40, 0, 239, 10, 60, 33], [0.0, 262.3490041909822, 263.3742584232559, 264.1760776451948, 266.0338324348991, 266.19729525297583]], [[41, 0, 239, 10, 67, 60], [0.0, 164.16150584104668, 166.48723674804626, 171.32133550728585, 171.41178489240465, 171.73817280965812]], [[42, 239, 0, 67, 60, 10], [0.0, 140.85808461000738, 142.01408380861386, 149.6629546681476, 150.38949431393138, 150.8509197850646]], [[43, 0, 239, 10, 60, 67], [0.0, 134.8406466908254, 137.3062270984095, 142.2603247571156, 142.74802975873257, 142.9930068220121]], [[44, 352, 0, 52, 3, 239], [0.0, 347.29814281104353, 349.1375087268625, 349.76277675018537, 349.7885075299073, 349.81423641698746]], [[45, 39, 0, 239, 67, 60], [0.0, 416.8297014369298, 477.7876097179583, 478.4997387669088, 479.45802736005993, 479.5894077228979]], [[46, 0, 239, 10, 67, 60], [0.0, 208.11054754625005, 210.34970881843407, 213.78493866500511, 213.8293712285569, 214.07241765346603]], [[47, 239, 0, 10, 33, 60], [0.0, 214.86507394176468, 215.24869337582516, 216.96082595712988, 217.5086205188199, 218.6069532288486]], [[48, 239, 0, 67, 60, 10], [0.0, 160.4088526235382, 162.34531098864542, 167.62756336593336, 168.41318238190263, 169.38122682280937]], [[49, 0, 239, 10, 33, 67], [0.0, 161.76526203112954, 164.42931612093994, 165.87947431795172, 167.21842003798506, 167.26326554267678]], [[50, 0, 239, 60, 67, 10], [0.0, 273.6110377890483, 274.58332068791066, 277.2652159936403, 277.2688226252638, 277.36798661705717]], [[51, 0, 239, 10, 67, 60], [0.0, 132.61598696989742, 134.41726079637243, 137.53908535394584, 138.49187701811252, 139.3843606722074]], [[52, 0, 239, 67, 10, 60], [0.0, 152.2859153040753, 154.68031548972223, 157.60076141948045, 157.61662348876783, 158.23400393088713]], [[53, 33, 68, 239, 2, 0], [0.0, 176.82759965570986, 176.83325479106017, 181.39735389470266, 182.38420984284795, 182.61434773861555]], [[54, 239, 0, 67, 60, 10], [0.0, 153.17310468878014, 154.90965108733542, 160.51791177311023, 161.32575739788115, 162.0154313638056]], [[55, 0, 239, 60, 67, 10], [0.0, 84.2852300228219, 87.16077099245967, 92.05976319760984, 92.38506372785592, 95.28903399657277]], [[56, 0, 239, 10, 67, 60], [0.0, 247.13963664293107, 248.25188821034172, 250.60327212548523, 250.84457339157248, 251.08365139928964]], [[57, 0, 239, 67, 60, 10], [0.0, 207.0917670985498, 207.91344352879156, 212.54646550813308, 212.91782452392283, 213.11733857197072]], [[58, 0, 239, 67, 60, 10], [0.0, 236.73825208444873, 237.2298463515921, 241.48291865057453, 241.85532865744347, 241.9442084448396]], [[59, 0, 239, 10, 67, 60], [0.0, 129.21300244170476, 131.95832675507825, 137.73162309360913, 138.00362314084367, 138.1557092558972]], [[60, 67, 0, 239, 10, 348], [0.0, 28.142494558940577, 69.39020103732227, 75.37904218017101, 82.67405880927826, 84.78207357690657]], [[61, 352, 0, 3, 239, 67], [0.0, 211.3409567499873, 215.38802195108252, 217.13820483738002, 217.56148556212793, 217.74526401279087]], [[62, 0, 239, 10, 67, 60], [0.0, 149.8632710172843, 152.6302722267113, 158.3445610054226, 159.04087524910065, 159.3047394147456]], [[63, 52, 76, 352, 32, 34], [0.0, 324.3023280829171, 325.51958466427175, 325.6992477731565, 327.26136343907143, 327.414110874898]], [[64, 0, 239, 10, 67, 60], [0.0, 162.52384440444425, 163.67345539213133, 168.85496735364347, 169.10647533432893, 169.2660627532879]], [[65, 79, 239, 0, 42, 180], [0.0, 295.5892420234539, 301.3585903869342, 303.75648141233137, 303.8618106969021, 304.75071780063126]], [[66, 0, 239, 60, 10, 67], [0.0, 348.5297691733089, 349.62551394313317, 350.8418447106901, 350.88887129688226, 350.95013890864897]], [[67, 60, 0, 239, 348, 10], [0.0, 28.142494558940577, 68.49087530467106, 75.03332592921628, 82.64381404557754, 83.48053665376139]], [[68, 0, 239, 33, 10, 60], [0.0, 104.01922899156675, 105.60776486603625, 109.89995450408522, 111.1935249913411, 111.44056711987785]], [[69, 239, 34, 0, 67, 42], [0.0, 292.0188350089768, 293.54897376758106, 293.8468989116611, 295.80567945866085, 296.1148425864533]], [[70, 0, 239, 10, 67, 60], [0.0, 184.9648615278048, 186.04569331215382, 188.886209131318, 189.49142460808088, 189.69712702094358]], [[71, 0, 239, 10, 67, 60], [0.0, 485.95884599418497, 486.9137500625753, 488.1352271655878, 488.1362514708368, 488.27553696657793]], [[72, 0, 239, 10, 60, 33], [0.0, 156.53753543479596, 157.95252451290546, 162.1480804696744, 162.4776907763032, 162.52384440444425]], [[73, 0, 239, 10, 67, 60], [0.0, 451.7565716179456, 452.68863471485565, 454.64491639080273, 454.88350156935786, 454.9758235335148]], [[74, 239, 0, 33, 10, 60], [0.0, 235.14038360094594, 237.63838073846574, 238.11761799581316, 238.8095475478315, 239.18821041180104]], [[75, 239, 0, 348, 67, 60], [0.0, 249.5215421561834, 251.3523423403888, 255.31353273964936, 255.71664005300866, 256.06835025047513]], [[76, 0, 239, 67, 10, 60], [0.0, 148.96979559628858, 151.1853167473614, 154.4376897004096, 154.62858726639132, 155.0709515028524]], [[77, 239, 0, 67, 60, 10], [0.0, 340.0397035641573, 340.85774158730794, 342.7375088898208, 343.0757933751666, 343.2287866715145]], [[78, 0, 239, 68, 33, 60], [0.0, 173.49639765712718, 174.2469511928401, 175.15992692394, 176.00284088616297, 177.14965424747518]], [[79, 180, 239, 0, 348, 42], [0.0, 223.13672938357772, 225.52161758909057, 228.62851965579446, 231.62037906885482, 232.25201829047685]], [[80, 24, 53, 78, 49, 64], [0.0, 316.5233008800458, 331.9457787048963, 334.79396649282677, 337.4285109471338, 339.20790085138054]], [[81, 239, 0, 60, 10, 67], [0.0, 394.74675426151384, 394.7556206059643, 395.2379030406876, 395.39853312828564, 395.5161185084623]], [[82, 239, 0, 67, 60, 10], [0.0, 222.25210910135362, 223.2778538055219, 225.76979425955102, 225.9690244259155, 226.37800246490383]], [[83, 239, 0, 348, 60, 67], [0.0, 243.55902775302746, 247.4792920629926, 248.49346067854583, 248.53369992819887, 248.9196657558418]], [[84, 0, 239, 10, 60, 67], [0.0, 140.3388755833536, 141.53444810363305, 145.4269576110289, 146.31472926537506, 146.86047800548656]], [[85, 79, 125, 382, 180, 276], [0.0, 290.51850199255813, 309.93547715613323, 326.4138477454656, 334.39049029540297, 337.5470337597414]], [[86, 0, 239, 10, 60, 67], [0.0, 293.4280150224242, 293.8690184418902, 296.0776925065446, 296.7069261072279, 296.79117237546]], [[87, 239, 0, 33, 68, 10], [0.0, 267.6733083443323, 269.43644890771554, 269.7628588223368, 270.01851788349626, 270.64737205448716]], [[88, 0, 239, 67, 10, 60], [0.0, 218.10318658836692, 221.53555019454552, 222.37355957937086, 223.02690420664499, 223.4233649375105]], [[89, 239, 0, 67, 60, 10], [0.0, 150.16990377569002, 150.4725888658795, 156.20179256333776, 156.89168237991458, 157.77198737418502]], [[90, 239, 0, 60, 10, 33], [0.0, 243.76423035384005, 245.33242753455974, 245.71324750611228, 246.7225161998799, 246.7630442347476]], [[91, 0, 239, 67, 10, 60], [0.0, 203.13788420676238, 203.6516633862832, 209.00239233080563, 209.27254956157054, 209.51372270092477]], [[92, 0, 239, 10, 67, 60], [0.0, 363.82413333917253, 364.9808214139477, 367.40440933663274, 367.69960565657397, 367.8138115949427]], [[93, 0, 239, 33, 60, 10], [0.0, 176.53894754416092, 177.51901306620653, 180.3108427133543, 180.51869709257267, 180.75950874020432]], [[94, 0, 239, 10, 67, 60], [0.0, 235.39753609585637, 237.2403844205282, 240.7072911234722, 240.73844728252277, 240.9460520531515]], [[95, 239, 0, 33, 10, 67], [0.0, 225.68783751013257, 226.54800815721157, 228.10523887013204, 229.1025971044414, 230.2672360541117]], [[96, 239, 0, 42, 67, 89], [0.0, 394.1953830272496, 395.6475704462243, 396.4353667371265, 397.2631369759847, 397.43049706835535]], [[97, 42, 34, 104, 239, 89], [0.0, 306.7050700591694, 307.6020155980776, 307.78563969100315, 309.1488314711864, 309.780567498996]], [[98, 239, 0, 60, 67, 10], [0.0, 167.30212192318422, 168.44286865284622, 173.2512626216617, 173.5280957078709, 173.73255308087772]], [[99, 0, 239, 10, 67, 60], [0.0, 305.96405017583356, 307.46544521295397, 309.12457035958823, 309.1326576083478, 309.4042662924996]], [[100, 0, 239, 10, 67, 60], [0.0, 215.47157585166542, 215.96527498651258, 220.17720136290225, 220.37014316826134, 220.72833982069452]], [[101, 0, 239, 10, 67, 348], [0.0, 202.07424378183381, 202.37341722667037, 203.70567002417974, 205.17066067057445, 205.3850043211529]], [[102, 0, 239, 67, 10, 60], [0.0, 185.09457042279766, 188.07179480187878, 191.24591498905278, 191.49412523625887, 192.45518958968086]], [[103, 0, 239, 67, 10, 60], [0.0, 139.40588222883568, 141.68627315304755, 146.9251510123437, 147.07141122597554, 147.305804366291]], [[104, 239, 0, 42, 348, 67], [0.0, 200.9601950635996, 203.45023961647232, 206.67849428520617, 207.60780332155147, 207.97836425936234]], [[112, 105, 239, 0, 67, 60], [0.0, 0.0, 340.8826777646526, 341.0513157869355, 344.6026697517011, 344.7738389147297]], [[106, 0, 239, 10, 67, 60], [0.0, 125.777581468241, 129.11622671066561, 135.52859476877933, 136.06983501129116, 136.67113813823312]], [[107, 0, 239, 67, 10, 60], [0.0, 359.11001099941507, 359.8708101527547, 361.0720149776219, 361.33087330035886, 361.3377921004112]], [[108, 0, 239, 10, 67, 60], [0.0, 131.74976280813564, 134.60683489332925, 139.34848402476433, 140.10353314602742, 140.46707799338606]], [[109, 0, 239, 67, 10, 60], [0.0, 166.0511969243221, 168.34488409215172, 172.86989327236827, 172.92483916430282, 173.53385836775485]], [[110, 0, 239, 67, 10, 60], [0.0, 286.1206039417644, 286.31101969711193, 289.5306546809854, 289.56346454620274, 289.851686212104]], [[111, 239, 42, 34, 89, 0], [0.0, 267.4434519669532, 267.5761573832766, 268.86427802889693, 269.26009730370373, 269.4011878221772]], [[112, 105, 239, 0, 67, 60], [0.0, 0.0, 340.8826777646526, 341.0513157869355, 344.6026697517011, 344.7738389147297]], [[113, 0, 239, 10, 67, 60], [0.0, 193.45542122153103, 194.7151766041877, 199.79739738044637, 200.0099997500125, 200.36466754395596]], [[114, 0, 239, 10, 67, 60], [0.0, 239.14639867662652, 239.64557162609952, 243.20567427590993, 243.35570673399053, 243.58160850113458]], [[115, 239, 0, 67, 60, 10], [0.0, 188.30560267819968, 189.19830866051632, 193.92524332845377, 194.5944500750214, 195.53004884160387]], [[116, 42, 104, 239, 89, 34], [0.0, 266.1390613946025, 268.81592214747997, 269.1486578082826, 270.31463149448643, 270.3682673687872]], [[117, 0, 239, 10, 67, 60], [0.0, 216.44398813549893, 218.1857007230309, 222.09007181771995, 222.13734490175216, 222.51067390127602]], [[118, 239, 104, 0, 42, 180], [0.0, 258.6580754587028, 259.1659699883455, 260.7354981585745, 261.5511422265252, 263.81811916545837]], [[119, 79, 239, 0, 42, 348], [0.0, 312.04486856860825, 324.06789412096964, 325.7621831950418, 326.712411763006, 328.5391909650963]], [[120, 0, 239, 67, 10, 60], [0.0, 201.5068237057991, 202.795463460108, 206.99275349634829, 207.01449224631594, 207.24381776062705]], [[121, 0, 239, 10, 67, 60], [0.0, 220.82345889873204, 222.63422917422199, 225.73214215082442, 226.17692189964916, 226.58331800907143]], [[122, 0, 239, 10, 67, 60], [0.0, 138.19551367537227, 140.46707799338606, 146.7310464761974, 147.2175261305528, 147.50932173933958]], [[123, 0, 239, 67, 60, 10], [0.0, 210.459022139703, 211.66482938835162, 213.8644430474594, 214.23818520515897, 214.64622055838765]], [[124, 0, 239, 67, 10, 60], [0.0, 259.636284059066, 260.9635989941892, 262.5109521524769, 262.9695799897775, 263.0285155643775]], [[125, 79, 42, 239, 0, 48], [0.0, 239.46398476597687, 268.2088738278434, 271.58608211762254, 273.04212129266796, 273.2068813189009]], [[126, 0, 239, 10, 67, 60], [0.0, 140.99645385611655, 143.87842089764538, 148.79516121164693, 148.87914561818255, 149.16098685648336]], [[127, 239, 0, 60, 10, 67], [0.0, 215.57829204258948, 215.7475376452765, 219.1346617949794, 219.52904135899652, 220.06817125609055]], [[128, 0, 239, 67, 10, 60], [0.0, 157.20368952413298, 158.9528231897754, 165.32997308413258, 165.36323654307205, 166.4692163734785]], [[129, 239, 0, 67, 60, 10], [0.0, 300.0083332175958, 300.1499625187383, 303.4485129309419, 303.72849718128197, 303.75648141233137]], [[130, 53, 2, 68, 72, 33], [0.0, 201.32560691576222, 235.61409125941512, 236.46564232463032, 236.9936708015638, 237.57104200638597]], [[131, 0, 239, 67, 60, 10], [0.0, 230.73144562456153, 232.08619088605855, 235.7032032026718, 236.07625886564705, 236.1927179233094]], [[188, 132, 239, 0, 67, 60], [0.0, 0.0, 206.77282219866325, 208.24024587000469, 212.52529261243237, 212.98591502726183]], [[133, 0, 239, 67, 10, 60], [0.0, 201.72258178002778, 203.6344764522943, 206.5986447196593, 206.8622730224146, 207.38129134519343]], [[134, 239, 0, 67, 348, 60], [0.0, 163.94206293688023, 167.36188335460378, 170.54324964653395, 171.05846953600397, 171.26879458909028]], [[135, 0, 239, 10, 67, 60], [0.0, 210.25222947688331, 212.082531105228, 216.2868465718616, 216.41395518773737, 216.61717383439384]], [[136, 239, 0, 67, 60, 55], [0.0, 250.88443554752456, 251.71412356083638, 254.17513647089874, 254.7959968288356, 255.0215677153601]], [[137, 0, 239, 67, 10, 60], [0.0, 232.43063481391604, 233.02574965011914, 236.9367004075139, 237.05695518166092, 237.1855813492886]], [[138, 0, 239, 10, 67, 60], [0.0, 139.50627226042562, 142.36923825040296, 148.57994481086604, 148.8858623241307, 149.25481566770299]], [[139, 0, 239, 10, 67, 60], [0.0, 180.0499930574839, 181.89282558693733, 185.81173267584586, 186.11555550248883, 187.01604209265042]], [[140, 0, 239, 10, 67, 60], [0.0, 305.8823303167412, 306.00816982557836, 308.00324673613426, 308.33909904519084, 308.63408755353]], [[141, 0, 239, 67, 10, 60], [0.0, 160.94719630984568, 162.63148526653748, 167.80643611018024, 168.20820431833877, 168.3478541591784]], [[142, 239, 0, 67, 60, 10], [0.0, 277.3229164710338, 278.357683565588, 281.6842203603177, 282.0106380972179, 282.76315177193794]], [[143, 0, 239, 10, 67, 60], [0.0, 165.81917862539302, 167.59773268156107, 171.7963911145982, 171.84004189943624, 172.35718725948158]], [[144, 0, 239, 67, 10, 60], [0.0, 231.95689254686957, 232.59621665022843, 236.2011854330964, 236.2964240101826, 236.48890037378075]], [[145, 0, 239, 67, 10, 60], [0.0, 200.70625301669105, 200.78844588272503, 204.96829023046467, 205.03902067655318, 205.06584308460538]], [[146, 0, 239, 10, 67, 60], [0.0, 223.69622258768698, 225.31977276750482, 228.92356803090414, 229.1047795223836, 229.85865221914096]], [[147, 0, 239, 67, 10, 60], [0.0, 217.48103365581102, 218.908656749796, 222.07881483833617, 222.63872080121195, 222.7307791931775]], [[148, 0, 239, 10, 67, 60], [0.0, 195.17171926280713, 197.37527707390305, 201.60853156550692, 202.0272258879976, 202.4228247999716]], [[149, 0, 239, 10, 67, 60], [0.0, 133.31541546272885, 136.09555466656508, 141.3470905254155, 141.7321417322126, 142.08448191129108]], [[150, 239, 0, 67, 60, 10], [0.0, 213.82469455140114, 214.01869077255847, 218.38269162184076, 218.96803419677494, 218.9931505778206]], [[151, 0, 239, 10, 67, 60], [0.0, 244.34811233156682, 245.75801105966008, 248.31431694527805, 248.34854539537776, 248.7870575411832]], [[152, 10, 0, 33, 60, 67], [0.0, 366.17755256159546, 366.4587289177323, 366.6551513343294, 368.11275446525894, 368.51458587144145]], [[153, 79, 239, 0, 180, 42], [0.0, 262.43856423932823, 273.0604328715532, 275.28712283722973, 276.23178672991276, 277.4292702654138]], [[154, 0, 239, 67, 10, 60], [0.0, 352.1618945882703, 353.0481553556115, 355.19994369368925, 355.26328265105025, 355.36319449262044]], [[155, 0, 239, 10, 67, 60], [0.0, 153.53501229361333, 154.38911878756224, 160.22172137385118, 160.5677427131614, 160.90991268408544]], [[156, 0, 239, 67, 60, 10], [0.0, 230.39965277751614, 231.95904810979027, 234.29255216502295, 234.56129262945325, 234.72111110848124]], [[157, 0, 239, 67, 10, 60], [0.0, 267.4041884488723, 268.77871939571406, 271.56214758320056, 271.68916062294426, 271.78300167596944]], [[158, 79, 104, 180, 42, 239], [0.0, 295.2354992205375, 303.10559216220344, 305.83982736066275, 306.1159910883455, 307.1286375445963]], [[159, 0, 239, 10, 67, 60], [0.0, 226.2476519215172, 227.22455853186293, 231.52969571957718, 231.54481207748967, 231.91593304471343]], [[160, 53, 89, 294, 25, 43], [0.0, 290.2895106613396, 295.1779124528121, 300.0999833388866, 300.5128948980393, 300.61270764889497]], [[161, 239, 0, 34, 42, 67], [0.0, 262.7470266244701, 263.964012698701, 265.81572564466535, 267.20965551416737, 267.27888057233406]], [[162, 0, 239, 10, 67, 60], [0.0, 186.99197843757898, 188.0026595556563, 192.37983262286096, 192.6992475335594, 193.1553778697347]], [[163, 0, 239, 10, 33, 60], [0.0, 254.15349692656207, 254.68608128439215, 255.98437452313374, 256.3630238548453, 257.4315442986737]], [[164, 239, 0, 67, 10, 60], [0.0, 239.4347510283334, 239.88747362044563, 244.8162576300847, 245.03061033266843, 245.19991843391793]], [[165, 0, 239, 67, 10, 60], [0.0, 166.0421633200435, 167.52611736681538, 173.1271209256366, 173.49927953740902, 173.97413600877573]], [[166, 239, 0, 67, 60, 10], [0.0, 173.1069033863179, 173.1790980459247, 178.1684596105607, 178.85189403526036, 179.09494688572315]], [[167, 0, 239, 10, 60, 33], [0.0, 219.29204271929248, 220.1635755523606, 222.4162763828223, 222.54437759691885, 222.88786418286662]], [[168, 0, 239, 67, 10, 60], [0.0, 213.32838535928593, 214.2101771625242, 216.73024708148145, 217.0875399464465, 217.476435505091]], [[169, 0, 239, 10, 67, 60], [0.0, 140.4563989286355, 142.56577429383253, 145.19641868861643, 146.43428560279182, 146.55715608594485]], [[170, 239, 0, 67, 60, 10], [0.0, 348.7047461678719, 349.69701171156726, 352.3762194019341, 352.5691421551239, 352.6102664415771]], [[171, 0, 239, 67, 10, 60], [0.0, 408.53641208587516, 409.18088909429775, 410.0085364964978, 410.08291844455067, 410.276735874702]], [[172, 0, 239, 10, 67, 60], [0.0, 231.46273998205413, 233.36666428605437, 236.15884484812335, 236.4402672981064, 236.8459414893994]], [[173, 0, 239, 67, 60, 10], [0.0, 311.2458835069148, 312.648364780627, 314.13850448488483, 314.49801271232224, 314.6331196806846]], [[174, 0, 239, 67, 60, 10], [0.0, 237.70780382646254, 237.91595154591883, 242.04958169763484, 242.19000805152965, 242.39018131929353]], [[175, 0, 239, 10, 67, 60], [0.0, 240.06665740997852, 240.90039435418117, 244.14749640330126, 244.59149617270018, 244.78357788054328]], [[176, 0, 239, 67, 10, 60], [0.0, 254.0373988215121, 255.67557568137008, 258.21309029559285, 258.30795574275294, 258.4221352748251]], [[177, 0, 239, 10, 67, 60], [0.0, 168.8253535462017, 170.2967997350508, 175.73844200970942, 176.50779019635365, 176.56443583009576]], [[178, 239, 0, 67, 60, 348], [0.0, 111.15304764152893, 112.05355862265152, 115.12167476196652, 115.15641536623133, 118.17360111293893]], [[179, 239, 0, 67, 60, 10], [0.0, 197.13447187135992, 199.0150748059051, 203.46989949375805, 203.8970328376556, 204.70222275295401]], [[180, 239, 0, 348, 79, 67], [0.0, 217.19116004110296, 219.53815158190613, 222.14859891523062, 223.13672938357772, 223.19498202244603]], [[181, 0, 239, 67, 10, 60], [0.0, 260.3958525015328, 261.71549438273615, 264.56190201916826, 264.8848806557294, 264.91319332943766]], [[182, 0, 239, 10, 67, 60], [0.0, 214.3968283347494, 216.043977004683, 218.15590755237412, 219.27380144467784, 219.96136024311178]], [[183, 79, 180, 239, 42, 0], [0.0, 275.2598772069769, 287.4821733603668, 288.8840597886979, 289.71537756908936, 291.04810598937075]], [[184, 239, 0, 67, 60, 10], [0.0, 213.76154939558236, 214.74403367730616, 218.8652553513234, 219.08902300206645, 219.4288039433292]], [[185, 0, 239, 10, 60, 67], [0.0, 218.87667760636353, 219.50398629637687, 224.67977212023337, 224.68644818947138, 224.7398496039365]], [[186, 0, 239, 67, 60, 10], [0.0, 166.4932431061393, 169.1478643081254, 171.86331778480246, 172.71653076645558, 173.01445026355458]], [[187, 0, 239, 67, 60, 10], [0.0, 230.01521688792678, 230.65558740251666, 233.79905902291395, 234.17514812635434, 234.40349826741067]], [[188, 132, 239, 0, 67, 60], [0.0, 0.0, 206.77282219866325, 208.24024587000469, 212.52529261243237, 212.98591502726183]], [[189, 239, 0, 67, 60, 348], [0.0, 188.41443681416771, 189.38056922503955, 194.11336893681485, 194.69463269438117, 195.7396229688818]], [[190, 0, 239, 10, 67, 60], [0.0, 227.13432149281184, 228.69411885748178, 232.4607493750289, 232.63920563825866, 232.85403153048478]], [[191, 0, 239, 67, 10, 60], [0.0, 205.3703970877984, 205.5139897914495, 210.48990474604713, 211.04264971801317, 211.1066081391106]], [[192, 0, 239, 67, 10, 60], [0.0, 297.07743098391035, 298.0234890071586, 300.2498959200486, 300.30817504690077, 300.462976088569]], [[193, 0, 239, 10, 67, 60], [0.0, 226.67818598180108, 228.61758462550512, 232.0280155498469, 232.44354153213206, 232.9291737846507]], [[194, 0, 239, 67, 10, 60], [0.0, 184.87833837418594, 185.5181931779199, 191.44973230589798, 191.78633945096297, 191.8671415328847]], [[195, 0, 239, 67, 60, 10], [0.0, 189.16130682568252, 190.11312421818752, 193.8169239256469, 194.38878568477145, 194.59188061170485]], [[196, 0, 239, 10, 67, 60], [0.0, 449.54087689552773, 450.58850406995515, 451.4432411721323, 451.4598542506299, 451.75435803099896]], [[197, 0, 239, 10, 67, 60], [0.0, 164.76953601925328, 167.15262486721528, 172.27594144279112, 172.37169141132193, 172.6151789385858]], [[198, 0, 239, 10, 67, 60], [0.0, 207.2245159241541, 207.4777096461208, 211.93867037423823, 212.32286735064596, 212.47823417940953]], [[199, 0, 239, 10, 67, 60], [0.0, 222.35557110178283, 224.13611935607344, 227.75425352778814, 227.8793540450736, 228.12058214900296]], [[200, 0, 239, 67, 10, 60], [0.0, 255.4623259895674, 255.96093451931293, 259.71522866401193, 259.83263844251746, 259.9923075785128]], [[201, 203, 0, 239, 10, 67], [0.0, 176.10224302944013, 185.02702505309867, 186.5851012272952, 191.09421759959145, 191.66637681137502]], [[202, 0, 239, 10, 67, 60], [0.0, 219.62240322881453, 220.64677654568172, 224.0, 224.0111604362604, 224.64861450718988]], [[203, 201, 0, 239, 10, 67], [0.0, 176.10224302944013, 186.89836810416512, 188.60540819393276, 193.0362660227347, 193.23043238579166]], [[204, 0, 239, 67, 10, 60], [0.0, 180.67650649710936, 181.8818297686715, 186.6413673331826, 187.0561413052242, 187.4593289223025]], [[205, 0, 239, 10, 67, 60], [0.0, 229.19205919926634, 231.36551169091732, 233.91237675676763, 234.1580662714825, 234.5165239380799]], [[206, 0, 239, 10, 33, 67], [0.0, 227.4884612458399, 228.84929538890873, 230.66642581875672, 230.90474226399076, 231.05843416763648]], [[207, 0, 239, 67, 10, 60], [0.0, 209.65447765311382, 210.15232570685484, 213.98130759484576, 214.1985060638846, 214.625254804741]], [[208, 0, 239, 67, 10, 60], [0.0, 192.16659439142902, 194.23954283306992, 198.03282556182447, 198.13631671150043, 198.32549004099297]], [[209, 0, 239, 67, 10, 60], [0.0, 253.2785028382788, 254.36784387968538, 257.7886731413931, 257.8565492672234, 258.0949437706985]], [[210, 0, 239, 67, 60, 10], [0.0, 195.78048932414077, 198.39606850943392, 198.53211327137984, 198.58751219550538, 199.18333263604163]], [[211, 0, 239, 67, 60, 10], [0.0, 250.5972864976794, 251.09360804289702, 254.82935466700064, 255.18228778659383, 255.24693925686944]], [[212, 0, 239, 10, 67, 60], [0.0, 154.35349040433132, 157.2768260107, 162.1141573089778, 162.9539812339668, 163.24827717314508]], [[213, 0, 239, 10, 67, 60], [0.0, 212.53470304870214, 214.00934559032697, 216.84787294322257, 217.08984315255285, 217.42125011139092]], [[214, 0, 239, 10, 67, 60], [0.0, 168.75722206767924, 171.6682847820179, 176.7399219191861, 177.03107071923844, 177.2681584492827]], [[215, 239, 0, 10, 67, 60], [0.0, 406.3643685167291, 406.4320361388851, 407.54263580636564, 407.5929341880205, 407.6837009251167]], [[216, 0, 239, 67, 60, 10], [0.0, 234.61670869739862, 235.457002444183, 238.23937541892607, 238.54559312634555, 238.7655754081815]], [[217, 0, 239, 67, 10, 60], [0.0, 213.39634486091836, 214.92556851151983, 218.86297082878136, 218.9748844045819, 219.0821763631172]], [[218, 0, 239, 10, 67, 60], [0.0, 158.33508770957877, 161.04347239177378, 166.39711535961192, 166.652332716947, 166.90416411821485]], [[219, 0, 239, 67, 10, 60], [0.0, 200.47443727318452, 203.31994491441316, 206.18195847357742, 206.36860226303807, 206.5841233008965]], [[220, 0, 239, 67, 10, 60], [0.0, 149.6094916775002, 151.7300233968215, 158.0632784678339, 158.09174551506476, 158.65055940651453]], [[221, 0, 239, 67, 10, 60], [0.0, 183.58649187780674, 186.89301752607025, 189.74983530954646, 190.0526242912736, 190.4862199740443]], [[222, 79, 239, 0, 348, 67], [0.0, 315.7974034092111, 317.57518794767327, 318.57024343149186, 321.7203754815663, 321.7328083985219]], [[223, 0, 239, 67, 10, 60], [0.0, 157.97468151574162, 159.8155186457185, 164.97575579460153, 165.46298679765212, 165.5203914930121]], [[224, 239, 0, 67, 10, 60], [0.0, 236.5480923617859, 237.1286570619418, 241.01659693888303, 241.2343259156955, 241.52225570327883]], [[225, 0, 239, 10, 67, 60], [0.0, 195.26136330569855, 197.40314080581393, 200.84571192833567, 201.50930499607207, 202.08414089185723]], [[226, 0, 239, 67, 60, 294], [0.0, 283.7974629907745, 284.2076705509547, 286.4611666526547, 286.799581589653, 287.0139369438355]], [[227, 0, 239, 67, 60, 10], [0.0, 165.03635963023422, 165.5234122412899, 171.68575945604806, 172.2207885244984, 172.23530416264836]], [[228, 0, 239, 10, 67, 60], [0.0, 160.27788368954714, 161.58589047314743, 167.84218778364396, 167.95237420173612, 168.5170614507623]], [[229, 239, 0, 67, 60, 10], [0.0, 408.10292819336644, 408.9193074434124, 410.86250741580204, 411.12285268517974, 411.23107859207335]], [[230, 0, 239, 67, 10, 60], [0.0, 287.0017421549911, 287.7620544825186, 290.1534077001337, 290.31362351773987, 290.4771935970189]], [[231, 0, 239, 67, 60, 10], [0.0, 175.49074049647177, 175.90338257122858, 180.94750620000266, 181.64801127455263, 181.88732776089708]], [[232, 239, 0, 67, 10, 60], [0.0, 315.2871706872958, 315.40925794909697, 318.750686273771, 318.9278915366293, 319.09246308867904]], [[233, 0, 239, 60, 10, 67], [0.0, 280.349781523011, 281.19921763760294, 283.10951944433094, 283.1501368532249, 283.6353292521931]], [[234, 239, 0, 60, 67, 348], [0.0, 260.23450962545303, 262.0934947685654, 265.1678713569953, 265.17541364161195, 265.2470546490573]], [[235, 0, 239, 67, 60, 10], [0.0, 217.35684944349003, 218.29567105190154, 222.10132822655518, 222.4882019343947, 222.71057451320087]], [[236, 0, 239, 348, 10, 67], [0.0, 228.814335215257, 229.45369903316006, 233.48019187931126, 234.23492480840682, 234.98723369579037]], [[237, 0, 239, 67, 10, 60], [0.0, 183.67090134259155, 184.27696546231707, 189.14544668059023, 189.55474143370827, 189.79989462589276]], [[238, 0, 239, 67, 60, 10], [0.0, 220.40871126160147, 222.00225224082752, 224.69312406035036, 224.84439063494557, 225.28204544525957]], [[239, 0, 10, 67, 60, 33], [0.0, 52.86775955154521, 72.8766080440082, 75.03332592921628, 75.37904218017101, 81.68843247363729]], [[240, 239, 34, 0, 89, 67], [0.0, 315.03015728656834, 315.48375552474965, 315.58992379352037, 317.4413331625231, 317.89306378088844]], [[241, 0, 239, 67, 10, 60], [0.0, 133.43912469736904, 135.59867255987427, 142.29898102235308, 142.45701105947717, 142.86707108357754]], [[242, 0, 67, 60, 239, 10], [0.0, 108.12955192730617, 109.07336980216573, 110.98198051936178, 112.1739720255996, 117.73699503554522]], [[243, 0, 239, 10, 67, 60], [0.0, 176.93219040072952, 178.84630272946657, 182.50753409106156, 183.20480343047777, 183.58649187780674]], [[244, 239, 0, 67, 348, 60], [0.0, 252.3806648695577, 254.05314404667382, 257.9689903845034, 258.2750471880704, 258.3486016993318]], [[245, 239, 0, 42, 67, 60], [0.0, 338.40508270414614, 339.1474605536654, 341.2022860415797, 341.9268927709548, 342.2250721382056]], [[246, 239, 0, 34, 67, 348], [0.0, 214.6578673144779, 217.3177397268801, 217.64650238402638, 220.56745000112778, 220.58558429779586]], [[247, 0, 239, 67, 60, 10], [0.0, 271.0719461692781, 271.9724250728371, 274.4904369918923, 274.80720514571664, 275.6954841849971]], [[248, 0, 239, 67, 60, 10], [0.0, 291.9897258466469, 293.1398983420715, 295.8800432607782, 295.9408724728641, 296.0304038439295]], [[249, 0, 239, 67, 10, 60], [0.0, 138.56767299770897, 141.088624630053, 148.05404418657398, 148.06417527545278, 148.45201244846766]], [[250, 0, 239, 67, 10, 60], [0.0, 257.63928271907605, 258.6058777367599, 261.65435215184175, 261.71740484728946, 261.8644687619915]], [[251, 79, 42, 382, 239, 0], [0.0, 323.65877093012637, 326.165602110339, 327.8261734517243, 328.58636612008115, 330.6992591464335]], [[252, 0, 239, 348, 67, 10], [0.0, 173.24260445975753, 174.32727841620198, 178.63930138690085, 178.7064632295094, 179.36833611315015]], [[253, 0, 239, 67, 60, 10], [0.0, 216.92164483979002, 217.13129668474787, 221.8422863207103, 222.3285856564558, 222.59155419736842]], [[254, 0, 239, 10, 67, 60], [0.0, 191.56200040717889, 193.62592801585225, 197.8029322330688, 198.27001790487637, 198.501889159776]], [[255, 0, 239, 67, 10, 60], [0.0, 177.89603705535433, 180.24427868867295, 185.00270268296083, 185.24848177515517, 185.43462459853606]], [[256, 239, 0, 89, 67, 60], [0.0, 214.18683432928364, 215.4460489310491, 216.69563908856125, 218.9383474862273, 219.54953882893946]], [[257, 239, 0, 67, 60, 10], [0.0, 282.6764935398768, 283.36725287160476, 286.3284826907725, 286.7437880756966, 286.7699426369507]], [[258, 79, 42, 239, 0, 180], [0.0, 303.693924865151, 310.74587688334657, 312.79386183235755, 314.6696680647819, 315.74673394985416]], [[259, 0, 239, 67, 10, 60], [0.0, 129.82295636750843, 131.07631364972087, 138.60375175297384, 138.9100428334827, 139.38794782907166]], [[260, 0, 239, 67, 10, 60], [0.0, 302.18371895256035, 303.16991935216794, 304.33205549202336, 304.4256887977754, 304.70641607947806]], [[261, 0, 239, 60, 33, 10], [0.0, 357.4618860801806, 358.1535983345693, 359.2770518694452, 359.40923749953896, 359.559452663951]], [[262, 79, 239, 0, 348, 67], [0.0, 377.3950185150832, 386.0738271367278, 387.02454702512085, 389.33404680299924, 389.37514044941287]], [[263, 0, 239, 296, 67, 10], [0.0, 339.3979964584352, 339.77639706136154, 340.0088234149226, 341.970758983864, 342.02192912151116]], [[264, 239, 0, 67, 60, 10], [0.0, 358.4299094662721, 359.46488006479854, 362.0, 362.19607949286257, 362.42930345103167]], [[265, 0, 239, 67, 10, 60], [0.0, 153.50895739337167, 155.76263993653933, 161.12107248898263, 161.4094173212951, 161.6168308066954]], [[266, 0, 239, 10, 67, 60], [0.0, 229.3294573315866, 230.21511679296822, 234.3117581343284, 234.53997527074142, 234.7402820139739]], [[267, 239, 0, 60, 10, 67], [0.0, 297.00673393039426, 297.45924090537176, 300.341472327749, 300.6492973549082, 300.6775681689607]], [[268, 239, 0, 67, 60, 10], [0.0, 314.25149164323784, 315.4155988533224, 317.9245193438216, 318.2389039699578, 318.47291878588356]], [[269, 0, 239, 67, 10, 60], [0.0, 200.9601950635996, 202.27209397245088, 206.05824419323775, 206.27408950229304, 206.5768622087188]], [[270, 239, 0, 348, 67, 10], [0.0, 201.02487408278608, 201.8662923818635, 203.11819219360927, 204.2473990042468, 204.26453436659042]], [[271, 239, 0, 10, 60, 67], [0.0, 157.30543537970962, 157.57537878742352, 163.7864463256957, 164.18587028121513, 164.872678148928]], [[272, 0, 239, 67, 10, 60], [0.0, 170.01176429882727, 171.2395982242425, 177.050840156154, 177.56688880531752, 177.58659859347495]], [[273, 0, 239, 67, 60, 10], [0.0, 189.54682798717576, 190.93192504136127, 195.93621411061304, 196.1606484491729, 196.82479518597245]], [[274, 0, 239, 10, 67, 60], [0.0, 152.1873844968761, 152.73506473629428, 159.3267083699403, 159.97499804656977, 160.4556013356966]], [[275, 0, 239, 67, 60, 10], [0.0, 190.08682226814145, 192.04686927935066, 194.77166118303762, 195.08459703420976, 195.36888186197925]], [[276, 79, 239, 0, 180, 67], [0.0, 248.6986127826209, 290.43587932622927, 292.3251614213186, 293.0921356843271, 295.057621491125]], [[277, 0, 239, 10, 67, 60], [0.0, 124.31814026923021, 126.99606293110035, 133.6899397860587, 133.79835574475496, 134.39494038095333]], [[278, 0, 239, 10, 67, 60], [0.0, 196.25493624365222, 199.5419755339713, 201.8662923818635, 202.1459868510874, 202.63514009174224]], [[279, 0, 239, 10, 67, 60], [0.0, 199.84493989090643, 202.06187171260194, 203.4649847025281, 204.31103739152223, 204.5116133621756]], [[280, 0, 239, 67, 60, 10], [0.0, 218.2131985009156, 218.86982432487125, 222.11708624056817, 222.57133687876345, 223.43455417638518]], [[281, 0, 239, 10, 67, 60], [0.0, 158.25296205758679, 161.2854612170607, 166.61332479726823, 166.74231616479364, 166.99401186868948]], [[282, 239, 0, 67, 10, 60], [0.0, 195.29464918425185, 195.54283418218117, 201.23617964968426, 201.72506041639943, 201.89601283829256]], [[283, 0, 239, 10, 33, 60], [0.0, 174.38463235044537, 175.30259553126987, 179.3655485314836, 179.5995545651492, 179.94165721144174]], [[284, 0, 239, 67, 10, 60], [0.0, 196.60620539545542, 199.58206332233365, 201.79940535095736, 202.1435133760171, 202.57097521609555]], [[285, 0, 239, 10, 67, 60], [0.0, 202.67214904865443, 204.55561590921917, 209.40869131915227, 209.78798821667556, 210.0833168054998]], [[286, 0, 239, 67, 10, 60], [0.0, 132.1060180309739, 134.5399568901373, 141.0070920202243, 141.16656828017037, 141.573302567963]], [[287, 239, 0, 60, 67, 348], [0.0, 114.17530380953667, 114.7214016650773, 116.50751048752178, 116.62761251093156, 120.00833304400157]], [[288, 0, 239, 67, 60, 10], [0.0, 341.9327419244902, 341.96929686742345, 344.1409594918919, 344.3849590211512, 344.5025399035543]], [[289, 0, 239, 10, 67, 60], [0.0, 179.84993744786235, 182.00274723201295, 186.87428929630744, 186.8876667947888, 186.94651641579205]], [[290, 0, 239, 10, 67, 60], [0.0, 181.64801127455263, 183.15294155431957, 187.68057970924963, 187.90156997747516, 188.1834211613765]], [[291, 0, 239, 67, 60, 10], [0.0, 142.90906199398273, 145.79437574886077, 149.70637928959474, 150.09996668887038, 150.52242357868147]], [[292, 0, 239, 10, 33, 67], [0.0, 350.823317355047, 351.5935152985618, 352.33932508307953, 352.73361053350163, 352.74636780553817]], [[293, 0, 239, 10, 67, 60], [0.0, 169.54055562018192, 171.14029332684925, 176.3746013461122, 176.87566254292872, 177.40631330367023]], [[294, 0, 239, 67, 60, 10], [0.0, 119.87493482792806, 122.65806129235861, 129.0852431535069, 129.70350804816346, 129.94614268996213]], [[295, 239, 0, 67, 60, 10], [0.0, 226.66495097389893, 227.5917397446577, 231.7131847780786, 232.29076606701352, 232.86476762275566]], [[296, 0, 239, 10, 67, 60], [0.0, 106.40018796975878, 110.66164647247935, 118.1397477566293, 119.13018089468345, 119.48221624995077]], [[297, 351, 239, 0, 348, 67], [0.0, 462.9330405145003, 465.7821379142828, 466.2660184915903, 467.3232286116324, 467.87712062036115]], [[298, 0, 239, 67, 10, 60], [0.0, 164.14018398917432, 165.12722367919832, 170.4435390385919, 170.985379491932, 171.0]], [[299, 239, 0, 67, 348, 60], [0.0, 230.0478211155237, 230.93938598688618, 234.24346308915432, 234.75519163588268, 234.80630315219395]], [[300, 0, 239, 67, 60, 10], [0.0, 240.72598530279194, 241.50362316122713, 243.80319932273244, 243.9672109116305, 243.96926035875913]], [[301, 0, 239, 10, 67, 60], [0.0, 163.82612734237478, 165.48715962273326, 170.21457046915813, 171.09061926359377, 171.33592734741887]], [[302, 0, 239, 67, 10, 60], [0.0, 158.28771272590933, 159.43023552638942, 165.3118265581746, 165.83425460380616, 165.8613879117138]], [[303, 0, 239, 67, 10, 60], [0.0, 278.86197302608326, 279.26868782590003, 283.1130516242584, 283.24900705915985, 283.4554638739568]], [[304, 0, 239, 10, 67, 60], [0.0, 190.9607289470796, 192.8393113449641, 196.70282153543198, 196.9746176541536, 197.33980845232418]], [[305, 0, 239, 10, 67, 60], [0.0, 325.57948338309035, 327.1314720414409, 329.4692701907114, 329.68014802229146, 329.8317753037145]], [[306, 0, 352, 239, 67, 60], [0.0, 356.0238756038701, 356.70435937902414, 357.25341146026864, 357.7652861863487, 358.0195525386847]], [[307, 0, 239, 10, 67, 60], [0.0, 241.84912652312806, 242.7714975033107, 245.74173434726143, 245.8698842884179, 246.22347572885897]], [[308, 239, 0, 42, 79, 348], [0.0, 322.71039648576556, 324.7167996885902, 325.4243383645421, 325.6224807963971, 327.10854467592253]], [[309, 0, 239, 10, 67, 60], [0.0, 104.54185764563398, 106.69582934679312, 114.00438588054409, 114.44649404852908, 114.84772527133482]], [[310, 0, 239, 67, 60, 10], [0.0, 201.45967338402988, 203.19694879598956, 206.49213060065995, 206.6954281061872, 207.01207694238516]], [[311, 239, 0, 67, 60, 348], [0.0, 162.5453782794208, 162.67759526130203, 164.92119330152812, 165.96686416269966, 167.37682037845025]], [[312, 0, 239, 67, 10, 60], [0.0, 206.6131651178114, 206.7413843428548, 211.84900282984577, 212.31344752511558, 212.39585683341377]], [[313, 0, 239, 10, 67, 60], [0.0, 230.9198995322837, 231.8469322635087, 236.07625886564705, 236.31546711969574, 236.62417458915732]], [[314, 239, 0, 67, 60, 10], [0.0, 191.87756512943352, 192.04686927935066, 197.7801810091193, 198.23975383358405, 198.5698869416005]], [[315, 0, 239, 10, 67, 60], [0.0, 285.1052437258915, 286.0174819831823, 288.6884133456, 288.87367481305733, 289.29223978530774]], [[316, 0, 239, 10, 67, 60], [0.0, 163.707055437449, 165.64117845511726, 171.27755252805312, 171.44386836512993, 171.688671728801]], [[317, 0, 239, 10, 67, 60], [0.0, 173.78434912269861, 174.55658108475888, 178.74842656650156, 178.8798479426903, 178.90779748239035]], [[318, 0, 239, 67, 60, 10], [0.0, 254.24987708944914, 254.6880444779456, 257.4917474405733, 257.9030825717289, 258.10269274069964]], [[319, 239, 0, 67, 60, 10], [0.0, 218.3506354467511, 219.75440837443966, 223.95312009436262, 224.6085483680441, 225.55265460641337]], [[320, 0, 239, 67, 10, 60], [0.0, 211.0213259365034, 212.33228675827894, 215.89117629027825, 216.01851772475433, 216.43243749493743]], [[321, 0, 239, 67, 60, 10], [0.0, 241.92974186734463, 242.8847463304355, 246.1361411901958, 246.35949342373635, 246.7873578609731]], [[322, 0, 239, 10, 67, 60], [0.0, 211.33859089148862, 213.30494602798126, 216.8732348631338, 217.09675262426197, 217.36375042771047]], [[323, 0, 239, 67, 60, 10], [0.0, 143.09437445266673, 145.9143584435747, 151.08606818631557, 151.46946887079258, 151.6904743218901]], [[324, 0, 239, 10, 67, 60], [0.0, 228.08770243044668, 229.13969538253298, 231.54265265820897, 232.5833184043946, 233.09440147716975]], [[325, 239, 0, 33, 10, 60], [0.0, 180.29697723478338, 180.41064270158788, 182.49383551232629, 183.33575755972973, 184.13853480464104]], [[326, 0, 239, 10, 67, 60], [0.0, 254.9568590958086, 256.378626254218, 259.45519844474114, 260.06922155457, 260.27677575995904]], [[327, 0, 239, 67, 60, 10], [0.0, 318.13833469105856, 318.64243283028077, 321.560258738545, 321.7530108639234, 321.7607807051692]], [[328, 0, 239, 10, 67, 60], [0.0, 215.46229368499723, 216.34463247328324, 220.14086399394367, 220.54704713507275, 220.97284901091356]], [[329, 239, 0, 67, 60, 10], [0.0, 211.1989583307645, 212.02358359390118, 216.96313050838845, 217.51551668789057, 217.9587116864109]], [[330, 0, 239, 10, 67, 60], [0.0, 176.4822937294277, 177.87355059142436, 183.06829326784035, 183.14748155516637, 183.4747939091362]], [[331, 0, 239, 10, 67, 60], [0.0, 276.5736791525904, 278.5964823898536, 281.09606898709916, 281.3289889080043, 281.47824072208493]], [[332, 0, 239, 67, 10, 60], [0.0, 222.93272527827762, 222.9484245290825, 227.41591852814526, 227.56757238235855, 227.86399452304877]], [[333, 239, 0, 79, 42, 348], [0.0, 266.61957917602376, 268.47159998778267, 268.72662689060047, 270.138853184802, 271.66523517005265]], [[334, 0, 239, 60, 67, 10], [0.0, 153.18942522250026, 153.32318807016765, 158.5812094795597, 158.62534475927862, 158.83639381451596]], [[335, 0, 239, 67, 60, 352], [0.0, 253.81292323284092, 254.86074629098925, 256.4995126701024, 256.9591407208547, 257.1575392633862]], [[336, 0, 239, 10, 67, 60], [0.0, 251.13741258522197, 252.76273459511393, 256.1093516449565, 256.4039781282654, 256.5365471039166]], [[337, 0, 239, 67, 60, 10], [0.0, 174.4820907715173, 177.1863425888124, 180.0583238842348, 180.34688796871433, 180.5602392554906]], [[338, 239, 0, 67, 60, 348], [0.0, 215.03255567471638, 216.64717861075414, 220.44727260730625, 220.96379793984352, 221.14022700540036]], [[339, 0, 239, 67, 60, 10], [0.0, 263.79347982844456, 265.2998303806469, 267.9813426341468, 268.13429471069156, 268.2517474314007]], [[340, 0, 239, 67, 60, 10], [0.0, 202.52407264322926, 202.94580557380337, 207.73300171133135, 208.00240383226344, 208.0672968056249]], [[341, 239, 348, 0, 33, 67], [0.0, 348.3073355529567, 350.01714243733835, 350.22135857197514, 350.2984441872387, 350.7648785155093]], [[342, 239, 33, 0, 60, 10], [0.0, 277.65626231007286, 277.9568311806709, 278.3271456398028, 279.50491945581206, 279.5138636991017]], [[343, 0, 239, 10, 67, 60], [0.0, 458.0589481715208, 458.94770943975743, 460.72551481332135, 460.9566140104728, 461.015184131716]], [[344, 0, 239, 10, 67, 60], [0.0, 247.33580412063273, 247.7579463912308, 251.25087064525766, 251.46371507635052, 252.01190448072091]], [[345, 0, 239, 10, 60, 67], [0.0, 292.12839642869363, 293.5166094107793, 295.9138388112323, 296.2127613726323, 296.28027271487383]], [[346, 387, 0, 239, 67, 10], [0.0, 0.0, 307.3694844970789, 307.77751704762323, 310.6557580345164, 311.20732639190874]], [[347, 0, 239, 60, 67, 10], [0.0, 256.55798564846896, 256.7430622236948, 258.26149538791105, 258.55947091530027, 258.7817613356861]], [[348, 0, 67, 60, 239, 10], [0.0, 82.50454532933323, 82.64381404557754, 84.78207357690657, 88.40814442120137, 94.39809320108114]], [[349, 0, 239, 10, 67, 60], [0.0, 254.76655981505894, 255.6384165183316, 259.5765782962708, 259.5939136420575, 259.8518808860155]], [[350, 0, 239, 10, 67, 60], [0.0, 235.85164828764712, 237.11811402758752, 240.8485000991287, 240.9502023240487, 241.2156711327023]], [[351, 0, 239, 67, 348, 60], [0.0, 332.02861322482437, 332.1144381083123, 334.1376961673136, 334.36207918961145, 334.4248794572557]], [[352, 0, 239, 67, 60, 10], [0.0, 106.91585476438937, 108.7382177525455, 110.91438139393827, 111.6870628139177, 113.86395390991831]], [[353, 239, 0, 10, 33, 60], [0.0, 202.3635342644519, 203.43549346168678, 207.06037766796427, 207.64392598869827, 208.0264406271472]], [[354, 239, 0, 67, 60, 48], [0.0, 224.68199749868702, 226.04645540242387, 229.59965156767987, 229.95651762887695, 230.31065976198323]], [[355, 239, 42, 34, 0, 89], [0.0, 246.23972059763227, 247.69134017966798, 248.03628766775236, 248.23980341597115, 249.85795964907743]], [[356, 239, 0, 67, 10, 60], [0.0, 218.0619178123498, 218.26589289213283, 222.12383933292708, 222.46797522340154, 222.50617968946392]], [[357, 0, 239, 10, 67, 60], [0.0, 179.5995545651492, 180.4632926664035, 185.18099254513137, 185.52897347853784, 185.94891771666755]], [[358, 0, 239, 67, 60, 10], [0.0, 202.37835852679504, 203.90684147423792, 207.8076033257686, 207.9326814139615, 208.27145747797513]], [[359, 0, 239, 10, 67, 60], [0.0, 269.6182486405547, 270.42004363582225, 273.492230236985, 273.57814240176424, 274.27540903259995]], [[360, 0, 239, 10, 67, 60], [0.0, 196.43574012892867, 196.6011190202131, 200.70127054904262, 201.12185361118767, 201.6829194552677]], [[361, 0, 239, 67, 60, 10], [0.0, 182.09063677191094, 182.8879438344693, 187.1416575752176, 187.7391807801451, 188.03988938520465]], [[362, 42, 34, 239, 54, 89], [0.0, 258.47630452325797, 261.0383113644432, 262.16216355530787, 263.19764436635825, 263.24133414036635]], [[363, 0, 239, 67, 10, 60], [0.0, 321.69084537798085, 321.8105032468642, 324.6413405590853, 324.8491957816734, 324.93076185550666]], [[364, 0, 239, 10, 67, 60], [0.0, 223.5329953273118, 224.88219138028694, 228.9475922563939, 229.05021283552654, 229.23350540442382]], [[365, 0, 239, 67, 10, 60], [0.0, 444.285943959518, 444.5323385311804, 446.6911684822076, 446.89148570989806, 446.99776285793644]], [[366, 0, 239, 67, 60, 10], [0.0, 206.9081922012756, 207.92787210953705, 211.48522407014633, 211.68372634664195, 211.7616584748051]], [[367, 0, 239, 10, 67, 60], [0.0, 201.06715296139248, 202.06682063119615, 206.15528128088303, 206.26924152669974, 206.96618081222834]], [[368, 239, 42, 0, 67, 294], [0.0, 202.06434618705003, 202.89652535221, 203.11326889201504, 207.340299990137, 207.88698852982597]], [[369, 0, 239, 67, 60, 10], [0.0, 153.30688177638993, 154.92578868606736, 160.08122938058665, 160.59887919907786, 161.03105290595352]], [[370, 0, 239, 10, 67, 60], [0.0, 141.13468744429912, 142.53420642077467, 148.39474384222643, 148.95636945092346, 148.96308267486947]], [[371, 42, 89, 34, 104, 180], [0.0, 287.34648075102643, 287.43694960808364, 287.61606352914293, 288.43716820132596, 289.76369682898513]], [[372, 0, 239, 10, 67, 60], [0.0, 193.5794410571536, 194.6997688750554, 199.55199823604875, 199.81991892701788, 200.29478275781423]], [[373, 0, 239, 10, 67, 60], [0.0, 280.9644105576363, 282.86392488261913, 283.58596580225895, 284.66120213334307, 284.9666647171209]], [[374, 0, 239, 67, 10, 60], [0.0, 236.68967024354907, 236.70023236152517, 239.65183078791617, 239.70398411373975, 239.73109935926126]], [[375, 0, 239, 10, 67, 60], [0.0, 158.52444606432158, 159.06916734552928, 162.77591959500643, 163.78949905290023, 164.3198101264726]], [[376, 251, 42, 79, 239, 382], [0.0, 468.5242789866924, 468.7355331100897, 470.11487957732203, 472.84458334636764, 473.5894846805617]], [[377, 34, 239, 0, 42, 348], [0.0, 306.7034398242054, 306.9934852728963, 308.6000648088072, 308.7458501745408, 309.42042595795124]], [[378, 0, 239, 10, 67, 60], [0.0, 513.5231250878581, 513.9581695040949, 515.7402446968823, 515.7664200003719, 516.2354114161484]], [[379, 0, 239, 67, 10, 60], [0.0, 172.73679399595213, 174.92569851225406, 179.51323071016242, 179.91664736760742, 180.13050824332896]], [[380, 0, 239, 10, 67, 60], [0.0, 305.31786714832134, 306.52895458667524, 308.9158461458395, 309.434968935316, 309.5803611342296]], [[381, 0, 239, 10, 67, 60], [0.0, 231.8296788592867, 232.09049959013834, 236.17154782064668, 236.32604596192948, 236.7023447285641]], [[382, 79, 239, 42, 0, 180], [0.0, 280.4050641482782, 295.97128239070764, 296.0912021658192, 298.328677803526, 299.85829986845454]], [[383, 239, 0, 60, 10, 67], [0.0, 178.01685313475238, 178.64769799804307, 183.9347710466947, 184.23083346714796, 184.39088914585776]], [[384, 0, 239, 10, 60, 67], [0.0, 374.00802130435653, 374.626480644388, 376.16485747608056, 376.4080232938719, 376.5169318901874]], [[385, 79, 0, 239, 67, 60], [0.0, 288.2845816203149, 295.6163053689698, 296.81307248839295, 299.6164214458213, 299.7565679013556]], [[386, 42, 239, 0, 348, 67], [0.0, 565.054864592811, 566.1218950014211, 566.816548805696, 567.8485713638804, 567.982394093338]], [[346, 387, 0, 239, 67, 10], [0.0, 0.0, 307.3694844970789, 307.77751704762323, 310.6557580345164, 311.20732639190874]], [[388, 0, 239, 67, 60, 10], [0.0, 384.56728930058523, 385.5295060044043, 387.33577165038605, 387.50096774072705, 387.78086595395604]], [[389, 79, 239, 0, 42, 180], [0.0, 308.8705230351385, 311.9471109018322, 313.4230368048909, 313.8630274498734, 314.19579882614596]]]
#only on material count
# arr = [[[0, 13, 342, 303, 304, 335], [0.0, 9687.418541593008, 11335.890084153074, 11408.62406252393, 11560.403323413937, 11634.421085726612]], [[1, 6, 126, 25, 28, 3], [0.0, 8013.441208369847, 8492.494333233317, 11592.527075663873, 12147.094632050908, 12305.700630195746]], [[2, 159, 223, 281, 194, 257], [0.0, 42330.0846207517, 42776.655502738875, 43067.1848975528, 43157.37998303419, 43842.620667565025]], [[3, 69, 19, 33, 25, 92], [0.0, 5559.671842833892, 5840.552627962528, 7440.9936164466635, 8466.559986204551, 8515.833429559318]], [[4, 15, 6, 10, 126, 42], [0.0, 10411.519485646655, 10939.462601060437, 11086.787902724576, 11756.45422735954, 11958.056781935768]], [[46, 5, 214, 284, 242, 84], [0.0, 0.0, 12249.800284086268, 12582.802112407237, 12713.466757733706, 12732.93029903172]], [[6, 126, 15, 1, 28, 298], [0.0, 4320.728410812232, 6204.547364635071, 8013.441208369847, 8310.608521642684, 8578.706429293405]], [[7, 116, 109, 59, 104, 82], [0.0, 1523.9622698741593, 1576.8414631788448, 1597.5847395365292, 2123.8589877861477, 2176.944877574993]], [[8, 342, 339, 224, 172, 304], [0.0, 11182.32846950938, 11263.541538965443, 11553.886186041475, 11602.16178132334, 11692.529281554098]], [[9, 338, 163, 177, 38, 195], [0.0, 6997.112833161975, 7586.394400504102, 7645.985024834929, 7847.491446315823, 8485.491618050188]], [[10, 22, 23, 269, 171, 4], [0.0, 7164.204212611475, 8537.159890736497, 10800.238284408359, 11073.824994102082, 11086.787902724576]], [[11, 288, 227, 116, 109, 52], [0.0, 2621.9345910987176, 3169.057904172784, 3768.365958873952, 3771.1162803604984, 4019.8308422121445]], [[12, 150, 29, 15, 67, 157], [0.0, 4709.397307511865, 5284.6540094882275, 5627.924039999119, 5806.233632915575, 6318.48929729251]], [[13, 343, 335, 345, 211, 303], [0.0, 5951.2965814182035, 6129.670953648328, 6142.810431716089, 6752.343000766475, 6863.08640481817]], [[14, 13, 374, 343, 68, 192], [0.0, 7616.510355799433, 7839.158245628162, 7952.340850340861, 8349.228826664174, 8369.972401388191]], [[15, 29, 150, 157, 261, 12], [0.0, 4580.116264899833, 4651.190815264409, 5157.209322879962, 5419.697039503223, 5627.924039999119]], [[16, 67, 366, 175, 29, 308], [0.0, 7992.256064466404, 8088.71528736177, 8351.43957650416, 8888.816906652988, 8956.038912376385]], [[17, 246, 318, 389, 351, 244], [0.0, 4257.849926899726, 4670.002462526118, 5181.607376094797, 5187.10275587442, 5222.22816429922]], [[18, 33, 338, 25, 198, 177], [0.0, 7210.427241155686, 9529.757656939655, 9535.327000161033, 9572.189874840553, 9629.55180680804]], [[19, 69, 360, 92, 188, 3], [0.0, 4394.241914141733, 5003.515164361951, 5200.561315858125, 5736.203709771821, 5840.552627962528]], [[20, 198, 83, 358, 49, 330], [0.0, 3713.035281275954, 3814.6120379404247, 3941.8316808306263, 4410.9700747114575, 4703.398771101595]], [[21, 118, 295, 15, 12, 164], [0.0, 8494.58386267391, 9156.790977192828, 10083.269856549512, 10200.36244454088, 10283.18914539648]], [[22, 10, 23, 96, 206, 171], [0.0, 7164.204212611475, 8399.945059344138, 10018.127270103929, 11924.889349591467, 12087.557569666422]], [[23, 171, 321, 308, 96, 347], [0.0, 6644.003988559911, 6739.3590941572475, 6968.371187013505, 7147.577841478888, 7322.92858083431]], [[24, 159, 136, 85, 223, 371], [0.0, 18726.375730503754, 19381.93045080907, 21552.3997735751, 23151.439350502595, 24491.920443280884]], [[25, 177, 358, 198, 338, 62], [0.0, 5145.716762512294, 5175.791920083341, 5270.434896666498, 5365.624847117062, 5529.825313696627]], [[26, 28, 298, 42, 372, 215], [0.0, 5075.005911326606, 5750.680394527242, 5833.669256994263, 6220.651171702204, 6357.671350423832]], [[27, 314, 158, 155, 108, 80], [0.0, 5900.165590896581, 6119.470156802793, 6350.13558910359, 6513.388519042911, 6551.054037328649]], [[28, 298, 215, 138, 204, 49], [0.0, 4137.343833910834, 4357.124280990846, 4444.112509826906, 4533.074673993359, 4814.676313107663]], [[29, 157, 386, 261, 277, 150], [0.0, 2728.2256138376824, 2886.9975753367025, 3123.191796864227, 3317.714424117905, 3625.5839529653704]], [[30, 322, 75, 70, 244, 190], [0.0, 10439.649275718031, 11206.710623550516, 11379.98110718994, 11442.969894218895, 11474.894117158554]], [[31, 42, 157, 218, 265, 261], [0.0, 6102.832948721438, 6353.740787913841, 6589.431007302527, 6594.2898025488685, 6664.441311918052]], [[32, 12, 164, 240, 67, 150], [0.0, 15082.319881238429, 15905.230020342366, 16173.47414750461, 16493.565290742932, 16535.59312513464]], [[33, 19, 18, 69, 3, 92], [0.0, 7089.571707797305, 7210.427241155686, 7422.513523059422, 7440.9936164466635, 7595.967943586913]], [[34, 291, 100, 125, 81, 101], [0.0, 2590.221805174221, 2728.716181650265, 3586.776268461695, 4311.905379295793, 4426.0125395213245]], [[35, 65, 300, 41, 357, 71], [0.0, 87633.22626150426, 98196.75400948852, 112560.06614248235, 113816.118304922, 122259.17191360328]], [[36, 83, 49, 358, 353, 177], [0.0, 8800.677928432558, 9801.314299623291, 9858.485076318775, 9887.2882531056, 9918.656915127169]], [[37, 43, 149, 107, 275, 186], [0.0, 28470.162574175793, 33837.66664532293, 36327.466027786744, 36921.1021910235, 37526.86692224652]], [[38, 195, 338, 188, 177, 302], [0.0, 3726.157001523151, 4423.1206178443745, 4588.86739838928, 5342.771097473669, 5817.703412859752]], [[39, 244, 253, 17, 322, 75], [0.0, 12265.506349107647, 13048.478148811071, 13265.147002577845, 13324.34955260481, 13697.29093653194]], [[40, 267, 226, 365, 184, 152], [0.0, 9167.635627575957, 9542.009379580382, 10339.580262273706, 10655.325898347737, 11440.862642301061]], [[41, 311, 91, 228, 387, 317], [0.0, 21493.25075459736, 22901.544620396242, 26588.21453200647, 26730.030041135382, 26971.63128177456]], [[42, 298, 215, 331, 372, 182], [0.0, 2922.2440007637965, 3652.9221179762376, 4244.196154750626, 4652.727157270239, 4657.335074911402]], [[43, 149, 275, 148, 176, 186], [0.0, 17882.87541196885, 21346.153845599445, 22445.89040336783, 22475.41530205838, 22525.50976115746]], [[44, 27, 14, 293, 368, 229], [0.0, 8689.916685446415, 10094.093817673778, 10357.461271952698, 11171.12411532519, 11428.526239196373]], [[45, 312, 8, 304, 0, 342], [0.0, 25026.478178121666, 28035.00836454307, 30264.905203882598, 30332.760045864605, 30514.91445178898]], [[46, 5, 214, 284, 242, 84], [0.0, 0.0, 12249.800284086268, 12582.802112407237, 12713.466757733706, 12732.93029903172]], [[47, 349, 345, 335, 162, 343], [0.0, 14784.960568090806, 15499.649673460364, 15529.69078893717, 15729.04358185837, 15755.035036457393]], [[48, 68, 229, 27, 14, 314], [0.0, 8518.12044995843, 9291.917993611438, 9587.547027264065, 10427.053179110577, 11237.76178782946]], [[49, 358, 235, 353, 204, 83], [0.0, 3203.708788264002, 3260.6028583683724, 3534.9544551521453, 3585.9732291248356, 3936.8180044294654]], [[50, 349, 290, 58, 318, 246], [0.0, 5608.485357028224, 6140.370754278604, 6279.485727350609, 6629.063055968015, 6735.340228971362]], [[51, 121, 291, 34, 100, 125], [0.0, 3903.0398409444915, 6014.623429608873, 6146.597920801392, 6306.868002424024, 6554.54300466478]], [[52, 116, 109, 59, 104, 7], [0.0, 2454.3263841632797, 2458.54713194602, 2478.455164008419, 2536.020504648967, 2581.7763264853133]], [[53, 127, 72, 70, 244, 105], [0.0, 6544.517705683132, 10559.960558638464, 10560.661248236305, 11494.826401472968, 11760.031207441585]], [[54, 88, 256, 266, 292, 303], [0.0, 10213.72086949707, 11931.468141012656, 12850.754763826131, 13271.955394741199, 14323.101514685986]], [[55, 134, 325, 128, 207, 41], [0.0, 79627.48027534212, 95909.36823897861, 97996.56482754894, 99248.8186781082, 99668.72921834611]], [[56, 151, 376, 64, 130, 165], [0.0, 29007.75937572566, 30897.567347608452, 34654.38074760535, 36085.18729340337, 37380.830555245826]], [[57, 97, 92, 133, 19, 69], [0.0, 11301.370713324999, 12572.30086340603, 12769.75089811857, 12825.98389988074, 12950.219496209322]], [[58, 228, 290, 246, 50, 349], [0.0, 5780.755659946198, 5855.0525189788, 6247.456682522897, 6279.485727350609, 6486.444249355728]], [[59, 109, 116, 7, 82, 104], [0.0, 981.1635949218662, 994.0794736840712, 1597.5847395365292, 1854.2195123555355, 2306.1920995441815]], [[60, 63, 75, 190, 40, 111], [0.0, 11547.243870292166, 21389.73674452306, 21721.699933476662, 21734.61879122797, 21975.066643812483]], [[61, 257, 169, 194, 56, 115], [0.0, 47812.38025867359, 47893.2227147015, 48030.579280287675, 48182.89573074661, 48814.236980618676]], [[62, 358, 198, 49, 330, 20], [0.0, 4077.1875110178585, 4626.531962496315, 4737.067236170498, 5027.006962398203, 5260.186403541228]], [[63, 60, 111, 30, 271, 75], [0.0, 11547.243870292166, 16248.687116194957, 16463.340122830483, 16916.76990444689, 16932.907753838383]], [[64, 165, 130, 376, 169, 151], [0.0, 16863.581114342232, 18454.431744163787, 18489.52219501629, 19386.7809086501, 23769.088770922626]], [[65, 300, 71, 41, 311, 105], [0.0, 35789.14205453939, 46575.668862615385, 50275.35858648847, 61043.70617025149, 61755.024338105475]], [[66, 124, 98, 262, 298, 42], [0.0, 70766.93359189728, 76609.44302760594, 77061.80488413181, 77365.32652939558, 77385.85443735826]], [[67, 308, 175, 269, 164, 171], [0.0, 3402.3882788417905, 3434.8312913445984, 4025.447180127942, 4600.743418187978, 4646.858723912316]], [[68, 229, 14, 48, 192, 374], [0.0, 7998.447474354008, 8349.228826664174, 8518.12044995843, 8799.289744064574, 9081.3251235709]], [[69, 19, 3, 92, 97, 33], [0.0, 4394.241914141733, 5559.671842833892, 6057.394984644802, 6309.7211507324155, 7422.513523059422]], [[70, 244, 75, 253, 190, 17], [0.0, 7420.992386466921, 7870.131828629048, 8643.706843710053, 8649.64398111275, 8842.641969456867]], [[71, 168, 243, 307, 300, 311], [0.0, 26383.56979258114, 26502.85333695223, 26962.482841904603, 29114.892014225297, 30565.579742579725]], [[72, 111, 326, 320, 53, 176], [0.0, 9867.66963370785, 10152.184937243805, 10188.02306632646, 10559.960558638464, 10922.383668412313]], [[73, 102, 113, 119, 228, 127], [0.0, 10962.069558254043, 13639.97078442619, 15069.014997669887, 19247.69131610334, 19495.402252839]], [[74, 123, 118, 135, 242, 84], [0.0, 5829.433677468164, 10431.451241318247, 11358.395265177207, 12447.462030470308, 12686.356056803703]], [[75, 190, 111, 359, 326, 106], [0.0, 4574.059903411848, 5706.35452806781, 6311.288537216469, 7377.809363218868, 7455.10026760204]], [[76, 155, 80, 236, 158, 323], [0.0, 3681.365371706536, 4439.738956290111, 4476.900490294596, 4925.196645820347, 5024.97611934624]], [[77, 0, 135, 60, 144, 13], [0.0, 31140.00362877307, 33653.84934892292, 34801.2612271452, 35745.85024866523, 36531.40990982965]], [[78, 210, 143, 193, 205, 152], [0.0, 9700.890680757102, 9881.578214030389, 10322.911992262649, 10447.974636263241, 11186.723246777852]], [[79, 52, 259, 59, 82, 104], [0.0, 4623.869699721219, 5006.558498609599, 5226.079314361771, 5337.916915801519, 5440.154133845842]], [[80, 158, 155, 208, 323, 76], [0.0, 2854.5090646203944, 3025.4502144309035, 3579.7881222217607, 4356.849205561285, 4439.738956290111]], [[81, 125, 291, 104, 336, 52], [0.0, 2205.660445308842, 2651.585374827671, 3755.605943120231, 3841.1141612818537, 4040.1861343259916]], [[82, 59, 104, 109, 7, 116], [0.0, 1854.2195123555355, 2022.3338003405868, 2106.731591826543, 2176.944877574993, 2266.0357455256526]], [[83, 20, 49, 358, 198, 353], [0.0, 3814.6120379404247, 3936.8180044294654, 4016.633416183259, 4885.5048869078, 4997.766000924813]], [[84, 103, 283, 153, 123, 202], [0.0, 7961.855123022523, 8845.299994912553, 9531.56739471531, 9707.308329294996, 10359.717708509243]], [[85, 136, 383, 371, 180, 159], [0.0, 10310.779020035296, 17687.362381090064, 18283.885227161103, 18946.6371422477, 19238.032175874952]], [[86, 58, 389, 246, 17, 50], [0.0, 7404.340956493022, 8087.341033986387, 8090.610978164752, 8176.552941184935, 8183.78335490377]], [[87, 292, 108, 314, 158, 323], [0.0, 3864.8957295119876, 6470.914695775243, 6587.764340047388, 7294.921521167997, 7473.182387711409]], [[88, 292, 256, 266, 87, 54], [0.0, 8207.676163202346, 9180.621874361235, 9475.794320266772, 9797.387151684881, 10213.72086949707]], [[89, 321, 350, 170, 242, 183], [0.0, 8263.40680349213, 8497.229666191211, 8674.179615387267, 8708.591734603247, 8939.527951743314]], [[90, 176, 320, 326, 106, 275], [0.0, 6200.620372188577, 6575.926398614875, 6656.8164312980725, 6816.6767563087515, 7944.0154833685965]], [[91, 244, 322, 311, 75, 253], [0.0, 9612.941277257445, 10071.83960356796, 10355.313611861304, 10451.506829161046, 10559.162750900281]], [[92, 97, 133, 19, 217, 69], [0.0, 2825.3422801494335, 4858.450473144704, 5200.561315858125, 5846.568138660491, 6057.394984644802]], [[93, 384, 106, 230, 173, 241], [0.0, 19704.558863369664, 21034.183559149616, 21321.782242580004, 21889.812128019737, 22503.82018680384]], [[94, 220, 120, 355, 145, 205], [0.0, 19269.120737594647, 23320.902984232835, 23843.036341875588, 26185.879057232352, 28251.68125970559]], [[95, 324, 164, 150, 29, 240], [0.0, 5556.310376499859, 7347.075948974531, 7481.646276054489, 7589.848483336146, 7846.312445983782]], [[96, 183, 103, 272, 206, 23], [0.0, 6227.564531981985, 6367.634254572101, 6836.6076382954725, 7019.705122011893, 7147.577841478888]], [[97, 92, 133, 19, 69, 217], [0.0, 2825.3422801494335, 5195.834870355293, 5906.209190335202, 6309.7211507324155, 6422.918184127834]], [[98, 358, 198, 49, 62, 20], [0.0, 9991.417116705717, 10189.072872445266, 10372.5028802117, 10538.07572567212, 10579.368270364728]], [[99, 194, 257, 223, 159, 281], [0.0, 18517.995706879294, 19246.998805008534, 19472.249382133537, 20334.18235385923, 21716.13881425517]], [[100, 34, 291, 125, 101, 81], [0.0, 2728.716181650265, 2909.2780891485777, 3853.5388930176896, 4289.892889105741, 4813.285987763453]], [[101, 125, 291, 100, 34, 133], [0.0, 2725.8721540086945, 4263.860222849713, 4289.892889105741, 4426.0125395213245, 4863.549835254081]], [[102, 119, 228, 58, 73, 127], [0.0, 8235.095506428568, 9689.73415528001, 10624.850681303715, 10962.069558254043, 11849.826918567207]], [[103, 272, 242, 183, 96, 236], [0.0, 4010.61566346116, 5984.071189416115, 6067.569035453985, 6367.634254572101, 6491.21814453959]], [[104, 82, 7, 336, 59, 116], [0.0, 2022.3338003405868, 2123.8589877861477, 2134.545853337426, 2306.1920995441815, 2393.7936418998192]], [[105, 72, 53, 91, 75, 70], [0.0, 11629.098632310244, 11760.031207441585, 12554.68088005426, 12820.366804424903, 12928.053913872729]], [[106, 230, 326, 111, 90, 75], [0.0, 4471.076827789923, 6168.897551426835, 6790.427379775149, 6816.6767563087515, 7455.10026760204]], [[107, 258, 210, 193, 148, 365], [0.0, 16393.88599447977, 19117.65874786973, 19709.049698044804, 20232.31689649013, 20769.036833709935]], [[108, 314, 158, 155, 323, 252], [0.0, 4186.657855617055, 5386.445859748337, 5575.270038303078, 5803.962956463454, 6204.925785212906]], [[109, 116, 59, 7, 82, 104], [0.0, 316.69543728951953, 981.1635949218662, 1576.8414631788448, 2106.731591826543, 2398.2560330373403]], [[110, 200, 370, 225, 20, 198], [0.0, 6483.8684440694815, 8301.895687130742, 8445.698668553123, 8868.95737953453, 9589.538153633886]], [[111, 320, 326, 359, 190, 75], [0.0, 4614.0771558351735, 4767.075518596281, 4887.354396808155, 5663.831565292174, 5706.35452806781]], [[112, 95, 324, 200, 137, 164], [0.0, 16775.72618398381, 19005.678519852954, 20137.7478879839, 20205.4010106209, 20950.399900717886]], [[113, 108, 192, 374, 379, 119], [0.0, 8767.114690706401, 10211.92156256598, 10340.044487331765, 10344.922571000712, 10410.67279286022]], [[114, 161, 154, 382, 169, 115], [0.0, 12924.70607015881, 12924.70607015881, 19701.89668534479, 21702.148718502507, 24970.75627609224]], [[115, 257, 169, 194, 382, 156], [0.0, 15485.333383560072, 18125.96662250044, 18551.709516915147, 18729.320169189272, 23889.115073606223]], [[116, 109, 59, 7, 82, 104], [0.0, 316.69543728951953, 994.0794736840712, 1523.9622698741593, 2266.0357455256526, 2393.7936418998192]], [[117, 29, 157, 261, 277, 386], [0.0, 4959.588188549529, 5570.282757634481, 5753.268114732704, 5840.757485121258, 5850.576210938543]], [[118, 164, 67, 21, 12, 123], [0.0, 8253.852433863838, 8274.54953456682, 8494.58386267391, 8804.156461581086, 8976.20276063325]], [[119, 102, 228, 187, 250, 304], [0.0, 8235.095506428568, 8391.994041942595, 9232.473070634975, 9586.013874390126, 9752.28727017411]], [[120, 220, 145, 94, 355, 205], [0.0, 20288.833086207793, 23039.356978874213, 23320.902984232835, 23469.4764321661, 23514.30815482352]], [[121, 51, 100, 34, 101, 133], [0.0, 3903.0398409444915, 8398.219335073358, 8515.121960371443, 8563.739895629713, 8606.645455692944]], [[122, 64, 165, 154, 161, 169], [0.0, 32280.992379417334, 34175.09577162879, 34660.23521270449, 34660.23521270449, 35087.64205528778]], [[123, 74, 135, 242, 118, 103], [0.0, 5829.433677468164, 8320.984557130243, 8393.155187413135, 8976.20276063325, 9066.352298471531]], [[124, 213, 16, 117, 150, 31], [0.0, 13129.489974861934, 14303.986367443169, 15598.104211730348, 15853.588647369403, 15878.281298679653]], [[125, 81, 291, 101, 34, 100], [0.0, 2205.660445308842, 2451.5152457204913, 2725.8721540086945, 3586.776268461695, 3853.5388930176896]], [[126, 6, 1, 15, 28, 298], [0.0, 4320.728410812232, 8492.494333233317, 8966.329014708304, 11431.008791878345, 11740.983434108064]], [[127, 53, 102, 58, 86, 70], [0.0, 6544.517705683132, 11849.826918567207, 12849.75875259921, 13927.963418964024, 14072.079590451442]], [[128, 57, 83, 36, 295, 213], [0.0, 16985.75632699351, 18004.63917994471, 18433.63849054223, 19100.039947602203, 19487.982348103666]], [[129, 179, 142, 309, 73, 328], [0.0, 38156.85246453119, 39897.284569253585, 40328.49440532091, 42621.019333188175, 47105.722794581976]], [[130, 376, 64, 151, 289, 165], [0.0, 16137.830833169617, 18454.431744163787, 22601.221515661495, 23481.62413462919, 23668.730996823637]], [[131, 133, 101, 217, 100, 34], [0.0, 5939.661438162953, 5980.202254104789, 6502.368799137742, 6783.747194582063, 7241.313002487877]], [[132, 298, 28, 215, 49, 204], [0.0, 13051.116350718816, 13078.496167373372, 13116.854805935758, 13183.756596660907, 13185.924389287236]], [[133, 92, 101, 100, 97, 217], [0.0, 4858.450473144704, 4863.549835254081, 4980.045381319331, 5195.834870355293, 5616.351662778961]], [[134, 325, 207, 21, 128, 202], [0.0, 27223.83949776372, 28533.97511739295, 32395.406310154533, 32898.53046870027, 33354.147673115556]], [[135, 123, 144, 84, 103, 185], [0.0, 8320.984557130243, 8783.622487334027, 10853.094167102763, 11308.527313492239, 11326.084451389192]], [[136, 85, 159, 371, 180, 383], [0.0, 10310.779020035296, 11119.50943162512, 12090.436427193188, 13268.10871978369, 13277.13169325363]], [[137, 380, 164, 324, 166, 95], [0.0, 5859.001792114421, 8190.077289012601, 8977.795386396372, 9033.44352946317, 9109.061587232793]], [[138, 298, 28, 215, 265, 42], [0.0, 4143.561028873594, 4444.112509826906, 4889.045919195278, 5060.080631768628, 5496.843821685313]], [[139, 192, 374, 379, 343, 369], [0.0, 6392.713039078166, 6808.027761400507, 7018.122327232549, 7534.52407256092, 7673.886108094125]], [[140, 301, 372, 42, 274, 182], [0.0, 3351.7280617615743, 6034.880860464438, 6053.023459396139, 6536.538762984581, 6887.878846205122]], [[141, 161, 154, 114, 64, 376], [0.0, 27954.670218051222, 27954.670218051222, 31742.323292411977, 35267.34661127769, 37178.8252100574]], [[142, 309, 332, 179, 117, 308], [0.0, 7900.2963868452425, 7942.1417766242375, 8047.613559310611, 10233.439304554457, 12232.990558322197]], [[143, 193, 205, 152, 367, 78], [0.0, 7644.999934597776, 7993.774827952061, 8246.971989766911, 8833.953644886304, 9881.578214030389]], [[144, 108, 155, 158, 323, 314], [0.0, 7657.076987989608, 7913.690921434827, 8062.299609912795, 8264.201836838207, 8306.150973826565]], [[145, 220, 355, 205, 120, 78], [0.0, 15704.663511199467, 19620.46319534786, 21477.74550552269, 23039.356978874213, 23836.796680762287]], [[146, 271, 111, 191, 326, 72], [0.0, 12102.063790940783, 12838.353515930305, 12873.721373402486, 13756.797665154489, 14019.44324857446]], [[147, 290, 387, 349, 162, 250], [0.0, 4296.291656766332, 4905.537483293752, 5694.138301797736, 5809.373804464643, 5810.684813341712]], [[148, 258, 365, 184, 299, 152], [0.0, 11570.081114668124, 11583.21432073153, 11739.814053041897, 12022.766861251199, 12213.484105692363]], [[149, 186, 275, 176, 359, 320], [0.0, 7833.191239845993, 7973.352055440672, 8112.378442848928, 8253.700382252799, 8303.089966994216]], [[150, 29, 157, 261, 386, 15], [0.0, 3625.5839529653704, 4021.3853334392115, 4120.718869323652, 4333.924087936935, 4651.190815264409]], [[151, 376, 289, 197, 363, 130], [0.0, 16785.00348525433, 17182.120358093176, 17307.343932562268, 22198.771047064743, 22601.221515661495]], [[152, 365, 267, 193, 367, 184], [0.0, 4351.311526425107, 5119.524489637685, 5150.357172080398, 5662.571853848744, 5732.2881993144765]], [[153, 283, 202, 293, 103, 236], [0.0, 7147.439051856266, 7195.045656561187, 8522.657684079539, 8775.46728100561, 8816.544391086567]], [[154, 161, 114, 169, 382, 115], [0.0, 0.0, 12924.70607015881, 18088.03057272958, 21056.44998569322, 24625.97742222631]], [[155, 80, 158, 76, 323, 208], [0.0, 3025.4502144309035, 3127.1381485313373, 3681.365371706536, 3966.955507691005, 4921.112475853402]], [[156, 169, 382, 115, 257, 161], [0.0, 19891.36448311176, 20963.29742669316, 23889.115073606223, 24431.338583876244, 26693.89542573358]], [[157, 29, 261, 386, 277, 150], [0.0, 2728.2256138376824, 3014.9208944846296, 3211.149638369411, 4018.9941527700685, 4021.3853334392115]], [[158, 80, 323, 155, 208, 239], [0.0, 2854.5090646203944, 3105.5584038945394, 3127.1381485313373, 3769.839651762393, 4686.893960823095]], [[159, 223, 281, 136, 371, 180], [0.0, 6924.809744678911, 10367.315419142991, 11119.50943162512, 12001.769911142273, 12920.273487817509]], [[160, 371, 180, 381, 159, 223], [0.0, 10843.425980749811, 11587.710256992103, 12414.421895521353, 13308.810615528346, 13624.545423609552]], [[154, 161, 114, 169, 382, 115], [0.0, 0.0, 12924.70607015881, 18088.03057272958, 21056.44998569322, 24625.97742222631]], [[162, 187, 340, 345, 335, 290], [0.0, 3974.2527599537502, 4180.831017871926, 4391.472418221479, 4631.18602519916, 4826.042063637656]], [[163, 338, 38, 177, 334, 195], [0.0, 5544.138706778538, 6145.519017951209, 6278.836118262683, 6977.996632272045, 7178.180967348204]], [[164, 269, 308, 67, 324, 305], [0.0, 4579.060493157958, 4598.129619747578, 4600.743418187978, 4756.520156585064, 4869.703276381427]], [[165, 64, 169, 376, 382, 130], [0.0, 16863.581114342232, 18467.71848388425, 19897.78608287867, 22019.137131141175, 23668.730996823637]], [[166, 269, 238, 277, 240, 366], [0.0, 4920.396833589746, 5323.026394824658, 5334.095612191442, 5483.752729655122, 5505.672347679255]], [[167, 378, 322, 253, 361, 351], [0.0, 11033.256545553539, 11600.078663526381, 12921.790123663208, 12955.875655469992, 13398.666575446976]], [[168, 78, 243, 307, 193, 258], [0.0, 16096.602809288674, 17461.489856252243, 17720.50936062505, 18132.80072134473, 18241.074365288903]], [[169, 382, 154, 161, 115, 165], [0.0, 15625.562389878964, 18088.03057272958, 18088.03057272958, 18125.96662250044, 18467.71848388425]], [[170, 242, 171, 350, 183, 268], [0.0, 6155.067668190172, 6208.469054444904, 6477.5297760797675, 6655.3222311169875, 6761.828155166323]], [[171, 175, 321, 308, 269, 347], [0.0, 3079.481449854829, 3337.189536121675, 3426.7658221711035, 3525.1387206746913, 3843.2551307452904]], [[172, 252, 224, 339, 369, 379], [0.0, 4398.434494226326, 4883.859539339763, 5519.966847726533, 6771.472661098175, 6943.950244637414]], [[173, 384, 361, 253, 244, 375], [0.0, 6206.158312515078, 6371.372536588957, 6578.552120337727, 7632.037604729159, 7754.209050573759]], [[174, 167, 30, 146, 271, 191], [0.0, 16571.985849619832, 17086.923508929278, 17155.010725732584, 18531.673615731528, 19241.114442775917]], [[175, 308, 171, 269, 67, 321], [0.0, 2661.3256095412303, 3079.481449854829, 3430.285265105513, 3434.8312913445984, 3970.1057920413155]], [[176, 320, 326, 90, 216, 111], [0.0, 4161.276607004153, 4628.675404475885, 6200.620372188577, 6740.225070426061, 6843.7093012488485]], [[177, 338, 280, 358, 25, 38], [0.0, 3692.7562876528964, 4826.09314041907, 4834.917062370357, 5145.716762512294, 5342.771097473669]], [[178, 223, 159, 371, 180, 383], [0.0, 14616.26587059773, 16030.58383216282, 16381.694509421179, 16461.783591093645, 16678.032977542647]], [[179, 142, 309, 332, 328, 268], [0.0, 8047.613559310611, 8280.709691807822, 12492.673372821368, 13428.059949225726, 15174.62882577363]], [[180, 371, 383, 160, 354, 159], [0.0, 6721.008108907473, 8524.36830504173, 11587.710256992103, 11642.493847969172, 12920.273487817509]], [[237, 181, 42, 298, 331, 215], [0.0, 0.0, 5454.203149865249, 5701.44139669961, 5862.3156687438795, 5919.937161828662]], [[182, 274, 42, 298, 215, 372], [0.0, 2501.643459807972, 4657.335074911402, 4990.421224706388, 5208.428361799747, 5284.377919869093]], [[183, 350, 251, 321, 305, 171], [0.0, 5239.498640137242, 5435.151147852284, 5562.9298036196715, 5922.555022960952, 6046.368662263326]], [[184, 365, 152, 267, 367, 299], [0.0, 5633.042694672215, 5732.2881993144765, 5885.497005351374, 6813.192350139544, 7948.297364844876]], [[185, 76, 155, 80, 236, 158], [0.0, 6197.530153214262, 6620.042069352732, 6971.182539569596, 7036.0699257469005, 7173.943824703397]], [[186, 359, 190, 320, 111, 75], [0.0, 4598.87214434148, 6016.232209614253, 6387.625380374149, 7130.054137241877, 7550.41204173653]], [[187, 250, 335, 345, 304, 276], [0.0, 3465.6123557028127, 3662.0574817989955, 3674.159087464777, 3682.3986747770805, 3844.0694582694523]], [[188, 302, 338, 38, 360, 217], [0.0, 4209.132095812627, 4378.454750251509, 4588.86739838928, 4845.745453488039, 5277.97650620008]], [[189, 170, 350, 337, 183, 272], [0.0, 6817.070191805275, 7327.548020995837, 7385.622384064866, 7787.375167538803, 8187.037803748069]], [[190, 75, 359, 111, 186, 326], [0.0, 4574.059903411848, 5257.299782207592, 5663.831565292174, 6016.232209614253, 7063.990302937852]], [[191, 186, 106, 271, 359, 111], [0.0, 10079.556984312356, 10231.48009820671, 10619.916383851616, 11112.92625729155, 11236.148850918627]], [[192, 379, 374, 369, 343, 303], [0.0, 3041.477437036152, 3462.3887707766153, 3860.9270907387, 4492.91030402344, 4947.21002182038]], [[193, 152, 365, 299, 367, 258], [0.0, 5150.357172080398, 5558.813272632928, 6235.21114317711, 6566.976853926013, 6619.059751958733]], [[194, 257, 223, 159, 281, 99], [0.0, 8902.25960079799, 11364.048970327434, 13606.038475618096, 15011.042602031346, 18517.995706879294]], [[195, 38, 177, 338, 163, 188], [0.0, 3726.157001523151, 6829.459641875043, 6913.601955565565, 7178.180967348204, 7474.904547885545]], [[196, 268, 270, 350, 242, 251], [0.0, 2519.0946786494546, 2526.122522760921, 5479.049552614029, 5726.572797057591, 6098.440456378991]], [[197, 363, 289, 151, 376, 130], [0.0, 9906.421654664211, 16333.7541306339, 17307.343932562268, 27087.333017482546, 31075.9089006259]], [[198, 330, 358, 20, 360, 62], [0.0, 2764.227016726376, 3467.8483242494904, 3713.035281275954, 3939.599852776929, 4626.531962496315]], [[199, 246, 17, 318, 389, 351], [0.0, 7184.647312151098, 7244.052940170993, 7538.174845411852, 7836.538138744684, 7928.900932663997]], [[200, 225, 110, 20, 370, 262], [0.0, 6279.783754238676, 6483.8684440694815, 7956.451910242404, 8143.962180658748, 8696.70483574095]], [[201, 248, 286, 356, 214, 206], [0.0, 12757.34682447726, 12761.200883929381, 12827.77899716081, 12949.134334000864, 13119.935060814898]], [[202, 293, 153, 283, 84, 229], [0.0, 6958.000574877815, 7195.045656561187, 7273.580617550066, 10359.717708509243, 11086.508647901737]], [[203, 220, 205, 145, 93, 367], [0.0, 20553.0964090572, 23535.33887582671, 25742.8766846287, 27271.284696544826, 27714.750494998145]], [[204, 49, 215, 235, 372, 298], [0.0, 3585.9732291248356, 3880.0432987274767, 3892.0173432296006, 4066.3573379623194, 4442.144752256504]], [[205, 143, 193, 367, 152, 78], [0.0, 7993.774827952061, 8547.638504288772, 8785.687736312962, 10036.699507308167, 10447.974636263241]], [[206, 356, 248, 214, 272, 344], [0.0, 4691.3586518193215, 6004.728303595426, 6185.4883396543555, 6549.901373303265, 6667.9436110393135]], [[207, 325, 283, 21, 380, 137], [0.0, 9649.180224247031, 14305.570523401015, 15693.630427660772, 16239.221810173049, 17045.87466221666]], [[208, 80, 158, 239, 155, 323], [0.0, 3579.7881222217607, 3769.839651762393, 4628.879346018861, 4921.112475853402, 5138.024717729567]], [[209, 96, 206, 272, 103, 76], [0.0, 9086.512312213086, 10302.253054550738, 10507.047825150506, 10706.598619542996, 10964.77081383829]], [[210, 383, 78, 354, 143, 193], [0.0, 9157.775603278342, 9700.890680757102, 12050.565961812748, 12652.199492578357, 12883.401569461383]], [[211, 345, 343, 335, 303, 374], [0.0, 3448.66785875358, 3492.553363944494, 3774.555602981628, 4089.801095407942, 4430.424358907395]], [[212, 175, 171, 308, 321, 67], [0.0, 4894.56678368985, 4965.835478547391, 5084.571171691867, 5666.671333331412, 5676.732334715104]], [[213, 200, 124, 285, 353, 265], [0.0, 12569.274760303397, 13129.489974861934, 14457.595408642475, 14679.359693120134, 14783.305922560083]], [[214, 356, 236, 221, 248, 239], [0.0, 4619.454296775757, 5558.741134465608, 5635.780158948714, 5937.600525464811, 6096.747001475459]], [[215, 298, 372, 42, 377, 204], [0.0, 1824.8068390928395, 3554.3711117439607, 3652.9221179762376, 3851.085561241142, 3880.0432987274767]], [[216, 176, 226, 320, 359, 326], [0.0, 6740.225070426061, 6773.68097861126, 6838.589840018189, 8291.028163020555, 8495.816499901584]], [[217, 188, 133, 92, 319, 19], [0.0, 5277.97650620008, 5616.351662778961, 5846.568138660491, 6034.7758864766465, 6314.764207791135]], [[218, 29, 157, 277, 150, 386], [0.0, 4353.692455835621, 5169.272385935955, 5206.974841498661, 5215.006711405077, 5306.900319395494]], [[219, 313, 287, 254, 323, 356], [0.0, 3341.1869148552582, 13227.696473687321, 14380.94127656462, 14686.12474412498, 15096.552520360401]], [[220, 145, 355, 94, 120, 203], [0.0, 15704.663511199467, 16997.6353061242, 19269.120737594647, 20288.833086207793, 20553.0964090572]], [[221, 208, 239, 236, 214, 248], [0.0, 5176.102781050624, 5295.02351269567, 5328.3071420480255, 5635.780158948714, 5716.358806093263]], [[222, 87, 254, 323, 158, 327], [0.0, 13352.535527007596, 13959.539533953117, 14297.186506442447, 14489.113188873915, 14828.523695904458]], [[223, 159, 281, 194, 371, 160], [0.0, 6924.809744678911, 10354.55431199238, 11364.048970327434, 13278.405514217435, 13624.545423609552]], [[224, 252, 339, 172, 369, 379], [0.0, 3211.2072496181245, 4261.338756775856, 4883.859539339763, 5017.144805564217, 5734.165240032764]], [[225, 200, 330, 20, 198, 83], [0.0, 6279.783754238676, 6813.370751691119, 6984.244626299969, 7586.312806627472, 8021.629385604897]], [[226, 216, 267, 365, 176, 184], [0.0, 6773.68097861126, 7220.968633085176, 7370.945733079304, 7934.60320368952, 8223.409694281321]], [[227, 288, 116, 109, 11, 59], [0.0, 2181.261332348786, 3153.8126133300943, 3157.0983513346555, 3169.057904172784, 3511.3370672722376]], [[228, 58, 387, 290, 147, 349], [0.0, 5780.755659946198, 6737.796820920025, 6757.027156967774, 7364.48504649171, 7968.416969511573]], [[229, 293, 68, 48, 27, 202], [0.0, 7536.92377565277, 7998.447474354008, 9291.917993611438, 9797.855581707663, 11086.508647901737]], [[230, 106, 111, 326, 75, 359], [0.0, 4471.076827789923, 7489.993457941068, 7491.514065928195, 7703.950674816137, 7824.3176699313535]], [[231, 250, 187, 162, 290, 349], [0.0, 3609.4279325122975, 5438.032088908634, 6014.698994962258, 6080.050986628319, 6195.293455519279]], [[232, 387, 147, 14, 317, 340], [0.0, 13771.56552465986, 13885.288005655482, 14341.091555387267, 15151.367034033596, 15349.709410930227]], [[233, 192, 369, 374, 211, 276], [0.0, 5414.492035269791, 5541.903283169059, 5678.982127106934, 5706.305109262911, 5969.345441503616]], [[234, 255, 286, 350, 196, 268], [0.0, 5149.416860189122, 5373.35202643564, 7322.80069372368, 7333.511846312106, 7464.629930545787]], [[235, 49, 204, 348, 353, 262], [0.0, 3260.6028583683724, 3892.0173432296006, 4198.451619347304, 4225.609068524915, 4471.274538652262]], [[236, 76, 272, 80, 155, 221], [0.0, 4476.900490294596, 5120.7197736255785, 5129.3537604653475, 5282.505371506971, 5328.3071420480255]], [[237, 181, 42, 298, 331, 215], [0.0, 0.0, 5454.203149865249, 5701.44139669961, 5862.3156687438795, 5919.937161828662]], [[238, 277, 331, 261, 29, 166], [0.0, 3404.265265809937, 4545.124750763173, 4626.376984206972, 4923.19763974594, 5323.026394824658]], [[239, 208, 158, 323, 221, 80], [0.0, 4628.879346018861, 4686.893960823095, 5293.3456339067825, 5295.02351269567, 5399.39616994345]], [[240, 261, 277, 29, 157, 166], [0.0, 4688.566305385902, 4850.396890977067, 5339.4047421037485, 5432.184827488843, 5483.752729655122]], [[241, 230, 384, 75, 173, 190], [0.0, 11140.636471943602, 11383.131423294733, 11663.63541096857, 11857.917523747583, 12369.035411057726]], [[242, 270, 268, 196, 103, 272], [0.0, 4413.301825164465, 5012.846895727018, 5726.572797057591, 5984.071189416115, 6139.441179781756]], [[243, 226, 267, 326, 176, 90], [0.0, 10294.978678948295, 10704.62245947983, 11049.613386901825, 11130.002785264702, 11522.89785600827]], [[244, 253, 17, 322, 246, 361], [0.0, 4647.453496270834, 5222.22816429922, 5695.193499785587, 6850.202259787663, 7327.117577874672]], [[245, 376, 130, 64, 165, 151], [0.0, 29346.581061513793, 32532.411499918046, 32620.455990068564, 33460.40527250081, 34632.49326860542]], [[246, 318, 351, 389, 17, 361], [0.0, 3386.364865161461, 4172.432503947787, 4190.21371769985, 4257.849926899726, 4942.667194946469]], [[247, 302, 235, 358, 338, 280], [0.0, 5133.148936082022, 5314.567903414162, 5416.793424157875, 5593.006436613497, 5643.004961897517]], [[248, 356, 221, 214, 206, 272], [0.0, 5265.34101459725, 5716.358806093263, 5937.600525464811, 6004.728303595426, 6749.531094824291]], [[249, 252, 314, 379, 369, 339], [0.0, 6223.773855146088, 6434.058361563097, 6512.911330580204, 6866.417333660983, 6945.3056808178]], [[250, 187, 231, 276, 162, 290], [0.0, 3465.6123557028127, 3609.4279325122975, 4780.997071741416, 4926.040194720299, 5053.137441233911]], [[251, 321, 350, 305, 171, 183], [0.0, 4607.030496968736, 5312.720207200827, 5350.592303661343, 5371.144384579509, 5435.151147852284]], [[252, 224, 314, 172, 339, 379], [0.0, 3211.2072496181245, 3910.258047750813, 4398.434494226326, 4701.547404844494, 4840.402772497347]], [[253, 244, 322, 361, 17, 351], [0.0, 4647.453496270834, 4750.141576837474, 5465.867726171207, 6433.225551774164, 6533.259829518493]], [[254, 327, 287, 314, 252, 379], [0.0, 4232.0903818326, 5539.057681591698, 5543.605144668945, 6060.422592526036, 6274.705650466801]], [[255, 234, 350, 286, 321, 196], [0.0, 5149.416860189122, 5500.807577074479, 5516.138504424993, 7035.498560869727, 7188.729373122903]], [[256, 303, 266, 340, 335, 343], [0.0, 5337.691729577496, 5975.981760346997, 6396.366312211958, 6810.770587826314, 7058.317575739987]], [[257, 194, 223, 115, 159, 281], [0.0, 8902.25960079799, 14268.904197589947, 15485.333383560072, 16956.74694627481, 18511.03643775788]], [[258, 365, 193, 299, 152, 367], [0.0, 6169.643992970745, 6619.059751958733, 7867.338558877455, 8035.3202176391205, 8356.163294239766]], [[259, 52, 7, 104, 116, 59], [0.0, 3513.0856807086275, 4172.3669541400595, 4279.340486570331, 4337.506080687381, 4352.026998997134]], [[260, 217, 334, 188, 360, 92], [0.0, 6329.4192466607865, 6852.420229378814, 6855.753642014859, 7188.974127092127, 7386.140060951999]], [[261, 277, 157, 29, 386, 150], [0.0, 2310.9733879904375, 3014.9208944846296, 3123.191796864227, 3360.1785666836217, 4120.718869323652]], [[262, 215, 235, 298, 204, 285], [0.0, 4100.636657886187, 4471.274538652262, 4872.719466581264, 5365.970462087916, 5447.989537434887]], [[263, 76, 80, 158, 155, 208], [0.0, 5407.656886304825, 6187.471616096514, 6238.040156972381, 6269.184955000132, 6720.108778881485]], [[264, 88, 292, 87, 266, 256], [0.0, 11374.995560438694, 12011.587988271993, 12972.828257554325, 13595.751542301734, 13750.869499780732]], [[265, 42, 298, 138, 215, 372], [0.0, 4674.07188648185, 4696.492733945193, 5060.080631768628, 5500.193996578666, 5796.921424342407]], [[266, 303, 192, 256, 369, 233], [0.0, 4967.177367479442, 5681.918338026339, 5975.981760346997, 5976.574771556029, 6242.483800539654]], [[267, 365, 152, 184, 226, 367], [0.0, 4431.790495950819, 5119.524489637685, 5885.497005351374, 7220.968633085176, 7307.623485101021]], [[268, 196, 270, 242, 286, 350], [0.0, 2519.0946786494546, 2564.2146945994987, 5012.846895727018, 5579.828133553936, 5623.458900000959]], [[269, 347, 308, 175, 171, 321], [0.0, 2999.444448560433, 3123.1226360807545, 3430.285265105513, 3525.1387206746913, 3709.6313833048157]], [[270, 196, 268, 242, 350, 251], [0.0, 2526.122522760921, 2564.2146945994987, 4413.301825164465, 5472.571698936434, 5511.091089793382]], [[271, 191, 106, 111, 326, 230], [0.0, 10619.916383851616, 11159.452809165869, 11466.854625397498, 11790.346644607189, 12013.534908593723]], [[272, 103, 236, 356, 76, 242], [0.0, 4010.61566346116, 5120.7197736255785, 5526.078175342799, 5699.600249140285, 6139.441179781756]], [[273, 353, 204, 235, 377, 358], [0.0, 6028.351764786126, 6234.833438031846, 6502.553729112894, 6766.773233972009, 6795.573559310502]], [[274, 182, 372, 42, 298, 215], [0.0, 2501.643459807972, 4730.12219715305, 5192.530211756115, 5377.375568062919, 5660.139927598963]], [[275, 176, 320, 90, 149, 359], [0.0, 7659.825389654779, 7908.96415467917, 7944.0154833685965, 7973.352055440672, 8339.300750062921]], [[276, 187, 335, 304, 345, 250], [0.0, 3844.0694582694523, 3868.9237521564055, 4020.8971635693447, 4698.330235307008, 4780.997071741416]], [[277, 261, 29, 238, 386, 157], [0.0, 2310.9733879904375, 3317.714424117905, 3404.265265809937, 3691.9190131962537, 4018.9941527700685]], [[278, 281, 178, 354, 223, 159], [0.0, 26302.634772965237, 27160.715141542205, 28080.384167599987, 28898.098501458535, 30013.018092154613]], [[279, 286, 268, 248, 350, 242], [0.0, 6039.77830718976, 6992.599802648511, 7285.650966111401, 7298.387493138467, 7594.413341397741]], [[280, 338, 235, 358, 177, 198], [0.0, 4484.572889361929, 4566.267950963894, 4696.235726621908, 4826.09314041907, 5194.589107908343]], [[281, 223, 159, 194, 371, 180], [0.0, 10354.55431199238, 10367.315419142991, 15011.042602031346, 15419.13875675292, 16115.071455007575]], [[282, 76, 272, 189, 236, 103], [0.0, 10177.014149543076, 10522.148925005766, 10565.100946039276, 10762.638384708463, 10821.215088889048]], [[283, 153, 202, 103, 183, 84], [0.0, 7147.439051856266, 7273.580617550066, 8479.605474313059, 8725.80099475114, 8845.299994912553]], [[284, 385, 286, 171, 347, 279], [0.0, 7653.4699319981655, 8082.108883206165, 8774.262134219607, 8776.781186744945, 9323.454295485124]], [[285, 262, 215, 298, 331, 377], [0.0, 5447.989537434887, 5827.146385667688, 5936.731508161709, 6137.2537832486605, 6337.931918220643]], [[286, 234, 350, 255, 268, 321], [0.0, 5373.35202643564, 5512.3757128846, 5516.138504424993, 5579.828133553936, 5841.4559828864585]], [[287, 252, 254, 314, 158, 224], [0.0, 5379.455734551591, 5539.057681591698, 5837.057991831159, 6596.784292365485, 6641.2452145663165]], [[288, 227, 116, 109, 11, 59], [0.0, 2181.261332348786, 2450.042244533755, 2454.270360005189, 2621.9345910987176, 2804.3603548759565]], [[289, 197, 151, 376, 363, 130], [0.0, 16333.7541306339, 17182.120358093176, 19096.953631404147, 21878.77738814489, 23481.62413462919]], [[290, 147, 349, 162, 387, 250], [0.0, 4296.291656766332, 4529.128503365741, 4826.042063637656, 4846.729825356474, 5053.137441233911]], [[291, 125, 34, 81, 100, 336], [0.0, 2451.5152457204913, 2590.221805174221, 2651.585374827671, 2909.2780891485777, 4258.005049315935]], [[292, 87, 192, 379, 314, 369], [0.0, 3864.8957295119876, 5671.015429356545, 5781.941110042543, 5981.908056799269, 6471.057100659829]], [[293, 202, 229, 153, 27, 44], [0.0, 6958.000574877815, 7536.92377565277, 8522.657684079539, 9115.181731594823, 10357.461271952698]], [[294, 210, 383, 354, 180, 371], [0.0, 13293.220941517522, 14355.042354517802, 16249.633134320295, 16293.139967483248, 16560.72878831122]], [[295, 138, 238, 240, 331, 157], [0.0, 6196.563563782752, 6235.405359718003, 6687.476504631623, 6735.929705690225, 6898.697558235178]], [[296, 166, 331, 95, 265, 285], [0.0, 8200.0015853657, 8404.118454662572, 8578.73050048782, 8864.370141188825, 8932.442834969614]], [[297, 351, 318, 246, 316, 361], [0.0, 9430.686295280953, 9954.556142792104, 9976.915705767991, 10180.492031331296, 10331.907471517541]], [[298, 215, 42, 372, 28, 138], [0.0, 1824.8068390928395, 2922.2440007637965, 3601.5185686040827, 4137.343833910834, 4143.561028873594]], [[299, 193, 365, 152, 267, 258], [0.0, 6235.21114317711, 6569.980136956276, 7132.475096346288, 7558.105979675067, 7867.338558877455]], [[300, 41, 71, 65, 311, 91], [0.0, 27031.414687359593, 29114.892014225297, 35789.14205453939, 36452.44482884515, 39615.59210714892]], [[301, 140, 372, 42, 274, 298], [0.0, 3351.7280617615743, 5239.206428458417, 6115.455829290242, 6412.831667835981, 6820.816373426278]], [[302, 188, 247, 38, 338, 334], [0.0, 4209.132095812627, 5133.148936082022, 5817.703412859752, 6440.216067803936, 7198.846713189551]], [[303, 335, 345, 211, 343, 340], [0.0, 3525.2425448470917, 3886.9050670166876, 4089.801095407942, 4156.678722249291, 4223.30214405742]], [[304, 187, 342, 276, 335, 250], [0.0, 3682.3986747770805, 3714.128565356886, 4020.8971635693447, 4438.109394776114, 5413.879662497126]], [[305, 321, 308, 347, 269, 171], [0.0, 3328.4624077793037, 3506.223894733478, 3871.4552819321057, 4479.15427285107, 4618.031398767228]], [[306, 226, 176, 216, 320, 388], [0.0, 8777.448433343257, 9290.163346249623, 9357.268351394012, 10032.860609018746, 10445.02814740104]], [[307, 168, 243, 143, 78, 267], [0.0, 17720.50936062505, 19745.12496795095, 19815.677682077894, 20305.719095860655, 21266.202152711707]], [[308, 175, 269, 67, 171, 305], [0.0, 2661.3256095412303, 3123.1226360807545, 3402.3882788417905, 3426.7658221711035, 3506.223894733478]], [[309, 142, 179, 332, 328, 103], [0.0, 7900.2963868452425, 8280.709691807822, 10935.059441996646, 12488.209519382672, 14048.156427090353]], [[310, 381, 210, 383, 143, 193], [0.0, 15653.276174654302, 19609.76634231015, 20383.608365547057, 21071.01146124694, 21746.006713877377]], [[311, 91, 191, 271, 106, 230], [0.0, 10355.313611861304, 13205.94563066197, 14015.68685437856, 14369.232860525297, 15207.311498091962]], [[312, 290, 50, 250, 349, 58], [0.0, 10170.892684518896, 10278.433878757989, 10302.145795900968, 10667.537625900366, 10727.432125163972]], [[313, 219, 287, 254, 356, 323], [0.0, 3341.1869148552582, 14921.470235871531, 15736.877263294646, 15945.209249175754, 15966.127833635806]], [[314, 252, 108, 158, 379, 323], [0.0, 3910.258047750813, 4186.657855617055, 4925.250958073101, 4955.559806923936, 5251.081602870022]], [[315, 246, 361, 351, 318, 389], [0.0, 5139.250042564577, 5597.272192773905, 5902.137917737945, 6619.09797479989, 7495.610048555088]], [[316, 318, 246, 351, 50, 389], [0.0, 6662.0879609924095, 6988.322617051963, 7231.351602570573, 7333.3137802769625, 7518.968280289524]], [[317, 387, 162, 231, 250, 340], [0.0, 7350.42243683994, 7975.704859133141, 8032.765028307501, 8081.292223400908, 8572.585724272461]], [[318, 246, 389, 17, 351, 361], [0.0, 3386.364865161461, 3843.336571262007, 4670.002462526118, 5264.1567225909985, 5792.676238147615]], [[319, 217, 133, 92, 97, 334], [0.0, 6034.7758864766465, 6074.287283295053, 6492.968581473347, 6921.5038828277775, 7014.087324805701]], [[320, 176, 326, 111, 359, 186], [0.0, 4161.276607004153, 4246.168979209377, 4614.0771558351735, 5213.257810620918, 6387.625380374149]], [[321, 305, 171, 347, 308, 269], [0.0, 3328.4624077793037, 3337.189536121675, 3409.5653681957765, 3586.798293743321, 3709.6313833048157]], [[322, 253, 244, 17, 361, 351], [0.0, 4750.141576837474, 5695.193499785587, 7192.287257889523, 7298.907109972013, 7516.680982987105]], [[323, 158, 155, 80, 76, 208], [0.0, 3105.5584038945394, 3966.955507691005, 4356.849205561285, 5024.97611934624, 5138.024717729567]], [[324, 164, 95, 175, 269, 67], [0.0, 4756.520156585064, 5556.310376499859, 5633.3514003655055, 5799.806289868654, 5856.360473877953]], [[325, 207, 283, 21, 202, 118], [0.0, 9649.180224247031, 14556.324776536143, 15760.593611917033, 16771.169011133363, 17373.779381585344]], [[326, 320, 176, 111, 106, 90], [0.0, 4246.168979209377, 4628.675404475885, 4767.075518596281, 6168.897551426835, 6656.8164312980725]], [[327, 254, 379, 192, 339, 369], [0.0, 4232.0903818326, 4270.048945855305, 5622.356890130686, 5828.429719915991, 5834.549768405443]], [[328, 76, 108, 155, 158, 323], [0.0, 8311.52928166652, 8463.363279453388, 8597.389371198678, 8852.042080785654, 8876.854172509538]], [[329, 263, 87, 208, 314, 292], [0.0, 7763.317718604591, 8185.635894663285, 8315.405943187621, 8365.212250744149, 8509.953231363848]], [[330, 198, 360, 358, 20, 62], [0.0, 2764.227016726376, 3925.3496659533403, 4511.063178453612, 4703.398771101595, 5027.006962398203]], [[331, 42, 238, 261, 277, 298], [0.0, 4244.196154750626, 4545.124750763173, 4602.128963860096, 4648.023343314876, 5180.552962763724]], [[332, 321, 183, 308, 171, 305], [0.0, 6584.293280223778, 6706.427961292062, 6846.223776652352, 6862.665954277536, 7083.847965618686]], [[333, 235, 204, 348, 49, 262], [0.0, 4746.7149693235215, 5167.260783045501, 5420.004151289923, 6146.200452311981, 6384.4831427453855]], [[334, 338, 188, 360, 38, 260], [0.0, 5280.375838896319, 5355.355917210359, 6391.357445801322, 6555.293967473923, 6852.420229378814]], [[335, 345, 343, 303, 340, 187], [0.0, 2507.7017366505133, 2721.0470411222223, 3525.2425448470917, 3646.8282109252145, 3662.0574817989955]], [[336, 104, 82, 7, 59, 116], [0.0, 2134.545853337426, 2833.633356664196, 3050.9678792147256, 3293.6217147693205, 3409.9205269331424]], [[337, 189, 272, 356, 103, 76], [0.0, 7385.622384064866, 7895.2100668696585, 8697.481934445164, 8878.724683196342, 9057.245110959513]], [[338, 177, 188, 38, 280, 360], [0.0, 3692.7562876528964, 4378.454750251509, 4423.1206178443745, 4484.572889361929, 4954.995963671414]], [[339, 379, 369, 342, 224, 252], [0.0, 3569.795092158652, 3850.801215331687, 4047.623747336207, 4261.338756775856, 4701.547404844494]], [[340, 335, 345, 162, 303, 187], [0.0, 3646.8282109252145, 3671.903865843985, 4180.831017871926, 4223.30214405742, 4448.9485274612925]], [[341, 232, 147, 173, 389, 318], [0.0, 27811.716649642465, 28817.53636243043, 29458.7516707684, 30238.79961241848, 30329.296628837274]], [[342, 304, 339, 369, 374, 335], [0.0, 3714.128565356886, 4047.623747336207, 4748.294009431177, 4823.558230186508, 5229.193245616383]], [[343, 335, 345, 211, 374, 303], [0.0, 2721.0470411222223, 3282.1275112341386, 3492.553363944494, 3873.9425653976855, 4156.678722249291]], [[344, 242, 272, 356, 268, 206], [0.0, 6162.715959704779, 6174.154840947868, 6489.983204908931, 6557.766083049928, 6667.9436110393135]], [[345, 335, 343, 211, 340, 187], [0.0, 2507.7017366505133, 3282.1275112341386, 3448.66785875358, 3671.903865843985, 3674.159087464777]], [[346, 22, 10, 209, 23, 4], [0.0, 17968.757330433287, 19690.571804800387, 22430.959408817092, 23304.68409998299, 23747.92235122896]], [[347, 269, 321, 308, 171, 305], [0.0, 2999.444448560433, 3409.5653681957765, 3841.2248046684276, 3843.2551307452904, 3871.4552819321057]], [[348, 235, 333, 204, 377, 215], [0.0, 4198.451619347304, 5420.004151289923, 5923.593757171401, 6037.947416134062, 6092.5857400614395]], [[349, 290, 250, 162, 187, 50], [0.0, 4529.128503365741, 5350.480819515195, 5420.36539358741, 5519.871194149371, 5608.485357028224]], [[350, 321, 183, 251, 270, 196], [0.0, 4992.711688050893, 5239.498640137242, 5312.720207200827, 5472.571698936434, 5479.049552614029]], [[351, 361, 246, 17, 318, 315], [0.0, 4131.371927096373, 4172.432503947787, 5187.10275587442, 5264.1567225909985, 5902.137917737945]], [[352, 362, 255, 234, 286, 385], [0.0, 8390.306073082198, 9027.27921358368, 9175.75293913257, 9859.453737403508, 10419.904606089252]], [[353, 49, 377, 235, 358, 204], [0.0, 3534.9544551521453, 4224.474286819604, 4225.609068524915, 4261.774865006362, 4587.085676112884]], [[354, 383, 180, 210, 371, 294], [0.0, 9225.645885248361, 11642.493847969172, 12050.565961812748, 12433.332015192065, 16249.633134320295]], [[355, 220, 180, 371, 160, 145], [0.0, 16997.6353061242, 17619.283611997394, 17786.446047482335, 19162.13046610423, 19620.46319534786]], [[356, 214, 206, 248, 272, 221], [0.0, 4619.454296775757, 4691.3586518193215, 5265.34101459725, 5526.078175342799, 6153.850176921762]], [[357, 229, 68, 293, 48, 364], [0.0, 15952.356001544098, 19986.577145674542, 20571.561972781747, 21159.797258007933, 21583.73392163645]], [[358, 49, 198, 20, 83, 62], [0.0, 3203.708788264002, 3467.8483242494904, 3941.8316808306263, 4016.633416183259, 4077.1875110178585]], [[359, 186, 111, 320, 190, 75], [0.0, 4598.87214434148, 4887.354396808155, 5213.257810620918, 5257.299782207592, 6311.288537216469]], [[360, 330, 198, 358, 188, 338], [0.0, 3925.3496659533403, 3939.599852776929, 4807.091948361296, 4845.745453488039, 4954.995963671414]], [[361, 351, 246, 253, 315, 17], [0.0, 4131.371927096373, 4942.667194946469, 5465.867726171207, 5597.272192773905, 5734.306148088014]], [[362, 331, 238, 277, 166, 261], [0.0, 5800.896223860585, 6135.253702985721, 6148.377997488444, 6793.62686640943, 7610.415625969452]], [[363, 197, 289, 151, 376, 130], [0.0, 9906.421654664211, 21878.77738814489, 22198.771047064743, 33345.99526180018, 38159.717399372865]], [[364, 214, 239, 221, 172, 208], [0.0, 11734.665312653788, 12422.249635231132, 12518.376092768582, 13267.813308906634, 13347.870242102295]], [[365, 152, 267, 193, 184, 258], [0.0, 4351.311526425107, 4431.790495950819, 5558.813272632928, 5633.042694672215, 6169.643992970745]], [[366, 175, 29, 308, 277, 269], [0.0, 4046.4851414530117, 4699.589450154131, 4916.279690985858, 4947.754035923775, 4991.12301992247]], [[367, 152, 365, 193, 184, 267], [0.0, 5662.571853848744, 6444.9813033088, 6566.976853926013, 6813.192350139544, 7307.623485101021]], [[368, 27, 314, 158, 252, 208], [0.0, 6878.220845538474, 6941.016063949139, 7120.072963109296, 7454.397494097025, 7507.731748004852]], [[369, 379, 339, 192, 374, 342], [0.0, 3559.992556171993, 3850.801215331687, 3860.9270907387, 4628.341387581517, 4748.294009431177]], [[370, 177, 338, 25, 38, 20], [0.0, 6272.633657404201, 7005.035474571132, 7560.201187799171, 7666.159142621552, 7850.265664294426]], [[371, 180, 383, 160, 159, 136], [0.0, 6721.008108907473, 7425.562941622676, 10843.425980749811, 12001.769911142273, 12090.436427193188]], [[372, 215, 298, 204, 42, 274], [0.0, 3554.3711117439607, 3601.5185686040827, 4066.3573379623194, 4652.727157270239, 4730.12219715305]], [[373, 171, 308, 321, 175, 305], [0.0, 7305.8190505924795, 7583.837155424687, 7628.821796319534, 7653.936111570308, 7970.509770397374]], [[374, 192, 343, 379, 211, 369], [0.0, 3462.3887707766153, 3873.9425653976855, 4199.124551617872, 4430.424358907395, 4628.341387581517]], [[375, 253, 244, 173, 322, 361], [0.0, 7475.702241261351, 7571.29169957148, 7754.209050573759, 8288.657249518767, 8640.65657227505]], [[376, 130, 151, 64, 289, 165], [0.0, 16137.830833169617, 16785.00348525433, 18489.52219501629, 19096.953631404147, 19897.78608287867]], [[377, 215, 353, 298, 204, 235], [0.0, 3851.085561241142, 4224.474286819604, 4698.036185471542, 4726.746872850291, 4935.9255464401]], [[378, 361, 351, 253, 315, 246], [0.0, 6449.810849939709, 6768.150707541906, 7424.680599190783, 8369.964516053817, 9087.428624203878]], [[379, 192, 369, 339, 374, 327], [0.0, 3041.477437036152, 3559.992556171993, 3569.795092158652, 4199.124551617872, 4270.048945855305]], [[380, 137, 164, 270, 251, 321], [0.0, 5859.001792114421, 8945.163833044087, 9349.604002309403, 9515.08570639277, 9900.858952636383]], [[381, 160, 371, 383, 180, 310], [0.0, 12414.421895521353, 12580.78105683427, 12774.406718121982, 13242.908517391486, 15653.276174654302]], [[382, 169, 115, 257, 114, 156], [0.0, 15625.562389878964, 18729.320169189272, 18774.91336864168, 19701.89668534479, 20963.29742669316]], [[383, 371, 180, 210, 354, 381], [0.0, 7425.562941622676, 8524.36830504173, 9157.775603278342, 9225.645885248361, 12774.406718121982]], [[384, 173, 253, 361, 375, 389], [0.0, 6206.158312515078, 8696.045250572239, 8750.229996977223, 8863.358787728273, 9166.953637932287]], [[385, 284, 352, 286, 347, 166], [0.0, 7653.4699319981655, 10419.904606089252, 11069.990785904025, 12244.11303443414, 12506.330556961942]], [[386, 29, 157, 261, 277, 150], [0.0, 2886.9975753367025, 3211.149638369411, 3360.1785666836217, 3691.9190131962537, 4333.924087936935]], [[387, 290, 147, 349, 162, 250], [0.0, 4846.729825356474, 4905.537483293752, 5658.564570630965, 5735.358576410023, 5860.482403352134]], [[388, 320, 359, 111, 326, 176], [0.0, 7626.255765446108, 7949.735341506659, 8248.000909311299, 8574.21623240282, 8769.130971766815]], [[389, 318, 246, 17, 351, 361], [0.0, 3843.336571262007, 4190.21371769985, 5181.607376094797, 5993.533348534902, 6723.874032133559]]]
#2048
arr = [[[0, 128, 337, 30, 356, 166], [0.0, 0.1005626916885376, 0.10077941417694092, 0.10181653499603271, 0.11069488525390625, 0.11128991842269897]], [[1, 335, 308, 131, 273, 14], [0.0, 0.0942697525024414, 0.09997010231018066, 0.10416316986083984, 0.11758792400360107, 0.12119185924530029]], [[2, 210, 72, 76, 311, 242], [1.7881393432617188e-07, 0.049562931060791016, 0.05202406644821167, 0.06311362981796265, 0.06434881687164307, 0.06878328323364258]], [[3, 287, 242, 55, 10, 32], [0.0, 0.04105997085571289, 0.0548740029335022, 0.0632060170173645, 0.06866198778152466, 0.0732453465461731]], [[4, 100, 17, 305, 99, 386], [0.0, 0.06099724769592285, 0.06115597486495972, 0.06637638807296753, 0.07505744695663452, 0.0750969648361206]], [[5, 97, 19, 104, 303, 288], [5.960464477539063e-08, 0.08154857158660889, 0.08185344934463501, 0.08393651247024536, 0.08458435535430908, 0.08599615097045898]], [[6, 378, 229, 71, 16, 171], [1.7881393432617188e-07, 0.06647306680679321, 0.06806796789169312, 0.06850755214691162, 0.07522445917129517, 0.07776880264282227]], [[7, 45, 107, 96, 12, 71], [0.0, 0.0580938458442688, 0.0590936541557312, 0.06011974811553955, 0.060225725173950195, 0.06028568744659424]], [[8, 176, 321, 46, 313, 151], [0.0, 0.03362011909484863, 0.038350820541381836, 0.0428888201713562, 0.04345816373825073, 0.04350876808166504]], [[9, 170, 250, 263, 385, 150], [0.0, 0.12281560897827148, 0.13004720211029053, 0.1312175989151001, 0.13205206394195557, 0.13637584447860718]], [[10, 178, 348, 67, 60, 55], [0.0, 0.047936201095581055, 0.049902498722076416, 0.05183291435241699, 0.05232119560241699, 0.05429047346115112]], [[11, 129, 305, 100, 386, 292], [0.0, 0.08831846714019775, 0.09069520235061646, 0.09222710132598877, 0.0927320122718811, 0.09927761554718018]], [[12, 71, 229, 45, 378, 96], [0.0, 0.02828037738800049, 0.03667175769805908, 0.03744018077850342, 0.04182732105255127, 0.042524099349975586]], [[13, 281, 231, 155, 139, 82], [0.0, 0.035893142223358154, 0.037699997425079346, 0.04320460557937622, 0.04357856512069702, 0.04388362169265747]], [[14, 19, 152, 5, 192, 260], [0.0, 0.0910763144493103, 0.09139037132263184, 0.09370124340057373, 0.09395545721054077, 0.09890615940093994]], [[15, 71, 45, 229, 92, 12], [1.1920928955078125e-07, 0.09209758043289185, 0.09580999612808228, 0.09787583351135254, 0.0991814136505127, 0.09936380386352539]], [[16, 171, 154, 196, 384, 71], [1.1920928955078125e-07, 0.05150872468948364, 0.06328332424163818, 0.06411761045455933, 0.06560969352722168, 0.06584668159484863]], [[17, 305, 57, 100, 388, 36], [0.0, 0.04877501726150513, 0.055229246616363525, 0.05591011047363281, 0.05608147382736206, 0.056215643882751465]], [[18, 143, 198, 114, 360, 165], [0.0, 0.06015002727508545, 0.06475073099136353, 0.06770288944244385, 0.06871318817138672, 0.07012557983398438]], [[19, 152, 215, 39, 315, 260], [0.0, 0.052642107009887695, 0.06158459186553955, 0.06263852119445801, 0.06486845016479492, 0.06546270847320557]], [[20, 231, 281, 13, 289, 360], [0.0, 0.044324636459350586, 0.04457515478134155, 0.04825270175933838, 0.048373520374298096, 0.048667192459106445]], [[21, 181, 62, 262, 310, 340], [0.0, 0.09325623512268066, 0.11275607347488403, 0.12407243251800537, 0.1299898624420166, 0.13688838481903076]], [[22, 332, 305, 100, 4, 384], [0.0, 0.06975585222244263, 0.07071477174758911, 0.07576745748519897, 0.08226519823074341, 0.08533704280853271]], [[23, 388, 257, 57, 209, 248], [3.5762786865234375e-07, 0.07066106796264648, 0.0736396312713623, 0.08093774318695068, 0.08467257022857666, 0.0850268006324768]], [[24, 41, 78, 208, 382, 35], [1.1920928955078125e-07, 0.06995820999145508, 0.09289264678955078, 0.10452008247375488, 0.10537409782409668, 0.11078232526779175]], [[25, 373, 331, 288, 86, 363], [0.0, 0.049719810485839844, 0.05682593584060669, 0.059105873107910156, 0.05919879674911499, 0.06151348352432251]], [[26, 88, 295, 276, 130, 354], [0.0, 0.13215720653533936, 0.13317841291427612, 0.13640064001083374, 0.14095628261566162, 0.14118832349777222]], [[27, 291, 104, 121, 227, 88], [1.1920928955078125e-07, 0.11909270286560059, 0.12615466117858887, 0.14922082424163818, 0.15525811910629272, 0.15731382369995117]], [[28, 388, 349, 23, 257, 57], [0.0, 0.09190154075622559, 0.0920032262802124, 0.09242939949035645, 0.09547334909439087, 0.09568190574645996]], [[29, 258, 194, 125, 118, 318], [0.0, 0.09951764345169067, 0.10150337219238281, 0.1082921028137207, 0.10872000455856323, 0.11350959539413452]], [[30, 375, 337, 76, 52, 309], [0.0, 0.05500936508178711, 0.06323885917663574, 0.06384491920471191, 0.06425493955612183, 0.06765508651733398]], [[31, 236, 255, 247, 389, 151], [1.1920928955078125e-07, 0.08536458015441895, 0.08772879838943481, 0.09057903289794922, 0.09326386451721191, 0.09366410970687866]], [[32, 76, 375, 309, 242, 210], [0.0, 0.04529482126235962, 0.0609058141708374, 0.06201910972595215, 0.06534546613693237, 0.0663800835609436]], [[33, 10, 287, 242, 3, 67], [2.384185791015625e-07, 0.058835625648498535, 0.06372332572937012, 0.0736684799194336, 0.07995736598968506, 0.08360564708709717]], [[34, 259, 18, 128, 198, 49], [5.960464477539063e-08, 0.05369997024536133, 0.07236450910568237, 0.07848501205444336, 0.08096760511398315, 0.08247578144073486]], [[35, 78, 197, 254, 125, 255], [2.384185791015625e-07, 0.09112715721130371, 0.09396719932556152, 0.09481298923492432, 0.09809255599975586, 0.10170602798461914]], [[36, 17, 388, 209, 305, 326], [1.7881393432617188e-07, 0.056215643882751465, 0.05823516845703125, 0.06366699934005737, 0.06771749258041382, 0.07028859853744507]], [[37, 70, 80, 90, 346, 387], [5.960464477539063e-08, 0.07081067562103271, 0.07245051860809326, 0.07526904344558716, 0.07646703720092773, 0.07646703720092773]], [[38, 276, 320, 206, 63, 140], [0.0, 0.06224709749221802, 0.07289868593215942, 0.07399356365203857, 0.07406628131866455, 0.07515543699264526]], [[39, 303, 152, 215, 264, 70], [0.0, 0.04280740022659302, 0.04761064052581787, 0.04792964458465576, 0.048143982887268066, 0.04962873458862305]], [[40, 69, 234, 351, 157, 63], [5.960464477539063e-08, 0.0488094687461853, 0.05567371845245361, 0.05606424808502197, 0.06058239936828613, 0.06100970506668091]], [[41, 24, 78, 273, 382, 208], [0.0, 0.06995820999145508, 0.09829652309417725, 0.10327845811843872, 0.10604262351989746, 0.11442548036575317]], [[42, 298, 325, 189, 227, 290], [0.0, 0.18739008903503418, 0.1901332139968872, 0.19261431694030762, 0.1977393627166748, 0.19783663749694824]], [[43, 0, 356, 370, 30, 337], [1.1920928955078125e-07, 0.12884116172790527, 0.1444295048713684, 0.14681416749954224, 0.15216153860092163, 0.16057586669921875]], [[44, 312, 266, 226, 267, 354], [5.960464477539063e-08, 0.1110842227935791, 0.11402487754821777, 0.11455321311950684, 0.11788570880889893, 0.11900615692138672]], [[45, 229, 71, 378, 12, 96], [1.1920928955078125e-07, 0.02926015853881836, 0.03166651725769043, 0.037140846252441406, 0.03744018077850342, 0.038410067558288574]], [[46, 164, 313, 247, 163, 176], [5.960464477539063e-08, 0.030757546424865723, 0.032804667949676514, 0.03646284341812134, 0.038690388202667236, 0.04049760103225708]], [[47, 313, 235, 46, 117, 164], [0.0, 0.04832732677459717, 0.04969966411590576, 0.0541345477104187, 0.058829545974731445, 0.05934387445449829]], [[48, 369, 210, 20, 252, 383], [1.1920928955078125e-07, 0.1252894401550293, 0.13540172576904297, 0.13950371742248535, 0.14341557025909424, 0.148326575756073]], [[49, 211, 224, 95, 366, 359], [5.960464477539063e-08, 0.055333852767944336, 0.061171889305114746, 0.06294906139373779, 0.063076913356781, 0.06368374824523926]], [[50, 386, 305, 4, 384, 292], [0.0, 0.0706782341003418, 0.07111704349517822, 0.08032643795013428, 0.08162033557891846, 0.0816696286201477]], [[51, 375, 76, 309, 84, 30], [2.384185791015625e-07, 0.06318801641464233, 0.06871497631072998, 0.07387340068817139, 0.07428938150405884, 0.07462084293365479]], [[52, 76, 337, 168, 375, 210], [0.0, 0.04663097858428955, 0.057126522064208984, 0.058302998542785645, 0.0616837739944458, 0.0629071593284607]], [[53, 383, 49, 299, 8, 95], [0.0, 0.08219456672668457, 0.09958779811859131, 0.10117167234420776, 0.10236853361129761, 0.10305947065353394]], [[54, 191, 367, 383, 64, 122], [0.0, 0.17235052585601807, 0.19537591934204102, 0.22151511907577515, 0.22621870040893555, 0.2338804006576538]], [[55, 348, 67, 60, 10, 178], [0.0, 0.050887346267700195, 0.05339038372039795, 0.05345034599304199, 0.05429047346115112, 0.05748450756072998]], [[56, 266, 144, 94, 167, 150], [5.960464477539063e-08, 0.0745808482170105, 0.09138768911361694, 0.09912258386611938, 0.10033959150314331, 0.10937082767486572]], [[57, 17, 388, 209, 257, 305], [0.0, 0.055229246616363525, 0.06635099649429321, 0.06721103191375732, 0.06899487972259521, 0.06986367702484131]], [[58, 380, 99, 142, 94, 384], [0.0, 0.10433363914489746, 0.11881721019744873, 0.12344497442245483, 0.12403273582458496, 0.12717264890670776]], [[59, 271, 286, 179, 123, 227], [0.0, 0.07521593570709229, 0.1281530261039734, 0.13956236839294434, 0.15041756629943848, 0.15301060676574707]], [[60, 67, 348, 178, 10, 55], [0.0, 0.00017821788787841797, 0.047116994857788086, 0.05019253492355347, 0.05232119560241699, 0.05345034599304199]], [[61, 253, 366, 146, 213, 224], [0.0, 0.05778157711029053, 0.060382068157196045, 0.06183302402496338, 0.0628814697265625, 0.06408083438873291]], [[62, 310, 21, 262, 181, 37], [1.1920928955078125e-07, 0.1019512414932251, 0.11275607347488403, 0.12274575233459473, 0.1298845410346985, 0.14955198764801025]], [[63, 140, 69, 351, 283, 206], [2.384185791015625e-07, 0.04478907585144043, 0.04597270488739014, 0.05061972141265869, 0.05126082897186279, 0.05416899919509888]], [[64, 279, 75, 238, 98, 247], [2.384185791015625e-07, 0.10077059268951416, 0.1112896203994751, 0.12097221612930298, 0.12214481830596924, 0.1225970983505249]], [[65, 94, 56, 167, 381, 318], [2.384185791015625e-07, 0.10081690549850464, 0.16298234462738037, 0.1641629934310913, 0.18637174367904663, 0.1864812970161438]], [[66, 71, 12, 45, 229, 96], [0.0, 0.041068196296691895, 0.046581804752349854, 0.05200648307800293, 0.052407026290893555, 0.053811490535736084]], [[67, 60, 348, 178, 10, 55], [0.0, 0.00017821788787841797, 0.04662448167800903, 0.049785733222961426, 0.05183291435241699, 0.05339038372039795]], [[68, 212, 256, 296, 83, 123], [1.1920928955078125e-07, 0.07987916469573975, 0.09101331233978271, 0.10285460948944092, 0.11461901664733887, 0.12338972091674805]], [[69, 351, 140, 63, 157, 40], [0.0, 0.04005134105682373, 0.041211724281311035, 0.04597270488739014, 0.04673677682876587, 0.0488094687461853]], [[70, 248, 264, 215, 39, 297], [1.7881393432617188e-07, 0.04572033882141113, 0.04826486110687256, 0.049379944801330566, 0.04962873458862305, 0.054569780826568604]], [[71, 12, 229, 45, 96, 378], [4.172325134277344e-07, 0.02828037738800049, 0.030160605907440186, 0.03166651725769043, 0.037590622901916504, 0.03851675987243652]], [[72, 210, 82, 168, 311, 139], [0.0, 0.04411518573760986, 0.04566693305969238, 0.04905962944030762, 0.051091670989990234, 0.05183684825897217]], [[73, 45, 327, 92, 12, 343], [5.960464477539063e-08, 0.10720217227935791, 0.11332958936691284, 0.1157228946685791, 0.11603295803070068, 0.11604249477386475]], [[74, 189, 389, 237, 117, 157], [1.7881393432617188e-07, 0.06960052251815796, 0.08840560913085938, 0.09126400947570801, 0.09154009819030762, 0.0926206111907959]], [[75, 247, 164, 307, 117, 283], [0.0, 0.04551893472671509, 0.053152620792388916, 0.05444025993347168, 0.05548286437988281, 0.057063281536102295]], [[76, 32, 375, 210, 52, 309], [0.0, 0.04529482126235962, 0.04639464616775513, 0.04660993814468384, 0.04663097858428955, 0.048916518688201904]], [[77, 336, 63, 69, 164, 247], [1.1920928955078125e-07, 0.05293452739715576, 0.05473989248275757, 0.05812329053878784, 0.058454275131225586, 0.059741437435150146]], [[78, 125, 35, 24, 258, 340], [0.0, 0.08225131034851074, 0.09112715721130371, 0.09289264678955078, 0.0959402322769165, 0.0964822769165039]], [[79, 213, 289, 359, 347, 304], [0.0, 0.07817733287811279, 0.07885366678237915, 0.08214700222015381, 0.08364582061767578, 0.0837395191192627]], [[80, 215, 264, 182, 37, 248], [0.0, 0.06977283954620361, 0.0714913010597229, 0.07219105958938599, 0.07245051860809326, 0.07489895820617676]], [[81, 129, 107, 261, 96, 154], [0.0, 0.15226155519485474, 0.1616497039794922, 0.17522186040878296, 0.18650835752487183, 0.1891527771949768]], [[82, 281, 231, 13, 168, 139], [0.0, 0.0423809289932251, 0.04366481304168701, 0.04388362169265747, 0.0441509485244751, 0.045389533042907715]], [[83, 216, 136, 115, 372, 46], [0.0, 0.06969684362411499, 0.07079887390136719, 0.07450193166732788, 0.07597553730010986, 0.07600688934326172]], [[84, 168, 166, 139, 210, 311], [0.0, 0.04298079013824463, 0.045029282569885254, 0.048431575298309326, 0.05172085762023926, 0.05417817831039429]], [[85, 385, 387, 346, 124, 80], [5.960464477539063e-08, 0.060361623764038086, 0.07113653421401978, 0.07113653421401978, 0.08159124851226807, 0.08374738693237305]], [[86, 288, 190, 303, 25, 269], [0.0, 0.054333627223968506, 0.054544806480407715, 0.05677121877670288, 0.05919879674911499, 0.06163662672042847]], [[87, 254, 137, 329, 39, 217], [0.0, 0.057404398918151855, 0.08084362745285034, 0.09660136699676514, 0.09774887561798096, 0.0977867841720581]], [[88, 295, 199, 201, 63, 93], [1.1920928955078125e-07, 0.05963146686553955, 0.07073652744293213, 0.08101546764373779, 0.08127003908157349, 0.08339250087738037]], [[89, 149, 84, 139, 166, 168], [0.0, 0.04874807596206665, 0.0644349455833435, 0.07213848829269409, 0.0721510648727417, 0.07362496852874756]], [[90, 207, 387, 346, 315, 37], [1.1920928955078125e-07, 0.061542391777038574, 0.0673600435256958, 0.0673600435256958, 0.07291239500045776, 0.07526904344558716]], [[91, 313, 176, 46, 164, 151], [0.0, 0.04198896884918213, 0.042483389377593994, 0.04323005676269531, 0.0462191104888916, 0.04850655794143677]], [[92, 45, 229, 12, 71, 378], [0.0, 0.040180325508117676, 0.042765915393829346, 0.045211851596832275, 0.05054116249084473, 0.057910025119781494]], [[93, 199, 88, 63, 295, 203], [1.1920928955078125e-07, 0.07741540670394897, 0.08339250087738037, 0.08914095163345337, 0.0915137529373169, 0.0935211181640625]], [[94, 56, 65, 129, 58, 167], [0.0, 0.09912258386611938, 0.10081684589385986, 0.10811948776245117, 0.12403273582458496, 0.13024282455444336]], [[95, 224, 285, 366, 321, 213], [0.0, 0.03451073169708252, 0.03666502237319946, 0.04081171751022339, 0.04123347997665405, 0.041637539863586426]], [[96, 229, 378, 71, 45, 261], [1.1920928955078125e-07, 0.035408854484558105, 0.03636223077774048, 0.037590622901916504, 0.038410067558288574, 0.04035520553588867]], [[97, 205, 170, 160, 19, 319], [0.0, 0.06477290391921997, 0.06766068935394287, 0.0766134262084961, 0.07778501510620117, 0.07952713966369629]], [[98, 241, 64, 236, 362, 197], [5.960464477539063e-08, 0.10403168201446533, 0.12214481830596924, 0.13926100730895996, 0.14328312873840332, 0.14532190561294556]], [[99, 142, 386, 292, 305, 384], [1.7881393432617188e-07, 0.04474687576293945, 0.05754208564758301, 0.05966871976852417, 0.06204444169998169, 0.07085573673248291]], [[100, 305, 17, 4, 209, 257], [1.7881393432617188e-07, 0.04650908708572388, 0.05591011047363281, 0.06099724769592285, 0.0654001235961914, 0.06881314516067505]], [[101, 95, 321, 313, 224, 253], [1.1920928955078125e-07, 0.048243939876556396, 0.04940342903137207, 0.04948067665100098, 0.04967641830444336, 0.05025213956832886]], [[102, 71, 196, 343, 16, 229], [0.0, 0.09819847345352173, 0.09978246688842773, 0.10211288928985596, 0.10580718517303467, 0.10837650299072266]], [[103, 217, 320, 137, 363, 233], [0.0, 0.08282500505447388, 0.0857122540473938, 0.09019076824188232, 0.09669601917266846, 0.09772109985351562]], [[104, 121, 235, 238, 5, 63], [0.0, 0.06613713502883911, 0.07678675651550293, 0.07891273498535156, 0.08393651247024536, 0.08574026823043823]], [[105, 112, 327, 378, 154, 229], [2.384185791015625e-07, 2.384185791015625e-07, 0.05802124738693237, 0.05985313653945923, 0.06026118993759155, 0.06101179122924805]], [[106, 190, 307, 235, 234, 86], [0.0, 0.06245231628417969, 0.06550025939941406, 0.07288551330566406, 0.07616257667541504, 0.07705569267272949]], [[107, 378, 96, 229, 12, 154], [5.960464477539063e-08, 0.043897151947021484, 0.04902195930480957, 0.04976707696914673, 0.051196157932281494, 0.052003324031829834]], [[108, 328, 249, 138, 220, 275], [0.0, 0.06590616703033447, 0.08359116315841675, 0.10840874910354614, 0.10897600650787354, 0.11880385875701904]], [[109, 355, 241, 180, 159, 364], [0.0, 0.11657929420471191, 0.12503910064697266, 0.1260690689086914, 0.1325162649154663, 0.1346331238746643]], [[110, 384, 386, 232, 16, 305], [0.0, 0.07200497388839722, 0.09606689214706421, 0.09742778539657593, 0.09962868690490723, 0.10093814134597778]], [[111, 16, 196, 384, 110, 171], [0.0, 0.11385107040405273, 0.11557066440582275, 0.11656224727630615, 0.12670302391052246, 0.12846243381500244]], [[105, 112, 327, 378, 154, 229], [2.384185791015625e-07, 2.384185791015625e-07, 0.05802124738693237, 0.05985313653945923, 0.06026118993759155, 0.06101179122924805]], [[113, 124, 201, 123, 88, 217], [5.960464477539063e-08, 0.0777277946472168, 0.08865678310394287, 0.10174578428268433, 0.10515928268432617, 0.10644412040710449]], [[114, 289, 198, 213, 252, 143], [1.1920928955078125e-07, 0.050698280334472656, 0.05676358938217163, 0.06200987100601196, 0.06275969743728638, 0.063576340675354]], [[115, 253, 216, 366, 224, 350], [0.0, 0.055370450019836426, 0.060330986976623535, 0.062326788902282715, 0.06277275085449219, 0.06360357999801636]], [[116, 333, 332, 102, 382, 120], [1.1920928955078125e-07, 0.07276517152786255, 0.09047341346740723, 0.11065751314163208, 0.12521463632583618, 0.1300889253616333]], [[117, 237, 313, 247, 46, 164], [1.1920928955078125e-07, 0.03674668073654175, 0.03934609889984131, 0.03998589515686035, 0.04171347618103027, 0.0431370735168457]], [[118, 167, 29, 381, 266, 355], [1.7881393432617188e-07, 0.10203838348388672, 0.10872000455856323, 0.11471152305603027, 0.1239631175994873, 0.1299229860305786]], [[119, 183, 207, 177, 318, 37], [0.0, 0.11215156316757202, 0.13054955005645752, 0.13418471813201904, 0.13678085803985596, 0.15105986595153809]], [[120, 110, 116, 333, 365, 384], [0.0, 0.12943404912948608, 0.1300889253616333, 0.13278615474700928, 0.13954782485961914, 0.14322787523269653]], [[121, 47, 238, 104, 235, 46], [5.960464477539063e-08, 0.06309103965759277, 0.06599342823028564, 0.06613713502883911, 0.0713815689086914, 0.07837450504302979]], [[122, 367, 357, 361, 353, 359], [1.7881393432617188e-07, 0.09586310386657715, 0.10388410091400146, 0.11352717876434326, 0.12096035480499268, 0.12133049964904785]], [[123, 286, 256, 113, 263, 290], [0.0, 0.09271705150604248, 0.09450113773345947, 0.10174578428268433, 0.1035568118095398, 0.10465335845947266]], [[124, 113, 385, 37, 85, 207], [1.1920928955078125e-07, 0.0777277946472168, 0.07818859815597534, 0.07925033569335938, 0.08159124851226807, 0.08329004049301147]], [[125, 78, 340, 273, 35, 280], [1.1920928955078125e-07, 0.08225131034851074, 0.09489220380783081, 0.09756767749786377, 0.09809255599975586, 0.10554414987564087]], [[126, 83, 212, 162, 265, 350], [0.0, 0.10565441846847534, 0.11218750476837158, 0.11417609453201294, 0.11477464437484741, 0.1185951828956604]], [[127, 290, 354, 302, 144, 381], [2.980232238769531e-07, 0.09275192022323608, 0.09446471929550171, 0.0950326919555664, 0.09758371114730835, 0.10467958450317383]], [[128, 374, 231, 186, 20, 304], [0.0, 0.05354666709899902, 0.05509597063064575, 0.056864380836486816, 0.05753493309020996, 0.059204936027526855]], [[129, 174, 305, 100, 11, 386], [0.0, 0.06721508502960205, 0.07833313941955566, 0.08523988723754883, 0.08831846714019775, 0.09280383586883545]], [[130, 157, 288, 172, 351, 303], [1.1920928955078125e-07, 0.052381277084350586, 0.05249941349029541, 0.055913448333740234, 0.05718696117401123, 0.05879563093185425]], [[131, 335, 308, 23, 1, 177], [2.384185791015625e-07, 0.07537662982940674, 0.08919519186019897, 0.10340988636016846, 0.10416316986083984, 0.10516226291656494]], [[188, 132, 282, 246, 372, 176], [3.5762786865234375e-07, 3.5762786865234375e-07, 0.03381061553955078, 0.03964346647262573, 0.04205894470214844, 0.042507946491241455]], [[133, 284, 285, 95, 213, 146], [2.980232238769531e-07, 0.05062246322631836, 0.051327526569366455, 0.05221682786941528, 0.05582070350646973, 0.05612307786941528]], [[134, 132, 188, 246, 282, 342], [0.0, 0.05285942554473877, 0.05285942554473877, 0.058534443378448486, 0.060078978538513184, 0.061326026916503906]], [[135, 349, 326, 251, 341, 170], [5.960464477539063e-08, 0.0872570276260376, 0.09068471193313599, 0.09406256675720215, 0.09529423713684082, 0.09625828266143799]], [[136, 372, 313, 46, 188, 132], [0.0, 0.04761546850204468, 0.051690757274627686, 0.05169868469238281, 0.05170726776123047, 0.05170726776123047]], [[137, 329, 315, 217, 215, 39], [0.0, 0.03967493772506714, 0.05989658832550049, 0.06065559387207031, 0.061300039291381836, 0.06167083978652954]], [[138, 236, 108, 249, 176, 255], [0.0, 0.10527598857879639, 0.10840874910354614, 0.11044037342071533, 0.11077278852462769, 0.11326533555984497]], [[139, 168, 155, 231, 166, 13], [0.0, 0.03546905517578125, 0.03861701488494873, 0.04148101806640625, 0.04350167512893677, 0.04357856512069702]], [[140, 351, 175, 69, 206, 63], [5.960464477539063e-08, 0.038742244243621826, 0.03926432132720947, 0.041211724281311035, 0.04249817132949829, 0.04478907585144043]], [[141, 254, 181, 329, 87, 262], [0.0, 0.09456205368041992, 0.10321056842803955, 0.11289513111114502, 0.11427438259124756, 0.11794519424438477]], [[142, 99, 292, 386, 384, 4], [1.7881393432617188e-07, 0.04474687576293945, 0.06172895431518555, 0.0668976902961731, 0.07155561447143555, 0.08189666271209717]], [[143, 18, 114, 219, 133, 95], [0.0, 0.06015002727508545, 0.063576340675354, 0.06993556022644043, 0.07025337219238281, 0.07231974601745605]], [[144, 56, 150, 127, 266, 302], [5.960464477539063e-08, 0.09138768911361694, 0.09296572208404541, 0.09758371114730835, 0.1053779125213623, 0.10982018709182739]], [[145, 333, 222, 332, 335, 22], [0.0, 0.1586158275604248, 0.1672675609588623, 0.1762371063232422, 0.17648464441299438, 0.17766046524047852]], [[146, 253, 224, 213, 95, 321], [0.0, 0.039893269538879395, 0.041908979415893555, 0.04300886392593384, 0.04475212097167969, 0.04629397392272949]], [[147, 91, 46, 247, 140, 283], [1.7881393432617188e-07, 0.05453014373779297, 0.05913197994232178, 0.05989283323287964, 0.061430394649505615, 0.06162184476852417]], [[148, 4, 142, 161, 171, 232], [0.0, 0.12091636657714844, 0.12572097778320312, 0.12703359127044678, 0.13017600774765015, 0.13085651397705078]], [[149, 89, 84, 51, 168, 270], [1.7881393432617188e-07, 0.04874807596206665, 0.09636402130126953, 0.09851789474487305, 0.09899759292602539, 0.09978771209716797]], [[150, 263, 385, 170, 80, 250], [0.0, 0.06800848245620728, 0.07880616188049316, 0.08270537853240967, 0.0842665433883667, 0.08466446399688721]], [[151, 236, 176, 313, 163, 247], [0.0, 0.027031242847442627, 0.03211629390716553, 0.0324057936668396, 0.03695887327194214, 0.037789881229400635]], [[152, 315, 215, 264, 248, 297], [0.0, 0.03177213668823242, 0.035214245319366455, 0.04025083780288696, 0.041791558265686035, 0.0418393611907959]], [[153, 214, 354, 320, 276, 187], [0.0, 0.0711216926574707, 0.08582174777984619, 0.09790593385696411, 0.10246086120605469, 0.10278666019439697]], [[154, 378, 229, 171, 261, 96], [0.0, 0.0352669358253479, 0.03776901960372925, 0.04543197154998779, 0.045757174491882324, 0.04837346076965332]], [[155, 139, 166, 13, 168, 231], [0.0, 0.03861701488494873, 0.04088938236236572, 0.04320460557937622, 0.044882118701934814, 0.0454789400100708]], [[156, 326, 208, 5, 388, 28], [1.1920928955078125e-07, 0.09791409969329834, 0.09890776872634888, 0.10843789577484131, 0.10897552967071533, 0.11238610744476318]], [[157, 351, 234, 237, 283, 117], [0.0, 0.037863969802856445, 0.04127538204193115, 0.0439186692237854, 0.04423302412033081, 0.04579967260360718]], [[158, 152, 205, 315, 387, 346], [0.0, 0.06236445903778076, 0.06301093101501465, 0.07053852081298828, 0.07330489158630371, 0.07330489158630371]], [[159, 241, 180, 125, 109, 64], [0.0, 0.10740554332733154, 0.12016165256500244, 0.12514865398406982, 0.1325162649154663, 0.13385224342346191]], [[160, 205, 97, 170, 158, 260], [0.0, 0.07577264308929443, 0.0766134262084961, 0.08114367723464966, 0.0825076699256897, 0.09719175100326538]], [[161, 148, 142, 99, 100, 341], [0.0, 0.12703359127044678, 0.13155686855316162, 0.14235204458236694, 0.1438489556312561, 0.14404624700546265]], [[162, 115, 270, 356, 79, 344], [5.960464477539063e-08, 0.07994192838668823, 0.08232247829437256, 0.08413445949554443, 0.09695416688919067, 0.09810996055603027]], [[163, 151, 46, 202, 176, 164], [0.0, 0.03695887327194214, 0.038690388202667236, 0.03973519802093506, 0.040413856506347656, 0.044187188148498535]], [[164, 46, 247, 176, 313, 151], [0.0, 0.030757546424865723, 0.03191095590591431, 0.037723660469055176, 0.03801286220550537, 0.040484607219696045]], [[165, 313, 202, 321, 46, 253], [0.0, 0.040986478328704834, 0.04548847675323486, 0.04929262399673462, 0.050762712955474854, 0.053789496421813965]], [[166, 168, 155, 139, 84, 231], [1.1920928955078125e-07, 0.037104904651641846, 0.04088938236236572, 0.04350167512893677, 0.045029282569885254, 0.04504692554473877]], [[167, 266, 56, 118, 302, 381], [0.0, 0.10016560554504395, 0.10033959150314331, 0.10203838348388672, 0.11453378200531006, 0.12158674001693726]], [[168, 139, 166, 311, 231, 84], [0.0, 0.03546905517578125, 0.037104904651641846, 0.04137420654296875, 0.042484819889068604, 0.04298079013824463]], [[169, 2, 369, 82, 13, 281], [5.960464477539063e-08, 0.14825159311294556, 0.16334044933319092, 0.16586869955062866, 0.16706585884094238, 0.16994917392730713]], [[170, 152, 264, 215, 315, 248], [2.384185791015625e-07, 0.04558873176574707, 0.04932451248168945, 0.05118155479431152, 0.05197376012802124, 0.05300372838973999]], [[171, 154, 16, 378, 71, 229], [0.0, 0.04543197154998779, 0.05150872468948364, 0.053610920906066895, 0.05579036474227905, 0.056551456451416016]], [[172, 185, 190, 303, 363, 351], [0.0, 0.02820265293121338, 0.041084229946136475, 0.04118317365646362, 0.04431450366973877, 0.04499173164367676]], [[173, 152, 315, 215, 264, 39], [0.0, 0.05225187540054321, 0.05319458246231079, 0.0546075701713562, 0.05595582723617554, 0.06201666593551636]], [[174, 129, 11, 56, 124, 250], [5.960464477539063e-08, 0.06721508502960205, 0.11344987154006958, 0.11787307262420654, 0.12291491031646729, 0.12521004676818848]], [[175, 140, 260, 206, 303, 351], [0.0, 0.03926432132720947, 0.043672263622283936, 0.045515596866607666, 0.05085843801498413, 0.05103576183319092]], [[176, 321, 151, 8, 164, 313], [5.960464477539063e-08, 0.03206610679626465, 0.03211629390716553, 0.03362011909484863, 0.037723660469055176, 0.038135647773742676]], [[177, 318, 335, 131, 183, 200], [1.1920928955078125e-07, 0.07769155502319336, 0.08400803804397583, 0.10516226291656494, 0.10611903667449951, 0.10703790187835693]], [[178, 348, 10, 67, 60, 55], [0.0, 0.045823872089385986, 0.047936201095581055, 0.049785733222961426, 0.05019253492355347, 0.05748450756072998]], [[179, 324, 40, 336, 234, 69], [0.0, 0.12637484073638916, 0.1275320053100586, 0.12896084785461426, 0.13002431392669678, 0.13068783283233643]], [[180, 364, 191, 159, 109, 294], [0.0, 0.09463024139404297, 0.11927121877670288, 0.12016165256500244, 0.1260690689086914, 0.13898307085037231]], [[181, 340, 21, 262, 254, 141], [1.7881393432617188e-07, 0.08142566680908203, 0.09325623512268066, 0.09351694583892822, 0.09795248508453369, 0.10321056842803955]], [[182, 215, 39, 264, 315, 303], [0.0, 0.044873058795928955, 0.05113095045089722, 0.05302906036376953, 0.0557781457901001, 0.055938005447387695]], [[183, 318, 177, 37, 90, 119], [0.0, 0.09742510318756104, 0.10611903667449951, 0.10896170139312744, 0.11013084650039673, 0.11215156316757202]], [[184, 354, 153, 334, 201, 276], [0.0, 0.12017548084259033, 0.12688851356506348, 0.1272869110107422, 0.13057005405426025, 0.13365823030471802]], [[185, 172, 190, 303, 351, 206], [0.0, 0.02820265293121338, 0.04222702980041504, 0.04655247926712036, 0.048988282680511475, 0.05116105079650879]], [[186, 198, 13, 304, 270, 289], [0.0, 0.044846296310424805, 0.04499310255050659, 0.04679000377655029, 0.047149658203125, 0.04737955331802368]], [[187, 316, 153, 354, 310, 74], [1.1920928955078125e-07, 0.09895980358123779, 0.10278666019439697, 0.12309175729751587, 0.12310522794723511, 0.13652777671813965]], [[188, 132, 282, 246, 372, 176], [3.5762786865234375e-07, 3.5762786865234375e-07, 0.03381061553955078, 0.03964346647262573, 0.04205894470214844, 0.042507946491241455]], [[189, 74, 286, 324, 265, 117], [0.0, 0.06960052251815796, 0.08125758171081543, 0.08426856994628906, 0.08709573745727539, 0.08909231424331665]], [[190, 172, 185, 238, 234, 117], [0.0, 0.041084229946136475, 0.04222702980041504, 0.04545170068740845, 0.04728883504867554, 0.052237510681152344]], [[191, 367, 353, 383, 313, 75], [0.0, 0.06222623586654663, 0.0990610122680664, 0.10220921039581299, 0.10430020093917847, 0.10488665103912354]], [[192, 267, 269, 276, 288, 14], [5.960464477539063e-08, 0.06630659103393555, 0.0887455940246582, 0.09064161777496338, 0.09125697612762451, 0.09395545721054077]], [[193, 225, 313, 247, 283, 164], [1.7881393432617188e-07, 0.03489327430725098, 0.038313984870910645, 0.038887202739715576, 0.039339661598205566, 0.04055428504943848]], [[194, 258, 29, 125, 273, 355], [0.0, 0.08551156520843506, 0.10150337219238281, 0.12372344732284546, 0.13050705194473267, 0.13089263439178467]], [[195, 212, 68, 328, 256, 115], [0.0, 0.1354144811630249, 0.1399354338645935, 0.15249371528625488, 0.1573815941810608, 0.15895235538482666]], [[196, 229, 71, 261, 378, 96], [0.0, 0.040293097496032715, 0.0447850227355957, 0.04824566841125488, 0.048985421657562256, 0.05021512508392334]], [[197, 280, 255, 35, 340, 78], [5.960464477539063e-08, 0.09247159957885742, 0.09326112270355225, 0.09396719932556152, 0.1096886396408081, 0.1113814115524292]], [[198, 186, 13, 289, 95, 304], [5.960464477539063e-08, 0.044846296310424805, 0.0480571985244751, 0.04828965663909912, 0.05143260955810547, 0.052844464778900146]], [[199, 295, 88, 46, 93, 235], [0.0, 0.06588059663772583, 0.07073652744293213, 0.07666236162185669, 0.07741540670394897, 0.08306300640106201]], [[200, 276, 266, 267, 90, 308], [1.1920928955078125e-07, 0.08952897787094116, 0.09026122093200684, 0.09285891056060791, 0.09985148906707764, 0.10495865345001221]], [[201, 203, 295, 276, 130, 331], [0.0, 0.04549610614776611, 0.0586322546005249, 0.06823927164077759, 0.07002449035644531, 0.07159221172332764]], [[202, 377, 163, 313, 151, 46], [0.0, 0.034522414207458496, 0.03973519802093506, 0.03975391387939453, 0.041041791439056396, 0.04146873950958252]], [[203, 201, 320, 295, 217, 38], [0.0, 0.04549610614776611, 0.06591594219207764, 0.06635880470275879, 0.07521557807922363, 0.07876408100128174]], [[204, 303, 39, 363, 182, 288], [0.0, 0.05752992630004883, 0.0648108720779419, 0.06578505039215088, 0.06773388385772705, 0.06806808710098267]], [[205, 158, 97, 160, 170, 19], [0.0, 0.06301093101501465, 0.06477290391921997, 0.07577264308929443, 0.07917684316635132, 0.08983564376831055]], [[206, 140, 175, 172, 351, 185], [1.1920928955078125e-07, 0.04249817132949829, 0.045515596866607666, 0.04913550615310669, 0.05045241117477417, 0.05116105079650879]], [[207, 90, 276, 354, 124, 80], [0.0, 0.061542391777038574, 0.06277155876159668, 0.08175718784332275, 0.08329004049301147, 0.0853080153465271]], [[208, 382, 156, 24, 41, 87], [0.0, 0.09446132183074951, 0.09890776872634888, 0.10452008247375488, 0.11442548036575317, 0.11987102031707764]], [[209, 257, 341, 388, 248, 36], [0.0, 0.04481673240661621, 0.052691102027893066, 0.0558357834815979, 0.05723994970321655, 0.06366699934005737]], [[210, 168, 72, 76, 311, 2], [0.0, 0.043467044830322266, 0.04411518573760986, 0.04660993814468384, 0.04725754261016846, 0.049562931060791016]], [[211, 224, 366, 95, 299, 253], [1.1920928955078125e-07, 0.03252840042114258, 0.04077184200286865, 0.04481750726699829, 0.04558032751083374, 0.04579252004623413]], [[212, 296, 256, 68, 115, 324], [1.1920928955078125e-07, 0.054102301597595215, 0.06585943698883057, 0.07987916469573975, 0.08727675676345825, 0.093014657497406]], [[213, 253, 299, 379, 95, 224], [5.960464477539063e-08, 0.030906081199645996, 0.03753340244293213, 0.03827625513076782, 0.041637539863586426, 0.04195582866668701]], [[214, 153, 157, 237, 130, 75], [0.0, 0.0711216926574707, 0.0840272307395935, 0.08504241704940796, 0.08600491285324097, 0.08705717325210571]], [[215, 315, 297, 264, 152, 248], [1.1920928955078125e-07, 0.03144371509552002, 0.03445601463317871, 0.034531354904174805, 0.035214245319366455, 0.036588191986083984]], [[216, 350, 253, 136, 299, 115], [0.0, 0.05223274230957031, 0.0527644157409668, 0.055375516414642334, 0.056859731674194336, 0.060330986976623535]], [[217, 137, 320, 351, 363, 303], [0.0, 0.06065559387207031, 0.06691849231719971, 0.06917881965637207, 0.06983077526092529, 0.07056742906570435]], [[218, 62, 310, 322, 262, 181], [1.1920928955078125e-07, 0.21044594049453735, 0.22777140140533447, 0.23025846481323242, 0.2338012456893921, 0.23700296878814697]], [[219, 299, 213, 224, 321, 253], [1.1920928955078125e-07, 0.042787373065948486, 0.04551136493682861, 0.050069570541381836, 0.050669968128204346, 0.05123239755630493]], [[220, 275, 299, 213, 188, 132], [0.0, 0.06486648321151733, 0.08075761795043945, 0.08616268634796143, 0.0863046646118164, 0.0863046646118164]], [[221, 299, 219, 323, 213, 246], [1.1920928955078125e-07, 0.042986929416656494, 0.055373966693878174, 0.05539369583129883, 0.05661743879318237, 0.05843895673751831]], [[222, 306, 50, 226, 332, 305], [1.1920928955078125e-07, 0.081417977809906, 0.09294962882995605, 0.10582900047302246, 0.10664987564086914, 0.10735034942626953]], [[223, 202, 253, 46, 321, 165], [5.960464477539063e-08, 0.10697489976882935, 0.10969197750091553, 0.11341613531112671, 0.11358588933944702, 0.11368012428283691]], [[224, 211, 95, 253, 321, 366], [0.0, 0.03252840042114258, 0.03451073169708252, 0.0354006290435791, 0.03650498390197754, 0.03657233715057373]], [[225, 193, 313, 46, 164, 247], [0.0, 0.03489327430725098, 0.03862518072128296, 0.04578787088394165, 0.0464855432510376, 0.04913681745529175]], [[226, 305, 388, 57, 17, 100], [1.1920928955078125e-07, 0.0770488977432251, 0.07988893985748291, 0.08052527904510498, 0.08152008056640625, 0.08529442548751831]], [[227, 123, 263, 59, 27, 97], [5.960464477539063e-08, 0.1452654004096985, 0.15197491645812988, 0.15301060676574707, 0.15525811910629272, 0.1553562879562378]], [[228, 128, 259, 370, 374, 186], [5.960464477539063e-08, 0.06796705722808838, 0.07095599174499512, 0.07302343845367432, 0.0776023268699646, 0.07835996150970459]], [[229, 378, 45, 71, 96, 12], [1.1920928955078125e-07, 0.027566850185394287, 0.02926015853881836, 0.030160605907440186, 0.035408854484558105, 0.03667175769805908]], [[230, 351, 336, 303, 69, 331], [0.0, 0.05624890327453613, 0.0582427978515625, 0.05877023935317993, 0.060225069522857666, 0.06074255704879761]], [[231, 13, 281, 139, 168, 82], [0.0, 0.037699997425079346, 0.03872549533843994, 0.04148101806640625, 0.042484819889068604, 0.04366481304168701]], [[232, 386, 305, 384, 292, 4], [5.960464477539063e-08, 0.06365704536437988, 0.06490051746368408, 0.06970226764678955, 0.07316362857818604, 0.08598101139068604]], [[233, 339, 303, 268, 39, 86], [0.0, 0.04054689407348633, 0.05130600929260254, 0.05691629648208618, 0.060648202896118164, 0.06563824415206909]], [[234, 157, 351, 190, 117, 307], [0.0, 0.04127538204193115, 0.045442938804626465, 0.04728883504867554, 0.047707974910736084, 0.0501326322555542]], [[235, 117, 307, 47, 46, 237], [0.0, 0.048740386962890625, 0.049649059772491455, 0.04969966411590576, 0.05088818073272705, 0.05182367563247681]], [[236, 151, 313, 176, 321, 163], [1.7881393432617188e-07, 0.027031242847442627, 0.036487877368927, 0.042211294174194336, 0.044904351234436035, 0.04566991329193115]], [[237, 117, 157, 313, 46, 247], [0.0, 0.03674668073654175, 0.0439186692237854, 0.04923820495605469, 0.04925954341888428, 0.050660014152526855]], [[238, 190, 283, 247, 117, 46], [2.384185791015625e-07, 0.04545170068740845, 0.048127174377441406, 0.05011308193206787, 0.05219733715057373, 0.05455470085144043]], [[239, 352, 10, 178, 348, 55], [1.1920928955078125e-07, 0.07018280029296875, 0.07621383666992188, 0.08183848857879639, 0.08508491516113281, 0.09700721502304077]], [[240, 250, 341, 17, 36, 209], [3.5762786865234375e-07, 0.08225679397583008, 0.09454113245010376, 0.10358309745788574, 0.10411477088928223, 0.10527968406677246]], [[241, 98, 159, 64, 109, 125], [0.0, 0.10403168201446533, 0.10740554332733154, 0.12294292449951172, 0.12503910064697266, 0.16849833726882935]], [[242, 287, 3, 32, 2, 33], [0.0, 0.04150635004043579, 0.0548740029335022, 0.06534552574157715, 0.06878328323364258, 0.0736684799194336]], [[243, 293, 300, 330, 217, 371], [5.960464477539063e-08, 0.06615966558456421, 0.0826120376586914, 0.08586001396179199, 0.1071932315826416, 0.10994827747344971]], [[244, 269, 190, 172, 288, 86], [0.0, 0.087715744972229, 0.08964782953262329, 0.089851975440979, 0.09056812524795532, 0.09312558174133301]], [[245, 17, 209, 308, 341, 388], [0.0, 0.09572231769561768, 0.09672737121582031, 0.10142326354980469, 0.10246080160140991, 0.1030501127243042]], [[246, 188, 132, 224, 321, 372], [2.384185791015625e-07, 0.03964346647262573, 0.03964346647262573, 0.043895840644836426, 0.04490387439727783, 0.04494786262512207]], [[247, 164, 313, 46, 151, 283], [1.1920928955078125e-07, 0.03191101551055908, 0.036084651947021484, 0.03646284341812134, 0.037789881229400635, 0.03851914405822754]], [[248, 264, 215, 388, 297, 315], [0.0, 0.03045344352722168, 0.036588191986083984, 0.037600159645080566, 0.03769958019256592, 0.04073596000671387]], [[249, 328, 361, 108, 284, 323], [0.0, 0.0680626630783081, 0.08284461498260498, 0.08359116315841675, 0.0961313247680664, 0.09724795818328857]], [[250, 341, 209, 251, 248, 388], [1.7881393432617188e-07, 0.055074095726013184, 0.07054895162582397, 0.07269281148910522, 0.07282203435897827, 0.07555252313613892]], [[251, 341, 388, 257, 209, 17], [0.0, 0.057681381702423096, 0.06265377998352051, 0.06784355640411377, 0.06860435009002686, 0.06961339712142944]], [[252, 186, 231, 304, 13, 289], [0.0, 0.05910623073577881, 0.059171199798583984, 0.05929088592529297, 0.05941861867904663, 0.059744834899902344]], [[253, 213, 224, 321, 299, 146], [0.0, 0.030906081199645996, 0.0354006290435791, 0.03874349594116211, 0.039844810962677, 0.039893269538879395]], [[254, 87, 137, 329, 39, 217], [0.0, 0.057404398918151855, 0.06811177730560303, 0.08019626140594482, 0.08181190490722656, 0.08715856075286865]], [[255, 247, 31, 283, 236, 197], [1.1920928955078125e-07, 0.08484518527984619, 0.08772879838943481, 0.0910344123840332, 0.09178638458251953, 0.09326112270355225]], [[256, 212, 88, 68, 199, 286], [1.1920928955078125e-07, 0.06585943698883057, 0.08477741479873657, 0.09101331233978271, 0.09127217531204224, 0.0913705825805664]], [[257, 209, 248, 341, 388, 264], [0.0, 0.04481673240661621, 0.05372977256774902, 0.05492275953292847, 0.05695760250091553, 0.06178706884384155]], [[258, 194, 78, 29, 273, 382], [2.384185791015625e-07, 0.08551156520843506, 0.0959402322769165, 0.09951764345169067, 0.10328960418701172, 0.11100852489471436]], [[259, 34, 128, 228, 374, 198], [2.384185791015625e-07, 0.05369997024536133, 0.06417191028594971, 0.07095599174499512, 0.07719868421554565, 0.07916557788848877]], [[260, 175, 303, 288, 331, 363], [0.0, 0.043672263622283936, 0.04999136924743652, 0.05283915996551514, 0.0539584755897522, 0.05498528480529785]], [[261, 229, 96, 154, 71, 196], [2.384185791015625e-07, 0.04008185863494873, 0.04035520553588867, 0.045757174491882324, 0.045952022075653076, 0.04824566841125488]], [[262, 380, 181, 215, 388, 264], [0.0, 0.06650638580322266, 0.09351694583892822, 0.0969964861869812, 0.09846818447113037, 0.09926259517669678]], [[263, 150, 97, 371, 319, 205], [0.0, 0.06800848245620728, 0.08075070381164551, 0.08405357599258423, 0.08942008018493652, 0.09152472019195557]], [[264, 248, 215, 315, 297, 388], [5.960464477539063e-08, 0.03045344352722168, 0.034531354904174805, 0.0374680757522583, 0.03838038444519043, 0.03965330123901367]], [[265, 216, 136, 83, 189, 115], [0.0, 0.0791158676147461, 0.08031988143920898, 0.08484184741973877, 0.08709573745727539, 0.0943061113357544]], [[266, 56, 267, 248, 215, 200], [0.0, 0.0745808482170105, 0.07996994256973267, 0.08767545223236084, 0.08880102634429932, 0.09026122093200684]], [[267, 192, 276, 266, 90, 269], [1.7881393432617188e-07, 0.06630659103393555, 0.07420194149017334, 0.07996994256973267, 0.08030372858047485, 0.082244873046875]], [[268, 152, 233, 39, 339, 303], [0.0, 0.05531883239746094, 0.05691629648208618, 0.05727463960647583, 0.06058347225189209, 0.06145739555358887]], [[269, 288, 312, 86, 303, 130], [0.0, 0.05372023582458496, 0.05730891227722168, 0.06163662672042847, 0.06565994024276733, 0.0677182674407959]], [[270, 186, 289, 20, 360, 304], [1.7881393432617188e-07, 0.047149658203125, 0.05168914794921875, 0.05243945121765137, 0.06000322103500366, 0.06070125102996826]], [[271, 59, 263, 286, 123, 230], [0.0, 0.07521593570709229, 0.12492185831069946, 0.13138270378112793, 0.1408390998840332, 0.14951682090759277]], [[272, 202, 377, 165, 146, 313], [0.0, 0.05979001522064209, 0.06650447845458984, 0.07192915678024292, 0.07383853197097778, 0.08441793918609619]], [[273, 125, 78, 23, 41, 258], [2.384185791015625e-07, 0.09756767749786377, 0.10178303718566895, 0.1018635630607605, 0.10327845811843872, 0.10328960418701172]], [[274, 237, 117, 202, 235, 190], [0.0, 0.05543482303619385, 0.0557628870010376, 0.06523430347442627, 0.06983757019042969, 0.07042336463928223]], [[275, 132, 188, 282, 372, 176], [0.0, 0.053835272789001465, 0.053835272789001465, 0.05692321062088013, 0.06260430812835693, 0.06409168243408203]], [[276, 354, 38, 207, 130, 320], [0.0, 0.05522477626800537, 0.06224709749221802, 0.06277155876159668, 0.06394577026367188, 0.06529438495635986]], [[277, 381, 127, 177, 118, 167], [0.0, 0.1591728925704956, 0.19076621532440186, 0.19699203968048096, 0.19869089126586914, 0.21264678239822388]], [[278, 91, 313, 176, 193, 225], [0.0, 0.0635988712310791, 0.0677107572555542, 0.06895166635513306, 0.07034182548522949, 0.07039022445678711]], [[279, 238, 307, 64, 5, 190], [0.0, 0.09339433908462524, 0.098471999168396, 0.10077059268951416, 0.10425817966461182, 0.10922586917877197]], [[280, 351, 303, 283, 358, 197], [5.960464477539063e-08, 0.0880466103553772, 0.08958911895751953, 0.0904076099395752, 0.0909963846206665, 0.09247159957885742]], [[281, 13, 231, 82, 304, 20], [1.1920928955078125e-07, 0.035893142223358154, 0.03872549533843994, 0.0423809289932251, 0.044074833393096924, 0.04457515478134155]], [[282, 188, 132, 342, 164, 46], [0.0, 0.03381061553955078, 0.03381061553955078, 0.04350912570953369, 0.04944014549255371, 0.05007064342498779]], [[283, 247, 193, 351, 157, 117], [0.0, 0.03851914405822754, 0.039339661598205566, 0.04178851842880249, 0.04423302412033081, 0.04747408628463745]], [[284, 146, 253, 133, 213, 379], [0.0, 0.04868978261947632, 0.04876363277435303, 0.05062246322631836, 0.051867783069610596, 0.052555620670318604]], [[285, 95, 224, 213, 211, 366], [1.1920928955078125e-07, 0.03666502237319946, 0.04348456859588623, 0.04803037643432617, 0.048557400703430176, 0.048645734786987305]], [[286, 189, 256, 123, 265, 290], [0.0, 0.08125758171081543, 0.0913705825805664, 0.09271705150604248, 0.10418927669525146, 0.10796999931335449]], [[287, 3, 242, 33, 55, 10], [5.960464477539063e-08, 0.04105997085571289, 0.04150635004043579, 0.06372332572937012, 0.06944763660430908, 0.07096236944198608]], [[288, 303, 331, 363, 351, 373], [0.0, 0.04160332679748535, 0.04203832149505615, 0.044401586055755615, 0.04695868492126465, 0.04745805263519287]], [[289, 304, 347, 213, 379, 186], [0.0, 0.03910118341445923, 0.041539788246154785, 0.04505115747451782, 0.04618537425994873, 0.04737955331802368]], [[290, 127, 130, 244, 175, 256], [0.0, 0.09275192022323608, 0.09686529636383057, 0.0981932282447815, 0.09869617223739624, 0.10425323247909546]], [[291, 121, 104, 27, 235, 88], [0.0, 0.10475432872772217, 0.1054224967956543, 0.11909270286560059, 0.12896931171417236, 0.13102245330810547]], [[292, 386, 384, 99, 142, 305], [0.0, 0.042023658752441406, 0.05793106555938721, 0.05966871976852417, 0.06172895431518555, 0.06439316272735596]], [[293, 330, 243, 91, 278, 164], [2.384185791015625e-07, 0.057213544845581055, 0.06615966558456421, 0.0834115743637085, 0.08465111255645752, 0.08929014205932617]], [[294, 180, 364, 367, 191, 53], [1.7881393432617188e-07, 0.13898307085037231, 0.17861628532409668, 0.17916858196258545, 0.18024379014968872, 0.21236133575439453]], [[295, 201, 88, 199, 203, 63], [0.0, 0.0586322546005249, 0.05963146686553955, 0.06588059663772583, 0.06635880470275879, 0.07643353939056396]], [[296, 212, 256, 115, 216, 328], [0.0, 0.054102301597595215, 0.09216362237930298, 0.09972792863845825, 0.0998152494430542, 0.10177075862884521]], [[297, 215, 315, 248, 264, 152], [0.0, 0.03445601463317871, 0.03624904155731201, 0.03769958019256592, 0.03838038444519043, 0.0418393611907959]], [[298, 91, 46, 317, 165, 202], [1.1920928955078125e-07, 0.06858813762664795, 0.06986820697784424, 0.06991815567016602, 0.07157760858535767, 0.07216203212738037]], [[299, 213, 253, 224, 219, 221], [0.0, 0.03753340244293213, 0.039844810962677, 0.04193270206451416, 0.042787373065948486, 0.042986929416656494]], [[300, 243, 319, 217, 268, 97], [5.960464477539063e-08, 0.0826120376586914, 0.10118997097015381, 0.10354286432266235, 0.10860276222229004, 0.1131487488746643]], [[301, 47, 372, 313, 188, 132], [0.0, 0.06917333602905273, 0.069283127784729, 0.07534009218215942, 0.07737171649932861, 0.07737171649932861]], [[302, 127, 266, 144, 56, 209], [0.0, 0.0950326919555664, 0.09872925281524658, 0.10982018709182739, 0.11005795001983643, 0.11384689807891846]], [[303, 351, 172, 288, 339, 39], [0.0, 0.03783857822418213, 0.04118317365646362, 0.04160332679748535, 0.042714476585388184, 0.04280740022659302]], [[304, 289, 379, 281, 13, 186], [0.0, 0.03910118341445923, 0.04258298873901367, 0.044074833393096924, 0.04461604356765747, 0.04679000377655029]], [[305, 100, 386, 17, 99, 292], [0.0, 0.04650908708572388, 0.04854476451873779, 0.04877501726150513, 0.06204444169998169, 0.06439316272735596]], [[306, 222, 50, 154, 171, 384], [0.0, 0.081417977809906, 0.09683197736740112, 0.10035860538482666, 0.10071921348571777, 0.10157209634780884]], [[307, 235, 234, 117, 190, 237], [0.0, 0.049649059772491455, 0.0501326322555542, 0.05283832550048828, 0.0531730055809021, 0.05398571491241455]], [[308, 335, 264, 90, 388, 215], [0.0, 0.06522762775421143, 0.08123135566711426, 0.08319449424743652, 0.0839340090751648, 0.08515548706054688]], [[309, 76, 375, 210, 32, 52], [0.0, 0.048916518688201904, 0.05542290210723877, 0.0577014684677124, 0.06201910972595215, 0.06447947025299072]], [[310, 150, 62, 144, 37, 187], [1.1920928955078125e-07, 0.09853595495223999, 0.1019512414932251, 0.11184245347976685, 0.12122154235839844, 0.12310522794723511]], [[311, 168, 210, 82, 139, 166], [2.384185791015625e-07, 0.04137420654296875, 0.04725754261016846, 0.04775416851043701, 0.04891955852508545, 0.04995232820510864]], [[312, 269, 233, 39, 70, 130], [2.384185791015625e-07, 0.05730891227722168, 0.06580018997192383, 0.06815570592880249, 0.07101285457611084, 0.07387733459472656]], [[313, 151, 46, 247, 236, 164], [1.1920928955078125e-07, 0.0324057936668396, 0.032804667949676514, 0.036084651947021484, 0.036487877368927, 0.03801286220550537]], [[314, 7, 66, 45, 92, 12], [0.0, 0.08248728513717651, 0.09026765823364258, 0.09096992015838623, 0.09211653470993042, 0.09220266342163086]], [[315, 215, 152, 297, 264, 248], [0.0, 0.03144371509552002, 0.03177213668823242, 0.03624904155731201, 0.0374680757522583, 0.04073596000671387]], [[316, 187, 21, 62, 364, 310], [0.0, 0.09895980358123779, 0.13923871517181396, 0.15209215879440308, 0.15368974208831787, 0.15771400928497314]], [[317, 163, 176, 321, 202, 246], [0.0, 0.044974327087402344, 0.05607086420059204, 0.05673724412918091, 0.056943535804748535, 0.05719214677810669]], [[318, 177, 183, 335, 200, 131], [0.0, 0.07769155502319336, 0.09742510318756104, 0.10032248497009277, 0.10812985897064209, 0.11335617303848267]], [[319, 336, 331, 19, 303, 230], [2.980232238769531e-07, 0.06446951627731323, 0.06622767448425293, 0.07193160057067871, 0.07529675960540771, 0.07670629024505615]], [[320, 276, 203, 217, 303, 351], [0.0, 0.06529438495635986, 0.06591594219207764, 0.06691849231719971, 0.06704151630401611, 0.06942254304885864]], [[321, 176, 224, 372, 8, 253], [0.0, 0.03206610679626465, 0.03650498390197754, 0.03693962097167969, 0.038350820541381836, 0.03874349594116211]], [[322, 331, 315, 373, 346, 387], [2.384185791015625e-07, 0.07767236232757568, 0.07784914970397949, 0.07870745658874512, 0.07933491468429565, 0.07933491468429565]], [[323, 379, 299, 213, 347, 304], [0.0, 0.04601097106933594, 0.04676765203475952, 0.04953145980834961, 0.050191521644592285, 0.05185931921005249]], [[324, 164, 176, 163, 46, 345], [5.960464477539063e-08, 0.06198537349700928, 0.06390035152435303, 0.06644272804260254, 0.0677499771118164, 0.07166612148284912]], [[325, 42, 334, 123, 184, 227], [2.384185791015625e-07, 0.1901332139968872, 0.19377505779266357, 0.2292109727859497, 0.23054975271224976, 0.2381860613822937]], [[326, 388, 341, 264, 248, 17], [2.384185791015625e-07, 0.05044037103652954, 0.05334681272506714, 0.06420791149139404, 0.06461226940155029, 0.06480830907821655]], [[327, 105, 112, 378, 229, 45], [1.1920928955078125e-07, 0.05802124738693237, 0.05802124738693237, 0.06874489784240723, 0.07055974006652832, 0.07171428203582764]], [[328, 108, 249, 299, 219, 213], [0.0, 0.06590616703033447, 0.0680626630783081, 0.09312856197357178, 0.09489619731903076, 0.09814012050628662]], [[329, 137, 315, 215, 248, 264], [0.0, 0.03967493772506714, 0.05463773012161255, 0.05477309226989746, 0.05577051639556885, 0.05688828229904175]], [[330, 293, 217, 147, 243, 320], [0.0, 0.057213544845581055, 0.07589870691299438, 0.08149898052215576, 0.08586001396179199, 0.09196585416793823]], [[331, 373, 288, 303, 363, 339], [0.0, 0.03210270404815674, 0.04203832149505615, 0.04452788829803467, 0.0456920862197876, 0.048503756523132324]], [[332, 22, 116, 382, 222, 384], [5.960464477539063e-08, 0.06975585222244263, 0.09047341346740723, 0.1030498743057251, 0.10664987564086914, 0.11271607875823975]], [[333, 116, 365, 332, 120, 102], [0.0, 0.07276517152786255, 0.10660481452941895, 0.1320357322692871, 0.13278615474700928, 0.1329137086868286]], [[334, 184, 127, 144, 123, 310], [0.0, 0.1272869110107422, 0.14212852716445923, 0.14426326751708984, 0.1913425326347351, 0.1933962106704712]], [[335, 308, 131, 177, 1, 90], [0.0, 0.06522762775421143, 0.07537657022476196, 0.08400803804397583, 0.0942697525024414, 0.09663796424865723]], [[336, 69, 77, 351, 230, 63], [1.1920928955078125e-07, 0.05019855499267578, 0.05293452739715576, 0.054332852363586426, 0.0582427978515625, 0.05951261520385742]], [[337, 168, 52, 166, 76, 210], [2.384185791015625e-07, 0.055319905281066895, 0.057126522064208984, 0.05814945697784424, 0.05853843688964844, 0.0612410306930542]], [[338, 130, 274, 157, 190, 237], [4.76837158203125e-07, 0.07828080654144287, 0.08334171772003174, 0.09800612926483154, 0.09929805994033813, 0.10116899013519287]], [[339, 233, 303, 331, 351, 288], [0.0, 0.04054689407348633, 0.042714476585388184, 0.048503756523132324, 0.054982781410217285, 0.055851101875305176]], [[340, 181, 125, 78, 280, 197], [0.0, 0.08142566680908203, 0.09489220380783081, 0.0964822769165039, 0.10186576843261719, 0.1096886396408081]], [[341, 388, 209, 326, 248, 257], [0.0, 0.047194480895996094, 0.052691102027893066, 0.05334681272506714, 0.05471837520599365, 0.05492275953292847]], [[342, 132, 188, 282, 164, 151], [0.0, 0.04290473461151123, 0.04290473461151123, 0.04350912570953369, 0.05410408973693848, 0.05540722608566284]], [[343, 71, 229, 45, 378, 12], [0.0, 0.04008209705352783, 0.04128265380859375, 0.044260263442993164, 0.046939074993133545, 0.05131399631500244]], [[344, 359, 224, 366, 95, 211], [0.0, 0.04086506366729736, 0.04802405834197998, 0.04822266101837158, 0.05011516809463501, 0.05083727836608887]], [[345, 164, 176, 313, 46, 8], [0.0, 0.04628211259841919, 0.04675418138504028, 0.048407673835754395, 0.04846423864364624, 0.04954719543457031]], [[387, 346, 297, 315, 264, 248], [2.980232238769531e-07, 2.980232238769531e-07, 0.04432255029678345, 0.04545408487319946, 0.04711806774139404, 0.047833144664764404]], [[347, 289, 360, 304, 379, 323], [1.7881393432617188e-07, 0.041539788246154785, 0.047107577323913574, 0.04742884635925293, 0.048440515995025635, 0.050191521644592285]], [[348, 178, 67, 60, 10, 55], [0.0, 0.045823872089385986, 0.04662448167800903, 0.047116994857788086, 0.049902498722076416, 0.050887346267700195]], [[349, 388, 341, 248, 297, 215], [0.0, 0.052068352699279785, 0.06194567680358887, 0.06292980909347534, 0.06334900856018066, 0.06582224369049072]], [[350, 224, 253, 321, 372, 359], [2.384185791015625e-07, 0.039740920066833496, 0.04149752855300903, 0.04431033134460449, 0.04641515016555786, 0.04891777038574219]], [[351, 303, 157, 140, 69, 283], [5.960464477539063e-08, 0.03783857822418213, 0.037863969802856445, 0.038742244243621826, 0.04005134105682373, 0.04178851842880249]], [[352, 10, 178, 348, 67, 60], [0.0, 0.060358524322509766, 0.061482906341552734, 0.06514978408813477, 0.06976073980331421, 0.07005321979522705]], [[353, 224, 95, 366, 285, 146], [1.1920928955078125e-07, 0.06009876728057861, 0.06254065036773682, 0.06606340408325195, 0.06646668910980225, 0.0669865608215332]], [[354, 276, 38, 207, 130, 153], [1.1920928955078125e-07, 0.05522477626800537, 0.07937604188919067, 0.08175718784332275, 0.0833061933517456, 0.08582174777984619]], [[355, 109, 29, 125, 118, 194], [0.0, 0.11657929420471191, 0.11731171607971191, 0.12449026107788086, 0.1299229860305786, 0.13089263439178467]], [[356, 128, 162, 374, 186, 168], [0.0, 0.08394289016723633, 0.08413445949554443, 0.08752745389938354, 0.08858656883239746, 0.08945125341415405]], [[357, 359, 299, 219, 213, 379], [0.0, 0.060013532638549805, 0.06145179271697998, 0.06561899185180664, 0.06595849990844727, 0.06624698638916016]], [[358, 280, 303, 172, 185, 254], [0.0, 0.0909963846206665, 0.09514296054840088, 0.09590023756027222, 0.09894323348999023, 0.09992170333862305]], [[359, 344, 224, 253, 366, 211], [0.0, 0.04086506366729736, 0.04346853494644165, 0.043941378593444824, 0.04764068126678467, 0.047681212425231934]], [[360, 347, 20, 289, 281, 304], [5.960464477539063e-08, 0.047107577323913574, 0.048667192459106445, 0.053971827030181885, 0.057216763496398926, 0.05878889560699463]], [[361, 379, 284, 289, 323, 304], [0.0, 0.05255246162414551, 0.05539870262145996, 0.05594289302825928, 0.05623650550842285, 0.05740863084793091]], [[362, 98, 191, 236, 369, 64], [0.0, 0.14328312873840332, 0.15711617469787598, 0.16508632898330688, 0.17009973526000977, 0.17091631889343262]], [[363, 351, 303, 172, 288, 331], [0.0, 0.04253339767456055, 0.04371905326843262, 0.04431450366973877, 0.044401586055755615, 0.0456920862197876]], [[364, 180, 109, 191, 159, 153], [0.0, 0.09463024139404297, 0.1346331238746643, 0.14883947372436523, 0.14951008558273315, 0.15180611610412598]], [[365, 105, 112, 229, 45, 343], [0.0, 0.07727980613708496, 0.07727980613708496, 0.08045876026153564, 0.08407634496688843, 0.0856505036354065]], [[366, 224, 211, 95, 253, 213], [0.0, 0.03657233715057373, 0.04077184200286865, 0.04081171751022339, 0.042626142501831055, 0.04421001672744751]], [[367, 191, 353, 357, 122, 383], [0.0, 0.06222623586654663, 0.08190727233886719, 0.095009446144104, 0.09586310386657715, 0.09700959920883179]], [[368, 347, 289, 304, 20, 361], [5.960464477539063e-08, 0.057599425315856934, 0.05887603759765625, 0.06240040063858032, 0.06439077854156494, 0.06465780735015869]], [[369, 82, 2, 210, 13, 311], [0.0, 0.10376942157745361, 0.11329436302185059, 0.11345469951629639, 0.11726236343383789, 0.11798977851867676]], [[370, 228, 259, 128, 220, 323], [0.0, 0.07302343845367432, 0.10194361209869385, 0.10335290431976318, 0.1067693829536438, 0.112862229347229]], [[371, 331, 263, 385, 150, 260], [0.0, 0.08280110359191895, 0.08405357599258423, 0.08771222829818726, 0.08802986145019531, 0.0894361138343811]], [[372, 321, 313, 151, 176, 224], [0.0, 0.03693962097167969, 0.039354801177978516, 0.03986310958862305, 0.04081320762634277, 0.04128897190093994]], [[373, 331, 288, 25, 363, 69], [0.0, 0.03210270404815674, 0.04745805263519287, 0.049719810485839844, 0.05109107494354248, 0.05379456281661987]], [[374, 139, 231, 281, 304, 13], [0.0, 0.051259756088256836, 0.05210977792739868, 0.052222251892089844, 0.052236199378967285, 0.05283236503601074]], [[375, 76, 84, 30, 309, 210], [2.980232238769531e-07, 0.04639464616775513, 0.05475902557373047, 0.05500936508178711, 0.05542290210723877, 0.058007240295410156]], [[376, 229, 378, 45, 71, 92], [1.1920928955078125e-07, 0.05503499507904053, 0.05789291858673096, 0.0647956132888794, 0.0661664605140686, 0.06734025478363037]], [[377, 202, 163, 151, 176, 313], [0.0, 0.034522414207458496, 0.0456504225730896, 0.05094647407531738, 0.052927613258361816, 0.05370604991912842]], [[378, 229, 154, 96, 45, 71], [0.0, 0.027566850185394287, 0.0352669358253479, 0.03636223077774048, 0.037140846252441406, 0.03851675987243652]], [[379, 213, 304, 323, 289, 347], [0.0, 0.03827625513076782, 0.04258298873901367, 0.04601097106933594, 0.04618537425994873, 0.048440515995025635]], [[380, 262, 305, 100, 36, 226], [1.1920928955078125e-07, 0.06650638580322266, 0.08381253480911255, 0.09024930000305176, 0.09478932619094849, 0.09635621309280396]], [[381, 127, 118, 167, 177, 266], [1.1920928955078125e-07, 0.10467958450317383, 0.11471152305603027, 0.12158674001693726, 0.1332908272743225, 0.13792860507965088]], [[382, 208, 332, 24, 22, 41], [0.0, 0.09446132183074951, 0.1030498743057251, 0.10537409782409668, 0.10602927207946777, 0.10604262351989746]], [[383, 18, 49, 53, 143, 353], [0.0, 0.07739043235778809, 0.08003437519073486, 0.08219456672668457, 0.08422672748565674, 0.08482646942138672]], [[384, 386, 292, 16, 171, 305], [5.960464477539063e-08, 0.04579782485961914, 0.05793106555938721, 0.06560969352722168, 0.06700634956359863, 0.06717205047607422]], [[385, 85, 124, 150, 371, 250], [1.7881393432617188e-07, 0.060361623764038086, 0.07818859815597534, 0.07880616188049316, 0.08771222829818726, 0.0902637243270874]], [[386, 292, 384, 305, 99, 232], [0.0, 0.042023658752441406, 0.04579782485961914, 0.04854476451873779, 0.05754208564758301, 0.06365704536437988]], [[387, 346, 297, 315, 264, 248], [2.980232238769531e-07, 2.980232238769531e-07, 0.04432255029678345, 0.04545408487319946, 0.04711806774139404, 0.047833144664764404]], [[388, 248, 264, 215, 297, 341], [0.0, 0.037600159645080566, 0.03965330123901367, 0.04084932804107666, 0.04194521903991699, 0.047194480895996094]], [[389, 164, 247, 151, 46, 163], [1.7881393432617188e-07, 0.042870163917541504, 0.04697549343109131, 0.05527430772781372, 0.057344913482666016, 0.05813324451446533]]]
#128
arr = [[[0, 337, 166, 228, 311, 168], [0.0, 0.11806827783584595, 0.12051904201507568, 0.1213676929473877, 0.12779784202575684, 0.128251850605011]], [[1, 308, 335, 172, 283, 131], [1.1920928955078125e-07, 0.05873662233352661, 0.06430906057357788, 0.09030401706695557, 0.09459918737411499, 0.09885072708129883]], [[2, 210, 72, 242, 32, 311], [1.1920928955078125e-07, 0.08070212602615356, 0.08375227451324463, 0.08606845140457153, 0.08756506443023682, 0.09379899501800537]], [[3, 242, 287, 55, 178, 60], [5.960464477539063e-08, 0.07188153266906738, 0.07488304376602173, 0.0826789140701294, 0.08638626337051392, 0.08723008632659912]], [[4, 22, 100, 17, 386, 251], [5.960464477539063e-08, 0.0730472207069397, 0.08066970109939575, 0.08578681945800781, 0.08882713317871094, 0.09335851669311523]], [[5, 260, 363, 19, 238, 97], [0.0, 0.06686043739318848, 0.07084870338439941, 0.07785630226135254, 0.07794296741485596, 0.07909798622131348]], [[6, 71, 229, 154, 196, 45], [5.960464477539063e-08, 0.06519591808319092, 0.0692262053489685, 0.08055233955383301, 0.08204948902130127, 0.08317774534225464]], [[7, 105, 112, 96, 229, 154], [0.0, 0.0671161413192749, 0.0671161413192749, 0.06965261697769165, 0.07191312313079834, 0.07477378845214844]], [[8, 321, 151, 163, 202, 253], [5.960464477539063e-08, 0.03046882152557373, 0.032094717025756836, 0.04268765449523926, 0.04372161626815796, 0.04475682973861694]], [[9, 250, 263, 240, 371, 385], [0.0, 0.16462481021881104, 0.1868736743927002, 0.1876423954963684, 0.1962783932685852, 0.19822198152542114]], [[10, 352, 33, 348, 67, 60], [0.0, 0.07143038511276245, 0.07184755802154541, 0.0742417573928833, 0.07520413398742676, 0.07525491714477539]], [[11, 305, 386, 100, 292, 4], [0.0, 0.07599306106567383, 0.07645130157470703, 0.07988739013671875, 0.09166347980499268, 0.09362560510635376]], [[12, 71, 45, 229, 112, 105], [0.0, 0.0331730842590332, 0.042566895484924316, 0.05662614107131958, 0.05707716941833496, 0.05707716941833496]], [[13, 304, 374, 231, 281, 289], [1.1920928955078125e-07, 0.04616272449493408, 0.06017768383026123, 0.060539960861206055, 0.06096917390823364, 0.06183600425720215]], [[14, 192, 5, 19, 260, 288], [0.0, 0.06339478492736816, 0.0816468596458435, 0.08379250764846802, 0.08900642395019531, 0.09854227304458618]], [[15, 45, 229, 314, 96, 196], [5.960464477539063e-08, 0.0885198712348938, 0.10021483898162842, 0.10695964097976685, 0.10700559616088867, 0.11028844118118286]], [[16, 171, 105, 112, 154, 71], [1.1920928955078125e-07, 0.07262229919433594, 0.0783202052116394, 0.0783202052116394, 0.0793159008026123, 0.08245623111724854]], [[17, 57, 36, 305, 100, 326], [0.0, 0.05552417039871216, 0.059703946113586426, 0.06582891941070557, 0.07246571779251099, 0.07316482067108154]], [[18, 8, 353, 383, 224, 165], [5.960464477539063e-08, 0.05780375003814697, 0.07077878713607788, 0.07524287700653076, 0.07547593116760254, 0.07612013816833496]], [[19, 288, 303, 260, 152, 315], [0.0, 0.03999197483062744, 0.04062122106552124, 0.04233872890472412, 0.04276394844055176, 0.046284496784210205]], [[20, 347, 360, 128, 304, 166], [0.0, 0.05472034215927124, 0.061170876026153564, 0.06370824575424194, 0.0668177604675293, 0.07102328538894653]], [[21, 181, 262, 258, 78, 29], [1.1920928955078125e-07, 0.1004793643951416, 0.11212015151977539, 0.11597728729248047, 0.12139278650283813, 0.12481844425201416]], [[22, 4, 382, 305, 332, 100], [5.960464477539063e-08, 0.0730472207069397, 0.07650792598724365, 0.08513808250427246, 0.08530533313751221, 0.09037089347839355]], [[23, 257, 388, 57, 36, 28], [1.1920928955078125e-07, 0.07529038190841675, 0.07598185539245605, 0.07717573642730713, 0.08461827039718628, 0.0866134762763977]], [[24, 78, 41, 197, 125, 35], [0.0, 0.07653254270553589, 0.0922507643699646, 0.10104703903198242, 0.10192036628723145, 0.11340075731277466]], [[25, 331, 288, 373, 363, 172], [0.0, 0.06096988916397095, 0.06146049499511719, 0.06236720085144043, 0.0716448426246643, 0.07525116205215454]], [[26, 130, 207, 88, 276, 373], [0.0, 0.17135608196258545, 0.1752428412437439, 0.17819255590438843, 0.1783151626586914, 0.18402886390686035]], [[27, 104, 291, 88, 5, 121], [1.1920928955078125e-07, 0.11520320177078247, 0.12610465288162231, 0.13650155067443848, 0.16133761405944824, 0.16422677040100098]], [[28, 326, 23, 36, 70, 349], [0.0, 0.08566009998321533, 0.0866134762763977, 0.09792578220367432, 0.09998351335525513, 0.10227566957473755]], [[29, 200, 318, 258, 273, 125], [0.0, 0.08160406351089478, 0.09463256597518921, 0.09899711608886719, 0.09903490543365479, 0.1055595874786377]], [[30, 375, 52, 76, 84, 309], [0.0, 0.08745414018630981, 0.09098505973815918, 0.09330475330352783, 0.10291874408721924, 0.10419607162475586]], [[31, 236, 151, 377, 255, 8], [5.960464477539063e-08, 0.09297531843185425, 0.09469377994537354, 0.11525958776473999, 0.12025880813598633, 0.12053167819976807]], [[32, 375, 76, 210, 72, 84], [5.960464477539063e-08, 0.06378895044326782, 0.06449520587921143, 0.06518489122390747, 0.07579731941223145, 0.07841718196868896]], [[33, 10, 287, 348, 60, 242], [0.0, 0.07184755802154541, 0.0821605920791626, 0.08762335777282715, 0.1025083065032959, 0.10423910617828369]], [[34, 259, 128, 304, 374, 231], [1.1920928955078125e-07, 0.06300848722457886, 0.07885348796844482, 0.08727270364761353, 0.08769434690475464, 0.08835417032241821]], [[35, 197, 255, 125, 78, 280], [0.0, 0.07181352376937866, 0.08242928981781006, 0.08852541446685791, 0.10030078887939453, 0.10068273544311523]], [[36, 341, 257, 326, 17, 388], [1.1920928955078125e-07, 0.055358171463012695, 0.05718731880187988, 0.057654500007629395, 0.059703946113586426, 0.06021958589553833]], [[37, 80, 207, 90, 388, 150], [1.1920928955078125e-07, 0.08412444591522217, 0.08814007043838501, 0.08815276622772217, 0.09181535243988037, 0.09795975685119629]], [[38, 283, 206, 320, 307, 276], [0.0, 0.07350289821624756, 0.07959818840026855, 0.08408427238464355, 0.08422660827636719, 0.08522540330886841]], [[39, 170, 268, 248, 303, 19], [0.0, 0.04701024293899536, 0.04841804504394531, 0.0515822172164917, 0.052092909812927246, 0.05773812532424927]], [[40, 77, 336, 69, 234, 63], [0.0, 0.05993962287902832, 0.06763255596160889, 0.06813287734985352, 0.06856411695480347, 0.07050079107284546]], [[41, 78, 24, 125, 273, 258], [0.0, 0.08926749229431152, 0.0922507643699646, 0.0984007716178894, 0.09979856014251709, 0.11706960201263428]], [[42, 286, 265, 189, 47, 256], [0.0, 0.16482150554656982, 0.1695263385772705, 0.18037128448486328, 0.19629478454589844, 0.1993856430053711]], [[43, 0, 309, 370, 51, 30], [1.1920928955078125e-07, 0.1943853497505188, 0.1983618140220642, 0.1995105743408203, 0.20318681001663208, 0.20975393056869507]], [[44, 312, 269, 226, 167, 182], [1.1920928955078125e-07, 0.09230577945709229, 0.10010284185409546, 0.11117970943450928, 0.11239206790924072, 0.11459589004516602]], [[45, 229, 92, 12, 378, 71], [0.0, 0.038412392139434814, 0.04063725471496582, 0.042566895484924316, 0.04539757966995239, 0.04620075225830078]], [[46, 164, 117, 91, 313, 163], [0.0, 0.0395808219909668, 0.04672956466674805, 0.04730403423309326, 0.04911649227142334, 0.04982554912567139]], [[47, 136, 193, 8, 345, 313], [0.0, 0.05691111087799072, 0.0589255690574646, 0.059319257736206055, 0.059746503829956055, 0.0628972053527832]], [[48, 369, 360, 20, 337, 383], [1.1920928955078125e-07, 0.1637793779373169, 0.18067151308059692, 0.18994271755218506, 0.19039404392242432, 0.1908586025238037]], [[49, 224, 379, 359, 304, 285], [0.0, 0.05690222978591919, 0.06211531162261963, 0.06213235855102539, 0.07017660140991211, 0.07135164737701416]], [[50, 305, 292, 17, 306, 386], [1.1920928955078125e-07, 0.07878339290618896, 0.08271139860153198, 0.08645898103713989, 0.09126144647598267, 0.09330493211746216]], [[51, 375, 32, 76, 89, 84], [0.0, 0.07914280891418457, 0.08490169048309326, 0.09615355730056763, 0.11385643482208252, 0.11430561542510986]], [[52, 76, 309, 168, 375, 32], [0.0, 0.07286405563354492, 0.08114540576934814, 0.08417296409606934, 0.08427995443344116, 0.08773136138916016]], [[53, 383, 221, 34, 13, 114], [0.0, 0.11164265871047974, 0.11971515417098999, 0.12377458810806274, 0.1271512508392334, 0.12757861614227295]], [[54, 64, 191, 367, 272, 282], [1.1920928955078125e-07, 0.20754313468933105, 0.20978045463562012, 0.22912001609802246, 0.27875053882598877, 0.2882688045501709]], [[55, 178, 60, 67, 348, 352], [0.0, 0.05140554904937744, 0.05668199062347412, 0.05702483654022217, 0.06871509552001953, 0.0812373161315918]], [[56, 257, 266, 209, 302, 388], [0.0, 0.08539271354675293, 0.08810365200042725, 0.0998769998550415, 0.10015982389450073, 0.10109871625900269]], [[57, 17, 305, 36, 226, 23], [0.0, 0.05552417039871216, 0.05601775646209717, 0.07109367847442627, 0.07666343450546265, 0.07717573642730713]], [[58, 99, 380, 142, 22, 332], [1.1920928955078125e-07, 0.13350200653076172, 0.1354251503944397, 0.14429080486297607, 0.1462622880935669, 0.14726471900939941]], [[59, 271, 286, 150, 290, 189], [5.960464477539063e-08, 0.11619776487350464, 0.13016939163208008, 0.18314051628112793, 0.1838386058807373, 0.18635106086730957]], [[60, 67, 178, 348, 55, 352], [0.0, 0.00025784969329833984, 0.04921156167984009, 0.05217677354812622, 0.05668199062347412, 0.05942666530609131]], [[61, 95, 186, 198, 83, 359], [0.0, 0.10137617588043213, 0.11253225803375244, 0.11618930101394653, 0.11809778213500977, 0.11847609281539917]], [[62, 310, 21, 262, 318, 380], [0.0, 0.12234485149383545, 0.12768805027008057, 0.12810677289962769, 0.13432490825653076, 0.14450615644454956]], [[63, 69, 77, 190, 164, 238], [0.0, 0.04697078466415405, 0.04825013875961304, 0.05744278430938721, 0.05977821350097656, 0.06098282337188721]], [[64, 279, 241, 130, 283, 136], [0.0, 0.12107616662979126, 0.1457386016845703, 0.14955401420593262, 0.15560060739517212, 0.1558213233947754]], [[65, 94, 56, 118, 167, 318], [0.0, 0.11840325593948364, 0.15109401941299438, 0.1809123158454895, 0.1849445104598999, 0.19118893146514893]], [[66, 96, 229, 196, 71, 12], [0.0, 0.07307112216949463, 0.07432729005813599, 0.07539916038513184, 0.07554316520690918, 0.08119159936904907]], [[67, 60, 178, 348, 55, 352], [5.960464477539063e-08, 0.00025784969329833984, 0.0494803786277771, 0.05234450101852417, 0.05702483654022217, 0.058455705642700195]], [[68, 212, 256, 126, 265, 296], [0.0, 0.10323083400726318, 0.12161743640899658, 0.1348785161972046, 0.13832080364227295, 0.14227497577667236]], [[69, 363, 206, 331, 63, 336], [0.0, 0.044667959213256836, 0.04530811309814453, 0.04561668634414673, 0.04697078466415405, 0.04863053560256958]], [[70, 264, 297, 173, 315, 152], [0.0, 0.04422461986541748, 0.04879528284072876, 0.05431610345840454, 0.05840122699737549, 0.05970555543899536]], [[71, 12, 229, 45, 196, 6], [0.0, 0.0331730842590332, 0.04257094860076904, 0.04620075225830078, 0.060866713523864746, 0.06519591808319092]], [[72, 210, 82, 139, 166, 32], [1.1920928955078125e-07, 0.05598902702331543, 0.05923861265182495, 0.07066202163696289, 0.07358533143997192, 0.07579731941223145]], [[73, 71, 12, 92, 229, 45], [5.960464477539063e-08, 0.10803830623626709, 0.11100262403488159, 0.11310338973999023, 0.12937545776367188, 0.1299269199371338]], [[74, 163, 75, 351, 188, 132], [5.960464477539063e-08, 0.09797841310501099, 0.10010653734207153, 0.10084313154220581, 0.1013420820236206, 0.1013420820236206]], [[75, 247, 307, 164, 190, 234], [1.1920928955078125e-07, 0.04891800880432129, 0.049049556255340576, 0.05582636594772339, 0.05663567781448364, 0.05683857202529907]], [[76, 375, 32, 210, 337, 52], [0.0, 0.0643799901008606, 0.06449520587921143, 0.0663377046585083, 0.07047748565673828, 0.07286405563354492]], [[77, 63, 336, 193, 234, 40], [1.1920928955078125e-07, 0.04825013875961304, 0.05646979808807373, 0.05847036838531494, 0.059393465518951416, 0.05993962287902832]], [[78, 125, 273, 280, 197, 24], [1.1920928955078125e-07, 0.06183171272277832, 0.07054013013839722, 0.07373017072677612, 0.0764002799987793, 0.07653254270553589]], [[79, 347, 304, 270, 20, 379], [5.960464477539063e-08, 0.0881812572479248, 0.0940433144569397, 0.10373663902282715, 0.11294025182723999, 0.11744564771652222]], [[80, 90, 257, 37, 183, 388], [0.0, 0.07265079021453857, 0.08320903778076172, 0.08412444591522217, 0.08859717845916748, 0.09152323007583618]], [[81, 107, 261, 12, 45, 171], [1.1920928955078125e-07, 0.1512170433998108, 0.18020308017730713, 0.18338441848754883, 0.194724440574646, 0.1968601942062378]], [[82, 72, 139, 231, 374, 210], [0.0, 0.05923861265182495, 0.06710934638977051, 0.06887072324752808, 0.06970804929733276, 0.071319580078125]], [[83, 265, 115, 372, 189, 313], [0.0, 0.08827638626098633, 0.09416007995605469, 0.11179429292678833, 0.11653804779052734, 0.11740535497665405]], [[84, 168, 166, 32, 155, 210], [5.960464477539063e-08, 0.06126141548156738, 0.06738686561584473, 0.07841718196868896, 0.07845044136047363, 0.08062475919723511]], [[85, 385, 150, 387, 346, 250], [1.7881393432617188e-07, 0.058542847633361816, 0.0721813440322876, 0.08316802978515625, 0.08316802978515625, 0.08638513088226318]], [[86, 303, 190, 268, 234, 339], [5.960464477539063e-08, 0.046943604946136475, 0.05873459577560425, 0.059321582317352295, 0.0617145299911499, 0.06269514560699463]], [[87, 254, 137, 182, 280, 268], [0.0, 0.049445152282714844, 0.08912384510040283, 0.09635007381439209, 0.10342633724212646, 0.10494530200958252]], [[88, 295, 104, 203, 175, 63], [0.0, 0.044881224632263184, 0.0607946515083313, 0.0733070969581604, 0.09700405597686768, 0.10402047634124756]], [[89, 149, 84, 72, 270, 32], [0.0, 0.06829583644866943, 0.08230215311050415, 0.08501029014587402, 0.09409695863723755, 0.09540665149688721]], [[90, 387, 346, 267, 152, 248], [5.960464477539063e-08, 0.05090886354446411, 0.05090886354446411, 0.062455713748931885, 0.06702077388763428, 0.06857270002365112]], [[91, 46, 237, 164, 307, 163], [0.0, 0.04730403423309326, 0.05319929122924805, 0.05488097667694092, 0.05569726228713989, 0.05651813745498657]], [[92, 45, 229, 71, 12, 96], [5.960464477539063e-08, 0.04063725471496582, 0.05758225917816162, 0.06552809476852417, 0.06788969039916992, 0.07114511728286743]], [[93, 63, 203, 86, 247, 147], [5.960464477539063e-08, 0.09289449453353882, 0.10878390073776245, 0.11689144372940063, 0.11886775493621826, 0.12146854400634766]], [[94, 65, 56, 50, 129, 305], [5.960464477539063e-08, 0.11840325593948364, 0.1317015290260315, 0.1495378017425537, 0.16650187969207764, 0.16974198818206787]], [[95, 321, 366, 213, 8, 224], [5.960464477539063e-08, 0.04649758338928223, 0.04673123359680176, 0.04901152849197388, 0.05763357877731323, 0.05815136432647705]], [[96, 229, 378, 45, 196, 154], [5.960464477539063e-08, 0.04848337173461914, 0.050690293312072754, 0.05418658256530762, 0.05752062797546387, 0.06046539545059204]], [[97, 319, 170, 268, 205, 5], [1.1920928955078125e-07, 0.0721430778503418, 0.07464861869812012, 0.07825648784637451, 0.07898473739624023, 0.07909798622131348]], [[98, 241, 362, 41, 197, 125], [5.960464477539063e-08, 0.1532909870147705, 0.15389442443847656, 0.15644967555999756, 0.15921998023986816, 0.16170859336853027]], [[99, 142, 292, 386, 171, 110], [0.0, 0.04686284065246582, 0.06907474994659424, 0.07451629638671875, 0.07583063840866089, 0.0880233645439148]], [[100, 386, 305, 257, 17, 36], [0.0, 0.05370521545410156, 0.061225295066833496, 0.06962519884109497, 0.07246571779251099, 0.07712900638580322]], [[101, 95, 8, 198, 165, 225], [5.960464477539063e-08, 0.07346135377883911, 0.07351154088973999, 0.0760616660118103, 0.07667803764343262, 0.07696741819381714]], [[102, 196, 343, 229, 378, 66], [1.1920928955078125e-07, 0.10032510757446289, 0.10289502143859863, 0.10748332738876343, 0.1095116138458252, 0.11267662048339844]], [[103, 217, 373, 25, 86, 322], [5.960464477539063e-08, 0.09505975246429443, 0.10306274890899658, 0.10306739807128906, 0.11271548271179199, 0.11747223138809204]], [[104, 88, 63, 244, 121, 140], [0.0, 0.0607946515083313, 0.06333780288696289, 0.0670509934425354, 0.07244795560836792, 0.0745745301246643]], [[112, 105, 229, 154, 327, 378], [1.1920928955078125e-07, 1.1920928955078125e-07, 0.049777865409851074, 0.0535508394241333, 0.05435752868652344, 0.056685686111450195]], [[106, 238, 190, 283, 235, 279], [0.0, 0.06755733489990234, 0.07343709468841553, 0.08556544780731201, 0.08739793300628662, 0.08835649490356445]], [[107, 12, 45, 378, 154, 96], [0.0, 0.061264634132385254, 0.06747037172317505, 0.06912761926651001, 0.07236480712890625, 0.07541203498840332]], [[108, 328, 249, 293, 138, 255], [0.0, 0.08239531517028809, 0.10393786430358887, 0.1550310254096985, 0.1601586937904358, 0.16225582361221313]], [[109, 355, 125, 78, 98, 194], [5.960464477539063e-08, 0.13815557956695557, 0.14912563562393188, 0.15697163343429565, 0.16378003358840942, 0.16425007581710815]], [[110, 384, 386, 292, 99, 16], [1.1920928955078125e-07, 0.06573820114135742, 0.07976126670837402, 0.08336865901947021, 0.0880233645439148, 0.0923689603805542]], [[111, 171, 110, 16, 6, 384], [0.0, 0.11118972301483154, 0.11422908306121826, 0.11437797546386719, 0.11968767642974854, 0.1209028959274292]], [[112, 105, 229, 154, 327, 378], [1.1920928955078125e-07, 1.1920928955078125e-07, 0.049777865409851074, 0.0535508394241333, 0.05435752868652344, 0.056685686111450195]], [[113, 124, 37, 123, 85, 385], [0.0, 0.14606237411499023, 0.16481781005859375, 0.1667875051498413, 0.16692090034484863, 0.1752108335494995]], [[114, 289, 252, 347, 383, 20], [0.0, 0.060366034507751465, 0.062210679054260254, 0.06606674194335938, 0.07102227210998535, 0.0728675127029419]], [[115, 224, 372, 216, 350, 189], [1.1920928955078125e-07, 0.07645082473754883, 0.08070391416549683, 0.08188188076019287, 0.084861159324646, 0.08597534894943237]], [[116, 333, 332, 382, 120, 365], [0.0, 0.06863021850585938, 0.08790826797485352, 0.10010802745819092, 0.11425924301147461, 0.1145317554473877]], [[117, 237, 46, 190, 283, 247], [0.0, 0.03163957595825195, 0.04672956466674805, 0.04746425151824951, 0.048038482666015625, 0.048079490661621094]], [[118, 266, 167, 318, 381, 200], [0.0, 0.10446792840957642, 0.10497462749481201, 0.10592859983444214, 0.11477428674697876, 0.11718660593032837]], [[119, 183, 80, 318, 37, 207], [1.1920928955078125e-07, 0.10501426458358765, 0.13437926769256592, 0.14435917139053345, 0.14450031518936157, 0.16524100303649902]], [[120, 116, 110, 102, 16, 343], [0.0, 0.11425924301147461, 0.12387096881866455, 0.13020771741867065, 0.1373334527015686, 0.13876092433929443]], [[121, 279, 77, 104, 238, 63], [5.960464477539063e-08, 0.06830894947052002, 0.06837743520736694, 0.07244795560836792, 0.07287830114364624, 0.07479739189147949]], [[122, 367, 114, 272, 357, 252], [0.0, 0.14369654655456543, 0.1522362232208252, 0.16406738758087158, 0.17553269863128662, 0.17569297552108765]], [[123, 286, 150, 124, 256, 40], [0.0, 0.09737896919250488, 0.1327303647994995, 0.1347963809967041, 0.1348344087600708, 0.13515841960906982]], [[124, 385, 150, 37, 85, 207], [0.0, 0.08621573448181152, 0.09296941757202148, 0.09875690937042236, 0.09954261779785156, 0.10271090269088745]], [[125, 78, 340, 181, 273, 280], [5.960464477539063e-08, 0.06183171272277832, 0.0762563943862915, 0.07879173755645752, 0.0840916633605957, 0.08618855476379395]], [[126, 162, 212, 68, 265, 256], [1.1920928955078125e-07, 0.11954694986343384, 0.13455939292907715, 0.1348785161972046, 0.13732784986495972, 0.1413111686706543]], [[127, 381, 354, 276, 267, 302], [0.0, 0.07926666736602783, 0.09810268878936768, 0.10095643997192383, 0.10108041763305664, 0.11057496070861816]], [[128, 374, 20, 304, 228, 231], [5.960464477539063e-08, 0.0487520694732666, 0.06370824575424194, 0.06701576709747314, 0.06891363859176636, 0.07392853498458862]], [[129, 100, 11, 386, 305, 174], [0.0, 0.08111023902893066, 0.10516810417175293, 0.11053889989852905, 0.11206066608428955, 0.1222638487815857]], [[130, 172, 157, 351, 288, 363], [1.1920928955078125e-07, 0.06434714794158936, 0.07173281908035278, 0.07520699501037598, 0.07525032758712769, 0.07639521360397339]], [[131, 335, 1, 308, 158, 192], [1.1920928955078125e-07, 0.074149489402771, 0.09885072708129883, 0.09945684671401978, 0.10386443138122559, 0.10528433322906494]], [[132, 188, 282, 275, 246, 163], [0.0, 0.0, 0.034394025802612305, 0.03677946329116821, 0.0415608286857605, 0.04936659336090088]], [[133, 304, 284, 95, 231, 13], [1.1920928955078125e-07, 0.055005669593811035, 0.061547696590423584, 0.06228369474411011, 0.06697291135787964, 0.06810557842254639]], [[134, 163, 282, 132, 188, 202], [5.960464477539063e-08, 0.052668094635009766, 0.06171548366546631, 0.06436276435852051, 0.06436276435852051, 0.06769657135009766]], [[135, 326, 268, 349, 341, 170], [5.960464477539063e-08, 0.07549571990966797, 0.0830385684967041, 0.08575856685638428, 0.09123122692108154, 0.09299659729003906]], [[136, 188, 132, 238, 345, 283], [0.0, 0.05247533321380615, 0.05247533321380615, 0.05349230766296387, 0.05446004867553711, 0.054979681968688965]], [[137, 329, 254, 182, 152, 248], [0.0, 0.04429143667221069, 0.054872870445251465, 0.055037498474121094, 0.05680537223815918, 0.06529206037521362]], [[138, 249, 328, 108, 285, 236], [0.0, 0.13826942443847656, 0.1578301191329956, 0.1601586937904358, 0.16712844371795654, 0.17435604333877563]], [[139, 166, 168, 155, 231, 311], [0.0, 0.04330563545227051, 0.04734140634536743, 0.0501784086227417, 0.05779379606246948, 0.062281012535095215]], [[140, 351, 172, 69, 164, 363], [0.0, 0.050107717514038086, 0.05096173286437988, 0.05219614505767822, 0.05517756938934326, 0.056077420711517334]], [[141, 87, 254, 340, 388, 181], [0.0, 0.10747766494750977, 0.10787785053253174, 0.11045026779174805, 0.1271350383758545, 0.1281617283821106]], [[142, 99, 292, 384, 386, 4], [1.1920928955078125e-07, 0.04686284065246582, 0.06256484985351562, 0.08858227729797363, 0.0908505916595459, 0.09501564502716064]], [[143, 353, 383, 8, 377, 224], [0.0, 0.06536757946014404, 0.0756446123123169, 0.07577168941497803, 0.08327758312225342, 0.08709251880645752]], [[144, 150, 56, 240, 209, 127], [0.0, 0.09240204095840454, 0.10405373573303223, 0.10424476861953735, 0.11327773332595825, 0.1145477294921875]], [[145, 50, 222, 306, 335, 131], [1.1920928955078125e-07, 0.13106340169906616, 0.1374637484550476, 0.14972013235092163, 0.16515827178955078, 0.17570650577545166]], [[146, 224, 285, 321, 95, 304], [0.0, 0.051537156105041504, 0.05873119831085205, 0.059645235538482666, 0.0627673864364624, 0.06478077173233032]], [[147, 91, 247, 163, 140, 221], [0.0, 0.06426531076431274, 0.0786142349243164, 0.0804370641708374, 0.08185869455337524, 0.08271521329879761]], [[148, 4, 161, 232, 50, 142], [0.0, 0.10342836380004883, 0.1159166693687439, 0.11924421787261963, 0.12032639980316162, 0.1338897943496704]], [[149, 89, 84, 72, 375, 51], [1.1920928955078125e-07, 0.06829583644866943, 0.11200261116027832, 0.11280262470245361, 0.11641538143157959, 0.12225937843322754]], [[150, 85, 90, 346, 387, 385], [0.0, 0.0721813440322876, 0.07418626546859741, 0.07704323530197144, 0.07704323530197144, 0.07759344577789307]], [[151, 236, 8, 313, 176, 202], [5.960464477539063e-08, 0.028228282928466797, 0.032094717025756836, 0.042961299419403076, 0.04336357116699219, 0.04604780673980713]], [[152, 315, 264, 215, 248, 19], [0.0, 0.025939881801605225, 0.035234153270721436, 0.03942990303039551, 0.04178398847579956, 0.04276394844055176]], [[153, 330, 214, 187, 354, 320], [0.0, 0.13566505908966064, 0.13972890377044678, 0.14604437351226807, 0.14945226907730103, 0.15148979425430298]], [[154, 378, 171, 229, 112, 105], [5.960464477539063e-08, 0.041099607944488525, 0.047025978565216064, 0.05352061986923218, 0.0535508394241333, 0.0535508394241333]], [[155, 166, 139, 168, 311, 252], [5.960464477539063e-08, 0.036835312843322754, 0.0501784086227417, 0.05369985103607178, 0.06479793787002563, 0.07417619228363037]], [[156, 170, 192, 326, 5, 208], [0.0, 0.10410702228546143, 0.10636073350906372, 0.10661816596984863, 0.10698807239532471, 0.11077338457107544]], [[157, 351, 117, 190, 234, 303], [0.0, 0.04097670316696167, 0.050458669662475586, 0.0528300404548645, 0.05337029695510864, 0.05489116907119751]], [[158, 205, 288, 19, 363, 260], [0.0, 0.04507172107696533, 0.07509732246398926, 0.07584583759307861, 0.0781404972076416, 0.08269286155700684]], [[159, 273, 241, 125, 38, 78], [5.960464477539063e-08, 0.11222851276397705, 0.12807691097259521, 0.1295374035835266, 0.1492946743965149, 0.1512630581855774]], [[160, 205, 97, 319, 19, 331], [0.0, 0.07825088500976562, 0.08146381378173828, 0.0864974856376648, 0.0907280445098877, 0.0920068621635437]], [[161, 148, 306, 205, 4, 50], [0.0, 0.1159166693687439, 0.12440824508666992, 0.13137948513031006, 0.1377987265586853, 0.13866811990737915]], [[162, 270, 115, 359, 126, 253], [0.0, 0.09666323661804199, 0.10709714889526367, 0.11876153945922852, 0.11954694986343384, 0.12045109272003174]], [[163, 8, 202, 132, 188, 46], [5.960464477539063e-08, 0.04268765449523926, 0.04706317186355591, 0.04936659336090088, 0.04936659336090088, 0.04982554912567139]], [[164, 46, 389, 247, 91, 140], [0.0, 0.0395808219909668, 0.04684293270111084, 0.053727924823760986, 0.05488109588623047, 0.05517756938934326]], [[165, 8, 151, 91, 202, 225], [0.0, 0.05782139301300049, 0.06758928298950195, 0.06823426485061646, 0.06963241100311279, 0.07241064310073853]], [[166, 155, 168, 139, 311, 84], [0.0, 0.036835312843322754, 0.03731173276901245, 0.04330563545227051, 0.05621558427810669, 0.06738686561584473]], [[167, 118, 44, 302, 56, 200], [0.0, 0.10497462749481201, 0.11239206790924072, 0.114571213722229, 0.11637532711029053, 0.12341445684432983]], [[168, 166, 139, 155, 311, 84], [5.960464477539063e-08, 0.03731173276901245, 0.04734140634536743, 0.05369985103607178, 0.05893987417221069, 0.06126141548156738]], [[169, 138, 82, 13, 281, 285], [5.960464477539063e-08, 0.19056308269500732, 0.1986757516860962, 0.20136553049087524, 0.20696133375167847, 0.2108217477798462]], [[170, 39, 264, 152, 248, 315], [0.0, 0.04701024293899536, 0.05895578861236572, 0.05956423282623291, 0.06124359369277954, 0.06190145015716553]], [[171, 154, 71, 112, 105, 12], [1.1920928955078125e-07, 0.047025978565216064, 0.0685732364654541, 0.06915086507797241, 0.06915086507797241, 0.0717538595199585]], [[172, 363, 288, 303, 190, 185], [0.0, 0.04405093193054199, 0.04492223262786865, 0.04755216836929321, 0.04886507987976074, 0.05048590898513794]], [[173, 215, 297, 315, 152, 248], [0.0, 0.040596604347229004, 0.044446706771850586, 0.04681575298309326, 0.048950910568237305, 0.04938638210296631]], [[174, 129, 50, 11, 183, 124], [0.0, 0.1222638487815857, 0.16443300247192383, 0.17070603370666504, 0.17088115215301514, 0.17400312423706055]], [[175, 363, 260, 331, 206, 69], [1.1920928955078125e-07, 0.051937103271484375, 0.05422860383987427, 0.055515825748443604, 0.05594301223754883, 0.05988001823425293]], [[176, 151, 8, 193, 236, 132], [0.0, 0.04336357116699219, 0.04689514636993408, 0.06258130073547363, 0.06324297189712524, 0.06656181812286377]], [[177, 318, 200, 335, 308, 131], [5.960464477539063e-08, 0.07598745822906494, 0.08936035633087158, 0.09206676483154297, 0.11436992883682251, 0.11679363250732422]], [[178, 352, 60, 67, 55, 348], [0.0, 0.048963844776153564, 0.04921156167984009, 0.0494803786277771, 0.05140554904937744, 0.06321114301681519]], [[179, 206, 234, 69, 63, 91], [0.0, 0.10575443506240845, 0.1181478500366211, 0.11908876895904541, 0.1227109432220459, 0.12300777435302734]], [[180, 364, 191, 109, 316, 355], [0.0, 0.1472560167312622, 0.16996073722839355, 0.1750476360321045, 0.2053655982017517, 0.2055422067642212]], [[181, 125, 262, 78, 280, 21], [1.1920928955078125e-07, 0.07879173755645752, 0.08267003297805786, 0.08674067258834839, 0.08836686611175537, 0.1004793643951416]], [[182, 248, 137, 264, 215, 308], [1.1920928955078125e-07, 0.04993438720703125, 0.055037498474121094, 0.05862569808959961, 0.058795809745788574, 0.06108289957046509]], [[183, 80, 119, 257, 318, 388], [5.960464477539063e-08, 0.08859717845916748, 0.10501426458358765, 0.11154627799987793, 0.11243844032287598, 0.11253130435943604]], [[184, 127, 354, 381, 144, 355], [1.1920928955078125e-07, 0.13169622421264648, 0.13442844152450562, 0.14584141969680786, 0.14975732564926147, 0.14980435371398926]], [[185, 172, 190, 238, 288, 19], [0.0, 0.05048590898513794, 0.056359291076660156, 0.0595012903213501, 0.0615079402923584, 0.06444025039672852]], [[186, 270, 198, 304, 311, 13], [1.1920928955078125e-07, 0.059976816177368164, 0.06674003601074219, 0.0674293041229248, 0.07114511728286743, 0.07215243577957153]], [[187, 316, 364, 330, 153, 293], [0.0, 0.1203203797340393, 0.13787120580673218, 0.14491885900497437, 0.14604437351226807, 0.16676443815231323]], [[132, 188, 282, 275, 246, 163], [0.0, 0.0, 0.034394025802612305, 0.03677946329116821, 0.0415608286857605, 0.04936659336090088]], [[189, 265, 8, 216, 46, 47], [0.0, 0.07015085220336914, 0.07815027236938477, 0.08036577701568604, 0.08098524808883667, 0.08227676153182983]], [[190, 238, 283, 117, 234, 172], [1.1920928955078125e-07, 0.0376092791557312, 0.045771241188049316, 0.04746425151824951, 0.048643648624420166, 0.04886507987976074]], [[191, 367, 383, 91, 219, 282], [0.0, 0.08043456077575684, 0.11376547813415527, 0.11754059791564941, 0.11981338262557983, 0.12312251329421997]], [[192, 19, 14, 260, 215, 152], [5.960464477539063e-08, 0.054094672203063965, 0.06339478492736816, 0.06928235292434692, 0.07150602340698242, 0.07431834936141968]], [[193, 283, 247, 238, 117, 225], [0.0, 0.03426092863082886, 0.04740428924560547, 0.048508524894714355, 0.05131101608276367, 0.05199539661407471]], [[194, 258, 29, 41, 109, 125], [0.0, 0.08827251195907593, 0.12481260299682617, 0.1509702205657959, 0.16425007581710815, 0.16519522666931152]], [[195, 179, 97, 205, 275, 68], [5.960464477539063e-08, 0.1584063172340393, 0.1754661202430725, 0.18017792701721191, 0.18154776096343994, 0.1817312240600586]], [[196, 229, 378, 96, 45, 71], [0.0, 0.04449963569641113, 0.054442763328552246, 0.05752062797546387, 0.059394657611846924, 0.060866713523864746]], [[197, 35, 78, 340, 280, 125], [0.0, 0.07181352376937866, 0.0764002799987793, 0.08934658765792847, 0.09151214361190796, 0.09173917770385742]], [[198, 304, 186, 13, 101, 270], [0.0, 0.0655326247215271, 0.06674003601074219, 0.07118630409240723, 0.0760616660118103, 0.08199983835220337]], [[199, 295, 307, 203, 91, 235], [5.960464477539063e-08, 0.08035171031951904, 0.09354054927825928, 0.09908372163772583, 0.10615992546081543, 0.10645455121994019]], [[200, 266, 29, 257, 318, 90], [5.960464477539063e-08, 0.07578623294830322, 0.08160406351089478, 0.08582192659378052, 0.08652377128601074, 0.08735579252243042]], [[201, 203, 69, 86, 303, 269], [0.0, 0.04995155334472656, 0.08650219440460205, 0.08654177188873291, 0.08894574642181396, 0.09422469139099121]], [[202, 8, 151, 163, 377, 253], [0.0, 0.04372161626815796, 0.04604780673980713, 0.04706317186355591, 0.05661022663116455, 0.063274085521698]], [[203, 201, 295, 63, 86, 88], [5.960464477539063e-08, 0.04995155334472656, 0.0644034743309021, 0.06540894508361816, 0.07159304618835449, 0.0733070969581604]], [[204, 173, 315, 363, 215, 303], [0.0, 0.06478476524353027, 0.06878995895385742, 0.06900709867477417, 0.0702868103981018, 0.07331430912017822]], [[205, 158, 19, 160, 97, 373], [0.0, 0.04507172107696533, 0.07707202434539795, 0.07825088500976562, 0.07898473739624023, 0.08535981178283691]], [[206, 363, 69, 172, 288, 260], [5.960464477539063e-08, 0.04477423429489136, 0.04530811309814453, 0.053413331508636475, 0.05352377891540527, 0.05511504411697388]], [[207, 90, 37, 276, 80, 124], [0.0, 0.08789414167404175, 0.08814007043838501, 0.08917218446731567, 0.1014103889465332, 0.10271090269088745]], [[208, 156, 204, 22, 254, 87], [0.0, 0.11077338457107544, 0.11310482025146484, 0.11537551879882812, 0.12271374464035034, 0.12376481294631958]], [[209, 257, 248, 264, 387, 346], [0.0, 0.0535120964050293, 0.06753349304199219, 0.07666671276092529, 0.07735675573348999, 0.07735675573348999]], [[210, 72, 32, 76, 168, 82], [0.0, 0.05598902702331543, 0.06518489122390747, 0.0663377046585083, 0.07121419906616211, 0.071319580078125]], [[211, 285, 321, 224, 359, 95], [1.1920928955078125e-07, 0.05889904499053955, 0.06161689758300781, 0.06313198804855347, 0.06820535659790039, 0.07061213254928589]], [[212, 296, 256, 68, 321, 95], [0.0, 0.08799147605895996, 0.09798276424407959, 0.10323083400726318, 0.12246114015579224, 0.1260390281677246]], [[213, 95, 224, 285, 379, 253], [5.960464477539063e-08, 0.04901152849197388, 0.052663207054138184, 0.057246267795562744, 0.05839955806732178, 0.062480270862579346]], [[214, 283, 172, 157, 234, 38], [0.0, 0.07610774040222168, 0.0802164077758789, 0.08521932363510132, 0.08650738000869751, 0.08775085210800171]], [[215, 315, 152, 297, 173, 248], [0.0, 0.03874093294143677, 0.03942990303039551, 0.03982400894165039, 0.040596604347229004, 0.04928433895111084]], [[216, 321, 350, 8, 224, 345], [1.1920928955078125e-07, 0.06412333250045776, 0.06684821844100952, 0.07529604434967041, 0.07761901617050171, 0.07922542095184326]], [[217, 137, 373, 303, 86, 182], [0.0, 0.06863003969192505, 0.0716240406036377, 0.0718851089477539, 0.07218122482299805, 0.07507562637329102]], [[218, 179, 322, 220, 278, 206], [1.1920928955078125e-07, 0.19722449779510498, 0.20341980457305908, 0.2034226655960083, 0.20555871725082397, 0.2105364203453064]], [[219, 299, 321, 8, 95, 91], [0.0, 0.0465923547744751, 0.04885601997375488, 0.0579647421836853, 0.06074637174606323, 0.06578123569488525]], [[220, 275, 132, 188, 299, 246], [0.0, 0.0674898624420166, 0.0765458345413208, 0.0765458345413208, 0.0862932801246643, 0.09004384279251099]], [[221, 299, 219, 91, 323, 133], [5.960464477539063e-08, 0.06125450134277344, 0.06858354806900024, 0.07109421491622925, 0.07147520780563354, 0.07649827003479004]], [[222, 50, 226, 22, 232, 332], [0.0, 0.09910988807678223, 0.10605192184448242, 0.11430466175079346, 0.12115323543548584, 0.12291014194488525]], [[223, 134, 165, 317, 191, 298], [0.0, 0.14939391613006592, 0.1529691219329834, 0.16131079196929932, 0.16180503368377686, 0.16323846578598022]], [[224, 321, 8, 285, 146, 213], [5.960464477539063e-08, 0.04515945911407471, 0.04667854309082031, 0.050014495849609375, 0.051537156105041504, 0.052663207054138184]], [[225, 193, 117, 46, 237, 8], [0.0, 0.05199539661407471, 0.05351752042770386, 0.05565035343170166, 0.06030082702636719, 0.06143707036972046]], [[226, 57, 17, 349, 388, 326], [0.0, 0.07666343450546265, 0.07686328887939453, 0.0820150375366211, 0.08259427547454834, 0.08445537090301514]], [[227, 290, 286, 88, 27, 175], [0.0, 0.16290444135665894, 0.17007100582122803, 0.1832672357559204, 0.1890324354171753, 0.19068282842636108]], [[228, 128, 374, 301, 34, 259], [0.0, 0.06891363859176636, 0.0833587646484375, 0.09209877252578735, 0.10161781311035156, 0.10565197467803955]], [[229, 45, 71, 196, 378, 96], [0.0, 0.038412392139434814, 0.04257094860076904, 0.04449963569641113, 0.04581707715988159, 0.04848337173461914]], [[230, 351, 303, 268, 331, 336], [1.1920928955078125e-07, 0.05433380603790283, 0.0595552921295166, 0.06521165370941162, 0.06802582740783691, 0.0684441328048706]], [[231, 374, 304, 139, 13, 281], [0.0, 0.04459434747695923, 0.04843538999557495, 0.05779379606246948, 0.060539960861206055, 0.06268799304962158]], [[232, 386, 292, 4, 384, 305], [0.0, 0.07286757230758667, 0.07941031455993652, 0.09729671478271484, 0.09843051433563232, 0.10412657260894775]], [[233, 339, 268, 329, 303, 39], [0.0, 0.04107910394668579, 0.057210326194763184, 0.06006050109863281, 0.061401426792144775, 0.06676709651947021]], [[234, 190, 157, 283, 75, 69], [0.0, 0.048643648624420166, 0.05337029695510864, 0.05529952049255371, 0.05683857202529907, 0.057764649391174316]], [[235, 46, 117, 307, 190, 47], [0.0, 0.05206632614135742, 0.056294798851013184, 0.06047391891479492, 0.06311643123626709, 0.06667077541351318]], [[236, 151, 247, 8, 163, 313], [5.960464477539063e-08, 0.028228282928466797, 0.047266244888305664, 0.05271565914154053, 0.057910263538360596, 0.060495972633361816]], [[237, 117, 91, 46, 247, 8], [0.0, 0.03163957595825195, 0.05319929122924805, 0.05577272176742554, 0.057256102561950684, 0.05908071994781494]], [[238, 190, 193, 283, 136, 117], [0.0, 0.0376092791557312, 0.048508524894714355, 0.05249607563018799, 0.05349230766296387, 0.054657816886901855]], [[239, 352, 10, 178, 348, 33], [0.0, 0.08457291126251221, 0.09652739763259888, 0.1004289984703064, 0.11191165447235107, 0.1193273663520813]], [[240, 150, 385, 341, 85, 144], [1.1920928955078125e-07, 0.07852602005004883, 0.08080339431762695, 0.08571076393127441, 0.09053713083267212, 0.10424476861953735]], [[241, 159, 64, 35, 98, 125], [0.0, 0.12807691097259521, 0.1457386016845703, 0.15276122093200684, 0.1532909870147705, 0.16197556257247925]], [[242, 287, 3, 32, 76, 2], [0.0, 0.04186451435089111, 0.07188153266906738, 0.07954484224319458, 0.08383142948150635, 0.08606845140457153]], [[243, 293, 300, 255, 373, 363], [5.960464477539063e-08, 0.10548943281173706, 0.10621058940887451, 0.10998773574829102, 0.12352168560028076, 0.12397807836532593]], [[244, 190, 185, 104, 363, 172], [0.0, 0.0644528865814209, 0.0669141411781311, 0.0670509934425354, 0.07312607765197754, 0.07352590560913086]], [[245, 209, 36, 257, 341, 302], [0.0, 0.08126163482666016, 0.09135574102401733, 0.09685021638870239, 0.09709084033966064, 0.0990985631942749]], [[246, 188, 132, 163, 372, 284], [0.0, 0.0415608286857605, 0.0415608286857605, 0.05901658535003662, 0.05942380428314209, 0.06018352508544922]], [[247, 283, 236, 193, 117, 75], [1.1920928955078125e-07, 0.04262739419937134, 0.047266244888305664, 0.04740428924560547, 0.048079490661621094, 0.04891800880432129]], [[248, 264, 152, 315, 215, 173], [5.960464477539063e-08, 0.034703969955444336, 0.04178398847579956, 0.04789149761199951, 0.04928433895111084, 0.04938638210296631]], [[249, 108, 328, 323, 220, 221], [0.0, 0.10393786430358887, 0.1142808198928833, 0.11931794881820679, 0.13157522678375244, 0.13440287113189697]], [[250, 341, 251, 349, 85, 326], [1.1920928955078125e-07, 0.06585121154785156, 0.06845849752426147, 0.07956397533416748, 0.08638513088226318, 0.09163963794708252]], [[251, 250, 349, 100, 36, 326], [0.0, 0.06845849752426147, 0.07275807857513428, 0.0807950496673584, 0.08136975765228271, 0.08159780502319336]], [[252, 114, 155, 166, 139, 311], [0.0, 0.062210679054260254, 0.07417619228363037, 0.07989400625228882, 0.08635818958282471, 0.08863580226898193]], [[253, 8, 321, 224, 313, 95], [1.1920928955078125e-07, 0.04475682973861694, 0.047764480113983154, 0.054917752742767334, 0.06010115146636963, 0.06021678447723389]], [[254, 87, 137, 329, 182, 280], [0.0, 0.049445152282714844, 0.054872870445251465, 0.06593704223632812, 0.07009071111679077, 0.08071565628051758]], [[255, 35, 389, 247, 280, 197], [0.0, 0.08242928981781006, 0.09281480312347412, 0.09936583042144775, 0.10298168659210205, 0.10433328151702881]], [[256, 212, 189, 265, 295, 46], [0.0, 0.09798276424407959, 0.10911273956298828, 0.11174654960632324, 0.1153174638748169, 0.11591267585754395]], [[257, 209, 326, 264, 36, 388], [0.0, 0.0535120964050293, 0.05699622631072998, 0.05713856220245361, 0.05718731880187988, 0.060674965381622314]], [[258, 194, 29, 78, 125, 21], [0.0, 0.08827251195907593, 0.09899711608886719, 0.10101127624511719, 0.11554676294326782, 0.11597728729248047]], [[259, 34, 128, 49, 186, 198], [5.960464477539063e-08, 0.06300848722457886, 0.07985520362854004, 0.09414631128311157, 0.09461885690689087, 0.09540235996246338]], [[260, 363, 19, 288, 331, 315], [0.0, 0.041184306144714355, 0.04233872890472412, 0.046856462955474854, 0.04998207092285156, 0.05077916383743286]], [[261, 96, 229, 196, 71, 154], [1.1920928955078125e-07, 0.0668478012084961, 0.07565474510192871, 0.07677018642425537, 0.07692015171051025, 0.08568096160888672]], [[262, 380, 181, 388, 173, 182], [0.0, 0.07526886463165283, 0.08267003297805786, 0.08452105522155762, 0.08831435441970825, 0.089596688747406]], [[263, 150, 85, 385, 371, 97], [1.1920928955078125e-07, 0.07770246267318726, 0.09517168998718262, 0.09627079963684082, 0.09661328792572021, 0.1087958812713623]], [[264, 248, 152, 326, 70, 297], [0.0, 0.034703969955444336, 0.035234153270721436, 0.04307854175567627, 0.04422461986541748, 0.04460024833679199]], [[265, 189, 286, 83, 46, 115], [1.1920928955078125e-07, 0.07015085220336914, 0.08546054363250732, 0.08827638626098633, 0.09088790416717529, 0.09191560745239258]], [[266, 264, 257, 200, 209, 152], [0.0, 0.07379353046417236, 0.07528263330459595, 0.07578623294830322, 0.07843029499053955, 0.07947683334350586]], [[267, 276, 90, 152, 388, 248], [0.0, 0.052724480628967285, 0.062455713748931885, 0.07220536470413208, 0.0757591724395752, 0.07689779996871948]], [[268, 339, 39, 303, 152, 233], [5.960464477539063e-08, 0.04681771993637085, 0.04841804504394531, 0.05131250619888306, 0.0557708740234375, 0.057210326194763184]], [[269, 312, 288, 182, 19, 172], [0.0, 0.04907113313674927, 0.05427896976470947, 0.06361854076385498, 0.06449049711227417, 0.06872117519378662]], [[270, 186, 304, 374, 213, 198], [0.0, 0.059976816177368164, 0.06237828731536865, 0.07262945175170898, 0.07714873552322388, 0.08199983835220337]], [[271, 59, 150, 286, 263, 371], [0.0, 0.11619776487350464, 0.1551436185836792, 0.16315841674804688, 0.16908442974090576, 0.17036491632461548]], [[272, 377, 383, 202, 151, 8], [0.0, 0.07423877716064453, 0.10491394996643066, 0.11017286777496338, 0.11490774154663086, 0.12164676189422607]], [[273, 78, 125, 308, 200, 335], [0.0, 0.07054013013839722, 0.0840916633605957, 0.0929824709892273, 0.09617948532104492, 0.09777271747589111]], [[274, 117, 190, 238, 237, 283], [0.0, 0.0602039098739624, 0.06437474489212036, 0.06592780351638794, 0.06900656223297119, 0.06972438097000122]], [[275, 132, 188, 282, 136, 372], [0.0, 0.03677946329116821, 0.03677946329116821, 0.055346548557281494, 0.05701279640197754, 0.06132173538208008]], [[276, 267, 339, 182, 354, 206], [0.0, 0.052724480628967285, 0.0751226544380188, 0.0752863883972168, 0.0759652853012085, 0.07761406898498535]], [[277, 381, 127, 177, 118, 290], [1.1920928955078125e-07, 0.20386701822280884, 0.2118140459060669, 0.223175048828125, 0.2352008819580078, 0.2528958320617676]], [[278, 247, 117, 313, 163, 151], [0.0, 0.08228921890258789, 0.08605366945266724, 0.09073907136917114, 0.09262996912002563, 0.09705865383148193]], [[279, 121, 238, 75, 77, 63], [0.0, 0.06830894947052002, 0.0749673843383789, 0.07659637928009033, 0.08383011817932129, 0.08461636304855347]], [[280, 173, 268, 78, 204, 152], [0.0, 0.06104695796966553, 0.06586730480194092, 0.07373017072677612, 0.07461392879486084, 0.07500910758972168]], [[281, 347, 374, 13, 231, 304], [0.0, 0.054061710834503174, 0.058662474155426025, 0.06096917390823364, 0.06268799304962158, 0.06528431177139282]], [[282, 132, 188, 275, 163, 164], [0.0, 0.034394025802612305, 0.034394025802612305, 0.055346548557281494, 0.05858612060546875, 0.05955207347869873]], [[283, 193, 247, 190, 117, 238], [5.960464477539063e-08, 0.03426092863082886, 0.04262739419937134, 0.045771241188049316, 0.048038482666015625, 0.05249607563018799]], [[284, 246, 133, 317, 213, 361], [0.0, 0.06018352508544922, 0.061547696590423584, 0.07738995552062988, 0.07766473293304443, 0.07780963182449341]], [[285, 224, 359, 213, 321, 146], [1.1920928955078125e-07, 0.050014495849609375, 0.05248570442199707, 0.057246267795562744, 0.05825597047805786, 0.05873119831085205]], [[286, 265, 123, 189, 256, 290], [0.0, 0.08546054363250732, 0.09737896919250488, 0.10208237171173096, 0.12074887752532959, 0.12594324350357056]], [[287, 242, 3, 10, 33, 60], [5.960464477539063e-08, 0.04186451435089111, 0.07488304376602173, 0.07999897003173828, 0.0821605920791626, 0.09939980506896973]], [[288, 331, 303, 19, 363, 373], [0.0, 0.027839303016662598, 0.03927206993103027, 0.03999197483062744, 0.04050922393798828, 0.04128873348236084]], [[289, 347, 304, 114, 13, 213], [0.0, 0.045119643211364746, 0.05490243434906006, 0.060366034507751465, 0.06183600425720215, 0.06365859508514404]], [[290, 175, 150, 206, 124, 88], [0.0, 0.09117835760116577, 0.10829430818557739, 0.10947161912918091, 0.11036396026611328, 0.11181306838989258]], [[291, 104, 121, 279, 244, 88], [0.0, 0.09056371450424194, 0.09485673904418945, 0.09834009408950806, 0.1174042820930481, 0.11781883239746094]], [[292, 386, 142, 305, 99, 384], [0.0, 0.053168296813964844, 0.06256484985351562, 0.06650185585021973, 0.06907474994659424, 0.07013511657714844]], [[293, 330, 243, 389, 324, 75], [1.1920928955078125e-07, 0.07350432872772217, 0.10548943281173706, 0.10855245590209961, 0.11153793334960938, 0.11170679330825806]], [[294, 180, 362, 367, 98, 191], [5.960464477539063e-08, 0.23050177097320557, 0.24189400672912598, 0.2475716471672058, 0.2652132511138916, 0.27455025911331177]], [[295, 88, 203, 199, 104, 63], [0.0, 0.044881224632263184, 0.0644034743309021, 0.08035171031951904, 0.0836673378944397, 0.08949708938598633]], [[296, 212, 219, 95, 321, 101], [1.1920928955078125e-07, 0.08799147605895996, 0.09373527765274048, 0.11066526174545288, 0.11206430196762085, 0.11286532878875732]], [[297, 215, 315, 173, 264, 388], [0.0, 0.03982400894165039, 0.04051452875137329, 0.044446706771850586, 0.04460024833679199, 0.0458376407623291]], [[298, 91, 165, 202, 163, 46], [0.0, 0.0764613151550293, 0.08623778820037842, 0.08670163154602051, 0.08697837591171265, 0.08934038877487183]], [[299, 219, 321, 8, 91, 221], [0.0, 0.0465923547744751, 0.051371097564697266, 0.056941986083984375, 0.06075394153594971, 0.06125450134277344]], [[300, 243, 135, 254, 87, 5], [1.1920928955078125e-07, 0.10621058940887451, 0.1088402271270752, 0.11114859580993652, 0.11517488956451416, 0.116111159324646]], [[301, 313, 299, 47, 345, 8], [1.7881393432617188e-07, 0.06776642799377441, 0.07012295722961426, 0.07044178247451782, 0.07238805294036865, 0.07264143228530884]], [[302, 209, 266, 245, 56, 200], [2.384185791015625e-07, 0.08683079481124878, 0.08722388744354248, 0.0990985631942749, 0.10015982389450073, 0.10617649555206299]], [[303, 288, 19, 351, 339, 86], [0.0, 0.03927206993103027, 0.04062122106552124, 0.041650235652923584, 0.042568981647491455, 0.046943604946136475]], [[304, 13, 374, 231, 347, 289], [0.0, 0.04616272449493408, 0.047936320304870605, 0.04843538999557495, 0.05087113380432129, 0.05490243434906006]], [[305, 57, 386, 100, 17, 292], [0.0, 0.05601775646209717, 0.05782437324523926, 0.061225295066833496, 0.06582891941070557, 0.06650185585021973]], [[306, 50, 171, 99, 386, 161], [0.0, 0.09126144647598267, 0.11265754699707031, 0.11875498294830322, 0.12428486347198486, 0.12440824508666992]], [[307, 75, 117, 91, 190, 46], [0.0, 0.049049556255340576, 0.049109578132629395, 0.05569726228713989, 0.059270381927490234, 0.05997884273529053]], [[308, 335, 1, 182, 248, 264], [0.0, 0.05675303936004639, 0.05873662233352661, 0.06108289957046509, 0.07594621181488037, 0.08117151260375977]], [[309, 76, 52, 166, 375, 168], [0.0, 0.07609665393829346, 0.08114540576934814, 0.08554476499557495, 0.08778238296508789, 0.08961915969848633]], [[310, 262, 150, 62, 144, 349], [5.960464477539063e-08, 0.10105150938034058, 0.120627760887146, 0.12234485149383545, 0.12921500205993652, 0.1293470859527588]], [[311, 166, 168, 139, 155, 13], [0.0, 0.05621558427810669, 0.05893987417221069, 0.062281012535095215, 0.06479793787002563, 0.0690237283706665]], [[312, 269, 288, 182, 322, 206], [0.0, 0.04907113313674927, 0.06162261962890625, 0.06232297420501709, 0.06593751907348633, 0.06698447465896606]], [[313, 151, 8, 46, 117, 372], [1.1920928955078125e-07, 0.042961299419403076, 0.04610252380371094, 0.04911649227142334, 0.051548779010772705, 0.05292773246765137]], [[314, 96, 15, 66, 45, 7], [0.0, 0.10416150093078613, 0.10695964097976685, 0.11011087894439697, 0.11841833591461182, 0.11849546432495117]], [[315, 152, 215, 297, 19, 346], [0.0, 0.025939881801605225, 0.03874093294143677, 0.04051452875137329, 0.046284496784210205, 0.04641503095626831]], [[316, 187, 355, 181, 21, 310], [0.0, 0.1203203797340393, 0.13318681716918945, 0.1412954330444336, 0.1428539752960205, 0.15394890308380127]], [[317, 163, 246, 284, 134, 342], [0.0, 0.07104361057281494, 0.07464897632598877, 0.07738995552062988, 0.08496689796447754, 0.08564084768295288]], [[318, 177, 200, 29, 118, 388], [1.1920928955078125e-07, 0.07598745822906494, 0.08652377128601074, 0.09463256597518921, 0.10592859983444214, 0.10957849025726318]], [[319, 351, 331, 268, 260, 19], [0.0, 0.057172298431396484, 0.06419873237609863, 0.06447470188140869, 0.06787759065628052, 0.0681147575378418]], [[320, 303, 339, 283, 276, 38], [5.960464477539063e-08, 0.07463830709457397, 0.07960259914398193, 0.08238983154296875, 0.0833888053894043, 0.08408427238464355]], [[321, 8, 372, 224, 95, 253], [0.0, 0.03046882152557373, 0.04243266582489014, 0.04515945911407471, 0.04649758338928223, 0.047764480113983154]], [[322, 312, 329, 182, 137, 25], [0.0, 0.06593751907348633, 0.07553726434707642, 0.07633191347122192, 0.0781780481338501, 0.07945442199707031]], [[323, 347, 213, 299, 221, 304], [0.0, 0.06761026382446289, 0.06875884532928467, 0.07075738906860352, 0.07147520780563354, 0.07245767116546631]], [[324, 176, 164, 225, 389, 236], [0.0, 0.08187150955200195, 0.0875503420829773, 0.09000933170318604, 0.09170740842819214, 0.09402036666870117]], [[325, 334, 42, 26, 256, 153], [0.0, 0.19073832035064697, 0.20836347341537476, 0.257876455783844, 0.2724803686141968, 0.27290797233581543]], [[326, 264, 388, 297, 341, 248], [0.0, 0.04307854175567627, 0.044568419456481934, 0.045932233333587646, 0.05069541931152344, 0.05250287055969238]], [[327, 112, 105, 378, 12, 154], [0.0, 0.05435752868652344, 0.05435752868652344, 0.0715188980102539, 0.08104133605957031, 0.08265650272369385]], [[328, 108, 249, 296, 138, 213], [0.0, 0.08239531517028809, 0.1142808198928833, 0.1560470461845398, 0.1578301191329956, 0.16361010074615479]], [[329, 137, 152, 315, 215, 233], [0.0, 0.04429143667221069, 0.04730415344238281, 0.05535697937011719, 0.05952489376068115, 0.06006050109863281]], [[330, 293, 389, 217, 86, 164], [5.960464477539063e-08, 0.07350432872772217, 0.0969545841217041, 0.0982547402381897, 0.09884679317474365, 0.09957504272460938]], [[331, 288, 373, 363, 69, 303], [0.0, 0.027839303016662598, 0.034401535987854004, 0.038819313049316406, 0.04561668634414673, 0.0475468635559082]], [[332, 22, 116, 382, 365, 384], [5.960464477539063e-08, 0.08530533313751221, 0.08790826797485352, 0.09442883729934692, 0.10882997512817383, 0.11858075857162476]], [[333, 116, 332, 102, 365, 120], [0.0, 0.06863021850585938, 0.12136560678482056, 0.1216202974319458, 0.1228380799293518, 0.14308273792266846]], [[334, 184, 144, 127, 325, 150], [5.960464477539063e-08, 0.15888965129852295, 0.16191941499710083, 0.1877266764640808, 0.19073832035064697, 0.21324670314788818]], [[335, 308, 1, 131, 177, 273], [5.960464477539063e-08, 0.05675303936004639, 0.06430906057357788, 0.074149489402771, 0.09206676483154297, 0.09777271747589111]], [[336, 69, 77, 331, 373, 351], [1.1920928955078125e-07, 0.04863053560256958, 0.05646979808807373, 0.06160604953765869, 0.06212282180786133, 0.06423449516296387]], [[337, 168, 76, 210, 166, 139], [0.0, 0.06913262605667114, 0.07047748565673828, 0.0716477632522583, 0.07197761535644531, 0.07750082015991211]], [[338, 283, 206, 130, 247, 274], [0.0, 0.0997501015663147, 0.1050717830657959, 0.10827946662902832, 0.10839003324508667, 0.11244672536849976]], [[339, 233, 303, 268, 19, 288], [0.0, 0.04107910394668579, 0.042568981647491455, 0.04681771993637085, 0.05602717399597168, 0.06087464094161987]], [[340, 125, 78, 197, 388, 262], [0.0, 0.0762563943862915, 0.0786779522895813, 0.08934658765792847, 0.09838312864303589, 0.0997617244720459]], [[341, 326, 349, 36, 264, 388], [5.960464477539063e-08, 0.05069541931152344, 0.05247986316680908, 0.055358171463012695, 0.05793386697769165, 0.06310844421386719]], [[342, 282, 246, 132, 188, 163], [5.960464477539063e-08, 0.05993133783340454, 0.06389498710632324, 0.06911766529083252, 0.06911766529083252, 0.07010316848754883]], [[343, 229, 96, 196, 378, 71], [0.0, 0.058039844036102295, 0.06213557720184326, 0.06473851203918457, 0.07081723213195801, 0.07203304767608643]], [[344, 359, 95, 211, 49, 285], [0.0, 0.05843091011047363, 0.08642023801803589, 0.0870211124420166, 0.08802950382232666, 0.0897831916809082]], [[345, 136, 313, 132, 188, 8], [0.0, 0.05446004867553711, 0.05659574270248413, 0.057068049907684326, 0.057068049907684326, 0.05854952335357666]], [[387, 346, 315, 152, 264, 297], [0.0, 0.0, 0.04641503095626831, 0.0478900671005249, 0.04920417070388794, 0.05038332939147949]], [[347, 289, 304, 281, 20, 374], [1.1920928955078125e-07, 0.045119643211364746, 0.05087113380432129, 0.054061710834503174, 0.05472034215927124, 0.06261008977890015]], [[348, 60, 67, 178, 55, 10], [0.0, 0.05217677354812622, 0.05234450101852417, 0.06321114301681519, 0.06871509552001953, 0.0742417573928833]], [[349, 341, 326, 388, 173, 264], [0.0, 0.05247986316680908, 0.056552886962890625, 0.058469414710998535, 0.0611722469329834, 0.06245839595794678]], [[350, 224, 253, 216, 372, 321], [0.0, 0.05838167667388916, 0.06641924381256104, 0.06684821844100952, 0.0706171989440918, 0.0720822811126709]], [[351, 157, 303, 140, 172, 288], [0.0, 0.04097670316696167, 0.041650235652923584, 0.050107717514038086, 0.050922274589538574, 0.05100816488265991]], [[352, 178, 67, 60, 10, 348], [0.0, 0.048963844776153564, 0.058455705642700195, 0.05942666530609131, 0.07143038511276245, 0.07425081729888916]], [[353, 8, 383, 321, 143, 151], [1.1920928955078125e-07, 0.0534975528717041, 0.06119650602340698, 0.061949968338012695, 0.06536757946014404, 0.06628632545471191]], [[354, 276, 127, 38, 206, 267], [0.0, 0.0759652853012085, 0.09810268878936768, 0.10548591613769531, 0.10928034782409668, 0.11062818765640259]], [[355, 125, 29, 318, 200, 262], [0.0, 0.09951424598693848, 0.10733246803283691, 0.1129341721534729, 0.1209675669670105, 0.12102353572845459]], [[356, 168, 128, 311, 374, 166], [0.0, 0.10542583465576172, 0.11813569068908691, 0.11967229843139648, 0.12026029825210571, 0.12747657299041748]], [[357, 219, 359, 353, 347, 350], [0.0, 0.06830102205276489, 0.08395975828170776, 0.08658337593078613, 0.09591937065124512, 0.0964195728302002]], [[358, 280, 315, 254, 35, 340], [0.0, 0.08801501989364624, 0.10729539394378662, 0.11087137460708618, 0.11285018920898438, 0.12003719806671143]], [[359, 285, 344, 304, 49, 95], [0.0, 0.05248570442199707, 0.05843091011047363, 0.058469533920288086, 0.06213235855102539, 0.06266748905181885]], [[360, 20, 347, 374, 231, 353], [0.0, 0.061170876026153564, 0.0643267035484314, 0.06894165277481079, 0.08408069610595703, 0.08515703678131104]], [[361, 133, 284, 323, 359, 379], [0.0, 0.07708626985549927, 0.07780963182449341, 0.08486324548721313, 0.08513146638870239, 0.0874943733215332]], [[362, 98, 109, 369, 72, 348], [1.1920928955078125e-07, 0.15389442443847656, 0.1991451382637024, 0.2075546383857727, 0.2129327654838562, 0.22282814979553223]], [[363, 331, 288, 260, 172, 69], [0.0, 0.038819313049316406, 0.04050922393798828, 0.041184306144714355, 0.04405093193054199, 0.044667959213256836]], [[364, 187, 236, 180, 316, 151], [0.0, 0.13787120580673218, 0.14192986488342285, 0.1472560167312622, 0.16062122583389282, 0.1642172932624817]], [[365, 6, 71, 171, 384, 12], [0.0, 0.09160000085830688, 0.09196507930755615, 0.10402095317840576, 0.10615408420562744, 0.10824704170227051]], [[366, 95, 321, 224, 285, 253], [0.0, 0.04673123359680176, 0.049785494804382324, 0.060256123542785645, 0.06336390972137451, 0.06398439407348633]], [[367, 191, 383, 219, 353, 347], [0.0, 0.08043456077575684, 0.11865586042404175, 0.13335072994232178, 0.13763201236724854, 0.1380765438079834]], [[368, 361, 379, 20, 347, 289], [0.0, 0.08775055408477783, 0.08788299560546875, 0.09014463424682617, 0.09836161136627197, 0.09879195690155029]], [[369, 281, 13, 82, 231, 139], [1.1920928955078125e-07, 0.10062682628631592, 0.11288124322891235, 0.11928069591522217, 0.12688541412353516, 0.12852996587753296]], [[370, 221, 323, 228, 128, 220], [0.0, 0.10689890384674072, 0.11113089323043823, 0.11400377750396729, 0.12057745456695557, 0.13412034511566162]], [[371, 331, 373, 288, 97, 363], [0.0, 0.07231360673904419, 0.07725876569747925, 0.07972174882888794, 0.08429688215255737, 0.08433985710144043]], [[372, 321, 313, 8, 151, 136], [0.0, 0.04243266582489014, 0.05292773246765137, 0.05308419466018677, 0.053322792053222656, 0.05532360076904297]], [[373, 331, 288, 363, 69, 303], [0.0, 0.034401535987854004, 0.04128873348236084, 0.04657423496246338, 0.052274465560913086, 0.0582505464553833]], [[374, 231, 304, 128, 281, 13], [0.0, 0.04459434747695923, 0.047936320304870605, 0.0487520694732666, 0.058662474155426025, 0.06017768383026123]], [[375, 32, 76, 51, 210, 84], [2.384185791015625e-07, 0.06378889083862305, 0.0643799901008606, 0.07914280891418457, 0.08125960826873779, 0.08215689659118652]], [[376, 229, 92, 45, 154, 378], [0.0, 0.07085955142974854, 0.07370626926422119, 0.07904994487762451, 0.08417898416519165, 0.08616083860397339]], [[377, 8, 163, 202, 151, 247], [1.1920928955078125e-07, 0.05127918720245361, 0.05167233943939209, 0.05661022663116455, 0.05780613422393799, 0.0677417516708374]], [[378, 154, 45, 229, 96, 196], [0.0, 0.041099607944488525, 0.04539757966995239, 0.04581707715988159, 0.050690293312072754, 0.054442763328552246]], [[379, 304, 213, 95, 49, 359], [0.0, 0.057021915912628174, 0.05839955806732178, 0.06133770942687988, 0.06211531162261963, 0.06681966781616211]], [[380, 262, 100, 349, 251, 257], [0.0, 0.07526886463165283, 0.08793282508850098, 0.09064650535583496, 0.09894859790802002, 0.1000814437866211]], [[381, 127, 118, 355, 354, 267], [0.0, 0.07926666736602783, 0.11477428674697876, 0.12137174606323242, 0.1270795464515686, 0.14360886812210083]], [[382, 22, 332, 116, 380, 258], [0.0, 0.07650792598724365, 0.09442883729934692, 0.10010802745819092, 0.11742997169494629, 0.12010425329208374]], [[383, 8, 353, 151, 114, 321], [0.0, 0.05677920579910278, 0.06119650602340698, 0.06440353393554688, 0.07102227210998535, 0.07439041137695312]], [[384, 386, 110, 292, 305, 100], [0.0, 0.0470728874206543, 0.06573820114135742, 0.07013511657714844, 0.07468140125274658, 0.07850885391235352]], [[385, 85, 150, 240, 124, 263], [0.0, 0.058542847633361816, 0.07759344577789307, 0.08080339431762695, 0.08621573448181152, 0.09627079963684082]], [[386, 384, 292, 100, 305, 232], [1.1920928955078125e-07, 0.0470728874206543, 0.053168296813964844, 0.05370521545410156, 0.05782437324523926, 0.07286757230758667]], [[387, 346, 315, 152, 264, 297], [0.0, 0.0, 0.04641503095626831, 0.0478900671005249, 0.04920417070388794, 0.05038332939147949]], [[388, 326, 297, 248, 215, 152], [1.1920928955078125e-07, 0.044568419456481934, 0.0458376407623291, 0.05191069841384888, 0.05220592021942139, 0.05337119102478027]], [[389, 164, 193, 163, 247, 176], [0.0, 0.04684293270111084, 0.05505537986755371, 0.06487202644348145, 0.06634032726287842, 0.06893455982208252]]]
#material
#arr = [[[0, 85, 122, 123, 144, 136], [1.1102230246251565e-16, 0.0037238606918820194, 0.004294924775404496, 0.005215244518371853, 0.005322740266486936, 0.005507408310754691]], [[1, 74, 77, 69, 60, 3], [0.0, 0.0073575493494688615, 0.0077341369321182185, 0.015151470215409413, 0.016733581363366334, 0.021210746526266422]], [[2, 39, 43, 70, 96, 17], [0.0, 0.010841308112169323, 0.025475308161440946, 0.0281763981486729, 0.0285238741477315, 0.028539607047489812]], [[3, 74, 1, 6, 5, 46], [0.0, 0.021040963151627512, 0.021210746526266422, 0.0225468457810184, 0.02287331575184126, 0.02287331575184126]], [[4, 33, 18, 22, 10, 346], [0.0, 0.0033192913288883075, 0.006120627551838842, 0.009936223760966256, 0.011254676838570288, 0.016880942705457147]], [[5, 46, 8, 19, 301, 167], [2.220446049250313e-16, 2.220446049250313e-16, 0.010118003407665555, 0.015249068279530431, 0.01533388335487007, 0.016083733044451876]], [[6, 24, 126, 60, 123, 122], [1.1102230246251565e-16, 0.006287295562535489, 0.00638176572540361, 0.006579436915938097, 0.0072415657907430875, 0.00746513230896273]], [[7, 338, 140, 278, 286, 166], [0.0, 0.005027845830225641, 0.006004384229012616, 0.006167175994712393, 0.00803866192194469, 0.008991940160625989]], [[8, 301, 107, 177, 284, 140], [1.1102230246251565e-16, 0.0019881683513983672, 0.0029490446148027205, 0.004427715009876043, 0.004502607032066064, 0.005436634408391261]], [[9, 31, 8, 301, 338, 284], [0.0, 0.021945114750374084, 0.030614609133159165, 0.030869441946096643, 0.03370732402322563, 0.03390676962441275]], [[10, 22, 4, 23, 206, 33], [0.0, 0.007756237597196902, 0.011254676838570288, 0.0135985647833059, 0.013962126707013245, 0.014593972341047423]], [[11, 112, 110, 52, 79, 259], [1.1102230246251565e-16, 0.1169557329885268, 0.15702822548921413, 0.20735139192108587, 0.21387616177258462, 0.22511327657011138]], [[12, 85, 13, 86, 67, 144], [1.1102230246251565e-16, 0.0026564267672556374, 0.002796746807568362, 0.0034922665179563106, 0.00392824529171365, 0.004060698885230529]], [[13, 40, 67, 103, 136, 17], [0.0, 0.001628668813055012, 0.0016771064347457232, 0.0018002117700844922, 0.0022126578179212375, 0.0022316322152858836]], [[14, 27, 382, 78, 103, 165], [0.0, 0.0021345059590256454, 0.0021559039047259754, 0.0022505762990918665, 0.0023356861427651365, 0.002799554595387499]], [[15, 24, 40, 103, 136, 159], [1.1102230246251565e-16, 0.0020066284169920623, 0.003224013970659634, 0.003942858106775082, 0.0040172553510891, 0.004181435143706502]], [[16, 91, 154, 161, 141, 243], [0.0, 0.009600963588952682, 0.00967592363295966, 0.00967592363295966, 0.00990853361287658, 0.010070696633053822]], [[17, 345, 197, 159, 365, 383], [0.0, 0.00046578140214748043, 0.0004958962066315964, 0.0005048999269711141, 0.0005349237575977828, 0.0005372868253664675]], [[18, 4, 33, 22, 346, 10], [0.0, 0.006120627551838842, 0.009131317851275078, 0.014570511489963911, 0.01727132642912954, 0.018941197115547204]], [[19, 122, 0, 85, 144, 25], [0.0, 0.005299376313756432, 0.005524129401898392, 0.005762163080632932, 0.005909150051006895, 0.006083543956251214]], [[20, 355, 205, 324, 256, 230], [0.0, 0.003829583477203302, 0.0041079604820467575, 0.004251932958105775, 0.004611255346264609, 0.0047057663494373125]], [[21, 84, 44, 174, 63, 97], [2.220446049250313e-16, 0.004335837981277013, 0.007865758277550094, 0.008508184441014865, 0.008817618369016178, 0.010477468629888964]], [[22, 10, 4, 33, 23, 24], [0.0, 0.007756237597196902, 0.009936223760966256, 0.012109077090557863, 0.012798029381898446, 0.013677480260457453]], [[23, 96, 239, 70, 206, 24], [0.0, 0.004600398234978487, 0.004898370569102917, 0.005103195137798444, 0.005623005100530487, 0.006300539958736584]], [[24, 15, 96, 70, 40, 136], [1.1102230246251565e-16, 0.0020066284169920623, 0.0037024025695676643, 0.005862796698315242, 0.005940779857792844, 0.006148425053355555]], [[25, 12, 19, 0, 85, 13], [0.0, 0.00516345759923853, 0.006083543956251214, 0.006948309287092225, 0.00885326751233706, 0.00888859861332758]], [[26, 28, 224, 149, 208, 214], [0.0, 0.005872748136883765, 0.00877598246853517, 0.008959470550087167, 0.009041787422716996, 0.009113315704685432]], [[27, 382, 78, 210, 103, 30], [0.0, 0.001248884690200902, 0.0013939537409488612, 0.0015188692815992777, 0.001663398502915081, 0.0016648573381150555]], [[28, 13, 67, 150, 17, 103], [0.0, 0.0026018708635705545, 0.0031480734694369072, 0.0034496286354025463, 0.0035096718336675714, 0.0037652215061911853]], [[29, 159, 365, 187, 223, 17], [0.0, 0.00047914703195872654, 0.0005252408983796863, 0.0005439070588952877, 0.0006735080543751604, 0.0006847658531035083]], [[30, 27, 78, 382, 210, 387], [0.0, 0.0016648573381150555, 0.002885280911467336, 0.002943710590773474, 0.0033850204237322323, 0.0035160928518961354]], [[31, 218, 378, 149, 304, 214], [0.0, 0.0077052931572682, 0.007910313306282113, 0.008738790304471, 0.008980016038800054, 0.008980111547663316]], [[32, 25, 26, 12, 59, 28], [0.0, 0.03972285077913129, 0.04349412739908931, 0.04526486645829997, 0.04583135276227712, 0.04800293153152113]], [[33, 4, 18, 22, 10, 346], [0.0, 0.0033192913288883075, 0.009131317851275078, 0.012109077090557863, 0.014593972341047423, 0.019298134414060808]], [[34, 386, 206, 239, 344, 208], [1.1102230246251565e-16, 0.005637919689715054, 0.007129218034151896, 0.007160800992629501, 0.007821069497189748, 0.008113557690435758]], [[35, 65, 300, 213, 357, 41], [0.0, 0.18086276819937264, 0.23389536151411505, 0.25573979394351687, 0.2917025183979858, 0.32260570552651435]], [[36, 312, 30, 45, 48, 337], [1.1102230246251565e-16, 0.02545546596297088, 0.028895961173812656, 0.028911779838673435, 0.030245312800025514, 0.031474130095031194]], [[37, 385, 301, 8, 284, 4], [2.220446049250313e-16, 0.018379390024499065, 0.018431871752247142, 0.021215928708885556, 0.022359858873097105, 0.023698842680160537]], [[38, 195, 301, 188, 352, 140], [0.0, 0.008250648553632667, 0.010646331991309599, 0.011571771979145717, 0.011924291434506684, 0.011927419755140778]], [[39, 152, 383, 136, 197, 345], [0.0, 0.0068021398722407644, 0.006906649277202637, 0.00691288677787838, 0.0069301383118930415, 0.006939284781993904]], [[40, 136, 159, 85, 103, 13], [1.1102230246251565e-16, 0.0003942700970840374, 0.00137706809168181, 0.0014327776873594988, 0.0014878185951668899, 0.001628668813055012]], [[41, 357, 71, 229, 300, 141], [1.1102230246251565e-16, 0.00848889869992353, 0.009642285673555073, 0.011792975016709617, 0.012317220195299683, 0.01574160032672145]], [[42, 233, 186, 287, 258, 276], [0.0, 0.0018464038143776174, 0.001892497674082505, 0.0019426204203979447, 0.0019629106889923476, 0.0020858002893366923]], [[43, 107, 177, 214, 378, 8], [0.0, 0.007294477026396962, 0.007494725937956304, 0.008259594041565177, 0.008924674101308927, 0.008983633445778239]], [[44, 14, 30, 84, 146, 27], [2.220446049250313e-16, 0.005003862649008317, 0.00602163687327506, 0.006370296456636115, 0.007090666774960397, 0.007266527613824958]], [[45, 36, 312, 8, 301, 19], [0.0, 0.028911779838673435, 0.0385179640990817, 0.047603598928426916, 0.049876774013171477, 0.050105949343614786]], [[5, 46, 8, 19, 301, 167], [2.220446049250313e-16, 2.220446049250313e-16, 0.010118003407665555, 0.015249068279530431, 0.01533388335487007, 0.016083733044451876]], [[47, 349, 96, 70, 159, 17], [0.0, 0.013931671536282275, 0.015281454037296305, 0.015350979125838049, 0.01605747576679073, 0.016310653031179734]], [[48, 68, 30, 114, 91, 27], [0.0, 0.006095846884599632, 0.006103271185819881, 0.006310587593590045, 0.0065121405174408675, 0.006895925975322403]], [[49, 363, 151, 326, 75, 197], [0.0, 0.0001159059298493359, 0.00017939318238591184, 0.00024416997142173713, 0.00031423437935240717, 0.0005274347425265891]], [[50, 193, 303, 345, 275, 211], [0.0, 0.0007616141352454475, 0.0009726599452576368, 0.0011242155856063807, 0.0011499811846441554, 0.001159366818682117]], [[51, 121, 98, 73, 179, 142], [0.0, 0.00022313508358129397, 0.012070981722101415, 0.02078785233783098, 0.027640920522143952, 0.02892292104508254]], [[52, 81, 125, 101, 93, 200], [0.0, 0.007958992975723667, 0.011556187435676768, 0.015159710381531077, 0.02686207495083015, 0.02778780637870082]], [[53, 117, 72, 113, 127, 119], [1.1102230246251565e-16, 0.0003568821734355465, 0.0006985717087625298, 0.0007724764067341683, 0.0011017440343140672, 0.0011411729251742386]], [[54, 93, 220, 355, 203, 95], [0.0, 0.003083155574060359, 0.004280233305062109, 0.006221106141180099, 0.007256307486707914, 0.0077465936444742756]], [[55, 128, 134, 57, 325, 207], [0.0, 0.13591683865884763, 0.14845111367433805, 0.25240026401246396, 0.28255502910849994, 0.32962030757418814]], [[56, 270, 151, 49, 327, 254], [0.0, 0.0060288312938171496, 0.006558781343816822, 0.006916613772153468, 0.006926558754208556, 0.007530066807400648]], [[57, 232, 202, 174, 325, 21], [0.0, 0.08066919606790968, 0.08237513673286556, 0.08280386031200448, 0.08287256376853147, 0.08779095917846069]], [[58, 108, 64, 381, 383, 152], [1.1102230246251565e-16, 0.00014513077286781861, 0.0003121620552027915, 0.0008667097167774918, 0.0009283864139035813, 0.0009386108517990266]], [[59, 67, 150, 332, 115, 28], [1.1102230246251565e-16, 0.011804586918769289, 0.011872733201583219, 0.011968504451528972, 0.011982924478518453, 0.012059655607350783]], [[60, 122, 123, 135, 74, 85], [0.0, 0.0017671987259958444, 0.0021416771494204845, 0.0027894661983975944, 0.0028961074456008706, 0.0043256683451553535]], [[61, 56, 137, 222, 380, 333], [0.0, 0.012341653919201945, 0.014401967012609984, 0.014605002938478884, 0.01627833163371517, 0.018305454083280548]], [[62, 143, 371, 29, 184, 75], [0.0, 0.007368105066671515, 0.00821927507972986, 0.008325907753650719, 0.008356613059053442, 0.008398491249730244]], [[63, 122, 85, 84, 123, 40], [0.0, 0.002952467744306353, 0.0035715138202356833, 0.0038404848670968716, 0.0046119649495894866, 0.0048500597807483725]], [[64, 58, 108, 17, 345, 152], [1.1102230246251565e-16, 0.0003121620552027915, 0.00032914286960228356, 0.0006783097312040853, 0.0007741794927148549, 0.0008053475666894849]], [[65, 124, 300, 357, 213, 71], [0.0, 0.035965403918702066, 0.041000082971106244, 0.05082219009287858, 0.05389411249847342, 0.06672028510929995]], [[66, 124, 65, 364, 105, 328], [0.0, 0.44298917036949403, 0.47384462654525794, 0.5260616282222064, 0.5262334375067994, 0.535503644583266]], [[67, 76, 192, 17, 326, 75], [1.1102230246251565e-16, 0.0011106385411518982, 0.0012131127394554575, 0.0012506314283680098, 0.0012508007423748246, 0.001269260406278061]], [[68, 91, 168, 191, 229, 387], [0.0, 0.002280463453672721, 0.0024751440062453778, 0.0028624195395781094, 0.0030698439405743017, 0.0032811027822249317]], [[69, 74, 60, 6, 135, 126], [0.0, 0.007317921729402155, 0.008905668782471676, 0.011142529603215712, 0.012033122362548054, 0.012188016820680492]], [[70, 64, 17, 159, 108, 343], [1.1102230246251565e-16, 0.0010467274524441628, 0.001063043624706772, 0.0016906462444878922, 0.0017232321423945596, 0.0017922547373337983]], [[71, 41, 229, 141, 357, 311], [0.0, 0.009642285673555073, 0.012459092275087458, 0.013290168478813813, 0.013860351365951873, 0.01649168548091151]], [[72, 117, 381, 53, 58, 113], [0.0, 0.00040960674386403273, 0.0005584996856728974, 0.0006985717087625298, 0.0010287537979005723, 0.0010957241326071676]], [[73, 142, 98, 179, 102, 309], [0.0, 0.0012211068314161855, 0.00408547888847266, 0.005067673410673379, 0.006990767594821201, 0.0071241592252616615]], [[74, 60, 123, 135, 122, 69], [0.0, 0.0028961074456008706, 0.005287196723512522, 0.005864806809103951, 0.006879392821390828, 0.007317921729402155]], [[75, 197, 383, 152, 326, 345], [1.1102230246251565e-16, 0.00023061030529847315, 0.000236026283136348, 0.0002759281596673713, 0.000285913718182762, 0.00028725126453332805]], [[76, 383, 267, 152, 75, 111], [0.0, 0.00034233021372398476, 0.0003955220557000372, 0.0004091973325462961, 0.00041465010423780146, 0.0004466964996349132]], [[77, 1, 74, 69, 3, 126], [0.0, 0.0077341369321182185, 0.022659126396609497, 0.030719570279379882, 0.033195381619972375, 0.03862087063759767]], [[78, 289, 160, 382, 210, 387], [0.0, 0.0007908559482855404, 0.0008092081514788907, 0.0008996715597339167, 0.0011822210008064493, 0.0011835442728354018]], [[79, 200, 112, 110, 32, 213], [0.0, 0.12376660908341608, 0.1252612280772556, 0.13662865632314414, 0.14923433733066194, 0.15276648239169388]], [[80, 290, 211, 308, 158, 343], [1.1102230246251565e-16, 0.000667569908151866, 0.0007658148814387866, 0.0007728234609633011, 0.0007773818202517768, 0.000778398665883695]], [[81, 125, 101, 52, 93, 220], [2.220446049250313e-16, 0.000416581495789603, 0.0016292680318785724, 0.007958992975723667, 0.00960414599810766, 0.010220463007135083]], [[82, 142, 73, 102, 309, 179], [0.0, 0.003860720170444143, 0.007304686141754058, 0.010385414390376435, 0.010573190000497501, 0.010960464670702885]], [[83, 78, 138, 27, 382, 289], [0.0, 0.002519433084226308, 0.002779769544956512, 0.0029163768654550948, 0.003558062915882343, 0.003589442018740785]], [[84, 63, 21, 14, 44, 118], [2.220446049250313e-16, 0.0038404848670968716, 0.004335837981277013, 0.006168203630150915, 0.006370296456636115, 0.007749099385754632]], [[85, 122, 144, 40, 136, 123], [0.0, 0.0009448431254608369, 0.0013580767781296021, 0.0014327776873594988, 0.0016635845267508609, 0.002124972545903936]], [[86, 40, 67, 13, 136, 108], [0.0, 0.0018483343671610308, 0.0021633869316598497, 0.002338727753223191, 0.0024068104279109104, 0.00241791842700001]], [[87, 292, 198, 205, 90, 257], [0.0, 0.000527929466826893, 0.0011539102769834164, 0.0012452821188686514, 0.001401579715737289, 0.0017315949482541448]], [[88, 95, 355, 87, 324, 220], [0.0, 0.0016729980584541115, 0.003491239691174708, 0.004549373615446606, 0.0045820182468577775, 0.004633552413491504]], [[89, 386, 109, 116, 208, 50], [0.0, 0.00660901994834151, 0.006822541760495349, 0.007863739288424765, 0.008339040060992176, 0.008426154419415632]], [[90, 257, 340, 205, 371, 292], [0.0, 0.00010238618628100049, 0.00013322884815170077, 0.0003391978430871134, 0.00035999831929900417, 0.0005189484206833406]], [[91, 243, 154, 161, 114, 194], [0.0, 0.0005140144794650858, 0.0013693768214123603, 0.0013693768214123603, 0.0014891327006293364, 0.002257540167906469]], [[92, 103, 138, 97, 15, 28], [1.1102230246251565e-16, 0.008250978332365655, 0.008924357007266348, 0.010087682912783502, 0.010701860840758304, 0.010960522694728358]], [[93, 220, 54, 101, 200, 95], [0.0, 0.0021459618469691355, 0.003083155574060359, 0.004447984333002419, 0.004959407096901569, 0.005272316826884227]], [[94, 88, 95, 220, 101, 93], [0.0, 0.004879858035156559, 0.0054374737484369495, 0.008078786696265605, 0.008332922510267737, 0.00879603243141347]], [[95, 88, 220, 355, 101, 330], [0.0, 0.0016729980584541115, 0.003462766609841905, 0.003597021192627614, 0.004513033981805692, 0.004652103838092669]], [[96, 70, 17, 64, 159, 150], [1.1102230246251565e-16, 0.0021683854604885866, 0.0028273530352240783, 0.0035051204000368097, 0.0035272998267423805, 0.0035682078621556146]], [[97, 84, 92, 21, 63, 14], [1.1102230246251565e-16, 0.008142376159398945, 0.010087682912783502, 0.010477468629888964, 0.012293650629635389, 0.012665078404529684]], [[98, 73, 142, 179, 51, 82], [2.220446049250313e-16, 0.00408547888847266, 0.0076884978330213904, 0.009838946787198877, 0.012070981722101415, 0.012679895801451568]], [[99, 241, 183, 371, 152, 162], [0.0, 0.0031434085931890676, 0.0033844930794458827, 0.004321355790130155, 0.00448569504825469, 0.0049126132942286516]], [[100, 133, 186, 369, 130, 165], [0.0, 0.008946469960234626, 0.011507469647851876, 0.011807552264003096, 0.012053842224368005, 0.01207368846597412]], [[101, 125, 81, 220, 93, 95], [1.1102230246251565e-16, 0.0005245512634838301, 0.0016292680318785724, 0.004209112544376614, 0.004447984333002419, 0.004513033981805692]], [[102, 127, 113, 117, 53, 72], [1.1102230246251565e-16, 0.00044872427668185555, 0.0006436589679563731, 0.0016611187081552181, 0.001985275161888733, 0.0024478245913499563]], [[103, 308, 343, 290, 210, 40], [0.0, 0.001352206248583676, 0.001355523036356887, 0.0013646016441215547, 0.0014455083116863277, 0.0014878185951668899]], [[104, 367, 272, 169, 303, 151], [0.0, 0.008885745945864332, 0.00898080294121828, 0.00898499191259472, 0.009130374987445622, 0.009474942378946305]], [[105, 328, 228, 381, 72, 108], [1.1102230246251565e-16, 0.0010663597173665718, 0.003144832147769505, 0.0039822146114991686, 0.004495985479032516, 0.0046719479828986055]], [[106, 230, 180, 257, 289, 90], [1.1102230246251565e-16, 0.0007516441120059003, 0.0007711775868768367, 0.0008044240713752648, 0.0008096295783888152, 0.0008563419228598823]], [[107, 214, 378, 149, 177, 372], [0.0, 0.001250974809151817, 0.0013302338649938683, 0.0020937462484178493, 0.0025967141482594602, 0.0028160454137104995]], [[108, 58, 64, 381, 115, 345], [0.0, 0.00014513077286781861, 0.00032914286960228356, 0.0008621619886627352, 0.0010291134800106683, 0.0010381428124790482]], [[109, 116, 386, 50, 211, 332], [0.0, 0.002317611345666548, 0.004068498995587255, 0.004344940409279796, 0.0044211111995486885, 0.004662411281621814]], [[110, 112, 200, 93, 220, 203], [0.0, 0.01134094874183511, 0.01597976345004215, 0.0171844052024418, 0.01947528393383835, 0.021645811714160912]], [[111, 267, 383, 152, 197, 76], [2.220446049250313e-16, 9.598302356539357e-05, 0.000323954233137691, 0.000389280175573381, 0.0004270555128020881, 0.0004466964996349132]], [[112, 110, 200, 52, 93, 81], [2.220446049250313e-16, 0.01134094874183511, 0.026227395318173197, 0.03076188871040053, 0.032590618801843885, 0.034803020424468034]], [[113, 127, 117, 102, 53, 72], [0.0, 8.707468068480662e-05, 0.00047123570725537967, 0.0006436589679563731, 0.0007724764067341683, 0.0010957241326071676]], [[114, 91, 161, 154, 243, 194], [1.1102230246251565e-16, 0.0014891327006293364, 0.0018466096284972533, 0.0018466096284972533, 0.0019288142330742275, 0.0031017409447537947]], [[115, 108, 64, 58, 381, 72], [0.0, 0.0010291134800106683, 0.0010968299688810523, 0.0011353774421003493, 0.001136193343988734, 0.00174200429173188]], [[116, 109, 386, 50, 211, 360], [0.0, 0.002317611345666548, 0.0030911479124187125, 0.00375239394772231, 0.003943930122408457, 0.004087058387835296]], [[117, 53, 72, 113, 127, 381], [0.0, 0.0003568821734355465, 0.00040960674386403273, 0.00047123570725537967, 0.0007824695061386944, 0.0012771411672394262]], [[118, 63, 84, 85, 0, 135], [1.1102230246251565e-16, 0.005582686719911578, 0.007749099385754632, 0.008474182203491054, 0.008714244952033212, 0.00875002450222051]], [[119, 53, 117, 72, 332, 113], [2.220446049250313e-16, 0.0011411729251742386, 0.0015079267496853621, 0.0021720960800827305, 0.002335836384388279, 0.0024184332681810305]], [[120, 198, 95, 88, 87, 291], [0.0, 0.006004719977611761, 0.007379891701950525, 0.007627704738280894, 0.007826999587898453, 0.008471185298407735]], [[121, 51, 98, 73, 179, 142], [0.0, 0.00022313508358129397, 0.015051874543403065, 0.02471771401601386, 0.03214074520093968, 0.03349796680692896]], [[122, 85, 123, 60, 144, 135], [1.1102230246251565e-16, 0.0009448431254608369, 0.0013664003683538928, 0.0017671987259958444, 0.0024134602075353007, 0.002677518929659395]], [[123, 135, 122, 85, 60, 63], [0.0, 0.0010848510110692544, 0.0013664003683538928, 0.002124972545903936, 0.0021416771494204845, 0.0046119649495894866]], [[124, 71, 357, 41, 300, 65], [1.1102230246251565e-16, 0.0221768882373079, 0.02548261092762516, 0.03424410791892041, 0.03534052353166517, 0.035965403918702066]], [[125, 81, 101, 220, 93, 95], [0.0, 0.000416581495789603, 0.0005245512634838301, 0.007249046585563024, 0.00731394609254199, 0.007463084470404002]], [[126, 6, 69, 74, 60, 24], [0.0, 0.00638176572540361, 0.012188016820680492, 0.015258471070562218, 0.016162586052225092, 0.018472689118869567]], [[127, 113, 102, 117, 53, 72], [2.220446049250313e-16, 8.707468068480662e-05, 0.00044872427668185555, 0.0007824695061386944, 0.0011017440343140672, 0.0016086954520029284]], [[128, 134, 325, 41, 207, 202], [0.0, 0.05292520489930996, 0.05971190248393776, 0.08687963008799404, 0.08796621792495452, 0.08890148167530021]], [[129, 121, 51, 98, 73, 179], [1.1102230246251565e-16, 0.061483365586736394, 0.06527530922360347, 0.1100536995806688, 0.13931012131482068, 0.15029817873130424]], [[130, 193, 318, 159, 216, 340], [1.1102230246251565e-16, 0.0013738767349252834, 0.0014811460967160128, 0.001578662619971749, 0.0017408298044642168, 0.0018066245187797758]], [[131, 120, 330, 291, 87, 95], [0.0, 0.03209784288812878, 0.03621985039894515, 0.038338461663052215, 0.04112862620970059, 0.043508744746202144]], [[132, 139, 271, 169, 249, 367], [0.0, 0.04824349164456965, 0.05642920879994939, 0.059308835486676315, 0.05963390556750259, 0.060358158311543564]], [[133, 100, 130, 159, 75, 198], [0.0, 0.008946469960234626, 0.010283980763894807, 0.011512437572280931, 0.01161406468797166, 0.011820420134145748]], [[134, 128, 325, 207, 57, 174], [2.220446049250313e-16, 0.05292520489930996, 0.09094632783954204, 0.10133129552391007, 0.11401867480974426, 0.1178054647967034]], [[135, 123, 122, 60, 85, 12], [0.0, 0.0010848510110692544, 0.002677518929659395, 0.0027894661983975944, 0.003074015304410982, 0.004905765359080827]], [[136, 40, 144, 159, 85, 29], [3.3306690738754696e-16, 0.0003942700970840374, 0.0012638875146058215, 0.0015677304628788358, 0.0016635845267508609, 0.0018722971332065796]], [[137, 380, 222, 330, 56, 61], [1.1102230246251565e-16, 0.002575070488611164, 0.0031078995556110822, 0.009718466063569853, 0.009976404899377012, 0.014401967012609984]], [[138, 305, 83, 103, 290, 27], [0.0, 0.0026603647120353457, 0.002779769544956512, 0.002893297344060075, 0.0030782765691049763, 0.0032649535605212554]], [[139, 67, 169, 40, 159, 17], [0.0, 0.002698467482674771, 0.002822910126398348, 0.0029097781958806745, 0.0030785549437903903, 0.0030849134994165306]], [[140, 338, 301, 8, 107, 7], [0.0, 0.0033011096740055423, 0.003695538078501426, 0.005436634408391261, 0.005942031895545763, 0.006004384229012616]], [[141, 154, 161, 114, 91, 243], [0.0, 0.003019552534335279, 0.003019552534335279, 0.003147042131553035, 0.0032745918019737585, 0.0042206317373918445]], [[142, 73, 102, 82, 127, 113], [0.0, 0.0012211068314161855, 0.0036603494073480514, 0.003860720170444143, 0.004279253174320652, 0.005252646870906985]], [[143, 257, 75, 371, 340, 76], [1.1102230246251565e-16, 0.000946494249837504, 0.0009943172741921913, 0.0010312908797691644, 0.0010486494679800007, 0.001079629645976632]], [[144, 136, 85, 40, 122, 13], [0.0, 0.0012638875146058215, 0.0013580767781296021, 0.0018859591179127833, 0.0024134602075353007, 0.003847649592695346]], [[145, 355, 220, 324, 384, 164], [0.0, 0.005118674086421193, 0.005616337141725936, 0.005830622569803712, 0.006001279149056682, 0.00706827330872295]], [[146, 78, 382, 14, 27, 160], [0.0, 0.003301471313787996, 0.0035182561222404374, 0.003592085454882432, 0.003736370185429716, 0.0038463033565165894]], [[147, 320, 267, 111, 210, 335], [0.0, 0.0006970563680639419, 0.0008825654034071428, 0.0010242475715421806, 0.0011819790959765042, 0.0011949044045158619]], [[148, 156, 157, 171, 172, 170], [2.220446049250313e-16, 0.0003732786618871886, 0.0011067099947099646, 0.0012231347403406367, 0.0015433239818117839, 0.0018362893326234753]], [[149, 339, 304, 342, 171, 269], [0.0, 0.0005660129101057176, 0.0006748835173278067, 0.0009489461610623362, 0.0010315531924606214, 0.001113373356348868]], [[150, 17, 67, 76, 64, 50], [1.1102230246251565e-16, 0.0018602222570947013, 0.001867502694308465, 0.0023118432488090646, 0.002553277769588025, 0.0026322466229832253]], [[151, 49, 363, 326, 75, 176], [1.1102230246251565e-16, 0.00017939318238591184, 0.000281525908466862, 0.0004803868037919212, 0.0005893048729800343, 0.0007388908036517483]], [[152, 383, 197, 345, 267, 75], [0.0, 0.0001657145358371359, 0.0002000319545832907, 0.0002343911064125459, 0.0002533963225223035, 0.0002759281596673713]], [[153, 167, 283, 191, 168, 382], [0.0, 0.0034710162920010834, 0.003760628547777478, 0.00395110116472408, 0.003975109815128608, 0.004388877064993468]], [[154, 161, 243, 91, 114, 194], [0.0, 0.0, 0.0011737724343430234, 0.0013693768214123603, 0.0018466096284972533, 0.002647778794667821]], [[155, 343, 197, 152, 290, 267], [0.0, 0.00038126399842441927, 0.0004612680518488732, 0.0004667801815310124, 0.0004673989967505232, 0.0004709115459535784]], [[156, 148, 172, 171, 157, 170], [2.220446049250313e-16, 0.0003732786618871886, 0.0006557614362764363, 0.0009612895792707743, 0.001695710791263294, 0.002029844499075617]], [[157, 175, 171, 223, 176, 320], [1.1102230246251565e-16, 0.00030990108463158084, 0.0005252324792629492, 0.000978538337566448, 0.001031385588389111, 0.0010501588963244268]], [[158, 190, 314, 335, 290, 343], [0.0, 0.00027308060705788506, 0.00047256054304967154, 0.0005674619560794847, 0.0005868019045454087, 0.0006131768611522537]], [[159, 29, 17, 365, 197, 345], [0.0, 0.00047914703195872654, 0.0005048999269711141, 0.0005460841170635833, 0.0005562133267236202, 0.0005692780323225399]], [[160, 78, 289, 382, 106, 257], [1.1102230246251565e-16, 0.0008092081514788907, 0.0008799127544770746, 0.0016188287663312373, 0.001785591571536238, 0.0017929309740160049]], [[154, 161, 243, 91, 114, 194], [0.0, 0.0, 0.0011737724343430234, 0.0013693768214123603, 0.0018466096284972533, 0.002647778794667821]], [[162, 192, 75, 17, 363, 345], [0.0, 0.0004571357713679669, 0.0006653238621218138, 0.000669062278751742, 0.000677389739435208, 0.0006864546824043583]], [[163, 301, 385, 43, 140, 8], [1.1102230246251565e-16, 0.0158849406355418, 0.016958559476847768, 0.020013599802097826, 0.02020460971756588, 0.020278209802706892]], [[164, 289, 384, 106, 369, 275], [0.0, 0.0024458190702768556, 0.0024774991390799084, 0.0028558915873949653, 0.002937283216039255, 0.0029483658846329863]], [[165, 382, 322, 210, 387, 253], [1.1102230246251565e-16, 0.0003855876260611124, 0.0006731604060146168, 0.0009429544801009548, 0.0010404088322377714, 0.001215305934939348]], [[166, 268, 254, 356, 224, 321], [1.1102230246251565e-16, 0.0028766950191688734, 0.003286753811481913, 0.003391754101234268, 0.0034231620769666904, 0.0034478113348358486]], [[167, 153, 191, 165, 382, 168], [0.0, 0.0034710162920010834, 0.003968352568612388, 0.004362413670900733, 0.004396085395676375, 0.005189055002334353]], [[168, 191, 68, 293, 229, 153], [0.0, 0.002110345212412934, 0.0024751440062453778, 0.0029025210798033774, 0.003718580666450033, 0.003975109815128608]], [[169, 176, 197, 365, 383, 320], [0.0, 0.0003762776976561355, 0.0004167944042302585, 0.0004435594823208877, 0.000468840169084328, 0.00047626798000344195]], [[170, 148, 171, 156, 157, 172], [2.220446049250313e-16, 0.0018362893326234753, 0.0020290505390754277, 0.002029844499075617, 0.0023307514889804315, 0.002473378463448639]], [[171, 157, 250, 252, 172, 156], [1.1102230246251565e-16, 0.0005252324792629492, 0.0007629414865933937, 0.000791524815857092, 0.0008024226077800733, 0.0009612895792707743]], [[172, 156, 171, 149, 148, 252], [0.0, 0.0006557614362764363, 0.0008024226077800733, 0.001404051441427412, 0.0015433239818117839, 0.0017626053082179238]], [[173, 376, 303, 361, 176, 369], [3.3306690738754696e-16, 0.0008830071037226883, 0.0010209915422481064, 0.0013134906872290797, 0.0014729201190288865, 0.001474423091613053]], [[174, 202, 295, 293, 283, 44], [2.220446049250313e-16, 0.005038361309066319, 0.007293401922060405, 0.007482120340655096, 0.007626397241568661, 0.008201321681815532]], [[175, 157, 365, 193, 197, 363], [2.220446049250313e-16, 0.00030990108463158084, 0.0008648963688177025, 0.0008822845937568324, 0.0008990563157659226, 0.0009080904851159755]], [[176, 169, 363, 320, 75, 335], [1.1102230246251565e-16, 0.0003762776976561355, 0.00043740426362781637, 0.000452952029315834, 0.0004675322171682206, 0.00047536003506676305]], [[177, 372, 107, 214, 301, 149], [0.0, 0.0021089798924573966, 0.0025967141482594602, 0.004003143914921958, 0.004092632582947231, 0.0041853950959880315]], [[178, 342, 149, 378, 361, 304], [0.0, 0.0016330676143174738, 0.001648187276976465, 0.0017761533048823441, 0.0018486956613182892, 0.0018661218749664865]], [[179, 73, 142, 98, 309, 102], [1.1102230246251565e-16, 0.005067673410673379, 0.005461524002988716, 0.009838946787198877, 0.010336819312422918, 0.010361677728411234]], [[180, 363, 326, 340, 49, 257], [0.0, 0.0005436195652176457, 0.0006302513736783366, 0.0007179477116520117, 0.0007258771980666046, 0.0007310859460017971]], [[181, 237, 356, 287, 233, 366], [0.0, 0.0, 0.006848447859148177, 0.00857710965246028, 0.008855742171654857, 0.009319564537077052]], [[182, 196, 268, 274, 327, 270], [3.3306690738754696e-16, 0.0016565412900658716, 0.0017128673438330244, 0.002102593701137967, 0.0021366615763670493, 0.002188444895521169]], [[183, 152, 111, 371, 210, 267], [0.0, 0.0016058867222157325, 0.0016919917377915539, 0.00171038804998358, 0.0017139790361319074, 0.0017561842490537716]], [[184, 318, 192, 152, 335, 75], [0.0, 0.0006263770306811356, 0.0006294271204169144, 0.0006453393503793592, 0.0006564869270564433, 0.0006807431382283013]], [[185, 199, 159, 210, 29, 197], [0.0, 0.002100950774455379, 0.004182723143769551, 0.004367466401845044, 0.004393595563601527, 0.0044479173976103015]], [[186, 276, 250, 258, 351, 252], [0.0, 0.0005661965311787309, 0.0005914634487151904, 0.0006122341902560224, 0.0006268381113399002, 0.0007118654419693282]], [[187, 365, 246, 253, 314, 226], [0.0, 0.00023004068245291442, 0.0002897619657661332, 0.0003162779187090292, 0.000316548442474196, 0.0003358232789506532]], [[188, 234, 362, 255, 331, 286], [0.0, 0.002627659527219217, 0.0027100215627877677, 0.003984911897888632, 0.0060851455417861855, 0.006402788710883289]], [[189, 337, 299, 249, 312, 193], [0.0, 0.006331572293608145, 0.006456361244487452, 0.0065717439608307116, 0.0069295941893570134, 0.006944538681574408]], [[190, 158, 314, 351, 363, 290], [1.1102230246251565e-16, 0.00027308060705788506, 0.00036100386679172036, 0.00043262877254623966, 0.0004345999861898875, 0.0004480257329357862]], [[191, 382, 168, 387, 165, 322], [0.0, 0.0016236109064329263, 0.002110345212412934, 0.002249892510590823, 0.0024003654504793914, 0.0027143580852607707]], [[192, 162, 226, 318, 246, 335], [0.0, 0.0004571357713679669, 0.0005025332205321753, 0.0005029578635838972, 0.0005095309365904521, 0.0005871856557770894]], [[193, 345, 365, 197, 335, 359], [0.0, 0.0003432707432144966, 0.00034491000053749055, 0.00034913048897511345, 0.000417891800095882, 0.0004339745383034055]], [[194, 383, 326, 320, 345, 75], [0.0, 0.0005724483591678098, 0.0006561935332272117, 0.0006607899839063958, 0.0006845406759798944, 0.0006887855725863368]], [[195, 38, 301, 385, 8, 284], [1.1102230246251565e-16, 0.008250648553632667, 0.02125157193529592, 0.021556786758544222, 0.02429234295474747, 0.025559237250538547]], [[196, 254, 270, 268, 235, 327], [0.0, 0.0008606517878703146, 0.0010402807471852071, 0.0010420836214378726, 0.0013782402663133908, 0.0015217509980315347]], [[197, 383, 345, 152, 365, 75], [0.0, 0.00012968773379229415, 0.00019079968652380153, 0.0002000319545832907, 0.00022776412381741995, 0.00023061030529847315]], [[198, 87, 292, 205, 384, 90], [0.0, 0.0011539102769834164, 0.0012699659606045799, 0.0016241239027702248, 0.0019556603969562714, 0.0020855789826150772]], [[199, 185, 197, 152, 383, 335], [0.0, 0.002100950774455379, 0.0023156159726728243, 0.002441382698089689, 0.002477004593693599, 0.0024959685652247154]], [[200, 93, 220, 101, 54, 95], [1.1102230246251565e-16, 0.004959407096901569, 0.009303184390655694, 0.009829065274972404, 0.009979983459610153, 0.012221269442268867]], [[201, 338, 140, 301, 7, 8], [0.0, 0.01521504254732542, 0.01615372429844697, 0.016871130954363434, 0.017461993793592923, 0.018569503185449365]], [[202, 283, 293, 174, 168, 153], [1.1102230246251565e-16, 0.002561155401250126, 0.0036654331967644893, 0.005038361309066319, 0.0056065799489398715, 0.006547526344572785]], [[203, 220, 355, 93, 54, 101], [0.0, 0.004835493054951456, 0.0060776245087883485, 0.0064481092133050755, 0.007256307486707914, 0.009686114782374466]], [[204, 323, 327, 281, 360, 379], [0.0, 0.0013637556794839911, 0.0014674279739713691, 0.0023648948652145174, 0.0026705913255101743, 0.0027418529029084038]], [[205, 90, 340, 292, 257, 303], [1.1102230246251565e-16, 0.0003391978430871134, 0.0004765204108392318, 0.0005334955318491152, 0.0006627787636738214, 0.0009571582349415797]], [[206, 239, 356, 149, 214, 224], [1.1102230246251565e-16, 0.0011360406902442, 0.0028002777098002918, 0.003309693417706816, 0.00341279178470022, 0.0037963973705463783]], [[207, 325, 174, 283, 232, 202], [0.0, 0.01600200236116789, 0.029111662913377745, 0.031830457504181564, 0.0329945065635574, 0.03443385178500469]], [[208, 275, 359, 193, 386, 258], [0.0, 0.0010589497499396971, 0.0011004493467433596, 0.001209346570571812, 0.0012795265986559334, 0.0013148074936448761]], [[209, 23, 96, 70, 15, 24], [1.1102230246251565e-16, 0.008224184540715163, 0.00953764065285767, 0.010119145630164916, 0.010705631829377893, 0.011058159395185396]], [[210, 387, 308, 322, 111, 267], [0.0, 0.0007026000046540526, 0.0007149543813659287, 0.0007649258160817851, 0.0007826845584204545, 0.0008493810770974219]], [[211, 193, 365, 345, 197, 80], [0.0, 0.0005710794141209341, 0.0006282883060811928, 0.0006342809485012646, 0.0007392269543905483, 0.0007658148814387866]], [[212, 231, 349, 157, 175, 250], [0.0, 0.003894641621597028, 0.004285458800305952, 0.0047080416039260164, 0.0047116156552858834, 0.004718305960991875]], [[213, 300, 357, 41, 71, 141], [0.0, 0.00643923009123526, 0.015737391620232244, 0.02215888405144184, 0.0321700962801853, 0.041430253078443835]], [[214, 149, 107, 378, 339, 304], [0.0, 0.0011389249629955023, 0.001250974809151817, 0.0013053526872623955, 0.0014757398552713852, 0.0016567233894273503]], [[215, 298, 277, 276, 287, 350], [1.1102230246251565e-16, 0.0008930975169878508, 0.0011879116654994748, 0.0012171627106053462, 0.001270064538679172, 0.0013395761233263581]], [[216, 276, 359, 233, 350, 186], [0.0, 0.0004744320961370674, 0.0005420399311863999, 0.0006143985175887101, 0.0008600831597574965, 0.0008833247730495319]], [[217, 279, 362, 255, 188, 331], [0.0, 0.008400453603609193, 0.012957066517097715, 0.01303403337263076, 0.013794237627728023, 0.014037412084164869]], [[218, 343, 290, 335, 155, 267], [0.0, 0.003546234002132831, 0.0035898506312040945, 0.0037966429779561217, 0.003807363660572438, 0.0038094168899625025]], [[219, 313, 247, 255, 234, 362], [0.0, 0.0012082262467723037, 0.010209267773264585, 0.012394239664795914, 0.012944442818485502, 0.013679999367810503]], [[220, 93, 355, 95, 101, 54], [0.0, 0.0021459618469691355, 0.003289358034291756, 0.003462766609841905, 0.004209112544376614, 0.004280233305062109]], [[221, 277, 298, 186, 261, 342], [0.0, 0.001467006761446621, 0.0015219959474359612, 0.001719024262056612, 0.0018097239380291397, 0.001816055154375662]], [[222, 137, 380, 330, 56, 61], [0.0, 0.0031078995556110822, 0.00468927626284632, 0.011368241356271902, 0.011490994589928083, 0.014605002938478884]], [[223, 250, 335, 365, 187, 320], [0.0, 0.00036054096081172826, 0.00038552915378620156, 0.00040087917624531677, 0.0004070689324504606, 0.0004196641217666386]], [[224, 252, 250, 258, 361, 339], [1.1102230246251565e-16, 0.0005644592904563428, 0.0009833034111027539, 0.0011830802099707105, 0.0012490392389390426, 0.0013946991320800128]], [[225, 95, 94, 101, 88, 93], [0.0, 0.011129519757703488, 0.013638126878981804, 0.01365044199335097, 0.014094633723713779, 0.014954092707468947]], [[226, 246, 314, 365, 187, 320], [0.0, 0.00022451597877792828, 0.0003031117781940873, 0.0003223635261430102, 0.0003358232789506532, 0.0004789320015198273]], [[227, 336, 273, 16, 163, 297], [0.0, 0.15522199908713474, 0.1752150541286761, 0.2017153311504566, 0.22326249597104497, 0.22806495940488514]], [[228, 381, 58, 108, 72, 64], [0.0, 0.0015300186451298048, 0.0017187186844321856, 0.0017939180353822026, 0.0018675743753275853, 0.0019546210964686006]], [[229, 68, 168, 311, 91, 293], [2.220446049250313e-16, 0.0030698439405743017, 0.003718580666450033, 0.003752192184338532, 0.004516895149574429, 0.004862204054993269]], [[230, 106, 371, 257, 180, 340], [0.0, 0.0007516441120059003, 0.0011607309238143015, 0.0011736168279574688, 0.0012060464230880807, 0.001243194435863737]], [[231, 250, 252, 223, 157, 171], [1.1102230246251565e-16, 0.00087805765956539, 0.0009947393066925825, 0.0010460966639720404, 0.0011176388964656558, 0.0011780376660461833]], [[232, 283, 78, 168, 307, 202], [2.220446049250313e-16, 0.005808504160451644, 0.008952726611660244, 0.0094824604862781, 0.009511798620829626, 0.009537454347731678]], [[233, 216, 276, 359, 321, 350], [0.0, 0.0006143985175887101, 0.0010514662657933327, 0.0013149617683435588, 0.001334440605463949, 0.001365243537923]], [[234, 362, 255, 188, 286, 331], [2.220446049250313e-16, 0.0016054216410312794, 0.0023378387311966398, 0.002627659527219217, 0.003760007067707738, 0.0039050818338466353]], [[235, 268, 196, 254, 270, 287], [1.1102230246251565e-16, 0.0013434586275890004, 0.0013782402663133908, 0.0016492491286569377, 0.0017648753057544209, 0.00261731258095399]], [[236, 244, 304, 187, 314, 253], [2.220446049250313e-16, 0.0010302313674497299, 0.0010455227026849867, 0.0012224880179512176, 0.0012246243488562847, 0.0012290985859395587]], [[181, 237, 356, 287, 233, 366], [0.0, 0.0, 0.006848447859148177, 0.00857710965246028, 0.008855742171654857, 0.009319564537077052]], [[238, 305, 331, 276, 277, 233], [0.0, 0.002276713404246289, 0.0025370371471274966, 0.002722752201309131, 0.0030940618217538685, 0.0031702869397628453]], [[239, 206, 258, 250, 304, 252], [0.0, 0.0011360406902442, 0.001330833299109213, 0.0014997239942924345, 0.0015151292883690548, 0.0015269698796802622]], [[240, 342, 214, 221, 279, 164], [3.3306690738754696e-16, 0.004101258594718882, 0.0041925368244019046, 0.00425180676650605, 0.004265474083642418, 0.004500753068326868]], [[241, 99, 230, 371, 198, 292], [0.0, 0.0031434085931890676, 0.003991563443060175, 0.0041579533394343615, 0.0043352822953447445, 0.004463555563856025]], [[242, 342, 379, 304, 29, 339], [0.0, 0.0024201364411143844, 0.0024932361736043074, 0.0025862863453868234, 0.0027055354263867404, 0.002744232154136439]], [[243, 91, 154, 161, 194, 106], [1.1102230246251565e-16, 0.0005140144794650858, 0.0011737724343430234, 0.0011737724343430234, 0.001484654387697848, 0.0016189013128264929]], [[244, 383, 197, 365, 152, 345], [0.0, 0.00027013202819636817, 0.0002822349975456495, 0.000296421545250225, 0.0003445238652761695, 0.0003473830684065371]], [[245, 376, 223, 187, 246, 253], [0.0, 0.008214039243593318, 0.00826830893081687, 0.008424532199721835, 0.008503947739910478, 0.00856689883966777]], [[246, 365, 226, 187, 314, 379], [0.0, 0.00020277228942888748, 0.00022451597877792828, 0.0002897619657661332, 0.00035644989680450045, 0.0003710055813893609]], [[247, 362, 255, 331, 234, 188], [0.0, 0.0040982557161135524, 0.004298756766647371, 0.004593190004248404, 0.0055049765173952325, 0.007903869541307063]], [[248, 215, 221, 42, 277, 298], [0.0, 0.0019488161932568193, 0.0020038145624198256, 0.0026168183878875206, 0.002625421775007797, 0.002717831212787125]], [[249, 162, 367, 258, 253, 269], [1.1102230246251565e-16, 0.003022060372727231, 0.0032412292252780306, 0.0032416927993275113, 0.0032469728872842607, 0.0033675201310572334]], [[250, 252, 223, 258, 187, 359], [0.0, 8.731760711222503e-05, 0.00036054096081172826, 0.00039961084000439406, 0.0005346616865063991, 0.0005747605009833734]], [[251, 317, 354, 318, 194, 243], [0.0, 0.0015303932977456247, 0.0016818394662108105, 0.0025640052472980512, 0.0025654132758817783, 0.002577120915297715]], [[252, 250, 258, 224, 361, 186], [0.0, 8.731760711222503e-05, 0.00048051147337246913, 0.0005644592904563428, 0.0007117249234394052, 0.0007118654419693282]], [[253, 187, 351, 304, 226, 246], [0.0, 0.0003162779187090292, 0.0004334230711874332, 0.00044960434656182713, 0.0005093936837634594, 0.0005708877381412902]], [[254, 270, 196, 268, 327, 235], [0.0, 0.0006171363041493905, 0.0008606517878703146, 0.0011903997872725336, 0.0012693978332682931, 0.0016492491286569377]], [[255, 362, 234, 331, 287, 188], [1.1102230246251565e-16, 0.002170085209253325, 0.0023378387311966398, 0.0023545632928307914, 0.0036744965759901715, 0.003984911897888632]], [[256, 205, 384, 90, 340, 173], [0.0, 0.0015078818710854147, 0.0018703285102773526, 0.0019539397545814685, 0.001984017559768514, 0.0022185691286386033]], [[257, 90, 340, 371, 75, 303], [1.1102230246251565e-16, 0.00010238618628100049, 0.00012909423160722966, 0.00020765015252288688, 0.00036999090016509584, 0.00045735864987339614]], [[258, 250, 252, 361, 351, 304], [3.3306690738754696e-16, 0.00039961084000439406, 0.00048051147337246913, 0.0004907049036889655, 0.0004952597875194087, 0.0005091001416551721]], [[259, 222, 380, 137, 225, 112], [0.0, 0.08063475152362387, 0.08903303667781304, 0.08966031535943719, 0.091572488056059, 0.09285200306684571]], [[260, 296, 166, 278, 297, 375], [0.0, 0.02445407121960974, 0.03210128798720413, 0.0345699512652472, 0.03536827440531021, 0.03564637123533021]], [[261, 277, 298, 350, 359, 193], [0.0, 0.0007956016137277144, 0.0009903101686530302, 0.0009947610610309132, 0.001253543464402762, 0.0012913358938839714]], [[262, 287, 221, 324, 350, 277], [1.1102230246251565e-16, 0.005733624279643745, 0.0061288772230378985, 0.006184714340095598, 0.006209550607935044, 0.006324663036254563]], [[263, 111, 267, 76, 290, 329], [0.0, 0.002645113270723365, 0.0030076432514803964, 0.0034032367647687245, 0.0034968282328415867, 0.00357588058157543]], [[264, 95, 88, 330, 24, 87], [0.0, 0.010170743243302915, 0.011000992084472472, 0.011138566644411707, 0.011497868608559614, 0.011792110185803839]], [[265, 173, 292, 376, 275, 87], [0.0, 0.0032799839958401744, 0.00419578560414835, 0.004396030409786422, 0.004536785395084286, 0.0045679606716206855]], [[266, 205, 318, 340, 384, 90], [0.0, 0.001356709805958256, 0.0013784141938431027, 0.0013982467310431623, 0.0015944486491381582, 0.0016356190357659228]], [[267, 111, 383, 152, 343, 197], [4.440892098500626e-16, 9.598302356539357e-05, 0.00022932248900553454, 0.0002533963225223035, 0.00027803784047197855, 0.00029712227865141827]], [[268, 196, 270, 254, 235, 327], [1.1102230246251565e-16, 0.0010420836214378726, 0.0010752904781965444, 0.0011903997872725336, 0.0013434586275890004, 0.0013688266913869374]], [[269, 304, 258, 339, 361, 253], [2.220446049250313e-16, 0.00033851197652357, 0.0005577423052706143, 0.0006423085138629325, 0.0006898255260069375, 0.0006959067407331654]], [[270, 327, 254, 196, 268, 323], [2.220446049250313e-16, 0.0005057910626216078, 0.0006171363041493905, 0.0010402807471852071, 0.0010752904781965444, 0.0016818570137927535]], [[271, 382, 27, 387, 78, 68], [0.0, 0.0029994343039856375, 0.003027633847953126, 0.003278549004785747, 0.0036743039483935203, 0.0036977175270890283]], [[272, 335, 290, 303, 190, 314], [0.0, 0.0007883557998882296, 0.0008118779278573074, 0.0008875442782656506, 0.0009377122248335201, 0.0009434688155802728]], [[273, 306, 16, 281, 366, 358], [0.0, 0.008912996543657292, 0.013372857498114454, 0.013489308382101717, 0.013833652923388007, 0.01383564710484797]], [[274, 182, 372, 344, 268, 327], [4.440892098500626e-16, 0.002102593701137967, 0.0034078699197630513, 0.004252606110609181, 0.0044422378187459755, 0.004618455025181323]], [[275, 376, 208, 50, 223, 193], [0.0, 0.0009645478549794584, 0.0010589497499396971, 0.0011499811846441554, 0.0013322414010459305, 0.00137973318924689]], [[276, 298, 216, 351, 186, 359], [0.0, 0.00041775261850207634, 0.0004744320961370674, 0.0005342999694933903, 0.0005661965311787309, 0.0007059340120468827]], [[277, 350, 298, 261, 276, 215], [0.0, 0.0004766960662601072, 0.0007820480781103312, 0.0007956016137277144, 0.0010431856201920109, 0.0011879116654994748]], [[278, 234, 286, 338, 7, 287], [0.0, 0.00395356680451453, 0.004669193232970215, 0.0060760845522196405, 0.006167175994712393, 0.006890212642305382]], [[279, 166, 240, 265, 42, 224], [0.0, 0.004176861383680341, 0.004265474083642418, 0.004787663993283675, 0.005105459167785487, 0.005112522018457355]], [[280, 235, 268, 196, 339, 356], [1.1102230246251565e-16, 0.005746499753966461, 0.00712466142252044, 0.007217966900624595, 0.007535414804518581, 0.007786885836797652]], [[281, 306, 226, 323, 314, 246], [0.0, 0.0007209859430759025, 0.0008951329013417997, 0.0010258906524802658, 0.001077871704087352, 0.0010914484823268955]], [[282, 99, 249, 241, 183, 371], [0.0, 0.005573560224819363, 0.006934484358523729, 0.00713887622596987, 0.009828310070093993, 0.010738944938756934]], [[283, 202, 153, 168, 68, 293], [1.1102230246251565e-16, 0.002561155401250126, 0.003760628547777478, 0.004412181579289132, 0.005270854452041451, 0.005434191638002406]], [[284, 301, 8, 107, 177, 140], [0.0, 0.0035615439776902624, 0.004502607032066064, 0.005245148640681041, 0.0066321104741355885, 0.006859654984729069]], [[285, 324, 355, 262, 266, 130], [1.1102230246251565e-16, 0.00754279856254636, 0.007698315635890185, 0.00809270310712995, 0.008320257202949044, 0.009296381115039831]], [[286, 287, 42, 214, 356, 248], [1.1102230246251565e-16, 0.0024656882873073105, 0.0026227974665284925, 0.002811501698942398, 0.0028867179399394427, 0.0031103888900501087]], [[287, 215, 350, 216, 276, 233], [0.0, 0.001270064538679172, 0.0015224107289740774, 0.001544823818386054, 0.0015750485702967776, 0.0015831352205938343]], [[288, 219, 313, 247, 278, 234], [1.1102230246251565e-16, 0.023721349087059584, 0.025497433821621396, 0.02616876016367442, 0.032225479837889814, 0.03349128049616512]], [[289, 340, 90, 257, 78, 106], [1.1102230246251565e-16, 0.0007054758298625785, 0.0007161486386861871, 0.0007504288043831409, 0.0007908559482855404, 0.0008096295783888152]], [[290, 343, 335, 267, 244, 190], [2.220446049250313e-16, 0.0001520850383173178, 0.000222529321260434, 0.0003013293864919664, 0.0003944803558785237, 0.0004480257329357862]], [[291, 87, 292, 330, 198, 205], [0.0, 0.003404210440442812, 0.003530750043393205, 0.0038541016295289277, 0.004444628974742071, 0.004555421264933468]], [[292, 90, 87, 205, 257, 340], [0.0, 0.0005189484206833406, 0.000527929466826893, 0.0005334955318491152, 0.0007860235009524708, 0.0008831057079835558]], [[293, 168, 202, 68, 229, 283], [1.1102230246251565e-16, 0.0029025210798033774, 0.0036654331967644893, 0.004765288265991652, 0.004862204054993269, 0.005434191638002406]], [[294, 388, 358, 210, 367, 308], [0.0, 0.0028633568264965215, 0.0030535871670482884, 0.0034778456251943757, 0.003562556658407212, 0.003713612180371695]], [[295, 153, 27, 167, 191, 14], [3.3306690738754696e-16, 0.0047278056340225305, 0.005522311875746921, 0.005732485021178624, 0.005854194269595769, 0.005873186172022482]], [[296, 375, 266, 166, 297, 173], [1.1102230246251565e-16, 0.014173875225850674, 0.014487829295041665, 0.015179486109256346, 0.015509650975743527, 0.016273861477571594]], [[297, 215, 287, 350, 358, 235], [0.0, 0.0032512837038936038, 0.0034696133364319204, 0.0035031271038540313, 0.003638746259674752, 0.0036550688604840564]], [[298, 276, 351, 277, 186, 215], [0.0, 0.00041775261850207634, 0.0007658204783457245, 0.0007820480781103312, 0.0008368631668339566, 0.0008930975169878508]], [[299, 193, 197, 383, 318, 365], [0.0, 0.000902232574985451, 0.0010050351981070182, 0.0011414543642604968, 0.0011487557599434428, 0.001169747528615095]], [[300, 213, 357, 41, 71, 124], [0.0, 0.00643923009123526, 0.008504536692426012, 0.012317220195299683, 0.02435137888100991, 0.03534052353166517]], [[301, 8, 284, 140, 107, 177], [2.220446049250313e-16, 0.0019881683513983672, 0.0035615439776902624, 0.003695538078501426, 0.0037020191289739435, 0.004092632582947231]], [[302, 362, 234, 188, 255, 352], [0.0, 0.006827127922489851, 0.008955181934512835, 0.009550085754251425, 0.011941607733105042, 0.01233607280871074]], [[303, 257, 340, 90, 246, 223], [1.1102230246251565e-16, 0.00045735864987339614, 0.0005492948954717303, 0.0005589811801443023, 0.0006630512629592911, 0.0006763425147143787]], [[304, 269, 339, 351, 253, 342], [1.1102230246251565e-16, 0.00033851197652357, 0.00034191120183812984, 0.00040979975265686974, 0.00044960434656182713, 0.0004541836404517996]], [[305, 210, 158, 190, 276, 387], [0.0, 0.001438676942686068, 0.0017369671578484347, 0.001821061721427153, 0.001909200690217605, 0.0019328302091410343]], [[306, 281, 375, 184, 358, 323], [0.0, 0.0007209859430759025, 0.0017332519371443533, 0.0019439897783247728, 0.002007121319506422, 0.0020734240725244213]], [[307, 114, 229, 91, 68, 311], [0.0, 0.004362394873438813, 0.006181238652350651, 0.0074040388621609, 0.007575255289945515, 0.008598435020677364]], [[308, 290, 267, 111, 343, 335], [0.0, 0.0005402122248175933, 0.0005965222065650311, 0.000617906360282805, 0.0006201789873387931, 0.0006605172772575774]], [[309, 142, 73, 102, 127, 113], [0.0, 0.005767976939934805, 0.0071241592252616615, 0.007888117621546953, 0.008610281340180936, 0.009311719133520913]], [[310, 113, 117, 53, 127, 72], [0.0, 0.0021092163048037627, 0.002220517970949687, 0.0022832002470174473, 0.002330260533239703, 0.0025666862425272052]], [[311, 68, 229, 168, 91, 243], [0.0, 0.0037416161823111693, 0.003752192184338532, 0.004404530525792705, 0.004468066351493438, 0.005353343401022226]], [[312, 223, 250, 265, 351, 187], [1.1102230246251565e-16, 0.0052654428425482624, 0.005407230981031019, 0.0054507469554165855, 0.0054548861934183845, 0.005461955610597702]], [[313, 219, 247, 255, 234, 278], [0.0, 0.0012082262467723037, 0.014494192510068449, 0.01715361266178539, 0.017569109940420602, 0.01813962790847201]], [[314, 365, 226, 187, 246, 190], [1.1102230246251565e-16, 0.0002771184546850325, 0.0003031117781940873, 0.000316548442474196, 0.00035644989680450045, 0.00036100386679172036]], [[315, 339, 269, 304, 361, 253], [0.0, 0.0009057907808652788, 0.0011847970084318815, 0.001215283260924127, 0.0012544462862781325, 0.0013169806111562599]], [[316, 321, 359, 233, 258, 387], [1.1102230246251565e-16, 0.0016839161017826454, 0.001810128002707967, 0.0020401059440920966, 0.002091010361771395, 0.002109709399582882]], [[317, 251, 106, 387, 318, 223], [0.0, 0.0015303932977456247, 0.003224791180050146, 0.003563551129037612, 0.0036334835497021656, 0.003673126934040205]], [[318, 192, 223, 193, 335, 257], [2.220446049250313e-16, 0.0005029578635838972, 0.0005095066887810251, 0.0005118757101575389, 0.000542542207983554, 0.0005697037477038203]], [[319, 338, 278, 7, 286, 140], [0.0, 0.022348690801784254, 0.023347135219388915, 0.023510043817457915, 0.0242235586947096, 0.024256952885989502]], [[320, 365, 383, 197, 335, 345], [0.0, 0.0002633213729655859, 0.0002987117427758479, 0.00031959610345833056, 0.0003674573110588053, 0.0003949570726264895]], [[321, 258, 190, 359, 314, 369], [0.0, 0.000726766661093281, 0.0008606533971570185, 0.0009256143349907209, 0.0009558413594031867, 0.000984469332132809]], [[322, 165, 210, 276, 382, 387], [0.0, 0.0006731604060146168, 0.0007649258160817851, 0.0008580407503723242, 0.000984215003845046, 0.0009940005804585095]], [[323, 379, 226, 246, 314, 192], [1.1102230246251565e-16, 0.0005464176571343682, 0.000571832770666636, 0.0006718428363846618, 0.0007164139460088537, 0.0008022483320387908]], [[324, 355, 384, 205, 256, 292], [0.0, 0.002075283599211053, 0.0022419903621052617, 0.002323877685849074, 0.0025528000265118145, 0.0031668169387903955]], [[325, 207, 174, 202, 232, 283], [0.0, 0.01600200236116789, 0.02850961224931925, 0.029966992364715117, 0.030141241201000257, 0.033048305659088784]], [[326, 363, 49, 75, 343, 197], [1.1102230246251565e-16, 0.0001351944424867746, 0.00024416997142173713, 0.000285913718182762, 0.0003053379738308104, 0.0003573336404751881]], [[327, 270, 323, 254, 268, 204], [1.1102230246251565e-16, 0.0005057910626216078, 0.0009227209932124447, 0.0012693978332682931, 0.0013688266913869374, 0.0014674279739713691]], [[328, 105, 117, 53, 119, 72], [0.0, 0.0010663597173665718, 0.0026229737021717936, 0.00286977641663122, 0.0029114240345861075, 0.0030429950570750597]], [[329, 263, 106, 76, 111, 230], [2.220446049250313e-16, 0.00357588058157543, 0.004540599931707079, 0.004967034037010487, 0.005084618172740751, 0.005118533647243018]], [[330, 87, 292, 291, 173, 95], [0.0, 0.0028952298983577762, 0.0037465076893551386, 0.0038541016295289277, 0.004544541555329351, 0.004652103838092669]], [[331, 287, 255, 238, 233, 350], [0.0, 0.0022088602754816167, 0.0023545632928307914, 0.0025370371471274966, 0.0028339712412133178, 0.002923600211461097]], [[332, 117, 53, 119, 72, 381], [0.0, 0.00192972076010256, 0.002236811163354835, 0.002335836384388279, 0.002418644481716248, 0.002533710196107042]], [[333, 182, 274, 196, 270, 327], [0.0, 0.004299252334245773, 0.006649826118269697, 0.007502102183872594, 0.00828458145253863, 0.008563081549890827]], [[334, 338, 140, 7, 301, 278], [0.0, 0.013435356989250469, 0.014734967730447024, 0.016594635829799476, 0.01707386013930179, 0.01744256542099154]], [[335, 290, 197, 343, 383, 152], [0.0, 0.000222529321260434, 0.00024707683965219385, 0.00029633780056903536, 0.00032011720549907086, 0.00034444997309179826]], [[336, 273, 297, 358, 16, 148], [0.0, 0.015536489566365774, 0.01577483023684756, 0.018194441040011222, 0.021360321706843433, 0.021590066559822096]], [[337, 312, 189, 233, 162, 318], [0.0, 0.005490103034574312, 0.006331572293608145, 0.007583835756398871, 0.007707403399371926, 0.00780843693470501]], [[338, 140, 286, 301, 214, 107], [1.1102230246251565e-16, 0.0033011096740055423, 0.004267685508951402, 0.004709234100045645, 0.004795512487801523, 0.004892649039928587]], [[339, 304, 149, 253, 269, 342], [0.0, 0.00034191120183812984, 0.0005660129101057176, 0.0005709897295801403, 0.0006423085138629325, 0.0007478748449105677]], [[340, 257, 90, 371, 205, 303], [1.1102230246251565e-16, 0.00012909423160722966, 0.00013322884815170077, 0.00034375575789258317, 0.0004765204108392318, 0.0005492948954717303]], [[341, 307, 232, 56, 147, 143], [3.3306690738754696e-16, 0.02732089884269262, 0.030772868737766967, 0.03332179732530682, 0.03599173205812889, 0.03695444558373073]], [[342, 351, 304, 253, 339, 258], [0.0, 0.0002759280732707037, 0.0004541836404517996, 0.0006699756997234907, 0.0007478748449105677, 0.0007838335097105631]], [[343, 290, 267, 335, 326, 244], [1.1102230246251565e-16, 0.0001520850383173178, 0.00027803784047197855, 0.00029633780056903536, 0.0003053379738308104, 0.0003564003633923507]], [[344, 372, 204, 269, 304, 315], [0.0, 0.0028331224885962403, 0.0031083265823143025, 0.0031418324600995806, 0.003259561096186636, 0.003602932659720337]], [[345, 365, 383, 197, 152, 75], [0.0, 0.0001634687047806782, 0.00018354731618119846, 0.00019079968652380153, 0.0002343911064125459, 0.00028725126453332805]], [[346, 4, 18, 33, 22, 10], [0.0, 0.016880942705457147, 0.01727132642912954, 0.019298134414060808, 0.035016003684806396, 0.03554198327530744]], [[347, 304, 269, 258, 351, 342], [1.1102230246251565e-16, 0.0012970137300796214, 0.00143236685735193, 0.0016785602161036861, 0.0016872832005891958, 0.0017468139497479607]], [[348, 196, 235, 280, 254, 268], [0.0, 0.007045640310400114, 0.007062420129217428, 0.00866495714492077, 0.00879431359245686, 0.009017025873813145]], [[349, 345, 365, 193, 197, 383], [0.0, 0.0008785013055458979, 0.0008843389718985462, 0.0008898589431116655, 0.0009880694334842843, 0.0009960886853506157]], [[350, 277, 216, 261, 298, 276], [0.0, 0.0004766960662601072, 0.0008600831597574965, 0.0009947610610309132, 0.0010761039964365393, 0.001078864624365461]], [[351, 342, 304, 190, 253, 258], [1.1102230246251565e-16, 0.0002759280732707037, 0.00040979975265686974, 0.00043262877254623966, 0.0004334230711874332, 0.0004952597875194087]], [[352, 362, 234, 188, 7, 278], [0.0, 0.008337254050678866, 0.009069561153352446, 0.010187822368460053, 0.011524600949348929, 0.011576817747780854]], [[353, 148, 175, 275, 386, 157], [1.1102230246251565e-16, 0.0026713401703658546, 0.002751060128829974, 0.002920995462663778, 0.0029444632587869446, 0.0030252799623874393]], [[354, 223, 158, 250, 194, 318], [1.1102230246251565e-16, 0.0013173881581375335, 0.001481150934211417, 0.0014862369438594092, 0.0014899502891547733, 0.0015322831200524911]], [[355, 384, 324, 205, 256, 266], [0.0, 0.0020458509896652544, 0.002075283599211053, 0.0027075868752348686, 0.002940772756330645, 0.0031248840037980674]], [[356, 224, 258, 239, 339, 252], [0.0, 0.0015597386449800466, 0.0019327790439226389, 0.0020017225520505555, 0.0020321043723292576, 0.002036573543821918]], [[357, 41, 300, 71, 213, 141], [0.0, 0.00848889869992353, 0.008504536692426012, 0.013860351365951873, 0.015737391620232244, 0.023565949218681936]], [[358, 152, 184, 335, 197, 193], [0.0, 0.0011825848646951354, 0.0012214694244174762, 0.001233291265476999, 0.0013566904832987836, 0.0013970222398718146]], [[359, 365, 193, 187, 216, 314], [2.220446049250313e-16, 0.00037659454058602826, 0.0004339745383034055, 0.0004870216672699934, 0.0005420399311863999, 0.0005637768820585531]], [[360, 327, 270, 204, 196, 254], [0.0, 0.0024815580329146103, 0.0025025007974929236, 0.0026705913255101743, 0.003024464908274349, 0.003122786140688616]], [[361, 258, 253, 250, 269, 252], [0.0, 0.0004907049036889655, 0.0006225504804886484, 0.0006390284416066816, 0.0006898255260069375, 0.0007117249234394052]], [[362, 234, 255, 188, 331, 247], [0.0, 0.0016054216410312794, 0.002170085209253325, 0.0027100215627877677, 0.003890455091812517, 0.0040982557161135524]], [[363, 49, 326, 151, 75, 197], [1.1102230246251565e-16, 0.0001159059298493359, 0.0001351944424867746, 0.000281525908466862, 0.0002918706408007177, 0.000347236771260917]], [[364, 301, 107, 279, 8, 378], [0.0, 0.009981930003629236, 0.010290357407476192, 0.010569109910308239, 0.010648243774370125, 0.011689839576030314]], [[365, 345, 246, 383, 197, 187], [0.0, 0.0001634687047806782, 0.00020277228942888748, 0.00021265522896851685, 0.00022776412381741995, 0.00023004068245291442]], [[366, 318, 281, 216, 388, 233], [1.1102230246251565e-16, 0.002002165563349978, 0.0020780367626599405, 0.0024922083476606183, 0.002500223806759405, 0.0025100797877201098]], [[367, 371, 257, 340, 335, 303], [1.1102230246251565e-16, 0.0005218042430703562, 0.0007058106152380006, 0.0007437615195652336, 0.0007912251365007616, 0.0008099644237193893]], [[368, 322, 165, 170, 342, 299], [0.0, 0.0029650084386145803, 0.0032087319441959083, 0.00327628308458483, 0.003281157255655809, 0.003281461992061141]], [[369, 258, 376, 361, 253, 321], [0.0, 0.0007984145029107381, 0.0007984298420906644, 0.0009670893740602038, 0.000968356496272027, 0.000984469332132809]], [[370, 364, 385, 301, 140, 145], [1.1102230246251565e-16, 0.016840901748604642, 0.017867842398272882, 0.018065466364524108, 0.018121204290787896, 0.0183839776708441]], [[371, 257, 340, 90, 75, 367], [1.1102230246251565e-16, 0.00020765015252288688, 0.00034375575789258317, 0.00035999831929900417, 0.0004464791618710162, 0.0005218042430703562]], [[372, 149, 339, 177, 214, 315], [0.0, 0.0019323119021308344, 0.0019396360344924313, 0.0021089798924573966, 0.0024143829128346894, 0.002503374730476682]], [[373, 369, 178, 299, 289, 340], [0.0, 0.007687589490775859, 0.007884245889221764, 0.00874444508719796, 0.009012293370738278, 0.00943270397869167]], [[374, 335, 197, 290, 190, 244], [2.220446049250313e-16, 0.00046632952714631415, 0.0005415723840554998, 0.0005470511239119569, 0.0005712762514745728, 0.0005895096560795121]], [[375, 184, 192, 281, 318, 226], [0.0, 0.001004345552234498, 0.0010978057186358248, 0.001407785700516917, 0.0014904196670888492, 0.0017060182295607351]], [[376, 223, 303, 369, 379, 180], [1.1102230246251565e-16, 0.0007828779999174973, 0.0007910175402227049, 0.0007984298420906644, 0.0008120033606451305, 0.0008218088218165942]], [[377, 233, 316, 366, 321, 208], [0.0, 0.003577829637812724, 0.0044029140901421515, 0.004529727598743594, 0.004716893031237457, 0.004943598507355151]], [[378, 149, 214, 107, 342, 304], [1.1102230246251565e-16, 0.0011134228860765205, 0.0013053526872623955, 0.0013302338649938683, 0.0015572248926344345, 0.001575007375327231]], [[379, 246, 187, 323, 226, 176], [0.0, 0.0003710055813893609, 0.0005103753810405953, 0.0005464176571343682, 0.0005553592046009248, 0.0005840218066677227]], [[380, 137, 222, 56, 330, 87], [0.0, 0.002575070488611164, 0.00468927626284632, 0.008301721678146579, 0.008331925408027852, 0.012485985520831466]], [[381, 72, 108, 58, 64, 115], [0.0, 0.0005584996856728974, 0.0008621619886627352, 0.0008667097167774918, 0.0009694156648140106, 0.001136193343988734]], [[382, 165, 387, 210, 78, 322], [0.0, 0.0003855876260611124, 0.0006172667998594061, 0.0008598513462941826, 0.0008996715597339167, 0.000984215003845046]], [[383, 197, 152, 345, 365, 267], [0.0, 0.00012968773379229415, 0.0001657145358371359, 0.00018354731618119846, 0.00021265522896851685, 0.00022932248900553454]], [[384, 205, 266, 292, 256, 340], [1.1102230246251565e-16, 0.001186141474488811, 0.0015944486491381582, 0.0018470165710749997, 0.0018703285102773526, 0.0018778328374232656]], [[385, 301, 140, 8, 284, 338], [0.0, 0.006237602395101294, 0.006433233155200169, 0.009787079089202622, 0.010862031725554444, 0.01191416125409872]], [[386, 208, 359, 50, 275, 175], [0.0, 0.0012795265986559334, 0.0015522947561489309, 0.001588176637037586, 0.0016477507644473421, 0.0017322007327914557]], [[387, 382, 210, 322, 165, 111], [1.1102230246251565e-16, 0.0006172667998594061, 0.0007026000046540526, 0.0009940005804585095, 0.0010404088322377714, 0.0010956775328506696]], [[388, 318, 281, 345, 367, 193], [2.220446049250313e-16, 0.0016841512801911707, 0.0019260752800034364, 0.001996294512042307, 0.002005072585208767, 0.0020154852705824844]], [[389, 371, 162, 340, 257, 318], [1.1102230246251565e-16, 0.0007045209639875427, 0.0007886362836836414, 0.0007952651829651325, 0.0007983086007150586, 0.0008160655615894186]]]
#1024
# arr = [[[0, 30, 128, 337, 168, 356], [0.0, 0.11617553234100342, 0.12028801441192627, 0.12172508239746094, 0.12229013442993164, 0.13157528638839722]], [[1, 308, 131, 335, 14, 273], [1.1920928955078125e-07, 0.09152323007583618, 0.09530746936798096, 0.09792345762252808, 0.11284255981445312, 0.1139482855796814]], [[2, 210, 72, 242, 32, 76], [0.0, 0.05474531650543213, 0.06035196781158447, 0.07726788520812988, 0.07879078388214111, 0.07962918281555176]], [[3, 287, 242, 10, 55, 60], [5.960464477539063e-08, 0.04547286033630371, 0.05911374092102051, 0.0688011646270752, 0.06963825225830078, 0.07963049411773682]], [[4, 100, 17, 305, 99, 386], [5.960464477539063e-08, 0.057402968406677246, 0.06171727180480957, 0.06885606050491333, 0.07127273082733154, 0.07133889198303223]], [[5, 303, 86, 336, 204, 288], [1.7881393432617188e-07, 0.06685054302215576, 0.06924188137054443, 0.07040941715240479, 0.07138228416442871, 0.07150429487228394]], [[6, 229, 378, 71, 171, 154], [5.960464477539063e-08, 0.06507629156112671, 0.06527107954025269, 0.06558096408843994, 0.06919741630554199, 0.07155203819274902]], [[7, 378, 96, 71, 12, 229], [2.384185791015625e-07, 0.06263887882232666, 0.06479465961456299, 0.06682157516479492, 0.06800729036331177, 0.06844073534011841]], [[8, 176, 321, 151, 46, 313], [0.0, 0.035824596881866455, 0.03882884979248047, 0.04619842767715454, 0.04646342992782593, 0.049373626708984375]], [[9, 250, 170, 263, 385, 150], [0.0, 0.1243472695350647, 0.12764054536819458, 0.13026326894760132, 0.1394362449645996, 0.14256280660629272]], [[10, 178, 67, 60, 33, 55], [0.0, 0.04849761724472046, 0.05534982681274414, 0.055718421936035156, 0.05690276622772217, 0.05749237537384033]], [[11, 129, 100, 386, 305, 292], [1.1920928955078125e-07, 0.07783496379852295, 0.08101773262023926, 0.08625543117523193, 0.08643084764480591, 0.09466797113418579]], [[12, 71, 229, 45, 92, 378], [0.0, 0.029432058334350586, 0.03492254018783569, 0.036500394344329834, 0.04144144058227539, 0.04249376058578491]], [[13, 281, 231, 304, 139, 155], [0.0, 0.04092681407928467, 0.044399380683898926, 0.04615187644958496, 0.04930591583251953, 0.05151861906051636]], [[14, 5, 19, 152, 315, 260], [1.1920928955078125e-07, 0.08595079183578491, 0.08756589889526367, 0.09131407737731934, 0.09383296966552734, 0.09431779384613037]], [[15, 71, 12, 229, 45, 196], [5.960464477539063e-08, 0.09386277198791504, 0.0964280366897583, 0.09687477350234985, 0.09700775146484375, 0.1040419340133667]], [[16, 171, 196, 154, 71, 229], [5.960464477539063e-08, 0.06084948778152466, 0.06248915195465088, 0.06671041250228882, 0.06714320182800293, 0.06777167320251465]], [[17, 305, 36, 100, 57, 388], [0.0, 0.048119425773620605, 0.05619388818740845, 0.058135986328125, 0.06001162528991699, 0.06094622611999512]], [[18, 213, 253, 366, 198, 143], [5.960464477539063e-08, 0.0709906816482544, 0.073921799659729, 0.07414793968200684, 0.07428687810897827, 0.07432305812835693]], [[19, 152, 315, 170, 268, 215], [1.1920928955078125e-07, 0.04561346769332886, 0.04969894886016846, 0.054750144481658936, 0.05508875846862793, 0.055826783180236816]], [[20, 347, 231, 304, 281, 289], [0.0, 0.048122286796569824, 0.05073964595794678, 0.05105018615722656, 0.051641106605529785, 0.05222505331039429]], [[21, 181, 62, 310, 262, 280], [2.384185791015625e-07, 0.09735721349716187, 0.10330069065093994, 0.11817789077758789, 0.11947906017303467, 0.14250165224075317]], [[22, 332, 305, 100, 4, 23], [0.0, 0.06321287155151367, 0.07300567626953125, 0.07520925998687744, 0.08097869157791138, 0.08376157283782959]], [[23, 388, 257, 57, 297, 248], [0.0, 0.0681842565536499, 0.07428377866744995, 0.08000856637954712, 0.08050918579101562, 0.080982506275177]], [[24, 41, 78, 208, 382, 35], [5.960464477539063e-08, 0.07531964778900146, 0.07827329635620117, 0.09844052791595459, 0.10058444738388062, 0.10261309146881104]], [[25, 373, 288, 331, 86, 363], [0.0, 0.04675966501235962, 0.054194509983062744, 0.0570104718208313, 0.058488309383392334, 0.06268560886383057]], [[26, 295, 88, 40, 276, 203], [0.0, 0.12375527620315552, 0.12604349851608276, 0.13150596618652344, 0.13273584842681885, 0.1337190866470337]], [[27, 104, 291, 121, 88, 336], [0.0, 0.1282169222831726, 0.12951922416687012, 0.13412004709243774, 0.1601942777633667, 0.16911864280700684]], [[28, 226, 388, 23, 251, 156], [0.0, 0.09043443202972412, 0.09421920776367188, 0.0944938063621521, 0.09689211845397949, 0.09729921817779541]], [[29, 118, 125, 194, 355, 318], [0.0, 0.09765148162841797, 0.10014116764068604, 0.10909831523895264, 0.10919511318206787, 0.11081206798553467]], [[30, 76, 375, 337, 52, 84], [2.384185791015625e-07, 0.06300628185272217, 0.06751018762588501, 0.07941257953643799, 0.08168601989746094, 0.08268928527832031]], [[31, 255, 236, 75, 247, 151], [5.960464477539063e-08, 0.07916033267974854, 0.0918511152267456, 0.09806352853775024, 0.09809231758117676, 0.10154247283935547]], [[32, 76, 242, 210, 375, 309], [0.0, 0.05519449710845947, 0.06627368927001953, 0.0665442943572998, 0.0674518346786499, 0.07316380739212036]], [[33, 10, 287, 242, 3, 352], [0.0, 0.05690276622772217, 0.0674174427986145, 0.07973748445510864, 0.08629518747329712, 0.08706068992614746]], [[34, 259, 304, 13, 49, 18], [0.0, 0.06770718097686768, 0.08926331996917725, 0.09101736545562744, 0.09148478507995605, 0.09419906139373779]], [[35, 197, 78, 280, 255, 254], [1.1920928955078125e-07, 0.08288902044296265, 0.08446109294891357, 0.08866453170776367, 0.09202700853347778, 0.09258615970611572]], [[36, 388, 17, 326, 305, 349], [1.1920928955078125e-07, 0.055124640464782715, 0.05619388818740845, 0.06192493438720703, 0.06493300199508667, 0.06606364250183105]], [[37, 346, 387, 70, 90, 80], [1.1920928955078125e-07, 0.0757865309715271, 0.0757865309715271, 0.07733356952667236, 0.07820868492126465, 0.08028900623321533]], [[38, 276, 140, 320, 63, 147], [0.0, 0.07209646701812744, 0.07427352666854858, 0.0779600739479065, 0.07893538475036621, 0.08000361919403076]], [[39, 152, 303, 215, 248, 182], [0.0, 0.04680907726287842, 0.046988725662231445, 0.05009472370147705, 0.05115067958831787, 0.05171966552734375]], [[40, 69, 234, 140, 63, 351], [1.1920928955078125e-07, 0.05321848392486572, 0.05599021911621094, 0.05893898010253906, 0.06051325798034668, 0.06151282787322998]], [[41, 24, 273, 78, 258, 382], [0.0, 0.07531964778900146, 0.08988595008850098, 0.0967136025428772, 0.10013306140899658, 0.10073888301849365]], [[42, 290, 189, 265, 127, 286], [0.0, 0.19229137897491455, 0.1951528787612915, 0.19584250450134277, 0.1972649097442627, 0.1972818374633789]], [[43, 0, 370, 356, 228, 30], [0.0, 0.15947985649108887, 0.18010371923446655, 0.18024855852127075, 0.18984311819076538, 0.19423627853393555]], [[44, 312, 267, 276, 266, 354], [1.1920928955078125e-07, 0.11025482416152954, 0.11132943630218506, 0.11678493022918701, 0.11826646327972412, 0.12106072902679443]], [[45, 229, 71, 12, 378, 96], [0.0, 0.03085505962371826, 0.033685922622680664, 0.036500394344329834, 0.03766930103302002, 0.04120278358459473]], [[46, 164, 313, 247, 163, 176], [2.384185791015625e-07, 0.029860258102416992, 0.03459441661834717, 0.03558027744293213, 0.040169358253479004, 0.041584789752960205]], [[47, 313, 46, 235, 117, 193], [1.7881393432617188e-07, 0.05039703845977783, 0.05306112766265869, 0.05788624286651611, 0.060740113258361816, 0.060788512229919434]], [[48, 369, 210, 2, 20, 231], [1.1920928955078125e-07, 0.13578474521636963, 0.15226519107818604, 0.1604372262954712, 0.16494297981262207, 0.1657320261001587]], [[49, 211, 224, 359, 95, 213], [0.0, 0.06111502647399902, 0.06611239910125732, 0.0689084529876709, 0.07265043258666992, 0.07348579168319702]], [[50, 386, 384, 305, 232, 4], [1.1920928955078125e-07, 0.07172131538391113, 0.08286666870117188, 0.08391672372817993, 0.08942997455596924, 0.0896415114402771]], [[51, 375, 30, 76, 309, 84], [0.0, 0.08408212661743164, 0.08719950914382935, 0.08947622776031494, 0.09042227268218994, 0.09813308715820312]], [[52, 76, 337, 210, 375, 168], [0.0, 0.05523824691772461, 0.07480299472808838, 0.07864648103713989, 0.07992011308670044, 0.08027136325836182]], [[53, 383, 299, 49, 151, 95], [0.0, 0.09847688674926758, 0.11616277694702148, 0.11667525768280029, 0.126784086227417, 0.12686115503311157]], [[54, 191, 367, 383, 122, 26], [1.1920928955078125e-07, 0.17346352338790894, 0.19414258003234863, 0.20784175395965576, 0.2285834550857544, 0.24666500091552734]], [[55, 10, 348, 60, 67, 178], [0.0, 0.05749237537384033, 0.06219989061355591, 0.06703293323516846, 0.0672234296798706, 0.06919103860855103]], [[56, 266, 144, 167, 388, 341], [1.1920928955078125e-07, 0.07561671733856201, 0.08944547176361084, 0.0911402702331543, 0.10190999507904053, 0.10326147079467773]], [[57, 305, 17, 388, 100, 209], [1.1920928955078125e-07, 0.058255672454833984, 0.06001162528991699, 0.06017744541168213, 0.06697487831115723, 0.06823241710662842]], [[58, 380, 142, 100, 384, 99], [0.0, 0.11171996593475342, 0.12208354473114014, 0.12288045883178711, 0.1242029070854187, 0.12581968307495117]], [[59, 271, 286, 179, 189, 123], [0.0, 0.07416236400604248, 0.1211060881614685, 0.13071811199188232, 0.13854634761810303, 0.14639973640441895]], [[60, 67, 348, 10, 178, 55], [5.960464477539063e-08, 0.00019949674606323242, 0.049979567527770996, 0.055718421936035156, 0.059829115867614746, 0.06703293323516846]], [[61, 253, 213, 366, 146, 321], [2.384185791015625e-07, 0.06911629438400269, 0.06999897956848145, 0.07548487186431885, 0.07614243030548096, 0.07694381475448608]], [[62, 310, 21, 181, 262, 380], [0.0, 0.10104107856750488, 0.10330069065093994, 0.11214053630828857, 0.11530011892318726, 0.1395357847213745]], [[63, 140, 69, 351, 283, 336], [0.0, 0.04347902536392212, 0.047768354415893555, 0.05444133281707764, 0.05565601587295532, 0.05622696876525879]], [[64, 75, 279, 159, 247, 283], [0.0, 0.11140668392181396, 0.11970376968383789, 0.14227449893951416, 0.14246320724487305, 0.14272010326385498]], [[65, 94, 56, 167, 118, 318], [0.0, 0.11101210117340088, 0.157537579536438, 0.15797024965286255, 0.1805347204208374, 0.18264400959014893]], [[66, 71, 96, 12, 229, 45], [1.1920928955078125e-07, 0.04769331216812134, 0.052574753761291504, 0.05407702922821045, 0.05789744853973389, 0.058569908142089844]], [[67, 60, 348, 10, 178, 55], [1.1920928955078125e-07, 0.00019949674606323242, 0.050065040588378906, 0.05534982681274414, 0.05942332744598389, 0.0672234296798706]], [[68, 212, 256, 296, 286, 123], [5.960464477539063e-08, 0.08544027805328369, 0.09655654430389404, 0.10494279861450195, 0.11514413356781006, 0.12154465913772583]], [[69, 140, 351, 63, 336, 157], [0.0, 0.04053759574890137, 0.040578365325927734, 0.047768354415893555, 0.05072653293609619, 0.05141538381576538]], [[70, 248, 264, 215, 315, 39], [0.0, 0.04600030183792114, 0.048271775245666504, 0.0512545108795166, 0.052302777767181396, 0.05254089832305908]], [[71, 12, 229, 45, 96, 343], [1.7881393432617188e-07, 0.029432058334350586, 0.033486127853393555, 0.033685922622680664, 0.041126906871795654, 0.04268908500671387]], [[72, 210, 82, 168, 139, 2], [0.0, 0.047621190547943115, 0.05227929353713989, 0.05517059564590454, 0.0589221715927124, 0.06035196781158447]], [[73, 327, 92, 45, 12, 343], [0.0, 0.12128210067749023, 0.12262946367263794, 0.13158291578292847, 0.1322295069694519, 0.13942402601242065]], [[74, 189, 389, 237, 247, 157], [1.1920928955078125e-07, 0.07308119535446167, 0.08133608102798462, 0.08440577983856201, 0.08580482006072998, 0.08629906177520752]], [[75, 247, 307, 283, 164, 237], [0.0, 0.04952383041381836, 0.05635339021682739, 0.05775421857833862, 0.059663236141204834, 0.06007826328277588]], [[76, 32, 52, 375, 210, 30], [0.0, 0.05519449710845947, 0.05523824691772461, 0.05726778507232666, 0.0587693452835083, 0.06300628185272217]], [[77, 336, 63, 164, 69, 234], [0.0, 0.058626770973205566, 0.06292641162872314, 0.06857079267501831, 0.06863999366760254, 0.06908917427062988]], [[78, 24, 35, 125, 258, 273], [0.0, 0.07827329635620117, 0.08446109294891357, 0.08523368835449219, 0.09212398529052734, 0.09268152713775635]], [[79, 289, 213, 379, 253, 366], [1.1920928955078125e-07, 0.08480453491210938, 0.08493554592132568, 0.08774226903915405, 0.09152603149414062, 0.09398150444030762]], [[80, 388, 85, 215, 264, 315], [2.384185791015625e-07, 0.06761443614959717, 0.06820231676101685, 0.06900930404663086, 0.0700383186340332, 0.07165968418121338]], [[81, 129, 107, 261, 154, 6], [0.0, 0.13627099990844727, 0.15081804990768433, 0.15843087434768677, 0.16914242506027222, 0.16987240314483643]], [[82, 168, 281, 139, 72, 311], [0.0, 0.047386229038238525, 0.04809534549713135, 0.05102431774139404, 0.05227929353713989, 0.05482804775238037]], [[83, 216, 350, 372, 253, 46], [0.0, 0.07874304056167603, 0.08155572414398193, 0.08182984590530396, 0.08225172758102417, 0.0831761360168457]], [[84, 168, 166, 139, 210, 155], [1.7881393432617188e-07, 0.05246996879577637, 0.058403193950653076, 0.05912673473358154, 0.06598472595214844, 0.06718742847442627]], [[85, 385, 250, 80, 346, 387], [0.0, 0.05518990755081177, 0.06770020723342896, 0.06820231676101685, 0.06838119029998779, 0.06838119029998779]], [[86, 288, 303, 25, 190, 373], [1.1920928955078125e-07, 0.04978358745574951, 0.05153530836105347, 0.058488309383392334, 0.059221506118774414, 0.060619354248046875]], [[87, 254, 137, 329, 217, 35], [0.0, 0.05593407154083252, 0.07995688915252686, 0.09236836433410645, 0.10273963212966919, 0.10481995344161987]], [[88, 295, 199, 203, 63, 93], [1.1920928955078125e-07, 0.05892181396484375, 0.07467961311340332, 0.084739089012146, 0.08537513017654419, 0.0862848162651062]], [[89, 149, 166, 168, 84, 270], [0.0, 0.050150394439697266, 0.08506548404693604, 0.08782964944839478, 0.08805763721466064, 0.09040260314941406]], [[90, 387, 346, 315, 207, 297], [0.0, 0.05682116746902466, 0.05682116746902466, 0.061657845973968506, 0.06739163398742676, 0.06745648384094238]], [[91, 176, 313, 46, 164, 151], [2.980232238769531e-07, 0.04372429847717285, 0.048770129680633545, 0.04907935857772827, 0.050143301486968994, 0.05268430709838867]], [[92, 12, 229, 45, 71, 378], [0.0, 0.04144144058227539, 0.04464578628540039, 0.04483771324157715, 0.049227356910705566, 0.05665326118469238]], [[93, 88, 295, 199, 203, 63], [5.960464477539063e-08, 0.0862848162651062, 0.08801358938217163, 0.08861398696899414, 0.09171092510223389, 0.10052341222763062]], [[94, 65, 56, 129, 58, 167], [0.0, 0.11101216077804565, 0.11443078517913818, 0.11567211151123047, 0.13159215450286865, 0.14105665683746338]], [[95, 224, 285, 253, 321, 213], [0.0, 0.038228750228881836, 0.045319557189941406, 0.045413196086883545, 0.04714524745941162, 0.047507524490356445]], [[96, 229, 378, 71, 45, 12], [0.0, 0.0316767692565918, 0.036698341369628906, 0.041126906871795654, 0.04120278358459473, 0.04339563846588135]], [[97, 205, 170, 263, 19, 319], [2.384185791015625e-07, 0.058473944664001465, 0.06488692760467529, 0.06861639022827148, 0.07781904935836792, 0.08035469055175781]], [[98, 241, 255, 31, 197, 64], [0.0, 0.11433207988739014, 0.14628684520721436, 0.14921057224273682, 0.1501874327659607, 0.1519148349761963]], [[99, 142, 292, 386, 384, 4], [2.384185791015625e-07, 0.05203735828399658, 0.05942487716674805, 0.060056328773498535, 0.06892013549804688, 0.07127273082733154]], [[100, 305, 4, 17, 386, 36], [0.0, 0.04670250415802002, 0.057402968406677246, 0.058135986328125, 0.06205320358276367, 0.06682336330413818]], [[101, 95, 225, 321, 253, 313], [0.0, 0.061447858810424805, 0.06223863363265991, 0.06277120113372803, 0.06317341327667236, 0.06344658136367798]], [[102, 116, 196, 16, 71, 12], [0.0, 0.10424625873565674, 0.10933911800384521, 0.11369442939758301, 0.11446934938430786, 0.11686515808105469]], [[103, 320, 217, 373, 254, 363], [1.7881393432617188e-07, 0.0886383056640625, 0.09232902526855469, 0.1002190113067627, 0.10117149353027344, 0.1013866662979126]], [[104, 121, 238, 235, 63, 5], [1.1920928955078125e-07, 0.06068903207778931, 0.0809105634689331, 0.08257389068603516, 0.08702385425567627, 0.08930325508117676]], [[105, 112, 229, 154, 378, 327], [5.960464477539063e-08, 5.960464477539063e-08, 0.05917179584503174, 0.06011837720870972, 0.062169671058654785, 0.06381475925445557]], [[106, 190, 307, 235, 86, 234], [0.0, 0.06543266773223877, 0.06772446632385254, 0.07941097021102905, 0.0797114372253418, 0.0801997184753418]], [[107, 154, 378, 12, 229, 71], [5.960464477539063e-08, 0.04877239465713501, 0.050668418407440186, 0.055678725242614746, 0.056058406829833984, 0.05793118476867676]], [[108, 328, 249, 138, 275, 220], [0.0, 0.07177650928497314, 0.08685648441314697, 0.12503087520599365, 0.12726235389709473, 0.12866270542144775]], [[109, 355, 241, 364, 180, 159], [0.0, 0.11791908740997314, 0.13346326351165771, 0.13997960090637207, 0.1401059627532959, 0.14248263835906982]], [[110, 384, 16, 386, 100, 232], [0.0, 0.06843173503875732, 0.09134280681610107, 0.09449940919876099, 0.09659075736999512, 0.09662806987762451]], [[111, 196, 384, 102, 16, 171], [0.0, 0.11676740646362305, 0.11820906400680542, 0.12492799758911133, 0.12523800134658813, 0.1256476640701294]], [[105, 112, 229, 154, 378, 327], [5.960464477539063e-08, 5.960464477539063e-08, 0.05917179584503174, 0.06011837720870972, 0.062169671058654785, 0.06381475925445557]], [[113, 124, 201, 88, 385, 123], [0.0, 0.06997668743133545, 0.08683311939239502, 0.09911012649536133, 0.10122346878051758, 0.10211563110351562]], [[114, 289, 213, 146, 379, 304], [0.0, 0.061497390270233154, 0.0671466588973999, 0.06792783737182617, 0.07411056756973267, 0.07517170906066895]], [[115, 253, 216, 350, 224, 213], [2.384185791015625e-07, 0.059723496437072754, 0.061445772647857666, 0.06264358758926392, 0.07254195213317871, 0.07257330417633057]], [[116, 333, 332, 102, 120, 382], [0.0, 0.07187950611114502, 0.08473366498947144, 0.10424625873565674, 0.11376458406448364, 0.1228262186050415]], [[117, 237, 247, 313, 46, 164], [0.0, 0.03872096538543701, 0.040894508361816406, 0.043010056018829346, 0.04485189914703369, 0.04846489429473877]], [[118, 167, 29, 266, 381, 56], [0.0, 0.09618115425109863, 0.09765148162841797, 0.10769784450531006, 0.12497621774673462, 0.12993431091308594]], [[119, 183, 207, 177, 37, 318], [0.0, 0.12758320569992065, 0.1407933235168457, 0.14410948753356934, 0.16429543495178223, 0.16598790884017944]], [[120, 116, 110, 333, 365, 332], [0.0, 0.11376458406448364, 0.11943799257278442, 0.1230822205543518, 0.13411009311676025, 0.14439153671264648]], [[121, 104, 238, 235, 47, 46], [0.0, 0.06068903207778931, 0.06908172369003296, 0.0730048418045044, 0.07663142681121826, 0.08185994625091553]], [[122, 367, 357, 353, 361, 114], [0.0, 0.10035276412963867, 0.12486898899078369, 0.12508511543273926, 0.12585455179214478, 0.13232958316802979]], [[123, 256, 290, 113, 286, 263], [0.0, 0.09953594207763672, 0.10008323192596436, 0.10211563110351562, 0.10259056091308594, 0.10428380966186523]], [[124, 385, 113, 85, 158, 207], [5.960464477539063e-08, 0.06751072406768799, 0.06997668743133545, 0.07188832759857178, 0.08282577991485596, 0.08580648899078369]], [[125, 273, 78, 280, 35, 29], [1.1920928955078125e-07, 0.08050459623336792, 0.08523368835449219, 0.09892523288726807, 0.09948348999023438, 0.10014116764068604]], [[126, 212, 162, 256, 296, 265], [0.0, 0.11717283725738525, 0.12505805492401123, 0.12548720836639404, 0.13098573684692383, 0.13601279258728027]], [[127, 290, 302, 354, 144, 381], [0.0, 0.08490544557571411, 0.09099435806274414, 0.09609770774841309, 0.10459303855895996, 0.10605096817016602]], [[128, 20, 374, 231, 289, 168], [0.0, 0.06490373611450195, 0.06525397300720215, 0.06637740135192871, 0.06836909055709839, 0.06965410709381104]], [[129, 174, 11, 100, 305, 386], [1.1920928955078125e-07, 0.0763406753540039, 0.07783496379852295, 0.07945269346237183, 0.08530986309051514, 0.08531677722930908]], [[130, 157, 288, 172, 351, 303], [0.0, 0.04884684085845947, 0.0528639554977417, 0.0539630651473999, 0.05597800016403198, 0.059380173683166504]], [[131, 335, 308, 1, 14, 266], [0.0, 0.07167452573776245, 0.0836445689201355, 0.09530746936798096, 0.10374307632446289, 0.11023187637329102]], [[188, 132, 282, 246, 342, 163], [0.0, 0.0, 0.03051072359085083, 0.042162418365478516, 0.04667508602142334, 0.049598515033721924]], [[133, 284, 95, 285, 224, 213], [0.0, 0.051020264625549316, 0.05794936418533325, 0.05939239263534546, 0.06011301279067993, 0.062019169330596924]], [[134, 342, 132, 188, 282, 321], [2.384185791015625e-07, 0.05448150634765625, 0.05530667304992676, 0.05530667304992676, 0.05598604679107666, 0.05657905340194702]], [[135, 326, 349, 4, 341, 305], [1.1920928955078125e-07, 0.08756411075592041, 0.09014558792114258, 0.0955694317817688, 0.09764736890792847, 0.09987294673919678]], [[136, 372, 246, 132, 188, 321], [0.0, 0.054118454456329346, 0.0567631721496582, 0.05791270732879639, 0.05791270732879639, 0.05853301286697388]], [[137, 329, 315, 248, 39, 387], [1.7881393432617188e-07, 0.04169309139251709, 0.06096470355987549, 0.06104719638824463, 0.061425626277923584, 0.06146848201751709]], [[138, 236, 255, 151, 176, 163], [1.1920928955078125e-07, 0.10861378908157349, 0.11450457572937012, 0.11727523803710938, 0.12122660875320435, 0.12285304069519043]], [[139, 168, 231, 155, 166, 13], [1.1920928955078125e-07, 0.038502275943756104, 0.045600056648254395, 0.04667651653289795, 0.048254430294036865, 0.04930591583251953]], [[140, 175, 351, 69, 63, 206], [1.1920928955078125e-07, 0.039841413497924805, 0.040223777294158936, 0.04053759574890137, 0.04347902536392212, 0.04510903358459473]], [[141, 254, 181, 208, 340, 248], [0.0, 0.10457015037536621, 0.11484718322753906, 0.12001848220825195, 0.12691915035247803, 0.12879371643066406]], [[142, 99, 292, 386, 384, 4], [0.0, 0.05203735828399658, 0.061025798320770264, 0.06602048873901367, 0.069080650806427, 0.08171546459197998]], [[143, 18, 219, 114, 165, 133], [0.0, 0.07432305812835693, 0.0778089165687561, 0.08044552803039551, 0.08148324489593506, 0.082938551902771]], [[144, 56, 150, 302, 127, 266], [0.0, 0.08944547176361084, 0.0936194658279419, 0.10178756713867188, 0.10459303855895996, 0.11129051446914673]], [[145, 333, 365, 50, 222, 110], [5.960464477539063e-08, 0.16857504844665527, 0.17762494087219238, 0.1813753843307495, 0.186751127243042, 0.19355249404907227]], [[146, 253, 224, 213, 202, 321], [0.0, 0.04297149181365967, 0.04311162233352661, 0.047022104263305664, 0.0490720272064209, 0.05018973350524902]], [[147, 140, 283, 91, 247, 46], [1.7881393432617188e-07, 0.0520288348197937, 0.05517733097076416, 0.05667293071746826, 0.05982697010040283, 0.06205064058303833]], [[148, 4, 161, 110, 171, 232], [1.1920928955078125e-07, 0.12286829948425293, 0.13056790828704834, 0.13077515363693237, 0.13434815406799316, 0.1363142728805542]], [[149, 89, 168, 296, 166, 84], [0.0, 0.050150394439697266, 0.11693650484085083, 0.11724996566772461, 0.11926507949829102, 0.1200377345085144]], [[150, 385, 170, 263, 315, 371], [0.0, 0.06793951988220215, 0.07390886545181274, 0.07398378849029541, 0.07402956485748291, 0.07626998424530029]], [[151, 236, 176, 247, 313, 163], [1.1920928955078125e-07, 0.03054708242416382, 0.03439533710479736, 0.03513038158416748, 0.03524297475814819, 0.041649699211120605]], [[152, 315, 215, 264, 170, 297], [0.0, 0.029022693634033203, 0.0330541729927063, 0.03768515586853027, 0.04138529300689697, 0.04211932420730591]], [[153, 214, 354, 278, 330, 130], [0.0, 0.076576828956604, 0.08762705326080322, 0.10594677925109863, 0.10622787475585938, 0.10626578330993652]], [[154, 378, 229, 96, 261, 171], [0.0, 0.03307163715362549, 0.03770929574966431, 0.0436440110206604, 0.046885788440704346, 0.047960102558135986]], [[155, 139, 168, 166, 13, 231], [0.0, 0.04667651653289795, 0.048741936683654785, 0.04926431179046631, 0.05151861906051636, 0.05759221315383911]], [[156, 326, 208, 5, 248, 28], [1.1920928955078125e-07, 0.08948791027069092, 0.09110891819000244, 0.09485805034637451, 0.09494328498840332, 0.09729921817779541]], [[157, 237, 234, 283, 351, 130], [0.0, 0.03891444206237793, 0.041809797286987305, 0.04224354028701782, 0.04318952560424805, 0.04884684085845947]], [[158, 205, 315, 387, 346, 152], [0.0, 0.06234467029571533, 0.06409400701522827, 0.06934535503387451, 0.06934535503387451, 0.06979984045028687]], [[159, 241, 125, 180, 194, 64], [0.0, 0.12192630767822266, 0.13011354207992554, 0.13670051097869873, 0.13846337795257568, 0.14227449893951416]], [[160, 205, 97, 170, 158, 319], [0.0, 0.07380890846252441, 0.08169972896575928, 0.09030342102050781, 0.09129774570465088, 0.09142541885375977]], [[161, 142, 4, 148, 100, 306], [0.0, 0.11919295787811279, 0.12914371490478516, 0.13056790828704834, 0.13110291957855225, 0.1322256326675415]], [[162, 115, 270, 356, 253, 216], [5.960464477539063e-08, 0.08436042070388794, 0.1007341742515564, 0.10078573226928711, 0.10137671232223511, 0.10393643379211426]], [[163, 202, 46, 176, 247, 151], [0.0, 0.038528621196746826, 0.040169358253479004, 0.04089045524597168, 0.04152274131774902, 0.041649699211120605]], [[164, 46, 247, 176, 313, 151], [1.1920928955078125e-07, 0.029860258102416992, 0.03600424528121948, 0.040330350399017334, 0.04087251424789429, 0.04346191883087158]], [[165, 313, 202, 176, 321, 46], [0.0, 0.04685312509536743, 0.04824185371398926, 0.05150878429412842, 0.052893638610839844, 0.05407130718231201]], [[166, 168, 139, 155, 231, 13], [0.0, 0.04307818412780762, 0.048254430294036865, 0.04926431179046631, 0.055117011070251465, 0.05737227201461792]], [[167, 56, 266, 118, 302, 44], [0.0, 0.0911402702331543, 0.09277230501174927, 0.09618115425109863, 0.11065590381622314, 0.1223975419998169]], [[168, 139, 166, 82, 231, 155], [1.1920928955078125e-07, 0.038502275943756104, 0.04307818412780762, 0.047386229038238525, 0.0475611686706543, 0.048741936683654785]], [[169, 2, 242, 82, 287, 210], [0.0, 0.14898580312728882, 0.16719865798950195, 0.17281115055084229, 0.17548668384552002, 0.17557591199874878]], [[170, 152, 264, 248, 215, 315], [0.0, 0.04138529300689697, 0.04343944787979126, 0.04387307167053223, 0.0440831184387207, 0.044556260108947754]], [[171, 154, 71, 196, 96, 229], [0.0, 0.047960102558135986, 0.056061625480651855, 0.05887669324874878, 0.059157371520996094, 0.05950188636779785]], [[172, 185, 303, 190, 288, 351], [1.1920928955078125e-07, 0.03271961212158203, 0.042091548442840576, 0.044192731380462646, 0.04748642444610596, 0.04832947254180908]], [[173, 152, 315, 264, 297, 248], [5.960464477539063e-08, 0.05035513639450073, 0.05108517408370972, 0.054639577865600586, 0.05777186155319214, 0.05777931213378906]], [[174, 129, 11, 124, 245, 56], [0.0, 0.0763406753540039, 0.1170300841331482, 0.12576216459274292, 0.1260395050048828, 0.12780272960662842]], [[175, 140, 206, 260, 69, 351], [0.0, 0.039841413497924805, 0.04417717456817627, 0.04677695035934448, 0.05299878120422363, 0.053450584411621094]], [[176, 151, 8, 321, 313, 164], [0.0, 0.03439533710479736, 0.035824596881866455, 0.03728067874908447, 0.03986799716949463, 0.04033041000366211]], [[177, 335, 318, 183, 131, 200], [0.0, 0.09554845094680786, 0.09661346673965454, 0.10847395658493042, 0.11351335048675537, 0.12389826774597168]], [[178, 10, 348, 67, 60, 352], [2.384185791015625e-07, 0.04849761724472046, 0.057170331478118896, 0.05942332744598389, 0.059829115867614746, 0.06130194664001465]], [[179, 336, 40, 59, 324, 189], [0.0, 0.12969249486923218, 0.1300143003463745, 0.13071811199188232, 0.1313653588294983, 0.13262450695037842]], [[180, 364, 191, 159, 109, 294], [1.1920928955078125e-07, 0.10436761379241943, 0.13479876518249512, 0.13670051097869873, 0.1401059627532959, 0.14787226915359497]], [[181, 340, 262, 21, 280, 254], [0.0, 0.08431589603424072, 0.0846407413482666, 0.09735721349716187, 0.10347855091094971, 0.10864698886871338]], [[182, 215, 39, 264, 152, 248], [1.1920928955078125e-07, 0.0442354679107666, 0.05171966552734375, 0.05360865592956543, 0.05443882942199707, 0.05518054962158203]], [[183, 318, 90, 177, 37, 207], [0.0, 0.10338234901428223, 0.10645782947540283, 0.10847395658493042, 0.11037266254425049, 0.11133712530136108]], [[184, 354, 334, 310, 153, 127], [0.0, 0.12634629011154175, 0.12635016441345215, 0.1350364089012146, 0.13823461532592773, 0.1463993787765503]], [[185, 172, 303, 190, 206, 351], [2.384185791015625e-07, 0.03271961212158203, 0.04315638542175293, 0.04532593488693237, 0.04881632328033447, 0.05002951622009277]], [[186, 270, 304, 13, 289, 231], [0.0, 0.0514562726020813, 0.05253458023071289, 0.053816914558410645, 0.05741381645202637, 0.05839073657989502]], [[187, 316, 153, 354, 310, 74], [0.0, 0.10764938592910767, 0.11472475528717041, 0.12159013748168945, 0.13145673274993896, 0.13740986585617065]], [[188, 132, 282, 246, 342, 163], [0.0, 0.0, 0.03051072359085083, 0.042162418365478516, 0.04667508602142334, 0.049598515033721924]], [[189, 74, 265, 286, 324, 117], [0.0, 0.07308119535446167, 0.08028513193130493, 0.08207583427429199, 0.08360898494720459, 0.0908135175704956]], [[190, 238, 172, 185, 234, 157], [0.0, 0.04393422603607178, 0.044192731380462646, 0.04532593488693237, 0.04832237958908081, 0.05062073469161987]], [[191, 367, 383, 219, 353, 321], [1.1920928955078125e-07, 0.07330566644668579, 0.09736895561218262, 0.10805535316467285, 0.11266076564788818, 0.12059873342514038]], [[192, 267, 308, 269, 14, 86], [0.0, 0.06974786520004272, 0.0913735032081604, 0.09656786918640137, 0.09775185585021973, 0.09786266088485718]], [[193, 247, 283, 313, 164, 46], [0.0, 0.039536237716674805, 0.04009842872619629, 0.04227590560913086, 0.04506206512451172, 0.04586458206176758]], [[194, 258, 29, 273, 125, 78], [0.0, 0.08314931392669678, 0.10909831523895264, 0.12307608127593994, 0.12335461378097534, 0.13683819770812988]], [[195, 68, 263, 265, 115, 271], [0.0, 0.16237014532089233, 0.16380560398101807, 0.1642734408378601, 0.16475909948349, 0.165144681930542]], [[196, 229, 71, 96, 12, 261], [1.7881393432617188e-07, 0.04011428356170654, 0.04373753070831299, 0.04440498352050781, 0.04806393384933472, 0.049077391624450684]], [[197, 35, 280, 255, 340, 78], [0.0, 0.08288908004760742, 0.08588320016860962, 0.08636099100112915, 0.09568792581558228, 0.10139358043670654]], [[198, 95, 186, 213, 289, 13], [1.1920928955078125e-07, 0.05938601493835449, 0.05971860885620117, 0.06081593036651611, 0.06375157833099365, 0.06488990783691406]], [[199, 295, 88, 46, 235, 256], [0.0, 0.06582975387573242, 0.07467961311340332, 0.08034956455230713, 0.08534824848175049, 0.08859682083129883]], [[200, 267, 276, 90, 266, 318], [0.0, 0.08372175693511963, 0.09043216705322266, 0.09410595893859863, 0.09464442729949951, 0.09950971603393555]], [[201, 203, 295, 276, 130, 217], [5.960464477539063e-08, 0.05367302894592285, 0.0641709566116333, 0.06987738609313965, 0.07016229629516602, 0.07367247343063354]], [[202, 377, 163, 313, 151, 46], [5.960464477539063e-08, 0.03765213489532471, 0.038528621196746826, 0.04629582166671753, 0.04703104496002197, 0.04782074689865112]], [[203, 201, 295, 320, 217, 63], [0.0, 0.05367302894592285, 0.06436455249786377, 0.0712890625, 0.07761603593826294, 0.07933443784713745]], [[204, 303, 39, 363, 288, 315], [1.1920928955078125e-07, 0.05359905958175659, 0.06129831075668335, 0.06167316436767578, 0.06218141317367554, 0.06325232982635498]], [[205, 97, 158, 160, 170, 19], [0.0, 0.058473944664001465, 0.06234467029571533, 0.07380890846252441, 0.0769963264465332, 0.07950949668884277]], [[206, 175, 140, 185, 172, 283], [0.0, 0.04417717456817627, 0.04510903358459473, 0.04881632328033447, 0.049293339252471924, 0.049936532974243164]], [[207, 276, 90, 124, 354, 37], [0.0, 0.05671370029449463, 0.06739163398742676, 0.08580648899078369, 0.08856755495071411, 0.09021544456481934]], [[208, 156, 382, 24, 41, 141], [0.0, 0.09110891819000244, 0.09255808591842651, 0.09844052791595459, 0.11123883724212646, 0.12001848220825195]], [[209, 341, 257, 388, 248, 297], [0.0, 0.052298665046691895, 0.052356839179992676, 0.059981346130371094, 0.06338274478912354, 0.06636857986450195]], [[210, 72, 168, 2, 139, 82], [0.0, 0.047621190547943115, 0.05250430107116699, 0.05474531650543213, 0.05731761455535889, 0.057859063148498535]], [[211, 224, 366, 95, 285, 359], [0.0, 0.04029190540313721, 0.046714723110198975, 0.04931008815765381, 0.04990732669830322, 0.05194205045700073]], [[212, 296, 256, 68, 83, 253], [5.960464477539063e-08, 0.061678946018218994, 0.06460320949554443, 0.08544027805328369, 0.09528481960296631, 0.09984481334686279]], [[213, 253, 299, 366, 379, 146], [1.1920928955078125e-07, 0.034073472023010254, 0.044950902462005615, 0.04644334316253662, 0.04664558172225952, 0.047022104263305664]], [[214, 153, 130, 237, 283, 354], [0.0, 0.076576828956604, 0.07987087965011597, 0.08594679832458496, 0.08641105890274048, 0.08822894096374512]], [[215, 315, 152, 297, 264, 248], [0.0, 0.03122788667678833, 0.0330541729927063, 0.03325831890106201, 0.03361070156097412, 0.0337100625038147]], [[216, 253, 350, 115, 321, 299], [0.0, 0.050394296646118164, 0.053394436836242676, 0.061445772647857666, 0.06209397315979004, 0.06213897466659546]], [[217, 320, 140, 137, 63, 303], [0.0, 0.06385838985443115, 0.0667266845703125, 0.06779682636260986, 0.06818455457687378, 0.07030534744262695]], [[218, 62, 9, 322, 135, 150], [0.0, 0.24574607610702515, 0.25244301557540894, 0.2537848949432373, 0.2544664144515991, 0.2551991939544678]], [[219, 299, 321, 213, 253, 224], [0.0, 0.04879504442214966, 0.05218100547790527, 0.05616891384124756, 0.05658745765686035, 0.056980669498443604]], [[220, 275, 299, 188, 132, 213], [1.1920928955078125e-07, 0.07839620113372803, 0.09609067440032959, 0.10004889965057373, 0.10004889965057373, 0.10803067684173584]], [[221, 299, 323, 219, 246, 213], [5.960464477539063e-08, 0.05705660581588745, 0.059783995151519775, 0.06143224239349365, 0.0712653398513794, 0.07286858558654785]], [[222, 306, 226, 50, 28, 22], [0.0, 0.08839988708496094, 0.09808802604675293, 0.09855282306671143, 0.10258936882019043, 0.10683900117874146]], [[223, 202, 165, 372, 146, 46], [0.0, 0.10599768161773682, 0.11256325244903564, 0.11376464366912842, 0.11489713191986084, 0.11684775352478027]], [[224, 95, 321, 211, 253, 350], [1.1920928955078125e-07, 0.038228750228881836, 0.03859192132949829, 0.04029190540313721, 0.04080760478973389, 0.04297339916229248]], [[225, 313, 193, 247, 46, 164], [2.384185791015625e-07, 0.04574239253997803, 0.04641461372375488, 0.05041724443435669, 0.05070233345031738, 0.0545041561126709]], [[226, 57, 388, 305, 23, 349], [0.0, 0.07655215263366699, 0.07695472240447998, 0.0799216628074646, 0.0837939977645874, 0.08413827419281006]], [[227, 123, 263, 290, 59, 97], [5.960464477539063e-08, 0.14671951532363892, 0.14684391021728516, 0.15178614854812622, 0.1536693572998047, 0.15961027145385742]], [[228, 370, 128, 259, 374, 304], [1.7881393432617188e-07, 0.07744860649108887, 0.07922613620758057, 0.08515393733978271, 0.08637106418609619, 0.09057092666625977]], [[229, 378, 45, 96, 71, 12], [0.0, 0.02970176935195923, 0.03085505962371826, 0.0316767692565918, 0.033486127853393555, 0.03492254018783569]], [[230, 339, 303, 288, 351, 336], [0.0, 0.054657578468322754, 0.055512845516204834, 0.05623066425323486, 0.058684587478637695, 0.059938669204711914]], [[231, 13, 139, 281, 168, 20], [0.0, 0.044399380683898926, 0.045600056648254395, 0.04671525955200195, 0.0475611686706543, 0.05073964595794678]], [[232, 305, 386, 384, 292, 4], [1.1920928955078125e-07, 0.06703424453735352, 0.06848669052124023, 0.07342743873596191, 0.08094269037246704, 0.0882001519203186]], [[233, 339, 268, 303, 39, 288], [0.0, 0.04059338569641113, 0.052489399909973145, 0.05279940366744995, 0.05973005294799805, 0.06287527084350586]], [[234, 157, 351, 237, 190, 288], [5.960464477539063e-08, 0.041809797286987305, 0.04629331827163696, 0.04806828498840332, 0.04832237958908081, 0.048908352851867676]], [[235, 46, 307, 47, 117, 190], [2.384185791015625e-07, 0.05465340614318848, 0.057533442974090576, 0.05788624286651611, 0.05819946527481079, 0.05842334032058716]], [[236, 151, 313, 247, 163, 176], [0.0, 0.03054708242416382, 0.04198288917541504, 0.04526472091674805, 0.04932737350463867, 0.0503961443901062]], [[237, 117, 157, 234, 46, 247], [0.0, 0.03872096538543701, 0.03891444206237793, 0.04806828498840332, 0.04839742183685303, 0.04879486560821533]], [[238, 190, 283, 46, 185, 193], [1.1920928955078125e-07, 0.04393422603607178, 0.04766535758972168, 0.049554526805877686, 0.050442516803741455, 0.05430269241333008]], [[239, 352, 10, 178, 348, 67], [0.0, 0.07084167003631592, 0.08190447092056274, 0.08273911476135254, 0.0911741852760315, 0.10066437721252441]], [[240, 250, 341, 209, 85, 251], [0.0, 0.08492350578308105, 0.09451693296432495, 0.1040802001953125, 0.10992419719696045, 0.11272639036178589]], [[241, 98, 159, 109, 64, 194], [0.0, 0.11433207988739014, 0.12192630767822266, 0.13346326351165771, 0.15266716480255127, 0.17041456699371338]], [[242, 287, 3, 32, 2, 33], [1.1920928955078125e-07, 0.04439401626586914, 0.05911374092102051, 0.06627368927001953, 0.07726788520812988, 0.07973748445510864]], [[243, 293, 300, 319, 330, 331], [1.7881393432617188e-07, 0.07479345798492432, 0.07886958122253418, 0.0907595157623291, 0.09081459045410156, 0.09595084190368652]], [[244, 190, 86, 288, 269, 104], [0.0, 0.0859760046005249, 0.08694314956665039, 0.0883176326751709, 0.08976149559020996, 0.09542155265808105]], [[245, 209, 341, 17, 36, 388], [0.0, 0.08879446983337402, 0.09406983852386475, 0.09827637672424316, 0.10112810134887695, 0.10261666774749756]], [[246, 188, 132, 321, 224, 282], [5.960464477539063e-08, 0.042162418365478516, 0.042162418365478516, 0.04614973068237305, 0.047497332096099854, 0.04827314615249634]], [[247, 151, 46, 164, 313, 283], [5.960464477539063e-08, 0.03513038158416748, 0.03558027744293213, 0.03600424528121948, 0.03616070747375488, 0.03636515140533447]], [[248, 264, 297, 215, 388, 315], [0.0, 0.027991533279418945, 0.032820940017700195, 0.0337100625038147, 0.03383636474609375, 0.037406086921691895]], [[249, 328, 361, 108, 323, 284], [0.0, 0.07809829711914062, 0.0789412260055542, 0.08685648441314697, 0.09731101989746094, 0.1051023006439209]], [[250, 341, 85, 170, 209, 251], [2.384185791015625e-07, 0.05126452445983887, 0.06770020723342896, 0.06879866123199463, 0.06937408447265625, 0.07097244262695312]], [[251, 341, 388, 326, 209, 100], [0.0, 0.05367177724838257, 0.06482815742492676, 0.06632876396179199, 0.06644272804260254, 0.06829798221588135]], [[252, 168, 231, 139, 20, 304], [0.0, 0.06338435411453247, 0.06504929065704346, 0.06552678346633911, 0.06628251075744629, 0.06873869895935059]], [[253, 213, 224, 146, 350, 95], [5.960464477539063e-08, 0.034073472023010254, 0.04080760478973389, 0.04297149181365967, 0.04321259260177612, 0.045413196086883545]], [[254, 87, 137, 329, 39, 182], [0.0, 0.05593407154083252, 0.06454432010650635, 0.07064652442932129, 0.08084940910339355, 0.0835336446762085]], [[255, 31, 197, 35, 247, 236], [5.960464477539063e-08, 0.07916033267974854, 0.08636099100112915, 0.09202700853347778, 0.09254544973373413, 0.0929495096206665]], [[256, 212, 199, 88, 286, 295], [0.0, 0.06460320949554443, 0.08859682083129883, 0.08902466297149658, 0.09178006649017334, 0.09236466884613037]], [[257, 209, 388, 248, 341, 264], [2.384185791015625e-07, 0.052356839179992676, 0.05862081050872803, 0.06059980392456055, 0.061239540576934814, 0.06209409236907959]], [[258, 194, 273, 78, 382, 41], [0.0, 0.08314931392669678, 0.09160691499710083, 0.09212398529052734, 0.09972637891769409, 0.10013306140899658]], [[259, 34, 228, 128, 289, 299], [0.0, 0.06770718097686768, 0.08515393733978271, 0.08645570278167725, 0.09383285045623779, 0.09447968006134033]], [[260, 175, 303, 331, 315, 351], [0.0, 0.04677695035934448, 0.05026984214782715, 0.052726566791534424, 0.052922606468200684, 0.05300849676132202]], [[261, 229, 96, 154, 196, 71], [0.0, 0.04361617565155029, 0.04490005970001221, 0.046885788440704346, 0.049077391624450684, 0.051032304763793945]], [[262, 380, 181, 388, 264, 248], [5.960464477539063e-08, 0.06579279899597168, 0.0846407413482666, 0.0911334753036499, 0.09974491596221924, 0.09974539279937744]], [[263, 97, 150, 371, 205, 385], [5.960464477539063e-08, 0.06861639022827148, 0.07398378849029541, 0.07639729976654053, 0.08363115787506104, 0.08503293991088867]], [[264, 248, 215, 315, 388, 152], [0.0, 0.027991533279418945, 0.03361070156097412, 0.034439265727996826, 0.03712153434753418, 0.03768515586853027]], [[265, 189, 216, 136, 83, 115], [0.0, 0.08028513193130493, 0.08032166957855225, 0.08686035871505737, 0.09290587902069092, 0.09560561180114746]], [[266, 56, 267, 264, 388, 248], [0.0, 0.07561671733856201, 0.07990676164627075, 0.09084254503250122, 0.09090793132781982, 0.09234952926635742]], [[267, 192, 276, 90, 266, 269], [1.1920928955078125e-07, 0.06974786520004272, 0.07608139514923096, 0.07759428024291992, 0.07990676164627075, 0.08077740669250488]], [[268, 152, 233, 303, 39, 19], [0.0, 0.0469512939453125, 0.052489399909973145, 0.05345869064331055, 0.05399841070175171, 0.05508875846862793]], [[269, 288, 86, 312, 303, 185], [0.0, 0.055486083030700684, 0.06312799453735352, 0.06374728679656982, 0.06543993949890137, 0.06904160976409912]], [[270, 186, 289, 20, 304, 231], [0.0, 0.0514562726020813, 0.05224037170410156, 0.05715465545654297, 0.05957794189453125, 0.06545329093933105]], [[271, 59, 263, 286, 324, 319], [0.0, 0.07416236400604248, 0.13379919528961182, 0.14302611351013184, 0.1525256633758545, 0.15428918600082397]], [[272, 202, 377, 165, 146, 46], [0.0, 0.07074785232543945, 0.07616078853607178, 0.08292841911315918, 0.08365535736083984, 0.09586316347122192]], [[273, 125, 41, 258, 78, 23], [0.0, 0.08050459623336792, 0.08988595008850098, 0.09160691499710083, 0.09268152713775635, 0.10079669952392578]], [[274, 117, 237, 202, 190, 157], [0.0, 0.06511354446411133, 0.06642013788223267, 0.06781589984893799, 0.07089567184448242, 0.076163649559021]], [[275, 132, 188, 282, 246, 372], [0.0, 0.05321246385574341, 0.05321246385574341, 0.06017589569091797, 0.06959843635559082, 0.07199835777282715]], [[276, 207, 354, 130, 363, 288], [5.960464477539063e-08, 0.05671370029449463, 0.06128227710723877, 0.06226271390914917, 0.06686133146286011, 0.06722378730773926]], [[277, 381, 118, 127, 167, 177], [0.0, 0.15473634004592896, 0.18263989686965942, 0.18882620334625244, 0.19302308559417725, 0.20029878616333008]], [[278, 219, 91, 313, 176, 165], [5.960464477539063e-08, 0.07216066122055054, 0.07420873641967773, 0.07645106315612793, 0.07768899202346802, 0.0789564847946167]], [[279, 5, 238, 307, 14, 190], [2.384185791015625e-07, 0.09229850769042969, 0.09850603342056274, 0.09944677352905273, 0.10949325561523438, 0.10966455936431885]], [[280, 197, 204, 35, 78, 39], [0.0, 0.08588320016860962, 0.0866660475730896, 0.08866453170776367, 0.09372454881668091, 0.0948103666305542]], [[281, 13, 231, 304, 82, 20], [0.0, 0.04092681407928467, 0.04671525955200195, 0.04710507392883301, 0.04809534549713135, 0.051641106605529785]], [[282, 132, 188, 163, 342, 246], [0.0, 0.03051072359085083, 0.03051072359085083, 0.04447174072265625, 0.047084808349609375, 0.04827314615249634]], [[283, 247, 193, 157, 351, 140], [1.1920928955078125e-07, 0.03636515140533447, 0.04009842872619629, 0.04224354028701782, 0.04572492837905884, 0.047081947326660156]], [[284, 246, 133, 146, 253, 224], [1.1920928955078125e-07, 0.05098390579223633, 0.051020264625549316, 0.05194532871246338, 0.053162336349487305, 0.053975820541381836]], [[285, 95, 211, 224, 299, 133], [2.384185791015625e-07, 0.045319557189941406, 0.04990732669830322, 0.051267027854919434, 0.05906081199645996, 0.05939239263534546]], [[286, 189, 256, 265, 123, 290], [0.0, 0.08207583427429199, 0.09178006649017334, 0.09577703475952148, 0.10259056091308594, 0.10346311330795288]], [[287, 242, 3, 10, 33, 55], [0.0, 0.04439401626586914, 0.04547286033630371, 0.06250250339508057, 0.0674174427986145, 0.07249850034713745]], [[288, 303, 363, 351, 331, 373], [0.0, 0.03659999370574951, 0.03985881805419922, 0.04112839698791504, 0.04183554649353027, 0.044930100440979004]], [[289, 347, 379, 304, 20, 270], [0.0, 0.04471755027770996, 0.04571676254272461, 0.0495530366897583, 0.05222505331039429, 0.05224037170410156]], [[290, 127, 256, 175, 244, 123], [1.7881393432617188e-07, 0.08490544557571411, 0.09311741590499878, 0.09445226192474365, 0.09826362133026123, 0.10008323192596436]], [[291, 121, 104, 235, 238, 27], [0.0, 0.09857821464538574, 0.10529184341430664, 0.12712407112121582, 0.12942755222320557, 0.12951922416687012]], [[292, 386, 384, 99, 142, 305], [0.0, 0.04100000858306885, 0.0495830774307251, 0.05942487716674805, 0.061025798320770264, 0.07426929473876953]], [[293, 330, 243, 91, 147, 247], [0.0, 0.05935186147689819, 0.07479345798492432, 0.0830075740814209, 0.08485555648803711, 0.08539712429046631]], [[294, 180, 364, 191, 367, 353], [0.0, 0.14787226915359497, 0.18130362033843994, 0.18247848749160767, 0.1886061429977417, 0.219915509223938]], [[295, 88, 201, 203, 199, 63], [5.960464477539063e-08, 0.05892181396484375, 0.0641709566116333, 0.06436455249786377, 0.06582975387573242, 0.07778739929199219]], [[296, 212, 216, 256, 253, 68], [1.1920928955078125e-07, 0.061678946018218994, 0.09516030550003052, 0.09949254989624023, 0.10453188419342041, 0.10494279861450195]], [[297, 315, 248, 215, 388, 264], [5.960464477539063e-08, 0.03181099891662598, 0.032820940017700195, 0.03325831890106201, 0.03570961952209473, 0.038028597831726074]], [[298, 165, 46, 91, 317, 176], [0.0, 0.07285881042480469, 0.07455956935882568, 0.076804518699646, 0.07867515087127686, 0.07960057258605957]], [[299, 213, 253, 219, 321, 224], [0.0, 0.044950902462005615, 0.047103047370910645, 0.04879504442214966, 0.05067932605743408, 0.05362284183502197]], [[300, 243, 319, 268, 205, 331], [1.1920928955078125e-07, 0.07886958122253418, 0.08785009384155273, 0.10014307498931885, 0.10056126117706299, 0.10154461860656738]], [[301, 253, 47, 350, 372, 136], [0.0, 0.08043920993804932, 0.08330214023590088, 0.08347982168197632, 0.0848701000213623, 0.08563423156738281]], [[302, 127, 266, 144, 209, 56], [0.0, 0.09099435806274414, 0.09933710098266602, 0.10178756713867188, 0.10841000080108643, 0.10854208469390869]], [[303, 351, 288, 172, 185, 331], [0.0, 0.035733163356781006, 0.03659999370574951, 0.042091548442840576, 0.04315638542175293, 0.043724894523620605]], [[304, 379, 13, 281, 289, 20], [0.0, 0.04207432270050049, 0.04615187644958496, 0.04710507392883301, 0.0495530366897583, 0.05105018615722656]], [[305, 100, 17, 386, 57, 384], [5.960464477539063e-08, 0.04670250415802002, 0.048119425773620605, 0.0510176420211792, 0.058255672454833984, 0.06261122226715088]], [[306, 222, 386, 50, 384, 154], [5.960464477539063e-08, 0.08839988708496094, 0.09433853626251221, 0.09574484825134277, 0.10182827711105347, 0.10687518119812012]], [[307, 234, 190, 237, 75, 235], [0.0, 0.05184704065322876, 0.05193096399307251, 0.055587053298950195, 0.05635339021682739, 0.057533442974090576]], [[308, 335, 264, 90, 131, 387], [0.0, 0.06575512886047363, 0.08238101005554199, 0.08303147554397583, 0.0836445689201355, 0.0871124267578125]], [[309, 76, 210, 375, 32, 168], [0.0, 0.06593167781829834, 0.06833362579345703, 0.07156187295913696, 0.07316380739212036, 0.07995998859405518]], [[310, 62, 150, 144, 21, 56], [1.1920928955078125e-07, 0.10104107856750488, 0.10221803188323975, 0.11560547351837158, 0.11817789077758789, 0.12230360507965088]], [[311, 168, 82, 210, 139, 13], [2.384185791015625e-07, 0.05165773630142212, 0.05482804775238037, 0.06124305725097656, 0.06368148326873779, 0.06369411945343018]], [[312, 269, 233, 70, 157, 288], [5.960464477539063e-08, 0.06374728679656982, 0.0738992691040039, 0.0778346061706543, 0.08098965883255005, 0.08297508955001831]], [[313, 46, 151, 247, 176, 164], [1.1920928955078125e-07, 0.03459441661834717, 0.03524297475814819, 0.03616070747375488, 0.03986799716949463, 0.04087251424789429]], [[314, 7, 66, 12, 71, 92], [1.1920928955078125e-07, 0.09306597709655762, 0.09961330890655518, 0.10214090347290039, 0.10666036605834961, 0.10812437534332275]], [[315, 152, 215, 297, 264, 346], [0.0, 0.029022693634033203, 0.03122788667678833, 0.03181099891662598, 0.034439265727996826, 0.03713566064834595]], [[316, 187, 21, 62, 364, 310], [0.0, 0.10764938592910767, 0.15033257007598877, 0.15456503629684448, 0.1598653793334961, 0.1609399914741516]], [[317, 163, 246, 202, 176, 321], [0.0, 0.04508185386657715, 0.05675947666168213, 0.06066417694091797, 0.06198209524154663, 0.06432461738586426]], [[318, 177, 200, 183, 335, 29], [0.0, 0.09661346673965454, 0.09950971603393555, 0.10338234901428223, 0.11081039905548096, 0.11081206798553467]], [[319, 331, 336, 19, 260, 268], [1.1920928955078125e-07, 0.061822712421417236, 0.063728928565979, 0.0644921064376831, 0.07183587551116943, 0.07218503952026367]], [[320, 303, 217, 276, 363, 373], [1.1920928955078125e-07, 0.06338858604431152, 0.06385838985443115, 0.06788754463195801, 0.06934404373168945, 0.07050752639770508]], [[321, 176, 372, 224, 8, 350], [1.1920928955078125e-07, 0.03728067874908447, 0.03848421573638916, 0.03859192132949829, 0.03882884979248047, 0.04415726661682129]], [[322, 331, 315, 288, 215, 373], [5.960464477539063e-08, 0.07240182161331177, 0.07340139150619507, 0.07544600963592529, 0.07686710357666016, 0.07772386074066162]], [[323, 379, 361, 221, 347, 289], [0.0, 0.05575680732727051, 0.05919218063354492, 0.059783995151519775, 0.060251474380493164, 0.06181180477142334]], [[324, 176, 164, 46, 345, 163], [0.0, 0.0651627779006958, 0.07201546430587769, 0.07234358787536621, 0.0735517144203186, 0.07466632127761841]], [[325, 334, 42, 123, 127, 290], [1.1920928955078125e-07, 0.19827699661254883, 0.2067275047302246, 0.2369593381881714, 0.24180060625076294, 0.24313586950302124]], [[326, 388, 341, 264, 248, 215], [0.0, 0.04782378673553467, 0.05234503746032715, 0.055666565895080566, 0.058726608753204346, 0.06087803840637207]], [[327, 105, 112, 378, 45, 229], [5.960464477539063e-08, 0.06381475925445557, 0.06381475925445557, 0.06944799423217773, 0.07256990671157837, 0.07371711730957031]], [[328, 108, 249, 219, 213, 296], [1.1920928955078125e-07, 0.07177650928497314, 0.07809829711914062, 0.1048508882522583, 0.10536694526672363, 0.10550308227539062]], [[329, 137, 248, 215, 264, 315], [1.1920928955078125e-07, 0.04169309139251709, 0.051375508308410645, 0.05369555950164795, 0.05403542518615723, 0.05770862102508545]], [[330, 293, 217, 147, 283, 247], [0.0, 0.05935186147689819, 0.07420563697814941, 0.08270502090454102, 0.09033524990081787, 0.09044539928436279]], [[331, 373, 288, 303, 363, 351], [0.0, 0.033246397972106934, 0.04183554649353027, 0.043724894523620605, 0.04915785789489746, 0.04934459924697876]], [[332, 22, 116, 382, 23, 222], [0.0, 0.06321287155151367, 0.08473366498947144, 0.09938156604766846, 0.10419625043869019, 0.10917425155639648]], [[333, 116, 365, 120, 102, 332], [0.0, 0.07187950611114502, 0.1041383147239685, 0.1230822205543518, 0.12585747241973877, 0.12862420082092285]], [[334, 184, 127, 144, 123, 325], [0.0, 0.12635016441345215, 0.15765130519866943, 0.16203105449676514, 0.19199228286743164, 0.19827699661254883]], [[335, 308, 131, 90, 177, 1], [1.1920928955078125e-07, 0.06575512886047363, 0.07167452573776245, 0.09271591901779175, 0.09554845094680786, 0.09792345762252808]], [[336, 69, 331, 351, 234, 63], [1.7881393432617188e-07, 0.05072653293609619, 0.05346435308456421, 0.055133044719696045, 0.05547332763671875, 0.05622696876525879]], [[337, 168, 52, 76, 30, 155], [5.960464477539063e-08, 0.07063150405883789, 0.07480299472808838, 0.07576721906661987, 0.07941257953643799, 0.08121269941329956]], [[338, 274, 130, 235, 190, 237], [0.0, 0.07895278930664062, 0.08027344942092896, 0.09132903814315796, 0.09283792972564697, 0.09636551141738892]], [[339, 233, 303, 288, 351, 331], [5.960464477539063e-08, 0.04059338569641113, 0.04445230960845947, 0.04978436231613159, 0.0513913631439209, 0.05194687843322754]], [[340, 181, 197, 280, 125, 78], [0.0, 0.08431589603424072, 0.09568792581558228, 0.0972057580947876, 0.10161662101745605, 0.10323655605316162]], [[341, 388, 250, 209, 326, 251], [0.0, 0.04771256446838379, 0.05126452445983887, 0.052298665046691895, 0.05234503746032715, 0.05367177724838257]], [[342, 132, 188, 282, 134, 164], [5.960464477539063e-08, 0.04667508602142334, 0.04667508602142334, 0.047084808349609375, 0.05448150634765625, 0.05536198616027832]], [[343, 229, 71, 378, 12, 45], [0.0, 0.040993690490722656, 0.04268908500671387, 0.050421059131622314, 0.05212092399597168, 0.05409228801727295]], [[344, 359, 211, 224, 95, 366], [1.1920928955078125e-07, 0.04343211650848389, 0.056131064891815186, 0.05887031555175781, 0.058905959129333496, 0.06205892562866211]], [[345, 164, 176, 321, 46, 313], [1.7881393432617188e-07, 0.05255228281021118, 0.052925705909729004, 0.053695738315582275, 0.053798675537109375, 0.05791795253753662]], [[346, 387, 315, 297, 248, 264], [0.0, 0.0, 0.03713566064834595, 0.040827035903930664, 0.04180556535720825, 0.04437363147735596]], [[347, 289, 20, 360, 379, 304], [0.0, 0.04471755027770996, 0.048122286796569824, 0.05400210618972778, 0.05555236339569092, 0.056641221046447754]], [[348, 60, 67, 178, 10, 55], [5.960464477539063e-08, 0.049979567527770996, 0.050065040588378906, 0.057170331478118896, 0.05815911293029785, 0.06219989061355591]], [[349, 388, 341, 248, 170, 297], [0.0, 0.045649588108062744, 0.05782216787338257, 0.06094694137573242, 0.06208372116088867, 0.06222832202911377]], [[350, 224, 253, 321, 372, 95], [0.0, 0.04297339916229248, 0.04321259260177612, 0.04415726661682129, 0.04859113693237305, 0.05195820331573486]], [[351, 303, 140, 69, 288, 157], [0.0, 0.035733163356781006, 0.040223777294158936, 0.040578365325927734, 0.04112839698791504, 0.04318952560424805]], [[352, 178, 10, 348, 67, 60], [1.1920928955078125e-07, 0.06130194664001465, 0.06439387798309326, 0.06561315059661865, 0.06792712211608887, 0.06887274980545044]], [[353, 224, 95, 285, 146, 18], [2.980232238769531e-07, 0.07158005237579346, 0.0747573971748352, 0.07702744007110596, 0.07743364572525024, 0.07780194282531738]], [[354, 276, 38, 130, 153, 214], [0.0, 0.06128227710723877, 0.0828404426574707, 0.08307832479476929, 0.08762705326080322, 0.08822894096374512]], [[355, 29, 109, 125, 118, 194], [1.7881393432617188e-07, 0.10919511318206787, 0.11791908740997314, 0.1233258843421936, 0.13243824243545532, 0.13881301879882812]], [[356, 162, 128, 368, 168, 270], [0.0, 0.10078573226928711, 0.102932870388031, 0.10747706890106201, 0.10797029733657837, 0.10857933759689331]], [[357, 289, 299, 359, 379, 219], [5.960464477539063e-08, 0.07635098695755005, 0.07760334014892578, 0.07969707250595093, 0.0798446536064148, 0.08094775676727295]], [[358, 254, 280, 204, 339, 363], [0.0, 0.09638917446136475, 0.10009729862213135, 0.10281389951705933, 0.10327589511871338, 0.10647010803222656]], [[359, 344, 253, 224, 211, 146], [0.0, 0.04343211650848389, 0.046810269355773926, 0.04906141757965088, 0.05194205045700073, 0.05402171611785889]], [[360, 20, 347, 289, 270, 304], [0.0, 0.053896427154541016, 0.05400210618972778, 0.05926358699798584, 0.06819576025009155, 0.06975936889648438]], [[361, 379, 284, 323, 289, 304], [0.0, 0.057805418968200684, 0.05850052833557129, 0.05919218063354492, 0.06452643871307373, 0.06546151638031006]], [[362, 98, 191, 133, 64, 369], [0.0, 0.15810954570770264, 0.17317330837249756, 0.18159371614456177, 0.1845613718032837, 0.1861586570739746]], [[363, 288, 351, 303, 331, 172], [5.960464477539063e-08, 0.03985881805419922, 0.04546666145324707, 0.04653573036193848, 0.04915785789489746, 0.050364017486572266]], [[364, 180, 109, 191, 316, 159], [0.0, 0.10436761379241943, 0.13997960090637207, 0.1563243865966797, 0.1598653793334961, 0.1599714756011963]], [[365, 112, 105, 154, 171, 229], [2.384185791015625e-07, 0.08683943748474121, 0.08683943748474121, 0.09181201457977295, 0.09193217754364014, 0.09252995252609253]], [[366, 224, 253, 213, 211, 321], [0.0, 0.04480636119842529, 0.046170175075531006, 0.04644334316253662, 0.046714723110198975, 0.048661231994628906]], [[367, 191, 353, 122, 114, 383], [1.1920928955078125e-07, 0.07330566644668579, 0.09505820274353027, 0.10035276412963867, 0.10394275188446045, 0.10790622234344482]], [[368, 289, 20, 347, 304, 379], [5.960464477539063e-08, 0.0611882209777832, 0.06305336952209473, 0.06535029411315918, 0.0661655068397522, 0.07076561450958252]], [[369, 82, 311, 210, 2, 13], [0.0, 0.11155915260314941, 0.1138831377029419, 0.12465178966522217, 0.12531542778015137, 0.13487780094146729]], [[370, 228, 128, 220, 323, 299], [0.0, 0.07744860649108887, 0.1090625524520874, 0.11793023347854614, 0.11981886625289917, 0.12765365839004517]], [[371, 385, 150, 263, 331, 85], [0.0, 0.0749121904373169, 0.07626998424530029, 0.07639729976654053, 0.07772469520568848, 0.08155781030654907]], [[372, 321, 176, 350, 151, 313], [1.1920928955078125e-07, 0.03848421573638916, 0.04800677299499512, 0.04859113693237305, 0.0493321418762207, 0.04996424913406372]], [[373, 331, 288, 25, 303, 363], [0.0, 0.033246397972106934, 0.044930100440979004, 0.04675966501235962, 0.05111527442932129, 0.0514606237411499]], [[374, 13, 281, 20, 139, 304], [0.0, 0.057478904724121094, 0.05882209539413452, 0.059035539627075195, 0.0593072772026062, 0.06184113025665283]], [[375, 76, 210, 32, 30, 309], [0.0, 0.05726778507232666, 0.06423544883728027, 0.0674518346786499, 0.06751018762588501, 0.07156187295913696]], [[376, 229, 378, 154, 71, 12], [0.0, 0.06217598915100098, 0.06300097703933716, 0.06955546140670776, 0.07049202919006348, 0.07113766670227051]], [[377, 202, 163, 176, 151, 46], [0.0, 0.03765213489532471, 0.047450244426727295, 0.051348865032196045, 0.05275428295135498, 0.05338025093078613]], [[378, 229, 154, 96, 45, 12], [0.0, 0.02970176935195923, 0.03307163715362549, 0.036698341369628906, 0.03766930103302002, 0.04249376058578491]], [[379, 304, 289, 213, 253, 284], [5.960464477539063e-08, 0.04207432270050049, 0.04571676254272461, 0.04664558172225952, 0.05271625518798828, 0.05414682626724243]], [[380, 262, 305, 349, 388, 100], [0.0, 0.06579279899597168, 0.09099876880645752, 0.09142804145812988, 0.09515321254730225, 0.09535479545593262]], [[381, 127, 118, 167, 267, 266], [0.0, 0.10605096817016602, 0.12497621774673462, 0.1289827823638916, 0.13705205917358398, 0.1390153169631958]], [[382, 208, 332, 258, 24, 41], [1.7881393432617188e-07, 0.09255808591842651, 0.09938156604766846, 0.09972637891769409, 0.10058444738388062, 0.10073888301849365]], [[383, 18, 47, 321, 49, 224], [5.960464477539063e-08, 0.08280330896377563, 0.09032094478607178, 0.09070509672164917, 0.09118568897247314, 0.09198343753814697]], [[384, 386, 292, 305, 110, 99], [0.0, 0.039878129959106445, 0.0495830774307251, 0.06261122226715088, 0.06843173503875732, 0.06892013549804688]], [[385, 85, 124, 150, 371, 250], [0.0, 0.05518990755081177, 0.06751072406768799, 0.06793951988220215, 0.0749121904373169, 0.07666707038879395]], [[386, 384, 292, 305, 99, 100], [2.384185791015625e-07, 0.039878129959106445, 0.04100000858306885, 0.0510176420211792, 0.060056328773498535, 0.06205320358276367]], [[346, 387, 315, 297, 248, 264], [0.0, 0.0, 0.03713566064834595, 0.040827035903930664, 0.04180556535720825, 0.04437363147735596]], [[388, 248, 297, 215, 264, 349], [0.0, 0.03383636474609375, 0.03570961952209473, 0.03682076930999756, 0.03712153434753418, 0.045649588108062744]], [[389, 247, 164, 151, 46, 163], [5.960464477539063e-08, 0.04677700996398926, 0.05047893524169922, 0.05546367168426514, 0.057257115840911865, 0.05798715353012085]]]
#1024 with more training
# arr = [[[0, 242, 287, 162, 304, 239], [0.0, 0.02417755126953125, 0.027088820934295654, 0.02874159812927246, 0.0384824275970459, 0.04332250356674194]], [[1, 362, 88, 74, 50, 40], [5.960464477539063e-08, 0.33329272270202637, 0.34015023708343506, 0.34056055545806885, 0.34303873777389526, 0.36730706691741943]], [[2, 46, 51, 79, 30, 39], [5.960464477539063e-08, 0.017279505729675293, 0.03309130668640137, 0.034694015979766846, 0.04400724172592163, 0.057182133197784424]], [[3, 67, 60, 0, 55, 89], [0.0, 0.1310710906982422, 0.13108831644058228, 0.14222025871276855, 0.1442035436630249, 0.15213382244110107]], [[4, 16, 73, 22, 23, 45], [0.0, 0.09508335590362549, 0.1786431074142456, 0.1863243579864502, 0.20590192079544067, 0.2099645733833313]], [[5, 93, 80, 36, 40, 38], [0.0, 0.28011244535446167, 0.2918214201927185, 0.2989855408668518, 0.3083920478820801, 0.31730449199676514]], [[6, 71, 66, 12, 92, 7], [0.0, 0.07704448699951172, 0.08678042888641357, 0.1544513702392578, 0.1649916172027588, 0.2266005277633667]], [[7, 92, 12, 107, 66, 343], [5.960464477539063e-08, 0.07060033082962036, 0.0837438702583313, 0.1601160168647766, 0.17922216653823853, 0.20381224155426025]], [[8, 95, 49, 91, 342, 75], [1.1920928955078125e-07, 0.09401881694793701, 0.10207319259643555, 0.10255730152130127, 0.12647700309753418, 0.13714969158172607]], [[9, 70, 81, 22, 85, 80], [0.0, 0.14420896768569946, 0.21288633346557617, 0.2196197509765625, 0.22024720907211304, 0.2476050853729248]], [[10, 60, 67, 32, 33, 76], [1.1920928955078125e-07, 0.01917421817779541, 0.019174695014953613, 0.02688276767730713, 0.03628098964691162, 0.08620917797088623]], [[11, 25, 86, 22, 81, 14], [2.384185791015625e-07, 0.17483532428741455, 0.19327759742736816, 0.1982276439666748, 0.20550256967544556, 0.20552432537078857]], [[12, 92, 7, 66, 6, 71], [3.5762786865234375e-07, 0.058287739753723145, 0.0837438702583313, 0.1208985447883606, 0.1544513702392578, 0.1589977741241455]], [[13, 39, 18, 20, 53, 82], [0.0, 0.07383453845977783, 0.0876273512840271, 0.11924540996551514, 0.11937904357910156, 0.12201356887817383]], [[14, 25, 77, 86, 80, 36], [0.0, 0.09683585166931152, 0.10896188020706177, 0.14511191844940186, 0.15637004375457764, 0.16834479570388794]], [[15, 43, 2, 46, 57, 79], [5.960464477539063e-08, 0.08221268653869629, 0.08623319864273071, 0.0929902195930481, 0.09337806701660156, 0.09840899705886841]], [[16, 4, 17, 22, 73, 56], [1.1920928955078125e-07, 0.09508335590362549, 0.1665610671043396, 0.19376885890960693, 0.2080674171447754, 0.21028363704681396]], [[17, 56, 16, 65, 22, 23], [0.0, 0.10731863975524902, 0.1665610671043396, 0.1740283966064453, 0.17843973636627197, 0.18040138483047485]], [[18, 13, 20, 39, 53, 82], [1.1920928955078125e-07, 0.0876273512840271, 0.10854983329772949, 0.12584203481674194, 0.127899169921875, 0.19609063863754272]], [[19, 319, 280, 255, 268, 27], [1.1920928955078125e-07, 0.1039050817489624, 0.18554013967514038, 0.18598252534866333, 0.19147396087646484, 0.196833074092865]], [[20, 18, 39, 13, 53, 72], [0.0, 0.10854983329772949, 0.11176300048828125, 0.11924540996551514, 0.14414668083190918, 0.14724910259246826]], [[21, 31, 93, 87, 75, 69], [0.0, 0.12188690900802612, 0.13152754306793213, 0.13324028253555298, 0.1335768699645996, 0.14134138822555542]], [[22, 23, 70, 81, 37, 85], [0.0, 0.09513497352600098, 0.13474690914154053, 0.13606655597686768, 0.15301281213760376, 0.16288429498672485]], [[23, 70, 22, 56, 37, 85], [5.960464477539063e-08, 0.08697259426116943, 0.09513497352600098, 0.1285158395767212, 0.12864649295806885, 0.1422523856163025]], [[24, 87, 78, 36, 35, 80], [0.0, 0.08980894088745117, 0.09630030393600464, 0.10440921783447266, 0.10785996913909912, 0.11897587776184082]], [[25, 86, 80, 14, 36, 29], [1.1920928955078125e-07, 0.07768410444259644, 0.08373391628265381, 0.09683585166931152, 0.10744667053222656, 0.11084353923797607]], [[26, 46, 82, 89, 39, 2], [0.0, 0.12468385696411133, 0.13860565423965454, 0.1405370831489563, 0.14470303058624268, 0.1529363989830017]], [[27, 83, 88, 19, 57, 44], [0.0, 0.113955557346344, 0.11426687240600586, 0.196833074092865, 0.27875053882598877, 0.2795398235321045]], [[28, 85, 23, 81, 22, 56], [1.1920928955078125e-07, 0.11964619159698486, 0.1515953540802002, 0.17312616109848022, 0.17633986473083496, 0.17716598510742188]], [[29, 94, 90, 37, 25, 36], [5.960464477539063e-08, 0.06003838777542114, 0.07706320285797119, 0.10974478721618652, 0.11084353923797607, 0.11642962694168091]], [[30, 2, 46, 39, 52, 72], [0.0, 0.04400724172592163, 0.04837071895599365, 0.052057504653930664, 0.06022286415100098, 0.06605613231658936]], [[31, 21, 87, 342, 8, 64], [1.1920928955078125e-07, 0.12188690900802612, 0.13384735584259033, 0.14479339122772217, 0.18042778968811035, 0.18550175428390503]], [[32, 10, 60, 67, 33, 76], [1.1920928955078125e-07, 0.026882827281951904, 0.05404394865036011, 0.05405169725418091, 0.06169462203979492, 0.09388256072998047]], [[33, 76, 10, 55, 67, 60], [1.1920928955078125e-07, 0.026992619037628174, 0.03628098964691162, 0.04069983959197998, 0.04624831676483154, 0.0462491512298584]], [[34, 13, 39, 18, 72, 30], [0.0, 0.19904112815856934, 0.2157374620437622, 0.23617315292358398, 0.2484026551246643, 0.2489687204360962]], [[35, 78, 36, 87, 24, 80], [1.1920928955078125e-07, 0.04283493757247925, 0.05837368965148926, 0.09499895572662354, 0.10785996913909912, 0.12051701545715332]], [[36, 78, 35, 80, 87, 24], [1.1920928955078125e-07, 0.0537867546081543, 0.05837368965148926, 0.08838582038879395, 0.10397577285766602, 0.10440921783447266]], [[37, 90, 29, 70, 23, 94], [0.0, 0.09711205959320068, 0.10974478721618652, 0.12261056900024414, 0.12864649295806885, 0.14070844650268555]], [[38, 90, 29, 94, 37, 40], [1.1920928955078125e-07, 0.06176203489303589, 0.12131911516189575, 0.13099908828735352, 0.15955901145935059, 0.1690884232521057]], [[39, 46, 30, 2, 72, 82], [0.0, 0.049373090267181396, 0.052057504653930664, 0.057182133197784424, 0.05899810791015625, 0.07310020923614502]], [[40, 64, 94, 38, 90, 29], [1.1920928955078125e-07, 0.10770642757415771, 0.12941914796829224, 0.1690884232521057, 0.17472410202026367, 0.1882217526435852]], [[41, 45, 62, 73, 23, 56], [1.1920928955078125e-07, 0.257236123085022, 0.2585371136665344, 0.28093647956848145, 0.31125807762145996, 0.31582850217819214]], [[42, 43, 46, 79, 39, 2], [0.0, 0.15521371364593506, 0.1552344560623169, 0.16746413707733154, 0.17371827363967896, 0.17993533611297607]], [[43, 52, 46, 2, 79, 15], [0.0, 0.04440563917160034, 0.05837392807006836, 0.05892229080200195, 0.06387972831726074, 0.08221268653869629]], [[44, 63, 19, 88, 53, 27], [0.0, 0.20826005935668945, 0.24937599897384644, 0.24947214126586914, 0.2731148600578308, 0.2795398235321045]], [[45, 23, 28, 22, 56, 70], [0.0, 0.16450226306915283, 0.18059372901916504, 0.18714654445648193, 0.19053542613983154, 0.19877111911773682]], [[46, 2, 79, 30, 39, 51], [5.960464477539063e-08, 0.017279505729675293, 0.024503231048583984, 0.04837071895599365, 0.049373090267181396, 0.054108262062072754]], [[47, 53, 95, 342, 61, 345], [0.0, 0.14277136325836182, 0.14579784870147705, 0.1577472686767578, 0.1601649522781372, 0.16372591257095337]], [[48, 84, 369, 20, 59, 360], [0.0, 0.19081419706344604, 0.19529390335083008, 0.21240776777267456, 0.21397662162780762, 0.21851634979248047]], [[49, 95, 91, 8, 75, 47], [5.960464477539063e-08, 0.04294753074645996, 0.09899592399597168, 0.10207319259643555, 0.15972846746444702, 0.20867770910263062]], [[50, 74, 64, 40, 88, 58], [1.7881393432617188e-07, 0.17347508668899536, 0.19765150547027588, 0.2253294587135315, 0.24871540069580078, 0.2589240074157715]], [[51, 2, 46, 79, 30, 82], [0.0, 0.03309130668640137, 0.054108262062072754, 0.0653378963470459, 0.07710087299346924, 0.08115017414093018]], [[52, 43, 55, 76, 30, 2], [5.960464477539063e-08, 0.04440563917160034, 0.05488640069961548, 0.0594249963760376, 0.06022286415100098, 0.07509094476699829]], [[53, 13, 18, 47, 20, 39], [0.0, 0.11937904357910156, 0.127899169921875, 0.14277136325836182, 0.14414668083190918, 0.1584545373916626]], [[54, 68, 353, 34, 360, 47], [5.960464477539063e-08, 0.23742270469665527, 0.2607543468475342, 0.28040027618408203, 0.28045809268951416, 0.2815018892288208]], [[55, 76, 33, 52, 67, 60], [0.0, 0.0325850248336792, 0.04069983959197998, 0.05488640069961548, 0.0571361780166626, 0.05713951587677002]], [[56, 65, 17, 23, 81, 22], [0.0, 0.1054384708404541, 0.10731863975524902, 0.1285158395767212, 0.14520263671875, 0.17398858070373535]], [[57, 15, 43, 52, 89, 2], [1.1920928955078125e-07, 0.09337806701660156, 0.10937941074371338, 0.12626147270202637, 0.13047558069229126, 0.1319746971130371]], [[58, 62, 96, 11, 81, 50], [0.0, 0.23205137252807617, 0.23478734493255615, 0.255800724029541, 0.2581946849822998, 0.2589240074157715]], [[59, 42, 48, 20, 49, 91], [0.0, 0.20398366451263428, 0.21397662162780762, 0.2399086356163025, 0.2652561664581299, 0.271345317363739]], [[67, 60, 10, 33, 32, 55], [0.0, 0.0, 0.01917421817779541, 0.0462491512298584, 0.05404394865036011, 0.05713951587677002]], [[61, 342, 345, 69, 95, 53], [0.0, 0.07439553737640381, 0.09997725486755371, 0.13940495252609253, 0.1413273811340332, 0.1593111753463745]], [[62, 96, 58, 41, 12, 120], [0.0, 0.21210730075836182, 0.23205137252807617, 0.2585371136665344, 0.26697826385498047, 0.281490683555603]], [[63, 2, 82, 88, 15, 51], [5.960464477539063e-08, 0.17624306678771973, 0.17645704746246338, 0.1776413917541504, 0.18231111764907837, 0.19053047895431519]], [[64, 69, 40, 342, 345, 94], [0.0, 0.10532915592193604, 0.10770642757415771, 0.12335515022277832, 0.1406097412109375, 0.1452122926712036]], [[65, 56, 17, 45, 28, 16], [1.7881393432617188e-07, 0.1054384708404541, 0.1740283966064453, 0.2006128430366516, 0.22131240367889404, 0.2225818634033203]], [[66, 71, 6, 12, 92, 7], [0.0, 0.034782230854034424, 0.08678042888641357, 0.1208985447883606, 0.1230694055557251, 0.17922216653823853]], [[60, 67, 10, 33, 32, 55], [0.0, 5.960464477539063e-08, 0.019174695014953613, 0.04624831676483154, 0.05405169725418091, 0.0571361780166626]], [[68, 47, 8, 345, 42, 54], [1.1920928955078125e-07, 0.17940807342529297, 0.20615124702453613, 0.21354925632476807, 0.22459495067596436, 0.23742270469665527]], [[69, 93, 64, 342, 77, 87], [5.960464477539063e-08, 0.09487831592559814, 0.10532915592193604, 0.11541950702667236, 0.13123637437820435, 0.1327056884765625]], [[70, 85, 23, 37, 81, 22], [0.0, 0.08361822366714478, 0.08697259426116943, 0.12261056900024414, 0.12588167190551758, 0.13474690914154053]], [[71, 66, 6, 12, 92, 15], [0.0, 0.034782230854034424, 0.07704448699951172, 0.1589977741241455, 0.17620879411697388, 0.20742428302764893]], [[72, 46, 39, 2, 30, 51], [0.0, 0.058366239070892334, 0.05899810791015625, 0.0647745132446289, 0.06605613231658936, 0.08971607685089111]], [[73, 4, 16, 56, 22, 45], [1.1920928955078125e-07, 0.1786431074142456, 0.2080674171447754, 0.23215585947036743, 0.24913936853408813, 0.25419747829437256]], [[74, 50, 64, 40, 88, 42], [0.0, 0.17347508668899536, 0.174324631690979, 0.1940116286277771, 0.21435308456420898, 0.2186720371246338]], [[75, 91, 21, 8, 95, 49], [1.1920928955078125e-07, 0.12344485521316528, 0.1335768699645996, 0.13714969158172607, 0.14116305112838745, 0.15972846746444702]], [[76, 33, 55, 52, 60, 67], [0.0, 0.026992619037628174, 0.0325850248336792, 0.0594249963760376, 0.0766146183013916, 0.07662153244018555]], [[77, 86, 14, 25, 69, 93], [0.0, 0.09367531538009644, 0.10896188020706177, 0.1298319697380066, 0.13123637437820435, 0.15974795818328857]], [[78, 35, 36, 24, 87, 80], [1.1920928955078125e-07, 0.04283493757247925, 0.0537867546081543, 0.09630030393600464, 0.0976417064666748, 0.10700833797454834]], [[79, 46, 2, 82, 43, 51], [0.0, 0.024503231048583984, 0.034694015979766846, 0.052777647972106934, 0.06387972831726074, 0.0653378963470459]], [[80, 25, 36, 78, 24, 35], [1.1920928955078125e-07, 0.08373391628265381, 0.08838582038879395, 0.10700833797454834, 0.11897587776184082, 0.12051701545715332]], [[81, 80, 70, 85, 22, 37], [5.960464477539063e-08, 0.12460660934448242, 0.12588167190551758, 0.1302553415298462, 0.13606655597686768, 0.14355003833770752]], [[82, 79, 46, 2, 39, 89], [0.0, 0.052777647972106934, 0.05862629413604736, 0.06091439723968506, 0.07310020923614502, 0.07322442531585693]], [[83, 27, 88, 19, 104, 121], [2.384185791015625e-07, 0.113955557346344, 0.19691550731658936, 0.23095953464508057, 0.23186296224594116, 0.23226267099380493]], [[84, 72, 30, 39, 375, 20], [0.0, 0.09150111675262451, 0.14774620532989502, 0.15036225318908691, 0.15379291772842407, 0.1611948013305664]], [[85, 70, 28, 80, 81, 36], [5.960464477539063e-08, 0.08361822366714478, 0.11964619159698486, 0.12970709800720215, 0.1302553415298462, 0.14012765884399414]], [[86, 25, 77, 14, 80, 69], [0.0, 0.07768410444259644, 0.09367531538009644, 0.14511191844940186, 0.1475428342819214, 0.17262279987335205]], [[87, 24, 35, 78, 36, 80], [5.960464477539063e-08, 0.08980894088745117, 0.09499895572662354, 0.0976417064666748, 0.10397577285766602, 0.12292855978012085]], [[88, 27, 63, 83, 55, 74], [1.1920928955078125e-07, 0.11426687240600586, 0.1776413917541504, 0.19691550731658936, 0.21165847778320312, 0.21435308456420898]], [[89, 82, 43, 15, 79, 46], [0.0, 0.07322442531585693, 0.11388921737670898, 0.12215065956115723, 0.12693876028060913, 0.12709534168243408]], [[90, 38, 94, 29, 37, 70], [0.0, 0.06176203489303589, 0.07373607158660889, 0.07706320285797119, 0.09711205959320068, 0.15535211563110352]], [[91, 49, 95, 8, 75, 342], [0.0, 0.09899592399597168, 0.10158157348632812, 0.10255730152130127, 0.12344485521316528, 0.15891200304031372]], [[92, 12, 7, 66, 6, 71], [5.960464477539063e-08, 0.058287739753723145, 0.07060033082962036, 0.1230694055557251, 0.1649916172027588, 0.17620879411697388]], [[93, 69, 21, 36, 78, 77], [5.960464477539063e-08, 0.09487831592559814, 0.13152754306793213, 0.15536320209503174, 0.15770280361175537, 0.15974795818328857]], [[94, 29, 90, 25, 40, 38], [0.0, 0.06003838777542114, 0.07373607158660889, 0.12066769599914551, 0.12941914796829224, 0.13099908828735352]], [[95, 49, 8, 91, 75, 61], [0.0, 0.04294753074645996, 0.09401881694793701, 0.10158157348632812, 0.14116305112838745, 0.1413273811340332]], [[96, 12, 92, 62, 343, 7], [1.1920928955078125e-07, 0.16783475875854492, 0.20014965534210205, 0.21210730075836182, 0.21388226747512817, 0.21618926525115967]], [[97, 173, 160, 152, 332, 85], [0.0, 0.11781042814254761, 0.17603254318237305, 0.19527125358581543, 0.19803833961486816, 0.22793757915496826]], [[98, 165, 317, 155, 221, 284], [0.0, 0.025884032249450684, 0.02913224697113037, 0.02920067310333252, 0.03485584259033203, 0.035285890102386475]], [[99, 196, 250, 384, 258, 268], [0.0, 0.11504894495010376, 0.17314177751541138, 0.1798076629638672, 0.1922721266746521, 0.20563191175460815]], [[100, 248, 315, 305, 226, 257], [0.0, 0.04013031721115112, 0.0512617826461792, 0.0571979284286499, 0.057879090309143066, 0.06354749202728271]], [[101, 162, 169, 242, 304, 0], [0.0, 0.037683725357055664, 0.041791439056396484, 0.049993038177490234, 0.05022537708282471, 0.05064880847930908]], [[102, 116, 110, 120, 111, 112], [0.0, 0.0800710916519165, 0.1007009744644165, 0.102744460105896, 0.11617255210876465, 0.12554436922073364]], [[103, 123, 113, 130, 128, 126], [0.0, 0.09250622987747192, 0.09995269775390625, 0.1115521788597107, 0.15229099988937378, 0.15572738647460938]], [[104, 121, 106, 83, 103, 204], [0.0, 0.05174332857131958, 0.14523661136627197, 0.23186296224594116, 0.28671932220458984, 0.29321324825286865]], [[112, 105, 116, 118, 102, 129], [0.0, 0.0, 0.10222375392913818, 0.11296188831329346, 0.12554436922073364, 0.14613431692123413]], [[106, 117, 104, 121, 113, 130], [0.0, 0.10283505916595459, 0.14523661136627197, 0.15431416034698486, 0.17419558763504028, 0.17529505491256714]], [[107, 129, 7, 112, 105, 12], [0.0, 0.1486908197402954, 0.1601160168647766, 0.2026979923248291, 0.2026979923248291, 0.22144418954849243]], [[108, 123, 117, 113, 122, 103], [0.0, 0.09729921817779541, 0.15713709592819214, 0.18082189559936523, 0.1821807622909546, 0.18351435661315918]], [[109, 194, 167, 118, 113, 214], [1.7881393432617188e-07, 0.24629521369934082, 0.2469896674156189, 0.2675386667251587, 0.2679411768913269, 0.28066468238830566]], [[110, 120, 102, 116, 111, 105], [0.0, 0.026362955570220947, 0.1007009744644165, 0.10389459133148193, 0.11578118801116943, 0.18905508518218994]], [[111, 116, 118, 110, 102, 120], [0.0, 0.08512067794799805, 0.10209929943084717, 0.11578118801116943, 0.11617255210876465, 0.11760544776916504]], [[112, 105, 116, 118, 102, 129], [0.0, 0.0, 0.10222375392913818, 0.11296188831329346, 0.12554436922073364, 0.14613431692123413]], [[113, 123, 130, 103, 117, 122], [0.0, 0.06174361705780029, 0.08432650566101074, 0.09995269775390625, 0.12407118082046509, 0.13494467735290527]], [[114, 115, 119, 126, 366, 103], [0.0, 0.16363143920898438, 0.1757245659828186, 0.18466758728027344, 0.20015233755111694, 0.2258443832397461]], [[115, 114, 119, 126, 366, 103], [0.0, 0.16363143920898438, 0.18791413307189941, 0.19979941844940186, 0.273831844329834, 0.3101414442062378]], [[116, 118, 120, 102, 111, 112], [0.0, 0.05833888053894043, 0.07671487331390381, 0.0800710916519165, 0.08512067794799805, 0.10222375392913818]], [[117, 122, 130, 106, 113, 123], [0.0, 0.06911647319793701, 0.0703427791595459, 0.10283505916595459, 0.12407118082046509, 0.12918955087661743]], [[118, 116, 111, 105, 112, 102], [0.0, 0.05833888053894043, 0.10209929943084717, 0.11296188831329346, 0.11296188831329346, 0.13758665323257446]], [[119, 126, 114, 115, 103, 111], [5.960464477539063e-08, 0.14197814464569092, 0.1757245659828186, 0.18791413307189941, 0.22890961170196533, 0.23399889469146729]], [[120, 110, 116, 102, 111, 105], [1.1920928955078125e-07, 0.026362955570220947, 0.07671487331390381, 0.102744460105896, 0.11760544776916504, 0.1528283953666687]], [[121, 104, 106, 83, 103, 108], [0.0, 0.05174332857131958, 0.15431416034698486, 0.23226267099380493, 0.23235267400741577, 0.2581578493118286]], [[122, 117, 130, 113, 123, 348], [5.960464477539063e-08, 0.06911647319793701, 0.07690596580505371, 0.13494467735290527, 0.1441594362258911, 0.15867388248443604]], [[123, 113, 103, 108, 130, 117], [0.0, 0.06174361705780029, 0.09250622987747192, 0.09729921817779541, 0.1001657247543335, 0.12918955087661743]], [[124, 129, 127, 105, 112, 107], [0.0, 0.0800122618675232, 0.14320462942123413, 0.16236472129821777, 0.16236472129821777, 0.22215735912322998]], [[125, 119, 126, 74, 1, 40], [0.0, 0.32422685623168945, 0.3328399658203125, 0.36914098262786865, 0.3723585605621338, 0.39004218578338623]], [[126, 119, 103, 113, 114, 115], [0.0, 0.14197814464569092, 0.15572738647460938, 0.18086957931518555, 0.18466758728027344, 0.19979941844940186]], [[127, 113, 124, 118, 112, 105], [0.0, 0.13832998275756836, 0.14320462942123413, 0.1438049077987671, 0.16037893295288086, 0.16037893295288086]], [[128, 130, 103, 113, 123, 117], [0.0, 0.15018689632415771, 0.15229099988937378, 0.21485137939453125, 0.22213459014892578, 0.2587693929672241]], [[129, 124, 112, 105, 107, 127], [1.7881393432617188e-07, 0.0800122618675232, 0.14613431692123413, 0.14613431692123413, 0.1486908197402954, 0.22953182458877563]], [[130, 117, 122, 113, 123, 103], [5.960464477539063e-08, 0.0703427791595459, 0.07690596580505371, 0.08432650566101074, 0.1001657247543335, 0.1115521788597107]], [[131, 245, 177, 318, 308, 257], [0.0, 0.055518150329589844, 0.06992286443710327, 0.07343059778213501, 0.07476681470870972, 0.07642090320587158]], [[132, 188, 246, 282, 134, 163], [1.1920928955078125e-07, 1.1920928955078125e-07, 0.009184300899505615, 0.010227084159851074, 0.012455523014068604, 0.014620363712310791]], [[133, 231, 281, 289, 323, 216], [0.0, 0.012139737606048584, 0.019771099090576172, 0.023848295211791992, 0.02432262897491455, 0.025453627109527588]], [[134, 246, 163, 265, 132, 188], [0.0, 0.009662985801696777, 0.010675668716430664, 0.011736392974853516, 0.012455523014068604, 0.012455523014068604]], [[135, 336, 208, 326, 257, 222], [0.0, 0.0622098445892334, 0.06561464071273804, 0.06816703081130981, 0.07664275169372559, 0.08093523979187012]], [[136, 236, 304, 283, 143, 212], [0.0, 0.009837090969085693, 0.01687490940093994, 0.017215490341186523, 0.020133554935455322, 0.0208432674407959]], [[137, 257, 262, 100, 248, 315], [0.0, 0.1009172797203064, 0.11464732885360718, 0.1148613691329956, 0.11575788259506226, 0.11660182476043701]], [[138, 243, 249, 253, 213, 146], [0.0, 0.08285653591156006, 0.08734333515167236, 0.10759592056274414, 0.11129087209701538, 0.11327439546585083]], [[139, 166, 186, 311, 270, 252], [1.1920928955078125e-07, 0.0023834705352783203, 0.00615084171295166, 0.0069427490234375, 0.006964743137359619, 0.009951949119567871]], [[140, 157, 175, 260, 206, 163], [1.1920928955078125e-07, 0.00917273759841919, 0.009253382682800293, 0.016649186611175537, 0.020775675773620605, 0.02785170078277588]], [[141, 251, 190, 288, 234, 338], [0.0, 0.050203561782836914, 0.053574442863464355, 0.05821722745895386, 0.06145668029785156, 0.0632239580154419]], [[142, 244, 192, 234, 141, 307], [0.0, 0.07168322801589966, 0.11116176843643188, 0.11250007152557373, 0.12240147590637207, 0.12607765197753906]], [[143, 178, 270, 169, 304, 309], [1.7881393432617188e-07, 0.008305549621582031, 0.010303795337677002, 0.010855793952941895, 0.012103438377380371, 0.017591774463653564]], [[144, 207, 290, 316, 278, 184], [5.960464477539063e-08, 0.05777740478515625, 0.07604718208312988, 0.0806153416633606, 0.08423936367034912, 0.09111654758453369]], [[145, 306, 183, 266, 308, 318], [0.0, 0.1101272702217102, 0.1690385937690735, 0.17684781551361084, 0.18776237964630127, 0.19149577617645264]], [[146, 211, 151, 253, 249, 213], [0.0, 0.07141280174255371, 0.08061468601226807, 0.08299827575683594, 0.10374844074249268, 0.11271893978118896]], [[147, 202, 134, 298, 299, 263], [0.0, 0.015430808067321777, 0.01843106746673584, 0.019907593727111816, 0.020157992839813232, 0.021443426609039307]], [[148, 141, 326, 251, 320, 266], [2.384185791015625e-07, 0.0697246789932251, 0.07189738750457764, 0.0720984935760498, 0.07444441318511963, 0.08394116163253784]], [[149, 301, 294, 277, 0, 191], [0.0, 0.2434070110321045, 0.24388349056243896, 0.26137876510620117, 0.27030640840530396, 0.2720605134963989]], [[150, 278, 324, 201, 317, 157], [5.960464477539063e-08, 0.030818819999694824, 0.03406637907028198, 0.04712069034576416, 0.04968106746673584, 0.05026888847351074]], [[151, 146, 156, 138, 247, 249], [0.0, 0.08061468601226807, 0.09094512462615967, 0.15195691585540771, 0.15286153554916382, 0.15862548351287842]], [[152, 160, 335, 158, 97, 322], [0.0, 0.11864924430847168, 0.1509777307510376, 0.17311900854110718, 0.19527125358581543, 0.19697624444961548]], [[153, 203, 263, 313, 159, 321], [0.0, 0.03948467969894409, 0.03969979286193848, 0.04513251781463623, 0.048084795475006104, 0.04892367124557495]], [[154, 327, 314, 333, 306, 229], [1.7881393432617188e-07, 0.11595845222473145, 0.1296924352645874, 0.18476200103759766, 0.19026756286621094, 0.2161388397216797]], [[155, 311, 186, 252, 139, 210], [5.960464477539063e-08, 0.01166999340057373, 0.014692425727844238, 0.015743732452392578, 0.0222628116607666, 0.023987233638763428]], [[156, 151, 146, 243, 138, 249], [0.0, 0.09094512462615967, 0.15215027332305908, 0.1527167558670044, 0.162459135055542, 0.1801847219467163]], [[157, 140, 175, 260, 202, 206], [0.0, 0.00917273759841919, 0.016841650009155273, 0.022033870220184326, 0.023179054260253906, 0.023448586463928223]], [[158, 160, 152, 322, 217, 331], [0.0, 0.1691794991493225, 0.17311900854110718, 0.17418140172958374, 0.20550519227981567, 0.22731423377990723]], [[159, 200, 263, 153, 313, 163], [0.0, 0.02367544174194336, 0.04079270362854004, 0.048084795475006104, 0.049371957778930664, 0.05027037858963013]], [[160, 152, 158, 97, 322, 300], [0.0, 0.11864924430847168, 0.1691794991493225, 0.17603254318237305, 0.2027079463005066, 0.21390819549560547]], [[161, 215, 227, 208, 176, 140], [0.0, 0.04483765363693237, 0.047068774700164795, 0.06337660551071167, 0.06433916091918945, 0.06466799974441528]], [[162, 304, 169, 143, 287, 259], [1.1920928955078125e-07, 0.009294092655181885, 0.015631258487701416, 0.018658876419067383, 0.022070884704589844, 0.022275984287261963]], [[163, 134, 282, 132, 188, 246], [0.0, 0.010675668716430664, 0.010870575904846191, 0.014620363712310791, 0.014620363712310791, 0.017035722732543945]], [[164, 275, 219, 206, 299, 215], [0.0, 0.028338909149169922, 0.03232836723327637, 0.04023498296737671, 0.04144608974456787, 0.04228854179382324]], [[165, 98, 317, 272, 274, 337], [0.0, 0.025884032249450684, 0.026877403259277344, 0.03050220012664795, 0.03589272499084473, 0.03639101982116699]], [[166, 139, 270, 186, 252, 311], [2.384185791015625e-07, 0.0023834705352783203, 0.00459665060043335, 0.005848884582519531, 0.006370425224304199, 0.009076416492462158]], [[167, 276, 177, 183, 245, 302], [0.0, 0.08144116401672363, 0.08787387609481812, 0.09491252899169922, 0.09895056486129761, 0.10040020942687988]], [[168, 210, 337, 155, 311, 301], [0.0, 0.009001016616821289, 0.023273587226867676, 0.03242290019989014, 0.03640639781951904, 0.03837096691131592]], [[169, 143, 304, 178, 162, 270], [1.7881393432617188e-07, 0.010855793952941895, 0.011031270027160645, 0.013438105583190918, 0.015631258487701416, 0.019932687282562256]], [[170, 264, 185, 222, 215, 257], [5.960464477539063e-08, 0.057533860206604004, 0.062402188777923584, 0.06285601854324341, 0.08015859127044678, 0.08025968074798584]], [[171, 261, 222, 229, 250, 264], [1.1920928955078125e-07, 0.19245398044586182, 0.2541447877883911, 0.2707113027572632, 0.2790524363517761, 0.279777467250824]], [[172, 190, 338, 269, 182, 237], [0.0, 0.032443344593048096, 0.034452080726623535, 0.041176557540893555, 0.055611491203308105, 0.05690455436706543]], [[173, 97, 332, 9, 160, 179], [0.0, 0.11781042814254761, 0.1407971978187561, 0.25234419107437134, 0.26205122470855713, 0.27025383710861206]], [[174, 290, 201, 184, 199, 150], [0.0, 0.05240929126739502, 0.09604024887084961, 0.09652203321456909, 0.10052603483200073, 0.10644876956939697]], [[175, 140, 260, 157, 163, 284], [5.960464477539063e-08, 0.009253382682800293, 0.015648603439331055, 0.016841650009155273, 0.019767463207244873, 0.023148775100708008]], [[176, 216, 219, 236, 275, 299], [0.0, 0.025877177715301514, 0.03280460834503174, 0.03655517101287842, 0.0371246337890625, 0.037436485290527344]], [[177, 318, 245, 131, 207, 194], [0.0, 0.05292713642120361, 0.06310611963272095, 0.06992286443710327, 0.07095229625701904, 0.08473718166351318]], [[178, 143, 309, 270, 304, 169], [1.1920928955078125e-07, 0.008305549621582031, 0.00853961706161499, 0.011079788208007812, 0.012186825275421143, 0.013438105583190918]], [[179, 331, 279, 322, 335, 247], [0.0, 0.12730205059051514, 0.14452457427978516, 0.15102267265319824, 0.1794251799583435, 0.22004425525665283]], [[180, 159, 316, 187, 200, 194], [1.1920928955078125e-07, 0.05197608470916748, 0.05255758762359619, 0.05637025833129883, 0.05900609493255615, 0.06604659557342529]], [[181, 340, 182, 303, 214, 157], [0.0, 0.02881145477294922, 0.05271804332733154, 0.05414426326751709, 0.06432151794433594, 0.06631684303283691]], [[182, 193, 225, 254, 303, 190], [0.0, 0.02787315845489502, 0.030061542987823486, 0.03692883253097534, 0.038714051246643066, 0.04245877265930176]], [[183, 177, 167, 318, 276, 207], [0.0, 0.09046077728271484, 0.09491252899169922, 0.09946751594543457, 0.09981459379196167, 0.10603821277618408]], [[184, 190, 237, 267, 278, 290], [1.1920928955078125e-07, 0.04302334785461426, 0.045333147048950195, 0.04605114459991455, 0.048557937145233154, 0.04961192607879639]], [[185, 238, 303, 206, 182, 280], [0.0, 0.05207854509353638, 0.05504274368286133, 0.05799686908721924, 0.05915963649749756, 0.05971574783325195]], [[186, 166, 252, 139, 270, 311], [2.384185791015625e-07, 0.005848884582519531, 0.005979955196380615, 0.00615084171295166, 0.0074149370193481445, 0.007462859153747559]], [[187, 316, 278, 263, 180, 153], [0.0, 0.050583481788635254, 0.055142343044281006, 0.055735111236572266, 0.05637025833129883, 0.06238090991973877]], [[132, 188, 246, 282, 134, 163], [1.1920928955078125e-07, 1.1920928955078125e-07, 0.009184300899505615, 0.010227084159851074, 0.012455523014068604, 0.014620363712310791]], [[189, 321, 324, 313, 190, 251], [5.960464477539063e-08, 0.049379825592041016, 0.0515141487121582, 0.05222135782241821, 0.05570697784423828, 0.05889707803726196]], [[190, 251, 237, 267, 269, 172], [0.0, 0.020168423652648926, 0.026023268699645996, 0.030175983905792236, 0.032198309898376465, 0.032443344593048096]], [[191, 249, 253, 321, 289, 223], [0.0, 0.08758902549743652, 0.0884636640548706, 0.09344714879989624, 0.09486675262451172, 0.0963364839553833]], [[192, 142, 168, 337, 301, 210], [0.0, 0.11116176843643188, 0.1141234040260315, 0.12502706050872803, 0.12688922882080078, 0.1301441192626953]], [[193, 225, 182, 278, 254, 234], [1.1920928955078125e-07, 0.004168808460235596, 0.02787315845489502, 0.041097044944763184, 0.046907901763916016, 0.04839324951171875]], [[194, 207, 180, 203, 267, 184], [0.0, 0.05775153636932373, 0.06604659557342529, 0.06642806529998779, 0.0669940710067749, 0.067466139793396]], [[195, 304, 270, 162, 212, 178], [0.0, 0.019631028175354004, 0.022655725479125977, 0.024656176567077637, 0.025959491729736328, 0.02629268169403076]], [[196, 99, 264, 250, 315, 262], [1.1920928955078125e-07, 0.11504894495010376, 0.14672374725341797, 0.15811991691589355, 0.1601390242576599, 0.16079378128051758]], [[197, 273, 226, 255, 248, 257], [0.0, 0.0724111795425415, 0.0938711166381836, 0.09465855360031128, 0.10270881652832031, 0.10411512851715088]], [[198, 155, 224, 186, 252, 311], [0.0, 0.04132157564163208, 0.04352843761444092, 0.04412877559661865, 0.05095779895782471, 0.05290931463241577]], [[199, 201, 203, 202, 313, 147], [1.1920928955078125e-07, 0.02421557903289795, 0.02618306875228882, 0.04389691352844238, 0.04441189765930176, 0.04707831144332886]], [[200, 159, 207, 251, 202, 263], [0.0, 0.02367544174194336, 0.035880446434020996, 0.0397915244102478, 0.04135477542877197, 0.041734158992767334]], [[201, 203, 199, 278, 202, 284], [0.0, 0.024013757705688477, 0.02421557903289795, 0.033941030502319336, 0.03844171762466431, 0.04601395130157471]], [[202, 284, 147, 313, 263, 321], [0.0, 0.015408694744110107, 0.015430808067321777, 0.017575621604919434, 0.019577860832214355, 0.019932448863983154]], [[203, 201, 199, 272, 313, 202], [0.0, 0.024013757705688477, 0.02618306875228882, 0.02797311544418335, 0.03503727912902832, 0.035833001136779785]], [[204, 201, 182, 141, 303, 285], [0.0, 0.08391344547271729, 0.0846053957939148, 0.08890378475189209, 0.0898967981338501, 0.09938699007034302]], [[205, 185, 161, 303, 182, 254], [0.0, 0.06216013431549072, 0.0785643458366394, 0.07934355735778809, 0.08379125595092773, 0.0858919620513916]], [[206, 140, 157, 260, 175, 163], [0.0, 0.020775675773620605, 0.023448586463928223, 0.02406400442123413, 0.02967047691345215, 0.03104710578918457]], [[207, 200, 278, 267, 201, 159], [0.0, 0.035880446434020996, 0.04588353633880615, 0.04698812961578369, 0.051849961280822754, 0.051938533782958984]], [[208, 215, 161, 135, 336, 273], [5.960464477539063e-08, 0.0419696569442749, 0.06337660551071167, 0.06561464071273804, 0.06732916831970215, 0.07107079029083252]], [[209, 260, 206, 164, 140, 329], [5.960464477539063e-08, 0.03821289539337158, 0.0395580530166626, 0.050665438175201416, 0.05072593688964844, 0.051414430141448975]], [[210, 168, 337, 311, 155, 301], [0.0, 0.009001016616821289, 0.017895638942718506, 0.02212357521057129, 0.023987233638763428, 0.031350135803222656]], [[211, 253, 324, 321, 224, 189], [0.0, 0.03262734413146973, 0.05678212642669678, 0.05720841884613037, 0.0695427656173706, 0.06982934474945068]], [[212, 296, 328, 236, 136, 270], [0.0, 0.01654648780822754, 0.01875680685043335, 0.020511865615844727, 0.0208432674407959, 0.024537205696105957]], [[213, 253, 289, 216, 133, 249], [1.1920928955078125e-07, 0.04064208269119263, 0.04737907648086548, 0.04845905303955078, 0.05111539363861084, 0.05512881278991699]], [[214, 190, 269, 184, 172, 181], [0.0, 0.0505366325378418, 0.059067606925964355, 0.059583306312561035, 0.06359636783599854, 0.06432151794433594]], [[215, 140, 157, 219, 303, 208], [5.960464477539063e-08, 0.03347361087799072, 0.03601419925689697, 0.04002046585083008, 0.041385769844055176, 0.0419696569442749]], [[216, 219, 323, 299, 236, 133], [0.0, 0.021624326705932617, 0.021645188331604004, 0.023011207580566406, 0.02427774667739868, 0.025453627109527588]], [[217, 263, 320, 324, 163, 147], [0.0, 0.06861650943756104, 0.07597154378890991, 0.0769888162612915, 0.07723158597946167, 0.08057188987731934]], [[218, 293, 187, 324, 217, 150], [1.1920928955078125e-07, 0.17299962043762207, 0.18260902166366577, 0.18610131740570068, 0.1870136260986328, 0.19092988967895508]], [[219, 299, 246, 323, 216, 236], [0.0, 0.012714385986328125, 0.019647598266601562, 0.020683646202087402, 0.021624326705932617, 0.022108793258666992]], [[220, 228, 291, 275, 164, 227], [1.1920928955078125e-07, 0.0604100227355957, 0.06329357624053955, 0.0634998083114624, 0.0714414119720459, 0.07444256544113159]], [[221, 283, 224, 299, 323, 134], [0.0, 0.01919376850128174, 0.01956939697265625, 0.019834578037261963, 0.02044367790222168, 0.02106940746307373]], [[222, 170, 264, 135, 257, 273], [0.0, 0.06285601854324341, 0.0649675726890564, 0.08093523979187012, 0.08210724592208862, 0.08456867933273315]], [[223, 298, 147, 328, 224, 253], [0.0, 0.051122188568115234, 0.053047776222229004, 0.05311477184295654, 0.0534023642539978, 0.05350714921951294]], [[224, 283, 221, 134, 236, 321], [2.384185791015625e-07, 0.015696227550506592, 0.01956939697265625, 0.020390987396240234, 0.021351516246795654, 0.022302865982055664]], [[225, 193, 182, 278, 272, 98], [0.0, 0.004168808460235596, 0.030061542987823486, 0.040799856185913086, 0.04687166213989258, 0.04761052131652832]], [[226, 248, 100, 264, 250, 315], [5.960464477539063e-08, 0.04519575834274292, 0.057879090309143066, 0.06670796871185303, 0.0831688642501831, 0.09024757146835327]], [[227, 215, 161, 176, 275, 219], [0.0, 0.043943583965301514, 0.047068774700164795, 0.047433316707611084, 0.04912829399108887, 0.04947841167449951]], [[228, 220, 291, 323, 249, 216], [0.0, 0.0604100227355957, 0.06179332733154297, 0.06524443626403809, 0.06798678636550903, 0.07157540321350098]], [[229, 306, 305, 222, 100, 258], [0.0, 0.11274594068527222, 0.13907289505004883, 0.16795110702514648, 0.16888123750686646, 0.170964777469635]], [[230, 339, 319, 185, 197, 255], [5.960464477539063e-08, 0.06212460994720459, 0.09777265787124634, 0.12673091888427734, 0.14012861251831055, 0.14189159870147705]], [[231, 133, 281, 155, 289, 186], [0.0, 0.012139737606048584, 0.018488764762878418, 0.030945181846618652, 0.03574979305267334, 0.037368714809417725]], [[232, 266, 222, 308, 264, 288], [1.1920928955078125e-07, 0.103737473487854, 0.10481077432632446, 0.10489726066589355, 0.12260323762893677, 0.12493866682052612]], [[233, 219, 299, 147, 251, 202], [1.1920928955078125e-07, 0.06753361225128174, 0.06914007663726807, 0.07151758670806885, 0.07228213548660278, 0.07688313722610474]], [[234, 237, 307, 193, 182, 251], [0.0, 0.0384678840637207, 0.04729741811752319, 0.04839324951171875, 0.05123579502105713, 0.055409789085388184]], [[235, 279, 77, 247, 335, 243], [1.1920928955078125e-07, 0.13759773969650269, 0.17178338766098022, 0.2016385793685913, 0.20646822452545166, 0.23604023456573486]], [[236, 283, 136, 299, 246, 265], [0.0, 0.007670342922210693, 0.009837090969085693, 0.013717353343963623, 0.015579938888549805, 0.018702685832977295]], [[237, 272, 190, 251, 313, 267], [0.0, 0.01598811149597168, 0.026023268699645996, 0.029005467891693115, 0.034403860569000244, 0.03607141971588135]], [[238, 307, 185, 234, 303, 189], [5.960464477539063e-08, 0.051914215087890625, 0.05207854509353638, 0.05608940124511719, 0.05885380506515503, 0.06553924083709717]], [[239, 287, 309, 162, 304, 178], [5.960464477539063e-08, 0.0162503719329834, 0.02078002691268921, 0.02269834280014038, 0.02562272548675537, 0.025643348693847656]], [[240, 310, 276, 167, 248, 288], [0.0, 0.08398652076721191, 0.11308455467224121, 0.14121711254119873, 0.1418323516845703, 0.14343202114105225]], [[241, 263, 200, 159, 163, 282], [0.0, 0.04825782775878906, 0.052292823791503906, 0.0527266263961792, 0.05364495515823364, 0.054522693157196045]], [[242, 287, 162, 169, 0, 239], [1.1920928955078125e-07, 0.0021944046020507812, 0.02374279499053955, 0.023859024047851562, 0.02417755126953125, 0.0257875919342041]], [[243, 219, 249, 216, 323, 299], [1.1920928955078125e-07, 0.05697721242904663, 0.059064269065856934, 0.06455874443054199, 0.0678289532661438, 0.06983935832977295]], [[244, 142, 141, 307, 234, 238], [1.1920928955078125e-07, 0.07168322801589966, 0.07623863220214844, 0.07743698358535767, 0.08933353424072266, 0.09532088041305542]], [[245, 131, 177, 266, 318, 308], [0.0, 0.055518269538879395, 0.06310611963272095, 0.06999176740646362, 0.08046483993530273, 0.09180808067321777]], [[246, 188, 132, 134, 299, 236], [1.1920928955078125e-07, 0.009184300899505615, 0.009184300899505615, 0.009662985801696777, 0.013514697551727295, 0.015579938888549805]], [[247, 256, 213, 253, 176, 279], [0.0, 0.10108691453933716, 0.10209798812866211, 0.11603707075119019, 0.11894798278808594, 0.1262955665588379]], [[248, 100, 264, 226, 315, 250], [0.0, 0.04013031721115112, 0.0431177020072937, 0.04519575834274292, 0.0602225661277771, 0.07712984085083008]], [[249, 216, 323, 213, 224, 298], [0.0, 0.053444504737854004, 0.05347800254821777, 0.05512881278991699, 0.055180907249450684, 0.05770528316497803]], [[250, 264, 248, 100, 226, 170], [0.0, 0.07635104656219482, 0.07712984085083008, 0.07894241809844971, 0.0831688642501831, 0.10424381494522095]], [[251, 190, 237, 313, 267, 320], [1.1920928955078125e-07, 0.020168423652648926, 0.029005467891693115, 0.032627224922180176, 0.03404170274734497, 0.03594863414764404]], [[252, 186, 166, 139, 311, 270], [1.7881393432617188e-07, 0.005979955196380615, 0.006370425224304199, 0.009951949119567871, 0.010087728500366211, 0.011365294456481934]], [[253, 211, 213, 321, 216, 224], [0.0, 0.03262734413146973, 0.04064208269119263, 0.040883421897888184, 0.04197072982788086, 0.04507136344909668]], [[254, 182, 193, 225, 278, 98], [0.0, 0.03692883253097534, 0.046907901763916016, 0.048598647117614746, 0.05384713411331177, 0.05458426475524902]], [[255, 273, 197, 336, 222, 135], [0.0, 0.09391242265701294, 0.0946584939956665, 0.09792590141296387, 0.10161978006362915, 0.10180461406707764]], [[256, 189, 275, 176, 212, 201], [0.0, 0.06812107563018799, 0.07430565357208252, 0.07836425304412842, 0.08581972122192383, 0.0861361026763916]], [[257, 273, 315, 100, 209, 266], [2.384185791015625e-07, 0.04823946952819824, 0.055569469928741455, 0.06354749202728271, 0.06381475925445557, 0.06655001640319824]], [[258, 226, 100, 264, 250, 248], [0.0, 0.09238320589065552, 0.10224437713623047, 0.1041187047958374, 0.10483801364898682, 0.1060602068901062]], [[259, 139, 270, 186, 304, 162], [1.7881393432617188e-07, 0.01855182647705078, 0.02075815200805664, 0.0212860107421875, 0.021549224853515625, 0.022275984287261963]], [[260, 175, 140, 157, 206, 163], [0.0, 0.015648603439331055, 0.016649186611175537, 0.022033870220184326, 0.02406400442123413, 0.02748262882232666]], [[261, 171, 378, 365, 314, 376], [1.1920928955078125e-07, 0.19245398044586182, 0.2584153413772583, 0.2835538387298584, 0.33348995447158813, 0.3505164384841919]], [[262, 250, 137, 264, 248, 100], [0.0, 0.10677742958068848, 0.11464732885360718, 0.11534923315048218, 0.13215667009353638, 0.13236749172210693]], [[263, 202, 147, 313, 284, 163], [0.0, 0.019577860832214355, 0.021443426609039307, 0.02147650718688965, 0.02158653736114502, 0.023872852325439453]], [[264, 248, 170, 222, 226, 250], [5.960464477539063e-08, 0.0431177020072937, 0.057533860206604004, 0.0649675726890564, 0.06670796871185303, 0.07635104656219482]], [[265, 134, 246, 283, 236, 299], [1.1920928955078125e-07, 0.011736392974853516, 0.017399609088897705, 0.01851963996887207, 0.018702685832977295, 0.01908773183822632]], [[266, 257, 245, 308, 267, 273], [0.0, 0.06655001640319824, 0.06999176740646362, 0.07756400108337402, 0.08080315589904785, 0.08301019668579102]], [[267, 190, 251, 237, 200, 338], [1.7881393432617188e-07, 0.030175983905792236, 0.03404170274734497, 0.03607141971588135, 0.04474818706512451, 0.045062363147735596]], [[268, 255, 326, 135, 319, 197], [5.960464477539063e-08, 0.10383635759353638, 0.10588335990905762, 0.11251139640808105, 0.1144254207611084, 0.11579561233520508]], [[269, 288, 190, 172, 338, 214], [0.0, 0.019575893878936768, 0.032198309898376465, 0.041176557540893555, 0.04948568344116211, 0.059067606925964355]], [[270, 166, 139, 186, 309, 143], [0.0, 0.00459665060043335, 0.006964743137359619, 0.0074149370193481445, 0.009103715419769287, 0.010303795337677002]], [[271, 339, 205, 150, 286, 310], [0.0, 0.09119290113449097, 0.11225080490112305, 0.12104082107543945, 0.12915170192718506, 0.13240092992782593]], [[272, 237, 203, 317, 165, 284], [0.0, 0.01598811149597168, 0.02797311544418335, 0.02876049280166626, 0.03050220012664795, 0.03663355112075806]], [[273, 257, 206, 164, 209, 208], [1.1920928955078125e-07, 0.04823946952819824, 0.06325209140777588, 0.06881368160247803, 0.07076108455657959, 0.07107079029083252]], [[274, 98, 165, 337, 155, 317], [0.0, 0.03571951389312744, 0.03589272499084473, 0.04840528964996338, 0.05019235610961914, 0.055007219314575195]], [[275, 164, 219, 176, 246, 163], [0.0, 0.028338909149169922, 0.03297317028045654, 0.0371246337890625, 0.040894150733947754, 0.043616652488708496]], [[276, 315, 182, 167, 183, 257], [0.0, 0.07222163677215576, 0.08126461505889893, 0.08144116401672363, 0.09981459379196167, 0.10561132431030273]], [[277, 289, 201, 207, 295, 223], [0.0, 0.11927878856658936, 0.1237567663192749, 0.12394821643829346, 0.1243894100189209, 0.1246684193611145]], [[278, 150, 201, 157, 202, 225], [0.0, 0.030818819999694824, 0.033941030502319336, 0.03452855348587036, 0.03534209728240967, 0.040799856185913086]], [[279, 247, 235, 179, 335, 151], [1.1920928955078125e-07, 0.1262955665588379, 0.13759773969650269, 0.14452457427978516, 0.14974796772003174, 0.162686288356781]], [[280, 185, 170, 315, 248, 131], [0.0, 0.05971574783325195, 0.08684772253036499, 0.09977197647094727, 0.10151749849319458, 0.10329890251159668]], [[281, 231, 133, 155, 289, 216], [0.0, 0.018488764762878418, 0.019771099090576172, 0.04031932353973389, 0.04608023166656494, 0.05264502763748169]], [[282, 132, 188, 163, 134, 175], [5.960464477539063e-08, 0.010227084159851074, 0.010227084159851074, 0.010870575904846191, 0.019846200942993164, 0.024072766304016113]], [[283, 236, 224, 136, 246, 299], [1.1920928955078125e-07, 0.007670342922210693, 0.015696227550506592, 0.017215490341186523, 0.01747840642929077, 0.01786249876022339]], [[284, 317, 202, 298, 221, 263], [0.0, 0.013387918472290039, 0.015408694744110107, 0.016520261764526367, 0.021330595016479492, 0.02158653736114502]], [[285, 204, 281, 189, 215, 201], [1.7881393432617188e-07, 0.09938699007034302, 0.1236991286277771, 0.14318597316741943, 0.1439579725265503, 0.14399266242980957]], [[286, 150, 290, 278, 184, 334], [0.0, 0.06892329454421997, 0.07358825206756592, 0.0960233211517334, 0.10170519351959229, 0.10394448041915894]], [[287, 242, 239, 162, 169, 304], [1.1920928955078125e-07, 0.0021944046020507812, 0.0162503719329834, 0.022070884704589844, 0.02298504114151001, 0.024961650371551514]], [[288, 269, 190, 338, 141, 172], [5.960464477539063e-08, 0.019575893878936768, 0.04839646816253662, 0.05758464336395264, 0.05821722745895386, 0.06612145900726318]], [[289, 133, 231, 328, 155, 323], [1.7881393432617188e-07, 0.023848295211791992, 0.03574979305267334, 0.037627995014190674, 0.03942149877548218, 0.04384005069732666]], [[290, 184, 201, 174, 150, 278], [0.0, 0.04961192607879639, 0.05132943391799927, 0.05240929126739502, 0.05435460805892944, 0.05523049831390381]], [[291, 246, 136, 219, 236, 323], [0.0, 0.03494745492935181, 0.04055488109588623, 0.04113370180130005, 0.04253000020980835, 0.04801291227340698]], [[292, 232, 222, 266, 326, 308], [0.0, 0.1615593433380127, 0.17287510633468628, 0.17742687463760376, 0.18920427560806274, 0.18978482484817505]], [[293, 324, 150, 201, 278, 317], [0.0, 0.060674965381622314, 0.06171315908432007, 0.06429660320281982, 0.06777846813201904, 0.07364928722381592]], [[294, 178, 304, 309, 270, 166], [1.1920928955078125e-07, 0.016531765460968018, 0.02340257167816162, 0.024524927139282227, 0.027309060096740723, 0.028326809406280518]], [[295, 168, 210, 225, 272, 203], [0.0, 0.053950607776641846, 0.06494021415710449, 0.06918442249298096, 0.07108837366104126, 0.0720212459564209]], [[296, 212, 328, 270, 195, 186], [0.0, 0.01654648780822754, 0.03083944320678711, 0.03370875120162964, 0.03571128845214844, 0.03672921657562256]], [[297, 157, 175, 140, 340, 206], [0.0, 0.04038745164871216, 0.04525315761566162, 0.045385122299194336, 0.04543250799179077, 0.04742574691772461]], [[298, 284, 147, 323, 202, 134], [5.960464477539063e-08, 0.016520261764526367, 0.019907593727111816, 0.02005469799041748, 0.02216237783432007, 0.023342430591583252]], [[299, 219, 246, 236, 134, 283], [0.0, 0.012714385986328125, 0.013514697551727295, 0.013717353343963623, 0.014214754104614258, 0.01786249876022339]], [[300, 220, 255, 135, 275, 208], [1.7881393432617188e-07, 0.10167264938354492, 0.11539125442504883, 0.12487971782684326, 0.13152235746383667, 0.13350838422775269]], [[301, 311, 337, 155, 139, 210], [1.1920928955078125e-07, 0.024713456630706787, 0.026933610439300537, 0.02728712558746338, 0.029225409030914307, 0.031350135803222656]], [[302, 167, 276, 315, 183, 144], [5.960464477539063e-08, 0.10040020942687988, 0.11646288633346558, 0.12316745519638062, 0.1312776803970337, 0.1394059658050537]], [[303, 157, 140, 182, 215, 190], [0.0, 0.03805816173553467, 0.03825658559799194, 0.038714051246643066, 0.041385769844055176, 0.049843013286590576]], [[304, 162, 169, 143, 178, 270], [1.1920928955078125e-07, 0.009294092655181885, 0.011031270027160645, 0.012103438377380371, 0.012186825275421143, 0.014280319213867188]], [[305, 100, 226, 250, 248, 229], [1.1920928955078125e-07, 0.0571979284286499, 0.09763658046722412, 0.12003070116043091, 0.121055006980896, 0.13907289505004883]], [[306, 327, 145, 229, 266, 257], [0.0, 0.10300534963607788, 0.1101272702217102, 0.11274594068527222, 0.12832564115524292, 0.13976943492889404]], [[307, 234, 238, 303, 338, 141], [1.1920928955078125e-07, 0.04729741811752319, 0.051914215087890625, 0.06986117362976074, 0.07161754369735718, 0.07476300001144409]], [[308, 131, 266, 135, 208, 257], [0.0, 0.07476681470870972, 0.07756400108337402, 0.0820913314819336, 0.08416074514389038, 0.08506673574447632]], [[309, 178, 270, 166, 139, 143], [0.0, 0.00853961706161499, 0.009103715419769287, 0.00929337739944458, 0.012069523334503174, 0.017591774463653564]], [[310, 240, 286, 185, 276, 280], [0.0, 0.08398652076721191, 0.10540258884429932, 0.10991179943084717, 0.1138608455657959, 0.11453396081924438]], [[311, 139, 186, 166, 252, 155], [0.0, 0.0069427490234375, 0.007462859153747559, 0.009076416492462158, 0.010087728500366211, 0.01166999340057373]], [[312, 225, 274, 272, 237, 193], [0.0, 0.05490225553512573, 0.05644106864929199, 0.05769842863082886, 0.06180131435394287, 0.061990439891815186]], [[313, 202, 321, 263, 163, 147], [0.0, 0.017575621604919434, 0.018253326416015625, 0.02147650718688965, 0.022833406925201416, 0.023091793060302734]], [[314, 327, 154, 333, 306, 229], [0.0, 0.11612343788146973, 0.1296924352645874, 0.17369884252548218, 0.19680774211883545, 0.19702553749084473]], [[315, 100, 257, 248, 276, 131], [1.1920928955078125e-07, 0.0512617826461792, 0.055569469928741455, 0.0602225661277771, 0.07222163677215576, 0.08709228038787842]], [[316, 187, 180, 207, 194, 144], [0.0, 0.050583481788635254, 0.05255758762359619, 0.054965078830718994, 0.07657277584075928, 0.0806153416633606]], [[317, 284, 165, 272, 98, 263], [1.7881393432617188e-07, 0.013387918472290039, 0.026877403259277344, 0.02876049280166626, 0.02913224697113037, 0.030522286891937256]], [[318, 177, 131, 245, 207, 266], [0.0, 0.05292713642120361, 0.07343053817749023, 0.08046483993530273, 0.08235538005828857, 0.0987844467163086]], [[319, 230, 19, 339, 185, 255], [0.0, 0.09777265787124634, 0.1039050817489624, 0.10520273447036743, 0.1090078353881836, 0.11291950941085815]], [[320, 251, 237, 203, 147, 190], [5.960464477539063e-08, 0.03594863414764404, 0.05135059356689453, 0.052388906478881836, 0.05367434024810791, 0.05399268865585327]], [[321, 313, 202, 224, 134, 147], [1.1920928955078125e-07, 0.018253326416015625, 0.019932448863983154, 0.022302865982055664, 0.02447575330734253, 0.02617931365966797]], [[322, 331, 179, 335, 158, 152], [0.0, 0.13416630029678345, 0.15102267265319824, 0.17183518409729004, 0.17418140172958374, 0.19697624444961548]], [[323, 134, 246, 298, 221, 219], [1.1920928955078125e-07, 0.01453542709350586, 0.016091644763946533, 0.02005469799041748, 0.02044367790222168, 0.020683646202087402]], [[324, 313, 150, 340, 317, 321], [0.0, 0.028543591499328613, 0.03406637907028198, 0.0382114052772522, 0.040027737617492676, 0.040135741233825684]], [[325, 337, 165, 210, 168, 301], [1.1920928955078125e-07, 0.029712677001953125, 0.04549598693847656, 0.055130839347839355, 0.05804872512817383, 0.06450283527374268]], [[326, 135, 148, 336, 208, 308], [0.0, 0.06816703081130981, 0.07189738750457764, 0.08737444877624512, 0.0882422924041748, 0.09878647327423096]], [[327, 306, 154, 314, 333, 229], [1.1920928955078125e-07, 0.10300534963607788, 0.11595845222473145, 0.11612343788146973, 0.12553620338439941, 0.178086519241333]], [[328, 252, 186, 212, 166, 270], [0.0, 0.01485520601272583, 0.016758441925048828, 0.01875680685043335, 0.018893837928771973, 0.01897042989730835]], [[329, 163, 282, 206, 260, 132], [1.7881393432617188e-07, 0.03820192813873291, 0.03828555345535278, 0.04130512475967407, 0.042256951332092285, 0.043357014656066895]], [[330, 165, 274, 317, 98, 325], [1.1920928955078125e-07, 0.06233382225036621, 0.0653199553489685, 0.06912171840667725, 0.06982195377349854, 0.0698235034942627]], [[331, 335, 179, 322, 217, 152], [5.960464477539063e-08, 0.1272348165512085, 0.12730205059051514, 0.13416630029678345, 0.20645546913146973, 0.2066502571105957]], [[332, 173, 97, 160, 179, 292], [0.0, 0.1407971978187561, 0.19803833961486816, 0.24782347679138184, 0.29000604152679443, 0.29583168029785156]], [[333, 327, 314, 306, 154, 229], [1.1920928955078125e-07, 0.12553620338439941, 0.17369884252548218, 0.17674678564071655, 0.18476200103759766, 0.21121728420257568]], [[334, 278, 150, 317, 202, 284], [0.0, 0.047153353691101074, 0.05262744426727295, 0.05584442615509033, 0.06563794612884521, 0.06577849388122559]], [[335, 241, 233, 331, 153, 159], [0.0, 0.11114466190338135, 0.11937052011489868, 0.1272348165512085, 0.13256293535232544, 0.13365519046783447]], [[336, 135, 208, 215, 164, 176], [0.0, 0.0622098445892334, 0.06732916831970215, 0.07458579540252686, 0.08058607578277588, 0.08508956432342529]], [[337, 210, 168, 301, 325, 165], [0.0, 0.017895638942718506, 0.023273587226867676, 0.026933610439300537, 0.029712677001953125, 0.03639101982116699]], [[338, 190, 172, 267, 269, 237], [0.0, 0.033115506172180176, 0.034452080726623535, 0.045062363147735596, 0.04948568344116211, 0.04964101314544678]], [[339, 230, 185, 271, 220, 205], [0.0, 0.06212460994720459, 0.07515597343444824, 0.09119290113449097, 0.09696352481842041, 0.09773552417755127]], [[340, 181, 324, 313, 157, 297], [0.0, 0.02881145477294922, 0.0382114052772522, 0.04109454154968262, 0.042108893394470215, 0.04543250799179077]], [[341, 349, 385, 388, 346, 387], [2.384185791015625e-07, 0.0722353458404541, 0.09744536876678467, 0.11024713516235352, 0.12062901258468628, 0.12062901258468628]], [[342, 345, 61, 69, 64, 8], [0.0, 0.0666857361793518, 0.07439553737640381, 0.11541950702667236, 0.12335515022277832, 0.12647700309753418]], [[343, 92, 7, 96, 99, 12], [0.0, 0.1891764998435974, 0.20381224155426025, 0.21388226747512817, 0.22354435920715332, 0.22633010149002075]], [[344, 359, 350, 357, 353, 368], [1.1920928955078125e-07, 0.0467381477355957, 0.06640791893005371, 0.08592104911804199, 0.08673089742660522, 0.14354759454727173]], [[345, 342, 61, 377, 389, 64], [0.0, 0.0666857361793518, 0.09997725486755371, 0.1102132797241211, 0.13959234952926636, 0.1406097412109375]], [[346, 387, 341, 349, 385, 354], [0.0, 0.0, 0.12062901258468628, 0.1265110969543457, 0.16938412189483643, 0.17005324363708496]], [[347, 360, 366, 374, 368, 367], [0.0, 0.06326377391815186, 0.06389367580413818, 0.08058959245681763, 0.09195613861083984, 0.1031719446182251]], [[348, 117, 122, 379, 108, 325], [0.0, 0.1585390567779541, 0.15867388248443604, 0.16299843788146973, 0.24832665920257568, 0.2492152452468872]], [[349, 388, 341, 387, 346, 380], [0.0, 0.07058513164520264, 0.0722353458404541, 0.1265110969543457, 0.1265110969543457, 0.16601336002349854]], [[350, 344, 359, 353, 372, 368], [0.0, 0.06640791893005371, 0.09039974212646484, 0.10793232917785645, 0.13767576217651367, 0.14601409435272217]], [[351, 363, 373, 354, 371, 381], [0.0, 0.022709369659423828, 0.10086333751678467, 0.2066878080368042, 0.23898297548294067, 0.2433077096939087]], [[352, 370, 375, 369, 32, 10], [0.0, 0.1310194730758667, 0.14964842796325684, 0.2084224820137024, 0.28312039375305176, 0.3224097490310669]], [[353, 368, 344, 359, 350, 357], [0.0, 0.0820278525352478, 0.08673089742660522, 0.10682487487792969, 0.10793232917785645, 0.15117639303207397]], [[354, 381, 355, 346, 387, 341], [0.0, 0.029329538345336914, 0.0825769305229187, 0.17005324363708496, 0.17005324363708496, 0.18214625120162964]], [[355, 381, 354, 364, 351, 363], [1.7881393432617188e-07, 0.06616461277008057, 0.0825769305229187, 0.1317482590675354, 0.2475452423095703, 0.28270119428634644]], [[356, 361, 374, 368, 357, 359], [0.0, 0.08381849527359009, 0.1004076600074768, 0.13015997409820557, 0.1840115785598755, 0.19223642349243164]], [[357, 359, 344, 368, 347, 367], [0.0, 0.028156280517578125, 0.08592104911804199, 0.11522328853607178, 0.12430191040039062, 0.14110112190246582]], [[358, 367, 347, 362, 357, 368], [5.960464477539063e-08, 0.17866230010986328, 0.19540059566497803, 0.1961911916732788, 0.22999250888824463, 0.23048913478851318]], [[359, 357, 344, 350, 368, 353], [0.0, 0.028156280517578125, 0.0467381477355957, 0.09039974212646484, 0.10252678394317627, 0.10682487487792969]], [[360, 347, 366, 374, 368, 372], [0.0, 0.06326377391815186, 0.08457744121551514, 0.09264117479324341, 0.10485172271728516, 0.16277897357940674]], [[361, 356, 374, 368, 359, 357], [0.0, 0.08381849527359009, 0.16663306951522827, 0.1779308319091797, 0.18325412273406982, 0.19962209463119507]], [[362, 358, 367, 347, 368, 374], [1.1920928955078125e-07, 0.1961911916732788, 0.1973731517791748, 0.208543598651886, 0.2127755880355835, 0.21867728233337402]], [[363, 351, 373, 354, 36, 78], [1.1920928955078125e-07, 0.022709369659423828, 0.10493165254592896, 0.2494293451309204, 0.25454968214035034, 0.27526217699050903]], [[364, 355, 354, 381, 389, 377], [5.960464477539063e-08, 0.1317482590675354, 0.22085881233215332, 0.22296857833862305, 0.22627341747283936, 0.24590301513671875]], [[365, 261, 378, 372, 366, 376], [1.1920928955078125e-07, 0.2835538387298584, 0.3101106882095337, 0.31889164447784424, 0.327480673789978, 0.34233587980270386]], [[366, 372, 347, 360, 368, 367], [0.0, 0.05768275260925293, 0.06389367580413818, 0.08457744121551514, 0.1425795555114746, 0.14384692907333374]], [[367, 347, 368, 357, 366, 353], [0.0, 0.1031719446182251, 0.12589150667190552, 0.14110112190246582, 0.14384692907333374, 0.15916478633880615]], [[368, 353, 374, 347, 359, 360], [0.0, 0.0820278525352478, 0.08933752775192261, 0.09195613861083984, 0.10252678394317627, 0.10485172271728516]], [[369, 375, 370, 84, 360, 48], [0.0, 0.15375781059265137, 0.15668678283691406, 0.1693333387374878, 0.18558114767074585, 0.19529390335083008]], [[370, 375, 352, 369, 84, 360], [0.0, 0.0695832371711731, 0.1310194730758667, 0.15668678283691406, 0.23300009965896606, 0.32893913984298706]], [[371, 385, 341, 354, 387, 346], [0.0, 0.03303933143615723, 0.15321165323257446, 0.198014497756958, 0.2000829577445984, 0.2000829577445984]], [[372, 366, 350, 347, 377, 360], [1.1920928955078125e-07, 0.05768275260925293, 0.13767576217651367, 0.14904510974884033, 0.1604536771774292, 0.16277897357940674]], [[373, 351, 363, 371, 389, 377], [5.960464477539063e-08, 0.10086333751678467, 0.10493165254592896, 0.276042640209198, 0.279620885848999, 0.2942497730255127]], [[374, 347, 368, 360, 356, 359], [0.0, 0.08058959245681763, 0.08933752775192261, 0.09264117479324341, 0.1004076600074768, 0.14920765161514282]], [[375, 370, 352, 369, 84, 361], [0.0, 0.0695832371711731, 0.14964842796325684, 0.15375781059265137, 0.15379291772842407, 0.26272857189178467]], [[376, 378, 386, 384, 380, 365], [5.960464477539063e-08, 0.1732240915298462, 0.17802459001541138, 0.2387292981147766, 0.2657686471939087, 0.34233587980270386]], [[377, 345, 389, 342, 372, 61], [1.1920928955078125e-07, 0.1102132797241211, 0.1276479959487915, 0.15085554122924805, 0.1604536771774292, 0.20251786708831787]], [[378, 384, 376, 305, 99, 333], [0.0, 0.11744308471679688, 0.1732240915298462, 0.2102653980255127, 0.22969919443130493, 0.24546420574188232]], [[379, 348, 359, 350, 357, 344], [0.0, 0.16299843788146973, 0.20514291524887085, 0.2177128791809082, 0.21799957752227783, 0.24222278594970703]], [[380, 386, 349, 341, 388, 346], [0.0, 0.07391178607940674, 0.16601336002349854, 0.2032971978187561, 0.21057450771331787, 0.244299054145813]], [[381, 354, 355, 364, 346, 387], [0.0, 0.029329538345336914, 0.06616461277008057, 0.22296857833862305, 0.22590994834899902, 0.22590994834899902]], [[382, 386, 349, 380, 387, 346], [0.0, 0.23309147357940674, 0.26531755924224854, 0.27239447832107544, 0.29042690992355347, 0.29042690992355347]], [[383, 344, 350, 389, 353, 367], [0.0, 0.15802979469299316, 0.19357597827911377, 0.19764947891235352, 0.2018110752105713, 0.20745670795440674]], [[384, 378, 99, 386, 305, 376], [1.1920928955078125e-07, 0.11744308471679688, 0.1798076629638672, 0.20864450931549072, 0.234178364276886, 0.2387292981147766]], [[385, 371, 341, 346, 387, 349], [0.0, 0.03303933143615723, 0.09744536876678467, 0.16938412189483643, 0.16938412189483643, 0.19946181774139404]], [[386, 380, 376, 384, 382, 349], [1.1920928955078125e-07, 0.07391178607940674, 0.17802459001541138, 0.20864450931549072, 0.23309147357940674, 0.2583709955215454]], [[346, 387, 341, 349, 385, 354], [0.0, 0.0, 0.12062901258468628, 0.1265110969543457, 0.16938412189483643, 0.17005324363708496]], [[388, 349, 341, 387, 346, 380], [0.0, 0.07058513164520264, 0.11024713516235352, 0.18378227949142456, 0.18378227949142456, 0.21057450771331787]], [[389, 377, 345, 342, 383, 61], [0.0, 0.1276479959487915, 0.13959234952926636, 0.15592706203460693, 0.19764947891235352, 0.20971935987472534]]]
#2048
arr = [[[0, 128, 337, 30, 356, 166], [0.0, 0.1005626916885376, 0.10077941417694092, 0.10181653499603271, 0.11069488525390625, 0.11128991842269897]], [[1, 335, 308, 131, 273, 14], [0.0, 0.0942697525024414, 0.09997010231018066, 0.10416316986083984, 0.11758792400360107, 0.12119185924530029]], [[2, 210, 72, 76, 311, 242], [1.7881393432617188e-07, 0.049562931060791016, 0.05202406644821167, 0.06311362981796265, 0.06434881687164307, 0.06878328323364258]], [[3, 287, 242, 55, 10, 32], [0.0, 0.04105997085571289, 0.0548740029335022, 0.0632060170173645, 0.06866198778152466, 0.0732453465461731]], [[4, 100, 17, 305, 99, 386], [0.0, 0.06099724769592285, 0.06115597486495972, 0.06637638807296753, 0.07505744695663452, 0.0750969648361206]], [[5, 97, 19, 104, 303, 288], [5.960464477539063e-08, 0.08154857158660889, 0.08185344934463501, 0.08393651247024536, 0.08458435535430908, 0.08599615097045898]], [[6, 378, 229, 71, 16, 171], [1.7881393432617188e-07, 0.06647306680679321, 0.06806796789169312, 0.06850755214691162, 0.07522445917129517, 0.07776880264282227]], [[7, 45, 107, 96, 12, 71], [0.0, 0.0580938458442688, 0.0590936541557312, 0.06011974811553955, 0.060225725173950195, 0.06028568744659424]], [[8, 176, 321, 46, 313, 151], [0.0, 0.03362011909484863, 0.038350820541381836, 0.0428888201713562, 0.04345816373825073, 0.04350876808166504]], [[9, 170, 250, 263, 385, 150], [0.0, 0.12281560897827148, 0.13004720211029053, 0.1312175989151001, 0.13205206394195557, 0.13637584447860718]], [[10, 178, 348, 67, 60, 55], [0.0, 0.047936201095581055, 0.049902498722076416, 0.05183291435241699, 0.05232119560241699, 0.05429047346115112]], [[11, 129, 305, 100, 386, 292], [0.0, 0.08831846714019775, 0.09069520235061646, 0.09222710132598877, 0.0927320122718811, 0.09927761554718018]], [[12, 71, 229, 45, 378, 96], [0.0, 0.02828037738800049, 0.03667175769805908, 0.03744018077850342, 0.04182732105255127, 0.042524099349975586]], [[13, 281, 231, 155, 139, 82], [0.0, 0.035893142223358154, 0.037699997425079346, 0.04320460557937622, 0.04357856512069702, 0.04388362169265747]], [[14, 19, 152, 5, 192, 260], [0.0, 0.0910763144493103, 0.09139037132263184, 0.09370124340057373, 0.09395545721054077, 0.09890615940093994]], [[15, 71, 45, 229, 92, 12], [1.1920928955078125e-07, 0.09209758043289185, 0.09580999612808228, 0.09787583351135254, 0.0991814136505127, 0.09936380386352539]], [[16, 171, 154, 196, 384, 71], [1.1920928955078125e-07, 0.05150872468948364, 0.06328332424163818, 0.06411761045455933, 0.06560969352722168, 0.06584668159484863]], [[17, 305, 57, 100, 388, 36], [0.0, 0.04877501726150513, 0.055229246616363525, 0.05591011047363281, 0.05608147382736206, 0.056215643882751465]], [[18, 143, 198, 114, 360, 165], [0.0, 0.06015002727508545, 0.06475073099136353, 0.06770288944244385, 0.06871318817138672, 0.07012557983398438]], [[19, 152, 215, 39, 315, 260], [0.0, 0.052642107009887695, 0.06158459186553955, 0.06263852119445801, 0.06486845016479492, 0.06546270847320557]], [[20, 231, 281, 13, 289, 360], [0.0, 0.044324636459350586, 0.04457515478134155, 0.04825270175933838, 0.048373520374298096, 0.048667192459106445]], [[21, 181, 62, 262, 310, 340], [0.0, 0.09325623512268066, 0.11275607347488403, 0.12407243251800537, 0.1299898624420166, 0.13688838481903076]], [[22, 332, 305, 100, 4, 384], [0.0, 0.06975585222244263, 0.07071477174758911, 0.07576745748519897, 0.08226519823074341, 0.08533704280853271]], [[23, 388, 257, 57, 209, 248], [3.5762786865234375e-07, 0.07066106796264648, 0.0736396312713623, 0.08093774318695068, 0.08467257022857666, 0.0850268006324768]], [[24, 41, 78, 208, 382, 35], [1.1920928955078125e-07, 0.06995820999145508, 0.09289264678955078, 0.10452008247375488, 0.10537409782409668, 0.11078232526779175]], [[25, 373, 331, 288, 86, 363], [0.0, 0.049719810485839844, 0.05682593584060669, 0.059105873107910156, 0.05919879674911499, 0.06151348352432251]], [[26, 88, 295, 276, 130, 354], [0.0, 0.13215720653533936, 0.13317841291427612, 0.13640064001083374, 0.14095628261566162, 0.14118832349777222]], [[27, 291, 104, 121, 227, 88], [1.1920928955078125e-07, 0.11909270286560059, 0.12615466117858887, 0.14922082424163818, 0.15525811910629272, 0.15731382369995117]], [[28, 388, 349, 23, 257, 57], [0.0, 0.09190154075622559, 0.0920032262802124, 0.09242939949035645, 0.09547334909439087, 0.09568190574645996]], [[29, 258, 194, 125, 118, 318], [0.0, 0.09951764345169067, 0.10150337219238281, 0.1082921028137207, 0.10872000455856323, 0.11350959539413452]], [[30, 375, 337, 76, 52, 309], [0.0, 0.05500936508178711, 0.06323885917663574, 0.06384491920471191, 0.06425493955612183, 0.06765508651733398]], [[31, 236, 255, 247, 389, 151], [1.1920928955078125e-07, 0.08536458015441895, 0.08772879838943481, 0.09057903289794922, 0.09326386451721191, 0.09366410970687866]], [[32, 76, 375, 309, 242, 210], [0.0, 0.04529482126235962, 0.0609058141708374, 0.06201910972595215, 0.06534546613693237, 0.0663800835609436]], [[33, 10, 287, 242, 3, 67], [2.384185791015625e-07, 0.058835625648498535, 0.06372332572937012, 0.0736684799194336, 0.07995736598968506, 0.08360564708709717]], [[34, 259, 18, 128, 198, 49], [5.960464477539063e-08, 0.05369997024536133, 0.07236450910568237, 0.07848501205444336, 0.08096760511398315, 0.08247578144073486]], [[35, 78, 197, 254, 125, 255], [2.384185791015625e-07, 0.09112715721130371, 0.09396719932556152, 0.09481298923492432, 0.09809255599975586, 0.10170602798461914]], [[36, 17, 388, 209, 305, 326], [1.7881393432617188e-07, 0.056215643882751465, 0.05823516845703125, 0.06366699934005737, 0.06771749258041382, 0.07028859853744507]], [[37, 70, 80, 90, 346, 387], [5.960464477539063e-08, 0.07081067562103271, 0.07245051860809326, 0.07526904344558716, 0.07646703720092773, 0.07646703720092773]], [[38, 276, 320, 206, 63, 140], [0.0, 0.06224709749221802, 0.07289868593215942, 0.07399356365203857, 0.07406628131866455, 0.07515543699264526]], [[39, 303, 152, 215, 264, 70], [0.0, 0.04280740022659302, 0.04761064052581787, 0.04792964458465576, 0.048143982887268066, 0.04962873458862305]], [[40, 69, 234, 351, 157, 63], [5.960464477539063e-08, 0.0488094687461853, 0.05567371845245361, 0.05606424808502197, 0.06058239936828613, 0.06100970506668091]], [[41, 24, 78, 273, 382, 208], [0.0, 0.06995820999145508, 0.09829652309417725, 0.10327845811843872, 0.10604262351989746, 0.11442548036575317]], [[42, 298, 325, 189, 227, 290], [0.0, 0.18739008903503418, 0.1901332139968872, 0.19261431694030762, 0.1977393627166748, 0.19783663749694824]], [[43, 0, 356, 370, 30, 337], [1.1920928955078125e-07, 0.12884116172790527, 0.1444295048713684, 0.14681416749954224, 0.15216153860092163, 0.16057586669921875]], [[44, 312, 266, 226, 267, 354], [5.960464477539063e-08, 0.1110842227935791, 0.11402487754821777, 0.11455321311950684, 0.11788570880889893, 0.11900615692138672]], [[45, 229, 71, 378, 12, 96], [1.1920928955078125e-07, 0.02926015853881836, 0.03166651725769043, 0.037140846252441406, 0.03744018077850342, 0.038410067558288574]], [[46, 164, 313, 247, 163, 176], [5.960464477539063e-08, 0.030757546424865723, 0.032804667949676514, 0.03646284341812134, 0.038690388202667236, 0.04049760103225708]], [[47, 313, 235, 46, 117, 164], [0.0, 0.04832732677459717, 0.04969966411590576, 0.0541345477104187, 0.058829545974731445, 0.05934387445449829]], [[48, 369, 210, 20, 252, 383], [1.1920928955078125e-07, 0.1252894401550293, 0.13540172576904297, 0.13950371742248535, 0.14341557025909424, 0.148326575756073]], [[49, 211, 224, 95, 366, 359], [5.960464477539063e-08, 0.055333852767944336, 0.061171889305114746, 0.06294906139373779, 0.063076913356781, 0.06368374824523926]], [[50, 386, 305, 4, 384, 292], [0.0, 0.0706782341003418, 0.07111704349517822, 0.08032643795013428, 0.08162033557891846, 0.0816696286201477]], [[51, 375, 76, 309, 84, 30], [2.384185791015625e-07, 0.06318801641464233, 0.06871497631072998, 0.07387340068817139, 0.07428938150405884, 0.07462084293365479]], [[52, 76, 337, 168, 375, 210], [0.0, 0.04663097858428955, 0.057126522064208984, 0.058302998542785645, 0.0616837739944458, 0.0629071593284607]], [[53, 383, 49, 299, 8, 95], [0.0, 0.08219456672668457, 0.09958779811859131, 0.10117167234420776, 0.10236853361129761, 0.10305947065353394]], [[54, 191, 367, 383, 64, 122], [0.0, 0.17235052585601807, 0.19537591934204102, 0.22151511907577515, 0.22621870040893555, 0.2338804006576538]], [[55, 348, 67, 60, 10, 178], [0.0, 0.050887346267700195, 0.05339038372039795, 0.05345034599304199, 0.05429047346115112, 0.05748450756072998]], [[56, 266, 144, 94, 167, 150], [5.960464477539063e-08, 0.0745808482170105, 0.09138768911361694, 0.09912258386611938, 0.10033959150314331, 0.10937082767486572]], [[57, 17, 388, 209, 257, 305], [0.0, 0.055229246616363525, 0.06635099649429321, 0.06721103191375732, 0.06899487972259521, 0.06986367702484131]], [[58, 380, 99, 142, 94, 384], [0.0, 0.10433363914489746, 0.11881721019744873, 0.12344497442245483, 0.12403273582458496, 0.12717264890670776]], [[59, 271, 286, 179, 123, 227], [0.0, 0.07521593570709229, 0.1281530261039734, 0.13956236839294434, 0.15041756629943848, 0.15301060676574707]], [[60, 67, 348, 178, 10, 55], [0.0, 0.00017821788787841797, 0.047116994857788086, 0.05019253492355347, 0.05232119560241699, 0.05345034599304199]], [[61, 253, 366, 146, 213, 224], [0.0, 0.05778157711029053, 0.060382068157196045, 0.06183302402496338, 0.0628814697265625, 0.06408083438873291]], [[62, 310, 21, 262, 181, 37], [1.1920928955078125e-07, 0.1019512414932251, 0.11275607347488403, 0.12274575233459473, 0.1298845410346985, 0.14955198764801025]], [[63, 140, 69, 351, 283, 206], [2.384185791015625e-07, 0.04478907585144043, 0.04597270488739014, 0.05061972141265869, 0.05126082897186279, 0.05416899919509888]], [[64, 279, 75, 238, 98, 247], [2.384185791015625e-07, 0.10077059268951416, 0.1112896203994751, 0.12097221612930298, 0.12214481830596924, 0.1225970983505249]], [[65, 94, 56, 167, 381, 318], [2.384185791015625e-07, 0.10081690549850464, 0.16298234462738037, 0.1641629934310913, 0.18637174367904663, 0.1864812970161438]], [[66, 71, 12, 45, 229, 96], [0.0, 0.041068196296691895, 0.046581804752349854, 0.05200648307800293, 0.052407026290893555, 0.053811490535736084]], [[67, 60, 348, 178, 10, 55], [0.0, 0.00017821788787841797, 0.04662448167800903, 0.049785733222961426, 0.05183291435241699, 0.05339038372039795]], [[68, 212, 256, 296, 83, 123], [1.1920928955078125e-07, 0.07987916469573975, 0.09101331233978271, 0.10285460948944092, 0.11461901664733887, 0.12338972091674805]], [[69, 351, 140, 63, 157, 40], [0.0, 0.04005134105682373, 0.041211724281311035, 0.04597270488739014, 0.04673677682876587, 0.0488094687461853]], [[70, 248, 264, 215, 39, 297], [1.7881393432617188e-07, 0.04572033882141113, 0.04826486110687256, 0.049379944801330566, 0.04962873458862305, 0.054569780826568604]], [[71, 12, 229, 45, 96, 378], [4.172325134277344e-07, 0.02828037738800049, 0.030160605907440186, 0.03166651725769043, 0.037590622901916504, 0.03851675987243652]], [[72, 210, 82, 168, 311, 139], [0.0, 0.04411518573760986, 0.04566693305969238, 0.04905962944030762, 0.051091670989990234, 0.05183684825897217]], [[73, 45, 327, 92, 12, 343], [5.960464477539063e-08, 0.10720217227935791, 0.11332958936691284, 0.1157228946685791, 0.11603295803070068, 0.11604249477386475]], [[74, 189, 389, 237, 117, 157], [1.7881393432617188e-07, 0.06960052251815796, 0.08840560913085938, 0.09126400947570801, 0.09154009819030762, 0.0926206111907959]], [[75, 247, 164, 307, 117, 283], [0.0, 0.04551893472671509, 0.053152620792388916, 0.05444025993347168, 0.05548286437988281, 0.057063281536102295]], [[76, 32, 375, 210, 52, 309], [0.0, 0.04529482126235962, 0.04639464616775513, 0.04660993814468384, 0.04663097858428955, 0.048916518688201904]], [[77, 336, 63, 69, 164, 247], [1.1920928955078125e-07, 0.05293452739715576, 0.05473989248275757, 0.05812329053878784, 0.058454275131225586, 0.059741437435150146]], [[78, 125, 35, 24, 258, 340], [0.0, 0.08225131034851074, 0.09112715721130371, 0.09289264678955078, 0.0959402322769165, 0.0964822769165039]], [[79, 213, 289, 359, 347, 304], [0.0, 0.07817733287811279, 0.07885366678237915, 0.08214700222015381, 0.08364582061767578, 0.0837395191192627]], [[80, 215, 264, 182, 37, 248], [0.0, 0.06977283954620361, 0.0714913010597229, 0.07219105958938599, 0.07245051860809326, 0.07489895820617676]], [[81, 129, 107, 261, 96, 154], [0.0, 0.15226155519485474, 0.1616497039794922, 0.17522186040878296, 0.18650835752487183, 0.1891527771949768]], [[82, 281, 231, 13, 168, 139], [0.0, 0.0423809289932251, 0.04366481304168701, 0.04388362169265747, 0.0441509485244751, 0.045389533042907715]], [[83, 216, 136, 115, 372, 46], [0.0, 0.06969684362411499, 0.07079887390136719, 0.07450193166732788, 0.07597553730010986, 0.07600688934326172]], [[84, 168, 166, 139, 210, 311], [0.0, 0.04298079013824463, 0.045029282569885254, 0.048431575298309326, 0.05172085762023926, 0.05417817831039429]], [[85, 385, 387, 346, 124, 80], [5.960464477539063e-08, 0.060361623764038086, 0.07113653421401978, 0.07113653421401978, 0.08159124851226807, 0.08374738693237305]], [[86, 288, 190, 303, 25, 269], [0.0, 0.054333627223968506, 0.054544806480407715, 0.05677121877670288, 0.05919879674911499, 0.06163662672042847]], [[87, 254, 137, 329, 39, 217], [0.0, 0.057404398918151855, 0.08084362745285034, 0.09660136699676514, 0.09774887561798096, 0.0977867841720581]], [[88, 295, 199, 201, 63, 93], [1.1920928955078125e-07, 0.05963146686553955, 0.07073652744293213, 0.08101546764373779, 0.08127003908157349, 0.08339250087738037]], [[89, 149, 84, 139, 166, 168], [0.0, 0.04874807596206665, 0.0644349455833435, 0.07213848829269409, 0.0721510648727417, 0.07362496852874756]], [[90, 207, 387, 346, 315, 37], [1.1920928955078125e-07, 0.061542391777038574, 0.0673600435256958, 0.0673600435256958, 0.07291239500045776, 0.07526904344558716]], [[91, 313, 176, 46, 164, 151], [0.0, 0.04198896884918213, 0.042483389377593994, 0.04323005676269531, 0.0462191104888916, 0.04850655794143677]], [[92, 45, 229, 12, 71, 378], [0.0, 0.040180325508117676, 0.042765915393829346, 0.045211851596832275, 0.05054116249084473, 0.057910025119781494]], [[93, 199, 88, 63, 295, 203], [1.1920928955078125e-07, 0.07741540670394897, 0.08339250087738037, 0.08914095163345337, 0.0915137529373169, 0.0935211181640625]], [[94, 56, 65, 129, 58, 167], [0.0, 0.09912258386611938, 0.10081684589385986, 0.10811948776245117, 0.12403273582458496, 0.13024282455444336]], [[95, 224, 285, 366, 321, 213], [0.0, 0.03451073169708252, 0.03666502237319946, 0.04081171751022339, 0.04123347997665405, 0.041637539863586426]], [[96, 229, 378, 71, 45, 261], [1.1920928955078125e-07, 0.035408854484558105, 0.03636223077774048, 0.037590622901916504, 0.038410067558288574, 0.04035520553588867]], [[97, 205, 170, 160, 19, 319], [0.0, 0.06477290391921997, 0.06766068935394287, 0.0766134262084961, 0.07778501510620117, 0.07952713966369629]], [[98, 241, 64, 236, 362, 197], [5.960464477539063e-08, 0.10403168201446533, 0.12214481830596924, 0.13926100730895996, 0.14328312873840332, 0.14532190561294556]], [[99, 142, 386, 292, 305, 384], [1.7881393432617188e-07, 0.04474687576293945, 0.05754208564758301, 0.05966871976852417, 0.06204444169998169, 0.07085573673248291]], [[100, 305, 17, 4, 209, 257], [1.7881393432617188e-07, 0.04650908708572388, 0.05591011047363281, 0.06099724769592285, 0.0654001235961914, 0.06881314516067505]], [[101, 95, 321, 313, 224, 253], [1.1920928955078125e-07, 0.048243939876556396, 0.04940342903137207, 0.04948067665100098, 0.04967641830444336, 0.05025213956832886]], [[102, 71, 196, 343, 16, 229], [0.0, 0.09819847345352173, 0.09978246688842773, 0.10211288928985596, 0.10580718517303467, 0.10837650299072266]], [[103, 217, 320, 137, 363, 233], [0.0, 0.08282500505447388, 0.0857122540473938, 0.09019076824188232, 0.09669601917266846, 0.09772109985351562]], [[104, 121, 235, 238, 5, 63], [0.0, 0.06613713502883911, 0.07678675651550293, 0.07891273498535156, 0.08393651247024536, 0.08574026823043823]], [[105, 112, 327, 378, 154, 229], [2.384185791015625e-07, 2.384185791015625e-07, 0.05802124738693237, 0.05985313653945923, 0.06026118993759155, 0.06101179122924805]], [[106, 190, 307, 235, 234, 86], [0.0, 0.06245231628417969, 0.06550025939941406, 0.07288551330566406, 0.07616257667541504, 0.07705569267272949]], [[107, 378, 96, 229, 12, 154], [5.960464477539063e-08, 0.043897151947021484, 0.04902195930480957, 0.04976707696914673, 0.051196157932281494, 0.052003324031829834]], [[108, 328, 249, 138, 220, 275], [0.0, 0.06590616703033447, 0.08359116315841675, 0.10840874910354614, 0.10897600650787354, 0.11880385875701904]], [[109, 355, 241, 180, 159, 364], [0.0, 0.11657929420471191, 0.12503910064697266, 0.1260690689086914, 0.1325162649154663, 0.1346331238746643]], [[110, 384, 386, 232, 16, 305], [0.0, 0.07200497388839722, 0.09606689214706421, 0.09742778539657593, 0.09962868690490723, 0.10093814134597778]], [[111, 16, 196, 384, 110, 171], [0.0, 0.11385107040405273, 0.11557066440582275, 0.11656224727630615, 0.12670302391052246, 0.12846243381500244]], [[105, 112, 327, 378, 154, 229], [2.384185791015625e-07, 2.384185791015625e-07, 0.05802124738693237, 0.05985313653945923, 0.06026118993759155, 0.06101179122924805]], [[113, 124, 201, 123, 88, 217], [5.960464477539063e-08, 0.0777277946472168, 0.08865678310394287, 0.10174578428268433, 0.10515928268432617, 0.10644412040710449]], [[114, 289, 198, 213, 252, 143], [1.1920928955078125e-07, 0.050698280334472656, 0.05676358938217163, 0.06200987100601196, 0.06275969743728638, 0.063576340675354]], [[115, 253, 216, 366, 224, 350], [0.0, 0.055370450019836426, 0.060330986976623535, 0.062326788902282715, 0.06277275085449219, 0.06360357999801636]], [[116, 333, 332, 102, 382, 120], [1.1920928955078125e-07, 0.07276517152786255, 0.09047341346740723, 0.11065751314163208, 0.12521463632583618, 0.1300889253616333]], [[117, 237, 313, 247, 46, 164], [1.1920928955078125e-07, 0.03674668073654175, 0.03934609889984131, 0.03998589515686035, 0.04171347618103027, 0.0431370735168457]], [[118, 167, 29, 381, 266, 355], [1.7881393432617188e-07, 0.10203838348388672, 0.10872000455856323, 0.11471152305603027, 0.1239631175994873, 0.1299229860305786]], [[119, 183, 207, 177, 318, 37], [0.0, 0.11215156316757202, 0.13054955005645752, 0.13418471813201904, 0.13678085803985596, 0.15105986595153809]], [[120, 110, 116, 333, 365, 384], [0.0, 0.12943404912948608, 0.1300889253616333, 0.13278615474700928, 0.13954782485961914, 0.14322787523269653]], [[121, 47, 238, 104, 235, 46], [5.960464477539063e-08, 0.06309103965759277, 0.06599342823028564, 0.06613713502883911, 0.0713815689086914, 0.07837450504302979]], [[122, 367, 357, 361, 353, 359], [1.7881393432617188e-07, 0.09586310386657715, 0.10388410091400146, 0.11352717876434326, 0.12096035480499268, 0.12133049964904785]], [[123, 286, 256, 113, 263, 290], [0.0, 0.09271705150604248, 0.09450113773345947, 0.10174578428268433, 0.1035568118095398, 0.10465335845947266]], [[124, 113, 385, 37, 85, 207], [1.1920928955078125e-07, 0.0777277946472168, 0.07818859815597534, 0.07925033569335938, 0.08159124851226807, 0.08329004049301147]], [[125, 78, 340, 273, 35, 280], [1.1920928955078125e-07, 0.08225131034851074, 0.09489220380783081, 0.09756767749786377, 0.09809255599975586, 0.10554414987564087]], [[126, 83, 212, 162, 265, 350], [0.0, 0.10565441846847534, 0.11218750476837158, 0.11417609453201294, 0.11477464437484741, 0.1185951828956604]], [[127, 290, 354, 302, 144, 381], [2.980232238769531e-07, 0.09275192022323608, 0.09446471929550171, 0.0950326919555664, 0.09758371114730835, 0.10467958450317383]], [[128, 374, 231, 186, 20, 304], [0.0, 0.05354666709899902, 0.05509597063064575, 0.056864380836486816, 0.05753493309020996, 0.059204936027526855]], [[129, 174, 305, 100, 11, 386], [0.0, 0.06721508502960205, 0.07833313941955566, 0.08523988723754883, 0.08831846714019775, 0.09280383586883545]], [[130, 157, 288, 172, 351, 303], [1.1920928955078125e-07, 0.052381277084350586, 0.05249941349029541, 0.055913448333740234, 0.05718696117401123, 0.05879563093185425]], [[131, 335, 308, 23, 1, 177], [2.384185791015625e-07, 0.07537662982940674, 0.08919519186019897, 0.10340988636016846, 0.10416316986083984, 0.10516226291656494]], [[188, 132, 282, 246, 372, 176], [3.5762786865234375e-07, 3.5762786865234375e-07, 0.03381061553955078, 0.03964346647262573, 0.04205894470214844, 0.042507946491241455]], [[133, 284, 285, 95, 213, 146], [2.980232238769531e-07, 0.05062246322631836, 0.051327526569366455, 0.05221682786941528, 0.05582070350646973, 0.05612307786941528]], [[134, 132, 188, 246, 282, 342], [0.0, 0.05285942554473877, 0.05285942554473877, 0.058534443378448486, 0.060078978538513184, 0.061326026916503906]], [[135, 349, 326, 251, 341, 170], [5.960464477539063e-08, 0.0872570276260376, 0.09068471193313599, 0.09406256675720215, 0.09529423713684082, 0.09625828266143799]], [[136, 372, 313, 46, 188, 132], [0.0, 0.04761546850204468, 0.051690757274627686, 0.05169868469238281, 0.05170726776123047, 0.05170726776123047]], [[137, 329, 315, 217, 215, 39], [0.0, 0.03967493772506714, 0.05989658832550049, 0.06065559387207031, 0.061300039291381836, 0.06167083978652954]], [[138, 236, 108, 249, 176, 255], [0.0, 0.10527598857879639, 0.10840874910354614, 0.11044037342071533, 0.11077278852462769, 0.11326533555984497]], [[139, 168, 155, 231, 166, 13], [0.0, 0.03546905517578125, 0.03861701488494873, 0.04148101806640625, 0.04350167512893677, 0.04357856512069702]], [[140, 351, 175, 69, 206, 63], [5.960464477539063e-08, 0.038742244243621826, 0.03926432132720947, 0.041211724281311035, 0.04249817132949829, 0.04478907585144043]], [[141, 254, 181, 329, 87, 262], [0.0, 0.09456205368041992, 0.10321056842803955, 0.11289513111114502, 0.11427438259124756, 0.11794519424438477]], [[142, 99, 292, 386, 384, 4], [1.7881393432617188e-07, 0.04474687576293945, 0.06172895431518555, 0.0668976902961731, 0.07155561447143555, 0.08189666271209717]], [[143, 18, 114, 219, 133, 95], [0.0, 0.06015002727508545, 0.063576340675354, 0.06993556022644043, 0.07025337219238281, 0.07231974601745605]], [[144, 56, 150, 127, 266, 302], [5.960464477539063e-08, 0.09138768911361694, 0.09296572208404541, 0.09758371114730835, 0.1053779125213623, 0.10982018709182739]], [[145, 333, 222, 332, 335, 22], [0.0, 0.1586158275604248, 0.1672675609588623, 0.1762371063232422, 0.17648464441299438, 0.17766046524047852]], [[146, 253, 224, 213, 95, 321], [0.0, 0.039893269538879395, 0.041908979415893555, 0.04300886392593384, 0.04475212097167969, 0.04629397392272949]], [[147, 91, 46, 247, 140, 283], [1.7881393432617188e-07, 0.05453014373779297, 0.05913197994232178, 0.05989283323287964, 0.061430394649505615, 0.06162184476852417]], [[148, 4, 142, 161, 171, 232], [0.0, 0.12091636657714844, 0.12572097778320312, 0.12703359127044678, 0.13017600774765015, 0.13085651397705078]], [[149, 89, 84, 51, 168, 270], [1.7881393432617188e-07, 0.04874807596206665, 0.09636402130126953, 0.09851789474487305, 0.09899759292602539, 0.09978771209716797]], [[150, 263, 385, 170, 80, 250], [0.0, 0.06800848245620728, 0.07880616188049316, 0.08270537853240967, 0.0842665433883667, 0.08466446399688721]], [[151, 236, 176, 313, 163, 247], [0.0, 0.027031242847442627, 0.03211629390716553, 0.0324057936668396, 0.03695887327194214, 0.037789881229400635]], [[152, 315, 215, 264, 248, 297], [0.0, 0.03177213668823242, 0.035214245319366455, 0.04025083780288696, 0.041791558265686035, 0.0418393611907959]], [[153, 214, 354, 320, 276, 187], [0.0, 0.0711216926574707, 0.08582174777984619, 0.09790593385696411, 0.10246086120605469, 0.10278666019439697]], [[154, 378, 229, 171, 261, 96], [0.0, 0.0352669358253479, 0.03776901960372925, 0.04543197154998779, 0.045757174491882324, 0.04837346076965332]], [[155, 139, 166, 13, 168, 231], [0.0, 0.03861701488494873, 0.04088938236236572, 0.04320460557937622, 0.044882118701934814, 0.0454789400100708]], [[156, 326, 208, 5, 388, 28], [1.1920928955078125e-07, 0.09791409969329834, 0.09890776872634888, 0.10843789577484131, 0.10897552967071533, 0.11238610744476318]], [[157, 351, 234, 237, 283, 117], [0.0, 0.037863969802856445, 0.04127538204193115, 0.0439186692237854, 0.04423302412033081, 0.04579967260360718]], [[158, 152, 205, 315, 387, 346], [0.0, 0.06236445903778076, 0.06301093101501465, 0.07053852081298828, 0.07330489158630371, 0.07330489158630371]], [[159, 241, 180, 125, 109, 64], [0.0, 0.10740554332733154, 0.12016165256500244, 0.12514865398406982, 0.1325162649154663, 0.13385224342346191]], [[160, 205, 97, 170, 158, 260], [0.0, 0.07577264308929443, 0.0766134262084961, 0.08114367723464966, 0.0825076699256897, 0.09719175100326538]], [[161, 148, 142, 99, 100, 341], [0.0, 0.12703359127044678, 0.13155686855316162, 0.14235204458236694, 0.1438489556312561, 0.14404624700546265]], [[162, 115, 270, 356, 79, 344], [5.960464477539063e-08, 0.07994192838668823, 0.08232247829437256, 0.08413445949554443, 0.09695416688919067, 0.09810996055603027]], [[163, 151, 46, 202, 176, 164], [0.0, 0.03695887327194214, 0.038690388202667236, 0.03973519802093506, 0.040413856506347656, 0.044187188148498535]], [[164, 46, 247, 176, 313, 151], [0.0, 0.030757546424865723, 0.03191095590591431, 0.037723660469055176, 0.03801286220550537, 0.040484607219696045]], [[165, 313, 202, 321, 46, 253], [0.0, 0.040986478328704834, 0.04548847675323486, 0.04929262399673462, 0.050762712955474854, 0.053789496421813965]], [[166, 168, 155, 139, 84, 231], [1.1920928955078125e-07, 0.037104904651641846, 0.04088938236236572, 0.04350167512893677, 0.045029282569885254, 0.04504692554473877]], [[167, 266, 56, 118, 302, 381], [0.0, 0.10016560554504395, 0.10033959150314331, 0.10203838348388672, 0.11453378200531006, 0.12158674001693726]], [[168, 139, 166, 311, 231, 84], [0.0, 0.03546905517578125, 0.037104904651641846, 0.04137420654296875, 0.042484819889068604, 0.04298079013824463]], [[169, 2, 369, 82, 13, 281], [5.960464477539063e-08, 0.14825159311294556, 0.16334044933319092, 0.16586869955062866, 0.16706585884094238, 0.16994917392730713]], [[170, 152, 264, 215, 315, 248], [2.384185791015625e-07, 0.04558873176574707, 0.04932451248168945, 0.05118155479431152, 0.05197376012802124, 0.05300372838973999]], [[171, 154, 16, 378, 71, 229], [0.0, 0.04543197154998779, 0.05150872468948364, 0.053610920906066895, 0.05579036474227905, 0.056551456451416016]], [[172, 185, 190, 303, 363, 351], [0.0, 0.02820265293121338, 0.041084229946136475, 0.04118317365646362, 0.04431450366973877, 0.04499173164367676]], [[173, 152, 315, 215, 264, 39], [0.0, 0.05225187540054321, 0.05319458246231079, 0.0546075701713562, 0.05595582723617554, 0.06201666593551636]], [[174, 129, 11, 56, 124, 250], [5.960464477539063e-08, 0.06721508502960205, 0.11344987154006958, 0.11787307262420654, 0.12291491031646729, 0.12521004676818848]], [[175, 140, 260, 206, 303, 351], [0.0, 0.03926432132720947, 0.043672263622283936, 0.045515596866607666, 0.05085843801498413, 0.05103576183319092]], [[176, 321, 151, 8, 164, 313], [5.960464477539063e-08, 0.03206610679626465, 0.03211629390716553, 0.03362011909484863, 0.037723660469055176, 0.038135647773742676]], [[177, 318, 335, 131, 183, 200], [1.1920928955078125e-07, 0.07769155502319336, 0.08400803804397583, 0.10516226291656494, 0.10611903667449951, 0.10703790187835693]], [[178, 348, 10, 67, 60, 55], [0.0, 0.045823872089385986, 0.047936201095581055, 0.049785733222961426, 0.05019253492355347, 0.05748450756072998]], [[179, 324, 40, 336, 234, 69], [0.0, 0.12637484073638916, 0.1275320053100586, 0.12896084785461426, 0.13002431392669678, 0.13068783283233643]], [[180, 364, 191, 159, 109, 294], [0.0, 0.09463024139404297, 0.11927121877670288, 0.12016165256500244, 0.1260690689086914, 0.13898307085037231]], [[181, 340, 21, 262, 254, 141], [1.7881393432617188e-07, 0.08142566680908203, 0.09325623512268066, 0.09351694583892822, 0.09795248508453369, 0.10321056842803955]], [[182, 215, 39, 264, 315, 303], [0.0, 0.044873058795928955, 0.05113095045089722, 0.05302906036376953, 0.0557781457901001, 0.055938005447387695]], [[183, 318, 177, 37, 90, 119], [0.0, 0.09742510318756104, 0.10611903667449951, 0.10896170139312744, 0.11013084650039673, 0.11215156316757202]], [[184, 354, 153, 334, 201, 276], [0.0, 0.12017548084259033, 0.12688851356506348, 0.1272869110107422, 0.13057005405426025, 0.13365823030471802]], [[185, 172, 190, 303, 351, 206], [0.0, 0.02820265293121338, 0.04222702980041504, 0.04655247926712036, 0.048988282680511475, 0.05116105079650879]], [[186, 198, 13, 304, 270, 289], [0.0, 0.044846296310424805, 0.04499310255050659, 0.04679000377655029, 0.047149658203125, 0.04737955331802368]], [[187, 316, 153, 354, 310, 74], [1.1920928955078125e-07, 0.09895980358123779, 0.10278666019439697, 0.12309175729751587, 0.12310522794723511, 0.13652777671813965]], [[188, 132, 282, 246, 372, 176], [3.5762786865234375e-07, 3.5762786865234375e-07, 0.03381061553955078, 0.03964346647262573, 0.04205894470214844, 0.042507946491241455]], [[189, 74, 286, 324, 265, 117], [0.0, 0.06960052251815796, 0.08125758171081543, 0.08426856994628906, 0.08709573745727539, 0.08909231424331665]], [[190, 172, 185, 238, 234, 117], [0.0, 0.041084229946136475, 0.04222702980041504, 0.04545170068740845, 0.04728883504867554, 0.052237510681152344]], [[191, 367, 353, 383, 313, 75], [0.0, 0.06222623586654663, 0.0990610122680664, 0.10220921039581299, 0.10430020093917847, 0.10488665103912354]], [[192, 267, 269, 276, 288, 14], [5.960464477539063e-08, 0.06630659103393555, 0.0887455940246582, 0.09064161777496338, 0.09125697612762451, 0.09395545721054077]], [[193, 225, 313, 247, 283, 164], [1.7881393432617188e-07, 0.03489327430725098, 0.038313984870910645, 0.038887202739715576, 0.039339661598205566, 0.04055428504943848]], [[194, 258, 29, 125, 273, 355], [0.0, 0.08551156520843506, 0.10150337219238281, 0.12372344732284546, 0.13050705194473267, 0.13089263439178467]], [[195, 212, 68, 328, 256, 115], [0.0, 0.1354144811630249, 0.1399354338645935, 0.15249371528625488, 0.1573815941810608, 0.15895235538482666]], [[196, 229, 71, 261, 378, 96], [0.0, 0.040293097496032715, 0.0447850227355957, 0.04824566841125488, 0.048985421657562256, 0.05021512508392334]], [[197, 280, 255, 35, 340, 78], [5.960464477539063e-08, 0.09247159957885742, 0.09326112270355225, 0.09396719932556152, 0.1096886396408081, 0.1113814115524292]], [[198, 186, 13, 289, 95, 304], [5.960464477539063e-08, 0.044846296310424805, 0.0480571985244751, 0.04828965663909912, 0.05143260955810547, 0.052844464778900146]], [[199, 295, 88, 46, 93, 235], [0.0, 0.06588059663772583, 0.07073652744293213, 0.07666236162185669, 0.07741540670394897, 0.08306300640106201]], [[200, 276, 266, 267, 90, 308], [1.1920928955078125e-07, 0.08952897787094116, 0.09026122093200684, 0.09285891056060791, 0.09985148906707764, 0.10495865345001221]], [[201, 203, 295, 276, 130, 331], [0.0, 0.04549610614776611, 0.0586322546005249, 0.06823927164077759, 0.07002449035644531, 0.07159221172332764]], [[202, 377, 163, 313, 151, 46], [0.0, 0.034522414207458496, 0.03973519802093506, 0.03975391387939453, 0.041041791439056396, 0.04146873950958252]], [[203, 201, 320, 295, 217, 38], [0.0, 0.04549610614776611, 0.06591594219207764, 0.06635880470275879, 0.07521557807922363, 0.07876408100128174]], [[204, 303, 39, 363, 182, 288], [0.0, 0.05752992630004883, 0.0648108720779419, 0.06578505039215088, 0.06773388385772705, 0.06806808710098267]], [[205, 158, 97, 160, 170, 19], [0.0, 0.06301093101501465, 0.06477290391921997, 0.07577264308929443, 0.07917684316635132, 0.08983564376831055]], [[206, 140, 175, 172, 351, 185], [1.1920928955078125e-07, 0.04249817132949829, 0.045515596866607666, 0.04913550615310669, 0.05045241117477417, 0.05116105079650879]], [[207, 90, 276, 354, 124, 80], [0.0, 0.061542391777038574, 0.06277155876159668, 0.08175718784332275, 0.08329004049301147, 0.0853080153465271]], [[208, 382, 156, 24, 41, 87], [0.0, 0.09446132183074951, 0.09890776872634888, 0.10452008247375488, 0.11442548036575317, 0.11987102031707764]], [[209, 257, 341, 388, 248, 36], [0.0, 0.04481673240661621, 0.052691102027893066, 0.0558357834815979, 0.05723994970321655, 0.06366699934005737]], [[210, 168, 72, 76, 311, 2], [0.0, 0.043467044830322266, 0.04411518573760986, 0.04660993814468384, 0.04725754261016846, 0.049562931060791016]], [[211, 224, 366, 95, 299, 253], [1.1920928955078125e-07, 0.03252840042114258, 0.04077184200286865, 0.04481750726699829, 0.04558032751083374, 0.04579252004623413]], [[212, 296, 256, 68, 115, 324], [1.1920928955078125e-07, 0.054102301597595215, 0.06585943698883057, 0.07987916469573975, 0.08727675676345825, 0.093014657497406]], [[213, 253, 299, 379, 95, 224], [5.960464477539063e-08, 0.030906081199645996, 0.03753340244293213, 0.03827625513076782, 0.041637539863586426, 0.04195582866668701]], [[214, 153, 157, 237, 130, 75], [0.0, 0.0711216926574707, 0.0840272307395935, 0.08504241704940796, 0.08600491285324097, 0.08705717325210571]], [[215, 315, 297, 264, 152, 248], [1.1920928955078125e-07, 0.03144371509552002, 0.03445601463317871, 0.034531354904174805, 0.035214245319366455, 0.036588191986083984]], [[216, 350, 253, 136, 299, 115], [0.0, 0.05223274230957031, 0.0527644157409668, 0.055375516414642334, 0.056859731674194336, 0.060330986976623535]], [[217, 137, 320, 351, 363, 303], [0.0, 0.06065559387207031, 0.06691849231719971, 0.06917881965637207, 0.06983077526092529, 0.07056742906570435]], [[218, 62, 310, 322, 262, 181], [1.1920928955078125e-07, 0.21044594049453735, 0.22777140140533447, 0.23025846481323242, 0.2338012456893921, 0.23700296878814697]], [[219, 299, 213, 224, 321, 253], [1.1920928955078125e-07, 0.042787373065948486, 0.04551136493682861, 0.050069570541381836, 0.050669968128204346, 0.05123239755630493]], [[220, 275, 299, 213, 188, 132], [0.0, 0.06486648321151733, 0.08075761795043945, 0.08616268634796143, 0.0863046646118164, 0.0863046646118164]], [[221, 299, 219, 323, 213, 246], [1.1920928955078125e-07, 0.042986929416656494, 0.055373966693878174, 0.05539369583129883, 0.05661743879318237, 0.05843895673751831]], [[222, 306, 50, 226, 332, 305], [1.1920928955078125e-07, 0.081417977809906, 0.09294962882995605, 0.10582900047302246, 0.10664987564086914, 0.10735034942626953]], [[223, 202, 253, 46, 321, 165], [5.960464477539063e-08, 0.10697489976882935, 0.10969197750091553, 0.11341613531112671, 0.11358588933944702, 0.11368012428283691]], [[224, 211, 95, 253, 321, 366], [0.0, 0.03252840042114258, 0.03451073169708252, 0.0354006290435791, 0.03650498390197754, 0.03657233715057373]], [[225, 193, 313, 46, 164, 247], [0.0, 0.03489327430725098, 0.03862518072128296, 0.04578787088394165, 0.0464855432510376, 0.04913681745529175]], [[226, 305, 388, 57, 17, 100], [1.1920928955078125e-07, 0.0770488977432251, 0.07988893985748291, 0.08052527904510498, 0.08152008056640625, 0.08529442548751831]], [[227, 123, 263, 59, 27, 97], [5.960464477539063e-08, 0.1452654004096985, 0.15197491645812988, 0.15301060676574707, 0.15525811910629272, 0.1553562879562378]], [[228, 128, 259, 370, 374, 186], [5.960464477539063e-08, 0.06796705722808838, 0.07095599174499512, 0.07302343845367432, 0.0776023268699646, 0.07835996150970459]], [[229, 378, 45, 71, 96, 12], [1.1920928955078125e-07, 0.027566850185394287, 0.02926015853881836, 0.030160605907440186, 0.035408854484558105, 0.03667175769805908]], [[230, 351, 336, 303, 69, 331], [0.0, 0.05624890327453613, 0.0582427978515625, 0.05877023935317993, 0.060225069522857666, 0.06074255704879761]], [[231, 13, 281, 139, 168, 82], [0.0, 0.037699997425079346, 0.03872549533843994, 0.04148101806640625, 0.042484819889068604, 0.04366481304168701]], [[232, 386, 305, 384, 292, 4], [5.960464477539063e-08, 0.06365704536437988, 0.06490051746368408, 0.06970226764678955, 0.07316362857818604, 0.08598101139068604]], [[233, 339, 303, 268, 39, 86], [0.0, 0.04054689407348633, 0.05130600929260254, 0.05691629648208618, 0.060648202896118164, 0.06563824415206909]], [[234, 157, 351, 190, 117, 307], [0.0, 0.04127538204193115, 0.045442938804626465, 0.04728883504867554, 0.047707974910736084, 0.0501326322555542]], [[235, 117, 307, 47, 46, 237], [0.0, 0.048740386962890625, 0.049649059772491455, 0.04969966411590576, 0.05088818073272705, 0.05182367563247681]], [[236, 151, 313, 176, 321, 163], [1.7881393432617188e-07, 0.027031242847442627, 0.036487877368927, 0.042211294174194336, 0.044904351234436035, 0.04566991329193115]], [[237, 117, 157, 313, 46, 247], [0.0, 0.03674668073654175, 0.0439186692237854, 0.04923820495605469, 0.04925954341888428, 0.050660014152526855]], [[238, 190, 283, 247, 117, 46], [2.384185791015625e-07, 0.04545170068740845, 0.048127174377441406, 0.05011308193206787, 0.05219733715057373, 0.05455470085144043]], [[239, 352, 10, 178, 348, 55], [1.1920928955078125e-07, 0.07018280029296875, 0.07621383666992188, 0.08183848857879639, 0.08508491516113281, 0.09700721502304077]], [[240, 250, 341, 17, 36, 209], [3.5762786865234375e-07, 0.08225679397583008, 0.09454113245010376, 0.10358309745788574, 0.10411477088928223, 0.10527968406677246]], [[241, 98, 159, 64, 109, 125], [0.0, 0.10403168201446533, 0.10740554332733154, 0.12294292449951172, 0.12503910064697266, 0.16849833726882935]], [[242, 287, 3, 32, 2, 33], [0.0, 0.04150635004043579, 0.0548740029335022, 0.06534552574157715, 0.06878328323364258, 0.0736684799194336]], [[243, 293, 300, 330, 217, 371], [5.960464477539063e-08, 0.06615966558456421, 0.0826120376586914, 0.08586001396179199, 0.1071932315826416, 0.10994827747344971]], [[244, 269, 190, 172, 288, 86], [0.0, 0.087715744972229, 0.08964782953262329, 0.089851975440979, 0.09056812524795532, 0.09312558174133301]], [[245, 17, 209, 308, 341, 388], [0.0, 0.09572231769561768, 0.09672737121582031, 0.10142326354980469, 0.10246080160140991, 0.1030501127243042]], [[246, 188, 132, 224, 321, 372], [2.384185791015625e-07, 0.03964346647262573, 0.03964346647262573, 0.043895840644836426, 0.04490387439727783, 0.04494786262512207]], [[247, 164, 313, 46, 151, 283], [1.1920928955078125e-07, 0.03191101551055908, 0.036084651947021484, 0.03646284341812134, 0.037789881229400635, 0.03851914405822754]], [[248, 264, 215, 388, 297, 315], [0.0, 0.03045344352722168, 0.036588191986083984, 0.037600159645080566, 0.03769958019256592, 0.04073596000671387]], [[249, 328, 361, 108, 284, 323], [0.0, 0.0680626630783081, 0.08284461498260498, 0.08359116315841675, 0.0961313247680664, 0.09724795818328857]], [[250, 341, 209, 251, 248, 388], [1.7881393432617188e-07, 0.055074095726013184, 0.07054895162582397, 0.07269281148910522, 0.07282203435897827, 0.07555252313613892]], [[251, 341, 388, 257, 209, 17], [0.0, 0.057681381702423096, 0.06265377998352051, 0.06784355640411377, 0.06860435009002686, 0.06961339712142944]], [[252, 186, 231, 304, 13, 289], [0.0, 0.05910623073577881, 0.059171199798583984, 0.05929088592529297, 0.05941861867904663, 0.059744834899902344]], [[253, 213, 224, 321, 299, 146], [0.0, 0.030906081199645996, 0.0354006290435791, 0.03874349594116211, 0.039844810962677, 0.039893269538879395]], [[254, 87, 137, 329, 39, 217], [0.0, 0.057404398918151855, 0.06811177730560303, 0.08019626140594482, 0.08181190490722656, 0.08715856075286865]], [[255, 247, 31, 283, 236, 197], [1.1920928955078125e-07, 0.08484518527984619, 0.08772879838943481, 0.0910344123840332, 0.09178638458251953, 0.09326112270355225]], [[256, 212, 88, 68, 199, 286], [1.1920928955078125e-07, 0.06585943698883057, 0.08477741479873657, 0.09101331233978271, 0.09127217531204224, 0.0913705825805664]], [[257, 209, 248, 341, 388, 264], [0.0, 0.04481673240661621, 0.05372977256774902, 0.05492275953292847, 0.05695760250091553, 0.06178706884384155]], [[258, 194, 78, 29, 273, 382], [2.384185791015625e-07, 0.08551156520843506, 0.0959402322769165, 0.09951764345169067, 0.10328960418701172, 0.11100852489471436]], [[259, 34, 128, 228, 374, 198], [2.384185791015625e-07, 0.05369997024536133, 0.06417191028594971, 0.07095599174499512, 0.07719868421554565, 0.07916557788848877]], [[260, 175, 303, 288, 331, 363], [0.0, 0.043672263622283936, 0.04999136924743652, 0.05283915996551514, 0.0539584755897522, 0.05498528480529785]], [[261, 229, 96, 154, 71, 196], [2.384185791015625e-07, 0.04008185863494873, 0.04035520553588867, 0.045757174491882324, 0.045952022075653076, 0.04824566841125488]], [[262, 380, 181, 215, 388, 264], [0.0, 0.06650638580322266, 0.09351694583892822, 0.0969964861869812, 0.09846818447113037, 0.09926259517669678]], [[263, 150, 97, 371, 319, 205], [0.0, 0.06800848245620728, 0.08075070381164551, 0.08405357599258423, 0.08942008018493652, 0.09152472019195557]], [[264, 248, 215, 315, 297, 388], [5.960464477539063e-08, 0.03045344352722168, 0.034531354904174805, 0.0374680757522583, 0.03838038444519043, 0.03965330123901367]], [[265, 216, 136, 83, 189, 115], [0.0, 0.0791158676147461, 0.08031988143920898, 0.08484184741973877, 0.08709573745727539, 0.0943061113357544]], [[266, 56, 267, 248, 215, 200], [0.0, 0.0745808482170105, 0.07996994256973267, 0.08767545223236084, 0.08880102634429932, 0.09026122093200684]], [[267, 192, 276, 266, 90, 269], [1.7881393432617188e-07, 0.06630659103393555, 0.07420194149017334, 0.07996994256973267, 0.08030372858047485, 0.082244873046875]], [[268, 152, 233, 39, 339, 303], [0.0, 0.05531883239746094, 0.05691629648208618, 0.05727463960647583, 0.06058347225189209, 0.06145739555358887]], [[269, 288, 312, 86, 303, 130], [0.0, 0.05372023582458496, 0.05730891227722168, 0.06163662672042847, 0.06565994024276733, 0.0677182674407959]], [[270, 186, 289, 20, 360, 304], [1.7881393432617188e-07, 0.047149658203125, 0.05168914794921875, 0.05243945121765137, 0.06000322103500366, 0.06070125102996826]], [[271, 59, 263, 286, 123, 230], [0.0, 0.07521593570709229, 0.12492185831069946, 0.13138270378112793, 0.1408390998840332, 0.14951682090759277]], [[272, 202, 377, 165, 146, 313], [0.0, 0.05979001522064209, 0.06650447845458984, 0.07192915678024292, 0.07383853197097778, 0.08441793918609619]], [[273, 125, 78, 23, 41, 258], [2.384185791015625e-07, 0.09756767749786377, 0.10178303718566895, 0.1018635630607605, 0.10327845811843872, 0.10328960418701172]], [[274, 237, 117, 202, 235, 190], [0.0, 0.05543482303619385, 0.0557628870010376, 0.06523430347442627, 0.06983757019042969, 0.07042336463928223]], [[275, 132, 188, 282, 372, 176], [0.0, 0.053835272789001465, 0.053835272789001465, 0.05692321062088013, 0.06260430812835693, 0.06409168243408203]], [[276, 354, 38, 207, 130, 320], [0.0, 0.05522477626800537, 0.06224709749221802, 0.06277155876159668, 0.06394577026367188, 0.06529438495635986]], [[277, 381, 127, 177, 118, 167], [0.0, 0.1591728925704956, 0.19076621532440186, 0.19699203968048096, 0.19869089126586914, 0.21264678239822388]], [[278, 91, 313, 176, 193, 225], [0.0, 0.0635988712310791, 0.0677107572555542, 0.06895166635513306, 0.07034182548522949, 0.07039022445678711]], [[279, 238, 307, 64, 5, 190], [0.0, 0.09339433908462524, 0.098471999168396, 0.10077059268951416, 0.10425817966461182, 0.10922586917877197]], [[280, 351, 303, 283, 358, 197], [5.960464477539063e-08, 0.0880466103553772, 0.08958911895751953, 0.0904076099395752, 0.0909963846206665, 0.09247159957885742]], [[281, 13, 231, 82, 304, 20], [1.1920928955078125e-07, 0.035893142223358154, 0.03872549533843994, 0.0423809289932251, 0.044074833393096924, 0.04457515478134155]], [[282, 188, 132, 342, 164, 46], [0.0, 0.03381061553955078, 0.03381061553955078, 0.04350912570953369, 0.04944014549255371, 0.05007064342498779]], [[283, 247, 193, 351, 157, 117], [0.0, 0.03851914405822754, 0.039339661598205566, 0.04178851842880249, 0.04423302412033081, 0.04747408628463745]], [[284, 146, 253, 133, 213, 379], [0.0, 0.04868978261947632, 0.04876363277435303, 0.05062246322631836, 0.051867783069610596, 0.052555620670318604]], [[285, 95, 224, 213, 211, 366], [1.1920928955078125e-07, 0.03666502237319946, 0.04348456859588623, 0.04803037643432617, 0.048557400703430176, 0.048645734786987305]], [[286, 189, 256, 123, 265, 290], [0.0, 0.08125758171081543, 0.0913705825805664, 0.09271705150604248, 0.10418927669525146, 0.10796999931335449]], [[287, 3, 242, 33, 55, 10], [5.960464477539063e-08, 0.04105997085571289, 0.04150635004043579, 0.06372332572937012, 0.06944763660430908, 0.07096236944198608]], [[288, 303, 331, 363, 351, 373], [0.0, 0.04160332679748535, 0.04203832149505615, 0.044401586055755615, 0.04695868492126465, 0.04745805263519287]], [[289, 304, 347, 213, 379, 186], [0.0, 0.03910118341445923, 0.041539788246154785, 0.04505115747451782, 0.04618537425994873, 0.04737955331802368]], [[290, 127, 130, 244, 175, 256], [0.0, 0.09275192022323608, 0.09686529636383057, 0.0981932282447815, 0.09869617223739624, 0.10425323247909546]], [[291, 121, 104, 27, 235, 88], [0.0, 0.10475432872772217, 0.1054224967956543, 0.11909270286560059, 0.12896931171417236, 0.13102245330810547]], [[292, 386, 384, 99, 142, 305], [0.0, 0.042023658752441406, 0.05793106555938721, 0.05966871976852417, 0.06172895431518555, 0.06439316272735596]], [[293, 330, 243, 91, 278, 164], [2.384185791015625e-07, 0.057213544845581055, 0.06615966558456421, 0.0834115743637085, 0.08465111255645752, 0.08929014205932617]], [[294, 180, 364, 367, 191, 53], [1.7881393432617188e-07, 0.13898307085037231, 0.17861628532409668, 0.17916858196258545, 0.18024379014968872, 0.21236133575439453]], [[295, 201, 88, 199, 203, 63], [0.0, 0.0586322546005249, 0.05963146686553955, 0.06588059663772583, 0.06635880470275879, 0.07643353939056396]], [[296, 212, 256, 115, 216, 328], [0.0, 0.054102301597595215, 0.09216362237930298, 0.09972792863845825, 0.0998152494430542, 0.10177075862884521]], [[297, 215, 315, 248, 264, 152], [0.0, 0.03445601463317871, 0.03624904155731201, 0.03769958019256592, 0.03838038444519043, 0.0418393611907959]], [[298, 91, 46, 317, 165, 202], [1.1920928955078125e-07, 0.06858813762664795, 0.06986820697784424, 0.06991815567016602, 0.07157760858535767, 0.07216203212738037]], [[299, 213, 253, 224, 219, 221], [0.0, 0.03753340244293213, 0.039844810962677, 0.04193270206451416, 0.042787373065948486, 0.042986929416656494]], [[300, 243, 319, 217, 268, 97], [5.960464477539063e-08, 0.0826120376586914, 0.10118997097015381, 0.10354286432266235, 0.10860276222229004, 0.1131487488746643]], [[301, 47, 372, 313, 188, 132], [0.0, 0.06917333602905273, 0.069283127784729, 0.07534009218215942, 0.07737171649932861, 0.07737171649932861]], [[302, 127, 266, 144, 56, 209], [0.0, 0.0950326919555664, 0.09872925281524658, 0.10982018709182739, 0.11005795001983643, 0.11384689807891846]], [[303, 351, 172, 288, 339, 39], [0.0, 0.03783857822418213, 0.04118317365646362, 0.04160332679748535, 0.042714476585388184, 0.04280740022659302]], [[304, 289, 379, 281, 13, 186], [0.0, 0.03910118341445923, 0.04258298873901367, 0.044074833393096924, 0.04461604356765747, 0.04679000377655029]], [[305, 100, 386, 17, 99, 292], [0.0, 0.04650908708572388, 0.04854476451873779, 0.04877501726150513, 0.06204444169998169, 0.06439316272735596]], [[306, 222, 50, 154, 171, 384], [0.0, 0.081417977809906, 0.09683197736740112, 0.10035860538482666, 0.10071921348571777, 0.10157209634780884]], [[307, 235, 234, 117, 190, 237], [0.0, 0.049649059772491455, 0.0501326322555542, 0.05283832550048828, 0.0531730055809021, 0.05398571491241455]], [[308, 335, 264, 90, 388, 215], [0.0, 0.06522762775421143, 0.08123135566711426, 0.08319449424743652, 0.0839340090751648, 0.08515548706054688]], [[309, 76, 375, 210, 32, 52], [0.0, 0.048916518688201904, 0.05542290210723877, 0.0577014684677124, 0.06201910972595215, 0.06447947025299072]], [[310, 150, 62, 144, 37, 187], [1.1920928955078125e-07, 0.09853595495223999, 0.1019512414932251, 0.11184245347976685, 0.12122154235839844, 0.12310522794723511]], [[311, 168, 210, 82, 139, 166], [2.384185791015625e-07, 0.04137420654296875, 0.04725754261016846, 0.04775416851043701, 0.04891955852508545, 0.04995232820510864]], [[312, 269, 233, 39, 70, 130], [2.384185791015625e-07, 0.05730891227722168, 0.06580018997192383, 0.06815570592880249, 0.07101285457611084, 0.07387733459472656]], [[313, 151, 46, 247, 236, 164], [1.1920928955078125e-07, 0.0324057936668396, 0.032804667949676514, 0.036084651947021484, 0.036487877368927, 0.03801286220550537]], [[314, 7, 66, 45, 92, 12], [0.0, 0.08248728513717651, 0.09026765823364258, 0.09096992015838623, 0.09211653470993042, 0.09220266342163086]], [[315, 215, 152, 297, 264, 248], [0.0, 0.03144371509552002, 0.03177213668823242, 0.03624904155731201, 0.0374680757522583, 0.04073596000671387]], [[316, 187, 21, 62, 364, 310], [0.0, 0.09895980358123779, 0.13923871517181396, 0.15209215879440308, 0.15368974208831787, 0.15771400928497314]], [[317, 163, 176, 321, 202, 246], [0.0, 0.044974327087402344, 0.05607086420059204, 0.05673724412918091, 0.056943535804748535, 0.05719214677810669]], [[318, 177, 183, 335, 200, 131], [0.0, 0.07769155502319336, 0.09742510318756104, 0.10032248497009277, 0.10812985897064209, 0.11335617303848267]], [[319, 336, 331, 19, 303, 230], [2.980232238769531e-07, 0.06446951627731323, 0.06622767448425293, 0.07193160057067871, 0.07529675960540771, 0.07670629024505615]], [[320, 276, 203, 217, 303, 351], [0.0, 0.06529438495635986, 0.06591594219207764, 0.06691849231719971, 0.06704151630401611, 0.06942254304885864]], [[321, 176, 224, 372, 8, 253], [0.0, 0.03206610679626465, 0.03650498390197754, 0.03693962097167969, 0.038350820541381836, 0.03874349594116211]], [[322, 331, 315, 373, 346, 387], [2.384185791015625e-07, 0.07767236232757568, 0.07784914970397949, 0.07870745658874512, 0.07933491468429565, 0.07933491468429565]], [[323, 379, 299, 213, 347, 304], [0.0, 0.04601097106933594, 0.04676765203475952, 0.04953145980834961, 0.050191521644592285, 0.05185931921005249]], [[324, 164, 176, 163, 46, 345], [5.960464477539063e-08, 0.06198537349700928, 0.06390035152435303, 0.06644272804260254, 0.0677499771118164, 0.07166612148284912]], [[325, 42, 334, 123, 184, 227], [2.384185791015625e-07, 0.1901332139968872, 0.19377505779266357, 0.2292109727859497, 0.23054975271224976, 0.2381860613822937]], [[326, 388, 341, 264, 248, 17], [2.384185791015625e-07, 0.05044037103652954, 0.05334681272506714, 0.06420791149139404, 0.06461226940155029, 0.06480830907821655]], [[327, 105, 112, 378, 229, 45], [1.1920928955078125e-07, 0.05802124738693237, 0.05802124738693237, 0.06874489784240723, 0.07055974006652832, 0.07171428203582764]], [[328, 108, 249, 299, 219, 213], [0.0, 0.06590616703033447, 0.0680626630783081, 0.09312856197357178, 0.09489619731903076, 0.09814012050628662]], [[329, 137, 315, 215, 248, 264], [0.0, 0.03967493772506714, 0.05463773012161255, 0.05477309226989746, 0.05577051639556885, 0.05688828229904175]], [[330, 293, 217, 147, 243, 320], [0.0, 0.057213544845581055, 0.07589870691299438, 0.08149898052215576, 0.08586001396179199, 0.09196585416793823]], [[331, 373, 288, 303, 363, 339], [0.0, 0.03210270404815674, 0.04203832149505615, 0.04452788829803467, 0.0456920862197876, 0.048503756523132324]], [[332, 22, 116, 382, 222, 384], [5.960464477539063e-08, 0.06975585222244263, 0.09047341346740723, 0.1030498743057251, 0.10664987564086914, 0.11271607875823975]], [[333, 116, 365, 332, 120, 102], [0.0, 0.07276517152786255, 0.10660481452941895, 0.1320357322692871, 0.13278615474700928, 0.1329137086868286]], [[334, 184, 127, 144, 123, 310], [0.0, 0.1272869110107422, 0.14212852716445923, 0.14426326751708984, 0.1913425326347351, 0.1933962106704712]], [[335, 308, 131, 177, 1, 90], [0.0, 0.06522762775421143, 0.07537657022476196, 0.08400803804397583, 0.0942697525024414, 0.09663796424865723]], [[336, 69, 77, 351, 230, 63], [1.1920928955078125e-07, 0.05019855499267578, 0.05293452739715576, 0.054332852363586426, 0.0582427978515625, 0.05951261520385742]], [[337, 168, 52, 166, 76, 210], [2.384185791015625e-07, 0.055319905281066895, 0.057126522064208984, 0.05814945697784424, 0.05853843688964844, 0.0612410306930542]], [[338, 130, 274, 157, 190, 237], [4.76837158203125e-07, 0.07828080654144287, 0.08334171772003174, 0.09800612926483154, 0.09929805994033813, 0.10116899013519287]], [[339, 233, 303, 331, 351, 288], [0.0, 0.04054689407348633, 0.042714476585388184, 0.048503756523132324, 0.054982781410217285, 0.055851101875305176]], [[340, 181, 125, 78, 280, 197], [0.0, 0.08142566680908203, 0.09489220380783081, 0.0964822769165039, 0.10186576843261719, 0.1096886396408081]], [[341, 388, 209, 326, 248, 257], [0.0, 0.047194480895996094, 0.052691102027893066, 0.05334681272506714, 0.05471837520599365, 0.05492275953292847]], [[342, 132, 188, 282, 164, 151], [0.0, 0.04290473461151123, 0.04290473461151123, 0.04350912570953369, 0.05410408973693848, 0.05540722608566284]], [[343, 71, 229, 45, 378, 12], [0.0, 0.04008209705352783, 0.04128265380859375, 0.044260263442993164, 0.046939074993133545, 0.05131399631500244]], [[344, 359, 224, 366, 95, 211], [0.0, 0.04086506366729736, 0.04802405834197998, 0.04822266101837158, 0.05011516809463501, 0.05083727836608887]], [[345, 164, 176, 313, 46, 8], [0.0, 0.04628211259841919, 0.04675418138504028, 0.048407673835754395, 0.04846423864364624, 0.04954719543457031]], [[387, 346, 297, 315, 264, 248], [2.980232238769531e-07, 2.980232238769531e-07, 0.04432255029678345, 0.04545408487319946, 0.04711806774139404, 0.047833144664764404]], [[347, 289, 360, 304, 379, 323], [1.7881393432617188e-07, 0.041539788246154785, 0.047107577323913574, 0.04742884635925293, 0.048440515995025635, 0.050191521644592285]], [[348, 178, 67, 60, 10, 55], [0.0, 0.045823872089385986, 0.04662448167800903, 0.047116994857788086, 0.049902498722076416, 0.050887346267700195]], [[349, 388, 341, 248, 297, 215], [0.0, 0.052068352699279785, 0.06194567680358887, 0.06292980909347534, 0.06334900856018066, 0.06582224369049072]], [[350, 224, 253, 321, 372, 359], [2.384185791015625e-07, 0.039740920066833496, 0.04149752855300903, 0.04431033134460449, 0.04641515016555786, 0.04891777038574219]], [[351, 303, 157, 140, 69, 283], [5.960464477539063e-08, 0.03783857822418213, 0.037863969802856445, 0.038742244243621826, 0.04005134105682373, 0.04178851842880249]], [[352, 10, 178, 348, 67, 60], [0.0, 0.060358524322509766, 0.061482906341552734, 0.06514978408813477, 0.06976073980331421, 0.07005321979522705]], [[353, 224, 95, 366, 285, 146], [1.1920928955078125e-07, 0.06009876728057861, 0.06254065036773682, 0.06606340408325195, 0.06646668910980225, 0.0669865608215332]], [[354, 276, 38, 207, 130, 153], [1.1920928955078125e-07, 0.05522477626800537, 0.07937604188919067, 0.08175718784332275, 0.0833061933517456, 0.08582174777984619]], [[355, 109, 29, 125, 118, 194], [0.0, 0.11657929420471191, 0.11731171607971191, 0.12449026107788086, 0.1299229860305786, 0.13089263439178467]], [[356, 128, 162, 374, 186, 168], [0.0, 0.08394289016723633, 0.08413445949554443, 0.08752745389938354, 0.08858656883239746, 0.08945125341415405]], [[357, 359, 299, 219, 213, 379], [0.0, 0.060013532638549805, 0.06145179271697998, 0.06561899185180664, 0.06595849990844727, 0.06624698638916016]], [[358, 280, 303, 172, 185, 254], [0.0, 0.0909963846206665, 0.09514296054840088, 0.09590023756027222, 0.09894323348999023, 0.09992170333862305]], [[359, 344, 224, 253, 366, 211], [0.0, 0.04086506366729736, 0.04346853494644165, 0.043941378593444824, 0.04764068126678467, 0.047681212425231934]], [[360, 347, 20, 289, 281, 304], [5.960464477539063e-08, 0.047107577323913574, 0.048667192459106445, 0.053971827030181885, 0.057216763496398926, 0.05878889560699463]], [[361, 379, 284, 289, 323, 304], [0.0, 0.05255246162414551, 0.05539870262145996, 0.05594289302825928, 0.05623650550842285, 0.05740863084793091]], [[362, 98, 191, 236, 369, 64], [0.0, 0.14328312873840332, 0.15711617469787598, 0.16508632898330688, 0.17009973526000977, 0.17091631889343262]], [[363, 351, 303, 172, 288, 331], [0.0, 0.04253339767456055, 0.04371905326843262, 0.04431450366973877, 0.044401586055755615, 0.0456920862197876]], [[364, 180, 109, 191, 159, 153], [0.0, 0.09463024139404297, 0.1346331238746643, 0.14883947372436523, 0.14951008558273315, 0.15180611610412598]], [[365, 105, 112, 229, 45, 343], [0.0, 0.07727980613708496, 0.07727980613708496, 0.08045876026153564, 0.08407634496688843, 0.0856505036354065]], [[366, 224, 211, 95, 253, 213], [0.0, 0.03657233715057373, 0.04077184200286865, 0.04081171751022339, 0.042626142501831055, 0.04421001672744751]], [[367, 191, 353, 357, 122, 383], [0.0, 0.06222623586654663, 0.08190727233886719, 0.095009446144104, 0.09586310386657715, 0.09700959920883179]], [[368, 347, 289, 304, 20, 361], [5.960464477539063e-08, 0.057599425315856934, 0.05887603759765625, 0.06240040063858032, 0.06439077854156494, 0.06465780735015869]], [[369, 82, 2, 210, 13, 311], [0.0, 0.10376942157745361, 0.11329436302185059, 0.11345469951629639, 0.11726236343383789, 0.11798977851867676]], [[370, 228, 259, 128, 220, 323], [0.0, 0.07302343845367432, 0.10194361209869385, 0.10335290431976318, 0.1067693829536438, 0.112862229347229]], [[371, 331, 263, 385, 150, 260], [0.0, 0.08280110359191895, 0.08405357599258423, 0.08771222829818726, 0.08802986145019531, 0.0894361138343811]], [[372, 321, 313, 151, 176, 224], [0.0, 0.03693962097167969, 0.039354801177978516, 0.03986310958862305, 0.04081320762634277, 0.04128897190093994]], [[373, 331, 288, 25, 363, 69], [0.0, 0.03210270404815674, 0.04745805263519287, 0.049719810485839844, 0.05109107494354248, 0.05379456281661987]], [[374, 139, 231, 281, 304, 13], [0.0, 0.051259756088256836, 0.05210977792739868, 0.052222251892089844, 0.052236199378967285, 0.05283236503601074]], [[375, 76, 84, 30, 309, 210], [2.980232238769531e-07, 0.04639464616775513, 0.05475902557373047, 0.05500936508178711, 0.05542290210723877, 0.058007240295410156]], [[376, 229, 378, 45, 71, 92], [1.1920928955078125e-07, 0.05503499507904053, 0.05789291858673096, 0.0647956132888794, 0.0661664605140686, 0.06734025478363037]], [[377, 202, 163, 151, 176, 313], [0.0, 0.034522414207458496, 0.0456504225730896, 0.05094647407531738, 0.052927613258361816, 0.05370604991912842]], [[378, 229, 154, 96, 45, 71], [0.0, 0.027566850185394287, 0.0352669358253479, 0.03636223077774048, 0.037140846252441406, 0.03851675987243652]], [[379, 213, 304, 323, 289, 347], [0.0, 0.03827625513076782, 0.04258298873901367, 0.04601097106933594, 0.04618537425994873, 0.048440515995025635]], [[380, 262, 305, 100, 36, 226], [1.1920928955078125e-07, 0.06650638580322266, 0.08381253480911255, 0.09024930000305176, 0.09478932619094849, 0.09635621309280396]], [[381, 127, 118, 167, 177, 266], [1.1920928955078125e-07, 0.10467958450317383, 0.11471152305603027, 0.12158674001693726, 0.1332908272743225, 0.13792860507965088]], [[382, 208, 332, 24, 22, 41], [0.0, 0.09446132183074951, 0.1030498743057251, 0.10537409782409668, 0.10602927207946777, 0.10604262351989746]], [[383, 18, 49, 53, 143, 353], [0.0, 0.07739043235778809, 0.08003437519073486, 0.08219456672668457, 0.08422672748565674, 0.08482646942138672]], [[384, 386, 292, 16, 171, 305], [5.960464477539063e-08, 0.04579782485961914, 0.05793106555938721, 0.06560969352722168, 0.06700634956359863, 0.06717205047607422]], [[385, 85, 124, 150, 371, 250], [1.7881393432617188e-07, 0.060361623764038086, 0.07818859815597534, 0.07880616188049316, 0.08771222829818726, 0.0902637243270874]], [[386, 292, 384, 305, 99, 232], [0.0, 0.042023658752441406, 0.04579782485961914, 0.04854476451873779, 0.05754208564758301, 0.06365704536437988]], [[387, 346, 297, 315, 264, 248], [2.980232238769531e-07, 2.980232238769531e-07, 0.04432255029678345, 0.04545408487319946, 0.04711806774139404, 0.047833144664764404]], [[388, 248, 264, 215, 297, 341], [0.0, 0.037600159645080566, 0.03965330123901367, 0.04084932804107666, 0.04194521903991699, 0.047194480895996094]], [[389, 164, 247, 151, 46, 163], [1.7881393432617188e-07, 0.042870163917541504, 0.04697549343109131, 0.05527430772781372, 0.057344913482666016, 0.05813324451446533]]]
pred = [2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,1,2,2,2,1,1,1,1,1,1,1,2,1
,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
,2,2,2,2,2,2,2,2,3,0,0,3,0,3,3,3,3,3,3,3,3,3,0,3,3,3,3,3,3,3,3,3,3,3,3,3,3
,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3]
title = "Nearest neighbors on Model 3 : 3D CNN 2048"
print("<h3>"+title+"</h3>"+"<br/><br/>")
print("<table style=\"width:100%\">")
print("<td>")
print("<b>Original</b>")
print("</td>")
print("<td>")
print("<b>Nearest neighbors</b>")
print("</td>")
for i in range(0, 390):
print("</tr>")
typ = []
print("<tr id=\"a"+str(i)+"\">")
for j in range(0, 5):
print("<td>")
print("<figure>")
print("<a href=\"#a"+str(arr[i][0][j])+"\">")
print("<img src=\"./"+ str(arr[i][0][j]+1)+".png\" alt='missing' >")
print("</a>")
print("<figcaption>")
if arr[i][0][j] < 97 :
print("Ancient, ")
elif arr[i][0][j] < 131:
print("Asian,")
elif arr[i][0][j] < 341:
print("Medieval, ")
else:
print("Modern,")
if pred[arr[i][0][j]] == 0:
print("Ancient")
if pred[arr[i][0][j]] == 1:
print("Asian")
if pred[arr[i][0][j]] == 2:
print("Medieval")
if pred[arr[i][0][j]] == 3:
print("Modern")
# if pred[i] == 0 :
# print("Ancient, Ancient")
# elif pred[i] == 1:
# print("Asian, Asian")
# elif pred[i] == 2:
# print("Medieval, Medieval")
# else:
# print("Modern, Modern")
if j!=0:
print(", Distance: "+str(arr[i][1][j]))
print("</figcaption>")
print("</figure>")
print("</td>")
print("</tr>")
print("</table>")
print("</body></html>") | 0 | 0 | 0 |
14d30ee0c043ae6980a427f35c470ba92110bfd2 | 1,446 | py | Python | past-competitions/2018/src/brett-python/Prob07.py | gideontong/CodeQuest | 8da4fe367221094cdf058402a4719ca0dc4bdaac | [
"MIT"
] | 2 | 2021-05-23T01:21:59.000Z | 2022-02-17T23:12:48.000Z | past-competitions/2018/src/brett-python/Prob07.py | gideontong/CodeQuest | 8da4fe367221094cdf058402a4719ca0dc4bdaac | [
"MIT"
] | null | null | null | past-competitions/2018/src/brett-python/Prob07.py | gideontong/CodeQuest | 8da4fe367221094cdf058402a4719ca0dc4bdaac | [
"MIT"
] | null | null | null | # Open the input file
with open("Prob07.in.txt", "rt") as inputFile:
# Read the number of test cases (trim out the newline)
cases = int(inputFile.readline().replace("\n", ""))
# For each test case
for caseNum in range(cases):
# Read the number of words
wordCount = int(inputFile.readline().replace("\n", ""))
nonPalindromes = []
# For each word
for j in range(wordCount):
word = inputFile.readline().replace("\n", "")
# compare each pair of letters, moving inward
for k in range(len(word) // 2):
if word[k].upper() != word[-(k + 1)].upper():
# if any are unequal, note the index of the word
nonPalindromes.append(j + 1)
break
# end for k
# end for j
if len(nonPalindromes) == 0:
# all were palindromes
print("True")
else:
# at least one wasn't
# specify end to suppress the automatic newline
print("False - ", end="")
first = True
# print each index
for index in nonPalindromes:
if not first:
# add commas as needed
print(", ", end="")
first = False
print(str(index), end="")
# now print a newline
print("")
| 36.15 | 68 | 0.478562 | # Open the input file
with open("Prob07.in.txt", "rt") as inputFile:
# Read the number of test cases (trim out the newline)
cases = int(inputFile.readline().replace("\n", ""))
# For each test case
for caseNum in range(cases):
# Read the number of words
wordCount = int(inputFile.readline().replace("\n", ""))
nonPalindromes = []
# For each word
for j in range(wordCount):
word = inputFile.readline().replace("\n", "")
# compare each pair of letters, moving inward
for k in range(len(word) // 2):
if word[k].upper() != word[-(k + 1)].upper():
# if any are unequal, note the index of the word
nonPalindromes.append(j + 1)
break
# end for k
# end for j
if len(nonPalindromes) == 0:
# all were palindromes
print("True")
else:
# at least one wasn't
# specify end to suppress the automatic newline
print("False - ", end="")
first = True
# print each index
for index in nonPalindromes:
if not first:
# add commas as needed
print(", ", end="")
first = False
print(str(index), end="")
# now print a newline
print("")
| 0 | 0 | 0 |
8e677461788a883eb660d8987193edb44d9015eb | 5,801 | py | Python | see/context/resources/test/vbox_test.py | security-geeks/see | 900472b8b3e45fbb414f3beba4df48e86eaa4b3a | [
"Apache-2.0"
] | 851 | 2015-10-28T09:32:05.000Z | 2022-03-31T02:32:28.000Z | see/context/resources/test/vbox_test.py | security-geeks/see | 900472b8b3e45fbb414f3beba4df48e86eaa4b3a | [
"Apache-2.0"
] | 29 | 2015-12-21T15:43:28.000Z | 2021-05-16T10:57:09.000Z | see/context/resources/test/vbox_test.py | security-geeks/see | 900472b8b3e45fbb414f3beba4df48e86eaa4b3a | [
"Apache-2.0"
] | 110 | 2015-10-26T13:05:18.000Z | 2021-11-17T18:00:17.000Z | import sys
import mock
import libvirt
import difflib
import unittest
from see.context.resources import vbox
def compare(text1, text2):
"""Utility function for comparing text and returining differences."""
diff = difflib.ndiff(text1.splitlines(True), text2.splitlines(True))
return '\n' + '\n'.join(diff)
| 44.968992 | 109 | 0.620927 | import sys
import mock
import libvirt
import difflib
import unittest
from see.context.resources import vbox
def compare(text1, text2):
"""Utility function for comparing text and returining differences."""
diff = difflib.ndiff(text1.splitlines(True), text2.splitlines(True))
return '\n' + '\n'.join(diff)
class DomainXMLTest(unittest.TestCase):
def test_domain_xml(self):
"""VBOX Domain XML."""
config = """<domain></domain>"""
expected = """<domain><name>foo</name><uuid>foo</uuid><devices><disk device="disk" type="file">""" +\
"""<source file="/diskpath.vdi" /></disk></devices></domain>"""
results = vbox.domain_xml('foo', config, '/diskpath.vdi')
self.assertEqual(results, expected, compare(results, expected))
def test_domain_xml_modifies(self):
"""VBOX Fields are modified if existing."""
config = """<domain><name>bar</name><uuid>bar</uuid><devices><disk device="disk" type="file">""" +\
"""<source file="/bar"/></disk></devices></domain>"""
expected = """<domain><name>foo</name><uuid>foo</uuid><devices><disk device="disk" type="file">""" +\
"""<source file="/diskpath.vdi" /></disk></devices></domain>"""
results = vbox.domain_xml('foo', config, '/diskpath.vdi')
self.assertEqual(results, expected, compare(results, expected))
class DomainCreateTest(unittest.TestCase):
def test_create(self):
"""VBOX Create domain."""
xml = """<domain></domain>"""
expected = """<domain><name>foo</name><uuid>foo</uuid><devices><disk device="disk" type="file">""" +\
"""<source file="/diskpath.vdi" /></disk></devices></domain>"""
hypervisor = mock.Mock()
hypervisor.listNetworks.return_value = []
with mock.patch('see.context.resources.vbox.open', mock.mock_open(read_data=xml), create=True):
vbox.domain_create(hypervisor, 'foo', {'configuration': '/foo'}, '/diskpath.vdi')
results = hypervisor.defineXML.call_args_list[0][0][0]
self.assertEqual(results, expected, compare(results, expected))
class DomainDeleteTest(unittest.TestCase):
def test_delete_destroy(self):
"""VBOX Domain is destroyed if active."""
domain = mock.Mock()
logger = mock.Mock()
domain.isActive.return_value = True
vbox.domain_delete(domain, logger)
self.assertTrue(domain.destroy.called)
def test_delete_destroy_error(self):
"""VBOX Domain destroy raises error."""
domain = mock.Mock()
logger = mock.Mock()
domain.isActive.return_value = True
domain.destroy.side_effect = libvirt.libvirtError("BOOM")
vbox.domain_delete(domain, logger)
self.assertTrue(domain.undefine.called)
def test_delete_undefine(self):
"""VBOX Domain is undefined."""
domain = mock.Mock()
logger = mock.Mock()
domain.isActive.return_value = False
vbox.domain_delete(domain, logger)
self.assertTrue(domain.undefine.called)
def test_delete_undefine_snapshots(self):
"""VBOX Domain undefine with snapshots metadata."""
domain = mock.Mock()
logger = mock.Mock()
domain.isActive.return_value = False
domain.undefine.side_effect = libvirt.libvirtError("BOOM")
vbox.domain_delete(domain, logger)
domain.undefineFlags.assert_called_with(libvirt.VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA)
class ResourcesTest(unittest.TestCase):
if sys.version_info.major >= 3:
builtin_module = 'builtins'
else:
builtin_module = '__builtin__'
@mock.patch('see.context.resources.vbox.libvirt')
@mock.patch('see.context.resources.vbox.domain_create')
@mock.patch('%s.open' % builtin_module, new_callable=mock.mock_open)
def test_allocate_default(self, _, create_mock, libvirt_mock):
"""VBOX Resources allocater with no extra value."""
resources = vbox.VBoxResources('foo',
{'domain': 'bar',
'disk': {'image': '/foo/bar'}})
resources.allocate()
libvirt_mock.open.assert_called_with('vbox:///session')
create_mock.assert_called_with(resources.hypervisor, 'foo',
'bar', '/foo/bar')
@mock.patch('see.context.resources.vbox.libvirt')
@mock.patch('see.context.resources.vbox.domain_create')
@mock.patch('%s.open' % builtin_module, new_callable=mock.mock_open)
def test_allocate_hypervisor(self, _, create_mock, libvirt_mock):
"""VBOX Resources allocater with hypervisor."""
resources = vbox.VBoxResources('foo', {'domain': 'bar',
'hypervisor': 'baz',
'disk': {'image': '/foo/bar'}})
resources.allocate()
libvirt_mock.open.assert_called_with('baz')
create_mock.assert_called_with(resources.hypervisor, 'foo',
'bar', '/foo/bar')
@mock.patch('see.context.resources.vbox.libvirt')
@mock.patch('see.context.resources.vbox.domain_create')
@mock.patch('see.context.resources.vbox.domain_delete')
def test_deallocate(self, delete_mock, create_mock, libvirt_mock):
"""VBOX Resources are released on deallocate."""
resources = vbox.VBoxResources('foo', {'domain': 'bar',
'disk': {'image': '/foo/bar'}})
resources._domain = mock.Mock()
resources._hypervisor = mock.Mock()
resources.deallocate()
delete_mock.assert_called_with(resources.domain, mock.ANY)
self.assertTrue(resources._hypervisor.close.called)
| 0 | 5,386 | 92 |
9888e98a07ee556543a1ef4aa21ba395358d4ab3 | 9,658 | py | Python | D3G/main.py | uber-research/D3G | 475a1f2491d32da6369846361d77e372908fd1df | [
"Apache-2.0"
] | 25 | 2020-02-25T14:30:11.000Z | 2021-07-05T18:42:32.000Z | D3G/main.py | uber-research/D3G | 475a1f2491d32da6369846361d77e372908fd1df | [
"Apache-2.0"
] | null | null | null | D3G/main.py | uber-research/D3G | 475a1f2491d32da6369846361d77e372908fd1df | [
"Apache-2.0"
] | 5 | 2020-03-17T12:59:43.000Z | 2020-10-06T20:34:15.000Z | """ Modifications Copyright (c) 2019 Uber Technologies, Inc. """
import numpy as np
import cv2
import torch
import gym
import argparse
import os
import utils
import TD3
import OurDDPG
import D3G
import Standard_QSS
# Runs policy for X episodes and returns average reward
# A fixed seed is used for the eval environment
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--policy", default="TD3") # Policy name (TD3, DDPG or OurDDPG)
parser.add_argument("--env", default="HalfCheetah-v2") # OpenAI gym environment name
parser.add_argument("--save_dir", default=".") # OpenAI gym environment name
parser.add_argument("--seed", default=0, type=int) # Sets Gym, PyTorch and Numpy seeds
parser.add_argument("--start_timesteps", default=1e4, type=int) # Time steps initial random policy is used
parser.add_argument("--train_vae", default=1e4, type=int) # Time steps for training vae
parser.add_argument("--eval_freq", default=5e3, type=int) # How often (time steps) we evaluate
parser.add_argument("--max_timesteps", default=1e6, type=int) # Max time steps to run environment
parser.add_argument("--expl_noise", default=0.1, type=float) # Std of Gaussian exploration noise
parser.add_argument("--batch_size", default=256, type=int) # Batch size for both actor and critic
parser.add_argument("--discount", default=0.99) # Discount factor
parser.add_argument("--tau", default=0.005) # Target network update rate
parser.add_argument("--policy_noise", default=0.2) # Noise added to target policy during critic update
parser.add_argument("--noise_clip", default=0.5) # Range to clip target policy noise
parser.add_argument("--policy_freq", default=2, type=int) # Frequency of delayed policy updates
parser.add_argument("--save_model", action="store_true") # Save model and optimizer parameters
parser.add_argument("--visualize", action="store_true") # Visualize model predictions
parser.add_argument("--is_discrete", action="store_true") # Save model and optimizer parameters
parser.add_argument("--load_model", default="") # Model load file name, "" doesn't load, "default" uses file_name
args = parser.parse_args()
if args.load_model:
file_name = f"{args.policy}_{args.env}_{args.seed}"
else:
file_name = f"{args.policy}_{args.env}_{args.seed}"
print("---------------------------------------")
print(f"Policy: {args.policy}, Env: {args.env}, Seed: {args.seed}")
print("---------------------------------------")
results_dir = os.path.join(args.save_dir, "results")
models_dir = os.path.join(args.save_dir, "models")
if not os.path.exists(results_dir):
os.makedirs(results_dir)
if args.save_model and not os.path.exists(models_dir):
os.makedirs(models_dir)
env = make_env(args.env)
# Set seeds
env.seed(args.seed)
torch.manual_seed(args.seed)
np.random.seed(args.seed)
state_dim = env.observation_space.shape[0]
if args.is_discrete:
action_dim = env.action_space.n
max_action = float(action_dim)
else:
action_dim = env.action_space.shape[0]
max_action = float(env.action_space.high[0])
kwargs = {
"state_dim": state_dim,
"action_dim": action_dim,
"max_action": max_action,
"discount": args.discount,
"is_discrete": args.is_discrete,
"tau": args.tau,
}
# Initialize policy
if args.policy == "TD3":
# Target policy smoothing is scaled wrt the action scale
kwargs["policy_noise"] = args.policy_noise * max_action
kwargs["noise_clip"] = args.noise_clip * max_action
kwargs["policy_freq"] = args.policy_freq
policy = TD3.TD3(**kwargs)
elif args.policy == "OurDDPG":
policy = OurDDPG.DDPG(**kwargs)
elif args.policy == "D3G":
kwargs["policy_freq"] = args.policy_freq
policy = D3G.D3G(**kwargs)
elif args.policy == "Standard_QSS":
kwargs["policy_freq"] = args.policy_freq
policy = Standard_QSS.Standard_QSS(**kwargs)
if args.load_model != "":
policy_file = file_name if args.load_model == "default" else args.load_model
policy.load(f"{models_dir}/{policy_file}")
replay_buffer = utils.ReplayBuffer(state_dim, action_dim, args.is_discrete)
# Evaluate untrained policy
evaluations = [eval_policy(policy, args.env, args.seed)]
state, done = env.reset(), False
episode_reward = 0
episode_timesteps = 0
episode_num = 0
for t in range(int(args.max_timesteps)):
episode_timesteps += 1
# Select action randomly or according to policy
if t < args.start_timesteps:
action = env.action_space.sample()
elif args.is_discrete:
if np.random.uniform(0,1) < .1:
action = env.action_space.sample()
else:
action = policy.select_action(np.array(state))
else:
action = (
policy.select_action(np.array(state))
+ np.random.normal(0, max_action * args.expl_noise, size=action_dim)
).clip(-max_action, max_action)
# Perform action
next_state, reward, done, _ = env.step(action)
done_bool = float(done) if episode_timesteps < env._max_episode_steps else 0
# Store data in replay buffer
replay_buffer.add(state, action, next_state, reward, done_bool)
state = next_state
episode_reward += reward
if t >= args.start_timesteps:
policy.train(replay_buffer, args.batch_size)
if done:
# +1 to account for 0 indexing. +0 on ep_timesteps since it will increment +1 even if done=True
print(f"Total T: {t+1} Episode Num: {episode_num+1} Episode T: {episode_timesteps} Reward: {episode_reward:.3f}")
# Reset environment
state, done = env.reset(), False
episode_reward = 0
episode_timesteps = 0
episode_num += 1
# Evaluate episode
if (t + 1) % args.eval_freq == 0:
evaluation = eval_policy(policy, args.env, args.seed)
evaluations.append(evaluation)
np.save(f"{results_dir}/{file_name}", evaluations)
if args.visualize:
visualize(policy, args.env)
elif args.save_model: policy.save(f"{models_dir}/{file_name}")
| 41.273504 | 171 | 0.565231 | """ Modifications Copyright (c) 2019 Uber Technologies, Inc. """
import numpy as np
import cv2
import torch
import gym
import argparse
import os
import utils
import TD3
import OurDDPG
import D3G
import Standard_QSS
def done_condition(env_name, state):
if 'Reacher' in env_name:
return (np.abs(np.linalg.norm(state[-3:])) > .02)
return (np.abs(state[1]) <= .2)
def set_state(eval_env, state):
if 'Reacher' in eval_env.unwrapped.spec.id:
adjust = (state[0:2] < 0) * np.pi
eval_env.set_state(np.concatenate([np.arctan(state[2:4]/state[0:2]) + adjust, eval_env.get_body_com("target")[:2]]), np.concatenate([state[6:8], np.array([0,0])]))
state[4:6] = eval_env.get_body_com("target")[:2] # target position
state[-3:] = eval_env.get_body_com("fingertip") - eval_env.get_body_com("target") # fingertip - target
else:
eval_env.set_state(state[0:2], state[2:4])
return state
def visualize(policy, env_name):
eval_env = gym.make(env_name)
state = eval_env.reset()
total_reward = 0
for i in range(200):
done = not (np.isfinite(state).all() and done_condition(env_name, state))
if done:
print(f"Reward {total_reward}")
return total_reward
else:
total_reward += 1
print(i)
img = cv2.cvtColor(eval_env.render("rgb_array"), cv2.COLOR_BGR2RGB)
cv2.imshow("Model prediction", img)
cv2.waitKey(1)
state = np.squeeze(policy.select_goal(state))
try:
state = set_state(eval_env, state)
time.sleep(.01)
except:
pass
return total_reward
def make_env(env_name):
return gym.make(env_name)
# Runs policy for X episodes and returns average reward
# A fixed seed is used for the eval environment
def eval_policy(policy, env_name, seed, eval_episodes=10):
eval_env = make_env(env_name)
eval_env.seed(seed + 100)
avg_reward = 0.
for _ in range(eval_episodes):
state, done = eval_env.reset(), False
while not done:
action = policy.select_action(np.array(state))
state, reward, done, _ = eval_env.step(action)
avg_reward += reward
avg_reward /= eval_episodes
print("---------------------------------------")
print(f"Evaluation over {eval_episodes} episodes: {avg_reward:.3f}")
print("---------------------------------------")
return avg_reward
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--policy", default="TD3") # Policy name (TD3, DDPG or OurDDPG)
parser.add_argument("--env", default="HalfCheetah-v2") # OpenAI gym environment name
parser.add_argument("--save_dir", default=".") # OpenAI gym environment name
parser.add_argument("--seed", default=0, type=int) # Sets Gym, PyTorch and Numpy seeds
parser.add_argument("--start_timesteps", default=1e4, type=int) # Time steps initial random policy is used
parser.add_argument("--train_vae", default=1e4, type=int) # Time steps for training vae
parser.add_argument("--eval_freq", default=5e3, type=int) # How often (time steps) we evaluate
parser.add_argument("--max_timesteps", default=1e6, type=int) # Max time steps to run environment
parser.add_argument("--expl_noise", default=0.1, type=float) # Std of Gaussian exploration noise
parser.add_argument("--batch_size", default=256, type=int) # Batch size for both actor and critic
parser.add_argument("--discount", default=0.99) # Discount factor
parser.add_argument("--tau", default=0.005) # Target network update rate
parser.add_argument("--policy_noise", default=0.2) # Noise added to target policy during critic update
parser.add_argument("--noise_clip", default=0.5) # Range to clip target policy noise
parser.add_argument("--policy_freq", default=2, type=int) # Frequency of delayed policy updates
parser.add_argument("--save_model", action="store_true") # Save model and optimizer parameters
parser.add_argument("--visualize", action="store_true") # Visualize model predictions
parser.add_argument("--is_discrete", action="store_true") # Save model and optimizer parameters
parser.add_argument("--load_model", default="") # Model load file name, "" doesn't load, "default" uses file_name
args = parser.parse_args()
if args.load_model:
file_name = f"{args.policy}_{args.env}_{args.seed}"
else:
file_name = f"{args.policy}_{args.env}_{args.seed}"
print("---------------------------------------")
print(f"Policy: {args.policy}, Env: {args.env}, Seed: {args.seed}")
print("---------------------------------------")
results_dir = os.path.join(args.save_dir, "results")
models_dir = os.path.join(args.save_dir, "models")
if not os.path.exists(results_dir):
os.makedirs(results_dir)
if args.save_model and not os.path.exists(models_dir):
os.makedirs(models_dir)
env = make_env(args.env)
# Set seeds
env.seed(args.seed)
torch.manual_seed(args.seed)
np.random.seed(args.seed)
state_dim = env.observation_space.shape[0]
if args.is_discrete:
action_dim = env.action_space.n
max_action = float(action_dim)
else:
action_dim = env.action_space.shape[0]
max_action = float(env.action_space.high[0])
kwargs = {
"state_dim": state_dim,
"action_dim": action_dim,
"max_action": max_action,
"discount": args.discount,
"is_discrete": args.is_discrete,
"tau": args.tau,
}
# Initialize policy
if args.policy == "TD3":
# Target policy smoothing is scaled wrt the action scale
kwargs["policy_noise"] = args.policy_noise * max_action
kwargs["noise_clip"] = args.noise_clip * max_action
kwargs["policy_freq"] = args.policy_freq
policy = TD3.TD3(**kwargs)
elif args.policy == "OurDDPG":
policy = OurDDPG.DDPG(**kwargs)
elif args.policy == "D3G":
kwargs["policy_freq"] = args.policy_freq
policy = D3G.D3G(**kwargs)
elif args.policy == "Standard_QSS":
kwargs["policy_freq"] = args.policy_freq
policy = Standard_QSS.Standard_QSS(**kwargs)
if args.load_model != "":
policy_file = file_name if args.load_model == "default" else args.load_model
policy.load(f"{models_dir}/{policy_file}")
replay_buffer = utils.ReplayBuffer(state_dim, action_dim, args.is_discrete)
# Evaluate untrained policy
evaluations = [eval_policy(policy, args.env, args.seed)]
state, done = env.reset(), False
episode_reward = 0
episode_timesteps = 0
episode_num = 0
for t in range(int(args.max_timesteps)):
episode_timesteps += 1
# Select action randomly or according to policy
if t < args.start_timesteps:
action = env.action_space.sample()
elif args.is_discrete:
if np.random.uniform(0,1) < .1:
action = env.action_space.sample()
else:
action = policy.select_action(np.array(state))
else:
action = (
policy.select_action(np.array(state))
+ np.random.normal(0, max_action * args.expl_noise, size=action_dim)
).clip(-max_action, max_action)
# Perform action
next_state, reward, done, _ = env.step(action)
done_bool = float(done) if episode_timesteps < env._max_episode_steps else 0
# Store data in replay buffer
replay_buffer.add(state, action, next_state, reward, done_bool)
state = next_state
episode_reward += reward
if t >= args.start_timesteps:
policy.train(replay_buffer, args.batch_size)
if done:
# +1 to account for 0 indexing. +0 on ep_timesteps since it will increment +1 even if done=True
print(f"Total T: {t+1} Episode Num: {episode_num+1} Episode T: {episode_timesteps} Reward: {episode_reward:.3f}")
# Reset environment
state, done = env.reset(), False
episode_reward = 0
episode_timesteps = 0
episode_num += 1
# Evaluate episode
if (t + 1) % args.eval_freq == 0:
evaluation = eval_policy(policy, args.env, args.seed)
evaluations.append(evaluation)
np.save(f"{results_dir}/{file_name}", evaluations)
if args.visualize:
visualize(policy, args.env)
elif args.save_model: policy.save(f"{models_dir}/{file_name}")
| 2,054 | 0 | 114 |
3317dfd8291d9c905fca53c341d286e90afbe3ff | 342 | py | Python | pythonProject/03al88Criar_Ler_escrever_apagar_arquivo/ler_modo_try.py | D-Wolter/PycharmProjects | c8d6144efa30261bff72a3e0414a0d80f6730f9b | [
"MIT"
] | null | null | null | pythonProject/03al88Criar_Ler_escrever_apagar_arquivo/ler_modo_try.py | D-Wolter/PycharmProjects | c8d6144efa30261bff72a3e0414a0d80f6730f9b | [
"MIT"
] | null | null | null | pythonProject/03al88Criar_Ler_escrever_apagar_arquivo/ler_modo_try.py | D-Wolter/PycharmProjects | c8d6144efa30261bff72a3e0414a0d80f6730f9b | [
"MIT"
] | null | null | null | #https://docs.python.org/3/libraty/functions.html#open
#costumase usar o bloco try para abrir arquivos
try:
file = open('abc.txt', 'w+')
file.write('Linha')# o arquivo esta vazio entao escrevemos
file.seek(0)
print(file.read())
finally: #para garantir que o arquivo sera fechado se holver erro
file.close()
| 28.5 | 78 | 0.672515 | #https://docs.python.org/3/libraty/functions.html#open
#costumase usar o bloco try para abrir arquivos
try:
file = open('abc.txt', 'w+')
file.write('Linha')# o arquivo esta vazio entao escrevemos
file.seek(0)
print(file.read())
finally: #para garantir que o arquivo sera fechado se holver erro
file.close()
| 0 | 0 | 0 |
a37330d8bd84ef702161d82dfa4cbf7705b5dc92 | 3,406 | py | Python | code.py | Namrata-NM/olympics-data-analysis | 7490f33f9335077532f652709fce0301fa3ca67c | [
"MIT"
] | null | null | null | code.py | Namrata-NM/olympics-data-analysis | 7490f33f9335077532f652709fce0301fa3ca67c | [
"MIT"
] | null | null | null | code.py | Namrata-NM/olympics-data-analysis | 7490f33f9335077532f652709fce0301fa3ca67c | [
"MIT"
] | null | null | null | # --------------
#Importing header files
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#Path of the file is stored in the variable path
#Code starts here
# Data Loading
data=pd.read_csv(path)
data.rename(columns={'Total':'Total_Medals'},inplace=True)
data.head(10)
# Summer or Winter
data['Better_Event'] = np.where(data['Total_Summer'] > data['Total_Winter'] , 'Summer', 'Winter')
data['Better_Event'] = np.where(data['Total_Summer'] == data['Total_Winter'] , 'Both',data['Better_Event'])
better_event=data['Better_Event'].value_counts().index.values[0]
# Top 10
top_countries=data[['Country_Name','Total_Summer', 'Total_Winter','Total_Medals']]
top_countries=top_countries[:-1]
print(top_countries.head())
# Plotting top 10
# Top Performing Countries
top_10_summer=top_ten(top_countries,'Total_Summer')
print("Top 10 Summer:\n",top_10_summer, "\n")
top_10_winter=top_ten(top_countries,'Total_Winter')
print("Top 10 Winter:\n",top_10_winter, "\n")
top_10=top_ten(top_countries,'Total_Medals')
print("Top 10:\n",top_10, "\n")
# Best in the world
common=list(set(top_10_summer) & set(top_10_winter) & set(top_10))
print('Common Countries :\n', common, "\n")
# Plotting the best
summer_df= data[data['Country_Name'].isin(top_10_summer)]
winter_df=data[data['Country_Name'].isin(top_10_winter)]
top_df=data[data['Country_Name'].isin(top_10)]
plt.figure(figsize=(20, 6))
plt.bar(summer_df['Country_Name'], summer_df['Total_Summer'])
plt.xlabel('Countries')
plt.ylabel('Total')
plt.title('Top Summer')
plt.figure(figsize=(20, 6))
plt.bar(winter_df['Country_Name'], winter_df['Total_Winter'])
plt.xlabel('Countries')
plt.ylabel('Total')
plt.title('Top Winter')
plt.figure(figsize=(20, 6))
plt.bar(top_df['Country_Name'], top_df['Total_Medals'])
plt.xlabel('Countries')
plt.ylabel('Total')
plt.title('Top overall')
#Top Performing Countries
summer_df['Golden_Ratio']=summer_df['Gold_Summer']/summer_df['Total_Summer']
summer_max_ratio=max(summer_df['Golden_Ratio'])
summer_country_gold=summer_df.loc[summer_df['Golden_Ratio'].idxmax(),'Country_Name']
winter_df['Golden_Ratio']=winter_df['Gold_Winter']/winter_df['Total_Winter']
winter_max_ratio=max(winter_df['Golden_Ratio'])
winter_country_gold=winter_df.loc[winter_df['Golden_Ratio'].idxmax(),'Country_Name']
top_df['Golden_Ratio']=top_df['Gold_Total']/top_df['Total_Medals']
top_max_ratio=max(top_df['Golden_Ratio'])
top_country_gold=top_df.loc[top_df['Golden_Ratio'].idxmax(),'Country_Name']
#Best In World
data_1=data[:-1]
data_1['Total_Points']= data_1['Gold_Total']*3 + data_1['Silver_Total']*2 + data_1['Bronze_Total']*1
most_points=max(data_1['Total_Points'])
best_country=data_1.loc[data_1['Total_Points'].idxmax(),'Country_Name']
#Plot the best
best=data[data['Country_Name']==best_country]
best.reset_index(drop = True, inplace = True)
best=best[['Gold_Total','Silver_Total','Bronze_Total']]
best.plot.bar(stacked=True)
plt.xlabel('United States')
plt.ylabel('Medals Tally')
plt.xticks(rotation=45)
l=plt.legend()
l.get_texts()[0].set_text('Gold_Total :' + str(best['Gold_Total'].values))
l.get_texts()[1].set_text('Silver_Total :' + str(best['Silver_Total'].values))
l.get_texts()[2].set_text('Bronze_Total :' + str(best['Bronze_Total'].values))
| 29.617391 | 107 | 0.745449 | # --------------
#Importing header files
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#Path of the file is stored in the variable path
#Code starts here
# Data Loading
data=pd.read_csv(path)
data.rename(columns={'Total':'Total_Medals'},inplace=True)
data.head(10)
# Summer or Winter
data['Better_Event'] = np.where(data['Total_Summer'] > data['Total_Winter'] , 'Summer', 'Winter')
data['Better_Event'] = np.where(data['Total_Summer'] == data['Total_Winter'] , 'Both',data['Better_Event'])
better_event=data['Better_Event'].value_counts().index.values[0]
# Top 10
top_countries=data[['Country_Name','Total_Summer', 'Total_Winter','Total_Medals']]
top_countries=top_countries[:-1]
print(top_countries.head())
# Plotting top 10
def top_ten(df,column):
country_list=[]
top=df.nlargest(10,column)
country_list= list(top['Country_Name'])
return country_list
# Top Performing Countries
top_10_summer=top_ten(top_countries,'Total_Summer')
print("Top 10 Summer:\n",top_10_summer, "\n")
top_10_winter=top_ten(top_countries,'Total_Winter')
print("Top 10 Winter:\n",top_10_winter, "\n")
top_10=top_ten(top_countries,'Total_Medals')
print("Top 10:\n",top_10, "\n")
# Best in the world
common=list(set(top_10_summer) & set(top_10_winter) & set(top_10))
print('Common Countries :\n', common, "\n")
# Plotting the best
summer_df= data[data['Country_Name'].isin(top_10_summer)]
winter_df=data[data['Country_Name'].isin(top_10_winter)]
top_df=data[data['Country_Name'].isin(top_10)]
plt.figure(figsize=(20, 6))
plt.bar(summer_df['Country_Name'], summer_df['Total_Summer'])
plt.xlabel('Countries')
plt.ylabel('Total')
plt.title('Top Summer')
plt.figure(figsize=(20, 6))
plt.bar(winter_df['Country_Name'], winter_df['Total_Winter'])
plt.xlabel('Countries')
plt.ylabel('Total')
plt.title('Top Winter')
plt.figure(figsize=(20, 6))
plt.bar(top_df['Country_Name'], top_df['Total_Medals'])
plt.xlabel('Countries')
plt.ylabel('Total')
plt.title('Top overall')
#Top Performing Countries
summer_df['Golden_Ratio']=summer_df['Gold_Summer']/summer_df['Total_Summer']
summer_max_ratio=max(summer_df['Golden_Ratio'])
summer_country_gold=summer_df.loc[summer_df['Golden_Ratio'].idxmax(),'Country_Name']
winter_df['Golden_Ratio']=winter_df['Gold_Winter']/winter_df['Total_Winter']
winter_max_ratio=max(winter_df['Golden_Ratio'])
winter_country_gold=winter_df.loc[winter_df['Golden_Ratio'].idxmax(),'Country_Name']
top_df['Golden_Ratio']=top_df['Gold_Total']/top_df['Total_Medals']
top_max_ratio=max(top_df['Golden_Ratio'])
top_country_gold=top_df.loc[top_df['Golden_Ratio'].idxmax(),'Country_Name']
#Best In World
data_1=data[:-1]
data_1['Total_Points']= data_1['Gold_Total']*3 + data_1['Silver_Total']*2 + data_1['Bronze_Total']*1
most_points=max(data_1['Total_Points'])
best_country=data_1.loc[data_1['Total_Points'].idxmax(),'Country_Name']
#Plot the best
best=data[data['Country_Name']==best_country]
best.reset_index(drop = True, inplace = True)
best=best[['Gold_Total','Silver_Total','Bronze_Total']]
best.plot.bar(stacked=True)
plt.xlabel('United States')
plt.ylabel('Medals Tally')
plt.xticks(rotation=45)
l=plt.legend()
l.get_texts()[0].set_text('Gold_Total :' + str(best['Gold_Total'].values))
l.get_texts()[1].set_text('Silver_Total :' + str(best['Silver_Total'].values))
l.get_texts()[2].set_text('Bronze_Total :' + str(best['Bronze_Total'].values))
| 121 | 0 | 22 |
b1d982527a36cd045a0ec9f565af25b1ae1a1041 | 921 | py | Python | hw9/task_3.py | DashViolin/gb_python_lvl1 | ce4d6e8a717122c4d492b724b249d881c885d30c | [
"Apache-2.0"
] | 1 | 2021-11-01T18:24:38.000Z | 2021-11-01T18:24:38.000Z | hw9/task_3.py | DashViolin/gb_python_lvl1 | ce4d6e8a717122c4d492b724b249d881c885d30c | [
"Apache-2.0"
] | 1 | 2021-10-04T17:48:29.000Z | 2021-10-04T17:48:29.000Z | hw9/task_3.py | DashViolin/gb_python_lvl1 | ce4d6e8a717122c4d492b724b249d881c885d30c | [
"Apache-2.0"
] | null | null | null | from typing import Union
welder = Position(name='Alex', surname='Murphy', position='welder', wage=120000, bonus=30000)
print(welder)
print(welder.get_full_name())
miller = Position(name='Anne', surname='Lewis', position='miller', wage=150000, bonus=24000)
print(miller)
print(miller.get_total_income())
| 27.909091 | 114 | 0.647123 | from typing import Union
class Worker:
def __init__(self, name: str, surname: str, position: str, wage: Union[int, float], bonus: Union[int, float]):
self.name = name.capitalize()
self.surname = surname.capitalize()
self.position = position
self._income = {
"wage": wage,
"bonus": bonus,
}
def __str__(self):
return f'{self.name} {self.surname} ({self.position})'
class Position(Worker):
def get_full_name(self):
return f'{self.name} {self.surname}'
def get_total_income(self):
return self._income["wage"] + self._income["bonus"]
welder = Position(name='Alex', surname='Murphy', position='welder', wage=120000, bonus=30000)
print(welder)
print(welder.get_full_name())
miller = Position(name='Anne', surname='Lewis', position='miller', wage=150000, bonus=24000)
print(miller)
print(miller.get_total_income())
| 467 | -6 | 152 |
1274d5c5256b405787333273d1e01c0f02bbbaf3 | 9,903 | py | Python | obstacle2osm.py | osmno/obstacle2osm | e45dad160812506f8dd6dddc1c89a75930710fab | [
"CC0-1.0"
] | 1 | 2021-05-27T09:37:01.000Z | 2021-05-27T09:37:01.000Z | obstacle2osm.py | osmno/obstacle2osm | e45dad160812506f8dd6dddc1c89a75930710fab | [
"CC0-1.0"
] | null | null | null | obstacle2osm.py | osmno/obstacle2osm | e45dad160812506f8dd6dddc1c89a75930710fab | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf8
# obstacle2osm
# Converts aviation obstacles from Kartverket WFS/GML files for import/update in OSM
# Usage: obstacle2.osm [county]
# Creates OSM file with name "Luftfartshinder_" + county + ".osm"
import html
import time
import sys
import urllib.request
import json
import zipfile
from io import BytesIO
from xml.etree import ElementTree
import utm # Local library
version = "1.0.0"
# Tagging per obstacle type
tagging_table = {
'Landbruksutstyr': [],
'Telemast': ['man_made=mast', 'tower:type=communication'],
'Bru': ['man_made=tower', 'tower:type=bridge'],
'Bygning': ['building=yes'],
'Gondolbane': ['aerialway=gondola'],
u'Kontrolltårn': ['man_made=tower', 'tower:type=airport_control'],
u'Kjøletårn': ['man_made=tower', 'tower_type=cooling'],
'Kran': ['man_made=crane'],
'Demning': ['waterway=dam'],
'Kuppel': ['man_made=tower', 'tower:construction=dome'],
'EL_Nettstasjon': ['power=substation', 'power=transformer'],
'Gjerde': ['barrier=fence'],
u'Fyrtårn': ['man_made=lighthouse'],
'Monument': ['man_made=tower', 'tower:type=monument'],
'Terrengpunkt': ['natural=peak'],
'Navigasjonshjelpemiddel': ['aeroway=navigationaid'],
'Stolpe': ['man_made=mast'],
'Kraftverk': ['power=plant'],
'Raffineri': ['man_made=tower'],
'Oljerigg': [],
'Skilt': [],
'Pipe': ['man_made=chimney'],
'Tank': ['man_made=storage_tank'],
'Forankret ballong': [],
u'Tårn': ['man_made=tower'],
'Kraftledning': [],
'Tre': ['natural=tree'],
u'Skogsområde': ['natural=wood'],
u'Vanntårn': ['man_made=storage_tank', 'content=water'],
u'Vindmølle': ['power=generator', 'generator:source=wind', 'generator:method=wind_turbine', 'generator:type=horizontal_axis'],
u'Vindmøllepark': ['type=site', 'power=plant', 'plant:source=wind'],
u'Hopptårn': ['man_made=tower', 'piste:type=ski_jump'],
u'Vindmåler': ['man_made=mast', 'tower:type=monitoring'],
'Lysmast': ['man_made=mast', 'tower:type=lighting'],
'Flaggstang': ['man_made=flagpole'],
'Petroleumsinnretning': [],
'Silo': ['man_made=silo'],
'Stolheis': ['aerialway=chairlift'],
'Skitrekk': ['aerialway=draglift'],
'Taubane': ['aerialway=cable_car'],
u'Fornøyelsesparkinnretning': ['man_made=tower'],
'Annet': []
}
# Namespace
ns_gml = 'http://www.opengis.net/gml/3.2'
ns_xlink = 'http://www.w3.org/1999/xlink'
ns_app = 'http://skjema.geonorge.no/SOSI/produktspesifikasjon/Luftfartshindre/20180322'
ns = {
'gml': ns_gml,
'xlink': ns_xlink,
'app': ns_app
}
# Produce a tag for OSM file
# Main program
if __name__ == '__main__':
start_time = time.time()
today = time.strftime("%Y-%m-%d", time.localtime())
# Load county id's and names from Kartverket api
file = urllib.request.urlopen("https://ws.geonorge.no/kommuneinfo/v1/fylker")
county_data = json.load(file)
file.close()
county = {}
for coun in county_data:
county[coun['fylkesnummer']] = coun['fylkesnavn'].strip()
county['21'] = "Svalbard"
county['00'] = "Norge"
# Load obstacle gml from GeoNorge
if (len(sys.argv) > 1) and (sys.argv[1] in county):
county_id = sys.argv[1]
county_name = county[county_id].replace(u"Ø", "O").replace(u"ø", "o").replace(" ", "_")
if county_id == "21":
county_id = "2100" # Svalbard
elif county_id == "00":
county_id = "0000" # Norway
else:
sys.exit ("County code not found. Norway is '00'.")
print ("Loading %s..." % county_name)
url = "https://nedlasting.geonorge.no/geonorge/Samferdsel/Luftfartshindre/GML/Samferdsel_%s_%s_6173_Luftfartshindre_GML.zip" % (county_id, county_name)
in_file = urllib.request.urlopen(url)
zip_file = zipfile.ZipFile(BytesIO(in_file.read()))
filename = zip_file.namelist()[0]
file = zip_file.open(filename)
tree = ElementTree.parse(file)
file.close()
root = tree.getroot()
feature_collection = root
obstacles = []
# Pass 1:
# Find all point obstacles (excluding lines)
for feature_member in feature_collection.iter('{%s}featureMember' % ns_gml):
vertical_object = feature_member.find('app:VertikalObjekt', ns)
if vertical_object != None:
xlink = vertical_object.find(u'app:bestårAvVertikalobjKompPunkt', ns)
status = vertical_object.find('app:status', ns).text
valid_date = vertical_object.find('app:gyldigTil', ns)
if (xlink != None) and (status in ["E", "P"]) and ((valid_date == None) or (valid_date.text > today)):
xlink_ref = xlink.get('{%s}href' % ns_xlink)
update_date = vertical_object.find('app:oppdateringsdato', ns).text[:10]
name = vertical_object.find('app:vertikalObjektNavn', ns).text
object_id = vertical_object.find('app:identifikasjonObjekt/app:IdentifikasjonObjekt/app:lokalId', ns).text
object_type = vertical_object.find('app:vertikalObjektType', ns).text
obstacle = {
'status': status,
'date_update': update_date,
'type': object_type,
'name': name,
'ref:hinder': object_id,
'xlink': xlink_ref
}
create_date = vertical_object.find('app:datafangstdato', ns)
if create_date != None:
obstacle['date_create'] = create_date.text[:10]
if valid_date != None:
obstacle['date_valid'] = valid_date.text[:10]
obstacles.append(obstacle)
# Pass 2:
# Find obstacle coordinates
print ("Matching coordinates for %i obstacles..." % len(obstacles))
for feature_member in feature_collection.iter('{%s}featureMember' % ns_gml):
point = feature_member.find('app:VertikalObjektKomponentPunkt', ns)
if point != None:
point_id = point.get('{%s}id' % ns_gml)
for obstacle in obstacles:
if obstacle['xlink'] == point_id:
coordinates = point.find('app:posisjon/gml:Point/gml:pos', ns).text
coordinates_split = coordinates.split(" ")
x = float(coordinates_split[0])
y = float(coordinates_split[1])
z = float(coordinates_split[2])
latitude, longitude = utm.UtmToLatLon(x, y, 33, "N")
obstacle['latitude'] = latitude
obstacle['longitude'] = longitude
height = point.find('app:vertikalUtstrekning', ns)
if height != None:
height = float(height.text)
obstacle['height'] = "%.0f" % height
z_ref = point.find('app:href', ns).text
top_ele = None
if z_ref == "TOP":
if height != None:
z = z - height
else:
top_ele = z
z = None
if z:
if z == round(z,0):
obstacle['ele'] = "%.0f" % z
else:
obstacle['ele'] = "%.1f" % z
elif top_ele:
if top_ele == round(top_ele,0):
obstacle['top_ele'] = "%.0f" % top_ele
else:
obstacle['top_ele'] = "%.1f" % top_ele
light = point.find('app:lyssetting', ns).text
obstacle['light'] = light
break
# Pass 3:
# Output file
filename = "Luftfartshindre_" + county_name + ".osm"
print ("Writing file '%s'..." % filename)
file_out = open(filename, "w")
file_out.write ('<?xml version="1.0" encoding="UTF-8"?>\n')
file_out.write ('<osm version="0.6" generator="obstacle2osm v%s">\n' % version)
node_id = -1000
for obstacle in obstacles:
node_id -= 1
file_out.write (' <node id="%i" lat="%f" lon="%f">\n' % (node_id, obstacle['latitude'], obstacle['longitude']))
name = obstacle['name']
if name == obstacle['ref:hinder']:
name = ""
elif name == name.upper():
name = name.title()
make_osm_line ("ref:hinder", obstacle['ref:hinder'])
make_osm_line ("description", name)
make_osm_line ("OBSTACLE_TYPE", obstacle['type'])
make_osm_line ("STATUS", obstacle['status'])
if "height" in obstacle:
make_osm_line ("height", obstacle['height'])
if "ele" in obstacle:
make_osm_line ("ele", obstacle['ele'])
elif "top_ele" in obstacle:
make_osm_line ("top_ele", obstacle['top_ele'])
if not("date_create" in obstacle) or (obstacle['date_update'] != obstacle['date_create']):
make_osm_line ("DATE_UPDATE", obstacle['date_update'])
if "date_create" in obstacle:
make_osm_line ("DATE_CREATE", obstacle['date_create'])
if "date_valid" in obstacle:
make_osm_line ("end_date", obstacle['date_valid'])
# Feature tagging (man_made, tower:type etc)
tag_found = False
for object_type, tags in iter(tagging_table.items()):
if object_type == obstacle['type']:
for tag in tags:
tag_split = tag.split("=")
make_osm_line (tag_split[0], tag_split[1])
tag_found = True
break
if not(tag_found):
print ("Object type '%s' not found in tagging table " % obstacle['type'])
# Light tagging
light = obstacle['light']
if not(light in ['IL', 'UKJ']):
colour = ""
character = ""
intensity = ""
icao_type = ""
make_osm_line ("aeroway:light", "obstacle")
if light in ['BR','FR','LIA','LIB','MIB','MIC']:
colour = "red"
elif light in ['BH','FH','MIA','HIA','HIB']:
colour = "white"
make_osm_line ("aeroway:light:colour", colour)
if light in ['FR','FH','LIA','LIB','MIC']:
character = "fixed"
elif light in ['BR','BH','MIA','MIB','HIA','HIB']:
character = "flashing"
elif light == "FLO":
character = "floodlight"
make_osm_line ("aeroway:light:character", character)
if light in ['LIA','LIB']:
intensity = "low"
elif light in ['MIA','MIB','MIC']:
intensity = "medium"
elif light in ['HIA','HIB']:
intensity = "high"
make_osm_line ("aeroway:light:intensity", intensity)
if light in ['LIA','MIA','HIA']:
icao_type = "A"
elif light in ['LIB','MIB','HIB']:
icao_type = "B"
elif light == "HIC":
icao_type = "C"
make_osm_line ("aeroway:light:icao_type", icao_type)
file_out.write (' </node>\n')
# Wrap up
file_out.write ('</osm>\n')
file_out.close()
print ("Done in %i seconds" % (time.time() - start_time))
| 28.456897 | 152 | 0.647783 | #!/usr/bin/env python3
# -*- coding: utf8
# obstacle2osm
# Converts aviation obstacles from Kartverket WFS/GML files for import/update in OSM
# Usage: obstacle2.osm [county]
# Creates OSM file with name "Luftfartshinder_" + county + ".osm"
import html
import time
import sys
import urllib.request
import json
import zipfile
from io import BytesIO
from xml.etree import ElementTree
import utm # Local library
version = "1.0.0"
# Tagging per obstacle type
tagging_table = {
'Landbruksutstyr': [],
'Telemast': ['man_made=mast', 'tower:type=communication'],
'Bru': ['man_made=tower', 'tower:type=bridge'],
'Bygning': ['building=yes'],
'Gondolbane': ['aerialway=gondola'],
u'Kontrolltårn': ['man_made=tower', 'tower:type=airport_control'],
u'Kjøletårn': ['man_made=tower', 'tower_type=cooling'],
'Kran': ['man_made=crane'],
'Demning': ['waterway=dam'],
'Kuppel': ['man_made=tower', 'tower:construction=dome'],
'EL_Nettstasjon': ['power=substation', 'power=transformer'],
'Gjerde': ['barrier=fence'],
u'Fyrtårn': ['man_made=lighthouse'],
'Monument': ['man_made=tower', 'tower:type=monument'],
'Terrengpunkt': ['natural=peak'],
'Navigasjonshjelpemiddel': ['aeroway=navigationaid'],
'Stolpe': ['man_made=mast'],
'Kraftverk': ['power=plant'],
'Raffineri': ['man_made=tower'],
'Oljerigg': [],
'Skilt': [],
'Pipe': ['man_made=chimney'],
'Tank': ['man_made=storage_tank'],
'Forankret ballong': [],
u'Tårn': ['man_made=tower'],
'Kraftledning': [],
'Tre': ['natural=tree'],
u'Skogsområde': ['natural=wood'],
u'Vanntårn': ['man_made=storage_tank', 'content=water'],
u'Vindmølle': ['power=generator', 'generator:source=wind', 'generator:method=wind_turbine', 'generator:type=horizontal_axis'],
u'Vindmøllepark': ['type=site', 'power=plant', 'plant:source=wind'],
u'Hopptårn': ['man_made=tower', 'piste:type=ski_jump'],
u'Vindmåler': ['man_made=mast', 'tower:type=monitoring'],
'Lysmast': ['man_made=mast', 'tower:type=lighting'],
'Flaggstang': ['man_made=flagpole'],
'Petroleumsinnretning': [],
'Silo': ['man_made=silo'],
'Stolheis': ['aerialway=chairlift'],
'Skitrekk': ['aerialway=draglift'],
'Taubane': ['aerialway=cable_car'],
u'Fornøyelsesparkinnretning': ['man_made=tower'],
'Annet': []
}
# Namespace
ns_gml = 'http://www.opengis.net/gml/3.2'
ns_xlink = 'http://www.w3.org/1999/xlink'
ns_app = 'http://skjema.geonorge.no/SOSI/produktspesifikasjon/Luftfartshindre/20180322'
ns = {
'gml': ns_gml,
'xlink': ns_xlink,
'app': ns_app
}
# Produce a tag for OSM file
def make_osm_line(key,value):
if value:
encoded_value = html.escape(value).strip()
file_out.write (' <tag k="%s" v="%s" />\n' % (key, encoded_value))
# Main program
if __name__ == '__main__':
start_time = time.time()
today = time.strftime("%Y-%m-%d", time.localtime())
# Load county id's and names from Kartverket api
file = urllib.request.urlopen("https://ws.geonorge.no/kommuneinfo/v1/fylker")
county_data = json.load(file)
file.close()
county = {}
for coun in county_data:
county[coun['fylkesnummer']] = coun['fylkesnavn'].strip()
county['21'] = "Svalbard"
county['00'] = "Norge"
# Load obstacle gml from GeoNorge
if (len(sys.argv) > 1) and (sys.argv[1] in county):
county_id = sys.argv[1]
county_name = county[county_id].replace(u"Ø", "O").replace(u"ø", "o").replace(" ", "_")
if county_id == "21":
county_id = "2100" # Svalbard
elif county_id == "00":
county_id = "0000" # Norway
else:
sys.exit ("County code not found. Norway is '00'.")
print ("Loading %s..." % county_name)
url = "https://nedlasting.geonorge.no/geonorge/Samferdsel/Luftfartshindre/GML/Samferdsel_%s_%s_6173_Luftfartshindre_GML.zip" % (county_id, county_name)
in_file = urllib.request.urlopen(url)
zip_file = zipfile.ZipFile(BytesIO(in_file.read()))
filename = zip_file.namelist()[0]
file = zip_file.open(filename)
tree = ElementTree.parse(file)
file.close()
root = tree.getroot()
feature_collection = root
obstacles = []
# Pass 1:
# Find all point obstacles (excluding lines)
for feature_member in feature_collection.iter('{%s}featureMember' % ns_gml):
vertical_object = feature_member.find('app:VertikalObjekt', ns)
if vertical_object != None:
xlink = vertical_object.find(u'app:bestårAvVertikalobjKompPunkt', ns)
status = vertical_object.find('app:status', ns).text
valid_date = vertical_object.find('app:gyldigTil', ns)
if (xlink != None) and (status in ["E", "P"]) and ((valid_date == None) or (valid_date.text > today)):
xlink_ref = xlink.get('{%s}href' % ns_xlink)
update_date = vertical_object.find('app:oppdateringsdato', ns).text[:10]
name = vertical_object.find('app:vertikalObjektNavn', ns).text
object_id = vertical_object.find('app:identifikasjonObjekt/app:IdentifikasjonObjekt/app:lokalId', ns).text
object_type = vertical_object.find('app:vertikalObjektType', ns).text
obstacle = {
'status': status,
'date_update': update_date,
'type': object_type,
'name': name,
'ref:hinder': object_id,
'xlink': xlink_ref
}
create_date = vertical_object.find('app:datafangstdato', ns)
if create_date != None:
obstacle['date_create'] = create_date.text[:10]
if valid_date != None:
obstacle['date_valid'] = valid_date.text[:10]
obstacles.append(obstacle)
# Pass 2:
# Find obstacle coordinates
print ("Matching coordinates for %i obstacles..." % len(obstacles))
for feature_member in feature_collection.iter('{%s}featureMember' % ns_gml):
point = feature_member.find('app:VertikalObjektKomponentPunkt', ns)
if point != None:
point_id = point.get('{%s}id' % ns_gml)
for obstacle in obstacles:
if obstacle['xlink'] == point_id:
coordinates = point.find('app:posisjon/gml:Point/gml:pos', ns).text
coordinates_split = coordinates.split(" ")
x = float(coordinates_split[0])
y = float(coordinates_split[1])
z = float(coordinates_split[2])
latitude, longitude = utm.UtmToLatLon(x, y, 33, "N")
obstacle['latitude'] = latitude
obstacle['longitude'] = longitude
height = point.find('app:vertikalUtstrekning', ns)
if height != None:
height = float(height.text)
obstacle['height'] = "%.0f" % height
z_ref = point.find('app:href', ns).text
top_ele = None
if z_ref == "TOP":
if height != None:
z = z - height
else:
top_ele = z
z = None
if z:
if z == round(z,0):
obstacle['ele'] = "%.0f" % z
else:
obstacle['ele'] = "%.1f" % z
elif top_ele:
if top_ele == round(top_ele,0):
obstacle['top_ele'] = "%.0f" % top_ele
else:
obstacle['top_ele'] = "%.1f" % top_ele
light = point.find('app:lyssetting', ns).text
obstacle['light'] = light
break
# Pass 3:
# Output file
filename = "Luftfartshindre_" + county_name + ".osm"
print ("Writing file '%s'..." % filename)
file_out = open(filename, "w")
file_out.write ('<?xml version="1.0" encoding="UTF-8"?>\n')
file_out.write ('<osm version="0.6" generator="obstacle2osm v%s">\n' % version)
node_id = -1000
for obstacle in obstacles:
node_id -= 1
file_out.write (' <node id="%i" lat="%f" lon="%f">\n' % (node_id, obstacle['latitude'], obstacle['longitude']))
name = obstacle['name']
if name == obstacle['ref:hinder']:
name = ""
elif name == name.upper():
name = name.title()
make_osm_line ("ref:hinder", obstacle['ref:hinder'])
make_osm_line ("description", name)
make_osm_line ("OBSTACLE_TYPE", obstacle['type'])
make_osm_line ("STATUS", obstacle['status'])
if "height" in obstacle:
make_osm_line ("height", obstacle['height'])
if "ele" in obstacle:
make_osm_line ("ele", obstacle['ele'])
elif "top_ele" in obstacle:
make_osm_line ("top_ele", obstacle['top_ele'])
if not("date_create" in obstacle) or (obstacle['date_update'] != obstacle['date_create']):
make_osm_line ("DATE_UPDATE", obstacle['date_update'])
if "date_create" in obstacle:
make_osm_line ("DATE_CREATE", obstacle['date_create'])
if "date_valid" in obstacle:
make_osm_line ("end_date", obstacle['date_valid'])
# Feature tagging (man_made, tower:type etc)
tag_found = False
for object_type, tags in iter(tagging_table.items()):
if object_type == obstacle['type']:
for tag in tags:
tag_split = tag.split("=")
make_osm_line (tag_split[0], tag_split[1])
tag_found = True
break
if not(tag_found):
print ("Object type '%s' not found in tagging table " % obstacle['type'])
# Light tagging
light = obstacle['light']
if not(light in ['IL', 'UKJ']):
colour = ""
character = ""
intensity = ""
icao_type = ""
make_osm_line ("aeroway:light", "obstacle")
if light in ['BR','FR','LIA','LIB','MIB','MIC']:
colour = "red"
elif light in ['BH','FH','MIA','HIA','HIB']:
colour = "white"
make_osm_line ("aeroway:light:colour", colour)
if light in ['FR','FH','LIA','LIB','MIC']:
character = "fixed"
elif light in ['BR','BH','MIA','MIB','HIA','HIB']:
character = "flashing"
elif light == "FLO":
character = "floodlight"
make_osm_line ("aeroway:light:character", character)
if light in ['LIA','LIB']:
intensity = "low"
elif light in ['MIA','MIB','MIC']:
intensity = "medium"
elif light in ['HIA','HIB']:
intensity = "high"
make_osm_line ("aeroway:light:intensity", intensity)
if light in ['LIA','MIA','HIA']:
icao_type = "A"
elif light in ['LIB','MIB','HIB']:
icao_type = "B"
elif light == "HIC":
icao_type = "C"
make_osm_line ("aeroway:light:icao_type", icao_type)
file_out.write (' </node>\n')
# Wrap up
file_out.write ('</osm>\n')
file_out.close()
print ("Done in %i seconds" % (time.time() - start_time))
| 136 | 0 | 23 |
5c9603f2e0ac2abb46a8160361bd4405030226f9 | 377 | py | Python | calibrate.py | etanzapinsky/voyeur | 0b8e6b212dec93a9fee0bbf45e639d63c691cea9 | [
"MIT"
] | null | null | null | calibrate.py | etanzapinsky/voyeur | 0b8e6b212dec93a9fee0bbf45e639d63c691cea9 | [
"MIT"
] | null | null | null | calibrate.py | etanzapinsky/voyeur | 0b8e6b212dec93a9fee0bbf45e639d63c691cea9 | [
"MIT"
] | null | null | null | import time
from blinds import Blinds, NEUTRAL, UP, DOWN
# janky way to calibrate blinds to be open/closed to the right amount
# edit this file to change UP/DOWN to move blinds in desired direction,
# save and then run
if __name__ == '__main__':
main()
| 22.176471 | 71 | 0.708223 | import time
from blinds import Blinds, NEUTRAL, UP, DOWN
# janky way to calibrate blinds to be open/closed to the right amount
# edit this file to change UP/DOWN to move blinds in desired direction,
# save and then run
def main():
blinds = Blinds()
blinds.run_servo(NEUTRAL + UP)
time.sleep(1)
blinds.run_servo(NEUTRAL)
if __name__ == '__main__':
main()
| 95 | 0 | 22 |
d3c9aa8d47bb2a5146cb0aeb909d6c72c15066cf | 5,018 | py | Python | test/test_compiler.py | timothyrenner/svl | a74c09c49f2e14046acd4b0eeb861f8fef6bca96 | [
"MIT"
] | 8 | 2019-03-27T12:49:21.000Z | 2020-10-10T11:16:25.000Z | test/test_compiler.py | timothyrenner/svl | a74c09c49f2e14046acd4b0eeb861f8fef6bca96 | [
"MIT"
] | 65 | 2018-08-26T14:48:45.000Z | 2020-03-17T12:24:42.000Z | test/test_compiler.py | timothyrenner/svl | a74c09c49f2e14046acd4b0eeb861f8fef6bca96 | [
"MIT"
] | 1 | 2019-09-13T19:39:07.000Z | 2019-09-13T19:39:07.000Z | import pytest
import os
from jinja2 import Environment, BaseLoader
from svl.compiler.compiler import _extract_additional_datasets, svl
from svl.compiler.errors import (
SvlSyntaxError,
SvlMissingFileError,
SvlPlotError,
SvlDataLoadError,
SvlDataProcessingError,
)
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
JINJA_ENV = Environment(loader=BaseLoader)
@pytest.fixture
def svl_source():
""" Self cleaning fixture for rendering an SVL script template into a file
to be called from a subprocess. Returns a factory that produces
rendered template locations and also renders the template.
"""
svl_script_template = JINJA_ENV.from_string(
"""
DATASETS
bigfoot "{{ test_dir }}/test_datasets/bigfoot_sightings.csv"
HISTOGRAM bigfoot
X temperature_mid BINS 25
"""
)
return svl_script_template.render(test_dir=CURRENT_DIR)
def test_extract_additional_datasets():
""" Tests that the _extract_additional_datasets function returns the
correct value.
"""
datasets = ["bigfoot=datasets/bigfoot.csv", "dogman=datasets/dogman.csv"]
truth = {
"bigfoot": "datasets/bigfoot.csv",
"dogman": "datasets/dogman.csv",
}
answer = _extract_additional_datasets(datasets)
assert truth == answer
def test_svl(svl_source):
""" Tests that the svl function works when the script is correct.
"""
svl(svl_source)
def test_svl_datasets(svl_source):
""" Tests that the svl function works when additional datasets are
specified.
"""
svl(
svl_source,
datasets=[
"bigfoot={}/test_datasets/bigfoot_sightings.csv".format(
CURRENT_DIR
)
],
)
def test_svl_debug(svl_source):
""" Tests that the svl function works when the debug option is specified.
"""
answer = svl(svl_source, debug=True)
assert "<" not in answer
def test_svl_offline_js(svl_source):
""" Tests that the svl function works when the offline_js option is
specified.
"""
svl(svl_source, offline_js=True)
def test_svl_dataset_error(svl_source):
""" Tests that the svl function raises a ValueError when the additional
datasets are incorrectly specified.
"""
with pytest.raises(ValueError, match="name=path"):
svl(
svl_source,
datasets=[
"bigfoot:{}/test_datasets/bigfoot_sightings.csv".format(
CURRENT_DIR
)
],
)
def test_svl_syntax_error(svl_source):
""" Tests that the svl function raises a SvlSyntaxError when there is a
syntax error in the source.
"""
svl_source = """{}
LINE bigfoot X X date BY YEAR Y report_number COUNT
""".format(
svl_source
)
with pytest.raises(SvlSyntaxError, match="Syntax error"):
svl(svl_source)
def test_svl_missing_file_error(svl_source):
""" Tests that the svl function raises a SvlMissingFileError when there is
a missing file.
"""
with pytest.raises(SvlMissingFileError, match="File"):
svl(svl_source, datasets=["ufos={}/test_datasets/ufo_sightings.csv"])
def test_svl_plot_error(svl_source):
""" Tests that the svl function raises a SvlPlotError when there is an
error in a plot specification.
"""
svl_source = """{}
LINE bigfoot X date BY YEAR TITLE "Annual Bigfoot Sightings"
""".format(
svl_source
)
with pytest.raises(SvlPlotError, match="Plot error:"):
svl(svl_source)
def test_svl_data_load_error():
""" Tests that the svl function raises a SvlDataLoadError when there's an
incorrectly specified SQL dataset.
"""
svl_source = """
DATASETS
bigfoot "{}/test_datasets/bigfoot_sightings.csv"
bigfoot_failure SQL "SELECT date FROM bigfoots"
HISTOGRAM bigfoot
X temperature_mid BINS 25
""".format(
CURRENT_DIR
)
with pytest.raises(SvlDataLoadError, match="Error loading data"):
svl(svl_source)
def test_svl_data_processing_error():
""" Tests that the svl function raises a SvlDataProcessingError when there
is an incorrectly specified custom SQL statement in the plot.
"""
svl_source = """
DATASETS
bigfoot "{}/test_datasets/bigfoot_sightings.csv"
LINE bigfoot
X date by year label "year"
Y date count label "number of sightings"
SPLIT BY classification
FILTER "daet > 1990-01-01"
""".format(
CURRENT_DIR
)
with pytest.raises(
SvlDataProcessingError, match="Error processing plot data"
):
svl(svl_source)
def test_svl_not_implemented_error(svl_source):
""" Tests that the svl function raises a NotImplementedError when the
selected backend has not been implemented.
"""
with pytest.raises(NotImplementedError, match="Unable to use"):
svl(svl_source, backend="vega")
| 27.723757 | 78 | 0.66381 | import pytest
import os
from jinja2 import Environment, BaseLoader
from svl.compiler.compiler import _extract_additional_datasets, svl
from svl.compiler.errors import (
SvlSyntaxError,
SvlMissingFileError,
SvlPlotError,
SvlDataLoadError,
SvlDataProcessingError,
)
CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
JINJA_ENV = Environment(loader=BaseLoader)
@pytest.fixture
def svl_source():
""" Self cleaning fixture for rendering an SVL script template into a file
to be called from a subprocess. Returns a factory that produces
rendered template locations and also renders the template.
"""
svl_script_template = JINJA_ENV.from_string(
"""
DATASETS
bigfoot "{{ test_dir }}/test_datasets/bigfoot_sightings.csv"
HISTOGRAM bigfoot
X temperature_mid BINS 25
"""
)
return svl_script_template.render(test_dir=CURRENT_DIR)
def test_extract_additional_datasets():
""" Tests that the _extract_additional_datasets function returns the
correct value.
"""
datasets = ["bigfoot=datasets/bigfoot.csv", "dogman=datasets/dogman.csv"]
truth = {
"bigfoot": "datasets/bigfoot.csv",
"dogman": "datasets/dogman.csv",
}
answer = _extract_additional_datasets(datasets)
assert truth == answer
def test_svl(svl_source):
""" Tests that the svl function works when the script is correct.
"""
svl(svl_source)
def test_svl_datasets(svl_source):
""" Tests that the svl function works when additional datasets are
specified.
"""
svl(
svl_source,
datasets=[
"bigfoot={}/test_datasets/bigfoot_sightings.csv".format(
CURRENT_DIR
)
],
)
def test_svl_debug(svl_source):
""" Tests that the svl function works when the debug option is specified.
"""
answer = svl(svl_source, debug=True)
assert "<" not in answer
def test_svl_offline_js(svl_source):
""" Tests that the svl function works when the offline_js option is
specified.
"""
svl(svl_source, offline_js=True)
def test_svl_dataset_error(svl_source):
""" Tests that the svl function raises a ValueError when the additional
datasets are incorrectly specified.
"""
with pytest.raises(ValueError, match="name=path"):
svl(
svl_source,
datasets=[
"bigfoot:{}/test_datasets/bigfoot_sightings.csv".format(
CURRENT_DIR
)
],
)
def test_svl_syntax_error(svl_source):
""" Tests that the svl function raises a SvlSyntaxError when there is a
syntax error in the source.
"""
svl_source = """{}
LINE bigfoot X X date BY YEAR Y report_number COUNT
""".format(
svl_source
)
with pytest.raises(SvlSyntaxError, match="Syntax error"):
svl(svl_source)
def test_svl_missing_file_error(svl_source):
""" Tests that the svl function raises a SvlMissingFileError when there is
a missing file.
"""
with pytest.raises(SvlMissingFileError, match="File"):
svl(svl_source, datasets=["ufos={}/test_datasets/ufo_sightings.csv"])
def test_svl_plot_error(svl_source):
""" Tests that the svl function raises a SvlPlotError when there is an
error in a plot specification.
"""
svl_source = """{}
LINE bigfoot X date BY YEAR TITLE "Annual Bigfoot Sightings"
""".format(
svl_source
)
with pytest.raises(SvlPlotError, match="Plot error:"):
svl(svl_source)
def test_svl_data_load_error():
""" Tests that the svl function raises a SvlDataLoadError when there's an
incorrectly specified SQL dataset.
"""
svl_source = """
DATASETS
bigfoot "{}/test_datasets/bigfoot_sightings.csv"
bigfoot_failure SQL "SELECT date FROM bigfoots"
HISTOGRAM bigfoot
X temperature_mid BINS 25
""".format(
CURRENT_DIR
)
with pytest.raises(SvlDataLoadError, match="Error loading data"):
svl(svl_source)
def test_svl_data_processing_error():
""" Tests that the svl function raises a SvlDataProcessingError when there
is an incorrectly specified custom SQL statement in the plot.
"""
svl_source = """
DATASETS
bigfoot "{}/test_datasets/bigfoot_sightings.csv"
LINE bigfoot
X date by year label "year"
Y date count label "number of sightings"
SPLIT BY classification
FILTER "daet > 1990-01-01"
""".format(
CURRENT_DIR
)
with pytest.raises(
SvlDataProcessingError, match="Error processing plot data"
):
svl(svl_source)
def test_svl_not_implemented_error(svl_source):
""" Tests that the svl function raises a NotImplementedError when the
selected backend has not been implemented.
"""
with pytest.raises(NotImplementedError, match="Unable to use"):
svl(svl_source, backend="vega")
| 0 | 0 | 0 |
7dd6e58903392a293ee7778d9cdc919d3feae0dc | 285 | py | Python | djaveAPI/views/docs.py | dasmith2/djaveAPI | 6cece89bb945a4c8ace1534cc007626a35af3c38 | [
"MIT"
] | null | null | null | djaveAPI/views/docs.py | dasmith2/djaveAPI | 6cece89bb945a4c8ace1534cc007626a35af3c38 | [
"MIT"
] | null | null | null | djaveAPI/views/docs.py | dasmith2/djaveAPI | 6cece89bb945a4c8ace1534cc007626a35af3c38 | [
"MIT"
] | null | null | null | from djaveAPI.docs import docs
from djaveURL import protocol_and_host
| 25.909091 | 53 | 0.8 | from djaveAPI.docs import docs
from djaveURL import protocol_and_host
def api_doc_contents(request, model_names):
api_root_url = protocol_and_host(request)
model_docs = []
for model_name in model_names:
model_docs.append(docs(model_name, api_root_url))
return model_docs
| 191 | 0 | 23 |
3e23295719475515500986c03f81d532318e434d | 7,978 | py | Python | utils/data_utils.py | Ailln/stock-prediction | 9de77de5047446ffceeed83cb610c7edd2cb1ad3 | [
"MIT"
] | 11 | 2020-07-11T06:14:29.000Z | 2021-12-02T08:48:53.000Z | utils/data_utils.py | HaveTwoBrush/stock-prediction | 9de77de5047446ffceeed83cb610c7edd2cb1ad3 | [
"MIT"
] | null | null | null | utils/data_utils.py | HaveTwoBrush/stock-prediction | 9de77de5047446ffceeed83cb610c7edd2cb1ad3 | [
"MIT"
] | 8 | 2020-04-15T14:29:47.000Z | 2021-12-19T09:26:53.000Z | from pathlib import Path
import numpy as np
import pandas as pd
from pylab import plt
from progressbar import ProgressBar
from models import sklearn_model
| 37.455399 | 108 | 0.633116 | from pathlib import Path
import numpy as np
import pandas as pd
from pylab import plt
from progressbar import ProgressBar
from models import sklearn_model
class DataUtils(object):
def __init__(self, config):
self.config = config
self.origin_train_path = Path(self.config["datas"]["origin_train_path"])
self.origin_test_path = Path(self.config["datas"]["origin_test_path"])
self.generate_train_path = Path(self.config["datas"]["generate_train_path"])
self.generate_validate_path = Path(self.config["datas"]["generate_validate_path"])
self.generate_test_path = Path(self.config["datas"]["generate_test_path"])
self.is_regenerate_train_data = self.config["datas"]["is_regenerate_train_data"]
self.split_validate_size = self.config["datas"]["split_validate_size"]
self.is_regenerate_test_data = self.config["datas"]["is_regenerate_test_data"]
self.is_debug = self.config["is_debug"]
self.is_std = self.config["is_std"]
self.is_ntl = self.config["is_ntl"]
self.is_remove_extreme = self.config["is_remove_extreme"]
self.is_plot = 0
self.progress = ProgressBar()
def get_train_data(self):
if self.is_regenerate_train_data:
df_train_data = self.__generate_train_data()
else:
df_train_data = pd.read_csv(self.generate_train_path)
if self.is_debug:
print(f"\n>> train df head:\n\n{df_train_data.head()}")
train_header_list = list(df_train_data.columns)
train_remove_key_list = ["id", "date", "y"]
for remove_key in train_remove_key_list:
train_header_list.remove(remove_key)
train_input_list = df_train_data[train_header_list].values
train_target_list = df_train_data["y"].values
return train_input_list, train_target_list
def get_test_data(self):
if self.is_regenerate_test_data:
df_test_data = self.__generate_test_data()
else:
df_test_data = pd.read_csv(self.generate_test_path)
if self.is_debug:
print(f"\n>> test df head:\n\n{df_test_data.head()}")
df_test_data = df_test_data.fillna(0)
test_header_list = list(df_test_data.columns)
train_remove_key_list = ["date", "id"]
for remove_key in train_remove_key_list:
if remove_key in test_header_list:
test_header_list.remove(remove_key)
test_input_list = df_test_data[test_header_list].values
test_id_list = df_test_data["id"].values
test_date_list = df_test_data["date"].values
return test_input_list, test_id_list, test_date_list
def __generate_train_data(self):
sorted_train_path = sorted(self.origin_train_path.glob("*"))
sorted_train_len = len(sorted_train_path)
print(f">> all data length: {sorted_train_len}")
if self.is_debug:
sorted_train_path = sorted_train_path[:10]
df_train_data = pd.DataFrame()
for index, date_path in enumerate(self.progress(sorted_train_path)):
df_train_data = pd.concat([df_train_data, self.__merge_date_data(date_path)], ignore_index=True)
print(">> generate all train data success !")
if not self.is_debug:
df_train_data.to_csv(self.generate_train_path, index=False)
print(">> save all data to /datas folder.")
return df_train_data
def __generate_test_data(self):
df_test_data = pd.DataFrame()
test_path_list = list(self.origin_test_path.glob("*"))
for date_path in self.progress(test_path_list):
df_test_data = pd.concat([df_test_data, self.__merge_date_data(date_path, "test")], sort=False)
print(">> save all data to /datas folder.")
df_test_data.to_csv(self.generate_test_path)
print(">> generate test data success !")
return df_test_data
def __merge_date_data(self, date_path, data_type=None):
df_non_ts = pd.read_csv(date_path / "non_ts.csv", index_col="id")
if self.is_remove_extreme:
df_non_ts = self.remove_extreme_value(df_non_ts)
if self.is_ntl:
df_non_ts = self.neutralization(df_non_ts)
if self.is_std:
df_non_ts = self.standardization(df_non_ts)
if data_type == "test":
merge_df = df_non_ts
else:
df_y = pd.read_csv(date_path / "y.csv")
del df_y["date"]
merge_df = pd.merge(df_non_ts, df_y, on="id")
for ts_path in date_path.glob("ts_*.csv"):
ts_name = ts_path.name.split(".csv")[0]
df_ts = pd.read_csv(ts_path, index_col="id")
date = df_ts["date"]
del df_ts["date"]
if self.is_remove_extreme:
df_ts = self.remove_extreme_value(df_ts)
if self.is_std:
df_ts = self.standardization(df_ts)
df_ts_std = self.__get_std(df_ts, ts_name)
merge_df = pd.merge(merge_df, df_ts_std, on="id")
df_ts_mean_0_5 = self.__get_mean_0_5(df_ts, ts_name)
merge_df = pd.merge(merge_df, df_ts_mean_0_5, on="id")
df_ts_mean_0_20 = self.__get_mean_0_20(df_ts, ts_name)
merge_df = pd.merge(merge_df, df_ts_mean_0_20, on="id")
merge_df["date"] = date
return merge_df
@staticmethod
def __get_std(df_input, index_name):
df_output = df_input.T[1:].std().to_frame(name=index_name+"_std")
return df_output
@staticmethod
def __get_mean_0_5(df_input, index_name):
df_output = df_input.T[1:7].mean().to_frame(name=index_name+"_mean_0_5")
return df_output
@staticmethod
def __get_mean_0_20(df_input, index_name):
df_output = df_input.T[1:22].mean().to_frame(name=index_name+"_mean_0_20")
return df_output
def remove_extreme_value(self, df_input):
if self.is_plot:
del df_input["date"]
del df_input["flag"]
fig, (ax0, ax1) = plt.subplots(2, 1, sharey="all")
ax0.set_title('BEFORE /20130201/non_ts.csv remove extreme value')
df_input.plot(ax=ax0)
desc = df_input.describe()
mean_add_3std = desc.loc['mean'] + desc.loc['std'] * 3
mean_minus_3std = desc.loc['mean'] - desc.loc['std'] * 3
df_input = df_input.where(df_input < mean_add_3std, mean_add_3std, axis=1)
df_input = df_input.where(df_input > mean_minus_3std, mean_minus_3std, axis=1)
ax1.set_title('AFTER /20130201/non_ts.csv remove extreme value')
df_input.plot(ax=ax1)
plt.show()
else:
desc = df_input.describe()
mean_add_3std = desc.loc['mean'] + desc.loc['std'] * 3
mean_minus_3std = desc.loc['mean'] - desc.loc['std'] * 3
df_input = df_input.where(df_input < mean_add_3std, mean_add_3std, axis=1)
df_input = df_input.where(df_input > mean_minus_3std, mean_minus_3std, axis=1)
return df_input
# 标准化
@staticmethod
def standardization(df_input):
df_input = df_input.apply(lambda x: (x - np.min(x)) / (np.max(x) - np.min(x)))
df_input = df_input.fillna(0)
return df_input
# 中性化
@staticmethod
def neutralization(df_input):
flag_values = [[v] for v in df_input["flag"].values]
cols = list(df_input.columns)
model = sklearn_model.Model()
skm = model.sklearn_model("LinearRegression")
cols.remove("date")
cols.remove("flag")
for col in cols:
col_values = [[v] for v in df_input[col].values]
skm.fit(flag_values, col_values)
col_preds = skm.predict(flag_values)
res = []
for x, y in zip(col_values, col_preds):
res.append(x[0] - y[0])
df_input[col] = res
return df_input
| 7,361 | 448 | 23 |
a2fa74364a6125d4e4765053cb76ca93208691d6 | 17,331 | py | Python | rules/dr_default.py | 00-ab/willows | 14754329451b5a11a2ea626ecf939014c2bf4cac | [
"Unlicense"
] | null | null | null | rules/dr_default.py | 00-ab/willows | 14754329451b5a11a2ea626ecf939014c2bf4cac | [
"Unlicense"
] | null | null | null | rules/dr_default.py | 00-ab/willows | 14754329451b5a11a2ea626ecf939014c2bf4cac | [
"Unlicense"
] | null | null | null | from __future__ import print_function
import math
import copy
import json
dancer = {
verbs : {}
adjs: {}
}
# dancer describes the state of a conscious being
# relation describes the feeling of one regarding another
dancer["adjs"]["lust"]
dancer["adjs"]["like"]
# define the archetypal relations
dancer["relation"]["arch"] = {
"lust" : 0,
"like" : 0,
"respect" : 0,
}
# define the dancer's abilities
## API:
# MODULE SETTINGS:
# These values used to calibrate action effects.
SMALL_MULTIPLIER = 0.1
MEDIUM_MULTIPLIER = 0.2
LARGE_MULTIPLIER = 0.4
# Key bindings. These are inserted into the game object during _setup_player.
keyDict = {
"y" : "touch",
"t" : "evade",
"r" : "jest",
"f" : "retreat",
"g" : "breathe",
"h" : "advance"
}
# Lists -- these are to be used by the client.
# (Mainly so display functions can be dynamic.)
# My dance_display.py should work for any moveList that is a list of strings
# and any statList that is a list of strings
# or a list of lists which contain only strings.
# BUT: moveList + statList MUST == the keys of p in _setup_player (-'choice')
# (I know that's ugly, sorry.)
moveList = [ 'advance', 'retreat', 'touch', 'evade', 'breathe', 'jest' ]
statList = [ ['earth', 'will'], ['air', 'calm'], ['fire', 'heat'], ['water', 'balance'] ]
playerList = ['0', '1']
# These are some special exceptions.
# Probably not necessary.
## BACKEND:
# UTILITY FUNCTIONS
# These are totally useless ;)
# SMALL
# MED
# LARGE
def _setup_player( e0, a0, f0, w0):
"""
Accepts initial values for eafw,
returns a complete player object.
"""
heat = f0/2
if f0%2 == 1: heat += 1
p = {
'earth' : float(e0),
'will' : float(e0),
'air' : float(a0),
'calm' : float(a0),
'fire' : float(f0),
'heat' :float(heat),
'water' : float(w0),
'balance' : -1.0,
'choice' : None,
'advance' : 1,
'retreat' : 1,
'touch' : 1,
'evade' : 1,
'breathe' : 1,
'jest' : 1
}
p.update( keyDict )
return p
def _execute( player, choice, game_data0, game_data1 ):
"""
Reads from gd0 and writes to gd1,
according to the move with the same name as the player's choice.
"""
# In theory, neither of the below exceptions should ever be raised
# since the client-side function should test both conditions
# before calling a new turn.
# First check to see if the move exists.
if choice in moveList:
pass
else:
raise NoSuchMove
# Second check to see if the move is currently allowed.
if game_data0[ str(player) ][ str(choice) ] == 1:
pass
else:
raise IllegalMove
# Then perform the move.
if player == 0:
other = 1
else:
other = 0
move = execList[ choice ]
game_data1 = move( str(player), str(other), game_data0, game_data1)
# Finally, return the modified object.
return game_data1
def _val_in( val_0, magnitude ):
"""
Returns magnitude with the sign such that abs(val_0 + mag2) < abs(val_0)
If mag < 0, does the opposite.
If abs(mag) > 1, may result in an overshoot.
"""
if val_0 < 0:
pass
elif val_0 > 0:
magnitude = -magnitude
else:
# Because one cannot draw closer to 0 if one is already there:
if magnitude > 0: magnitude = 0
# And since we don't want d to be always negative:
else: magnitude = -magnitude
return magnitude
def _gameover_check( game_data ):
"""
Checks to see if gameover should be declared.
This function defines the encounter-end conditions.
(Maybe it should take some cues from ## MODULE SETTINGS ?)
"""
if game_data["0"]["will"] <= 0 and game_data["1"]["will"] <= 0:
game_data['game']['gameover'] = 1
game_data['game']['gameover_message'] = ( 'SimultaneousExhaustion' )
else:
for p in range( 0, 1 ):
if game_data[ str(p) ]['will'] <= 0:
game_data['game']['gameover'] = 1
game_data['game']['gameover_message'] = ( 'Player ' + str(p) + ' exhaustion.' )
# VERBS SECTION
# This section should include callable functions for each move.
# Each move must accept actor, target, and distance arguments.
# All functions in this section accept a bin for actor or target.
# They read only from game_0 and write only to game_1,
# returning game_1
def _advance( actor, target, game_0, game_1):
"""
Signifies a closening, with or without physical contact.
A bold statement, a step forward, or a glorious charge.
Costs calm; reduces balance.
"""
# This part is the cost. It will always be the same.
game_1[actor]['calm'] -= _small( game_0[actor]["heat"] )
# Advancing does not increase one's balance
# if one pushes against the target.
# (Though frict may change balance.)
if not ( game_0['game']['d'] == 0 and _get_future_d( game_0 ) ):
game_1[actor]['balance'] += 1
# If the future distance is 0, a collision occurs.
# (As long as the target did not evade.)
if _get_future_d( game_0 ) == 0 and game_0[target]['choice'] != 'evade':
game_1 = _frict( actor, target, game_0, game_1 )
# If the two players are already grappling,
# (ie in the same space, at d=0)
# they cannot advance past each other.
# Otherwise, the distance will decrease.
# (If they are at d1, they will switch positions.)
game_1['game']['d'] += _val_in( game_0['game']['d'], 1 )
return game_1
def _retreat( actor, target, game_0, game_1):
"""
Signifies a distancing, a retreat, a coldness
a disreply, a shyness, a step back, or a flight.
Costs calm; reduces balance.
"""
# Reduce calm by small
game_1[actor]['calm'] -= _small( game_0[actor]["heat"] )
# Decrease balance by small
game_1[actor]['balance'] -= 1
# Open distance by 1
if game_0[target]['choice'] == 'advance' and game_0['game']['d'] == 0:
pass
else:
game_1['game']['d'] += _val_in( game_0['game']['d'], -1 )
return game_1
def _touch( actor, target, game_0, game_1):
"""
Signifies phsyical contact.
A brush, caress, strike, grope, or attempt.
"""
# This is the cost
game_1[actor]['calm'] -= _med( game_0[actor]['heat'] )
# Check to see if the move connects.
if abs( _get_future_d( game_0 ) ) <= 1 and game_0[target]['choice'] != 'evade':
# Below is a somewhat silly way of saying
# that a successful touch is like a frict,
# but only affecting the target.
save = copy.deepcopy( game_1[actor] )
_frict( actor, target, game_0, game_1 )
game_1[actor] = copy.deepcopy( save )
return game_1
def _evade( actor, target, game_0, game_1):
"""
A sort of dodge or refusal.
Counteracts the effect of a touch or advance. Rather embarassing against a tease.
Technically does nothing. Other acts may define exceptions for: if game_0[target]['choice'] == 'evade':
"""
if _frict_occurs( game_0 ):
# In this case, _frict_occurs() is _if_frict_would_occur()
# If successful, restores calm.
# (Since you look so cool.)
game_1[actor]['calm'] += _small( game_0[actor]['air'] )
else:
# Otherwise, costs a fair bit.
game_1[actor]['calm'] -= _med( game_0[actor]['heat'] )
return game_1
def _breathe( actor, target, game_0, game_1):
"""
A moment of rest, contemplation, and gathering.
Could signify literal breathing, but also meditation or inaction.
(Totally restores calm. Slightly reduces heat and restores will.)
"""
# See above.
if not _frict_occurs( game_0 ):
game_1[actor]['calm'] = game_0[actor]['air']
game_1[actor]['heat'] -= _small( game_0[actor]['air'] )
game_1[actor]['will'] += _small( game_0[actor]['air'] )
# Closes balance by one.
game_1[actor]['balance'] += _val_in( game_1[actor]['balance'], 1 )
# However: breathe is interrupted by a frict.
# You'll still get some breath back, but receive no other bonuses.
else:
game_1[actor]['calm'] += _large( game_0[actor]['air'] )
return game_1
def _jest( actor, target, game_0, game_1):
"""
A joke or strangeness, encouraging advance and curiosity
by inspiring a passion -- for example anger or desire.
(Adds heat and negative balance -- more effective if the target is retreating or evading.)
"""
game_1[actor]['calm'] -= _small( game_0[actor]['heat'] )
if not game_0[target]['choice'] == 'breathe':
game_1[target]['heat'] += _small( game_0[actor]['heat'] )
# By reducing balance, tease can force the target to advance or suffer in fricts
# It is less useful if the player is already forward-balanced.
game_1[target]['balance'] -= 1
if game_0[target]['choice'] == 'retreat' or game_0[target]['choice'] == 'evade':
game_1[target]['heat'] += _med( game_0[actor]['heat'] )
return game_1
def _frict( actor, target, game_0, game_1):
"""
Represents a kind of clash, collision, or rubbing-together.
Depends on balances.
"""
# Both players receive heat. The one with less receives more.
game_1[target]['heat'] += _small( game_0[actor]['fire'])
game_1[actor]['heat'] += _small( game_0[target]['fire'])
if game_0[actor]['heat'] > game_0[target]['heat']:
game_1[target]['heat'] += _small( game_0[actor]['heat'] )
elif game_0[actor]['heat'] < game_0[target]['heat']:
game_1[actor]['heat'] += _small( game_0[target]['heat'] )
else:
game_1[target]['heat'] += _small( game_0[actor]['heat'] )
game_1[actor]['heat'] += _small( game_0[target]['heat'] )
# If one player's will is less than 25% of the other's
# that player will be pushed back.
if game_0[actor]['will'] > 4 * game_0[target]['will']:
game_1[target]['balance'] -= 1
elif 4 * game_0[actor]['will'] < game_0[target]['will']:
game_1[actor]['balance'] -= 1
# Adds heat to each player, giving the advantage to the player
# whose absolute balance is the smaller percent of their water.
# (So if p0.bal = 1/10 and p1.bal = -1/11, then p1 will have the advantage.)
a_bal = float( abs(game_0[actor]['balance'] )) / game_0[actor]['water']
t_bal = float( abs(game_0[target]['balance'] )) / game_0[target]['water']
if a_bal == t_bal:
game_1[actor]['heat'] += _med( game_0[target]['heat'] )
game_1[target]['heat'] += _med( game_0[actor]['heat'] )
elif a_bal > t_bal:
game_1[actor]['heat'] += _large( game_0[target]['heat'] )
game_1[target]['heat'] += _small( game_0[actor]['heat'] )
elif a_bal < t_bal:
game_1[actor]['heat'] += _small( game_0[target]['heat'] )
game_1[target]['heat'] += _large( game_0[actor]['heat'] )
else:
print( "I think this is impossible, right?" )
return game_1
def _get_future_d( game_0 ):
"""
This somewhat kludgy function calculates the future distance
based on the present distance and the player choices.
Used in collision detection.
"""
d = game_0['game']['d']
if d == 0 and ( game_0['0']['choice'] == 'advance' or game_0['1']['choice'] == 'advance' ):
pass
else:
for p in range( 2 ):
choice = game_0[str(p)]['choice']
if choice == 'advance':
d -= math.copysign(1, d)
elif choice == 'retreat':
d += math.copysign(1, d)
else:
pass
d = int(d)
return d
# The below is used by _execute() to link strings with actions.
# This is a little silly, but I don't know a better way.
# (For some reason, this list can't be written until after the functions it contains.
# Fuck you, Python.)
execList = {
"advance" : _advance,
"retreat" : _retreat,
"touch" : _touch,
"evade" : _evade,
"breathe" : _breathe,
"jest" : _jest
}
# ADJECTIVES SECTION
# This section should include rules for checking and correcting element statuses.
def _earth_check( game_data ):
"""
Without will,
an individual is unable to continue.
"""
for p in range(2):
if game_data[str(p)]['will'] > game_data[str(p)]['earth']:
game_data[str(p)]['will'] = game_data[str(p)]['earth']
if game_data['0']['will'] <= 0 and game_data['1']['will'] <= 0:
game_data['game']['gameover'] = 1
game_data['game']['gameover_message'] = 2
else:
for p in range( 2 ):
if game_data[str(p)]['will'] <= 0:
game_data['game']['gameover'] = 1
game_data['game']['gameover_message'] = p
return game_data
def _air_check( game_data ):
"""
Below-min breath is called exhaustion.
Knowing when to breathe is important.
"""
for p in range( 2 ):
c = game_data[str(p)]['calm']
# Punish will if calm is below zero
if c < 0:
game_data[str(p)]['calm'] = 0
game_data[str(p)]['will'] += c
# Treat Air as maximum Calm
if c > game_data[str(p)]['air']:
game_data[str(p)]['calm'] = game_data[str(p)]['air']
return game_data
def _fire_check( game_data ):
"""
Above-max heat is called mania,
while below-min heat is called depression.
High heat will power-up some moves, but it is risky.
"""
for p in range(2):
h = game_data[str(p)]['heat']
f = game_data[str(p)]['fire']
if h < 0:
game_data[str(p)]['heat'] = 0
game_data[str(p)]['will'] += h
if h > f:
game_data[str(p)]['heat'] = f
game_data[str(p)]['will'] -= ( h - f )
return game_data
def _water_check( game_data ):
"""
Balance is not a magnitude, but a distance from zero.
Zero represents perfect balance,
while the positive represents forwardness and the negative backwardness.
"""
for p in range( 2 ):
b = game_data[str(p)]['balance']
w = game_data[str(p)]['water']
if abs( b ) > w:
game_data[str(p)]['will'] -= ( abs( b ) - w )
if b < 0:
game_data[str(p)]['balance'] = -w
elif b > 0:
game_data[str(p)]['balance'] = w
return game_data
# THESE ARE MINOR AND NONMANDATORY API FUNCTIONS,
# BUT THEIR USE IS RECOMMENDED
def get_stat( dance, player, stat ):
"""
Accepts a bin representing the player
and a string representing the stat
and returns the stat's value.
"""
return dance[ str(player) ][ str(stat) ]
# THE TWO FUNCTIONS BELOW
# ARE THE ONLY ESSENTIAL API FUNCTIONS
def set_stage( p0_e, p0_a, p0_f, p0_w, p1_e, p1_a, p1_f, p1_w, d0, d_max ):
"""
Accepts initial element values for p0 and p1,
as well as initial and maximum distance,
then returns a JSON object describing the game-stage.
"""
game_data = {
'0' : _setup_player( p0_e, p0_a, p0_f, p0_w ),
'1' : _setup_player( p1_e, p1_a, p1_f, p1_w ),
'game' : {
'd' : d0,
'd_max' : d_max,
'turn' : 0,
'0choice' : None,
'1choice' : None,
'gameover' : 0,
'gameover_message' : "ERROR"
# in 'gameover_message', a bool will symbolize that player, a 2 will symbolize both players
}
}
json_data = json.dumps( game_data )
return json_data
def turn( json_data ):
"""
Accepts a JSON object describing the game-stage,
plus a binary representing the active player
and a string representing that player's choice.
Returns a modified JSON object.
"""
# Open the game data
game_data0 = json.loads( json_data )
# These exceptions should make it easy
# to learn if player behavior has violated the rules.
if game_data0['game']['gameover'] == 1:
raise GameOver
for player in playerList:
choice = game_data0[player]['choice']
if not choice in moveList:
raise NoSuchMove
if game_data0[player][choice] == 0:
raise IllegalMove
# Split the game_data into two branches: 0 for reading and 1 for writing.
# For this reason, all action functions must use +/-=, not just =
game_data1 = copy.deepcopy( game_data0 )
# Execute the moves of each player
game_data1 = _execute( 0, game_data0['0']['choice'], game_data0, game_data1 )
game_data1 = _execute( 1, game_data0['1']['choice'], game_data0, game_data1 )
# Reenable all moves.
game_data1 = _enables( game_data1 )
# Disable for next round the moves that were just used.
game_data1 = _disables( game_data1 )
# Check to see if any stat is outside legal bounds
game_data1 = _adj_check( game_data1 )
# Check to see if the game has ended
_gameover_check( game_data1 )
# Finally, increment the turn counter.
game_data1['game']['turn'] += 1
# Write the log
# Repackage and return the game data
new_json_data = json.dumps( game_data1 )
return new_json_data
| 28.364975 | 104 | 0.667878 | from __future__ import print_function
import math
import copy
import json
dancer = {
verbs : {}
adjs: {}
}
# dancer describes the state of a conscious being
# relation describes the feeling of one regarding another
dancer["adjs"]["lust"]
dancer["adjs"]["like"]
# define the archetypal relations
dancer["relation"]["arch"] = {
"lust" : 0,
"like" : 0,
"respect" : 0,
}
# define the dancer's abilities
## API:
# MODULE SETTINGS:
# These values used to calibrate action effects.
SMALL_MULTIPLIER = 0.1
MEDIUM_MULTIPLIER = 0.2
LARGE_MULTIPLIER = 0.4
# Key bindings. These are inserted into the game object during _setup_player.
keyDict = {
"y" : "touch",
"t" : "evade",
"r" : "jest",
"f" : "retreat",
"g" : "breathe",
"h" : "advance"
}
# Lists -- these are to be used by the client.
# (Mainly so display functions can be dynamic.)
# My dance_display.py should work for any moveList that is a list of strings
# and any statList that is a list of strings
# or a list of lists which contain only strings.
# BUT: moveList + statList MUST == the keys of p in _setup_player (-'choice')
# (I know that's ugly, sorry.)
moveList = [ 'advance', 'retreat', 'touch', 'evade', 'breathe', 'jest' ]
statList = [ ['earth', 'will'], ['air', 'calm'], ['fire', 'heat'], ['water', 'balance'] ]
playerList = ['0', '1']
# These are some special exceptions.
# Probably not necessary.
class NoSuchMove( Exception ):
pass
class NoSuchStat( Exception ):
pass
class IllegalMove( Exception ):
pass
class GameOver( Exception ):
pass
## BACKEND:
# UTILITY FUNCTIONS
# These are totally useless ;)
# SMALL
def _small( mag ):
value = ( mag * SMALL_MULTIPLIER )
return (value)
# MED
def _med( mag ):
value = ( mag * MEDIUM_MULTIPLIER )
return (value)
# LARGE
def _large( mag ):
value = ( mag * LARGE_MULTIPLIER )
return (value)
def _setup_player( e0, a0, f0, w0):
"""
Accepts initial values for eafw,
returns a complete player object.
"""
heat = f0/2
if f0%2 == 1: heat += 1
p = {
'earth' : float(e0),
'will' : float(e0),
'air' : float(a0),
'calm' : float(a0),
'fire' : float(f0),
'heat' :float(heat),
'water' : float(w0),
'balance' : -1.0,
'choice' : None,
'advance' : 1,
'retreat' : 1,
'touch' : 1,
'evade' : 1,
'breathe' : 1,
'jest' : 1
}
p.update( keyDict )
return p
def _execute( player, choice, game_data0, game_data1 ):
"""
Reads from gd0 and writes to gd1,
according to the move with the same name as the player's choice.
"""
# In theory, neither of the below exceptions should ever be raised
# since the client-side function should test both conditions
# before calling a new turn.
# First check to see if the move exists.
if choice in moveList:
pass
else:
raise NoSuchMove
# Second check to see if the move is currently allowed.
if game_data0[ str(player) ][ str(choice) ] == 1:
pass
else:
raise IllegalMove
# Then perform the move.
if player == 0:
other = 1
else:
other = 0
move = execList[ choice ]
game_data1 = move( str(player), str(other), game_data0, game_data1)
# Finally, return the modified object.
return game_data1
def _enables( game_data ):
for move in moveList:
game_data['0'][move] = 1
game_data['1'][move] = 1
return game_data
def _disables( game_data ):
# First learn which moves were just used...
choice0 = game_data['0']['choice']
choice1 = game_data['1']['choice']
# ... then disable both of them for the next round.
game_data['0'][choice0] = 0
game_data['1'][choice1] = 0
return game_data
def _val_in( val_0, magnitude ):
"""
Returns magnitude with the sign such that abs(val_0 + mag2) < abs(val_0)
If mag < 0, does the opposite.
If abs(mag) > 1, may result in an overshoot.
"""
if val_0 < 0:
pass
elif val_0 > 0:
magnitude = -magnitude
else:
# Because one cannot draw closer to 0 if one is already there:
if magnitude > 0: magnitude = 0
# And since we don't want d to be always negative:
else: magnitude = -magnitude
return magnitude
def _gameover_check( game_data ):
"""
Checks to see if gameover should be declared.
This function defines the encounter-end conditions.
(Maybe it should take some cues from ## MODULE SETTINGS ?)
"""
if game_data["0"]["will"] <= 0 and game_data["1"]["will"] <= 0:
game_data['game']['gameover'] = 1
game_data['game']['gameover_message'] = ( 'SimultaneousExhaustion' )
else:
for p in range( 0, 1 ):
if game_data[ str(p) ]['will'] <= 0:
game_data['game']['gameover'] = 1
game_data['game']['gameover_message'] = ( 'Player ' + str(p) + ' exhaustion.' )
# VERBS SECTION
# This section should include callable functions for each move.
# Each move must accept actor, target, and distance arguments.
# All functions in this section accept a bin for actor or target.
# They read only from game_0 and write only to game_1,
# returning game_1
def _advance( actor, target, game_0, game_1):
"""
Signifies a closening, with or without physical contact.
A bold statement, a step forward, or a glorious charge.
Costs calm; reduces balance.
"""
# This part is the cost. It will always be the same.
game_1[actor]['calm'] -= _small( game_0[actor]["heat"] )
# Advancing does not increase one's balance
# if one pushes against the target.
# (Though frict may change balance.)
if not ( game_0['game']['d'] == 0 and _get_future_d( game_0 ) ):
game_1[actor]['balance'] += 1
# If the future distance is 0, a collision occurs.
# (As long as the target did not evade.)
if _get_future_d( game_0 ) == 0 and game_0[target]['choice'] != 'evade':
game_1 = _frict( actor, target, game_0, game_1 )
# If the two players are already grappling,
# (ie in the same space, at d=0)
# they cannot advance past each other.
# Otherwise, the distance will decrease.
# (If they are at d1, they will switch positions.)
game_1['game']['d'] += _val_in( game_0['game']['d'], 1 )
return game_1
def _retreat( actor, target, game_0, game_1):
"""
Signifies a distancing, a retreat, a coldness
a disreply, a shyness, a step back, or a flight.
Costs calm; reduces balance.
"""
# Reduce calm by small
game_1[actor]['calm'] -= _small( game_0[actor]["heat"] )
# Decrease balance by small
game_1[actor]['balance'] -= 1
# Open distance by 1
if game_0[target]['choice'] == 'advance' and game_0['game']['d'] == 0:
pass
else:
game_1['game']['d'] += _val_in( game_0['game']['d'], -1 )
return game_1
def _touch( actor, target, game_0, game_1):
"""
Signifies phsyical contact.
A brush, caress, strike, grope, or attempt.
"""
# This is the cost
game_1[actor]['calm'] -= _med( game_0[actor]['heat'] )
# Check to see if the move connects.
if abs( _get_future_d( game_0 ) ) <= 1 and game_0[target]['choice'] != 'evade':
# Below is a somewhat silly way of saying
# that a successful touch is like a frict,
# but only affecting the target.
save = copy.deepcopy( game_1[actor] )
_frict( actor, target, game_0, game_1 )
game_1[actor] = copy.deepcopy( save )
return game_1
def _evade( actor, target, game_0, game_1):
"""
A sort of dodge or refusal.
Counteracts the effect of a touch or advance. Rather embarassing against a tease.
Technically does nothing. Other acts may define exceptions for: if game_0[target]['choice'] == 'evade':
"""
if _frict_occurs( game_0 ):
# In this case, _frict_occurs() is _if_frict_would_occur()
# If successful, restores calm.
# (Since you look so cool.)
game_1[actor]['calm'] += _small( game_0[actor]['air'] )
else:
# Otherwise, costs a fair bit.
game_1[actor]['calm'] -= _med( game_0[actor]['heat'] )
return game_1
def _breathe( actor, target, game_0, game_1):
"""
A moment of rest, contemplation, and gathering.
Could signify literal breathing, but also meditation or inaction.
(Totally restores calm. Slightly reduces heat and restores will.)
"""
# See above.
if not _frict_occurs( game_0 ):
game_1[actor]['calm'] = game_0[actor]['air']
game_1[actor]['heat'] -= _small( game_0[actor]['air'] )
game_1[actor]['will'] += _small( game_0[actor]['air'] )
# Closes balance by one.
game_1[actor]['balance'] += _val_in( game_1[actor]['balance'], 1 )
# However: breathe is interrupted by a frict.
# You'll still get some breath back, but receive no other bonuses.
else:
game_1[actor]['calm'] += _large( game_0[actor]['air'] )
return game_1
def _jest( actor, target, game_0, game_1):
"""
A joke or strangeness, encouraging advance and curiosity
by inspiring a passion -- for example anger or desire.
(Adds heat and negative balance -- more effective if the target is retreating or evading.)
"""
game_1[actor]['calm'] -= _small( game_0[actor]['heat'] )
if not game_0[target]['choice'] == 'breathe':
game_1[target]['heat'] += _small( game_0[actor]['heat'] )
# By reducing balance, tease can force the target to advance or suffer in fricts
# It is less useful if the player is already forward-balanced.
game_1[target]['balance'] -= 1
if game_0[target]['choice'] == 'retreat' or game_0[target]['choice'] == 'evade':
game_1[target]['heat'] += _med( game_0[actor]['heat'] )
return game_1
def _frict_occurs( game_0 ):
for p in playerList:
if game_0[str(p)]['choice'] == "advance" and _get_future_d( game_0 ) == 0:
return 1
elif game_0[str(p)]['choice'] == "touch" and abs(_get_future_d( game_0 )) <= 1:
return 1
else:
pass
return 0
def _frict( actor, target, game_0, game_1):
"""
Represents a kind of clash, collision, or rubbing-together.
Depends on balances.
"""
# Both players receive heat. The one with less receives more.
game_1[target]['heat'] += _small( game_0[actor]['fire'])
game_1[actor]['heat'] += _small( game_0[target]['fire'])
if game_0[actor]['heat'] > game_0[target]['heat']:
game_1[target]['heat'] += _small( game_0[actor]['heat'] )
elif game_0[actor]['heat'] < game_0[target]['heat']:
game_1[actor]['heat'] += _small( game_0[target]['heat'] )
else:
game_1[target]['heat'] += _small( game_0[actor]['heat'] )
game_1[actor]['heat'] += _small( game_0[target]['heat'] )
# If one player's will is less than 25% of the other's
# that player will be pushed back.
if game_0[actor]['will'] > 4 * game_0[target]['will']:
game_1[target]['balance'] -= 1
elif 4 * game_0[actor]['will'] < game_0[target]['will']:
game_1[actor]['balance'] -= 1
# Adds heat to each player, giving the advantage to the player
# whose absolute balance is the smaller percent of their water.
# (So if p0.bal = 1/10 and p1.bal = -1/11, then p1 will have the advantage.)
a_bal = float( abs(game_0[actor]['balance'] )) / game_0[actor]['water']
t_bal = float( abs(game_0[target]['balance'] )) / game_0[target]['water']
if a_bal == t_bal:
game_1[actor]['heat'] += _med( game_0[target]['heat'] )
game_1[target]['heat'] += _med( game_0[actor]['heat'] )
elif a_bal > t_bal:
game_1[actor]['heat'] += _large( game_0[target]['heat'] )
game_1[target]['heat'] += _small( game_0[actor]['heat'] )
elif a_bal < t_bal:
game_1[actor]['heat'] += _small( game_0[target]['heat'] )
game_1[target]['heat'] += _large( game_0[actor]['heat'] )
else:
print( "I think this is impossible, right?" )
return game_1
def _get_future_d( game_0 ):
"""
This somewhat kludgy function calculates the future distance
based on the present distance and the player choices.
Used in collision detection.
"""
d = game_0['game']['d']
if d == 0 and ( game_0['0']['choice'] == 'advance' or game_0['1']['choice'] == 'advance' ):
pass
else:
for p in range( 2 ):
choice = game_0[str(p)]['choice']
if choice == 'advance':
d -= math.copysign(1, d)
elif choice == 'retreat':
d += math.copysign(1, d)
else:
pass
d = int(d)
return d
# The below is used by _execute() to link strings with actions.
# This is a little silly, but I don't know a better way.
# (For some reason, this list can't be written until after the functions it contains.
# Fuck you, Python.)
execList = {
"advance" : _advance,
"retreat" : _retreat,
"touch" : _touch,
"evade" : _evade,
"breathe" : _breathe,
"jest" : _jest
}
# ADJECTIVES SECTION
# This section should include rules for checking and correcting element statuses.
def _adj_check( game_data ):
# Checks all play adjective/attributes/stats in sequence.
game_data = _air_check( game_data) # ; - )
game_data = _fire_check( game_data)
game_data = _water_check( game_data)
game_data = _earth_check( game_data)
return game_data
def _earth_check( game_data ):
"""
Without will,
an individual is unable to continue.
"""
for p in range(2):
if game_data[str(p)]['will'] > game_data[str(p)]['earth']:
game_data[str(p)]['will'] = game_data[str(p)]['earth']
if game_data['0']['will'] <= 0 and game_data['1']['will'] <= 0:
game_data['game']['gameover'] = 1
game_data['game']['gameover_message'] = 2
else:
for p in range( 2 ):
if game_data[str(p)]['will'] <= 0:
game_data['game']['gameover'] = 1
game_data['game']['gameover_message'] = p
return game_data
def _air_check( game_data ):
"""
Below-min breath is called exhaustion.
Knowing when to breathe is important.
"""
for p in range( 2 ):
c = game_data[str(p)]['calm']
# Punish will if calm is below zero
if c < 0:
game_data[str(p)]['calm'] = 0
game_data[str(p)]['will'] += c
# Treat Air as maximum Calm
if c > game_data[str(p)]['air']:
game_data[str(p)]['calm'] = game_data[str(p)]['air']
return game_data
def _fire_check( game_data ):
"""
Above-max heat is called mania,
while below-min heat is called depression.
High heat will power-up some moves, but it is risky.
"""
for p in range(2):
h = game_data[str(p)]['heat']
f = game_data[str(p)]['fire']
if h < 0:
game_data[str(p)]['heat'] = 0
game_data[str(p)]['will'] += h
if h > f:
game_data[str(p)]['heat'] = f
game_data[str(p)]['will'] -= ( h - f )
return game_data
def _water_check( game_data ):
"""
Balance is not a magnitude, but a distance from zero.
Zero represents perfect balance,
while the positive represents forwardness and the negative backwardness.
"""
for p in range( 2 ):
b = game_data[str(p)]['balance']
w = game_data[str(p)]['water']
if abs( b ) > w:
game_data[str(p)]['will'] -= ( abs( b ) - w )
if b < 0:
game_data[str(p)]['balance'] = -w
elif b > 0:
game_data[str(p)]['balance'] = w
return game_data
# THESE ARE MINOR AND NONMANDATORY API FUNCTIONS,
# BUT THEIR USE IS RECOMMENDED
def get_stat( dance, player, stat ):
"""
Accepts a bin representing the player
and a string representing the stat
and returns the stat's value.
"""
return dance[ str(player) ][ str(stat) ]
def mod_stat( dance, player, stat, magnitude ):
dance[ str(player) ][ str(stat) ] += int( magnitude )
return dance
def set_stat( dance, player, stat, magnitude ):
dance[ str(player) ][ str(stat) ] = int( magnitude )
return dance
def get_dist( dance ):
return dance[ "game" ][ "d" ]
def mod_dist( dance, magnitude ):
dance[ "game" ][ "d" ] += int( magnitude )
return dance
def set_dist( dance, magnitude ):
dance[ "game" ][ "d" ] = int( magnitude )
return dance
# THE TWO FUNCTIONS BELOW
# ARE THE ONLY ESSENTIAL API FUNCTIONS
def set_stage( p0_e, p0_a, p0_f, p0_w, p1_e, p1_a, p1_f, p1_w, d0, d_max ):
"""
Accepts initial element values for p0 and p1,
as well as initial and maximum distance,
then returns a JSON object describing the game-stage.
"""
game_data = {
'0' : _setup_player( p0_e, p0_a, p0_f, p0_w ),
'1' : _setup_player( p1_e, p1_a, p1_f, p1_w ),
'game' : {
'd' : d0,
'd_max' : d_max,
'turn' : 0,
'0choice' : None,
'1choice' : None,
'gameover' : 0,
'gameover_message' : "ERROR"
# in 'gameover_message', a bool will symbolize that player, a 2 will symbolize both players
}
}
json_data = json.dumps( game_data )
return json_data
def turn( json_data ):
"""
Accepts a JSON object describing the game-stage,
plus a binary representing the active player
and a string representing that player's choice.
Returns a modified JSON object.
"""
# Open the game data
game_data0 = json.loads( json_data )
# These exceptions should make it easy
# to learn if player behavior has violated the rules.
if game_data0['game']['gameover'] == 1:
raise GameOver
for player in playerList:
choice = game_data0[player]['choice']
if not choice in moveList:
raise NoSuchMove
if game_data0[player][choice] == 0:
raise IllegalMove
# Split the game_data into two branches: 0 for reading and 1 for writing.
# For this reason, all action functions must use +/-=, not just =
game_data1 = copy.deepcopy( game_data0 )
# Execute the moves of each player
game_data1 = _execute( 0, game_data0['0']['choice'], game_data0, game_data1 )
game_data1 = _execute( 1, game_data0['1']['choice'], game_data0, game_data1 )
# Reenable all moves.
game_data1 = _enables( game_data1 )
# Disable for next round the moves that were just used.
game_data1 = _disables( game_data1 )
# Check to see if any stat is outside legal bounds
game_data1 = _adj_check( game_data1 )
# Check to see if the game has ended
_gameover_check( game_data1 )
# Finally, increment the turn counter.
game_data1['game']['turn'] += 1
# Write the log
# Repackage and return the game data
new_json_data = json.dumps( game_data1 )
return new_json_data
| 1,342 | 59 | 366 |
29ccba1a2cac835de3bf2e7be861a69f13af32ef | 4,653 | py | Python | Arbre.py | AmadouSY/Construction-de-mobiles | 5c954dc3d5fa99bbdce2bdab395008d863e6178c | [
"MIT"
] | null | null | null | Arbre.py | AmadouSY/Construction-de-mobiles | 5c954dc3d5fa99bbdce2bdab395008d863e6178c | [
"MIT"
] | null | null | null | Arbre.py | AmadouSY/Construction-de-mobiles | 5c954dc3d5fa99bbdce2bdab395008d863e6178c | [
"MIT"
] | null | null | null | ##### CLASSE ARBRE #####
#Initialise l'arbre
#Emplacement du sous arbre gauche
#Feuille la plus lourde de l'arbre
#Liste des feuille de l'arbre
#Largeur du noeud
#Place les arbres
#Largeur de l'arbre pour le dessin
#Longueur de l'arbre pour le dessin
#Profondeur de l'arbre
#Construit le mobile
###### CLASSE FEUILLE #####
| 26.140449 | 80 | 0.566301 | ##### CLASSE ARBRE #####
class Arbre:
#Initialise l'arbre
def __init__(self):
#Valeur de l'arbre
self.valeur = 0
#Fils gauche
self.gauche = None
#Fils droit
self.droit = None
#Position de l'arbre
self.position = Position()
def __str__(self):
return "["+str(self.gauche)+","+str(self.droit)+"]"
def __len__(self):
return len(self.gauche) + len(self.droit)
def poid(self):
return self.gauche.poid() + self.droit.poid()
#Emplacement du sous arbre gauche
def equilibre(self):
if type(self.gauche) is Arbre:
self.gauche.equilibre()
if type(self.droit) is Arbre:
self.droit.equilibre()
self.valeur = self.droit.poid() / (self.gauche.poid()+self.droit.poid())
#Feuille la plus lourde de l'arbre
def maximum(self):
if self.gauche.maximum() > self.droit.maximum():
return self.gauche.maximum()
else:
return self.droit.maximum()
#Liste des feuille de l'arbre
def listeElement(self):
l = self.gauche.listeElement()
l.extend(self.droit.listeElement())
return l
#Largeur du noeud
def largeurArbre(self):
g = 0
d = 0
if type(self.gauche) is Feuille:
g = self.gauche.valeur
else:
g = self.gauche.largeurArbre()
if type(self.droit) is Feuille:
d = self.droit.valeur
else:
d = self.droit.largeurArbre()
return g+d
#Place les arbres
def placerArbre(self):
largeur = self.largeurArbre()//2
self.gauche.position.x = -largeur*self.valeur
self.gauche.position.y = 0
self.droit.position.x = self.gauche.position.x + largeur
self.droit.position.y = 0
if type(self.gauche) is not Feuille:
self.gauche.placerArbre()
if type(self.droit) is not Feuille:
self.droit.placerArbre()
#Largeur de l'arbre pour le dessin
def largeur(self):
g = self.gauche.largeurGauche() + self.gauche.position.x
d = self.droit.largeurDroit() + self.droit.position.x
return - g + d
def largeurGauche(self):
return self.gauche.position.x + self.gauche.largeurGauche()
def largeurDroit(self):
return self.droit.position.x + self.droit.largeurDroit()
#Longueur de l'arbre pour le dessin
def longueur(self):
hauteur = self.maximum()
return self.longueurRec(hauteur)
def longueurRec(self, hauteur):
d = self.droit.position.y + self.droit.longueurRec(hauteur)
g = self.gauche.position.y + self.gauche.longueurRec(hauteur)
return hauteur + max(d,g)
#Profondeur de l'arbre
def hauteur(self):
if self.gauche.hauteur() > self.droit.hauteur():
return self.gauche.hauteur()+1
return self.droit.hauteur()+1
#Construit le mobile
def constructionArbre(self, v):
poidG = self.gauche.poid()
poidD = self.droit.poid()
if v >= (poidG+poidD):
A = Arbre()
A.gauche = self
A.droit = Feuille(v)
return A
if poidG == poidD:
if self.gauche.hauteur() > self.droit.hauteur():
self.droit = self.droit.constructionArbre(v)
else:
self.gauche = self.gauche.constructionArbre(v)
elif poidG > poidD :
self.droit = self.droit.constructionArbre(v)
else:
self.gauche = self.gauche.constructionArbre(v)
return self
###### CLASSE FEUILLE #####
class Feuille(Arbre):
def __init__(self, v):
self.valeur = v
self.position = Position()
def __str__(self):
return str(self.valeur)
def __len__(self):
return 1
def poid(self):
return self.valeur
def maximum(self):
return self.valeur
def listeElement(self):
return [self.valeur]
def largeurGauche(self):
return -self.valeur//2
def largeurDroit(self):
return self.valeur//2
def longueur(self):
hauteur = self.maximum()
return self.longeurRec(hauteur)
def longueurRec(self, hauteur):
return hauteur + self.valeur//2
def hauteur(self):
return 1
def constructionArbre(self, v):
p = Arbre()
p.gauche = self
p.droit = Feuille(v)
return p
class Position:
def __init__(self):
self.x = 0
self.y = 0
| 3,359 | -15 | 897 |
698ff5d66b57b03332ca7ef940aca00b96b031c8 | 1,275 | py | Python | src/MouseClick.py | radialia/Gestured-Mouse | 6c1a41fa552a959ba28453e916709f170142a682 | [
"MIT"
] | 1 | 2022-01-31T10:11:05.000Z | 2022-01-31T10:11:05.000Z | src/MouseClick.py | radialia/Air-Mouse | 6c1a41fa552a959ba28453e916709f170142a682 | [
"MIT"
] | null | null | null | src/MouseClick.py | radialia/Air-Mouse | 6c1a41fa552a959ba28453e916709f170142a682 | [
"MIT"
] | null | null | null | import cv2
import math
from pynput.mouse import Button
| 33.552632 | 78 | 0.546667 | import cv2
import math
from pynput.mouse import Button
def MouseClick(frame, landmarkList, mouse):
clicked = False
if(len(landmarkList) != 0):
# Gets landmarks of index and middle finger
index_x, index_y = landmarkList[8][1], landmarkList[8][2]
middle_x, middle_y = landmarkList[12][1], landmarkList[12][2]
cv2.circle(frame, (index_x, index_y), 15, (255, 0, 0), cv2.FILLED)
cv2.circle(frame, (middle_x, middle_y),
15, (255, 0, 0), cv2.FILLED)
cv2.line(frame, (index_x, index_y),
(middle_x, middle_y), (255, 255, 0), 2)
# Calculate center
center_x, center_y = (index_x+middle_x)//2, (index_y+middle_y)//2
# Get distance
distance = math.sqrt(
math.pow((index_x-middle_x), 2) + math.pow((index_y-middle_y), 2))
# Detect distance
if(distance < 50):
cv2.circle(frame, (center_x, center_y),
15, (0, 255, 0), cv2.FILLED)
if(clicked != True):
mouse.click(Button.left, 1)
clicked = True
if(distance > 50):
cv2.circle(frame, (center_x, center_y),
15, (0, 0, 255), cv2.FILLED)
clicked = False
| 1,196 | 0 | 23 |
628e9f8ac0080ab46d87ed0261cbe4bc729e3273 | 2,003 | py | Python | deewr/variables.py | fromz/deewr-tga | bd913d2b70dd83dc7dfa2f2da9cf19f64122ab0e | [
"MIT"
] | null | null | null | deewr/variables.py | fromz/deewr-tga | bd913d2b70dd83dc7dfa2f2da9cf19f64122ab0e | [
"MIT"
] | 2 | 2021-03-31T19:58:26.000Z | 2021-12-13T20:41:50.000Z | deewr/variables.py | fromz/deewr-tga | bd913d2b70dd83dc7dfa2f2da9cf19f64122ab0e | [
"MIT"
] | null | null | null | import re
def elem2dict(node):
"""
Convert an lxml.etree node tree into a dict.
"""
d = {}
for e in node.iterchildren():
key = e.tag.split('}')[1] if '}' in e.tag else e.tag
value = e.text if e.text else elem2dict(e)
d[key] = value
return d
| 30.348485 | 92 | 0.624064 | import re
def elem2dict(node):
"""
Convert an lxml.etree node tree into a dict.
"""
d = {}
for e in node.iterchildren():
key = e.tag.split('}')[1] if '}' in e.tag else e.tag
value = e.text if e.text else elem2dict(e)
d[key] = value
return d
class VariableExtractor:
def __init__(self, xmlNodes):
self.data = {}
for xmlNode in xmlNodes:
d = elem2dict(xmlNode)
self.data[d['ID']] = d
def getbyname(self, name):
for id in self.data:
data = self.data[id]
if "Name" in data and isinstance(data['Name'], str):
if data['Name'].upper() == name.upper():
return data
class VariableAssignmentExtractor:
def __init__(self, xmlNodes):
self.data = {}
for xmlNode in xmlNodes:
d = elem2dict(xmlNode)
self.data[d['ID']] = d
def resolve_variable_value(variable, variable_assignment):
if variable_assignment is None:
return variable['Value']
if variable['Type'] == '0':
return variable_assignment['Value']
print("dont know how to resolve that variable type", variable)
exit(1)
def resolve_template_variables(variable_assignment_extractor, variable_extractor, template):
regex = r"<.+?>"
matches = re.finditer(regex, template, re.MULTILINE)
for matchNum, match in enumerate(matches, start=1):
templateMatch = match.group()
variableName = templateMatch[1:len(templateMatch)-1]
codeVariable = variable_extractor.getbyname(variableName)
if codeVariable:
codeAssignment = None
if codeVariable['ID'] in variable_assignment_extractor.data:
codeAssignment = variable_assignment_extractor.data[codeVariable['ID']]
resolvedVariable = resolve_variable_value(codeVariable, codeAssignment)
template = template.replace(templateMatch, resolvedVariable)
return template | 1,520 | 16 | 173 |
e5deb6e08999615678849e1f02b3b0b5770df613 | 4,072 | py | Python | setup.py | AlexBourassa/nspyre | d254af09c7c8377552e85dba6f60b150fbb8da2e | [
"MIT"
] | 8 | 2019-12-06T14:49:34.000Z | 2020-07-03T18:46:45.000Z | setup.py | nspyre-org/nspyre | d254af09c7c8377552e85dba6f60b150fbb8da2e | [
"BSD-3-Clause"
] | 31 | 2020-09-21T21:01:06.000Z | 2021-12-10T03:27:26.000Z | setup.py | NSpyre-Dev/nspyre | d254af09c7c8377552e85dba6f60b150fbb8da2e | [
"BSD-3-Clause"
] | 4 | 2020-10-07T23:58:13.000Z | 2022-03-01T15:22:34.000Z | from setuptools import setup, find_packages
import codecs
import pathlib
import re
here = pathlib.Path(__file__).parent.resolve()
def read(*parts):
"""
Build an absolute path from *parts* and and return the contents of the
resulting file. Assume UTF-8 encoding.
"""
with codecs.open(pathlib.PurePath(here, *parts), "rb", "utf-8") as f:
return f.read()
def find_version(*file_paths):
"""
Build a path from *file_paths* and search for a ``__version__``
string inside.
"""
version_file = read(*file_paths)
version_match = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M
)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
meta_path = pathlib.PurePath('src', 'nspyre', '__init__.py')
version = find_version(meta_path)
long_description = (here / 'README.md').read_text(encoding='utf-8')
setup(
name='nspyre',
version=version,
license='BSD 3-Clause License',
description='Networked Scientific Python Research Environment',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/nspyre-org/nspyre',
author='Alexandre Bourassa',
author_email='abourassa@uchicago.edu',
maintainer='Michael Solomon',
maintainer_email='msolo@uchicago.edu',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: IPython',
'Framework :: Jupyter',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: User Interfaces',
'Topic :: System :: Distributed Computing',
'Topic :: System :: Logging',
],
keywords='nspyre, measurement toolkit, experimentation platform, physics, science, research',
package_dir={'': 'src'},
packages=find_packages(where='src'),
zip_safe=False,
python_requires='>=3.8, <4',
install_requires=[
# SciPy
'numpy>=1.19.1',
'scipy>=1.5.2',
'pandas>=1.1.2',
# MongoDB
'pymongo>=3.10.1',
# Qt
'pyqt5>=5.12.3',
'pyqtgraph>=0.11.0',
'qscintilla>=2.11.2',
# VISA
'pyvisa>=1.10.1',
# Lantz
'pint>=0.15',
'pimpmyclass>=0.4.3',
'lantzdev>=0.5.2',
# Utilities
'parse>=1.18.0',
'tqdm>=4.49.0',
'rpyc>=4.1.5',
],
extras_require={
'dev': [
'pytest>=6.1.2',
'pytest-cov',
'psutil>=5.7.3',
]
},
test_requires=[
'pytest>=6.1.2',
'pytest-cov',
'psutil>=5.7.3',
],
test_suite='tests',
entry_points={
'console_scripts': [
'nspyre=nspyre.gui:main',
'nspyre-config=nspyre.config.config_cli:main',
'nspyre-mongodb=nspyre.mongodb:main',
'nspyre-inserv=nspyre.inserv:main',
],
},
project_urls={
'Bug Reports': 'https://github.com/nspyre-org/nspyre/issues',
'Source': 'https://github.com/nspyre-org/nspyre/',
},
include_package_data=True,
options={'bdist_wheel': {'universal': '1'}},
)
| 31.083969 | 97 | 0.585953 | from setuptools import setup, find_packages
import codecs
import pathlib
import re
here = pathlib.Path(__file__).parent.resolve()
def read(*parts):
"""
Build an absolute path from *parts* and and return the contents of the
resulting file. Assume UTF-8 encoding.
"""
with codecs.open(pathlib.PurePath(here, *parts), "rb", "utf-8") as f:
return f.read()
def find_version(*file_paths):
"""
Build a path from *file_paths* and search for a ``__version__``
string inside.
"""
version_file = read(*file_paths)
version_match = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M
)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
meta_path = pathlib.PurePath('src', 'nspyre', '__init__.py')
version = find_version(meta_path)
long_description = (here / 'README.md').read_text(encoding='utf-8')
setup(
name='nspyre',
version=version,
license='BSD 3-Clause License',
description='Networked Scientific Python Research Environment',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/nspyre-org/nspyre',
author='Alexandre Bourassa',
author_email='abourassa@uchicago.edu',
maintainer='Michael Solomon',
maintainer_email='msolo@uchicago.edu',
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: IPython',
'Framework :: Jupyter',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Operating System :: Unix',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Visualization',
'Topic :: Software Development :: Libraries',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Software Development :: User Interfaces',
'Topic :: System :: Distributed Computing',
'Topic :: System :: Logging',
],
keywords='nspyre, measurement toolkit, experimentation platform, physics, science, research',
package_dir={'': 'src'},
packages=find_packages(where='src'),
zip_safe=False,
python_requires='>=3.8, <4',
install_requires=[
# SciPy
'numpy>=1.19.1',
'scipy>=1.5.2',
'pandas>=1.1.2',
# MongoDB
'pymongo>=3.10.1',
# Qt
'pyqt5>=5.12.3',
'pyqtgraph>=0.11.0',
'qscintilla>=2.11.2',
# VISA
'pyvisa>=1.10.1',
# Lantz
'pint>=0.15',
'pimpmyclass>=0.4.3',
'lantzdev>=0.5.2',
# Utilities
'parse>=1.18.0',
'tqdm>=4.49.0',
'rpyc>=4.1.5',
],
extras_require={
'dev': [
'pytest>=6.1.2',
'pytest-cov',
'psutil>=5.7.3',
]
},
test_requires=[
'pytest>=6.1.2',
'pytest-cov',
'psutil>=5.7.3',
],
test_suite='tests',
entry_points={
'console_scripts': [
'nspyre=nspyre.gui:main',
'nspyre-config=nspyre.config.config_cli:main',
'nspyre-mongodb=nspyre.mongodb:main',
'nspyre-inserv=nspyre.inserv:main',
],
},
project_urls={
'Bug Reports': 'https://github.com/nspyre-org/nspyre/issues',
'Source': 'https://github.com/nspyre-org/nspyre/',
},
include_package_data=True,
options={'bdist_wheel': {'universal': '1'}},
)
| 0 | 0 | 0 |
ba08a1c3131298618b80139e7d5cc04315de0e4d | 2,984 | py | Python | code/generate_predictions.py | jpedrocm/jpcm-lista2-codigo | 8c1f867e3cc659cd262f8d9cd3521ccc5f1e8fd8 | [
"MIT"
] | 1 | 2019-03-15T08:54:08.000Z | 2019-03-15T08:54:08.000Z | code/generate_predictions.py | jpedrocm/pool-pruning-experiment | 8c1f867e3cc659cd262f8d9cd3521ccc5f1e8fd8 | [
"MIT"
] | null | null | null | code/generate_predictions.py | jpedrocm/pool-pruning-experiment | 8c1f867e3cc659cd262f8d9cd3521ccc5f1e8fd8 | [
"MIT"
] | null | null | null | ###############################################################################
import numpy as np
import random as rn
#DO NOT CHANGE THIS
np.random.seed(1478)
rn.seed(2264)
###################
from utils import load_datasets_filenames, load_experiment_configuration
from utils import load_dataset, save_predictions
from utils import select_validation_set
from utils import get_voting_pool_size, calculate_pool_diversity
from sklearn.model_selection import StratifiedKFold
if __name__ == "__main__":
print "Step 1 - Loading configurations"
datasets_filenames = load_datasets_filenames()
config = load_experiment_configuration()
predictions = {}
exp = 1
print "Step 2 - Starting experiment"
for dataset_filename in datasets_filenames:
instances, gold_labels = load_dataset(dataset_filename)
skfold = StratifiedKFold(n_splits = config["num_folds"],
shuffle = True)
gold_labels = (gold_labels["defects"] == 'true').astype(int)
predictions[dataset_filename] = {}
for fold, division in enumerate(skfold.split(X=instances, y=gold_labels), 1):
train_idxs = division[0]
test_idxs = division[1]
train_instances = instances.iloc[train_idxs].values
train_gold_labels = gold_labels.iloc[train_idxs].values.ravel()
test_instances = instances.iloc[test_idxs].values
test_gold_labels = gold_labels.iloc[test_idxs].values.ravel()
predictions[dataset_filename][fold] = {}
predictions[dataset_filename][fold]["gold_labels"] = test_gold_labels.tolist()
for hardness_type, filter_func in config["validation_hardnesses"]:
validation_instances, validation_gold_labels = select_validation_set(
train_instances, train_gold_labels, filter_func, config["kdn"])
predictions[dataset_filename][fold][hardness_type] = {}
subpredictions = predictions[dataset_filename][fold][hardness_type]
base_clf = config["base_classifier"]()
clf_pool = config["generation_strategy"](base_clf, config["pool_size"])
clf_pool.fit(train_instances, train_gold_labels)
for strategy_name, pruning_strategy in config["pruning_strategies"]:
pruned_pool = pruning_strategy(clf_pool, validation_instances,
validation_gold_labels)
pool_rem_size = get_voting_pool_size(pruned_pool)
cur_predictions = pruned_pool.predict(test_instances)
data_arr = [cur_predictions.astype(int).tolist(), pool_rem_size]
for measure in config["diversity_measures"]:
measure_value = calculate_pool_diversity(measure,
pruned_pool,
validation_instances,
validation_gold_labels,
pool_rem_size)
data_arr.append(measure_value)
subpredictions[strategy_name] = data_arr
print "Experiment " + str(exp)
exp+=1
print "Step 2 - Finished experiment"
print "Step 3 - Storing predictions"
save_predictions(predictions) | 33.52809 | 81 | 0.696716 | ###############################################################################
import numpy as np
import random as rn
#DO NOT CHANGE THIS
np.random.seed(1478)
rn.seed(2264)
###################
from utils import load_datasets_filenames, load_experiment_configuration
from utils import load_dataset, save_predictions
from utils import select_validation_set
from utils import get_voting_pool_size, calculate_pool_diversity
from sklearn.model_selection import StratifiedKFold
if __name__ == "__main__":
print "Step 1 - Loading configurations"
datasets_filenames = load_datasets_filenames()
config = load_experiment_configuration()
predictions = {}
exp = 1
print "Step 2 - Starting experiment"
for dataset_filename in datasets_filenames:
instances, gold_labels = load_dataset(dataset_filename)
skfold = StratifiedKFold(n_splits = config["num_folds"],
shuffle = True)
gold_labels = (gold_labels["defects"] == 'true').astype(int)
predictions[dataset_filename] = {}
for fold, division in enumerate(skfold.split(X=instances, y=gold_labels), 1):
train_idxs = division[0]
test_idxs = division[1]
train_instances = instances.iloc[train_idxs].values
train_gold_labels = gold_labels.iloc[train_idxs].values.ravel()
test_instances = instances.iloc[test_idxs].values
test_gold_labels = gold_labels.iloc[test_idxs].values.ravel()
predictions[dataset_filename][fold] = {}
predictions[dataset_filename][fold]["gold_labels"] = test_gold_labels.tolist()
for hardness_type, filter_func in config["validation_hardnesses"]:
validation_instances, validation_gold_labels = select_validation_set(
train_instances, train_gold_labels, filter_func, config["kdn"])
predictions[dataset_filename][fold][hardness_type] = {}
subpredictions = predictions[dataset_filename][fold][hardness_type]
base_clf = config["base_classifier"]()
clf_pool = config["generation_strategy"](base_clf, config["pool_size"])
clf_pool.fit(train_instances, train_gold_labels)
for strategy_name, pruning_strategy in config["pruning_strategies"]:
pruned_pool = pruning_strategy(clf_pool, validation_instances,
validation_gold_labels)
pool_rem_size = get_voting_pool_size(pruned_pool)
cur_predictions = pruned_pool.predict(test_instances)
data_arr = [cur_predictions.astype(int).tolist(), pool_rem_size]
for measure in config["diversity_measures"]:
measure_value = calculate_pool_diversity(measure,
pruned_pool,
validation_instances,
validation_gold_labels,
pool_rem_size)
data_arr.append(measure_value)
subpredictions[strategy_name] = data_arr
print "Experiment " + str(exp)
exp+=1
print "Step 2 - Finished experiment"
print "Step 3 - Storing predictions"
save_predictions(predictions) | 0 | 0 | 0 |
f15b72c2d65ffa81c60de9b17f396cd340613c1e | 4,350 | py | Python | roonremote.py | matteck/roonrest | ce881a0ee89abc40b410f1b88764c4f0983fa3b0 | [
"MIT"
] | 1 | 2017-11-13T04:29:44.000Z | 2017-11-13T04:29:44.000Z | roonremote.py | matteck/roonrest | ce881a0ee89abc40b410f1b88764c4f0983fa3b0 | [
"MIT"
] | null | null | null | roonremote.py | matteck/roonrest | ce881a0ee89abc40b410f1b88764c4f0983fa3b0 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import evdev
import select
import requests
import subprocess
import re
from datetime import datetime
roon_base_url = "http://greenspeaker:3000/api/v1"
harmony_base_url = "http://m1:8282/hubs/harmony-hub/devices/schiit-amp/commands"
p = re.compile('"zone_id": "([a-z0-9]+)",\n *"display_name": "Hifi \+ 1"')
devices = {}
for fn in evdev.list_devices():
print(fn)
dev = evdev.InputDevice(fn)
if dev.name.find('HBGIC') >= 0:
devices[dev.fd] = dev
print(devices)
last_volume_change = datetime.now()
while True:
r, w, x = select.select(devices, [], [])
for fd in r:
for event in devices[fd].read():
url = None
cmd = None
if event.type == evdev.ecodes.EV_KEY:
myzone = None
zones = requests.get("%s/zones" % roon_base_url).json()
for z in zones:
if zones[z]['display_name'] == "Hifi + 1":
myzone = zones[z]['zone_id']
break
if not myzone:
myzone = requests.get('http://greenspeaker:3000/api/v1/default_zone').text
if myzone == "undefined":
myzone = "default"
print("My zone is %s" % myzone)
keyev = evdev.categorize(event)
code = keyev.keycode[4:]
state = keyev.keystate
if state == evdev.events.KeyEvent.key_down:
state = "DOWN"
elif state == evdev.events.KeyEvent.key_up:
state = "UP"
elif state == evdev.events.KeyEvent.key_hold:
state = "HOLD"
print(code, state)
method = "POST"
if state == "DOWN":
if code == "PLAYPAUSE":
url = "%s/zone/%s/control/playpause" % (roon_base_url, myzone)
elif code == "STOP":
# url = "%s/zone/all/control/pause" % roon_base_url
url = "%s/zone/%s/control/stop" % (roon_base_url, myzone)
elif code == "REWIND":
url = "%s/zone/%s/control/previous" % (roon_base_url, myzone)
elif code == "FASTFORWARD":
url = "%s/zone/%s/control/next" % (roon_base_url, myzone)
elif code == "INFO":
url = "%s/mute" % harmony_base_url
if state == "HOLD" or state == "DOWN":
# Make sure volume doesn't change too fast
if myzone.lower() == "greenspeaker":
if code == "UP":
url = "%s/zone/%s/volume/relative_step/2" % (roon_base_url, myzone)
if code == "DOWN":
url = "%s/zone/%s/volume/relative_step/-2" % (roon_base_url, myzone)
else:
if code == "UP":
url = "%s/volume-up" % harmony_base_url
if (datetime.now() - last_volume_change).total_seconds() < 0.5:
print("Skipped vol change")
continue
else:
last_volume_change = datetime.now()
print("Changed volume up")
elif code == "DOWN":
url = "%s/volume-down" % harmony_base_url
if (datetime.now() - last_volume_change).total_seconds() < 0.5:
print("Skipped vol change")
continue
else:
last_volume_change = datetime.now()
print("Changed volume down")
if url:
print(method, url)
try:
if method == "GET":
req = requests.get(url)
else:
req = requests.post(url)
except:
print("Request to %s failed" % (url))
if cmd:
print(" ".join(cmd))
subprocess.call(cmd)
| 42.647059 | 116 | 0.437011 | #!/usr/bin/env python3
import evdev
import select
import requests
import subprocess
import re
from datetime import datetime
roon_base_url = "http://greenspeaker:3000/api/v1"
harmony_base_url = "http://m1:8282/hubs/harmony-hub/devices/schiit-amp/commands"
p = re.compile('"zone_id": "([a-z0-9]+)",\n *"display_name": "Hifi \+ 1"')
devices = {}
for fn in evdev.list_devices():
print(fn)
dev = evdev.InputDevice(fn)
if dev.name.find('HBGIC') >= 0:
devices[dev.fd] = dev
print(devices)
last_volume_change = datetime.now()
while True:
r, w, x = select.select(devices, [], [])
for fd in r:
for event in devices[fd].read():
url = None
cmd = None
if event.type == evdev.ecodes.EV_KEY:
myzone = None
zones = requests.get("%s/zones" % roon_base_url).json()
for z in zones:
if zones[z]['display_name'] == "Hifi + 1":
myzone = zones[z]['zone_id']
break
if not myzone:
myzone = requests.get('http://greenspeaker:3000/api/v1/default_zone').text
if myzone == "undefined":
myzone = "default"
print("My zone is %s" % myzone)
keyev = evdev.categorize(event)
code = keyev.keycode[4:]
state = keyev.keystate
if state == evdev.events.KeyEvent.key_down:
state = "DOWN"
elif state == evdev.events.KeyEvent.key_up:
state = "UP"
elif state == evdev.events.KeyEvent.key_hold:
state = "HOLD"
print(code, state)
method = "POST"
if state == "DOWN":
if code == "PLAYPAUSE":
url = "%s/zone/%s/control/playpause" % (roon_base_url, myzone)
elif code == "STOP":
# url = "%s/zone/all/control/pause" % roon_base_url
url = "%s/zone/%s/control/stop" % (roon_base_url, myzone)
elif code == "REWIND":
url = "%s/zone/%s/control/previous" % (roon_base_url, myzone)
elif code == "FASTFORWARD":
url = "%s/zone/%s/control/next" % (roon_base_url, myzone)
elif code == "INFO":
url = "%s/mute" % harmony_base_url
if state == "HOLD" or state == "DOWN":
# Make sure volume doesn't change too fast
if myzone.lower() == "greenspeaker":
if code == "UP":
url = "%s/zone/%s/volume/relative_step/2" % (roon_base_url, myzone)
if code == "DOWN":
url = "%s/zone/%s/volume/relative_step/-2" % (roon_base_url, myzone)
else:
if code == "UP":
url = "%s/volume-up" % harmony_base_url
if (datetime.now() - last_volume_change).total_seconds() < 0.5:
print("Skipped vol change")
continue
else:
last_volume_change = datetime.now()
print("Changed volume up")
elif code == "DOWN":
url = "%s/volume-down" % harmony_base_url
if (datetime.now() - last_volume_change).total_seconds() < 0.5:
print("Skipped vol change")
continue
else:
last_volume_change = datetime.now()
print("Changed volume down")
if url:
print(method, url)
try:
if method == "GET":
req = requests.get(url)
else:
req = requests.post(url)
except:
print("Request to %s failed" % (url))
if cmd:
print(" ".join(cmd))
subprocess.call(cmd)
| 0 | 0 | 0 |
8e4880e0ebce4707e9d80ed91abc80216cb3e5ab | 15,179 | py | Python | image_manipulation.py | shequin-joshua-9147/cs162-final-project | 0edff7170ca0761b38c30774475bfecac2a18f01 | [
"MIT"
] | null | null | null | image_manipulation.py | shequin-joshua-9147/cs162-final-project | 0edff7170ca0761b38c30774475bfecac2a18f01 | [
"MIT"
] | null | null | null | image_manipulation.py | shequin-joshua-9147/cs162-final-project | 0edff7170ca0761b38c30774475bfecac2a18f01 | [
"MIT"
] | null | null | null | """
Manipulate images in specific ways based on commands used on input.
This module is used in order to manipulate images in a number of ways.
All of this is done through the ImageO object. The ImageO object reads in a file and allows for
manipulations to be done on an image and for that image to be output after the manipulation.
All different things this module allows for are:
- make an image only all of its red values
- make an image only all of its green values
- make an image only all of its blue values
- zero out all red values of an image
- zero out all green values of an image
- zero out all blue values of an image
- darken an image by moving all values to be in the lower half of 255
- bright an image by moving all values to be in the upper half of 255
- make image in-to a gray-scaled image
- invert the colors of an image
- block or blur an image, making all pixel of a block the same rgb value
All of these option can be called after importing and creating an ImageO object or from calling
this module from the command line with the proper options.
Joshua Shequin
"""
import argparse
import sys
import numpy as np
from PIL import Image
def common_denominator(number_one, number_two, range_one, range_two):
"""
Recursion solution to this problem even though it is not the best way of doing it.
Base case is when the modulo of both numbers and the second range value is zero,
or if they are the same.
Parameters
----------
number_one : int
the first number of the two numbers to find the common denominator between.
number_two : int
the second number of the two numbers to find the common denominator between.
range_one : int
the lowest integer for a range of values to find the common denominator in.
range_two : int
the highest integer for a range of values to find the common denominator in.
Returns
------
Integer
the value that the two input have number both have a denominator with, or the lowest int
in the range given if no denominator was found.
"""
if number_one % range_two == 0 and number_two % range_two == 0:
return range_two
if range_one == range_two:
return range_one
return common_denominator(number_one, number_two, range_one, range_two-1)
class ImageO:
"""
Object that handles images, allowing for a number of manipulations.
Image object that takes an input file as the input and reads that input file and turns that
image in to an array. From that array the object allows for a number of manipulations to be
done to the image. Every manipulation also by default outputs the file.
"""
def __init__(self, input_file):
"""
Initialize the object by taking an input_file and loading the image to an array.
Parameter
---------
input_file : string
string of the file location to be read, relative or full path.
"""
try:
self.infile = np.array(Image.open(input_file)) # read in the file and store as a
# numpy array.
except FileNotFoundError:
# if that file did not exist then we warn the user and close the program.
print("Check your infile parameter, I can't find the file you put in!")
sys.exit()
def clear_red(self, output_file, returnable=False):
"""
Clear all red in our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def clear_green(self, output_file, returnable=False):
"""
Clear all green in our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[1] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def clear_blue(self, output_file, returnable=False):
"""
Clear all blue in our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[2] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def red_only(self, output_file, returnable=False):
"""
Clear all green and all blue of our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[1] = 0
column[2] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def green_only(self, output_file, returnable=False):
"""
Clear all red and all blue of our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = 0
column[2] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def blue_only(self, output_file, returnable=False):
"""
Clear all red and all green of our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = 0
column[1] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def lower_half(self, output_file, returnable=False):
"""
Scale all shades to be only in the lower 127 of color ints.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = column[0]/2
column[1] = column[1]/2
column[2] = column[2]/2
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def upper_half(self, output_file, returnable=True):
"""
Scale all shades to be only in the upper 127 of color ints.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = column[0]/2 + 128
column[1] = column[1]/2 + 128
column[2] = column[2]/2 + 128
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def gray_scale(self, output_file, returnable=False):
"""
Convert the image to a grey-scale image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
# to transform a pixel to its gray-scale form we find the average of the three
# colors.
new_value = (column[0]*(1/3)) + (column[1]*(1/3)) +\
(column[2]*(1/3))
column[0] = new_value
column[1] = new_value
column[2] = new_value
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def invert_color(self, output_file, returnable=False):
"""
Invert all rgb values of the image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = 255 - column[0]
column[1] = 255 - column[1]
column[2] = 255 - column[2]
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def block_image(self, output_file, returnable=False):
"""
Blurs or blocks an image, assigning a block size for an image making all pixels the same.
Calls the common_denominator function to find a common denominator within a range of two
numbers for two numbers. This will be used to determine the block width and height.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
number_of_blocks = common_denominator(len(self.infile), len(self.infile[0]), 2, 100)
block_dimensions = (len(self.infile)//number_of_blocks,
len(self.infile[0])//number_of_blocks)
for block_row in range(number_of_blocks):
for block in range(number_of_blocks):
block_rgb = [[], [], []]
for row in range((block_row * block_dimensions[0]),
(block_row * block_dimensions[0]) + block_dimensions[0]):
for column in range((block * block_dimensions[1]),
(block * block_dimensions[1]) + block_dimensions[1]):
# go through every pixel in the block and store the rgb values in their
# respective lists.
block_rgb[0].append(self.infile[row][column][0])
block_rgb[1].append(self.infile[row][column][1])
block_rgb[2].append(self.infile[row][column][2])
# find the average of the values in our rgb lists
avg_of_red = sum(block_rgb[0]) // len(block_rgb[0])
avg_of_green = sum(block_rgb[1]) // len(block_rgb[1])
avg_of_blue = sum(block_rgb[2]) // len(block_rgb[2])
for row in range((block_row * block_dimensions[0]),
(block_row * block_dimensions[0]) + block_dimensions[0]):
for column in range((block * block_dimensions[1]),
(block * block_dimensions[1]) + block_dimensions[1]):
# go through every pixel in the block and change its rgb values
self.infile[row][column][0] = avg_of_red
self.infile[row][column][1] = avg_of_green
self.infile[row][column][2] = avg_of_blue
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
if __name__ == "__main__":
PARSER = argparse.ArgumentParser(description='Manipulate an Image.')
PARSER.add_argument('Infile', metavar='I', type=str,
help='The file to have the operation performed on it.')
PARSER.add_argument('Outfile', metavar='O', type=str,
help="The name of the outfile from the script.")
PARSER.add_argument("Operation", metavar="o", type=str,
help='Which operation would you like performed? Options:'
' cr - clear all red;'
' cg - clear all green;'
' cb - clear all blue;'
' ro - make the image only shades of red;'
' go - make the image only shades of green;'
' bo - make the image only shades of blue;'
' lh - make colors all be in lower half;'
' uh - make colors all be in upper half;'
' gs - make the image gray-scale;'
' ic - invert the colors of the image;'
' bi - block the image in to same color cubes of pixels')
ARGS = PARSER.parse_args()
if ARGS.Operation not in ["cr", "cg", "cb", "ro", "go", "bo", "lh", "uh", "gs", "ic", "bi"]:
print("Not a valid operation, please use the argument -h for extra help.")
sys.exit()
if ARGS.Operation == "cr":
ImageO(ARGS.Infile).clear_red(ARGS.Outfile)
elif ARGS.Operation == "cg":
ImageO(ARGS.Infile).clear_green(ARGS.Outfile)
elif ARGS.Operation == "cb":
ImageO(ARGS.Infile).clear_blue(ARGS.Outfile)
elif ARGS.Operation == "ro":
ImageO(ARGS.Infile).red_only(ARGS.Outfile)
elif ARGS.Operation == "go":
ImageO(ARGS.Infile).green_only(ARGS.Outfile)
elif ARGS.Operation == "bo":
ImageO(ARGS.Infile).blue_only(ARGS.Outfile)
elif ARGS.Operation == "lh":
ImageO(ARGS.Infile).lower_half(ARGS.Outfile)
elif ARGS.Operation == "uh":
ImageO(ARGS.Infile).upper_half(ARGS.Outfile)
elif ARGS.Operation == "gs":
ImageO(ARGS.Infile).gray_scale(ARGS.Outfile)
elif ARGS.Operation == "ic":
ImageO(ARGS.Infile).invert_color(ARGS.Outfile)
elif ARGS.Operation == "bi":
ImageO(ARGS.Infile).block_image(ARGS.Outfile)
| 34.974654 | 97 | 0.564332 | """
Manipulate images in specific ways based on commands used on input.
This module is used in order to manipulate images in a number of ways.
All of this is done through the ImageO object. The ImageO object reads in a file and allows for
manipulations to be done on an image and for that image to be output after the manipulation.
All different things this module allows for are:
- make an image only all of its red values
- make an image only all of its green values
- make an image only all of its blue values
- zero out all red values of an image
- zero out all green values of an image
- zero out all blue values of an image
- darken an image by moving all values to be in the lower half of 255
- bright an image by moving all values to be in the upper half of 255
- make image in-to a gray-scaled image
- invert the colors of an image
- block or blur an image, making all pixel of a block the same rgb value
All of these option can be called after importing and creating an ImageO object or from calling
this module from the command line with the proper options.
Joshua Shequin
"""
import argparse
import sys
import numpy as np
from PIL import Image
def common_denominator(number_one, number_two, range_one, range_two):
"""
Recursion solution to this problem even though it is not the best way of doing it.
Base case is when the modulo of both numbers and the second range value is zero,
or if they are the same.
Parameters
----------
number_one : int
the first number of the two numbers to find the common denominator between.
number_two : int
the second number of the two numbers to find the common denominator between.
range_one : int
the lowest integer for a range of values to find the common denominator in.
range_two : int
the highest integer for a range of values to find the common denominator in.
Returns
------
Integer
the value that the two input have number both have a denominator with, or the lowest int
in the range given if no denominator was found.
"""
if number_one % range_two == 0 and number_two % range_two == 0:
return range_two
if range_one == range_two:
return range_one
return common_denominator(number_one, number_two, range_one, range_two-1)
class ImageO:
"""
Object that handles images, allowing for a number of manipulations.
Image object that takes an input file as the input and reads that input file and turns that
image in to an array. From that array the object allows for a number of manipulations to be
done to the image. Every manipulation also by default outputs the file.
"""
def __init__(self, input_file):
"""
Initialize the object by taking an input_file and loading the image to an array.
Parameter
---------
input_file : string
string of the file location to be read, relative or full path.
"""
try:
self.infile = np.array(Image.open(input_file)) # read in the file and store as a
# numpy array.
except FileNotFoundError:
# if that file did not exist then we warn the user and close the program.
print("Check your infile parameter, I can't find the file you put in!")
sys.exit()
def clear_red(self, output_file, returnable=False):
"""
Clear all red in our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def clear_green(self, output_file, returnable=False):
"""
Clear all green in our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[1] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def clear_blue(self, output_file, returnable=False):
"""
Clear all blue in our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[2] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def red_only(self, output_file, returnable=False):
"""
Clear all green and all blue of our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[1] = 0
column[2] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def green_only(self, output_file, returnable=False):
"""
Clear all red and all blue of our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = 0
column[2] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def blue_only(self, output_file, returnable=False):
"""
Clear all red and all green of our image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = 0
column[1] = 0
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def lower_half(self, output_file, returnable=False):
"""
Scale all shades to be only in the lower 127 of color ints.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = column[0]/2
column[1] = column[1]/2
column[2] = column[2]/2
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def upper_half(self, output_file, returnable=True):
"""
Scale all shades to be only in the upper 127 of color ints.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = column[0]/2 + 128
column[1] = column[1]/2 + 128
column[2] = column[2]/2 + 128
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def gray_scale(self, output_file, returnable=False):
"""
Convert the image to a grey-scale image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
# to transform a pixel to its gray-scale form we find the average of the three
# colors.
new_value = (column[0]*(1/3)) + (column[1]*(1/3)) +\
(column[2]*(1/3))
column[0] = new_value
column[1] = new_value
column[2] = new_value
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def invert_color(self, output_file, returnable=False):
"""
Invert all rgb values of the image.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
for row in self.infile:
for column in row:
column[0] = 255 - column[0]
column[1] = 255 - column[1]
column[2] = 255 - column[2]
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
def block_image(self, output_file, returnable=False):
"""
Blurs or blocks an image, assigning a block size for an image making all pixels the same.
Calls the common_denominator function to find a common denominator within a range of two
numbers for two numbers. This will be used to determine the block width and height.
Parameter
---------
output_file : string
the name of the file we want to output to.
Return
------
numpy array
Return the numpy array of the image if returnable=True
"""
number_of_blocks = common_denominator(len(self.infile), len(self.infile[0]), 2, 100)
block_dimensions = (len(self.infile)//number_of_blocks,
len(self.infile[0])//number_of_blocks)
for block_row in range(number_of_blocks):
for block in range(number_of_blocks):
block_rgb = [[], [], []]
for row in range((block_row * block_dimensions[0]),
(block_row * block_dimensions[0]) + block_dimensions[0]):
for column in range((block * block_dimensions[1]),
(block * block_dimensions[1]) + block_dimensions[1]):
# go through every pixel in the block and store the rgb values in their
# respective lists.
block_rgb[0].append(self.infile[row][column][0])
block_rgb[1].append(self.infile[row][column][1])
block_rgb[2].append(self.infile[row][column][2])
# find the average of the values in our rgb lists
avg_of_red = sum(block_rgb[0]) // len(block_rgb[0])
avg_of_green = sum(block_rgb[1]) // len(block_rgb[1])
avg_of_blue = sum(block_rgb[2]) // len(block_rgb[2])
for row in range((block_row * block_dimensions[0]),
(block_row * block_dimensions[0]) + block_dimensions[0]):
for column in range((block * block_dimensions[1]),
(block * block_dimensions[1]) + block_dimensions[1]):
# go through every pixel in the block and change its rgb values
self.infile[row][column][0] = avg_of_red
self.infile[row][column][1] = avg_of_green
self.infile[row][column][2] = avg_of_blue
if returnable:
return self.infile
Image.fromarray(self.infile, "RGB").save(output_file)
return None
if __name__ == "__main__":
PARSER = argparse.ArgumentParser(description='Manipulate an Image.')
PARSER.add_argument('Infile', metavar='I', type=str,
help='The file to have the operation performed on it.')
PARSER.add_argument('Outfile', metavar='O', type=str,
help="The name of the outfile from the script.")
PARSER.add_argument("Operation", metavar="o", type=str,
help='Which operation would you like performed? Options:'
' cr - clear all red;'
' cg - clear all green;'
' cb - clear all blue;'
' ro - make the image only shades of red;'
' go - make the image only shades of green;'
' bo - make the image only shades of blue;'
' lh - make colors all be in lower half;'
' uh - make colors all be in upper half;'
' gs - make the image gray-scale;'
' ic - invert the colors of the image;'
' bi - block the image in to same color cubes of pixels')
ARGS = PARSER.parse_args()
if ARGS.Operation not in ["cr", "cg", "cb", "ro", "go", "bo", "lh", "uh", "gs", "ic", "bi"]:
print("Not a valid operation, please use the argument -h for extra help.")
sys.exit()
if ARGS.Operation == "cr":
ImageO(ARGS.Infile).clear_red(ARGS.Outfile)
elif ARGS.Operation == "cg":
ImageO(ARGS.Infile).clear_green(ARGS.Outfile)
elif ARGS.Operation == "cb":
ImageO(ARGS.Infile).clear_blue(ARGS.Outfile)
elif ARGS.Operation == "ro":
ImageO(ARGS.Infile).red_only(ARGS.Outfile)
elif ARGS.Operation == "go":
ImageO(ARGS.Infile).green_only(ARGS.Outfile)
elif ARGS.Operation == "bo":
ImageO(ARGS.Infile).blue_only(ARGS.Outfile)
elif ARGS.Operation == "lh":
ImageO(ARGS.Infile).lower_half(ARGS.Outfile)
elif ARGS.Operation == "uh":
ImageO(ARGS.Infile).upper_half(ARGS.Outfile)
elif ARGS.Operation == "gs":
ImageO(ARGS.Infile).gray_scale(ARGS.Outfile)
elif ARGS.Operation == "ic":
ImageO(ARGS.Infile).invert_color(ARGS.Outfile)
elif ARGS.Operation == "bi":
ImageO(ARGS.Infile).block_image(ARGS.Outfile)
| 0 | 0 | 0 |
7c3bdfb9f4ce43de33608bfbdf36e0f48a3e90c4 | 1,067 | py | Python | CorePython/Networking/TCP/tsTserv.py | AnatoleZho/Python3 | 3d3d32b5ad0affef76287b89bc87267fc551127d | [
"MIT"
] | null | null | null | CorePython/Networking/TCP/tsTserv.py | AnatoleZho/Python3 | 3d3d32b5ad0affef76287b89bc87267fc551127d | [
"MIT"
] | null | null | null | CorePython/Networking/TCP/tsTserv.py | AnatoleZho/Python3 | 3d3d32b5ad0affef76287b89bc87267fc551127d | [
"MIT"
] | null | null | null |
# 导入了 time.ctime()和 socket 模块的所有属性
from socket import *
from time import ctime
HOST = '' # HOST 变量是空白的,这是对 bind()方法的标识,表示它可以使用任何可用的地址
PORT = 21567 # 选择了一个随机的端口号,并且该端口号似乎没有被使用或被系统保留
BZUGSIZ = 1024 # 对于该 应用程序,将缓冲区大小设置为 1KB。可以根据网络性能和程序需要改变这个容量
ADDR = (HOST, PORT)
tcpSerSock = socket(AF_INET, SOCK_STREAM) # 分配了 TCP 服务器套接字
tcpSerSock.bind(ADDR) # 将套接字绑定到服 务器地址以及开启 TCP 监听器的调用
tcpSerSock.listen(5) # listen() 方法的参数是在连接被转接或拒绝之前,传入连接请求的最大数。
'''
# 一旦进入服务器的无限循环之中,就(被动地)等待客户端的连接。当一个连接请求出现时,进入对话循环中,
# 在该循环中等待客户端发送的消息。如果消息是空白的,这意味着客户端已经退出,所以此时将跳出对话循环,
# 关闭当前客户端连接,然后等待另一个客户端连接。如果确实得到了客户端发送的消息,就将其格式化并返回
# 相同的数据,但是会在这些数据中加上当前时间戳的前缀。最后一行永远不会执行,它只是用来提醒读者,
# 如果写了一个处理程序来考虑一个更加优雅的退出方式,正如前面讨论的,那么应该调用 close()方法
'''
while True:
print('waiting for connection...')
tcpCliSock, addr = tcpSerSock.accept()
print('...connected from:', addr)
while True:
data = tcpCliSock.recv(BZUGSIZ)
if not data:
break
tcpCliSock.send(('[{}] {}'.format(ctime(), data.decode())).encode())
tcpCliSock.close()
# tcpSerSock.close()
| 28.078947 | 76 | 0.716963 |
# 导入了 time.ctime()和 socket 模块的所有属性
from socket import *
from time import ctime
HOST = '' # HOST 变量是空白的,这是对 bind()方法的标识,表示它可以使用任何可用的地址
PORT = 21567 # 选择了一个随机的端口号,并且该端口号似乎没有被使用或被系统保留
BZUGSIZ = 1024 # 对于该 应用程序,将缓冲区大小设置为 1KB。可以根据网络性能和程序需要改变这个容量
ADDR = (HOST, PORT)
tcpSerSock = socket(AF_INET, SOCK_STREAM) # 分配了 TCP 服务器套接字
tcpSerSock.bind(ADDR) # 将套接字绑定到服 务器地址以及开启 TCP 监听器的调用
tcpSerSock.listen(5) # listen() 方法的参数是在连接被转接或拒绝之前,传入连接请求的最大数。
'''
# 一旦进入服务器的无限循环之中,就(被动地)等待客户端的连接。当一个连接请求出现时,进入对话循环中,
# 在该循环中等待客户端发送的消息。如果消息是空白的,这意味着客户端已经退出,所以此时将跳出对话循环,
# 关闭当前客户端连接,然后等待另一个客户端连接。如果确实得到了客户端发送的消息,就将其格式化并返回
# 相同的数据,但是会在这些数据中加上当前时间戳的前缀。最后一行永远不会执行,它只是用来提醒读者,
# 如果写了一个处理程序来考虑一个更加优雅的退出方式,正如前面讨论的,那么应该调用 close()方法
'''
while True:
print('waiting for connection...')
tcpCliSock, addr = tcpSerSock.accept()
print('...connected from:', addr)
while True:
data = tcpCliSock.recv(BZUGSIZ)
if not data:
break
tcpCliSock.send(('[{}] {}'.format(ctime(), data.decode())).encode())
tcpCliSock.close()
# tcpSerSock.close()
| 0 | 0 | 0 |
232477d1a2e19b60e70bb78d55802171edcce92e | 4,693 | py | Python | members/conferences/models.py | ocwc/ocwc-members | 3ede8e0ff830e2aaff4ae09f9aaefd3eaa83146b | [
"MIT"
] | null | null | null | members/conferences/models.py | ocwc/ocwc-members | 3ede8e0ff830e2aaff4ae09f9aaefd3eaa83146b | [
"MIT"
] | 7 | 2015-11-27T15:59:52.000Z | 2022-01-13T00:38:38.000Z | members/conferences/models.py | ocwc/ocwc-members | 3ede8e0ff830e2aaff4ae09f9aaefd3eaa83146b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import uuid
from tinymce import HTMLField
from django.db import models
from django.urls import reverse
from django.core.mail import EmailMessage
from django.conf import settings
from django.contrib.postgres.fields import JSONField
from crm.utils import print_pdf
CONFERENCE_REGISTRATION_TYPE = (
("normal", "Normal registration"),
("presenter", "Presenter registration"),
)
| 32.590278 | 126 | 0.698061 | # -*- coding: utf-8 -*-
import uuid
from tinymce import HTMLField
from django.db import models
from django.urls import reverse
from django.core.mail import EmailMessage
from django.conf import settings
from django.contrib.postgres.fields import JSONField
from crm.utils import print_pdf
class ConferenceInterface(models.Model):
name = models.CharField(max_length=255)
url = models.CharField(max_length=255, default="")
api_key = models.CharField(max_length=255, default="")
private_key = models.CharField(max_length=255, default="")
last_synced = models.DateTimeField(null=True)
def __unicode__(self):
return self.name
class ConferenceRegistration(models.Model):
PAYMENT_TYPE = (("paypal", "PayPal"), ("wire", "Wire Transfer"))
interface = models.ForeignKey(ConferenceInterface, models.CASCADE)
form_id = models.CharField(max_length=255)
entry_id = models.CharField(max_length=255)
entry_created = models.DateTimeField(null=True)
name = models.CharField(max_length=255, default="")
email = models.CharField(max_length=255, default="")
organization = models.CharField(max_length=255, default="")
billing_address = models.TextField(default="", blank=True)
ticket_type = models.CharField(max_length=255)
dinner_guest = models.CharField(max_length=255, default="", blank=True)
dinner_guest_qty = models.IntegerField(default=0)
conference_dinner = models.CharField(max_length=255, default="", blank=True)
reception_guest = models.CharField(max_length=255, default="", blank=True)
reception_guest_qty = models.IntegerField(default=0)
total_amount = models.CharField(max_length=255)
payment_type = models.CharField(choices=PAYMENT_TYPE, max_length=255)
products = JSONField(blank=True, null=True)
qbo_id = models.IntegerField(blank=True, null=True)
source_url = models.CharField(max_length=255)
billing_html = HTMLField(default="")
product_html = models.TextField(default="")
last_synced = models.DateTimeField(auto_now=True)
access_key = models.CharField(max_length=32, blank=True)
is_group = models.BooleanField(default=False)
def save(self, force_insert=False, force_update=False, using=None):
if not self.access_key:
self.access_key = uuid.uuid4().hex
super(ConferenceRegistration, self).save(
force_insert=force_insert, force_update=force_update, using=using
)
def get_access_key_url(self):
return reverse(
"conferences:invoice_preview",
kwargs={"pk": self.id, "access_key": self.access_key},
)
def get_absolute_url(self):
return "/conferences/#registration-{}".format(self.id)
def email_invoice(self):
body = """Thank you for registering for Open Education Global Conference 2018 (24-26 April in Delft, the Netherlands).
Attached is your invoice.
Do not hesitate to contact us at conference@oeglobal.org if you have any questions.
We look forward to welcoming you in the Netherlands!
Open Education Global Conference 2018 Planning Team.
"""
message = EmailMessage(
subject="Open Education Global Conference 2018 - Invoice",
body=body,
from_email="conference@oeglobal.org",
to=[self.email],
# bcc = ['conference@oeglobal.org']
)
url = "%s%s" % (settings.INVOICES_PHANTOM_JS_HOST, self.get_access_key_url())
pdf_file = print_pdf(url)
message.attach(
filename="OEGlobal-Invoice-%s.pdf" % self.entry_id,
content=pdf_file,
mimetype="application/pdf",
)
message.send()
CONFERENCE_REGISTRATION_TYPE = (
("normal", "Normal registration"),
("presenter", "Presenter registration"),
)
class ConferenceEmailTemplate(models.Model):
subject = models.CharField(max_length=255)
body_text = models.TextField()
body_html = models.TextField()
email_type = models.CharField(
choices=CONFERENCE_REGISTRATION_TYPE, default="normal", max_length=20
)
def __str__(self) -> str:
return "{}".format(self.subject)
class ConferenceEmailRegistration(models.Model):
email = models.CharField(max_length=255)
email_type = models.CharField(
choices=CONFERENCE_REGISTRATION_TYPE, default="normal", max_length=20
)
def __str__(self) -> str:
return "{} - {}".format(self.email, self.email_type)
class ConferenceEmailLogs(models.Model):
action = models.CharField(max_length=255)
pub_date = models.DateTimeField(auto_now_add=True)
def __str__(self) -> str:
return "{}".format(self.action)
| 1,595 | 2,568 | 115 |
167b4b86ac839003f6f7230a884abb5014d92fce | 9,100 | py | Python | tests/test_types.py | krisHans3n/geoalchemy2-mysql | 38a44d51c242d867f40d4c5503c91f52a8269ff4 | [
"MIT"
] | 1 | 2022-02-01T23:52:06.000Z | 2022-02-01T23:52:06.000Z | tests/test_types.py | krisHans3n/geoalchemy2 | 604c1fcc824d243698ca46227fd05a8cbbb9db2c | [
"MIT"
] | null | null | null | tests/test_types.py | krisHans3n/geoalchemy2 | 604c1fcc824d243698ca46227fd05a8cbbb9db2c | [
"MIT"
] | null | null | null | import re
import pytest
from sqlalchemy import Column
from sqlalchemy import MetaData
from sqlalchemy import Table
from sqlalchemy.sql import func
from sqlalchemy.sql import insert
from sqlalchemy.sql import text
from geoalchemy2.exc import ArgumentError
from geoalchemy2.types import Geography
from geoalchemy2.types import Geometry
from geoalchemy2.types import Raster
from . import select
@pytest.fixture
@pytest.fixture
@pytest.fixture
| 33.828996 | 92 | 0.661648 | import re
import pytest
from sqlalchemy import Column
from sqlalchemy import MetaData
from sqlalchemy import Table
from sqlalchemy.sql import func
from sqlalchemy.sql import insert
from sqlalchemy.sql import text
from geoalchemy2.exc import ArgumentError
from geoalchemy2.types import Geography
from geoalchemy2.types import Geometry
from geoalchemy2.types import Raster
from . import select
def eq_sql(a, b):
a = re.sub(r'[\n\t]', '', str(a))
assert a == b
@pytest.fixture
def geometry_table():
table = Table('table', MetaData(), Column('geom', Geometry))
return table
@pytest.fixture
def geography_table():
table = Table('table', MetaData(), Column('geom', Geography))
return table
@pytest.fixture
def raster_table():
table = Table('table', MetaData(), Column('rast', Raster))
return table
class TestGeometry():
def test_get_col_spec(self):
g = Geometry(srid=900913)
assert g.get_col_spec() == 'geometry(GEOMETRY,900913)'
def test_get_col_spec_no_typmod(self):
g = Geometry(geometry_type=None)
assert g.get_col_spec() == 'geometry'
def test_check_ctor_args_bad_srid(self):
with pytest.raises(ArgumentError):
Geometry(srid='foo')
def test_get_col_spec_geometryzm(self):
g = Geometry(geometry_type='GEOMETRYZM', srid=900913)
assert g.get_col_spec() == 'geometry(GEOMETRYZM,900913)'
def test_get_col_spec_geometryz(self):
g = Geometry(geometry_type='GEOMETRYZ', srid=900913)
assert g.get_col_spec() == 'geometry(GEOMETRYZ,900913)'
def test_get_col_spec_geometrym(self):
g = Geometry(geometry_type='GEOMETRYM', srid=900913)
assert g.get_col_spec() == 'geometry(GEOMETRYM,900913)'
def test_check_ctor_args_management_zm(self):
with pytest.raises(ArgumentError):
Geometry(geometry_type='POINTZM', management=True)
def test_check_ctor_args_management_z(self):
with pytest.raises(ArgumentError):
Geometry(geometry_type='POINTZ', dimension=2, management=True)
def test_check_ctor_args_management_m(self):
with pytest.raises(ArgumentError):
Geometry(geometry_type='POINTM', dimension=2, management=True)
def test_check_ctor_args_incompatible_arguments(self):
with pytest.raises(ArgumentError):
Geometry(geometry_type=None, management=True)
def test_check_ctor_args_srid_not_enforced(self):
with pytest.warns(UserWarning):
Geometry(geometry_type=None, srid=4326)
def test_check_ctor_args_use_typmod_ignored(self):
with pytest.warns(UserWarning):
Geometry(management=False, use_typmod=True)
def test_check_ctor_args_use_typmod_nullable(self):
with pytest.warns(UserWarning, match="use_typmod ignored when management is False"):
with pytest.raises(
ArgumentError,
match='The "nullable" and "use_typmod" arguments can not be used together',
):
Geometry(use_typmod=True, nullable=False)
def test_column_expression(self, geometry_table):
s = select([geometry_table.c.geom])
eq_sql(s, 'SELECT ST_AsEWKB("table".geom) AS geom FROM "table"')
def test_select_bind_expression(self, geometry_table):
s = select([text('foo')]).where(geometry_table.c.geom == 'POINT(1 2)')
eq_sql(s, 'SELECT foo FROM "table" WHERE '
'"table".geom = ST_GeomFromEWKT(:geom_1)')
assert s.compile().params == {'geom_1': 'POINT(1 2)'}
def test_insert_bind_expression(self, geometry_table):
i = insert(geometry_table).values(geom='POINT(1 2)')
eq_sql(i, 'INSERT INTO "table" (geom) VALUES (ST_GeomFromEWKT(:geom))')
assert i.compile().params == {'geom': 'POINT(1 2)'}
def test_function_call(self, geometry_table):
s = select([geometry_table.c.geom.ST_Buffer(2)])
eq_sql(s,
'SELECT ST_AsEWKB(ST_Buffer("table".geom, :ST_Buffer_2)) '
'AS "ST_Buffer_1" FROM "table"')
def test_non_ST_function_call(self, geometry_table):
with pytest.raises(AttributeError):
geometry_table.c.geom.Buffer(2)
def test_subquery(self, geometry_table):
# test for geometry columns not delivered to the result
# http://hg.sqlalchemy.org/sqlalchemy/rev/f1efb20c6d61
s = select([geometry_table]).alias('name').select()
eq_sql(s,
'SELECT ST_AsEWKB(name.geom) AS geom FROM '
'(SELECT "table".geom AS geom FROM "table") AS name')
class TestGeography():
def test_get_col_spec(self):
g = Geography(srid=900913)
assert g.get_col_spec() == 'geography(GEOMETRY,900913)'
def test_get_col_spec_no_typmod(self):
g = Geography(geometry_type=None)
assert g.get_col_spec() == 'geography'
def test_column_expression(self, geography_table):
s = select([geography_table.c.geom])
eq_sql(s, 'SELECT ST_AsBinary("table".geom) AS geom FROM "table"')
def test_select_bind_expression(self, geography_table):
s = select([text('foo')]).where(geography_table.c.geom == 'POINT(1 2)')
eq_sql(s, 'SELECT foo FROM "table" WHERE '
'"table".geom = ST_GeogFromText(:geom_1)')
assert s.compile().params == {'geom_1': 'POINT(1 2)'}
def test_insert_bind_expression(self, geography_table):
i = insert(geography_table).values(geom='POINT(1 2)')
eq_sql(i, 'INSERT INTO "table" (geom) VALUES (ST_GeogFromText(:geom))')
assert i.compile().params == {'geom': 'POINT(1 2)'}
def test_function_call(self, geography_table):
s = select([geography_table.c.geom.ST_Buffer(2)])
eq_sql(s,
'SELECT ST_AsEWKB(ST_Buffer("table".geom, :ST_Buffer_2)) '
'AS "ST_Buffer_1" FROM "table"')
def test_non_ST_function_call(self, geography_table):
with pytest.raises(AttributeError):
geography_table.c.geom.Buffer(2)
def test_subquery(self, geography_table):
# test for geography columns not delivered to the result
# http://hg.sqlalchemy.org/sqlalchemy/rev/f1efb20c6d61
s = select([geography_table]).alias('name').select()
eq_sql(s,
'SELECT ST_AsBinary(name.geom) AS geom FROM '
'(SELECT "table".geom AS geom FROM "table") AS name')
class TestPoint():
def test_get_col_spec(self):
g = Geometry(geometry_type='POINT', srid=900913)
assert g.get_col_spec() == 'geometry(POINT,900913)'
class TestCurve():
def test_get_col_spec(self):
g = Geometry(geometry_type='CURVE', srid=900913)
assert g.get_col_spec() == 'geometry(CURVE,900913)'
class TestLineString():
def test_get_col_spec(self):
g = Geometry(geometry_type='LINESTRING', srid=900913)
assert g.get_col_spec() == 'geometry(LINESTRING,900913)'
class TestPolygon():
def test_get_col_spec(self):
g = Geometry(geometry_type='POLYGON', srid=900913)
assert g.get_col_spec() == 'geometry(POLYGON,900913)'
class TestMultiPoint():
def test_get_col_spec(self):
g = Geometry(geometry_type='MULTIPOINT', srid=900913)
assert g.get_col_spec() == 'geometry(MULTIPOINT,900913)'
class TestMultiLineString():
def test_get_col_spec(self):
g = Geometry(geometry_type='MULTILINESTRING', srid=900913)
assert g.get_col_spec() == 'geometry(MULTILINESTRING,900913)'
class TestMultiPolygon():
def test_get_col_spec(self):
g = Geometry(geometry_type='MULTIPOLYGON', srid=900913)
assert g.get_col_spec() == 'geometry(MULTIPOLYGON,900913)'
class TestGeometryCollection():
def test_get_col_spec(self):
g = Geometry(geometry_type='GEOMETRYCOLLECTION', srid=900913)
assert g.get_col_spec() == 'geometry(GEOMETRYCOLLECTION,900913)'
class TestRaster():
def test_get_col_spec(self):
r = Raster()
assert r.get_col_spec() == 'raster'
def test_column_expression(self, raster_table):
s = select([raster_table.c.rast])
eq_sql(s, 'SELECT raster("table".rast) AS rast FROM "table"')
def test_insert_bind_expression(self, raster_table):
i = insert(raster_table).values(rast=b'\x01\x02')
eq_sql(i, 'INSERT INTO "table" (rast) VALUES (raster(:rast))')
assert i.compile().params == {'rast': b'\x01\x02'}
def test_function_call(self, raster_table):
s = select([raster_table.c.rast.ST_Height()])
eq_sql(s,
'SELECT ST_Height("table".rast) '
'AS "ST_Height_1" FROM "table"')
def test_non_ST_function_call(self, raster_table):
with pytest.raises(AttributeError):
raster_table.c.geom.Height()
class TestCompositeType():
def test_ST_Dump(self, geography_table):
s = select([func.ST_Dump(geography_table.c.geom).geom.label("geom")])
eq_sql(s,
'SELECT ST_AsEWKB((ST_Dump("table".geom)).geom) AS geom '
'FROM "table"')
| 7,144 | 22 | 1,472 |
d1b306d3b99abe243693a2787b9aba3bf7abb9c1 | 4,187 | py | Python | custom_components/googlehome/config_flow.py | Drakulix/googlehome | fb671679b25be51e08bdce066f281b8fb703199a | [
"Apache-2.0"
] | 29 | 2019-09-06T06:15:34.000Z | 2021-12-01T13:23:58.000Z | custom_components/googlehome/config_flow.py | Drakulix/googlehome | fb671679b25be51e08bdce066f281b8fb703199a | [
"Apache-2.0"
] | 24 | 2019-09-06T08:37:34.000Z | 2021-08-24T15:29:27.000Z | custom_components/googlehome/config_flow.py | Drakulix/googlehome | fb671679b25be51e08bdce066f281b8fb703199a | [
"Apache-2.0"
] | 6 | 2019-09-11T01:41:13.000Z | 2022-03-14T10:18:58.000Z | from homeassistant import config_entries
from homeassistant.core import callback
from collections import OrderedDict
from .auth import get_master_token, get_access_token
from .const import (
DOMAIN,
CONF_USERNAME,
CONF_PASSWORD,
CONF_MASTER_TOKEN,
CONF_DEVICE_TYPES,
CONF_RSSI_THRESHOLD,
CONF_TRACK_ALARMS,
CONF_TRACK_DEVICES,
CONF_TRACK_NEW_DEVICES,
CONF_CONSIDER_HOME,
DEFAULT_DEVICE_TYPES,
DEFAULT_RSSI_THRESHOLD,
)
from homeassistant.components.device_tracker.const import DEFAULT_CONSIDER_HOME, DEFAULT_TRACK_NEW
import homeassistant.helpers.config_validation as cv
import voluptuous as vol
| 40.650485 | 156 | 0.609983 | from homeassistant import config_entries
from homeassistant.core import callback
from collections import OrderedDict
from .auth import get_master_token, get_access_token
from .const import (
DOMAIN,
CONF_USERNAME,
CONF_PASSWORD,
CONF_MASTER_TOKEN,
CONF_DEVICE_TYPES,
CONF_RSSI_THRESHOLD,
CONF_TRACK_ALARMS,
CONF_TRACK_DEVICES,
CONF_TRACK_NEW_DEVICES,
CONF_CONSIDER_HOME,
DEFAULT_DEVICE_TYPES,
DEFAULT_RSSI_THRESHOLD,
)
from homeassistant.components.device_tracker.const import DEFAULT_CONSIDER_HOME, DEFAULT_TRACK_NEW
import homeassistant.helpers.config_validation as cv
import voluptuous as vol
class GoogleHomeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN):
VERSION = 1
CONNECTION_CLASS = config_entries.CONN_CLASS_LOCAL_POLL
async def async_step_user(self, user_input=None):
errors = {}
if user_input is not None:
if CONF_MASTER_TOKEN in user_input:
at = await self.hass.async_add_executor_job(
get_access_token, user_input[CONF_USERNAME], user_input[CONF_MASTER_TOKEN]
)
if at is not None:
return self.async_create_entry(
title=user_input[CONF_USERNAME],
data={
CONF_USERNAME: user_input[CONF_USERNAME],
CONF_MASTER_TOKEN: user_input[CONF_MASTER_TOKEN],
},
)
else:
errors["base"] = "master_token_incorrect"
else:
mt = await self.hass.async_add_executor_job(
get_master_token, user_input[CONF_USERNAME], user_input[CONF_PASSWORD]
)
if mt is not None:
return self.async_create_entry(
title=user_input[CONF_USERNAME],
data={
CONF_USERNAME: user_input[CONF_USERNAME],
CONF_MASTER_TOKEN: mt,
},
)
else:
errors["base"] = "auth_error"
data_schema = OrderedDict()
data_schema[vol.Required(CONF_USERNAME)] = str
data_schema[vol.Required(CONF_PASSWORD)] = str
data_schema[vol.Optional(CONF_MASTER_TOKEN)] = str
return self.async_show_form(
step_id="user", data_schema=vol.Schema(data_schema), errors=errors
)
@staticmethod
@callback
def async_get_options_flow(config_entry):
return GoogleHomeOptionsFlow(config_entry)
class GoogleHomeOptionsFlow(config_entries.OptionsFlow):
def __init__(self, config_entry):
self.config_entry = config_entry
async def async_step_init(self, user_input=None):
"""Manage the options."""
if user_input is not None:
return self.async_create_entry(title=self.config_entry.data[CONF_USERNAME], data=user_input)
return self.async_show_form(
step_id="init",
data_schema=vol.Schema(
{
vol.Required(CONF_TRACK_ALARMS, default=self.config_entry.options.get(CONF_TRACK_ALARMS, False)): bool,
vol.Required(CONF_TRACK_DEVICES, default=self.config_entry.options.get(CONF_TRACK_DEVICES, True)): bool,
#vol.Required(CONF_TRACK_NEW_DEVICES, default=self.config_entry.options.get(CONF_TRACK_NEW_DEVICES, DEFAULT_TRACK_NEW)): bool,
vol.Required(CONF_CONSIDER_HOME, default=self.config_entry.options.get(CONF_CONSIDER_HOME, DEFAULT_CONSIDER_HOME.total_seconds())): int,
vol.Required(
CONF_RSSI_THRESHOLD,
default=self.config_entry.options.get(CONF_RSSI_THRESHOLD, DEFAULT_RSSI_THRESHOLD),
): int,
#vol.Required(
# CONF_DEVICE_TYPES,
# default=self.config_entry.data.get(CONF_DEVICE_TYPES, DEFAULT_DEVICE_TYPES),
#): [vol.In(DEFAULT_DEVICE_TYPES)],
}
),
)
| 1,823 | 1,672 | 46 |
6cafd7462c73dfa3da9224d6445ae29d17212194 | 5,913 | py | Python | mmdet/core/visualization/TensorboardLoggerHookV2.py | flyingTan/QuantMmdetection | 6126cd7725dcd0c4d3ad68f016908c500a0adbb9 | [
"Apache-2.0"
] | 2 | 2021-08-28T06:43:03.000Z | 2022-01-17T00:04:23.000Z | mmdet/core/visualization/TensorboardLoggerHookV2.py | flyingTan/QuantMmdetection | 6126cd7725dcd0c4d3ad68f016908c500a0adbb9 | [
"Apache-2.0"
] | null | null | null | mmdet/core/visualization/TensorboardLoggerHookV2.py | flyingTan/QuantMmdetection | 6126cd7725dcd0c4d3ad68f016908c500a0adbb9 | [
"Apache-2.0"
] | null | null | null | import os.path as osp
from mmcv.utils import TORCH_VERSION
from mmcv.runner.dist_utils import master_only
from mmcv.runner import HOOKS
from torch.utils.data import DataLoader
from mmcv.runner.hooks.logger import LoggerHook
import torch
import numpy as np
from .utils import CompareMultiLayerDist
@HOOKS.register_module() | 45.137405 | 141 | 0.561813 | import os.path as osp
from mmcv.utils import TORCH_VERSION
from mmcv.runner.dist_utils import master_only
from mmcv.runner import HOOKS
from torch.utils.data import DataLoader
from mmcv.runner.hooks.logger import LoggerHook
import torch
import numpy as np
from .utils import CompareMultiLayerDist
@HOOKS.register_module()
class TensorboardLoggerHookV2(LoggerHook):
def __init__(self,
log_dir=None,
interval=10,
ignore_last=True,
reset_flag=True,
by_epoch=True,
weight_vis_interval = 1,
by_iter=False,
cmp_multilayer_dist = False):
super(TensorboardLoggerHookV2, self).__init__(interval, ignore_last,
reset_flag, by_epoch)
self.log_dir = log_dir
self.weight_vis_interval = weight_vis_interval
self.by_iter = by_iter
self.cmp_multilayer_dist = cmp_multilayer_dist
self.drawers = []
if self.cmp_multilayer_dist:
self.drawers.append(CompareMultiLayerDist())
@master_only
def before_run(self, runner):
if TORCH_VERSION < '1.1' or TORCH_VERSION == 'parrots':
try:
from tensorboardX import SummaryWriter
except ImportError:
raise ImportError('Please install tensorboardX to use '
'TensorboardLoggerHook.')
else:
try:
from torch.utils.tensorboard import SummaryWriter
except ImportError:
raise ImportError(
'Please run "pip install future tensorboard" to install '
'the dependencies to use torch.utils.tensorboard '
'(applicable to PyTorch 1.1 or higher)')
if self.log_dir is None:
self.log_dir = osp.join(runner.work_dir, 'tf_logs')
self.writer = SummaryWriter(self.log_dir)
## TODO : Show Network Structure
#self.writer.add_graph(runner.model,
# {'img': torch.rand((1,3,224,224)),
# 'gt_label':torch.tensor([1], dtype = torch.int)})
@master_only
def log(self, runner):
r"""
This can be used by: after_train_iter, after_train_epoch
This just for record lr, losss, top1, top5, and etc.
"""
tags = self.get_loggable_tags(runner, allow_text=True)
for tag, val in tags.items():
if isinstance(val, str):
self.writer.add_text(tag, val, self.get_iter(runner))
else:
self.writer.add_scalar(tag, val, self.get_iter(runner))
@master_only
def after_train_epoch(self, runner):
r"""
Fisrt Part:
record logger info, such as: lr, losss, top1, top5, and etc.
Second Part:
staticstic weights distribution or gradient distribution. u can implement
anything u want. JUST DO IT!
"""
if runner.log_buffer.ready:
self.log(runner)
if self.reset_flag:
runner.log_buffer.clear_output()
## Default drawers
if runner.mode == 'train' and self.every_n_epochs(runner, self.weight_vis_interval):
for name, param in runner.model.named_parameters():
if 'bn' not in name:
if not param.numel() == 1: # Tensor
self.writer.add_histogram('model_by_epoch/' + name, param, self.get_epoch(runner))
if hasattr(param, "grad") and param.grad is not None:
self.writer.add_histogram('model_by_epoch/' + name + "_grad", param.grad, self.get_epoch(runner))
else:
self.writer.add_scalar('model_by_epoch/' + name, param, self.get_epoch(runner))
if hasattr(param, "grad") and param.grad is not None:
self.writer.add_scalar('model_by_epoch/' + name + "_grad", param.grad, self.get_epoch(runner))
## Customer Drawers list
for draw in self.drawers:
draw(self.writer, runner)
@master_only
def after_run(self, runner):
self.writer.close()
def after_train_iter(self, runner):
def get_global_iter(runner):
return runner.epoch * len(runner.data_loader) + runner.inner_iter
def every_n_global_iter(runner, n):
return (get_global_iter(runner) + 1 ) % n == 0 if n > 0 else False
super(TensorboardLoggerHookV2, self).after_train_iter(runner)
### 2. Draw Model Paras: such as weights, bias, and etc parameters distribution.
if runner.mode == 'train' and \
self.by_iter and \
hasattr(self, 'writer') and \
every_n_global_iter(runner, self.interval):
for name, param in runner.model.named_parameters():
if 'bn' not in name:
if not param.numel() == 1: # Tensor
self.writer.add_histogram('model_by_iter/' + name, param, get_global_iter(runner) + 1)
if hasattr(param, "grad") and param.grad is not None:
self.writer.add_histogram('model_by_iter/' + name + "_grad", param.grad, get_global_iter(runner) + 1)
else: # Scalar
self.writer.add_scalar('model_by_iter/' + name, param.flatten(), get_global_iter(runner) + 1)
if hasattr(param, "grad") and param.grad is not None:
self.writer.add_scalar('model_by_iter/' + name + "_grad", param.grad.flatten(), get_global_iter(runner) + 1) | 3,328 | 2,241 | 22 |
061f629d484ea9933b245faef68b08783aae52d0 | 594 | py | Python | classifier/classes/modules/text/transformer/ModelTransformer.py | canary-for-cognition/multimodal-dl-framework | 54ebd3c6dcdfc48ed619316321d9f0e7a5f0fc9c | [
"MIT"
] | 2 | 2021-08-31T08:58:30.000Z | 2021-09-02T14:32:30.000Z | classifier/classes/modules/text/transformer/ModelTransformer.py | canary-for-cognition/multimodal-nn-framework | 7733376b05840e2b3dead438dd3981db9694b6ae | [
"MIT"
] | 5 | 2020-09-22T04:29:25.000Z | 2020-12-20T16:16:47.000Z | classifier/classes/modules/text/transformer/ModelTransformer.py | canary-for-cognition/multimodal-nn-framework | 7733376b05840e2b3dead438dd3981db9694b6ae | [
"MIT"
] | 1 | 2021-02-09T18:40:55.000Z | 2021-02-09T18:40:55.000Z | from typing import Dict, Tuple
import torch
from classifier.classes.core.Model import Model
from classifier.classes.modules.text.transformer.Transformer import Transformer
| 31.263158 | 79 | 0.727273 | from typing import Dict, Tuple
import torch
from classifier.classes.core.Model import Model
from classifier.classes.modules.text.transformer.Transformer import Transformer
class ModelTransformer(Model):
def __init__(self, network_params: Dict):
super().__init__(device=network_params["device"])
self._network = Transformer(network_params).float().to(self._device)
def predict(self, x: Tuple, **kwargs) -> torch.Tensor:
input_ids = x[0].to(self._device)
attention_mask = x[1].to(self._device)
return self._network(input_ids, attention_mask)
| 333 | 9 | 77 |
dc8e765a423050be4a0f0acf7bd19d9cf552b8fa | 892 | py | Python | src/jvm/io/fsq/twofishes/scripts/fetch_and_fix_flickr.py | jglesner/fsqio | 436dd3a7667fd23f638bf96bdcd9ec83266a2319 | [
"Apache-2.0"
] | 252 | 2016-01-08T23:12:13.000Z | 2022-01-17T16:31:49.000Z | src/jvm/io/fsq/twofishes/scripts/fetch_and_fix_flickr.py | jglesner/fsqio | 436dd3a7667fd23f638bf96bdcd9ec83266a2319 | [
"Apache-2.0"
] | 67 | 2016-01-13T17:34:12.000Z | 2021-08-04T18:50:24.000Z | src/jvm/io/fsq/twofishes/scripts/fetch_and_fix_flickr.py | jglesner/fsqio | 436dd3a7667fd23f638bf96bdcd9ec83266a2319 | [
"Apache-2.0"
] | 59 | 2016-03-25T20:49:03.000Z | 2021-08-04T05:36:38.000Z | #!/usr/bin/env python
import tarfile
import urllib
import re
import StringIO
import os
basedir = 'src/jvm/io/fsq/twofishes/indexer/data/downloaded'
flickr_shapes_file_name = os.path.join(basedir, 'flickr_shapes_public_dataset_2.0.tar.gz')
try:
open(flickr_shapes_file_name)
except IOError as e:
print 'Downloading Flickr Shapes File to %s' % flickr_shapes_file_name
urllib.urlretrieve ('http://www.flickr.com/services/shapefiles/2.0/', flickr_shapes_file_name)
print 'done downloading'
old_tar = tarfile.open(flickr_shapes_file_name)
for file_info in old_tar:
print 'Processing %s' % file_info.name
old_data = old_tar.extractfile(file_info.name).read()
p = re.compile(',(\s+})')
new_data = p.sub('\\1', old_data)
print 'Writing updated %s' % file_info.name
new_file = open(os.path.join(basedir, file_info.name), "w")
new_file.write(new_data)
new_file.close()
| 24.777778 | 96 | 0.751121 | #!/usr/bin/env python
import tarfile
import urllib
import re
import StringIO
import os
basedir = 'src/jvm/io/fsq/twofishes/indexer/data/downloaded'
flickr_shapes_file_name = os.path.join(basedir, 'flickr_shapes_public_dataset_2.0.tar.gz')
try:
open(flickr_shapes_file_name)
except IOError as e:
print 'Downloading Flickr Shapes File to %s' % flickr_shapes_file_name
urllib.urlretrieve ('http://www.flickr.com/services/shapefiles/2.0/', flickr_shapes_file_name)
print 'done downloading'
old_tar = tarfile.open(flickr_shapes_file_name)
for file_info in old_tar:
print 'Processing %s' % file_info.name
old_data = old_tar.extractfile(file_info.name).read()
p = re.compile(',(\s+})')
new_data = p.sub('\\1', old_data)
print 'Writing updated %s' % file_info.name
new_file = open(os.path.join(basedir, file_info.name), "w")
new_file.write(new_data)
new_file.close()
| 0 | 0 | 0 |
6ea13b23e201409046ac5f8b79ed0cf75e2bf2f7 | 559 | py | Python | src/db/storage.py | BernarBerdikul/Async_API_part_1 | 0f218f38d099909fad629f6f9443fea4a29be3f8 | [
"BSD-3-Clause"
] | null | null | null | src/db/storage.py | BernarBerdikul/Async_API_part_1 | 0f218f38d099909fad629f6f9443fea4a29be3f8 | [
"BSD-3-Clause"
] | null | null | null | src/db/storage.py | BernarBerdikul/Async_API_part_1 | 0f218f38d099909fad629f6f9443fea4a29be3f8 | [
"BSD-3-Clause"
] | null | null | null | from abc import ABC, abstractmethod
from typing import Optional
storage: Optional[AbstractStorage] = None
# Функция понадобится при внедрении зависимостей
| 19.964286 | 54 | 0.697674 | from abc import ABC, abstractmethod
from typing import Optional
class AbstractStorage(ABC):
def __init__(self, storage_instance):
self.storage = storage_instance
@abstractmethod
def get(self, index: str, target_id: str):
pass
@abstractmethod
def search(self, index: str, _source, body, sort):
pass
@abstractmethod
def close(self):
pass
storage: Optional[AbstractStorage] = None
# Функция понадобится при внедрении зависимостей
async def get_storage() -> AbstractStorage:
return storage
| 181 | 173 | 45 |
55c7798fee43dcc97a6cfd5cbe15725d9078c8d0 | 8,714 | py | Python | convnet3d/bin/train.py | yecharlie/convnet3d | 0b2771eec149b196ef59b58d09eef71c9b201d40 | [
"MIT"
] | 6 | 2020-03-12T10:28:41.000Z | 2021-11-18T16:17:20.000Z | convnet3d/bin/train.py | yecharlie/convnet3d | 0b2771eec149b196ef59b58d09eef71c9b201d40 | [
"MIT"
] | null | null | null | convnet3d/bin/train.py | yecharlie/convnet3d | 0b2771eec149b196ef59b58d09eef71c9b201d40 | [
"MIT"
] | 1 | 2019-08-01T02:50:05.000Z | 2019-08-01T02:50:05.000Z | import argparse
import os
import sys
import keras
import tensorflow as tf
# print(__name__,'__package__:',__package__)
if __name__ == "__main__" and __package__ is None:
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..'))
import convnet3d.bin # noqa: F401
__package__ = "convnet3d.bin"
from .. import models
from .. import losses
from ..preprocessing.generator import Generator
from ..preprocessing.val_generator import ValidationGenerator
from ..utils.transform import randomTransformGenerator
from ..callbacks import (RedirectModel, Evaluate)
def get_session():
'''Construct a modified tf session
'''
# config = tf.ConfigProto(allow_soft_placement=True, log_device_placement=True)
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
return tf.Session(config=config)
def parse_args(args):
'''Parse the arguments
'''
parser = argparse.ArgumentParser(description='Simple training script for training the candidate screening model & false positive reduction model.')
subparsers = parser.add_subparsers(help='Specitic the model type: cs/fpr.', dest='model_type')
subparsers.required = True
cs_parser = subparsers.add_parser('cs') # noqa: F841
fpr_parser = subparsers.add_parser('fpr')
fpr_parser.add_argument('--val-cs-model', help='Path to candidate screening model, then the two model are combined to biuld a convnet3d model for validation.')
group = parser.add_mutually_exclusive_group()
group.add_argument('--snapshot')
group.add_argument('--no-weights', dest='val_cs_weights', action='store_const', const=False)
group.add_argument('--val-cs-weights', action='store_true')
parser.add_argument('annotations')
parser.add_argument('classes')
parser.add_argument('--val-annotations')
parser.add_argument('--batch-size', type=int, default=32)
parser.add_argument('--epochs', type=int, default=50)
parser.add_argument('--gpu', metavar='GPUs', type=devices, default=None)
parser.add_argument('--snapshot-path', default='./snapshots')
parser.add_argument('--tensorboard-dir', default='./logs')
parser.add_argument('--no-snapshots', dest='snapshots', action='store_false')
parser.add_argument('--random-transform', action='store_true')
parser.add_argument('--data-channels', default=1, type=int)
return check_args(parser.parse_args(args))
if __name__ == '__main__':
main()
| 34.039063 | 163 | 0.641726 | import argparse
import os
import sys
import keras
import tensorflow as tf
# print(__name__,'__package__:',__package__)
if __name__ == "__main__" and __package__ is None:
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', '..'))
import convnet3d.bin # noqa: F401
__package__ = "convnet3d.bin"
from .. import models
from .. import losses
from ..preprocessing.generator import Generator
from ..preprocessing.val_generator import ValidationGenerator
from ..utils.transform import randomTransformGenerator
from ..callbacks import (RedirectModel, Evaluate)
def get_session():
'''Construct a modified tf session
'''
# config = tf.ConfigProto(allow_soft_placement=True, log_device_placement=True)
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
return tf.Session(config=config)
def create_generators(args):
if args.random_transform:
transform_generator = randomTransformGenerator(
min_scaling = (0.9, 0.9, 0.9),
max_scaling = (1.1, 1.1, 1.1),
min_horizontal_rotation = -0.1,
max_horizontal_rotation = 0.1,
flip_x_chance = 0.5,
flip_y_chance = 0.5,
min_translation = (-0.1, -0.1, -0.1),
max_translation = (0.1, 0.1, 0.1)
)
else:
transform_generator = None
train_generator = Generator(
args.annotations,
args.classes,
batch_size = args.batch_size,
transform_generator=transform_generator
)
if args.val_annotations and getattr(args, 'val_cs_model', None):
validation_generator = ValidationGenerator(
args.val_annotations,
args.classes
)
elif args.val_annotations:
validation_generator = Generator(
args.val_annotations,
args.classes,
batch_size = args.batch_size
)
else:
validation_generator = None
return train_generator, validation_generator
def create_models(num_classes, args):
if args.model_type == 'cs':
model = models.detectionModel(num_classes = num_classes, input_feature_size = args.data_channels)
detections = model.outputs[0]
reshaped = keras.layers.Reshape((num_classes,), name='classification' )(detections)
training_model = keras.models.Model(inputs=model.inputs, outputs=reshaped)
prediction_model = training_model
training_model.compile(
loss={'classification' : losses.detectionLossOHEM()},
optimizer=keras.optimizers.adam(lr=1e-5, clipnorm=0.001)
)
elif args.model_type == 'fpr':
if args.val_cs_weights:
# initiate fpr model with cs model weights
model = models.reductionModel1b(num_classes = num_classes, input_feature_size = args.data_channels, cs_model_path=args.val_cs_model)
else:
model = models.reductionModel1b(num_classes = num_classes, input_feature_size = args.data_channels)
training_model = model
# prediction_model = model
if args.val_cs_model and args.val_annotations:
cs_model = models.loadModel(args.val_cs_model)
prediction_model = models.convnet3dModel1b(model, cs_model)
else:
prediction_model = model
training_model.compile(
loss={
'classification' : keras.losses.sparse_categorical_crossentropy
},
optimizer=keras.optimizers.adam(lr=1e-5, clipnorm=0.001)
)
return model, training_model, prediction_model
def create_callbacks(model, training_model, prediction_model, validation_generator, args):
callbacks = []
if args.snapshots:
os.makedirs(args.snapshot_path, exist_ok=True)
checkpoint = keras.callbacks.ModelCheckpoint(
os.path.join(
args.snapshot_path,
'{model_type}_{{epoch:02d}}.h5'.format(model_type=args.model_type)
),
verbose=1
)
checkpoint = RedirectModel(checkpoint, model)
callbacks.append(checkpoint)
tensorboard_callback = None
if args.tensorboard_dir:
tensorboard_callback = keras.callbacks.TensorBoard(
log_dir = args.tensorboard_dir,
histogram_freq = 0,
batch_size = args.batch_size,
write_graph = True,
write_grads = False,
write_images = False,
embeddings_freq = 0,
embeddings_layer_names = None,
embeddings_metadata = None
)
callbacks.append(tensorboard_callback)
if args.val_annotations:
if args.model_type == 'cs':
evaluation = Evaluate(validation_generator, mode='recall', tensorboard=tensorboard_callback)
elif args.val_cs_model:
evaluation = Evaluate(
validation_generator,
mode='mAP',
tensorboard=tensorboard_callback,
window_size = (25, 60, 60),
sliding_strides = (13, 30, 30),
nms=True
)
else:
evaluation = Evaluate(validation_generator, mode='accuracy', tensorboard=tensorboard_callback)
evaluation = RedirectModel(evaluation, prediction_model)
callbacks.append(evaluation)
callbacks.append(keras.callbacks.ReduceLROnPlateau(
monitor = 'loss',
factor = 0.1,
patience = 2,
verbose = 1,
mode = 'auto',
epsilon = 0.0001,
cooldown = 0,
min_lr = 0
))
return callbacks
def parse_args(args):
'''Parse the arguments
'''
parser = argparse.ArgumentParser(description='Simple training script for training the candidate screening model & false positive reduction model.')
subparsers = parser.add_subparsers(help='Specitic the model type: cs/fpr.', dest='model_type')
subparsers.required = True
cs_parser = subparsers.add_parser('cs') # noqa: F841
fpr_parser = subparsers.add_parser('fpr')
fpr_parser.add_argument('--val-cs-model', help='Path to candidate screening model, then the two model are combined to biuld a convnet3d model for validation.')
group = parser.add_mutually_exclusive_group()
group.add_argument('--snapshot')
group.add_argument('--no-weights', dest='val_cs_weights', action='store_const', const=False)
group.add_argument('--val-cs-weights', action='store_true')
parser.add_argument('annotations')
parser.add_argument('classes')
parser.add_argument('--val-annotations')
parser.add_argument('--batch-size', type=int, default=32)
parser.add_argument('--epochs', type=int, default=50)
def devices(string):
return string.split(',')
parser.add_argument('--gpu', metavar='GPUs', type=devices, default=None)
parser.add_argument('--snapshot-path', default='./snapshots')
parser.add_argument('--tensorboard-dir', default='./logs')
parser.add_argument('--no-snapshots', dest='snapshots', action='store_false')
parser.add_argument('--random-transform', action='store_true')
parser.add_argument('--data-channels', default=1, type=int)
return check_args(parser.parse_args(args))
def check_args(parsed_args):
if parsed_args.val_cs_weights:
if parsed_args.model_type == 'cs':
raise ValueError(
'"--val-cs-model" is an option for fpr model only. ')
elif not parsed_args.val_cs_model:
raise ValueError(
'Validation cs model has not benn set yet. (See "--val-cs-model")')
return parsed_args
def main(args=None):
if args is None:
args = sys.argv[1:]
args = parse_args(args)
if args.gpu:
os.environ['CUDA_VISIBLE_DEVICES'] = args.gpu[0]
keras.backend.tensorflow_backend.set_session(get_session())
train_generator, validation_generator = create_generators(args)
if args.snapshot is not None:
raise NotImplementedError('Snapshot option is unsupported now.')
else:
print('Creating model, this may take a second...')
model, training_model, prediction_model = create_models(
num_classes = train_generator.numClasses(),
args = args
)
print(model.summary())
callbacks = create_callbacks(
model,
training_model,
prediction_model,
validation_generator,
args
)
# training
training_model.fit_generator(
generator=train_generator,
epochs=args.epochs,
verbose=1,
callbacks=callbacks
)
if __name__ == '__main__':
main()
| 6,119 | 0 | 142 |
373d0db4da6950d1bc8a4dabb4dea5dbcd544cf5 | 1,587 | py | Python | pipeline_win.py | AndresRubianoM/DataScrapping | 2523cd848939992ac4c01534fd0e45ad2ff7f179 | [
"MIT"
] | null | null | null | pipeline_win.py | AndresRubianoM/DataScrapping | 2523cd848939992ac4c01534fd0e45ad2ff7f179 | [
"MIT"
] | null | null | null | pipeline_win.py | AndresRubianoM/DataScrapping | 2523cd848939992ac4c01534fd0e45ad2ff7f179 | [
"MIT"
] | null | null | null | import logging
import subprocess
logging.basicConfig(level = logging.INFO)
logger = logging.getLogger(__name__)
news_sites_uid = ['elpais']
if __name__ == '__main__':
main() | 32.387755 | 142 | 0.676118 | import logging
import subprocess
logging.basicConfig(level = logging.INFO)
logger = logging.getLogger(__name__)
news_sites_uid = ['elpais']
def main():
_extract()
_tranform()
_load()
def _extract():
logger.info('Beginning the extract process')
for new_site_uid in news_sites_uid:
#Commands to automatizate the cmd operations
subprocess.run(['python', 'main.py', new_site_uid], cwd = '.\extract') #execute main.py to extract the data
subprocess.run(['move', '.\extract\*.csv', '.\Transform\{}_.csv'.format(new_site_uid)], shell = True) #Find all the files and move it
def _tranform():
logger.info('Starting transform process')
for new_site_uid in news_sites_uid:
dirty_data_filename = '{}_.csv'.format(new_site_uid)
clean_data_filename = 'clean_{}'.format(dirty_data_filename)
subprocess.run(['python', 'newspaper_recipe.py', dirty_data_filename], cwd = '.\Transform') #execute the newspaper_recipe.py
subprocess.run(['del', '.\Transform\{}'.format(dirty_data_filename)], shell = True)
subprocess.run(['move', '.\Transform\{}'.format(clean_data_filename), '.\load\{}.csv'.format(new_site_uid)], shell = True)
def _load():
logger.info('Starting load process')
for new_site_uid in news_sites_uid:
clean_data_filename = '{}.csv'.format(new_site_uid)
subprocess.run(['python', 'save_data.py', clean_data_filename], cwd = '.\load')
subprocess.run(['del', '.\load\{}'.format(clean_data_filename)], shell = True)
if __name__ == '__main__':
main() | 1,308 | 0 | 92 |
b32bd4bfe56139d124371a82bdf53c931c3b5161 | 15,332 | py | Python | vlc-ios-3.0.3/Tools/update_strings.py | qq644531343/vlc-ios | c12421e1d9842f268e3cb64518dd0e0dca32db3c | [
"Apache-2.0"
] | null | null | null | vlc-ios-3.0.3/Tools/update_strings.py | qq644531343/vlc-ios | c12421e1d9842f268e3cb64518dd0e0dca32db3c | [
"Apache-2.0"
] | null | null | null | vlc-ios-3.0.3/Tools/update_strings.py | qq644531343/vlc-ios | c12421e1d9842f268e3cb64518dd0e0dca32db3c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Update or create an Apple XCode project localization strings file.
TODO: handle localization domains
'''
from __future__ import with_statement
import sys
import os
import os.path
import re
import tempfile
import subprocess
import codecs
import unittest
import optparse
import shutil
import logging
ENCODINGS = ['utf16', 'utf8']
class LocalizedString(object):
''' A localized string from a strings file '''
COMMENT_EXPR = re.compile(
# Line start
'^\w*'
# Comment
'/\* (?P<comment>.+) \*/'
# End of line
'\w*$'
)
LOCALIZED_STRING_EXPR = re.compile(
# Line start
'^'
# Key
'"(?P<key>.+)"'
# Equals
' ?= ?'
# Value
'"(?P<value>.+)"'
# Whitespace
';'
# Comment
'(?: /\* (?P<comment>.+) \*/)?'
# End of line
'$'
)
@classmethod
def parse_comment(cls, comment):
'''
Extract the content of a comment line from a strings file.
Returns the comment string or None if the line doesn't match.
'''
result = cls.COMMENT_EXPR.match(comment)
if result != None:
return result.group('comment')
else:
return None
@classmethod
def from_line(cls, line):
'''
Extract the content of a string line from a strings file.
Returns a LocalizedString instance or None if the line doesn't match.
TODO: handle whitespace restore
'''
result = cls.LOCALIZED_STRING_EXPR.match(line)
if result != None:
return cls(
result.group('key'),
result.group('value'),
result.group('comment')
)
else:
return None
def is_raw(self):
'''
Return True if the localized string has not been translated.
'''
return self.value == self.key
def strings_from_folder(folder_path, extensions=None, exclude=None):
'''
Recursively scan folder_path for files containing localizable strings.
Run genstrings on these files and extract the strings.
Returns a dictionnary of LocalizedString instances, indexed by key.
'''
localized_strings = {}
code_file_paths = []
if extensions == None:
extensions = frozenset(['m', 'mm'])
if exclude == None:
exclude = frozenset(['ImportedSources','Pods'])
logging.debug('Scanning for source files in %s', folder_path)
for dir_path, dir_names, file_names in os.walk(folder_path):
dir_names[:] = [d for d in dir_names if d not in exclude]
for file_name in file_names:
extension = file_name.rpartition('.')[2]
if extension in extensions:
code_file_path = os.path.join(dir_path, file_name)
code_file_paths.append(code_file_path)
logging.debug('Found %d files', len(code_file_paths))
logging.debug('Running genstrings')
temp_folder_path = tempfile.mkdtemp()
arguments = ['genstrings', '-u', '-o', temp_folder_path]
arguments.extend(code_file_paths)
logging.debug('Here are the argumengts %s', arguments)
subprocess.call(arguments)
temp_file_path = os.path.join(temp_folder_path, 'Localizable.strings')
if os.path.exists(temp_file_path):
logging.debug('Analysing genstrings content')
localized_strings = strings_from_file(temp_file_path)
os.remove(temp_file_path)
else:
logging.debug('No translations found')
shutil.rmtree(temp_folder_path)
return localized_strings
def strings_from_file(file_path):
'''
Try to autodetect file encoding and call strings_from_encoded_file on the
file at file_path.
Returns a dictionnary of LocalizedString instances, indexed by key.
Returns an empty dictionnary if the encoding is wrong.
'''
for current_encoding in ENCODINGS:
try:
return strings_from_encoded_file(file_path, current_encoding)
except UnicodeError:
pass
logging.error(
'Cannot determine encoding for file %s among %s',
file_path,
', '.join(ENCODINGS)
)
return {}
def strings_from_encoded_file(file_path, encoding):
'''
Extract the strings from the file at file_path.
Returns a dictionnary of LocalizedString instances, indexed by key.
'''
localized_strings = {}
with codecs.open(file_path, 'r', encoding) as content:
comment = None
for line in content:
line = line.strip()
if not line:
comment = None
continue
current_comment = LocalizedString.parse_comment(line)
if current_comment:
if current_comment != 'No comment provided by engineer.':
comment = current_comment
continue
localized_string = LocalizedString.from_line(line)
if localized_string:
if not localized_string.comment:
localized_string.comment = comment
localized_strings[localized_string.key] = localized_string
else:
logging.error('Could not parse: %s', line.strip())
return localized_strings
def strings_to_file(localized_strings, file_path, encoding='utf16'):
'''
Write a strings file at file_path containing string in
the localized_strings dictionnary.
The strings are alphabetically sorted.
'''
with codecs.open(file_path, 'w', encoding) as output:
for localized_string in sorted_strings_from_dict(localized_strings):
output.write('%s\n' % localized_string)
def update_file_with_strings(file_path, localized_strings):
'''
Try to autodetect file encoding and call update_encoded_file_with_strings
on the file at file_path.
The file at file_path must exist or this function will raise an exception.
'''
for current_encoding in ENCODINGS:
try:
return update_encoded_file_with_strings(
file_path,
localized_strings,
current_encoding
)
except UnicodeError:
pass
logging.error(
'Cannot determine encoding for file %s among %s',
file_path,
', '.join(ENCODINGS)
)
return {}
def update_encoded_file_with_strings(
file_path,
localized_strings,
encoding='utf16'
):
'''
Update file at file_path with translations from localized_strings, trying
to preserve the initial formatting by only removing the old translations,
updating the current ones and adding the new translations at the end of
the file.
The file at file_path must exist or this function will raise an exception.
'''
output_strings = []
keys = set()
with codecs.open(file_path, 'r', encoding) as content:
for line in content:
current_string = LocalizedString.from_line(line.strip())
if current_string:
key = current_string.key
localized_string = localized_strings.get(key, None)
if localized_string:
keys.add(key)
output_strings.append(unicode(localized_string))
else:
output_strings.append(line[:-1])
new_strings = []
for value in localized_strings.itervalues():
if value.key not in keys:
new_strings.append(unicode(value))
if len(new_strings) != 0:
output_strings.append('')
output_strings.append('/* New strings */')
new_strings.sort()
output_strings.extend(new_strings)
with codecs.open(file_path, 'w', encoding) as output:
output.write('\n'.join(output_strings))
# Always add a new line at the end of the file
output.write('\n')
def match_strings(scanned_strings, reference_strings):
'''
Complete scanned_strings with translations from reference_strings.
Return the completed scanned_strings dictionnary.
scanned_strings is not affected.
Strings in reference_strings and not in scanned_strings are not copied.
'''
final_strings = {}
for key, value in scanned_strings.iteritems():
reference_value = reference_strings.get(key, None)
if reference_value:
if reference_value.is_raw():
# Mark non-translated strings
logging.debug('[raw] %s', key)
final_strings[key] = value
else:
# Reference comment comes from the code
reference_value.comment = value.comment
final_strings[key] = reference_value
else:
logging.debug('[new] %s', key)
final_strings[key] = value
final_keys = set(final_strings.keys())
for key in reference_strings.iterkeys():
if key not in final_keys:
logging.debug('[deleted] %s', key)
return final_strings
def merge_dictionaries(reference_dict, import_dict):
'''
Return a dictionnary containing key/values from reference_dict
and import_dict.
In case of conflict, the value from reference_dict is chosen.
'''
final_dict = reference_dict.copy()
reference_dict_keys = set(reference_dict.keys())
for key, value in import_dict.iteritems():
if key not in reference_dict_keys:
final_dict[key] = value
return final_dict
def sorted_strings_from_dict(strings):
'''
Return an array containing the string objects sorted alphabetically.
'''
keys = strings.keys()
keys.sort()
values = []
for key in keys:
values.append(strings[key])
return values
class Tests(unittest.TestCase):
''' Unit Tests '''
def test_comment(self):
''' Test comment pattern '''
result = LocalizedString.COMMENT_EXPR.match('/* Testing Comments */')
self.assertNotEqual(result, None, 'Pattern not recognized')
self.assertEqual(result.group('comment'), 'Testing Comments',
'Incorrect pattern content: [%s]' % result.group('comment')
)
def test_localized_string(self):
''' Test localized string pattern '''
result = LocalizedString.LOCALIZED_STRING_EXPR.match(
'"KEY" = "VALUE";'
)
self.assertNotEqual(result, None, 'Pattern not recognized')
self.assertEqual(result.group('key'), 'KEY',
'Incorrect comment content: [%s]' % result.group('key')
)
self.assertEqual(result.group('value'), 'VALUE',
'Incorrect comment content: [%s]' % result.group('value')
)
self.assertEqual(result.group('comment'), None,
'Incorrect comment content: [%s]' % result.group('comment')
)
def test_localized_comment_string(self):
''' Test localized string with comment pattern '''
result = LocalizedString.LOCALIZED_STRING_EXPR.match(
'"KEY" = "VALUE"; /* COMMENT */'
)
self.assertNotEqual(result, None, 'Pattern not recognized')
self.assertEqual(result.group('key'), 'KEY',
'Incorrect comment content: [%s]' % result.group('key')
)
self.assertEqual(result.group('value'), 'VALUE',
'Incorrect comment content: [%s]' % result.group('value')
)
self.assertEqual(result.group('comment'), 'COMMENT',
'Incorrect comment content: [%s]' % result.group('comment')
)
def main():
''' Parse the command line and do what it is telled to do '''
parser = optparse.OptionParser(
'usage: %prog [options] Localizable.strings [source folders]'
)
parser.add_option(
'-v',
'--verbose',
action='store_true',
dest='verbose',
default=False,
help='Show debug messages'
)
parser.add_option(
'',
'--dry-run',
action='store_true',
dest='dry_run',
default=False,
help='Do not write to the strings file'
)
parser.add_option(
'',
'--import',
dest='import_file',
help='Import strings from FILENAME'
)
parser.add_option(
'',
'--overwrite',
action='store_true',
dest='overwrite',
default=False,
help='Overwrite the strings file, ignores original formatting'
)
parser.add_option(
'',
'--unittests',
action='store_true',
dest='unittests',
default=False,
help='Run unit tests (debug)'
)
(options, args) = parser.parse_args()
logging.basicConfig(
format='%(message)s',
level=options.verbose and logging.DEBUG or logging.INFO
)
if options.unittests:
suite = unittest.TestLoader().loadTestsFromTestCase(Tests)
return unittest.TextTestRunner(verbosity=2).run(suite)
if len(args) == 0:
parser.error('Please specify a strings file')
strings_file = args[0]
input_folders = ['.']
if len(args) > 1:
input_folders = args[1:]
scanned_strings = {}
for input_folder in input_folders:
if not os.path.isdir(input_folder):
logging.error('Input path is not a folder: %s', input_folder)
return 1
# TODO: allow to specify file extensions to scan
scanned_strings = merge_dictionaries(
scanned_strings,
strings_from_folder(input_folder)
)
if options.import_file:
logging.debug(
'Reading import file: %s',
options.import_file
)
reference_strings = strings_from_file(options.import_file)
scanned_strings = match_strings(
scanned_strings,
reference_strings
)
if os.path.isfile(strings_file):
logging.debug(
'Reading strings file: %s',
strings_file
)
reference_strings = strings_from_file(
strings_file
)
scanned_strings = match_strings(
scanned_strings,
reference_strings
)
if options.dry_run:
logging.info(
'Dry run: the strings file has not been updated'
)
else:
try:
if os.path.exists(strings_file) and not options.overwrite:
update_file_with_strings(strings_file, scanned_strings)
else:
strings_to_file(scanned_strings, strings_file)
except IOError, exc:
logging.error('Error writing to file %s: %s', strings_file, exc)
return 1
logging.info(
'Strings were generated in %s',
strings_file
)
return 0
if __name__ == '__main__':
sys.exit(main())
| 29.828794 | 78 | 0.604031 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Update or create an Apple XCode project localization strings file.
TODO: handle localization domains
'''
from __future__ import with_statement
import sys
import os
import os.path
import re
import tempfile
import subprocess
import codecs
import unittest
import optparse
import shutil
import logging
ENCODINGS = ['utf16', 'utf8']
class LocalizedString(object):
''' A localized string from a strings file '''
COMMENT_EXPR = re.compile(
# Line start
'^\w*'
# Comment
'/\* (?P<comment>.+) \*/'
# End of line
'\w*$'
)
LOCALIZED_STRING_EXPR = re.compile(
# Line start
'^'
# Key
'"(?P<key>.+)"'
# Equals
' ?= ?'
# Value
'"(?P<value>.+)"'
# Whitespace
';'
# Comment
'(?: /\* (?P<comment>.+) \*/)?'
# End of line
'$'
)
@classmethod
def parse_comment(cls, comment):
'''
Extract the content of a comment line from a strings file.
Returns the comment string or None if the line doesn't match.
'''
result = cls.COMMENT_EXPR.match(comment)
if result != None:
return result.group('comment')
else:
return None
@classmethod
def from_line(cls, line):
'''
Extract the content of a string line from a strings file.
Returns a LocalizedString instance or None if the line doesn't match.
TODO: handle whitespace restore
'''
result = cls.LOCALIZED_STRING_EXPR.match(line)
if result != None:
return cls(
result.group('key'),
result.group('value'),
result.group('comment')
)
else:
return None
def __init__(self, key, value=None, comment=None):
super(LocalizedString, self).__init__()
self.key = key
self.value = value
self.comment = comment
def is_raw(self):
'''
Return True if the localized string has not been translated.
'''
return self.value == self.key
def __str__(self):
if self.comment:
return '"%s" = "%s"; /* %s */' % (
self.key or '', self.value or '', self.comment
)
else:
return '"%s" = "%s";' % (self.key or '', self.value or '')
def strings_from_folder(folder_path, extensions=None, exclude=None):
'''
Recursively scan folder_path for files containing localizable strings.
Run genstrings on these files and extract the strings.
Returns a dictionnary of LocalizedString instances, indexed by key.
'''
localized_strings = {}
code_file_paths = []
if extensions == None:
extensions = frozenset(['m', 'mm'])
if exclude == None:
exclude = frozenset(['ImportedSources','Pods'])
logging.debug('Scanning for source files in %s', folder_path)
for dir_path, dir_names, file_names in os.walk(folder_path):
dir_names[:] = [d for d in dir_names if d not in exclude]
for file_name in file_names:
extension = file_name.rpartition('.')[2]
if extension in extensions:
code_file_path = os.path.join(dir_path, file_name)
code_file_paths.append(code_file_path)
logging.debug('Found %d files', len(code_file_paths))
logging.debug('Running genstrings')
temp_folder_path = tempfile.mkdtemp()
arguments = ['genstrings', '-u', '-o', temp_folder_path]
arguments.extend(code_file_paths)
logging.debug('Here are the argumengts %s', arguments)
subprocess.call(arguments)
temp_file_path = os.path.join(temp_folder_path, 'Localizable.strings')
if os.path.exists(temp_file_path):
logging.debug('Analysing genstrings content')
localized_strings = strings_from_file(temp_file_path)
os.remove(temp_file_path)
else:
logging.debug('No translations found')
shutil.rmtree(temp_folder_path)
return localized_strings
def strings_from_file(file_path):
'''
Try to autodetect file encoding and call strings_from_encoded_file on the
file at file_path.
Returns a dictionnary of LocalizedString instances, indexed by key.
Returns an empty dictionnary if the encoding is wrong.
'''
for current_encoding in ENCODINGS:
try:
return strings_from_encoded_file(file_path, current_encoding)
except UnicodeError:
pass
logging.error(
'Cannot determine encoding for file %s among %s',
file_path,
', '.join(ENCODINGS)
)
return {}
def strings_from_encoded_file(file_path, encoding):
'''
Extract the strings from the file at file_path.
Returns a dictionnary of LocalizedString instances, indexed by key.
'''
localized_strings = {}
with codecs.open(file_path, 'r', encoding) as content:
comment = None
for line in content:
line = line.strip()
if not line:
comment = None
continue
current_comment = LocalizedString.parse_comment(line)
if current_comment:
if current_comment != 'No comment provided by engineer.':
comment = current_comment
continue
localized_string = LocalizedString.from_line(line)
if localized_string:
if not localized_string.comment:
localized_string.comment = comment
localized_strings[localized_string.key] = localized_string
else:
logging.error('Could not parse: %s', line.strip())
return localized_strings
def strings_to_file(localized_strings, file_path, encoding='utf16'):
'''
Write a strings file at file_path containing string in
the localized_strings dictionnary.
The strings are alphabetically sorted.
'''
with codecs.open(file_path, 'w', encoding) as output:
for localized_string in sorted_strings_from_dict(localized_strings):
output.write('%s\n' % localized_string)
def update_file_with_strings(file_path, localized_strings):
'''
Try to autodetect file encoding and call update_encoded_file_with_strings
on the file at file_path.
The file at file_path must exist or this function will raise an exception.
'''
for current_encoding in ENCODINGS:
try:
return update_encoded_file_with_strings(
file_path,
localized_strings,
current_encoding
)
except UnicodeError:
pass
logging.error(
'Cannot determine encoding for file %s among %s',
file_path,
', '.join(ENCODINGS)
)
return {}
def update_encoded_file_with_strings(
file_path,
localized_strings,
encoding='utf16'
):
'''
Update file at file_path with translations from localized_strings, trying
to preserve the initial formatting by only removing the old translations,
updating the current ones and adding the new translations at the end of
the file.
The file at file_path must exist or this function will raise an exception.
'''
output_strings = []
keys = set()
with codecs.open(file_path, 'r', encoding) as content:
for line in content:
current_string = LocalizedString.from_line(line.strip())
if current_string:
key = current_string.key
localized_string = localized_strings.get(key, None)
if localized_string:
keys.add(key)
output_strings.append(unicode(localized_string))
else:
output_strings.append(line[:-1])
new_strings = []
for value in localized_strings.itervalues():
if value.key not in keys:
new_strings.append(unicode(value))
if len(new_strings) != 0:
output_strings.append('')
output_strings.append('/* New strings */')
new_strings.sort()
output_strings.extend(new_strings)
with codecs.open(file_path, 'w', encoding) as output:
output.write('\n'.join(output_strings))
# Always add a new line at the end of the file
output.write('\n')
def match_strings(scanned_strings, reference_strings):
'''
Complete scanned_strings with translations from reference_strings.
Return the completed scanned_strings dictionnary.
scanned_strings is not affected.
Strings in reference_strings and not in scanned_strings are not copied.
'''
final_strings = {}
for key, value in scanned_strings.iteritems():
reference_value = reference_strings.get(key, None)
if reference_value:
if reference_value.is_raw():
# Mark non-translated strings
logging.debug('[raw] %s', key)
final_strings[key] = value
else:
# Reference comment comes from the code
reference_value.comment = value.comment
final_strings[key] = reference_value
else:
logging.debug('[new] %s', key)
final_strings[key] = value
final_keys = set(final_strings.keys())
for key in reference_strings.iterkeys():
if key not in final_keys:
logging.debug('[deleted] %s', key)
return final_strings
def merge_dictionaries(reference_dict, import_dict):
'''
Return a dictionnary containing key/values from reference_dict
and import_dict.
In case of conflict, the value from reference_dict is chosen.
'''
final_dict = reference_dict.copy()
reference_dict_keys = set(reference_dict.keys())
for key, value in import_dict.iteritems():
if key not in reference_dict_keys:
final_dict[key] = value
return final_dict
def sorted_strings_from_dict(strings):
'''
Return an array containing the string objects sorted alphabetically.
'''
keys = strings.keys()
keys.sort()
values = []
for key in keys:
values.append(strings[key])
return values
class Tests(unittest.TestCase):
''' Unit Tests '''
def test_comment(self):
''' Test comment pattern '''
result = LocalizedString.COMMENT_EXPR.match('/* Testing Comments */')
self.assertNotEqual(result, None, 'Pattern not recognized')
self.assertEqual(result.group('comment'), 'Testing Comments',
'Incorrect pattern content: [%s]' % result.group('comment')
)
def test_localized_string(self):
''' Test localized string pattern '''
result = LocalizedString.LOCALIZED_STRING_EXPR.match(
'"KEY" = "VALUE";'
)
self.assertNotEqual(result, None, 'Pattern not recognized')
self.assertEqual(result.group('key'), 'KEY',
'Incorrect comment content: [%s]' % result.group('key')
)
self.assertEqual(result.group('value'), 'VALUE',
'Incorrect comment content: [%s]' % result.group('value')
)
self.assertEqual(result.group('comment'), None,
'Incorrect comment content: [%s]' % result.group('comment')
)
def test_localized_comment_string(self):
''' Test localized string with comment pattern '''
result = LocalizedString.LOCALIZED_STRING_EXPR.match(
'"KEY" = "VALUE"; /* COMMENT */'
)
self.assertNotEqual(result, None, 'Pattern not recognized')
self.assertEqual(result.group('key'), 'KEY',
'Incorrect comment content: [%s]' % result.group('key')
)
self.assertEqual(result.group('value'), 'VALUE',
'Incorrect comment content: [%s]' % result.group('value')
)
self.assertEqual(result.group('comment'), 'COMMENT',
'Incorrect comment content: [%s]' % result.group('comment')
)
def main():
''' Parse the command line and do what it is telled to do '''
parser = optparse.OptionParser(
'usage: %prog [options] Localizable.strings [source folders]'
)
parser.add_option(
'-v',
'--verbose',
action='store_true',
dest='verbose',
default=False,
help='Show debug messages'
)
parser.add_option(
'',
'--dry-run',
action='store_true',
dest='dry_run',
default=False,
help='Do not write to the strings file'
)
parser.add_option(
'',
'--import',
dest='import_file',
help='Import strings from FILENAME'
)
parser.add_option(
'',
'--overwrite',
action='store_true',
dest='overwrite',
default=False,
help='Overwrite the strings file, ignores original formatting'
)
parser.add_option(
'',
'--unittests',
action='store_true',
dest='unittests',
default=False,
help='Run unit tests (debug)'
)
(options, args) = parser.parse_args()
logging.basicConfig(
format='%(message)s',
level=options.verbose and logging.DEBUG or logging.INFO
)
if options.unittests:
suite = unittest.TestLoader().loadTestsFromTestCase(Tests)
return unittest.TextTestRunner(verbosity=2).run(suite)
if len(args) == 0:
parser.error('Please specify a strings file')
strings_file = args[0]
input_folders = ['.']
if len(args) > 1:
input_folders = args[1:]
scanned_strings = {}
for input_folder in input_folders:
if not os.path.isdir(input_folder):
logging.error('Input path is not a folder: %s', input_folder)
return 1
# TODO: allow to specify file extensions to scan
scanned_strings = merge_dictionaries(
scanned_strings,
strings_from_folder(input_folder)
)
if options.import_file:
logging.debug(
'Reading import file: %s',
options.import_file
)
reference_strings = strings_from_file(options.import_file)
scanned_strings = match_strings(
scanned_strings,
reference_strings
)
if os.path.isfile(strings_file):
logging.debug(
'Reading strings file: %s',
strings_file
)
reference_strings = strings_from_file(
strings_file
)
scanned_strings = match_strings(
scanned_strings,
reference_strings
)
if options.dry_run:
logging.info(
'Dry run: the strings file has not been updated'
)
else:
try:
if os.path.exists(strings_file) and not options.overwrite:
update_file_with_strings(strings_file, scanned_strings)
else:
strings_to_file(scanned_strings, strings_file)
except IOError, exc:
logging.error('Error writing to file %s: %s', strings_file, exc)
return 1
logging.info(
'Strings were generated in %s',
strings_file
)
return 0
if __name__ == '__main__':
sys.exit(main())
| 389 | 0 | 54 |
86dfc395ff5ab6ef9c14be7ee4df1e0ab24a57c0 | 85 | py | Python | mayday_control/scripts/side.py | LasseBoerresen/Lumos | 2447adc7795ae07cb0a1df409d3b1a6178c2cd8b | [
"MIT"
] | null | null | null | mayday_control/scripts/side.py | LasseBoerresen/Lumos | 2447adc7795ae07cb0a1df409d3b1a6178c2cd8b | [
"MIT"
] | null | null | null | mayday_control/scripts/side.py | LasseBoerresen/Lumos | 2447adc7795ae07cb0a1df409d3b1a6178c2cd8b | [
"MIT"
] | null | null | null | from enum import Enum, auto
| 12.142857 | 27 | 0.611765 | from enum import Enum, auto
class Side(Enum):
LEFT = auto()
RIGHT = auto()
| 0 | 33 | 23 |
46f3c5c10009f79e8f58863d6137c6c1d59ef457 | 1,212 | py | Python | examples/hlapi/v3arch/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py | fabriziovanni/pysnmp | eef4cc03b4da199e9c131ddd18ccb7501f1f2c40 | [
"BSD-2-Clause"
] | null | null | null | examples/hlapi/v3arch/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py | fabriziovanni/pysnmp | eef4cc03b4da199e9c131ddd18ccb7501f1f2c40 | [
"BSD-2-Clause"
] | null | null | null | examples/hlapi/v3arch/asyncore/sync/agent/ntforg/send-notification-with-additional-varbinds.py | fabriziovanni/pysnmp | eef4cc03b4da199e9c131ddd18ccb7501f1f2c40 | [
"BSD-2-Clause"
] | null | null | null | """
Sending additional var-binds
++++++++++++++++++++++++++++
Send SNMP notification using the following options:
* SNMPv2c
* with community name 'public'
* over IPv4/UDP
* send INFORM notification
* with TRAP ID 'coldStart' specified as a MIB symbol
* include managed object information specified as a MIB symbol
Functionally similar to:
| $ snmpinform -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s "my system"
"""#
from pysnmp.hlapi import *
errorIndication, errorStatus, errorIndex, varBinds = next(
sendNotification(
SnmpEngine(),
CommunityData('public'),
UdpTransportTarget(('demo.snmplabs.com', 162)),
ContextData(),
'inform',
NotificationType(
ObjectIdentity('SNMPv2-MIB', 'coldStart')
).addVarBinds(
ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysName', 0), 'my system')
)
)
)
if errorIndication:
print(errorIndication)
elif errorStatus:
print('%s at %s' % (errorStatus.prettyPrint(),
errorIndex and varBinds[int(errorIndex) - 1][0] or '?'))
else:
for varBind in varBinds:
print(' = '.join([x.prettyPrint() for x in varBind]))
| 27.545455 | 105 | 0.632838 | """
Sending additional var-binds
++++++++++++++++++++++++++++
Send SNMP notification using the following options:
* SNMPv2c
* with community name 'public'
* over IPv4/UDP
* send INFORM notification
* with TRAP ID 'coldStart' specified as a MIB symbol
* include managed object information specified as a MIB symbol
Functionally similar to:
| $ snmpinform -v2c -c public demo.snmplabs.com 12345 1.3.6.1.6.3.1.1.5.1 1.3.6.1.2.1.1.1.0 s "my system"
"""#
from pysnmp.hlapi import *
errorIndication, errorStatus, errorIndex, varBinds = next(
sendNotification(
SnmpEngine(),
CommunityData('public'),
UdpTransportTarget(('demo.snmplabs.com', 162)),
ContextData(),
'inform',
NotificationType(
ObjectIdentity('SNMPv2-MIB', 'coldStart')
).addVarBinds(
ObjectType(ObjectIdentity('SNMPv2-MIB', 'sysName', 0), 'my system')
)
)
)
if errorIndication:
print(errorIndication)
elif errorStatus:
print('%s at %s' % (errorStatus.prettyPrint(),
errorIndex and varBinds[int(errorIndex) - 1][0] or '?'))
else:
for varBind in varBinds:
print(' = '.join([x.prettyPrint() for x in varBind]))
| 0 | 0 | 0 |
8769954b2a2c6814333a757790542af24afd9ca2 | 16,490 | py | Python | smt/surrogate_models/krg_mgp.py | joshuauk1026/smt | ec6aa20643b1e4fa772c6f470281c58df113c3a6 | [
"BSD-3-Clause"
] | 3 | 2017-09-08T21:32:16.000Z | 2021-04-20T20:52:30.000Z | smt/surrogate_models/krg_mgp.py | joshuauk1026/smt | ec6aa20643b1e4fa772c6f470281c58df113c3a6 | [
"BSD-3-Clause"
] | null | null | null | smt/surrogate_models/krg_mgp.py | joshuauk1026/smt | ec6aa20643b1e4fa772c6f470281c58df113c3a6 | [
"BSD-3-Clause"
] | null | null | null | """
Author: Remy Priem (remy.priem@onera.fr)
This package is distributed under New BSD license.
"""
from __future__ import division
import numpy as np
from scipy import linalg
from smt.utils.kriging_utils import differences
from smt.surrogate_models.krg_based import KrgBased
from smt.utils.kriging_utils import componentwise_distance
"""
The Active kriging class.
"""
| 31.833977 | 93 | 0.546574 | """
Author: Remy Priem (remy.priem@onera.fr)
This package is distributed under New BSD license.
"""
from __future__ import division
import numpy as np
from scipy import linalg
from smt.utils.kriging_utils import differences
from smt.surrogate_models.krg_based import KrgBased
from smt.utils.kriging_utils import componentwise_distance
"""
The Active kriging class.
"""
class MGP(KrgBased):
def _initialize(self):
"""
Initialized MGP
"""
super(MGP, self)._initialize()
declare = self.options.declare
declare("n_comp", 1, types=int, desc="Number of active dimensions")
declare(
"prior",
{"mean": [0.0], "var": 5.0 / 4.0},
types=dict,
desc="Parameters for Gaussian prior of the Hyperparameters",
)
self.options["hyper_opt"] = "TNC"
self.options["corr"] = "act_exp"
self.name = "MGP"
def _componentwise_distance(self, dx, small=False, opt=0):
"""
Compute the componentwise distance with respect to the correlation kernel
Parameters
----------
dx : numpy.ndarray
Distance matrix.
small : bool, optional
Compute the componentwise distance in small (n_components) dimension
or in initial dimension. The default is False.
opt : int, optional
useless for MGP
Returns
-------
d : numpy.ndarray
Component wise distance.
"""
if small:
d = componentwise_distance(dx, self.options["corr"], self.options["n_comp"])
else:
d = componentwise_distance(dx, self.options["corr"], self.nx)
return d
def predict_variances(self, x, both=False):
"""
Predict the variance of a specific point
Parameters
----------
x : numpy.ndarray
Point to compute.
both : bool, optional
True if MSE and MGP-MSE wanted. The default is False.
Raises
------
ValueError
The number fo dimension is not good.
Returns
-------
numpy.nd array
MSE or (MSE, MGP-MSE).
"""
n_eval, n_features = x.shape
if n_features < self.nx:
if n_features != self.options["n_comp"]:
raise ValueError(
"dim(u) should be equal to %i" % self.options["n_comp"]
)
u = x
x = self.get_x_from_u(u)
u = u * self.embedding["norm"] - self.U_mean
x = (x - self.X_offset) / self.X_scale
else:
if n_features != self.nx:
raise ValueError("dim(x) should be equal to %i" % self.X_scale.shape[0])
u = None
x = (x - self.X_offset) / self.X_scale
dy = self._predict_value_derivatives_hyper(x, u)
dMSE, MSE = self._predict_variance_derivatives_hyper(x, u)
arg_1 = np.einsum("ij,ij->i", dy.T, linalg.solve(self.inv_sigma_R, dy).T)
arg_2 = np.einsum("ij,ij->i", dMSE.T, linalg.solve(self.inv_sigma_R, dMSE).T)
MGPMSE = np.zeros(x.shape[0])
MGPMSE[MSE != 0] = (
(4.0 / 3.0) * MSE[MSE != 0]
+ arg_1[MSE != 0]
+ (1.0 / (3.0 * MSE[MSE != 0])) * arg_2[MSE != 0]
)
MGPMSE[MGPMSE < 0.0] = 0.0
if both:
return MGPMSE, MSE
else:
return MGPMSE
def predict_values(self, x):
"""
Predict the value of the MGP for a given point
Parameters
----------
x : numpy.ndarray
Point to compute.
Raises
------
ValueError
The number fo dimension is not good.
Returns
-------
y : numpy.ndarray
Value of the MGP at the given point x.
"""
n_eval, n_features = x.shape
if n_features < self.nx:
if n_features != self.options["n_comp"]:
raise ValueError(
"dim(u) should be equal to %i" % self.options["n_comp"]
)
theta = np.eye(self.options["n_comp"]).reshape(
(self.options["n_comp"] ** 2,)
)
# Get pairwise componentwise L1-distances to the input training set
u = x
x = self.get_x_from_u(u)
u = u * self.embedding["norm"] - self.U_mean
du = differences(u, Y=self.U_norma.copy())
d = self._componentwise_distance(du, small=True)
# Get an approximation of x
x = (x - self.X_offset) / self.X_scale
dx = differences(x, Y=self.X_norma.copy())
d_x = self._componentwise_distance(dx)
else:
if n_features != self.nx:
raise ValueError("dim(x) should be equal to %i" % self.X_scale.shape[0])
theta = self.optimal_theta
# Get pairwise componentwise L1-distances to the input training set
x = (x - self.X_offset) / self.X_scale
dx = differences(x, Y=self.X_norma.copy())
d = self._componentwise_distance(dx)
d_x = None
# Compute the correlation function
r = self._correlation_types[self.options["corr"]](theta, d, d_x=d_x).reshape(
n_eval, self.nt
)
f = self._regression_types[self.options["poly"]](x)
# Scaled predictor
y_ = np.dot(f, self.optimal_par["beta"]) + np.dot(r, self.optimal_par["gamma"])
# Predictor
y = (self.y_mean + self.y_std * y_).ravel()
return y
def _reduced_log_prior(self, theta, grad=False, hessian=False):
"""
Compute the reduced log prior at given hyperparameters
Parameters
----------
theta : numpy.ndarray
Hyperparameters.
grad : bool, optional
True to compuyte gradient. The default is False.
hessian : bool, optional
True to compute hessian. The default is False.
Returns
-------
res : numpy.ndarray
Value, gradient, hessian of the reduced log prior.
"""
nb_theta = len(theta)
if theta.ndim < 2:
theta = np.atleast_2d(theta).T
mean = np.ones((nb_theta, 1)) * self.options["prior"]["mean"]
sig_inv = np.eye(nb_theta) / self.options["prior"]["var"]
if grad:
sig_inv_m = np.atleast_2d(np.sum(sig_inv, axis=0)).T
res = -2.0 * (theta - mean) * sig_inv_m
elif hessian:
res = -2.0 * np.atleast_2d(np.sum(sig_inv, axis=0)).T
else:
res = -np.dot((theta - mean).T, sig_inv.dot(theta - mean))
return res
def _predict_value_derivatives_hyper(self, x, u=None):
"""
Compute the derivatives of the mean of the GP with respect to the hyperparameters
Parameters
----------
x : numpy.ndarray
Point to compute in initial dimension.
u : numpy.ndarray, optional
Point to compute in small dimension. The default is None.
Returns
-------
dy : numpy.ndarray
Derivatives of the mean of the GP with respect to the hyperparameters.
"""
# Initialization
n_eval, _ = x.shape
# Get pairwise componentwise L1-distances to the input training set
dx = differences(x, Y=self.X_norma.copy())
d_x = self._componentwise_distance(dx)
if u is not None:
theta = np.eye(self.options["n_comp"]).reshape(
(self.options["n_comp"] ** 2,)
)
# Get pairwise componentwise L1-distances to the input training set
du = differences(u, Y=self.U_norma.copy())
d = self._componentwise_distance(du, small=True)
else:
theta = self.optimal_theta
# Get pairwise componentwise L1-distances to the input training set
d = d_x
d_x = None
# Compute the correlation function
r = self._correlation_types[self.options["corr"]](theta, d, d_x=d_x).reshape(
n_eval, self.nt
)
# Compute the regression function
f = self._regression_types[self.options["poly"]](x)
dy = np.zeros((len(self.optimal_theta), n_eval))
gamma = self.optimal_par["gamma"]
Rinv_dR_gamma = self.optimal_par["Rinv_dR_gamma"]
Rinv_dmu = self.optimal_par["Rinv_dmu"]
for omega in range(len(self.optimal_theta)):
drdomega = self._correlation_types[self.options["corr"]](
theta, d, grad_ind=omega, d_x=d_x
).reshape(n_eval, self.nt)
dbetadomega = self.optimal_par["dbeta_all"][omega]
dy_omega = (
f.dot(dbetadomega)
+ drdomega.dot(gamma)
- r.dot(Rinv_dR_gamma[omega] + Rinv_dmu[omega])
)
dy[omega, :] = dy_omega[:, 0]
return dy
def _predict_variance_derivatives_hyper(self, x, u=None):
"""
Compute the derivatives of the variance of the GP with respect to the hyperparameters
Parameters
----------
x : numpy.ndarray
Point to compute in initial dimension.
u : numpy.ndarray, optional
Point to compute in small dimension. The default is None.
Returns
-------
dMSE : numpy.ndarrray
derivatives of the variance of the GP with respect to the hyperparameters.
MSE : TYPE
Variance of the GP.
"""
# Initialization
n_eval, n_features_x = x.shape
# Get pairwise componentwise L1-distances to the input training set
dx = differences(x, Y=self.X_norma.copy())
d_x = self._componentwise_distance(dx)
if u is not None:
theta = np.eye(self.options["n_comp"]).reshape(
(self.options["n_comp"] ** 2,)
)
# Get pairwise componentwise L1-distances to the input training set
du = differences(u, Y=self.U_norma.copy())
d = self._componentwise_distance(du, small=True)
else:
theta = self.optimal_theta
# Get pairwise componentwise L1-distances to the input training set
d = d_x
d_x = None
# Compute the correlation function
r = (
self._correlation_types[self.options["corr"]](theta, d, d_x=d_x)
.reshape(n_eval, self.nt)
.T
)
f = self._regression_types[self.options["poly"]](x).T
C = self.optimal_par["C"]
G = self.optimal_par["G"]
Ft = self.optimal_par["Ft"]
sigma2 = self.optimal_par["sigma2"]
rt = linalg.solve_triangular(C, r, lower=True)
F_Rinv_r = np.dot(Ft.T, rt)
u_ = linalg.solve_triangular(G.T, f - F_Rinv_r)
MSE = self.optimal_par["sigma2"] * (
1.0 - (rt ** 2.0).sum(axis=0) + (u_ ** 2.0).sum(axis=0)
)
# Mean Squared Error might be slightly negative depending on
# machine precision: force to zero!
MSE[MSE < 0.0] = 0.0
Ginv_u = linalg.solve_triangular(G, u_, lower=False)
Rinv_F = linalg.solve_triangular(C.T, Ft, lower=False)
Rinv_r = linalg.solve_triangular(C.T, rt, lower=False)
Rinv_F_Ginv_u = Rinv_F.dot(Ginv_u)
dMSE = np.zeros((len(self.optimal_theta), n_eval))
dr_all = self.optimal_par["dr"]
dsigma = self.optimal_par["dsigma"]
for omega in range(len(self.optimal_theta)):
drdomega = (
self._correlation_types[self.options["corr"]](
theta, d, grad_ind=omega, d_x=d_x
)
.reshape(n_eval, self.nt)
.T
)
dRdomega = np.zeros((self.nt, self.nt))
dRdomega[self.ij[:, 0], self.ij[:, 1]] = dr_all[omega][:, 0]
dRdomega[self.ij[:, 1], self.ij[:, 0]] = dr_all[omega][:, 0]
# Compute du2dtheta
dRdomega_Rinv_F_Ginv_u = dRdomega.dot(Rinv_F_Ginv_u)
r_Rinv_dRdomega_Rinv_F_Ginv_u = np.einsum(
"ij,ij->i", Rinv_r.T, dRdomega_Rinv_F_Ginv_u.T
)
drdomega_Rinv_F_Ginv_u = np.einsum("ij,ij->i", drdomega.T, Rinv_F_Ginv_u.T)
u_Ginv_F_Rinv_dRdomega_Rinv_F_Ginv_u = np.einsum(
"ij,ij->i", Rinv_F_Ginv_u.T, dRdomega_Rinv_F_Ginv_u.T
)
du2domega = (
2.0 * r_Rinv_dRdomega_Rinv_F_Ginv_u
- 2.0 * drdomega_Rinv_F_Ginv_u
+ u_Ginv_F_Rinv_dRdomega_Rinv_F_Ginv_u
)
du2domega = np.atleast_2d(du2domega)
# Compute drt2dtheta
drdomega_Rinv_r = np.einsum("ij,ij->i", drdomega.T, Rinv_r.T)
r_Rinv_dRdomega_Rinv_r = np.einsum(
"ij,ij->i", Rinv_r.T, dRdomega.dot(Rinv_r).T
)
drt2domega = 2.0 * drdomega_Rinv_r - r_Rinv_dRdomega_Rinv_r
drt2domega = np.atleast_2d(drt2domega)
dMSE[omega] = dsigma[omega] * MSE / sigma2 + sigma2 * (
-drt2domega + du2domega
)
return dMSE, MSE
def get_x_from_u(self, u):
"""
Compute the point in initial dimension from a point in low dimension
Parameters
----------
u : numpy.ndarray
Point in low dimension.
Returns
-------
res : numpy.ndarray
point in initial dimension.
"""
u = np.atleast_2d(u)
self.embedding["Q_C"], self.embedding["R_C"]
x_temp = np.dot(
self.embedding["Q_C"],
linalg.solve_triangular(self.embedding["R_C"].T, u.T, lower=True),
).T
res = np.atleast_2d(x_temp)
return res
def get_u_from_x(self, x):
"""
Compute the point in low dimension from a point in initial dimension
Parameters
----------
x : numpy.ndarray
Point in initial dimension.
Returns
-------
u : numpy.ndarray
Point in low dimension.
"""
u = x.dot(self.embedding["C"])
return u
def _specific_train(self):
"""
Compute the specific training values necessary for MGP (Hessian)
"""
# Compute covariance matrix of hyperparameters
var_R = np.zeros((len(self.optimal_theta), len(self.optimal_theta)))
r, r_ij, par = self._reduced_likelihood_hessian(self.optimal_theta)
var_R[r_ij[:, 0], r_ij[:, 1]] = r[:, 0]
var_R[r_ij[:, 1], r_ij[:, 0]] = r[:, 0]
self.inv_sigma_R = -var_R
# Compute normalise embedding
self.optimal_par = par
A = np.reshape(self.optimal_theta, (self.options["n_comp"], self.nx)).T
B = (A.T / self.X_scale).T
norm_B = np.linalg.norm(B)
C = B / norm_B
self.embedding = {}
self.embedding["A"] = A
self.embedding["C"] = C
self.embedding["norm"] = norm_B
self.embedding["Q_C"], self.embedding["R_C"] = linalg.qr(C, mode="economic")
# Compute normalisation in embeding base
self.U_norma = self.X_norma.dot(A)
self.U_mean = self.X_offset.dot(C) * norm_B
# Compute best number of Components for Active Kriging
svd = linalg.svd(A)
svd_cumsum = np.cumsum(svd[1])
svd_sum = np.sum(svd[1])
self.best_ncomp = min(np.argwhere(svd_cumsum > 0.99 * svd_sum)) + 1
def _check_param(self):
"""
Overrides KrgBased implementation
This function checks some parameters of the model.
"""
d = self.options["n_comp"] * self.nx
if self.options["corr"] != "act_exp":
raise ValueError("MGP must be used with act_exp correlation function")
if self.options["hyper_opt"] != "TNC":
raise ValueError("MGP must be used with TNC hyperparameters optimizer")
if len(self.options["theta0"]) != d:
if len(self.options["theta0"]) == 1:
self.options["theta0"] *= np.ones(d)
else:
raise ValueError(
"the number of dim %s should be equal to the length of theta0 %s."
% (d, len(self.options["theta0"]))
)
| 0 | 16,093 | 23 |
5239e00a83e4cff0b9a0629d3941b9bf6db58e7f | 1,470 | py | Python | L1Trigger/TrackerTFP/python/Producer_cfi.py | Jingyan95/cmssw | f78d843f0837f269ee6811b0e0f4c0432928c190 | [
"Apache-2.0"
] | 5 | 2020-07-02T19:05:26.000Z | 2022-02-25T14:37:09.000Z | L1Trigger/TrackerTFP/python/Producer_cfi.py | Jingyan95/cmssw | f78d843f0837f269ee6811b0e0f4c0432928c190 | [
"Apache-2.0"
] | 61 | 2020-07-14T17:22:52.000Z | 2022-03-16T11:11:12.000Z | L1Trigger/TrackerTFP/python/Producer_cfi.py | dally96/cmssw | c37b9bfa391850cb349c71190b0bbb2d04224cc8 | [
"Apache-2.0"
] | 8 | 2020-06-08T16:28:54.000Z | 2021-11-16T14:40:00.000Z | import FWCore.ParameterSet.Config as cms
TrackerTFPProducer_params = cms.PSet (
LabelDTC = cms.string( "TrackerDTCProducer" ), #
LabelGP = cms.string( "TrackerTFPProducerGP" ), #
LabelHT = cms.string( "TrackerTFPProducerHT" ), #
LabelMHT = cms.string( "TrackerTFPProducerMHT" ), #
LabelZHT = cms.string( "TrackerTFPProducerZHT" ), #
LabelZHTout = cms.string( "TrackerTFPProducerZHTout" ), #
LabelKFin = cms.string( "TrackerTFPProducerKFin" ), #
LabelKF = cms.string( "TrackerTFPProducerKF" ), #
LabelDR = cms.string( "TrackerTFPProducerDR" ), #
LabelTT = cms.string( "TrackerTFPProducerTT" ), #
LabelAS = cms.string( "TrackerTFPProducerAS" ), #
BranchAcceptedStubs = cms.string( "StubAccepted" ), # branch for prodcut with passed stubs
BranchAcceptedTracks = cms.string( "TrackAccepted" ), # branch for prodcut with passed tracks
BranchLostStubs = cms.string( "StubLost" ), # branch for prodcut with lost stubs
BranchLostTracks = cms.string( "TracksLost" ), # branch for prodcut with lost tracks
CheckHistory = cms.bool ( False ), # checks if input sample production is configured as current process
EnableTruncation = cms.bool ( True ) # enable emulation of truncation, lost stubs are filled in BranchLost
) | 63.913043 | 132 | 0.621769 | import FWCore.ParameterSet.Config as cms
TrackerTFPProducer_params = cms.PSet (
LabelDTC = cms.string( "TrackerDTCProducer" ), #
LabelGP = cms.string( "TrackerTFPProducerGP" ), #
LabelHT = cms.string( "TrackerTFPProducerHT" ), #
LabelMHT = cms.string( "TrackerTFPProducerMHT" ), #
LabelZHT = cms.string( "TrackerTFPProducerZHT" ), #
LabelZHTout = cms.string( "TrackerTFPProducerZHTout" ), #
LabelKFin = cms.string( "TrackerTFPProducerKFin" ), #
LabelKF = cms.string( "TrackerTFPProducerKF" ), #
LabelDR = cms.string( "TrackerTFPProducerDR" ), #
LabelTT = cms.string( "TrackerTFPProducerTT" ), #
LabelAS = cms.string( "TrackerTFPProducerAS" ), #
BranchAcceptedStubs = cms.string( "StubAccepted" ), # branch for prodcut with passed stubs
BranchAcceptedTracks = cms.string( "TrackAccepted" ), # branch for prodcut with passed tracks
BranchLostStubs = cms.string( "StubLost" ), # branch for prodcut with lost stubs
BranchLostTracks = cms.string( "TracksLost" ), # branch for prodcut with lost tracks
CheckHistory = cms.bool ( False ), # checks if input sample production is configured as current process
EnableTruncation = cms.bool ( True ) # enable emulation of truncation, lost stubs are filled in BranchLost
) | 0 | 0 | 0 |
e85d58a5f33f7110024d64347a8d77eba76faad1 | 1,012 | py | Python | MyMxOnline/apps/organization/urls.py | xgq07/Django | a3bfa4fa0ebfc3cdcbc59bcaa810507889050d3b | [
"MIT"
] | null | null | null | MyMxOnline/apps/organization/urls.py | xgq07/Django | a3bfa4fa0ebfc3cdcbc59bcaa810507889050d3b | [
"MIT"
] | null | null | null | MyMxOnline/apps/organization/urls.py | xgq07/Django | a3bfa4fa0ebfc3cdcbc59bcaa810507889050d3b | [
"MIT"
] | null | null | null | from organization.views import OrgView,AddUserAskView,OrgHomeView,OrgCourseView,OrgDescView,\
OrgTeacherView,AddFavView,TeacherListView,TeacherDetailView
from django.conf.urls import url,include
#from django.urls import path,re_path
# 要写上app的名字
app_name = "organization"
urlpatterns = [
#课程机构列表页
url(r'^list/$', OrgView.as_view(), name="org_list"),
url(r'^add_ask/$', AddUserAskView.as_view(), name="add_ask"),
url(r'^home/(?P<org_id>\d+)/$', OrgHomeView.as_view(), name="org_home"),
url(r'^course/(?P<org_id>\d+)/$', OrgCourseView.as_view(), name="org_course"),
url(r'^desc/(?P<org_id>\d+)/', OrgDescView.as_view(), name="org_desc"),
url(r'^teacher/(?P<org_id>\d+)/', OrgTeacherView.as_view(), name="org_teacher"),
url(r'^add_fav/$', AddFavView.as_view(), name="add_fav"),
# 讲师列表
url(r'^teacher/list/', TeacherListView.as_view(), name="teacher_list"),
# 讲师详情
url(r'teacher/detail/(?P<teacher_id>\d+)/', TeacherDetailView.as_view(), name="teacher_detail"),
] | 46 | 100 | 0.689723 | from organization.views import OrgView,AddUserAskView,OrgHomeView,OrgCourseView,OrgDescView,\
OrgTeacherView,AddFavView,TeacherListView,TeacherDetailView
from django.conf.urls import url,include
#from django.urls import path,re_path
# 要写上app的名字
app_name = "organization"
urlpatterns = [
#课程机构列表页
url(r'^list/$', OrgView.as_view(), name="org_list"),
url(r'^add_ask/$', AddUserAskView.as_view(), name="add_ask"),
url(r'^home/(?P<org_id>\d+)/$', OrgHomeView.as_view(), name="org_home"),
url(r'^course/(?P<org_id>\d+)/$', OrgCourseView.as_view(), name="org_course"),
url(r'^desc/(?P<org_id>\d+)/', OrgDescView.as_view(), name="org_desc"),
url(r'^teacher/(?P<org_id>\d+)/', OrgTeacherView.as_view(), name="org_teacher"),
url(r'^add_fav/$', AddFavView.as_view(), name="add_fav"),
# 讲师列表
url(r'^teacher/list/', TeacherListView.as_view(), name="teacher_list"),
# 讲师详情
url(r'teacher/detail/(?P<teacher_id>\d+)/', TeacherDetailView.as_view(), name="teacher_detail"),
] | 0 | 0 | 0 |
9f97f311276aac0c7752ed83fb0ee1d286767ec5 | 684 | py | Python | tests/test_wake.py | rotdrop/rhasspy-hermes | ab822ad954da6da90368b65d72ed7e53694f085f | [
"MIT"
] | 1 | 2020-07-11T19:25:32.000Z | 2020-07-11T19:25:32.000Z | tests/test_wake.py | rotdrop/rhasspy-hermes | ab822ad954da6da90368b65d72ed7e53694f085f | [
"MIT"
] | 15 | 2019-12-31T13:19:25.000Z | 2022-01-17T17:40:13.000Z | tests/test_wake.py | rotdrop/rhasspy-hermes | ab822ad954da6da90368b65d72ed7e53694f085f | [
"MIT"
] | 8 | 2019-12-31T10:40:53.000Z | 2020-12-04T18:48:08.000Z | """Tests for rhasspyhermes.wake"""
from rhasspyhermes.wake import HotwordDetected, HotwordToggleOff, HotwordToggleOn
wakeword_id = "testWakeWord"
def test_hotword_detected():
"""Test HotwordDetected."""
assert HotwordDetected.is_topic(HotwordDetected.topic(wakeword_id=wakeword_id))
assert (
HotwordDetected.get_wakeword_id(HotwordDetected.topic(wakeword_id=wakeword_id))
== wakeword_id
)
def test_hotword_toggle_on():
"""Test HotwordToggleOn."""
assert HotwordToggleOn.topic() == "hermes/hotword/toggleOn"
def test_hotword_toggle_off():
"""Test HotwordToggleOff."""
assert HotwordToggleOff.topic() == "hermes/hotword/toggleOff"
| 28.5 | 87 | 0.745614 | """Tests for rhasspyhermes.wake"""
from rhasspyhermes.wake import HotwordDetected, HotwordToggleOff, HotwordToggleOn
wakeword_id = "testWakeWord"
def test_hotword_detected():
"""Test HotwordDetected."""
assert HotwordDetected.is_topic(HotwordDetected.topic(wakeword_id=wakeword_id))
assert (
HotwordDetected.get_wakeword_id(HotwordDetected.topic(wakeword_id=wakeword_id))
== wakeword_id
)
def test_hotword_toggle_on():
"""Test HotwordToggleOn."""
assert HotwordToggleOn.topic() == "hermes/hotword/toggleOn"
def test_hotword_toggle_off():
"""Test HotwordToggleOff."""
assert HotwordToggleOff.topic() == "hermes/hotword/toggleOff"
| 0 | 0 | 0 |
1d8d5603276e76c3b2ea3734f7c017edeca526fb | 2,267 | py | Python | geography/management/commands/bootstrap/fixtures/_nation.py | The-Politico/politico-civic-geography | 032b3ee773b50b65cfe672f230dda772df0f89e0 | [
"MIT"
] | 1 | 2018-07-31T13:54:38.000Z | 2018-07-31T13:54:38.000Z | geography/management/commands/bootstrap/fixtures/_nation.py | The-Politico/politico-civic-geography | 032b3ee773b50b65cfe672f230dda772df0f89e0 | [
"MIT"
] | 7 | 2018-04-18T20:57:40.000Z | 2021-06-10T20:50:40.000Z | geography/management/commands/bootstrap/fixtures/_nation.py | The-Politico/politico-civic-geography | 032b3ee773b50b65cfe672f230dda772df0f89e0 | [
"MIT"
] | 1 | 2018-12-15T20:17:52.000Z | 2018-12-15T20:17:52.000Z | import json
import os
from tqdm import tqdm
import geojson
import shapefile
from geography.models import Geometry
| 31.486111 | 71 | 0.521394 | import json
import os
from tqdm import tqdm
import geojson
import shapefile
from geography.models import Geometry
class NationFixtures(object):
def create_nation_fixtures(self):
"""
Create national US and State Map
"""
SHP_SLUG = "cb_{}_us_state_500k".format(self.YEAR)
DOWNLOAD_PATH = os.path.join(self.DOWNLOAD_DIRECTORY, SHP_SLUG)
shape = shapefile.Reader(
os.path.join(DOWNLOAD_PATH, "{}.shp".format(SHP_SLUG))
)
fields = shape.fields[1:]
field_names = [f[0] for f in fields]
features = []
for shp in shape.shapeRecords():
state = dict(zip(field_names, shp.record))
geodata = {
"type": "Feature",
"geometry": shp.shape.__geo_interface__,
"properties": {
"state": state["STATEFP"],
"name": state["NAME"],
},
}
features.append(geodata)
Geometry.objects.update_or_create(
division=self.NATION,
subdivision_level=self.STATE_LEVEL,
simplification=self.THRESHOLDS["nation"],
source=os.path.join(
self.SHP_SOURCE_BASE.format(self.YEAR), SHP_SLUG
)
+ ".zip",
series=self.YEAR,
defaults={
"topojson": self.toposimplify(
geojson.FeatureCollection(features),
self.THRESHOLDS["nation"],
)
},
)
geo, created = Geometry.objects.update_or_create(
division=self.NATION,
subdivision_level=self.COUNTY_LEVEL,
simplification=self.THRESHOLDS["nation"],
source=os.path.join(
self.SHP_SOURCE_BASE.format(self.YEAR), SHP_SLUG
)
+ ".zip",
series=self.YEAR,
defaults={"topojson": self.get_state_county_shps("00")},
)
tqdm.write("Nation\n")
tqdm.write(
self.TQDM_PREFIX
+ "> FIPS {} @ ~{}kb ".format(
"00", round(len(json.dumps(geo.topojson)) / 1000)
)
)
tqdm.write(self.style.SUCCESS("Done.\n"))
| 0 | 2,127 | 23 |
11d5c86e0a8bc126cada2f724bb16ebccefa8607 | 1,602 | py | Python | test/models/test_value.py | firstof9/python-openzwave-mqtt | 25f9f90ba586e33fee7b7a444743966371268787 | [
"Apache-2.0"
] | 63 | 2019-11-06T19:30:45.000Z | 2022-02-04T22:19:07.000Z | test/models/test_value.py | firstof9/python-openzwave-mqtt | 25f9f90ba586e33fee7b7a444743966371268787 | [
"Apache-2.0"
] | 66 | 2021-01-18T06:52:17.000Z | 2022-03-28T08:04:22.000Z | test/models/test_value.py | firstof9/python-openzwave-mqtt | 25f9f90ba586e33fee7b7a444743966371268787 | [
"Apache-2.0"
] | 12 | 2020-01-03T13:35:06.000Z | 2020-10-10T20:50:20.000Z | """Provide tests for the node value."""
from openzwavemqtt.const import (
EVENT_VALUE_ADDED,
EVENT_VALUE_CHANGED,
EVENT_VALUE_REMOVED,
)
def test_value_events(mgr):
"""Test value events."""
events = []
# Fill parent data.
mgr.mock_receive_json("OpenZWave/1/node/2", {})
mgr.mock_receive_json("OpenZWave/1/node/2/instance/1", {})
mgr.mock_receive_json("OpenZWave/1/node/2/instance/1/commandclass/4", {})
# Listen for value added
mgr.options.listen(EVENT_VALUE_ADDED, events.append)
mgr.mock_receive_json(
"OpenZWave/1/node/2/instance/1/commandclass/4/value/3", {"Value": "yo"}
)
assert len(events) == 1
assert events[0].id == 3
assert events[0].value == "yo"
assert events[0].parent.id == 4
# Test OZWNode.values shortcut
assert list(mgr.get_instance(1).get_node(2).values())[0].id == 3
# Listen for value changed
mgr.options.listen(EVENT_VALUE_CHANGED, events.append)
mgr.mock_receive_json(
"OpenZWave/1/node/2/instance/1/commandclass/4/value/3", {"Value": "yo2"}
)
assert len(events) == 2
assert events[0].id == 3
assert events[0].value == "yo2"
# Show how to use collection helpers
assert (
list(mgr.get_instance(1).get_node(2).get_instance(1).commandclasses())[0]
.get_value(3)
.value
== "yo2"
)
# Listen for value removed
mgr.options.listen(EVENT_VALUE_REMOVED, events.append)
mgr.receive_message("OpenZWave/1/node/2/instance/1/commandclass/4/value/3", "")
assert len(events) == 3
assert events[0].id == 3
| 30.226415 | 83 | 0.65231 | """Provide tests for the node value."""
from openzwavemqtt.const import (
EVENT_VALUE_ADDED,
EVENT_VALUE_CHANGED,
EVENT_VALUE_REMOVED,
)
def test_value_events(mgr):
"""Test value events."""
events = []
# Fill parent data.
mgr.mock_receive_json("OpenZWave/1/node/2", {})
mgr.mock_receive_json("OpenZWave/1/node/2/instance/1", {})
mgr.mock_receive_json("OpenZWave/1/node/2/instance/1/commandclass/4", {})
# Listen for value added
mgr.options.listen(EVENT_VALUE_ADDED, events.append)
mgr.mock_receive_json(
"OpenZWave/1/node/2/instance/1/commandclass/4/value/3", {"Value": "yo"}
)
assert len(events) == 1
assert events[0].id == 3
assert events[0].value == "yo"
assert events[0].parent.id == 4
# Test OZWNode.values shortcut
assert list(mgr.get_instance(1).get_node(2).values())[0].id == 3
# Listen for value changed
mgr.options.listen(EVENT_VALUE_CHANGED, events.append)
mgr.mock_receive_json(
"OpenZWave/1/node/2/instance/1/commandclass/4/value/3", {"Value": "yo2"}
)
assert len(events) == 2
assert events[0].id == 3
assert events[0].value == "yo2"
# Show how to use collection helpers
assert (
list(mgr.get_instance(1).get_node(2).get_instance(1).commandclasses())[0]
.get_value(3)
.value
== "yo2"
)
# Listen for value removed
mgr.options.listen(EVENT_VALUE_REMOVED, events.append)
mgr.receive_message("OpenZWave/1/node/2/instance/1/commandclass/4/value/3", "")
assert len(events) == 3
assert events[0].id == 3
| 0 | 0 | 0 |
7dc0816d12478814ffed3ae145d96cfd99595450 | 5,753 | py | Python | hand_servo/JO_tester.py | JohnOmernik/pimeup | c68f84d699f67af71bb5561eb6c5885ccd8b4ac8 | [
"Apache-2.0"
] | 1 | 2017-10-21T16:52:21.000Z | 2017-10-21T16:52:21.000Z | hand_servo/JO_tester.py | JohnOmernik/pimeup | c68f84d699f67af71bb5561eb6c5885ccd8b4ac8 | [
"Apache-2.0"
] | null | null | null | hand_servo/JO_tester.py | JohnOmernik/pimeup | c68f84d699f67af71bb5561eb6c5885ccd8b4ac8 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# Import the PCA9685 module.
import Adafruit_PCA9685
import time
import random
import sys
import json
# Initialise the PCA9685 using the default address (0x40).
pwm = Adafruit_PCA9685.PCA9685(0x40)
pwm.set_pwm_freq(60)
SRV_OPTIONS = []
ACTIONS = {}
STATUS=""
thingfile = "/home/pi/pimeup/thingbox/thing.json"
thingactionfile = "/home/pi/pimeup/thingbox/thingactions.json"
if __name__ == "__main__":
main()
| 26.75814 | 158 | 0.460108 | #!/usr/bin/python
# Import the PCA9685 module.
import Adafruit_PCA9685
import time
import random
import sys
import json
# Initialise the PCA9685 using the default address (0x40).
pwm = Adafruit_PCA9685.PCA9685(0x40)
pwm.set_pwm_freq(60)
SRV_OPTIONS = []
ACTIONS = {}
STATUS=""
thingfile = "/home/pi/pimeup/thingbox/thing.json"
thingactionfile = "/home/pi/pimeup/thingbox/thingactions.json"
def main():
global SRV_OPTIONS
global ACTIONS
global STATUS
SRV_OPTIONS = loadfile(thingfile)
ACTIONS = loadfile(thingactionfile)
cur_finger = -1
ACT_SHORT = []
upact = ""
downact = ""
for x in ACTIONS:
if x['KEY'] == "U":
upact = x['ACTION']
if x['KEY'] == "P":
downact = x['ACTION']
ACT_SHORT.append(x['KEY'])
# processAction(upact)
while True:
if cur_finger == -1:
print("Current Status: %s" % STATUS)
printServos()
printAction()
print("")
srv_sel = raw_input("Servo to move or action: ")
int_srv = -1
if srv_sel == "e":
print("Exiting!")
break
if srv_sel in ACT_SHORT:
processAction(srv_sel)
else:
try:
int_srv = int(srv_sel)
except:
print("Selected Servors must be an integer or action in this list:")
printServos()
printAction()
continue
for y in SRV_OPTIONS:
if int_srv == y['IDX']:
cur_finger = int_srv
break
if cur_finger == int_srv:
continue
else:
print("Servo provided (%s) not in the following List: Please try again")
printServos()
else:
for y in SRV_OPTIONS:
if cur_finger == y['IDX']:
mysrv = y
break
print("Currently working with Servo: %s - Press q to quit this" % cur_finger)
printServo(mysrv)
while True:
mv = raw_input("Enter Servo Value: ")
if mv == 'q':
cur_finger = -1
break
else:
try:
myval = int(mv)
except:
print("You must enter a integer")
continue
pwm.set_pwm(cur_finger, 0, myval)
processAction(downact)
time.sleep(2)
pwm.set_pwm(0, 4096, 0)
pwm.set_pwm(1, 4096, 0)
pwm.set_pwm(2, 4096, 0)
pwm.set_pwm(3, 4096, 0)
pwm.set_pwm(4, 4096, 0)
pwm.set_pwm(5, 4096, 0)
pwm.set_pwm(6, 4096, 0)
pwm.set_pwm(7, 4096, 0)
pwm.set_pwm(8, 4096, 0)
sys.exit(0)
def printServos():
print("")
print ("All Available Servos: ")
print("==============================")
for x in SRV_OPTIONS:
printServo(x)
print("")
def printServo(s):
print("Servo Number: %s - Desc: %s - Min Movement: %s - Max Movement: %s - Notes: %s" % (s['IDX'], s['DESC'], s['RANGE_MIN'], s['RANGE_MAX'], s['NOTES']))
def printAction():
print("")
print("Available Actions: ")
print("==============================")
for x in ACTIONS:
print("\t%s - %s - %s" % (x['KEY'], x['NAME'], x['DESC']))
print("")
def loadfile(f):
o = open(f, "rb")
tj = o.read()
o.close()
pj = ""
for line in tj.split("\n"):
if line.strip() == "" or line.strip().find("#") == 0:
pass
else:
pj += line.strip() + "\n"
print(pj)
return json.loads(pj)
def processAction(actKey):
global STATUS
act = {}
bfound = False
for x in ACTIONS:
if actKey == x['KEY']:
act = x
bfound = True
if bfound == True:
new_status = act['STATUS']
req_status = act['REQ_STATUS']
actStr = act['ACTION']
if req_status != "":
if STATUS.find(req_status) < 0:
print("Can't do it")
print("STATUS: %s" % STATUS)
print("req_status: %s" % req_status)
return
print("Running Action: %s" % act['NAME'])
for action in actStr.split(","):
tval = action.split(":")
act = tval[0]
val = tval[1]
if act == "P":
val = float(val)
time.sleep(val)
elif act == "A":
shutdown = False
try:
val = int(val)
if val == 0:
shutdown = True
except:
shutdown = False
if shutdown == True:
for x in range(len(SRV_OPTIONS) - 1):
pwm.set_pwm(x, 4096, 0)
else:
processAction(val)
else:
act = int(act)
val = int(val)
if val >= 0:
pwm.set_pwm(act, 0, val)
else:
pwm.set_pwm(act, 4096, 0)
if new_status != "":
STATUS = new_status
def setServoPulse(channel, pulse):
pulseLength = 1000000 # 1,000,000 us per second
pulseLength /= 60 # 60 Hz
print "%d us per period" % pulseLength
pulseLength /= 4096 # 12 bits of resolution
print "%d us per bit" % pulseLength
pulse *= 1000
pulse /= pulseLength
pwm.set_pwm(channel, 0, pulse)
if __name__ == "__main__":
main()
| 5,147 | 0 | 161 |
e0ffbfca22a90ed69e2f3f3cd411e0e7e7d7c239 | 13,384 | py | Python | PyFlow/Core/GraphManager.py | luzpaz/PyFlow | e00642794051b1d9b7b2665eee38567e9763558d | [
"Apache-2.0"
] | 1,463 | 2019-07-29T15:45:22.000Z | 2022-03-31T23:32:13.000Z | PyFlow/Core/GraphManager.py | luzpaz/PyFlow | e00642794051b1d9b7b2665eee38567e9763558d | [
"Apache-2.0"
] | 58 | 2019-07-31T07:58:57.000Z | 2022-02-23T05:46:08.000Z | PyFlow/Core/GraphManager.py | luzpaz/PyFlow | e00642794051b1d9b7b2665eee38567e9763558d | [
"Apache-2.0"
] | 169 | 2019-08-03T16:38:57.000Z | 2022-03-31T14:20:12.000Z | ## Copyright 2015-2019 Ilgar Lunin, Pedro Cabrera
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
## http://www.apache.org/licenses/LICENSE-2.0
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
from nine import str
from blinker import Signal
from PyFlow.Core.GraphBase import GraphBase
from PyFlow.Core.Common import *
from PyFlow.Core import version
ROOT_GRAPH_NAME = str('root')
class GraphManager(object):
"""Data structure that holds graph tree
This class switches active graph. Can insert or remove graphs to tree,
can search nodes and variables across all graphs. Also this class responsible
for giving unique names.
"""
def findRootGraph(self):
"""Returns top level root graph
:rtype: :class:`~PyFlow.Core.GraphBase.GraphBase`
"""
roots = []
for graph in self.getAllGraphs():
if graph.isRoot():
roots.append(graph)
assert(len(roots) == 1), "Fatal! Multiple roots!"
return roots[0]
def selectRootGraph(self):
"""Selects root graph
"""
self.selectGraph(self.findRootGraph())
def serialize(self):
"""Serializes itself to json.
All child graphs will be serialized.
:rtype: dict
"""
rootGraph = self.findRootGraph()
saved = rootGraph.serialize()
saved["fileVersion"] = str(version.currentVersion())
saved["activeGraph"] = self.activeGraph().name
return saved
def removeGraphByName(self, name):
"""Removes graph by :attr:`~PyFlow.Core.GraphBase.GraphBase.name`
:param name: name of graph to be removed
:type name: str
"""
graph = self.findGraph(name)
if graph is not None:
graph.clear()
self._graphs.pop(graph.uid)
if graph.parentGraph is not None:
if graph in graph.parentGraph.childGraphs:
graph.parentGraph.childGraphs.remove(graph)
del graph
def removeGraph(self, graph):
"""Removes supplied graph
:param graph: Graph to be removed
:type graph: :class:`~PyFlow.Core.GraphBase.GraphBase`
"""
if graph.uid in self._graphs:
graph.clear()
self._graphs.pop(graph.uid)
if graph.parentGraph is not None:
if graph in graph.parentGraph.childGraphs:
graph.parentGraph.childGraphs.remove(graph)
del graph
def deserialize(self, data):
"""Populates itself from serialized data
:param data: Serialized data
:type data: dict
"""
if "fileVersion" in data:
fileVersion = version.Version.fromString(data["fileVersion"])
else:
# handle older version
pass
self.clear(keepRoot=False)
self._activeGraph = GraphBase(str('root'), self)
self._activeGraph.populateFromJson(data)
self._activeGraph.setIsRoot(True)
self.selectGraph(self._activeGraph)
def clear(self, keepRoot=True, *args, **kwargs):
"""Wipes everything.
:param keepRoot: Whether to remove root graph or not
:type keepRoot: bool
"""
self.selectGraphByName(ROOT_GRAPH_NAME)
self.removeGraphByName(ROOT_GRAPH_NAME)
self._graphs.clear()
self._graphs = {}
del self._activeGraph
self._activeGraph = None
if keepRoot:
self._activeGraph = GraphBase(ROOT_GRAPH_NAME, self)
self.selectGraph(self._activeGraph)
self._activeGraph.setIsRoot(True)
def Tick(self, deltaTime):
"""Periodically calls :meth:`~PyFlow.Core.GraphBase.GraphBase.Tick` on all graphs
:param deltaTime: Elapsed time from last call
:type deltaTime: float
"""
for graph in self._graphs.values():
graph.Tick(deltaTime)
def findVariableRefs(self, variable):
"""Returns a list of variable accessors spawned across all graphs
:param variable: Variable to search accessors for
:type variable: :class:`~PyFlow.Core.Variable.Variable`
:rtype: list(:class:`~PyFlow.Core.NodeBase.NodeBase`)
"""
result = []
for node in self.getAllNodes(classNameFilters=['getVar', 'setVar']):
if node.variableUid() == variable.uid:
result.append(node)
return result
def findGraph(self, name):
"""Tries to find graph by :attr:`~PyFlow.Core.GraphBase.GraphBase.name`
:param name: Name of target graph
:type name: str
:rtype: :class:`~PyFlow.Core.GraphBase.GraphBase` or None
"""
graphs = self.getGraphsDict()
if name in graphs:
return graphs[name]
return None
def findPinByName(self, pinFullName):
"""Tries to find pin by name across all graphs
:param pinFullName: Full name of pin including node namespace
:type pinFullName: str
:rtype: :class:`~PyFlow.Core.PinBase.PinBase` or None
"""
result = None
for graph in self.getAllGraphs():
result = graph.findPin(pinFullName)
if result is not None:
break
return result
def findNode(self, name):
"""Finds a node across all graphs
:param name: Node name to search by
:type name: str
:rtype: :class:`~PyFlow.Core.NodeBase.NodeBase`
"""
result = None
for graph in self.getAllGraphs():
result = graph.findNode(name)
if result is not None:
break
return result
def findVariableByUid(self, uuid):
"""Finds a variable across all graphs
:param uuid: Variable unique identifier
:type uuid: :class:`~uuid.UUID`
:rtype: :class:`~PyFlow.Core.Variable.Variable` or None
"""
result = None
for graph in self._graphs.values():
if uuid in graph.getVars():
result = graph.getVars()[uuid]
break
return result
def findVariableByName(self, name):
"""Finds a variable across all graphs
:param name: Variable name
:type name: str
:rtype: :class:`~PyFlow.Core.Variable.Variable` or None
"""
for graph in self._graphs.values():
for var in graph.getVars().values():
if var.name == name:
return var
return None
def location(self):
"""Returns location of active graph
.. seealso ::
:meth:`PyFlow.Core.GraphBase.GraphBase.location`
"""
return self.activeGraph().location()
def getGraphsDict(self):
"""Creates and returns dictionary where graph name associated with graph
:rtype: dict(str, :class:`~PyFlow.Core.GraphBase.GraphBase`)
"""
result = {}
for graph in self.getAllGraphs():
result[graph.name] = graph
return result
def add(self, graph):
"""Adds graph to storage and ensures that graph name is unique
:param graph: Graph to add
:type graph: :class:`~PyFlow.Core.GraphBase.GraphBase`
"""
graph.name = self.getUniqGraphName(graph.name)
self._graphs[graph.uid] = graph
def activeGraph(self):
"""Returns active graph
:rtype: :class:`~PyFlow.Core.GraphBase.GraphBase`
"""
return self._activeGraph
def selectGraphByName(self, name):
"""Sets active graph by graph name and fires event
:param name: Name of target graph
:type name: str
"""
graphs = self.getGraphsDict()
if name in graphs:
if name != self.activeGraph().name:
oldGraph = self.activeGraph()
newGraph = graphs[name]
self._activeGraph = newGraph
self.graphChanged.send(self.activeGraph())
def selectGraph(self, graph):
"""Sets supplied graph as active and fires event
:param graph: Target graph
:type graph: :class:`~PyFlow.Core.GraphBase.GraphBase`
"""
for newGraph in self.getAllGraphs():
if newGraph.name == graph.name:
if newGraph.name != self.activeGraph().name:
oldGraph = self.activeGraph()
self._activeGraph = newGraph
self.graphChanged.send(self.activeGraph())
break
def getAllGraphs(self):
"""Returns all graphs
:rtype: list(:class:`~PyFlow.Core.GraphBase.GraphBase`)
"""
return [g for g in self._graphs.values()]
def getAllNodes(self, classNameFilters=[]):
"""Returns all nodes across all graphs
:param classNameFilters: If class name filters specified, only those node classes will be considered
:type classNameFilters: list(str)
:rtype: list(:class:`~PyFlow.Core.NodeBase.NodeBase`)
"""
allNodes = []
for graph in self.getAllGraphs():
if len(classNameFilters) == 0:
allNodes.extend(list(graph.getNodes().values()))
else:
allNodes.extend([node for node in graph.getNodes().values() if node.__class__.__name__ in classNameFilters])
return allNodes
def getAllVariables(self):
"""Returns a list of all variables
:rtype: list(:class:`~PyFlow.Core.Variable.Variable`)
"""
result = []
for graph in self.getAllGraphs():
result.extend(list(graph.getVars().values()))
return result
def getUniqGraphPinName(self, graph, name):
"""Returns unique pin name for graph
Used by compound node and graphInputs graphOutputs nodes.
To make all exposed to compound pins names unique.
:param graph: Target graph
:type graph: :class:`~PyFlow.Core.GraphBase.GraphBase`
:param name: Target pin name
:type name: str
:rtype: str
"""
existingNames = []
for node in graph.getNodesList(classNameFilters=['graphInputs', 'graphOutputs']):
existingNames.extend([pin.name for pin in node.pins])
return getUniqNameFromList(existingNames, name)
def getAllNames(self):
"""Returns list of all registered names
Includes graphs, nodes, pins, variables names
:rtype: list(str)
"""
existingNames = [g.name for g in self.getAllGraphs()]
existingNames.extend([n.name for n in self.getAllNodes()])
existingNames.extend([var.name for var in self.getAllVariables()])
for node in self.getAllNodes():
existingNames.extend([pin.name for pin in node.pins])
return existingNames
def getUniqName(self, name):
"""Returns unique name
:param name: Source name
:type name: str
:rtype: str
"""
existingNames = self.getAllNames()
return getUniqNameFromList(existingNames, name)
def getUniqGraphName(self, name):
"""Returns unique graph name
:param name: Source name
:type name: str
:rtype: str
"""
existingNames = [g.name for g in self.getAllGraphs()]
return getUniqNameFromList(existingNames, name)
def getUniqNodeName(self, name):
"""Returns unique node name
:param name: Source name
:type name: str
:rtype: str
"""
existingNames = [n.name for n in self.getAllNodes()]
return getUniqNameFromList(existingNames, name)
def getUniqVariableName(self, name):
"""Returns unique variable name
:param name: Source name
:type name: str
:rtype: str
"""
existingNames = [var.name for var in self.getAllVariables()]
return getUniqNameFromList(existingNames, name)
def plot(self):
"""Prints all data to console. May be useful for debugging
"""
root = self.findRootGraph()
print("Active graph: {0}".format(str(self.activeGraph().name)), "All graphs:", [g.name for g in self._graphs.values()])
root.plot()
@SingletonDecorator
class GraphManagerSingleton(object):
"""Singleton class that holds graph manager instance inside. Used by app as main graph manager
"""
def get(self):
"""Returns graph manager instance
:rtype: :class:`~PyFlow.Core.GraphManager.GraphManager`
"""
return self.man
| 32.485437 | 127 | 0.605424 | ## Copyright 2015-2019 Ilgar Lunin, Pedro Cabrera
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
## http://www.apache.org/licenses/LICENSE-2.0
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
from nine import str
from blinker import Signal
from PyFlow.Core.GraphBase import GraphBase
from PyFlow.Core.Common import *
from PyFlow.Core import version
ROOT_GRAPH_NAME = str('root')
class GraphManager(object):
"""Data structure that holds graph tree
This class switches active graph. Can insert or remove graphs to tree,
can search nodes and variables across all graphs. Also this class responsible
for giving unique names.
"""
def __init__(self):
super(GraphManager, self).__init__()
self.terminationRequested = False #: used by cli only
self.graphChanged = Signal(object)
self._graphs = {}
self._activeGraph = None
self._activeGraph = GraphBase(ROOT_GRAPH_NAME, self)
self._activeGraph.setIsRoot(True)
def findRootGraph(self):
"""Returns top level root graph
:rtype: :class:`~PyFlow.Core.GraphBase.GraphBase`
"""
roots = []
for graph in self.getAllGraphs():
if graph.isRoot():
roots.append(graph)
assert(len(roots) == 1), "Fatal! Multiple roots!"
return roots[0]
def selectRootGraph(self):
"""Selects root graph
"""
self.selectGraph(self.findRootGraph())
def serialize(self):
"""Serializes itself to json.
All child graphs will be serialized.
:rtype: dict
"""
rootGraph = self.findRootGraph()
saved = rootGraph.serialize()
saved["fileVersion"] = str(version.currentVersion())
saved["activeGraph"] = self.activeGraph().name
return saved
def removeGraphByName(self, name):
"""Removes graph by :attr:`~PyFlow.Core.GraphBase.GraphBase.name`
:param name: name of graph to be removed
:type name: str
"""
graph = self.findGraph(name)
if graph is not None:
graph.clear()
self._graphs.pop(graph.uid)
if graph.parentGraph is not None:
if graph in graph.parentGraph.childGraphs:
graph.parentGraph.childGraphs.remove(graph)
del graph
def removeGraph(self, graph):
"""Removes supplied graph
:param graph: Graph to be removed
:type graph: :class:`~PyFlow.Core.GraphBase.GraphBase`
"""
if graph.uid in self._graphs:
graph.clear()
self._graphs.pop(graph.uid)
if graph.parentGraph is not None:
if graph in graph.parentGraph.childGraphs:
graph.parentGraph.childGraphs.remove(graph)
del graph
def deserialize(self, data):
"""Populates itself from serialized data
:param data: Serialized data
:type data: dict
"""
if "fileVersion" in data:
fileVersion = version.Version.fromString(data["fileVersion"])
else:
# handle older version
pass
self.clear(keepRoot=False)
self._activeGraph = GraphBase(str('root'), self)
self._activeGraph.populateFromJson(data)
self._activeGraph.setIsRoot(True)
self.selectGraph(self._activeGraph)
def clear(self, keepRoot=True, *args, **kwargs):
"""Wipes everything.
:param keepRoot: Whether to remove root graph or not
:type keepRoot: bool
"""
self.selectGraphByName(ROOT_GRAPH_NAME)
self.removeGraphByName(ROOT_GRAPH_NAME)
self._graphs.clear()
self._graphs = {}
del self._activeGraph
self._activeGraph = None
if keepRoot:
self._activeGraph = GraphBase(ROOT_GRAPH_NAME, self)
self.selectGraph(self._activeGraph)
self._activeGraph.setIsRoot(True)
def Tick(self, deltaTime):
"""Periodically calls :meth:`~PyFlow.Core.GraphBase.GraphBase.Tick` on all graphs
:param deltaTime: Elapsed time from last call
:type deltaTime: float
"""
for graph in self._graphs.values():
graph.Tick(deltaTime)
def findVariableRefs(self, variable):
"""Returns a list of variable accessors spawned across all graphs
:param variable: Variable to search accessors for
:type variable: :class:`~PyFlow.Core.Variable.Variable`
:rtype: list(:class:`~PyFlow.Core.NodeBase.NodeBase`)
"""
result = []
for node in self.getAllNodes(classNameFilters=['getVar', 'setVar']):
if node.variableUid() == variable.uid:
result.append(node)
return result
def findGraph(self, name):
"""Tries to find graph by :attr:`~PyFlow.Core.GraphBase.GraphBase.name`
:param name: Name of target graph
:type name: str
:rtype: :class:`~PyFlow.Core.GraphBase.GraphBase` or None
"""
graphs = self.getGraphsDict()
if name in graphs:
return graphs[name]
return None
def findPinByName(self, pinFullName):
"""Tries to find pin by name across all graphs
:param pinFullName: Full name of pin including node namespace
:type pinFullName: str
:rtype: :class:`~PyFlow.Core.PinBase.PinBase` or None
"""
result = None
for graph in self.getAllGraphs():
result = graph.findPin(pinFullName)
if result is not None:
break
return result
def findNode(self, name):
"""Finds a node across all graphs
:param name: Node name to search by
:type name: str
:rtype: :class:`~PyFlow.Core.NodeBase.NodeBase`
"""
result = None
for graph in self.getAllGraphs():
result = graph.findNode(name)
if result is not None:
break
return result
def findVariableByUid(self, uuid):
"""Finds a variable across all graphs
:param uuid: Variable unique identifier
:type uuid: :class:`~uuid.UUID`
:rtype: :class:`~PyFlow.Core.Variable.Variable` or None
"""
result = None
for graph in self._graphs.values():
if uuid in graph.getVars():
result = graph.getVars()[uuid]
break
return result
def findVariableByName(self, name):
"""Finds a variable across all graphs
:param name: Variable name
:type name: str
:rtype: :class:`~PyFlow.Core.Variable.Variable` or None
"""
for graph in self._graphs.values():
for var in graph.getVars().values():
if var.name == name:
return var
return None
def location(self):
"""Returns location of active graph
.. seealso ::
:meth:`PyFlow.Core.GraphBase.GraphBase.location`
"""
return self.activeGraph().location()
def getGraphsDict(self):
"""Creates and returns dictionary where graph name associated with graph
:rtype: dict(str, :class:`~PyFlow.Core.GraphBase.GraphBase`)
"""
result = {}
for graph in self.getAllGraphs():
result[graph.name] = graph
return result
def add(self, graph):
"""Adds graph to storage and ensures that graph name is unique
:param graph: Graph to add
:type graph: :class:`~PyFlow.Core.GraphBase.GraphBase`
"""
graph.name = self.getUniqGraphName(graph.name)
self._graphs[graph.uid] = graph
def activeGraph(self):
"""Returns active graph
:rtype: :class:`~PyFlow.Core.GraphBase.GraphBase`
"""
return self._activeGraph
def selectGraphByName(self, name):
"""Sets active graph by graph name and fires event
:param name: Name of target graph
:type name: str
"""
graphs = self.getGraphsDict()
if name in graphs:
if name != self.activeGraph().name:
oldGraph = self.activeGraph()
newGraph = graphs[name]
self._activeGraph = newGraph
self.graphChanged.send(self.activeGraph())
def selectGraph(self, graph):
"""Sets supplied graph as active and fires event
:param graph: Target graph
:type graph: :class:`~PyFlow.Core.GraphBase.GraphBase`
"""
for newGraph in self.getAllGraphs():
if newGraph.name == graph.name:
if newGraph.name != self.activeGraph().name:
oldGraph = self.activeGraph()
self._activeGraph = newGraph
self.graphChanged.send(self.activeGraph())
break
def getAllGraphs(self):
"""Returns all graphs
:rtype: list(:class:`~PyFlow.Core.GraphBase.GraphBase`)
"""
return [g for g in self._graphs.values()]
def getAllNodes(self, classNameFilters=[]):
"""Returns all nodes across all graphs
:param classNameFilters: If class name filters specified, only those node classes will be considered
:type classNameFilters: list(str)
:rtype: list(:class:`~PyFlow.Core.NodeBase.NodeBase`)
"""
allNodes = []
for graph in self.getAllGraphs():
if len(classNameFilters) == 0:
allNodes.extend(list(graph.getNodes().values()))
else:
allNodes.extend([node for node in graph.getNodes().values() if node.__class__.__name__ in classNameFilters])
return allNodes
def getAllVariables(self):
"""Returns a list of all variables
:rtype: list(:class:`~PyFlow.Core.Variable.Variable`)
"""
result = []
for graph in self.getAllGraphs():
result.extend(list(graph.getVars().values()))
return result
def getUniqGraphPinName(self, graph, name):
"""Returns unique pin name for graph
Used by compound node and graphInputs graphOutputs nodes.
To make all exposed to compound pins names unique.
:param graph: Target graph
:type graph: :class:`~PyFlow.Core.GraphBase.GraphBase`
:param name: Target pin name
:type name: str
:rtype: str
"""
existingNames = []
for node in graph.getNodesList(classNameFilters=['graphInputs', 'graphOutputs']):
existingNames.extend([pin.name for pin in node.pins])
return getUniqNameFromList(existingNames, name)
def getAllNames(self):
"""Returns list of all registered names
Includes graphs, nodes, pins, variables names
:rtype: list(str)
"""
existingNames = [g.name for g in self.getAllGraphs()]
existingNames.extend([n.name for n in self.getAllNodes()])
existingNames.extend([var.name for var in self.getAllVariables()])
for node in self.getAllNodes():
existingNames.extend([pin.name for pin in node.pins])
return existingNames
def getUniqName(self, name):
"""Returns unique name
:param name: Source name
:type name: str
:rtype: str
"""
existingNames = self.getAllNames()
return getUniqNameFromList(existingNames, name)
def getUniqGraphName(self, name):
"""Returns unique graph name
:param name: Source name
:type name: str
:rtype: str
"""
existingNames = [g.name for g in self.getAllGraphs()]
return getUniqNameFromList(existingNames, name)
def getUniqNodeName(self, name):
"""Returns unique node name
:param name: Source name
:type name: str
:rtype: str
"""
existingNames = [n.name for n in self.getAllNodes()]
return getUniqNameFromList(existingNames, name)
def getUniqVariableName(self, name):
"""Returns unique variable name
:param name: Source name
:type name: str
:rtype: str
"""
existingNames = [var.name for var in self.getAllVariables()]
return getUniqNameFromList(existingNames, name)
def plot(self):
"""Prints all data to console. May be useful for debugging
"""
root = self.findRootGraph()
print("Active graph: {0}".format(str(self.activeGraph().name)), "All graphs:", [g.name for g in self._graphs.values()])
root.plot()
@SingletonDecorator
class GraphManagerSingleton(object):
"""Singleton class that holds graph manager instance inside. Used by app as main graph manager
"""
def __init__(self):
self.man = GraphManager()
def get(self):
"""Returns graph manager instance
:rtype: :class:`~PyFlow.Core.GraphManager.GraphManager`
"""
return self.man
| 343 | 0 | 52 |
e00d9fd40434cd4d86af85a211851d99b4589f1a | 9,011 | py | Python | rethinkdb/tests/common.py | mchelen-gov/integrations-core | 81281600b3cc7025a7a32148c59620c9592a564f | [
"BSD-3-Clause"
] | 663 | 2016-08-23T05:23:45.000Z | 2022-03-29T00:37:23.000Z | rethinkdb/tests/common.py | mchelen-gov/integrations-core | 81281600b3cc7025a7a32148c59620c9592a564f | [
"BSD-3-Clause"
] | 6,642 | 2016-06-09T16:29:20.000Z | 2022-03-31T22:24:09.000Z | rethinkdb/tests/common.py | mchelen-gov/integrations-core | 81281600b3cc7025a7a32148c59620c9592a564f | [
"BSD-3-Clause"
] | 1,222 | 2017-01-27T15:51:38.000Z | 2022-03-31T18:17:51.000Z | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
from typing import Callable, Dict, List, Set, Tuple, Union
import pytest
from datadog_checks.base.stubs.aggregator import AggregatorStub
from datadog_checks.dev import get_docker_hostname, get_here
from .types import ServerName
HERE = get_here()
IMAGE = os.environ.get('RETHINKDB_IMAGE', '')
RAW_VERSION = os.environ.get('RETHINKDB_RAW_VERSION', '')
IS_RETHINKDB_2_3 = RAW_VERSION.startswith('2.3.')
HOST = get_docker_hostname()
TAGS = ['rethinkdb_env:testing']
# Servers.
# NOTE: server information is tightly coupled to the Docker Compose setup.
SERVERS = {'server0', 'server1', 'server2'} # type: Set[ServerName]
BOOTSTRAP_SERVER = 'server0' # type: ServerName
SERVER_PORTS = {'server0': 28015, 'server1': 28016, 'server2': 28017, 'proxy': 28018} # type: Dict[ServerName, int]
FORMATTED_SERVER_TAGS = {
'server0': ['server_tag:default', 'server_tag:us'],
'server1': ['server_tag:default', 'server_tag:us', 'server_tag:primary'],
'server2': ['server_tag:default', 'server_tag:eu'],
} # type: Dict[ServerName, List[str]]
# Users.
if IS_RETHINKDB_2_3:
# In RethinkDB 2.3.x, granting permissions onto `rethinkdb` database to non-admin users is not supported.
# So we must use the admin account.
# See: https://github.com/rethinkdb/rethinkdb/issues/5692
AGENT_USER = 'admin'
AGENT_PASSWORD = ''
else:
# Use a dedicated user for metric collection.
AGENT_USER = 'datadog-agent'
AGENT_PASSWORD = 'r3th1nK'
CLIENT_USER = 'doggo'
# TLS.
TLS_SERVER = 'server1' # type: ServerName
TLS_DRIVER_KEY = os.path.join(HERE, 'data', 'tls', 'server.key')
TLS_DRIVER_CERT = os.path.join(HERE, 'data', 'tls', 'server.pem')
TLS_CLIENT_CERT = os.path.join(HERE, 'data', 'tls', 'client.pem')
# Database content.
DATABASE = 'doghouse'
HEROES_TABLE = 'heroes'
HEROES_TABLE_CONFIG = {
'shards': 1,
'replicas': {'primary': 1, 'eu': 1},
'primary_replica_tag': 'primary',
}
HEROES_TABLE_SERVERS = {'server1', 'server2'} # type: Set[ServerName]
HEROES_TABLE_PRIMARY_REPLICA = 'server1' # type: ServerName
HEROES_TABLE_REPLICAS_BY_SHARD = {0: HEROES_TABLE_SERVERS}
HEROES_TABLE_DOCUMENTS = [
{
"hero": "Magneto",
"name": "Max Eisenhardt",
"aka": ["Magnus", "Erik Lehnsherr", "Lehnsherr"],
"magazine_titles": ["Alpha Flight", "Avengers", "Avengers West Coast"],
"appearances_count": 42,
},
{
"hero": "Professor Xavier",
"name": "Charles Francis Xavier",
"magazine_titles": ["Alpha Flight", "Avengers", "Bishop", "Defenders"],
"appearances_count": 72,
},
{
"hero": "Storm",
"name": "Ororo Monroe",
"magazine_titles": ["Amazing Spider-Man vs. Wolverine", "Excalibur", "Fantastic Four", "Iron Fist"],
"appearances_count": 72,
},
]
HEROES_TABLE_INDEX_FIELD = 'appearances_count'
# Metrics lists.
# NOTE: jobs metrics are not listed here as they're hard to trigger, so they're covered by unit tests instead.
CONFIG_METRICS = (
(
'rethinkdb.config.servers',
AggregatorStub.GAUGE,
lambda disconnected_servers: len(SERVERS) - len(disconnected_servers),
[],
),
('rethinkdb.config.databases', AggregatorStub.GAUGE, 1, []),
('rethinkdb.config.tables_per_database', AggregatorStub.GAUGE, 1, ['database:{}'.format(DATABASE)]),
('rethinkdb.config.secondary_indexes_per_table', AggregatorStub.GAUGE, 1, ['table:{}'.format(HEROES_TABLE)]),
) # type: Tuple[Tuple[str, int, Union[int, Callable[[set], int]], List[str]], ...]
CLUSTER_STATISTICS_METRICS = (
('rethinkdb.stats.cluster.query_engine.queries_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.cluster.query_engine.read_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.cluster.query_engine.written_docs_per_sec', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
SERVER_STATISTICS_METRICS = (
('rethinkdb.stats.server.query_engine.queries_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.server.query_engine.queries_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.server.query_engine.read_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.server.query_engine.read_docs_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.server.query_engine.written_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.server.query_engine.written_docs_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.server.query_engine.client_connections', AggregatorStub.GAUGE),
(
# NOTE: submitted but not documented on the RethinkDB website.
'rethinkdb.stats.server.query_engine.clients_active',
AggregatorStub.GAUGE,
),
) # type: Tuple[Tuple[str, int], ...]
TABLE_STATISTICS_METRICS = (
('rethinkdb.stats.table.query_engine.read_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.table.query_engine.written_docs_per_sec', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
REPLICA_STATISTICS_METRICS = (
('rethinkdb.stats.table_server.query_engine.read_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.query_engine.read_docs_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.table_server.query_engine.written_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.query_engine.written_docs_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.table_server.storage_engine.cache.in_use_bytes', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.read_bytes_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.read_bytes_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.table_server.storage_engine.disk.written_bytes_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.written_bytes_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.table_server.storage_engine.disk.space_usage.metadata_bytes', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.space_usage.data_bytes', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.space_usage.garbage_bytes', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.space_usage.preallocated_bytes', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
TABLE_STATUS_SERVICE_CHECKS = (
'rethinkdb.table_status.status.ready_for_outdated_reads',
'rethinkdb.table_status.status.ready_for_reads',
'rethinkdb.table_status.status.ready_for_writes',
'rethinkdb.table_status.status.all_replicas_ready',
)
TABLE_STATUS_METRICS = (('rethinkdb.table_status.shards', AggregatorStub.GAUGE),) # type: Tuple[Tuple[str, int], ...]
TABLE_STATUS_SHARDS_METRICS = (
('rethinkdb.table_status.shards.replicas', AggregatorStub.GAUGE),
('rethinkdb.table_status.shards.primary_replicas', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
SERVER_STATUS_METRICS = (
('rethinkdb.server_status.network.time_connected', AggregatorStub.GAUGE),
('rethinkdb.server_status.network.connected_to', AggregatorStub.GAUGE),
('rethinkdb.server_status.process.time_started', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
JOBS_METRICS = (
(
'rethinkdb.system_jobs.jobs',
AggregatorStub.GAUGE,
1,
['job_type:query'],
),
) # type: Tuple[Tuple[str, int, int, List[str]], ...]
CURRENT_ISSUES_METRICS = (
('rethinkdb.current_issues.issues', AggregatorStub.GAUGE),
('rethinkdb.current_issues.critical_issues', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
CURRENT_ISSUE_TYPES_SUBMITTED_IF_DISCONNECTED_SERVERS = ['table_availability']
E2E_METRICS = (
tuple((name, typ) for name, typ, _, _ in CONFIG_METRICS)
+ CLUSTER_STATISTICS_METRICS
+ SERVER_STATISTICS_METRICS
+ TABLE_STATISTICS_METRICS
+ REPLICA_STATISTICS_METRICS
+ TABLE_STATUS_METRICS
+ TABLE_STATUS_SHARDS_METRICS
+ SERVER_STATUS_METRICS
+ tuple((name, typ) for name, typ, _, _ in JOBS_METRICS)
) # type: Tuple[Tuple[str, int], ...]
# Docker Compose configuration.
COMPOSE_FILE = os.path.join(HERE, 'compose', 'docker-compose.yaml')
COMPOSE_ENV_VARS = env_vars = {
'RETHINKDB_IMAGE': IMAGE,
'RETHINKDB_PORT_SERVER0': str(SERVER_PORTS['server0']),
'RETHINKDB_PORT_SERVER1': str(SERVER_PORTS['server1']),
'RETHINKDB_PORT_SERVER2': str(SERVER_PORTS['server2']),
'RETHINKDB_PORT_PROXY': str(SERVER_PORTS['proxy']),
'RETHINKDB_TLS_DRIVER_KEY': TLS_DRIVER_KEY,
'RETHINKDB_TLS_DRIVER_CERT': TLS_DRIVER_CERT,
}
# Pytest common test data.
MALFORMED_VERSION_STRING_PARAMS = [
pytest.param('rethinkdb (GCC 4.9.2)', id='no-version'),
pytest.param('rethinkdb', id='prefix-only'),
pytest.param('abc 2.4.0~0bionic (GCC 4.9.2)', id='wrong-prefix'),
]
| 40.959091 | 118 | 0.724559 | # (C) Datadog, Inc. 2020-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import os
from typing import Callable, Dict, List, Set, Tuple, Union
import pytest
from datadog_checks.base.stubs.aggregator import AggregatorStub
from datadog_checks.dev import get_docker_hostname, get_here
from .types import ServerName
HERE = get_here()
IMAGE = os.environ.get('RETHINKDB_IMAGE', '')
RAW_VERSION = os.environ.get('RETHINKDB_RAW_VERSION', '')
IS_RETHINKDB_2_3 = RAW_VERSION.startswith('2.3.')
HOST = get_docker_hostname()
TAGS = ['rethinkdb_env:testing']
# Servers.
# NOTE: server information is tightly coupled to the Docker Compose setup.
SERVERS = {'server0', 'server1', 'server2'} # type: Set[ServerName]
BOOTSTRAP_SERVER = 'server0' # type: ServerName
SERVER_PORTS = {'server0': 28015, 'server1': 28016, 'server2': 28017, 'proxy': 28018} # type: Dict[ServerName, int]
FORMATTED_SERVER_TAGS = {
'server0': ['server_tag:default', 'server_tag:us'],
'server1': ['server_tag:default', 'server_tag:us', 'server_tag:primary'],
'server2': ['server_tag:default', 'server_tag:eu'],
} # type: Dict[ServerName, List[str]]
# Users.
if IS_RETHINKDB_2_3:
# In RethinkDB 2.3.x, granting permissions onto `rethinkdb` database to non-admin users is not supported.
# So we must use the admin account.
# See: https://github.com/rethinkdb/rethinkdb/issues/5692
AGENT_USER = 'admin'
AGENT_PASSWORD = ''
else:
# Use a dedicated user for metric collection.
AGENT_USER = 'datadog-agent'
AGENT_PASSWORD = 'r3th1nK'
CLIENT_USER = 'doggo'
# TLS.
TLS_SERVER = 'server1' # type: ServerName
TLS_DRIVER_KEY = os.path.join(HERE, 'data', 'tls', 'server.key')
TLS_DRIVER_CERT = os.path.join(HERE, 'data', 'tls', 'server.pem')
TLS_CLIENT_CERT = os.path.join(HERE, 'data', 'tls', 'client.pem')
# Database content.
DATABASE = 'doghouse'
HEROES_TABLE = 'heroes'
HEROES_TABLE_CONFIG = {
'shards': 1,
'replicas': {'primary': 1, 'eu': 1},
'primary_replica_tag': 'primary',
}
HEROES_TABLE_SERVERS = {'server1', 'server2'} # type: Set[ServerName]
HEROES_TABLE_PRIMARY_REPLICA = 'server1' # type: ServerName
HEROES_TABLE_REPLICAS_BY_SHARD = {0: HEROES_TABLE_SERVERS}
HEROES_TABLE_DOCUMENTS = [
{
"hero": "Magneto",
"name": "Max Eisenhardt",
"aka": ["Magnus", "Erik Lehnsherr", "Lehnsherr"],
"magazine_titles": ["Alpha Flight", "Avengers", "Avengers West Coast"],
"appearances_count": 42,
},
{
"hero": "Professor Xavier",
"name": "Charles Francis Xavier",
"magazine_titles": ["Alpha Flight", "Avengers", "Bishop", "Defenders"],
"appearances_count": 72,
},
{
"hero": "Storm",
"name": "Ororo Monroe",
"magazine_titles": ["Amazing Spider-Man vs. Wolverine", "Excalibur", "Fantastic Four", "Iron Fist"],
"appearances_count": 72,
},
]
HEROES_TABLE_INDEX_FIELD = 'appearances_count'
# Metrics lists.
# NOTE: jobs metrics are not listed here as they're hard to trigger, so they're covered by unit tests instead.
CONFIG_METRICS = (
(
'rethinkdb.config.servers',
AggregatorStub.GAUGE,
lambda disconnected_servers: len(SERVERS) - len(disconnected_servers),
[],
),
('rethinkdb.config.databases', AggregatorStub.GAUGE, 1, []),
('rethinkdb.config.tables_per_database', AggregatorStub.GAUGE, 1, ['database:{}'.format(DATABASE)]),
('rethinkdb.config.secondary_indexes_per_table', AggregatorStub.GAUGE, 1, ['table:{}'.format(HEROES_TABLE)]),
) # type: Tuple[Tuple[str, int, Union[int, Callable[[set], int]], List[str]], ...]
CLUSTER_STATISTICS_METRICS = (
('rethinkdb.stats.cluster.query_engine.queries_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.cluster.query_engine.read_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.cluster.query_engine.written_docs_per_sec', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
SERVER_STATISTICS_METRICS = (
('rethinkdb.stats.server.query_engine.queries_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.server.query_engine.queries_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.server.query_engine.read_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.server.query_engine.read_docs_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.server.query_engine.written_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.server.query_engine.written_docs_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.server.query_engine.client_connections', AggregatorStub.GAUGE),
(
# NOTE: submitted but not documented on the RethinkDB website.
'rethinkdb.stats.server.query_engine.clients_active',
AggregatorStub.GAUGE,
),
) # type: Tuple[Tuple[str, int], ...]
TABLE_STATISTICS_METRICS = (
('rethinkdb.stats.table.query_engine.read_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.table.query_engine.written_docs_per_sec', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
REPLICA_STATISTICS_METRICS = (
('rethinkdb.stats.table_server.query_engine.read_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.query_engine.read_docs_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.table_server.query_engine.written_docs_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.query_engine.written_docs_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.table_server.storage_engine.cache.in_use_bytes', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.read_bytes_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.read_bytes_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.table_server.storage_engine.disk.written_bytes_per_sec', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.written_bytes_total', AggregatorStub.MONOTONIC_COUNT),
('rethinkdb.stats.table_server.storage_engine.disk.space_usage.metadata_bytes', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.space_usage.data_bytes', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.space_usage.garbage_bytes', AggregatorStub.GAUGE),
('rethinkdb.stats.table_server.storage_engine.disk.space_usage.preallocated_bytes', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
TABLE_STATUS_SERVICE_CHECKS = (
'rethinkdb.table_status.status.ready_for_outdated_reads',
'rethinkdb.table_status.status.ready_for_reads',
'rethinkdb.table_status.status.ready_for_writes',
'rethinkdb.table_status.status.all_replicas_ready',
)
TABLE_STATUS_METRICS = (('rethinkdb.table_status.shards', AggregatorStub.GAUGE),) # type: Tuple[Tuple[str, int], ...]
TABLE_STATUS_SHARDS_METRICS = (
('rethinkdb.table_status.shards.replicas', AggregatorStub.GAUGE),
('rethinkdb.table_status.shards.primary_replicas', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
SERVER_STATUS_METRICS = (
('rethinkdb.server_status.network.time_connected', AggregatorStub.GAUGE),
('rethinkdb.server_status.network.connected_to', AggregatorStub.GAUGE),
('rethinkdb.server_status.process.time_started', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
JOBS_METRICS = (
(
'rethinkdb.system_jobs.jobs',
AggregatorStub.GAUGE,
1,
['job_type:query'],
),
) # type: Tuple[Tuple[str, int, int, List[str]], ...]
CURRENT_ISSUES_METRICS = (
('rethinkdb.current_issues.issues', AggregatorStub.GAUGE),
('rethinkdb.current_issues.critical_issues', AggregatorStub.GAUGE),
) # type: Tuple[Tuple[str, int], ...]
CURRENT_ISSUE_TYPES_SUBMITTED_IF_DISCONNECTED_SERVERS = ['table_availability']
E2E_METRICS = (
tuple((name, typ) for name, typ, _, _ in CONFIG_METRICS)
+ CLUSTER_STATISTICS_METRICS
+ SERVER_STATISTICS_METRICS
+ TABLE_STATISTICS_METRICS
+ REPLICA_STATISTICS_METRICS
+ TABLE_STATUS_METRICS
+ TABLE_STATUS_SHARDS_METRICS
+ SERVER_STATUS_METRICS
+ tuple((name, typ) for name, typ, _, _ in JOBS_METRICS)
) # type: Tuple[Tuple[str, int], ...]
# Docker Compose configuration.
COMPOSE_FILE = os.path.join(HERE, 'compose', 'docker-compose.yaml')
COMPOSE_ENV_VARS = env_vars = {
'RETHINKDB_IMAGE': IMAGE,
'RETHINKDB_PORT_SERVER0': str(SERVER_PORTS['server0']),
'RETHINKDB_PORT_SERVER1': str(SERVER_PORTS['server1']),
'RETHINKDB_PORT_SERVER2': str(SERVER_PORTS['server2']),
'RETHINKDB_PORT_PROXY': str(SERVER_PORTS['proxy']),
'RETHINKDB_TLS_DRIVER_KEY': TLS_DRIVER_KEY,
'RETHINKDB_TLS_DRIVER_CERT': TLS_DRIVER_CERT,
}
# Pytest common test data.
MALFORMED_VERSION_STRING_PARAMS = [
pytest.param('rethinkdb (GCC 4.9.2)', id='no-version'),
pytest.param('rethinkdb', id='prefix-only'),
pytest.param('abc 2.4.0~0bionic (GCC 4.9.2)', id='wrong-prefix'),
]
| 0 | 0 | 0 |
2c0645b579d4039d3fb0936a880573ee5a707aa0 | 396 | py | Python | janitor/package/chef/__init__.py | nilesh-naik/lambda-functions | 5daa2828914d23851538d5c3cb11f36b0f4bac52 | [
"MIT"
] | 77 | 2016-03-15T21:51:11.000Z | 2021-09-15T18:40:25.000Z | janitor/package/chef/__init__.py | nilesh-naik/lambda-functions | 5daa2828914d23851538d5c3cb11f36b0f4bac52 | [
"MIT"
] | 20 | 2016-04-15T18:40:57.000Z | 2021-06-01T18:59:56.000Z | lambda/chef/__init__.py | novu/lambda-chef-node-cleanup | 6659db950a3ab6b88ff608a6324f36a75fecebf2 | [
"Apache-2.0"
] | 53 | 2016-04-07T07:35:04.000Z | 2022-01-25T18:48:10.000Z | # Copyright (c) 2010 Noah Kantrowitz <noah@coderanger.net>
__version__ = (0, 3, 0)
from chef.api import ChefAPI, autoconfigure
from chef.client import Client
from chef.data_bag import DataBag, DataBagItem
from chef.exceptions import ChefError
from chef.node import Node
from chef.role import Role
from chef.environment import Environment
from chef.search import Search
from chef.acl import Acl
| 28.285714 | 58 | 0.810606 | # Copyright (c) 2010 Noah Kantrowitz <noah@coderanger.net>
__version__ = (0, 3, 0)
from chef.api import ChefAPI, autoconfigure
from chef.client import Client
from chef.data_bag import DataBag, DataBagItem
from chef.exceptions import ChefError
from chef.node import Node
from chef.role import Role
from chef.environment import Environment
from chef.search import Search
from chef.acl import Acl
| 0 | 0 | 0 |
ac828b22a576f4b7bb7ccd120bfa1776b6a53295 | 10,290 | py | Python | pyspeckit/spectrum/models/nh2d.py | glangsto/pyspeckit | 346b24fb828d1d33c7891cdde7609723e51af34c | [
"MIT"
] | null | null | null | pyspeckit/spectrum/models/nh2d.py | glangsto/pyspeckit | 346b24fb828d1d33c7891cdde7609723e51af34c | [
"MIT"
] | 1 | 2021-05-14T19:17:41.000Z | 2021-05-14T19:17:41.000Z | pyspeckit/spectrum/models/nh2d.py | glangsto/pyspeckit | 346b24fb828d1d33c7891cdde7609723e51af34c | [
"MIT"
] | 1 | 2020-04-23T17:04:09.000Z | 2020-04-23T17:04:09.000Z | """
===========
NH2D fitter: ortho- and para- in the same file, but not modeled together
===========
Reference for line params:
F. Daniel et al. (2016) line frequencies and line strengths.
It includes HFS due to D
http://adsabs.harvard.edu/abs/2016A%26A...586L...4D
"""
from . import hyperfine
import astropy.units as u
freq_dict_cen ={
'o-1_01-1_11': 85.926263e9,
'p-1_01-1_11': 110.153599e9,
'o-1_01-0_00': 332.82251e9,
'p-1_01-0_00': 332.78189e9,
}
freq_dict={
####### ortho-NH2D J=1_01-1_11
'o-1_01-1_11_01': 85.924691e9,
'o-1_01-1_11_02': 85.924749e9,
'o-1_01-1_11_03': 85.924781e9,
'o-1_01-1_11_04': 85.925273e9,
'o-1_01-1_11_05': 85.925370e9,
'o-1_01-1_11_06': 85.925644e9,
'o-1_01-1_11_07': 85.925662e9,
'o-1_01-1_11_08': 85.925688e9,
'o-1_01-1_11_09': 85.925694e9,
'o-1_01-1_11_10': 85.925702e9,
'o-1_01-1_11_11': 85.925734e9,
'o-1_01-1_11_12': 85.926186e9,
'o-1_01-1_11_13': 85.926191e9,
'o-1_01-1_11_14': 85.926212e9,
'o-1_01-1_11_15': 85.926225e9,
'o-1_01-1_11_16': 85.926243e9,
'o-1_01-1_11_17': 85.926244e9,
'o-1_01-1_11_18': 85.926270e9,
'o-1_01-1_11_19': 85.926282e9,
'o-1_01-1_11_20': 85.926284e9,
'o-1_01-1_11_21': 85.926288e9,
'o-1_01-1_11_22': 85.926301e9,
'o-1_01-1_11_23': 85.926314e9,
'o-1_01-1_11_24': 85.926323e9,
'o-1_01-1_11_25': 85.926333e9,
'o-1_01-1_11_26': 85.926806e9,
'o-1_01-1_11_27': 85.926825e9,
'o-1_01-1_11_28': 85.926864e9,
'o-1_01-1_11_29': 85.926877e9,
'o-1_01-1_11_30': 85.926904e9,
'o-1_01-1_11_31': 85.926922e9,
'o-1_01-1_11_32': 85.927104e9,
'o-1_01-1_11_33': 85.927143e9,
'o-1_01-1_11_34': 85.927698e9,
'o-1_01-1_11_35': 85.927724e9,
'o-1_01-1_11_36': 85.927743e9,
####### ortho-NH2D J=1_01-0_00
'o-1_01-0_00_01': 332.780875e9,
'o-1_01-0_00_02': 332.780875e9,
'o-1_01-0_00_03': 332.780875e9,
'o-1_01-0_00_04': 332.781695e9,
'o-1_01-0_00_05': 332.781695e9,
'o-1_01-0_00_06': 332.781695e9,
'o-1_01-0_00_07': 332.781735e9,
'o-1_01-0_00_08': 332.781793e9,
'o-1_01-0_00_09': 332.781793e9,
'o-1_01-0_00_10': 332.782285e9,
'o-1_01-0_00_11': 332.782285e9,
'o-1_01-0_00_12': 332.782285e9,
'o-1_01-0_00_13': 332.782317e9,
'o-1_01-0_00_14': 332.782317e9,
'o-1_01-0_00_15': 332.782375e9,
####### para-NH2D J=1_01-1_11
'p-1_01-1_11_01': 110.151982e9,
'p-1_01-1_11_02': 110.152040e9,
'p-1_01-1_11_03': 110.152072e9,
'p-1_01-1_11_04': 110.152565e9,
'p-1_01-1_11_05': 110.152662e9,
'p-1_01-1_11_06': 110.152935e9,
'p-1_01-1_11_07': 110.152954e9,
'p-1_01-1_11_08': 110.152980e9,
'p-1_01-1_11_09': 110.152986e9,
'p-1_01-1_11_10': 110.152993e9,
'p-1_01-1_11_11': 110.153025e9,
'p-1_01-1_11_12': 110.153478e9,
'p-1_01-1_11_13': 110.153484e9,
'p-1_01-1_11_14': 110.153504e9,
'p-1_01-1_11_15': 110.153517e9,
'p-1_01-1_11_16': 110.153534e9,
'p-1_01-1_11_17': 110.153536e9,
'p-1_01-1_11_18': 110.153562e9,
'p-1_01-1_11_19': 110.153574e9,
'p-1_01-1_11_20': 110.153576e9,
'p-1_01-1_11_21': 110.153580e9,
'p-1_01-1_11_22': 110.153592e9,
'p-1_01-1_11_23': 110.153606e9,
'p-1_01-1_11_24': 110.153615e9,
'p-1_01-1_11_25': 110.153625e9,
'p-1_01-1_11_26': 110.154098e9,
'p-1_01-1_11_27': 110.154117e9,
'p-1_01-1_11_28': 110.154156e9,
'p-1_01-1_11_29': 110.154170e9,
'p-1_01-1_11_30': 110.154196e9,
'p-1_01-1_11_31': 110.154215e9,
'p-1_01-1_11_32': 110.154397e9,
'p-1_01-1_11_33': 110.154437e9,
'p-1_01-1_11_34': 110.154991e9,
'p-1_01-1_11_35': 110.155017e9,
'p-1_01-1_11_36': 110.155036e9,
####### para-NH2D J=1_01-0_00
'p-1_01-0_00_01': 332.821618e9,
'p-1_01-0_00_02': 332.821618e9,
'p-1_01-0_00_03': 332.821618e9,
'p-1_01-0_00_04': 332.822439e9,
'p-1_01-0_00_05': 332.822439e9,
'p-1_01-0_00_06': 332.822439e9,
'p-1_01-0_00_07': 332.822479e9,
'p-1_01-0_00_08': 332.822537e9,
'p-1_01-0_00_09': 332.822537e9,
'p-1_01-0_00_10': 332.823029e9,
'p-1_01-0_00_11': 332.823029e9,
'p-1_01-0_00_12': 332.823029e9,
'p-1_01-0_00_13': 332.823062e9,
'p-1_01-0_00_14': 332.823062e9,
'p-1_01-0_00_15': 332.823120e9
}
line_strength_dict = {
####### ortho-NH2D J=1_01-1_11
'o-1_01-1_11_01': 0.01310,
'o-1_01-1_11_02': 0.06187,
'o-1_01-1_11_03': 0.03562,
'o-1_01-1_11_04': 0.00016,
'o-1_01-1_11_05': 0.00035,
'o-1_01-1_11_06': 0.01595,
'o-1_01-1_11_07': 0.01758,
'o-1_01-1_11_08': 0.05965,
'o-1_01-1_11_09': 0.04054,
'o-1_01-1_11_10': 0.00064,
'o-1_01-1_11_11': 0.00556,
'o-1_01-1_11_12': 0.09296,
'o-1_01-1_11_13': 0.00000,
'o-1_01-1_11_14': 0.02677,
'o-1_01-1_11_15': 0.02341,
'o-1_01-1_11_16': 0.00798,
'o-1_01-1_11_17': 0.01984,
'o-1_01-1_11_18': 0.17288,
'o-1_01-1_11_19': 0.03609,
'o-1_01-1_11_20': 0.01423,
'o-1_01-1_11_21': 0.01265,
'o-1_01-1_11_22': 0.00934,
'o-1_01-1_11_23': 0.01131,
'o-1_01-1_11_24': 0.06547,
'o-1_01-1_11_25': 0.00541,
'o-1_01-1_11_26': 0.00769,
'o-1_01-1_11_27': 0.03419,
'o-1_01-1_11_28': 0.06657,
'o-1_01-1_11_29': 0.01395,
'o-1_01-1_11_30': 0.00325,
'o-1_01-1_11_31': 0.01385,
'o-1_01-1_11_32': 0.00002,
'o-1_01-1_11_33': 0.00006,
'o-1_01-1_11_34': 0.01043,
'o-1_01-1_11_35': 0.06026,
'o-1_01-1_11_36': 0.04034,
####### ortho-NH2D J=1_01-0_00
'o-1_01-0_00_01': 0.06298,
'o-1_01-0_00_02': 0.03129,
'o-1_01-0_00_03': 0.01683,
'o-1_01-0_00_04': 0.00007,
'o-1_01-0_00_05': 0.04185,
'o-1_01-0_00_06': 0.06918,
'o-1_01-0_00_07': 0.25920,
'o-1_01-0_00_08': 0.05735,
'o-1_01-0_00_09': 0.12788,
'o-1_01-0_00_10': 0.03796,
'o-1_01-0_00_11': 0.04805,
'o-1_01-0_00_12': 0.02509,
'o-1_01-0_00_13': 0.05735,
'o-1_01-0_00_14': 0.12788,
'o-1_01-0_00_15': 0.03703,
####### para-NH2D J=1_01-1_11
'p-1_01-1_11_01': 0.01310,
'p-1_01-1_11_02': 0.06188,
'p-1_01-1_11_03': 0.03562,
'p-1_01-1_11_04': 0.00016,
'p-1_01-1_11_05': 0.00035,
'p-1_01-1_11_06': 0.01595,
'p-1_01-1_11_07': 0.01758,
'p-1_01-1_11_08': 0.05965,
'p-1_01-1_11_09': 0.04054,
'p-1_01-1_11_10': 0.00064,
'p-1_01-1_11_11': 0.00556,
'p-1_01-1_11_12': 0.09296,
'p-1_01-1_11_13': 0.00000,
'p-1_01-1_11_14': 0.02675,
'p-1_01-1_11_15': 0.02341,
'p-1_01-1_11_16': 0.00798,
'p-1_01-1_11_17': 0.01984,
'p-1_01-1_11_18': 0.17288,
'p-1_01-1_11_19': 0.03609,
'p-1_01-1_11_20': 0.01424,
'p-1_01-1_11_21': 0.01266,
'p-1_01-1_11_22': 0.00934,
'p-1_01-1_11_23': 0.01131,
'p-1_01-1_11_24': 0.06546,
'p-1_01-1_11_25': 0.00541,
'p-1_01-1_11_26': 0.00769,
'p-1_01-1_11_27': 0.03419,
'p-1_01-1_11_28': 0.06658,
'p-1_01-1_11_29': 0.01395,
'p-1_01-1_11_30': 0.00325,
'p-1_01-1_11_31': 0.01385,
'p-1_01-1_11_32': 0.00002,
'p-1_01-1_11_33': 0.00006,
'p-1_01-1_11_34': 0.01043,
'p-1_01-1_11_35': 0.06026,
'p-1_01-1_11_36': 0.04034,
####### para-NH2D J=1_01-0_00
'p-1_01-0_00_01': 0.06298,
'p-1_01-0_00_02': 0.03130,
'p-1_01-0_00_03': 0.01683,
'p-1_01-0_00_04': 0.00007,
'p-1_01-0_00_05': 0.04185,
'p-1_01-0_00_06': 0.06918,
'p-1_01-0_00_07': 0.25920,
'p-1_01-0_00_08': 0.05734,
'p-1_01-0_00_09': 0.12788,
'p-1_01-0_00_10': 0.03795,
'p-1_01-0_00_11': 0.04805,
'p-1_01-0_00_12': 0.02510,
'p-1_01-0_00_13': 0.05734,
'p-1_01-0_00_14': 0.12788,
'p-1_01-0_00_15': 0.03703,
}
# Get offset velocity dictionary in km/s based on the lines frequencies and rest frequency
conv_o1_1=u.doppler_radio(freq_dict_cen['o-1_01-1_11']*u.Hz)
conv_p1_1=u.doppler_radio(freq_dict_cen['p-1_01-1_11']*u.Hz)
conv_o1_0=u.doppler_radio(freq_dict_cen['o-1_01-0_00']*u.Hz)
conv_p1_0=u.doppler_radio(freq_dict_cen['p-1_01-0_00']*u.Hz)
voff_lines_dict = {
name: ((freq_dict[name]*u.Hz).to(u.km/u.s, equivalencies=conv_o1_1).value) for name in freq_dict.keys() if "o-1_01-1_11" in name
}
voff_lines_dict.update({
name: ((freq_dict[name]*u.Hz).to(u.km/u.s, equivalencies=conv_p1_1).value) for name in freq_dict.keys() if "p-1_01-1_11" in name
})
voff_lines_dict.update({
name: ((freq_dict[name]*u.Hz).to(u.km/u.s, equivalencies=conv_o1_0).value) for name in freq_dict.keys() if "o-1_01-0_00" in name
})
voff_lines_dict.update({
name: ((freq_dict[name]*u.Hz).to(u.km/u.s, equivalencies=conv_p1_0).value) for name in freq_dict.keys() if "p-1_01-0_00" in name
})
# I don't know yet how to use this parameter... in CLASS it does not exist
# Note to Jaime: this is the sum of the degeneracy values for all hyperfines
# for a given line; it gives the relative weights between the J=2-1 and J=3-2
# lines, for example (the hyperfine weights are treated as normalized within
# one rotational transition)
wo1_1 = sum(val for name,val in line_strength_dict.items() if 'o-1_01-1_11' in name)
wp1_1 = sum(val for name,val in line_strength_dict.items() if 'p-1_01-1_11' in name)
wo1_0 = sum(val for name,val in line_strength_dict.items() if 'o-1_01-0_00' in name)
wp1_0 = sum(val for name,val in line_strength_dict.items() if 'p-1_01-0_00' in name)
relative_strength_total_degeneracy = {
name : wo1_1 for name in line_strength_dict.keys() if "o-1_01-1_11" in name
}
relative_strength_total_degeneracy.update({
name : wp1_1 for name in line_strength_dict.keys() if "p-1_01-1_11" in name
})
relative_strength_total_degeneracy.update({
name : wo1_0 for name in line_strength_dict.keys() if "o-1_01-0_00" in name
})
relative_strength_total_degeneracy.update({
name : wp1_0 for name in line_strength_dict.keys() if "p-1_01-0_00" in name
})
# Get the list of line names from the previous lists
line_names = [name for name in voff_lines_dict.keys()]
nh2d_vtau = hyperfine.hyperfinemodel(line_names, voff_lines_dict, freq_dict,
line_strength_dict,
relative_strength_total_degeneracy)
nh2d_vtau_fitter = nh2d_vtau.fitter
nh2d_vtau_vheight_fitter = nh2d_vtau.vheight_fitter
nh2d_vtau_tbg_fitter = nh2d_vtau.background_fitter
| 35.482759 | 132 | 0.636929 | """
===========
NH2D fitter: ortho- and para- in the same file, but not modeled together
===========
Reference for line params:
F. Daniel et al. (2016) line frequencies and line strengths.
It includes HFS due to D
http://adsabs.harvard.edu/abs/2016A%26A...586L...4D
"""
from . import hyperfine
import astropy.units as u
freq_dict_cen ={
'o-1_01-1_11': 85.926263e9,
'p-1_01-1_11': 110.153599e9,
'o-1_01-0_00': 332.82251e9,
'p-1_01-0_00': 332.78189e9,
}
freq_dict={
####### ortho-NH2D J=1_01-1_11
'o-1_01-1_11_01': 85.924691e9,
'o-1_01-1_11_02': 85.924749e9,
'o-1_01-1_11_03': 85.924781e9,
'o-1_01-1_11_04': 85.925273e9,
'o-1_01-1_11_05': 85.925370e9,
'o-1_01-1_11_06': 85.925644e9,
'o-1_01-1_11_07': 85.925662e9,
'o-1_01-1_11_08': 85.925688e9,
'o-1_01-1_11_09': 85.925694e9,
'o-1_01-1_11_10': 85.925702e9,
'o-1_01-1_11_11': 85.925734e9,
'o-1_01-1_11_12': 85.926186e9,
'o-1_01-1_11_13': 85.926191e9,
'o-1_01-1_11_14': 85.926212e9,
'o-1_01-1_11_15': 85.926225e9,
'o-1_01-1_11_16': 85.926243e9,
'o-1_01-1_11_17': 85.926244e9,
'o-1_01-1_11_18': 85.926270e9,
'o-1_01-1_11_19': 85.926282e9,
'o-1_01-1_11_20': 85.926284e9,
'o-1_01-1_11_21': 85.926288e9,
'o-1_01-1_11_22': 85.926301e9,
'o-1_01-1_11_23': 85.926314e9,
'o-1_01-1_11_24': 85.926323e9,
'o-1_01-1_11_25': 85.926333e9,
'o-1_01-1_11_26': 85.926806e9,
'o-1_01-1_11_27': 85.926825e9,
'o-1_01-1_11_28': 85.926864e9,
'o-1_01-1_11_29': 85.926877e9,
'o-1_01-1_11_30': 85.926904e9,
'o-1_01-1_11_31': 85.926922e9,
'o-1_01-1_11_32': 85.927104e9,
'o-1_01-1_11_33': 85.927143e9,
'o-1_01-1_11_34': 85.927698e9,
'o-1_01-1_11_35': 85.927724e9,
'o-1_01-1_11_36': 85.927743e9,
####### ortho-NH2D J=1_01-0_00
'o-1_01-0_00_01': 332.780875e9,
'o-1_01-0_00_02': 332.780875e9,
'o-1_01-0_00_03': 332.780875e9,
'o-1_01-0_00_04': 332.781695e9,
'o-1_01-0_00_05': 332.781695e9,
'o-1_01-0_00_06': 332.781695e9,
'o-1_01-0_00_07': 332.781735e9,
'o-1_01-0_00_08': 332.781793e9,
'o-1_01-0_00_09': 332.781793e9,
'o-1_01-0_00_10': 332.782285e9,
'o-1_01-0_00_11': 332.782285e9,
'o-1_01-0_00_12': 332.782285e9,
'o-1_01-0_00_13': 332.782317e9,
'o-1_01-0_00_14': 332.782317e9,
'o-1_01-0_00_15': 332.782375e9,
####### para-NH2D J=1_01-1_11
'p-1_01-1_11_01': 110.151982e9,
'p-1_01-1_11_02': 110.152040e9,
'p-1_01-1_11_03': 110.152072e9,
'p-1_01-1_11_04': 110.152565e9,
'p-1_01-1_11_05': 110.152662e9,
'p-1_01-1_11_06': 110.152935e9,
'p-1_01-1_11_07': 110.152954e9,
'p-1_01-1_11_08': 110.152980e9,
'p-1_01-1_11_09': 110.152986e9,
'p-1_01-1_11_10': 110.152993e9,
'p-1_01-1_11_11': 110.153025e9,
'p-1_01-1_11_12': 110.153478e9,
'p-1_01-1_11_13': 110.153484e9,
'p-1_01-1_11_14': 110.153504e9,
'p-1_01-1_11_15': 110.153517e9,
'p-1_01-1_11_16': 110.153534e9,
'p-1_01-1_11_17': 110.153536e9,
'p-1_01-1_11_18': 110.153562e9,
'p-1_01-1_11_19': 110.153574e9,
'p-1_01-1_11_20': 110.153576e9,
'p-1_01-1_11_21': 110.153580e9,
'p-1_01-1_11_22': 110.153592e9,
'p-1_01-1_11_23': 110.153606e9,
'p-1_01-1_11_24': 110.153615e9,
'p-1_01-1_11_25': 110.153625e9,
'p-1_01-1_11_26': 110.154098e9,
'p-1_01-1_11_27': 110.154117e9,
'p-1_01-1_11_28': 110.154156e9,
'p-1_01-1_11_29': 110.154170e9,
'p-1_01-1_11_30': 110.154196e9,
'p-1_01-1_11_31': 110.154215e9,
'p-1_01-1_11_32': 110.154397e9,
'p-1_01-1_11_33': 110.154437e9,
'p-1_01-1_11_34': 110.154991e9,
'p-1_01-1_11_35': 110.155017e9,
'p-1_01-1_11_36': 110.155036e9,
####### para-NH2D J=1_01-0_00
'p-1_01-0_00_01': 332.821618e9,
'p-1_01-0_00_02': 332.821618e9,
'p-1_01-0_00_03': 332.821618e9,
'p-1_01-0_00_04': 332.822439e9,
'p-1_01-0_00_05': 332.822439e9,
'p-1_01-0_00_06': 332.822439e9,
'p-1_01-0_00_07': 332.822479e9,
'p-1_01-0_00_08': 332.822537e9,
'p-1_01-0_00_09': 332.822537e9,
'p-1_01-0_00_10': 332.823029e9,
'p-1_01-0_00_11': 332.823029e9,
'p-1_01-0_00_12': 332.823029e9,
'p-1_01-0_00_13': 332.823062e9,
'p-1_01-0_00_14': 332.823062e9,
'p-1_01-0_00_15': 332.823120e9
}
line_strength_dict = {
####### ortho-NH2D J=1_01-1_11
'o-1_01-1_11_01': 0.01310,
'o-1_01-1_11_02': 0.06187,
'o-1_01-1_11_03': 0.03562,
'o-1_01-1_11_04': 0.00016,
'o-1_01-1_11_05': 0.00035,
'o-1_01-1_11_06': 0.01595,
'o-1_01-1_11_07': 0.01758,
'o-1_01-1_11_08': 0.05965,
'o-1_01-1_11_09': 0.04054,
'o-1_01-1_11_10': 0.00064,
'o-1_01-1_11_11': 0.00556,
'o-1_01-1_11_12': 0.09296,
'o-1_01-1_11_13': 0.00000,
'o-1_01-1_11_14': 0.02677,
'o-1_01-1_11_15': 0.02341,
'o-1_01-1_11_16': 0.00798,
'o-1_01-1_11_17': 0.01984,
'o-1_01-1_11_18': 0.17288,
'o-1_01-1_11_19': 0.03609,
'o-1_01-1_11_20': 0.01423,
'o-1_01-1_11_21': 0.01265,
'o-1_01-1_11_22': 0.00934,
'o-1_01-1_11_23': 0.01131,
'o-1_01-1_11_24': 0.06547,
'o-1_01-1_11_25': 0.00541,
'o-1_01-1_11_26': 0.00769,
'o-1_01-1_11_27': 0.03419,
'o-1_01-1_11_28': 0.06657,
'o-1_01-1_11_29': 0.01395,
'o-1_01-1_11_30': 0.00325,
'o-1_01-1_11_31': 0.01385,
'o-1_01-1_11_32': 0.00002,
'o-1_01-1_11_33': 0.00006,
'o-1_01-1_11_34': 0.01043,
'o-1_01-1_11_35': 0.06026,
'o-1_01-1_11_36': 0.04034,
####### ortho-NH2D J=1_01-0_00
'o-1_01-0_00_01': 0.06298,
'o-1_01-0_00_02': 0.03129,
'o-1_01-0_00_03': 0.01683,
'o-1_01-0_00_04': 0.00007,
'o-1_01-0_00_05': 0.04185,
'o-1_01-0_00_06': 0.06918,
'o-1_01-0_00_07': 0.25920,
'o-1_01-0_00_08': 0.05735,
'o-1_01-0_00_09': 0.12788,
'o-1_01-0_00_10': 0.03796,
'o-1_01-0_00_11': 0.04805,
'o-1_01-0_00_12': 0.02509,
'o-1_01-0_00_13': 0.05735,
'o-1_01-0_00_14': 0.12788,
'o-1_01-0_00_15': 0.03703,
####### para-NH2D J=1_01-1_11
'p-1_01-1_11_01': 0.01310,
'p-1_01-1_11_02': 0.06188,
'p-1_01-1_11_03': 0.03562,
'p-1_01-1_11_04': 0.00016,
'p-1_01-1_11_05': 0.00035,
'p-1_01-1_11_06': 0.01595,
'p-1_01-1_11_07': 0.01758,
'p-1_01-1_11_08': 0.05965,
'p-1_01-1_11_09': 0.04054,
'p-1_01-1_11_10': 0.00064,
'p-1_01-1_11_11': 0.00556,
'p-1_01-1_11_12': 0.09296,
'p-1_01-1_11_13': 0.00000,
'p-1_01-1_11_14': 0.02675,
'p-1_01-1_11_15': 0.02341,
'p-1_01-1_11_16': 0.00798,
'p-1_01-1_11_17': 0.01984,
'p-1_01-1_11_18': 0.17288,
'p-1_01-1_11_19': 0.03609,
'p-1_01-1_11_20': 0.01424,
'p-1_01-1_11_21': 0.01266,
'p-1_01-1_11_22': 0.00934,
'p-1_01-1_11_23': 0.01131,
'p-1_01-1_11_24': 0.06546,
'p-1_01-1_11_25': 0.00541,
'p-1_01-1_11_26': 0.00769,
'p-1_01-1_11_27': 0.03419,
'p-1_01-1_11_28': 0.06658,
'p-1_01-1_11_29': 0.01395,
'p-1_01-1_11_30': 0.00325,
'p-1_01-1_11_31': 0.01385,
'p-1_01-1_11_32': 0.00002,
'p-1_01-1_11_33': 0.00006,
'p-1_01-1_11_34': 0.01043,
'p-1_01-1_11_35': 0.06026,
'p-1_01-1_11_36': 0.04034,
####### para-NH2D J=1_01-0_00
'p-1_01-0_00_01': 0.06298,
'p-1_01-0_00_02': 0.03130,
'p-1_01-0_00_03': 0.01683,
'p-1_01-0_00_04': 0.00007,
'p-1_01-0_00_05': 0.04185,
'p-1_01-0_00_06': 0.06918,
'p-1_01-0_00_07': 0.25920,
'p-1_01-0_00_08': 0.05734,
'p-1_01-0_00_09': 0.12788,
'p-1_01-0_00_10': 0.03795,
'p-1_01-0_00_11': 0.04805,
'p-1_01-0_00_12': 0.02510,
'p-1_01-0_00_13': 0.05734,
'p-1_01-0_00_14': 0.12788,
'p-1_01-0_00_15': 0.03703,
}
# Get offset velocity dictionary in km/s based on the lines frequencies and rest frequency
conv_o1_1=u.doppler_radio(freq_dict_cen['o-1_01-1_11']*u.Hz)
conv_p1_1=u.doppler_radio(freq_dict_cen['p-1_01-1_11']*u.Hz)
conv_o1_0=u.doppler_radio(freq_dict_cen['o-1_01-0_00']*u.Hz)
conv_p1_0=u.doppler_radio(freq_dict_cen['p-1_01-0_00']*u.Hz)
voff_lines_dict = {
name: ((freq_dict[name]*u.Hz).to(u.km/u.s, equivalencies=conv_o1_1).value) for name in freq_dict.keys() if "o-1_01-1_11" in name
}
voff_lines_dict.update({
name: ((freq_dict[name]*u.Hz).to(u.km/u.s, equivalencies=conv_p1_1).value) for name in freq_dict.keys() if "p-1_01-1_11" in name
})
voff_lines_dict.update({
name: ((freq_dict[name]*u.Hz).to(u.km/u.s, equivalencies=conv_o1_0).value) for name in freq_dict.keys() if "o-1_01-0_00" in name
})
voff_lines_dict.update({
name: ((freq_dict[name]*u.Hz).to(u.km/u.s, equivalencies=conv_p1_0).value) for name in freq_dict.keys() if "p-1_01-0_00" in name
})
# I don't know yet how to use this parameter... in CLASS it does not exist
# Note to Jaime: this is the sum of the degeneracy values for all hyperfines
# for a given line; it gives the relative weights between the J=2-1 and J=3-2
# lines, for example (the hyperfine weights are treated as normalized within
# one rotational transition)
wo1_1 = sum(val for name,val in line_strength_dict.items() if 'o-1_01-1_11' in name)
wp1_1 = sum(val for name,val in line_strength_dict.items() if 'p-1_01-1_11' in name)
wo1_0 = sum(val for name,val in line_strength_dict.items() if 'o-1_01-0_00' in name)
wp1_0 = sum(val for name,val in line_strength_dict.items() if 'p-1_01-0_00' in name)
relative_strength_total_degeneracy = {
name : wo1_1 for name in line_strength_dict.keys() if "o-1_01-1_11" in name
}
relative_strength_total_degeneracy.update({
name : wp1_1 for name in line_strength_dict.keys() if "p-1_01-1_11" in name
})
relative_strength_total_degeneracy.update({
name : wo1_0 for name in line_strength_dict.keys() if "o-1_01-0_00" in name
})
relative_strength_total_degeneracy.update({
name : wp1_0 for name in line_strength_dict.keys() if "p-1_01-0_00" in name
})
# Get the list of line names from the previous lists
line_names = [name for name in voff_lines_dict.keys()]
nh2d_vtau = hyperfine.hyperfinemodel(line_names, voff_lines_dict, freq_dict,
line_strength_dict,
relative_strength_total_degeneracy)
nh2d_vtau_fitter = nh2d_vtau.fitter
nh2d_vtau_vheight_fitter = nh2d_vtau.vheight_fitter
nh2d_vtau_tbg_fitter = nh2d_vtau.background_fitter
| 0 | 0 | 0 |
5f8095707304f334fc478e2b1d6cdfd9581bb80b | 44 | py | Python | parameters_443.py | amonmoce/ElectionsStats | 647fbd5ebc0aa25a027355e0cc851220328fec06 | [
"BSD-3-Clause"
] | null | null | null | parameters_443.py | amonmoce/ElectionsStats | 647fbd5ebc0aa25a027355e0cc851220328fec06 | [
"BSD-3-Clause"
] | null | null | null | parameters_443.py | amonmoce/ElectionsStats | 647fbd5ebc0aa25a027355e0cc851220328fec06 | [
"BSD-3-Clause"
] | null | null | null | password="4bd9270216a6d2e7bc330cf396f7c8f2"
| 22 | 43 | 0.909091 | password="4bd9270216a6d2e7bc330cf396f7c8f2"
| 0 | 0 | 0 |
5885938e77707f880d8da482e0285130b6697045 | 593 | py | Python | src/utils/train/training_utils.py | chris4540/StudyMaskedLMForQG | 2bf477b7b8cfb5d195c028db6d63aadf06af8fc5 | [
"MIT"
] | 6 | 2020-12-09T11:30:37.000Z | 2022-03-03T12:06:44.000Z | src/utils/train/training_utils.py | chris4540/StudyMaskedLMForQG | 2bf477b7b8cfb5d195c028db6d63aadf06af8fc5 | [
"MIT"
] | null | null | null | src/utils/train/training_utils.py | chris4540/StudyMaskedLMForQG | 2bf477b7b8cfb5d195c028db6d63aadf06af8fc5 | [
"MIT"
] | 3 | 2021-03-23T04:56:48.000Z | 2022-02-02T19:31:46.000Z | from typing import List
from typing import Dict
from typing import NamedTuple
# from typing import Optional
| 25.782609 | 66 | 0.627319 | from typing import List
from typing import Dict
from typing import NamedTuple
# from typing import Optional
def build_generated_text(refs: List[str], hyps: List[str]) -> str:
ret = ""
linesep = " \n" # Tensorboard text uses format of markdown
for i, (ref, hyp) in enumerate(zip(refs, hyps)):
ret += f"{i}" + linesep
ret += f"ref: {ref}" + linesep
ret += f"hyp: {hyp}" + linesep
ret += "-" * 100 + linesep
return ret
class TextGenerationOutput(NamedTuple):
references: List[str]
hypotheses: List[str]
metrics: Dict[str, float]
| 337 | 100 | 46 |
6fb14605bf869967b78c62d65e4c34bd50dca9b2 | 884 | py | Python | online/client/char-client.py | jas-dzied/quiz | 39d19c952af8b71c8e407f7a650361ab49653bf3 | [
"MIT"
] | null | null | null | online/client/char-client.py | jas-dzied/quiz | 39d19c952af8b71c8e407f7a650361ab49653bf3 | [
"MIT"
] | null | null | null | online/client/char-client.py | jas-dzied/quiz | 39d19c952af8b71c8e407f7a650361ab49653bf3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import asyncio
import websockets
import threading
import queue
import secrets
asyncio.run(main())
| 24.555556 | 75 | 0.700226 | #!/usr/bin/env python3
import asyncio
import websockets
import threading
import queue
import secrets
async def worker(uid, q):
async with websockets.connect("ws://localhost:8003") as websocket:
await websocket.send(f'0:{uid}')
async def receiver(uid, q):
async with websockets.connect("ws://localhost:8003") as websocket:
await websocket.send(f'1:{uid}')
def watcher_starter(*args):
asyncio.run(worker(*args))
def sender_starter(*args):
asyncio.run(receiver(*args))
async def main():
uid = secrets.token_urlsafe(16)
print(f'My uid: {uid}')
q = queue.Queue()
watcher_thread = threading.Thread(target=watcher_starter, args=(uid,q))
sender_thread = threading.Thread(target=sender_starter, args=(uid,q))
watcher_thread.start()
sender_thread.start()
watcher_thread.join()
sender_thread.join()
asyncio.run(main())
| 647 | 0 | 114 |
30261c9941c84f4da118943a0ab2701b46dde7d5 | 663 | py | Python | ns/demux/flow_demux.py | lunarss/ns.py | 9298c850290fb2ee98b047dfc757f4687763c2f8 | [
"Apache-2.0"
] | null | null | null | ns/demux/flow_demux.py | lunarss/ns.py | 9298c850290fb2ee98b047dfc757f4687763c2f8 | [
"Apache-2.0"
] | 1 | 2021-07-20T02:48:41.000Z | 2021-07-20T02:48:41.000Z | ns/demux/flow_demux.py | JinJinGuang/ns.py | 90415c4c83dd775cc50976c609ecbf551191cdf0 | [
"Apache-2.0"
] | null | null | null | """
A demultiplexing element that splits packet streams by flow_id.
"""
class FlowDemux:
"""
The constructor takes a list of downstream elements for the
corresponding output ports as its input.
"""
def put(self, packet):
""" Sends a packet to this element. """
self.packets_received += 1
flow_id = packet.flow_id
if flow_id < len(self.outs):
self.outs[flow_id].put(packet)
else:
if self.default:
self.default.put(packet)
| 26.52 | 63 | 0.603318 | """
A demultiplexing element that splits packet streams by flow_id.
"""
class FlowDemux:
"""
The constructor takes a list of downstream elements for the
corresponding output ports as its input.
"""
def __init__(self, outs=None, default=None):
self.outs = outs
self.default = default
self.packets_received = 0
def put(self, packet):
""" Sends a packet to this element. """
self.packets_received += 1
flow_id = packet.flow_id
if flow_id < len(self.outs):
self.outs[flow_id].put(packet)
else:
if self.default:
self.default.put(packet)
| 113 | 0 | 26 |
fcbf29f197cc47590cb289066bc6f4f0276442d6 | 4,621 | py | Python | python-advanced/chapter1.py | Rokon-Uz-Zaman/thinkdiff_python_django | 5010c5f1dd8a028fb9e5235319bb6bb434831e6c | [
"MIT"
] | 92 | 2018-04-03T20:53:07.000Z | 2022-03-04T05:53:10.000Z | python-language/python-advanced/chapter1.py | mostafijur-rahman299/thinkdiff | b0e0c01fe38c406f4dfa8cc80b2f0c5654017079 | [
"MIT"
] | 11 | 2018-10-01T15:35:33.000Z | 2021-09-01T04:59:56.000Z | python-language/python-advanced/chapter1.py | mostafijur-rahman299/thinkdiff | b0e0c01fe38c406f4dfa8cc80b2f0c5654017079 | [
"MIT"
] | 98 | 2018-03-13T08:03:54.000Z | 2022-03-22T08:11:44.000Z | # author: Mahmud Ahsan
# code: https://github.com/mahmudahsan/thinkdiff
# blog: http://thinkdiff.net
# http://pythonbangla.com
# MIT License
# --------------------------
# Files
# --------------------------
## Reading full contents of a text file
'''
Encouraged way
with keyword close the file automatically
'''
try:
with open('data/article.txt') as fobj:
contents = fobj.read()
print (contents)
except Exception as e:
print ("File Error: " , e)
print()
### Another way
'''
In this way, file need to close manually
'''
try:
fobj = open('data/article.txt')
except Exception as e:
print ("File Error: " , e)
else:
contents = fobj.read()
print (contents)
finally:
fobj.close()
print()
'''
MacOS and Linux
Relative path:
data/article.txt
Absolute path:
/user/mahmud/python/data/article.txt
'''
# Windows:
# data\article.txt
# C:\Users\mahmud\python\data\article.txt
### Reading line by line and make uppercase
with open("data/article.txt") as fobj:
for num, line in enumerate(fobj):
print ( num+1, line.upper() )
print()
### Reading list of lines
with open("data/names.txt") as fobj:
lines = fobj.readlines()
print (lines)
## Write text in a file
'''
w = write # erase existing content if any
a = append
r = read # default
OR
wt = write
at = append
rt = read
t is for text mode which is set by default
'''
with open ('data/number.txt', 'w') as fobj:
fobj.write('1')
fobj.write('\n')
fobj.write('28484')
## Append text in an existing file
'''
# uncomment to run this program
with open ('data/message.txt', 'a') as fobj:
fobj.write("life is good \n")
'''
## Encoding during writing file
# latin-1 other encoding
with open ('data/bangla.txt', 'w', encoding='UTF-8') as fobj:
fobj.write('আমার দেশ বাংলাদেশ')
fobj.write('\n')
fobj.write('আমি আমার দেশকে ভালবাসি')
## Redirect print output to file
with open ('data/print.txt', 'w') as fobj:
print ("Nothing goes unpaid", file=fobj)
## Write a binary data to a file
with open ('data/binary', 'wb') as fobj:
fobj.write(b'Life is good')
## Read a binary data file
with open ('data/binary', 'rb') as fobj:
binary_data = fobj.read()
decoded_data = binary_data.decode('utf-8')
print ( decoded_data )
## File existence checking
import os
if os.path.exists('data/article.txt'):
print ("Yes, file exist")
## Temporary file
'''
w+ = reading and writing same time
With auto destroyed when file closed
'''
from tempfile import TemporaryFile
with TemporaryFile('w+') as fobj:
fobj.write("Life is cool.\n")
fobj.seek(0) # seek to the beginning
data = fobj.read()
print (data)
## pyserial serial port access library
'''
Controlling hardware device like robot, sensor
by using serial port
https://github.com/pyserial/pyserial
'''
## Serialize python object to a byte stream
import pickle
dict_data = {'name':'Ahsan', 'country':'Bangladesh'}
# serialize_data = pickle.dumps(dict_data)
with open ('data/serialize', 'wb') as fobj:
pickle.dump(dict_data, fobj)
with open ('data/serialize', 'rb') as fobj:
dict_data = pickle.load(fobj)
print ( dict_data )
print()
## CSV file read
import csv
with open('data/expense.csv', 'r') as fobj:
fcsv = csv.reader(fobj)
sum = 0
for i, row in enumerate(fcsv):
print (i, row[0], row[1])
sum += int(row[1]) if i > 0 else 0
print ("Total Cost: ", sum)
'''
https://docs.python.org/3/library/csv.html
http://pandas.pydata.org
Pandas has pandas.read_csv() function to load CSV data to a DataFrame object.
'''
## CSV file write
list_items = [["name", 'age', 'country'],
['Bill Gates', 55, 'US'],
['Mark Zuckerberg', 34, 'US'],
['Swift', 35, 'Canada']
]
import csv
with open('data/people.csv', 'w') as fobj:
fcsv = csv.writer(fobj)
fcsv.writerows(list_items)
print()
## JSON Data Encode and Decode
'''
JSON (JavaScript Object Notation) is a common standard to exchange data between server and client in web application.
'''
import json
data = {
'name' : 'Bill Gates',
'age' : 55,
'country' : 'US',
'is_retired': True
}
json_encoded_str = json.dumps(data)
print(json_encoded_str)
json_decode = json.loads(json_encoded_str)
print(json_decode)
### Dumping data in file and load from file
with open('data/json_data.json', 'w') as fobj:
json.dump(data, fobj)
with open('data/json_data.json', 'r') as fobj:
json_data = json.load(fobj)
print (json_data)
| 21.79717 | 118 | 0.628003 | # author: Mahmud Ahsan
# code: https://github.com/mahmudahsan/thinkdiff
# blog: http://thinkdiff.net
# http://pythonbangla.com
# MIT License
# --------------------------
# Files
# --------------------------
## Reading full contents of a text file
'''
Encouraged way
with keyword close the file automatically
'''
try:
with open('data/article.txt') as fobj:
contents = fobj.read()
print (contents)
except Exception as e:
print ("File Error: " , e)
print()
### Another way
'''
In this way, file need to close manually
'''
try:
fobj = open('data/article.txt')
except Exception as e:
print ("File Error: " , e)
else:
contents = fobj.read()
print (contents)
finally:
fobj.close()
print()
'''
MacOS and Linux
Relative path:
data/article.txt
Absolute path:
/user/mahmud/python/data/article.txt
'''
# Windows:
# data\article.txt
# C:\Users\mahmud\python\data\article.txt
### Reading line by line and make uppercase
with open("data/article.txt") as fobj:
for num, line in enumerate(fobj):
print ( num+1, line.upper() )
print()
### Reading list of lines
with open("data/names.txt") as fobj:
lines = fobj.readlines()
print (lines)
## Write text in a file
'''
w = write # erase existing content if any
a = append
r = read # default
OR
wt = write
at = append
rt = read
t is for text mode which is set by default
'''
with open ('data/number.txt', 'w') as fobj:
fobj.write('1')
fobj.write('\n')
fobj.write('28484')
## Append text in an existing file
'''
# uncomment to run this program
with open ('data/message.txt', 'a') as fobj:
fobj.write("life is good \n")
'''
## Encoding during writing file
# latin-1 other encoding
with open ('data/bangla.txt', 'w', encoding='UTF-8') as fobj:
fobj.write('আমার দেশ বাংলাদেশ')
fobj.write('\n')
fobj.write('আমি আমার দেশকে ভালবাসি')
## Redirect print output to file
with open ('data/print.txt', 'w') as fobj:
print ("Nothing goes unpaid", file=fobj)
## Write a binary data to a file
with open ('data/binary', 'wb') as fobj:
fobj.write(b'Life is good')
## Read a binary data file
with open ('data/binary', 'rb') as fobj:
binary_data = fobj.read()
decoded_data = binary_data.decode('utf-8')
print ( decoded_data )
## File existence checking
import os
if os.path.exists('data/article.txt'):
print ("Yes, file exist")
## Temporary file
'''
w+ = reading and writing same time
With auto destroyed when file closed
'''
from tempfile import TemporaryFile
with TemporaryFile('w+') as fobj:
fobj.write("Life is cool.\n")
fobj.seek(0) # seek to the beginning
data = fobj.read()
print (data)
## pyserial serial port access library
'''
Controlling hardware device like robot, sensor
by using serial port
https://github.com/pyserial/pyserial
'''
## Serialize python object to a byte stream
import pickle
dict_data = {'name':'Ahsan', 'country':'Bangladesh'}
# serialize_data = pickle.dumps(dict_data)
with open ('data/serialize', 'wb') as fobj:
pickle.dump(dict_data, fobj)
with open ('data/serialize', 'rb') as fobj:
dict_data = pickle.load(fobj)
print ( dict_data )
print()
## CSV file read
import csv
with open('data/expense.csv', 'r') as fobj:
fcsv = csv.reader(fobj)
sum = 0
for i, row in enumerate(fcsv):
print (i, row[0], row[1])
sum += int(row[1]) if i > 0 else 0
print ("Total Cost: ", sum)
'''
https://docs.python.org/3/library/csv.html
http://pandas.pydata.org
Pandas has pandas.read_csv() function to load CSV data to a DataFrame object.
'''
## CSV file write
list_items = [["name", 'age', 'country'],
['Bill Gates', 55, 'US'],
['Mark Zuckerberg', 34, 'US'],
['Swift', 35, 'Canada']
]
import csv
with open('data/people.csv', 'w') as fobj:
fcsv = csv.writer(fobj)
fcsv.writerows(list_items)
print()
## JSON Data Encode and Decode
'''
JSON (JavaScript Object Notation) is a common standard to exchange data between server and client in web application.
'''
import json
data = {
'name' : 'Bill Gates',
'age' : 55,
'country' : 'US',
'is_retired': True
}
json_encoded_str = json.dumps(data)
print(json_encoded_str)
json_decode = json.loads(json_encoded_str)
print(json_decode)
### Dumping data in file and load from file
with open('data/json_data.json', 'w') as fobj:
json.dump(data, fobj)
with open('data/json_data.json', 'r') as fobj:
json_data = json.load(fobj)
print (json_data)
| 0 | 0 | 0 |
3e3c54cdb703d3ef42b7087e51bdaa42632a5cbb | 360 | py | Python | src/services/ThresholdController/TestingServices/FakeSchedule.py | IAPark/PITherm | a334cb0843b1961997aa90e45671d556be91380f | [
"MIT"
] | null | null | null | src/services/ThresholdController/TestingServices/FakeSchedule.py | IAPark/PITherm | a334cb0843b1961997aa90e45671d556be91380f | [
"MIT"
] | null | null | null | src/services/ThresholdController/TestingServices/FakeSchedule.py | IAPark/PITherm | a334cb0843b1961997aa90e45671d556be91380f | [
"MIT"
] | null | null | null | from flask import Flask
from flask import json
from multiprocessing import Queue
responses_ = Queue()
port = 4001
app = Flask(__name__)
@app.route("/state/<int:time>")
| 17.142857 | 41 | 0.716667 | from flask import Flask
from flask import json
from multiprocessing import Queue
responses_ = Queue()
port = 4001
app = Flask(__name__)
@app.route("/state/<int:time>")
def state(time: int):
global responses_
return json.jsonify(responses_.get())
def run(responses: Queue,):
global responses_
responses_ = responses
app.run(port=port)
| 142 | 0 | 45 |
d1fc830663f4626f0851f21db7dea2f0175a03fc | 15,819 | py | Python | portable_spreadsheet/cell_slice.py | david-salac/Portable-spreadsheet-generator | ca31b1e77f26b77ab2ca4d328b12e3cf14c8a029 | [
"MIT"
] | 28 | 2020-05-17T18:42:07.000Z | 2021-06-01T14:58:22.000Z | portable_spreadsheet/cell_slice.py | david-salac/Portable-spreadsheet-generator | ca31b1e77f26b77ab2ca4d328b12e3cf14c8a029 | [
"MIT"
] | 3 | 2020-08-19T21:28:17.000Z | 2021-01-10T20:00:56.000Z | portable_spreadsheet/cell_slice.py | david-salac/Portable-spreadsheet-generator | ca31b1e77f26b77ab2ca4d328b12e3cf14c8a029 | [
"MIT"
] | 4 | 2020-10-10T12:15:40.000Z | 2021-11-08T02:08:34.000Z | from numbers import Number
from typing import Iterable, Tuple, Union, List, Optional
import copy
import numpy as np
from .cell import Cell
from .cell_indices import CellIndices
from .serialization import Serialization
# Acceptable values for the slice
T_slice = Union[np.ndarray,
List[Number], List[str], List[Cell],
str, Number, Cell]
class CellSlice(Serialization):
"""Encapsulate aggregating functionality and setting of the slices.
Attributes:
start_idx (Tuple[int, int]): Integer position of the starting cell
inside the spreadsheet. Top left cell of the slice.
end_idx (Tuple[int, int]): Integer position of the ending cell
inside the spreadsheet. Bottom right cell of the slice.
start_cell (Cell): Top left cell of the slice.
end_cell (Cell): Bottom right cell of the slice.
cell_subset (Iterable[Cell]): The list of all cells in the slice.
driving_sheet (Sheet): Reference to the spreadsheet.
"""
def __init__(self,
start_idx: Tuple[int, int],
end_idx: Tuple[int, int],
cell_subset: Iterable[Cell],
driving_sheet
):
"""Create a cell slice from the spreadsheet.
Args:
start_idx (Tuple[int, int]): Integer position of the starting cell
inside the spreadsheet. Top left cell of the slice.
end_idx (Tuple[int, int]): Integer position of the ending cell
inside the spreadsheet. Bottom right cell of the slice.
cell_subset (Iterable[Cell]): The list of all cells in the slice.
driving_sheet (Sheet): Reference to the spreadsheet.
"""
# Initialise functionality for serialization:
super().__init__(export_offset=start_idx,
warning_logger=driving_sheet.warning_logger,
export_subset=True)
self.start_idx: Tuple[int, int] = start_idx
self.end_idx: Tuple[int, int] = end_idx
self.start_cell: Cell = driving_sheet.iloc[start_idx]
self.end_cell: Cell = driving_sheet.iloc[end_idx]
self.cell_subset: Iterable[Cell] = cell_subset
self.driving_sheet = driving_sheet
def sum(self, skip_none_cell: bool = True) -> Cell:
"""Compute the sum of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.sum(self.start_cell, self.end_cell, cell_subset)
def product(self, skip_none_cell: bool = True) -> Cell:
"""Compute the product of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.product(self.start_cell, self.end_cell, cell_subset)
def min(self, skip_none_cell: bool = True) -> Cell:
"""Find the minimum of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.min(self.start_cell, self.end_cell, cell_subset)
def max(self, skip_none_cell: bool = True) -> Cell:
"""Find the maximum of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.max(self.start_cell, self.end_cell, cell_subset)
def mean(self, skip_none_cell: bool = True) -> Cell:
"""Compute the mean-average of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.mean(self.start_cell, self.end_cell, cell_subset)
def average(self, skip_none_cell: bool = True) -> Cell:
"""Compute the mean-average of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
return self.mean(skip_none_cell=skip_none_cell)
def stdev(self, skip_none_cell: bool = True) -> Cell:
"""Compute the standard deviation of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.stdev(self.start_cell, self.end_cell, cell_subset)
def median(self, skip_none_cell: bool = True) -> Cell:
"""Compute the median of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.median(self.start_cell, self.end_cell, cell_subset)
def count(self, skip_none_cell: bool = True) -> Cell:
"""Compute the number of items in the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.count(self.start_cell, self.end_cell, cell_subset)
def irr(self, skip_none_cell: bool = True) -> Cell:
"""Compute the Internal Rate of Return (IRR) of items in the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.irr(self.start_cell, self.end_cell, cell_subset)
def match_negative_before_positive(self,
skip_none_cell: bool = True) -> Cell:
"""Find the position of the last negative number in the series that
is located just before the first non-negative number.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: Return the position of the negative number in a series that
is located just before the first positive number (or zero).
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.match_negative_before_positive(self.start_cell,
self.end_cell, cell_subset)
@property
def excel_format(self):
"""Should not be accessible for slides."""
raise NotImplementedError
@excel_format.setter
def excel_format(self, new_format: dict):
"""Set the Excel cell format/style.
Read the documentation: https://xlsxwriter.readthedocs.io/format.html
Args:
new_format (dict): New format definition.
"""
if not isinstance(new_format, dict):
raise ValueError("New format has to be a dictionary!")
for row in range(self.start_idx[0], self.end_idx[0] + 1):
for col in range(self.start_idx[1],
self.end_idx[1] + 1):
self.driving_sheet.iloc[row, col].excel_format = new_format
@property
def description(self) -> Optional[str]:
"""Not implementable.
"""
raise NotImplementedError
@description.setter
def description(self, new_description: Optional[str]):
"""Set the cell description.
Args:
new_description (Optional[str]): description of the cell.
"""
if (new_description is not None
and not isinstance(new_description, str)):
raise ValueError("Cell description has to be a string value!")
for row in range(self.start_idx[0], self.end_idx[0] + 1):
for col in range(self.start_idx[1],
self.end_idx[1] + 1):
self.driving_sheet.iloc[row, col].description = new_description
def _set_value_on_position(self, other: Union[Cell, Number],
row: int, col: int) -> None:
"""Set the cell on given position in the spreadsheet to the value
'other'.
Args:
other (Union[Cell, Number]): new value to be set.
row (int): the row integer position in the spreadsheet (indexed
from 0).
col (int): the column integer position in the spreadsheet (indexed
from 0).
"""
if isinstance(other, Cell):
if other.anchored:
_value = Cell.reference(other)
elif other.is_variable:
# Set value
_value = Cell.variable(other)
# Anchor it:
_value.coordinates = (row, col)
else:
# Create a deep copy
_value = copy.deepcopy(other)
# Anchor it:
_value.coordinates = (row, col)
self.driving_sheet.iloc[row, col] = _value
else:
# Call the external logic to manage the same
self.driving_sheet.iloc[row, col] = other
# Set to scalar / Other cells:
def set(self, other: T_slice) -> None:
"""Set all the values in the slice to the new one (or the list of
values).
Args:
other: Union[np.ndarray, List[Number], List[Cell], Number, Cell]:
Some value or list (or numpy array) of values that should be
set for all the cells inside slice.
"""
if isinstance(other, (np.ndarray, list, tuple)):
dim_match = True
is_list = True
is_1d = False
by_row = self.shape[0] > self.shape[1]
if hasattr(other, "shape"):
dim_match = other.shape == self.shape
is_list = False
is_1d = len(other.shape) == 1
if is_1d:
dim_match = max(other.shape) == max(self.shape)
else:
is_list = True
if min(self.shape) == 1:
dim_match = len(other) == max(self.shape)
is_1d = True
if not dim_match:
raise ValueError("Shape of the input does not match to the "
"shape of the slice!")
if is_1d:
col = self.start_idx[1]
row = self.start_idx[0]
for val in other:
self._set_value_on_position(val, row, col)
if by_row:
row += 1
else:
col += 1
else:
# If is N-dimensional
for row in range(self.start_idx[0], self.end_idx[0] + 1):
for col in range(self.start_idx[1],
self.end_idx[1] + 1):
if is_list:
val = other[row - self.start_idx[0]][
col - self.start_idx[1]
]
else:
val = other[
row - self.start_idx[0],
col - self.start_idx[1]
]
self._set_value_on_position(val, row, col)
else:
for row in range(self.start_idx[0], self.end_idx[0] + 1):
for col in range(self.start_idx[1], self.end_idx[1] + 1):
# Set the right values
self._set_value_on_position(other, row, col)
def __ilshift__(self, other: T_slice):
"""Overrides operator <<= to do a set functionality.
"""
self.set(other)
# ==== OVERRIDE ABSTRACT METHODS AND PROPERTIES OF SERIALIZATION CLASS ====
@Serialization.shape.getter
def shape(self) -> Tuple[int, int]:
"""Return the shape of the sheet in the NumPy logic.
Returns:
Tuple[int]: Number of rows, Number of columns
"""
return (self.end_idx[0] - self.start_idx[0] + 1,
self.end_idx[1] - self.start_idx[1] + 1)
@Serialization.cell_indices.getter
def cell_indices(self) -> CellIndices:
"""Get the cell indices.
Returns:
CellIndices: Cell indices of the spreadsheet.
"""
return self.driving_sheet._cell_indices
def _get_cell_at(self, row: int, column: int) -> 'Cell':
"""Get the particular cell on the (row, column) position.
Returns:
Cell: The call on given position.
"""
return self.driving_sheet.iloc[self.start_idx[0] + row,
self.start_idx[1] + column]
def _get_variables(self):
"""Return the sheet variables as _SheetVariables object.
Returns:
_SheetVariables: Sheet variables.
"""
return self.driving_sheet.var
# =========================================================================
| 37.935252 | 79 | 0.554081 | from numbers import Number
from typing import Iterable, Tuple, Union, List, Optional
import copy
import numpy as np
from .cell import Cell
from .cell_indices import CellIndices
from .serialization import Serialization
# Acceptable values for the slice
T_slice = Union[np.ndarray,
List[Number], List[str], List[Cell],
str, Number, Cell]
class CellSlice(Serialization):
"""Encapsulate aggregating functionality and setting of the slices.
Attributes:
start_idx (Tuple[int, int]): Integer position of the starting cell
inside the spreadsheet. Top left cell of the slice.
end_idx (Tuple[int, int]): Integer position of the ending cell
inside the spreadsheet. Bottom right cell of the slice.
start_cell (Cell): Top left cell of the slice.
end_cell (Cell): Bottom right cell of the slice.
cell_subset (Iterable[Cell]): The list of all cells in the slice.
driving_sheet (Sheet): Reference to the spreadsheet.
"""
def __init__(self,
start_idx: Tuple[int, int],
end_idx: Tuple[int, int],
cell_subset: Iterable[Cell],
driving_sheet
):
"""Create a cell slice from the spreadsheet.
Args:
start_idx (Tuple[int, int]): Integer position of the starting cell
inside the spreadsheet. Top left cell of the slice.
end_idx (Tuple[int, int]): Integer position of the ending cell
inside the spreadsheet. Bottom right cell of the slice.
cell_subset (Iterable[Cell]): The list of all cells in the slice.
driving_sheet (Sheet): Reference to the spreadsheet.
"""
# Initialise functionality for serialization:
super().__init__(export_offset=start_idx,
warning_logger=driving_sheet.warning_logger,
export_subset=True)
self.start_idx: Tuple[int, int] = start_idx
self.end_idx: Tuple[int, int] = end_idx
self.start_cell: Cell = driving_sheet.iloc[start_idx]
self.end_cell: Cell = driving_sheet.iloc[end_idx]
self.cell_subset: Iterable[Cell] = cell_subset
self.driving_sheet = driving_sheet
def sum(self, skip_none_cell: bool = True) -> Cell:
"""Compute the sum of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.sum(self.start_cell, self.end_cell, cell_subset)
def product(self, skip_none_cell: bool = True) -> Cell:
"""Compute the product of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.product(self.start_cell, self.end_cell, cell_subset)
def min(self, skip_none_cell: bool = True) -> Cell:
"""Find the minimum of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.min(self.start_cell, self.end_cell, cell_subset)
def max(self, skip_none_cell: bool = True) -> Cell:
"""Find the maximum of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.max(self.start_cell, self.end_cell, cell_subset)
def mean(self, skip_none_cell: bool = True) -> Cell:
"""Compute the mean-average of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.mean(self.start_cell, self.end_cell, cell_subset)
def average(self, skip_none_cell: bool = True) -> Cell:
"""Compute the mean-average of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
return self.mean(skip_none_cell=skip_none_cell)
def stdev(self, skip_none_cell: bool = True) -> Cell:
"""Compute the standard deviation of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.stdev(self.start_cell, self.end_cell, cell_subset)
def median(self, skip_none_cell: bool = True) -> Cell:
"""Compute the median of the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.median(self.start_cell, self.end_cell, cell_subset)
def count(self, skip_none_cell: bool = True) -> Cell:
"""Compute the number of items in the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.count(self.start_cell, self.end_cell, cell_subset)
def irr(self, skip_none_cell: bool = True) -> Cell:
"""Compute the Internal Rate of Return (IRR) of items in the aggregate.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: a new cell with the result.
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.irr(self.start_cell, self.end_cell, cell_subset)
def match_negative_before_positive(self,
skip_none_cell: bool = True) -> Cell:
"""Find the position of the last negative number in the series that
is located just before the first non-negative number.
Args:
skip_none_cell (bool): If true, skips all the cells with None as
a value (and does not raise exception).
Returns:
Cell: Return the position of the negative number in a series that
is located just before the first positive number (or zero).
"""
if skip_none_cell:
cell_subset = [nn_cell for nn_cell in self.cell_subset
if nn_cell.value is not None]
else:
cell_subset = self.cell_subset
return Cell.match_negative_before_positive(self.start_cell,
self.end_cell, cell_subset)
@property
def excel_format(self):
"""Should not be accessible for slides."""
raise NotImplementedError
@excel_format.setter
def excel_format(self, new_format: dict):
"""Set the Excel cell format/style.
Read the documentation: https://xlsxwriter.readthedocs.io/format.html
Args:
new_format (dict): New format definition.
"""
if not isinstance(new_format, dict):
raise ValueError("New format has to be a dictionary!")
for row in range(self.start_idx[0], self.end_idx[0] + 1):
for col in range(self.start_idx[1],
self.end_idx[1] + 1):
self.driving_sheet.iloc[row, col].excel_format = new_format
@property
def description(self) -> Optional[str]:
"""Not implementable.
"""
raise NotImplementedError
@description.setter
def description(self, new_description: Optional[str]):
"""Set the cell description.
Args:
new_description (Optional[str]): description of the cell.
"""
if (new_description is not None
and not isinstance(new_description, str)):
raise ValueError("Cell description has to be a string value!")
for row in range(self.start_idx[0], self.end_idx[0] + 1):
for col in range(self.start_idx[1],
self.end_idx[1] + 1):
self.driving_sheet.iloc[row, col].description = new_description
def _set_value_on_position(self, other: Union[Cell, Number],
row: int, col: int) -> None:
"""Set the cell on given position in the spreadsheet to the value
'other'.
Args:
other (Union[Cell, Number]): new value to be set.
row (int): the row integer position in the spreadsheet (indexed
from 0).
col (int): the column integer position in the spreadsheet (indexed
from 0).
"""
if isinstance(other, Cell):
if other.anchored:
_value = Cell.reference(other)
elif other.is_variable:
# Set value
_value = Cell.variable(other)
# Anchor it:
_value.coordinates = (row, col)
else:
# Create a deep copy
_value = copy.deepcopy(other)
# Anchor it:
_value.coordinates = (row, col)
self.driving_sheet.iloc[row, col] = _value
else:
# Call the external logic to manage the same
self.driving_sheet.iloc[row, col] = other
# Set to scalar / Other cells:
def set(self, other: T_slice) -> None:
"""Set all the values in the slice to the new one (or the list of
values).
Args:
other: Union[np.ndarray, List[Number], List[Cell], Number, Cell]:
Some value or list (or numpy array) of values that should be
set for all the cells inside slice.
"""
if isinstance(other, (np.ndarray, list, tuple)):
dim_match = True
is_list = True
is_1d = False
by_row = self.shape[0] > self.shape[1]
if hasattr(other, "shape"):
dim_match = other.shape == self.shape
is_list = False
is_1d = len(other.shape) == 1
if is_1d:
dim_match = max(other.shape) == max(self.shape)
else:
is_list = True
if min(self.shape) == 1:
dim_match = len(other) == max(self.shape)
is_1d = True
if not dim_match:
raise ValueError("Shape of the input does not match to the "
"shape of the slice!")
if is_1d:
col = self.start_idx[1]
row = self.start_idx[0]
for val in other:
self._set_value_on_position(val, row, col)
if by_row:
row += 1
else:
col += 1
else:
# If is N-dimensional
for row in range(self.start_idx[0], self.end_idx[0] + 1):
for col in range(self.start_idx[1],
self.end_idx[1] + 1):
if is_list:
val = other[row - self.start_idx[0]][
col - self.start_idx[1]
]
else:
val = other[
row - self.start_idx[0],
col - self.start_idx[1]
]
self._set_value_on_position(val, row, col)
else:
for row in range(self.start_idx[0], self.end_idx[0] + 1):
for col in range(self.start_idx[1], self.end_idx[1] + 1):
# Set the right values
self._set_value_on_position(other, row, col)
def __ilshift__(self, other: T_slice):
"""Overrides operator <<= to do a set functionality.
"""
self.set(other)
# ==== OVERRIDE ABSTRACT METHODS AND PROPERTIES OF SERIALIZATION CLASS ====
@Serialization.shape.getter
def shape(self) -> Tuple[int, int]:
"""Return the shape of the sheet in the NumPy logic.
Returns:
Tuple[int]: Number of rows, Number of columns
"""
return (self.end_idx[0] - self.start_idx[0] + 1,
self.end_idx[1] - self.start_idx[1] + 1)
@Serialization.cell_indices.getter
def cell_indices(self) -> CellIndices:
"""Get the cell indices.
Returns:
CellIndices: Cell indices of the spreadsheet.
"""
return self.driving_sheet._cell_indices
def _get_cell_at(self, row: int, column: int) -> 'Cell':
"""Get the particular cell on the (row, column) position.
Returns:
Cell: The call on given position.
"""
return self.driving_sheet.iloc[self.start_idx[0] + row,
self.start_idx[1] + column]
def _get_variables(self):
"""Return the sheet variables as _SheetVariables object.
Returns:
_SheetVariables: Sheet variables.
"""
return self.driving_sheet.var
# =========================================================================
| 0 | 0 | 0 |
03afcc1023649b896ec4f37fc2b3a99fcc1a2bca | 2,546 | py | Python | radiaTest-worker/worker/utils/bash.py | openeuler-mirror/radiaTest | 4a067511d6ab69f76b8dc08667b8a1f8c1c73d23 | [
"MulanPSL-1.0"
] | null | null | null | radiaTest-worker/worker/utils/bash.py | openeuler-mirror/radiaTest | 4a067511d6ab69f76b8dc08667b8a1f8c1c73d23 | [
"MulanPSL-1.0"
] | 1 | 2022-03-23T06:53:25.000Z | 2022-03-23T06:53:25.000Z | radiaTest-worker/worker/utils/bash.py | openeuler-mirror/radiaTest | 4a067511d6ab69f76b8dc08667b8a1f8c1c73d23 | [
"MulanPSL-1.0"
] | null | null | null | from shlex import quote
from subprocess import getoutput, getstatusoutput
# from flask import current_app
| 31.04878 | 154 | 0.516104 | from shlex import quote
from subprocess import getoutput, getstatusoutput
# from flask import current_app
def install_base(body, storage_pool):
fixed_mac = ""
if body.get("mac"):
fixed_mac = ",mac={}".format(quote(body.get("mac")))
controller = ""
if body.get("frame") == "aarch64":
controller = "--controller type=pci,model=pcie-root-port,index=50"
cmd = (
"virt-install --os-type generic --name {} --memory {} --vcpus {},sockets={},cores={},threads={} --cpu={} --disk path={}/{}.qcow2,bus={} ".format(
quote(body.get("name")),
quote(str(body.get("memory"))),
quote(
str(
int(body.get("sockets"))
* int(body.get("cores"))
* int(body.get("threads"))
)
),
quote(str(body.get("sockets"))),
quote(str(body.get("cores"))),
quote(str(body.get("threads"))),
quote(body.get("cpu_mode")),
quote(storage_pool.replace("/$", "")),
quote(body.get("name")),
quote(body.get("disk_bus")),
)
+ " --network {}={},model={}".format(
quote(body.get("net_mode")),
getoutput(" virsh iface-list | sed '1,2d' | awk '{print $1}' | head -1"),
quote(body.get("net_bus")),
)
+ fixed_mac
+ " --video={} --noautoconsole --graphics vnc,listen={} --check path_in_use=1 --os-variant unknown {} ".format(
quote(body.get("video_bus")),
quote(body.get("host")),
controller,
)
)
return cmd
def get_bridge_source():
return "virsh iface-list | sed '1,2d;/^$/d' | grep -v '^ lo' | awk '{print $1}' | shuf -n1"
def get_network_source():
return "virsh net-list | sed '1,2d;/^$/d' | awk '{print $1}' | shuf -n 1"
def rm_disk_image(name, storage_pool):
return getoutput(
"rm -rf {}/{}.qcow2".format(
quote(storage_pool),
quote(name),
)
)
def domain_cli(act, name):
return getstatusoutput("virsh {} {}".format(quote(act), quote(name)))
def domain_state(name):
return getstatusoutput(
"export LANG=en_US.UTF-8 && virsh list --all | grep {} | awk -F '{}' ".format(
quote(name), quote(name)
)
+ " '{print $NF}' | sed 's/^ *//;s/ *$//' "
)
def undefine_domain(name):
return getstatusoutput(
"virsh undefine --nvram --remove-all-storage {}".format(quote(name))
) | 2,273 | 0 | 161 |
0eff813d270b63670413294208f76ac98ecc73aa | 2,025 | py | Python | pyutilib/misc/twzzle.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 24 | 2016-04-02T10:00:02.000Z | 2021-03-02T16:40:18.000Z | pyutilib/misc/twzzle.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 105 | 2015-10-29T03:29:58.000Z | 2021-12-30T22:00:45.000Z | pyutilib/misc/twzzle.py | PyUtilib/PyUtilib | d99406f2af1fb62268c34453a2fbe6bd4a7348f0 | [
"BSD-3-Clause"
] | 22 | 2016-01-21T15:35:25.000Z | 2021-05-15T20:17:44.000Z | # _________________________________________________________________________
#
# PyUtilib: A Python utility library.
# Copyright (c) 2008 Sandia Corporation.
# This software is distributed under the BSD License.
# Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
# the U.S. Government retains certain rights in this software.
# _________________________________________________________________________
#
# Class to encapsulate a progress indicator
__all__ = ['progress']
import sys
import time
import unittest
class progressException(Exception):
'Error to raise for any recursive problem.'
if __name__ == '__main__':
widgetTestSuite = unittest.TestSuite()
widgetTestSuite.addTest(TestCase("testProgress"))
runner = unittest.TextTestRunner()
runner.run(widgetTestSuite)
| 26.298701 | 76 | 0.607407 | # _________________________________________________________________________
#
# PyUtilib: A Python utility library.
# Copyright (c) 2008 Sandia Corporation.
# This software is distributed under the BSD License.
# Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
# the U.S. Government retains certain rights in this software.
# _________________________________________________________________________
#
# Class to encapsulate a progress indicator
__all__ = ['progress']
import sys
import time
import unittest
class progressException(Exception):
'Error to raise for any recursive problem.'
class progress:
def __init__(self, period=1):
self._twissler = ["|", "/", "-", "\\", "|"]
self._state = 0
self._period = period
self._ctr = period
def getStart(self):
sys.stdout.write('\t[ ') # include 2 spaces for the twissler
sys.stdout.flush()
def getStart(self, text):
sys.stdout.write('\t %s [ ' %
(text)) # include 2 spaces for the twissler
sys.stdout.flush()
def moveOn(self):
try:
self._ctr += 1
if self._ctr <= self._period:
return
self._ctr = 1
self._state += 1
if self._state >= 5:
self._state = 1
sys.stdout.write(
chr(8) + chr(8) + self._twissler[self._state] + ']')
sys.stdout.flush()
except:
raise progressException('failed to progress')
class TestCase(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def testProgress(self):
p = progress()
p.getStart("HERE")
for a in range(0, 10, 1):
p.moveOn()
time.sleep(0.2)
if __name__ == '__main__':
widgetTestSuite = unittest.TestSuite()
widgetTestSuite.addTest(TestCase("testProgress"))
runner = unittest.TextTestRunner()
runner.run(widgetTestSuite)
| 958 | 7 | 235 |
980e573908e89dde46aaea141c146ea143777822 | 827 | py | Python | performance-storage-service/pss_project/api/serializers/rest/metrics/IncrementalMetricsSerializer.py | cmu-db/noisepage-stats | d61a0e143904748b3f7f43628a5b29769a5c9cf8 | [
"MIT"
] | 23 | 2020-12-22T20:19:51.000Z | 2021-11-24T06:11:01.000Z | performance-storage-service/pss_project/api/serializers/rest/metrics/IncrementalMetricsSerializer.py | cmu-db/noisepage-test | d61a0e143904748b3f7f43628a5b29769a5c9cf8 | [
"MIT"
] | 13 | 2020-06-05T22:36:49.000Z | 2020-11-10T16:25:04.000Z | performance-storage-service/pss_project/api/serializers/rest/metrics/IncrementalMetricsSerializer.py | cmu-db/noisepage-test | d61a0e143904748b3f7f43628a5b29769a5c9cf8 | [
"MIT"
] | 2 | 2020-06-08T18:03:34.000Z | 2020-10-06T18:01:35.000Z | from rest_framework.serializers import Serializer, DecimalField, IntegerField
from pss_project.api.serializers.rest.metrics.LatencyMetricsSerializer \
import LatencyMetricsSerializer
from pss_project.api.models.rest.metrics.IncrementalMetrics \
import IncrementalMetrics
from pss_project.api.serializers.rest.metrics.MemoryMetricsSerializer \
import MemoryMetricsSerializer
| 39.380952 | 77 | 0.754534 | from rest_framework.serializers import Serializer, DecimalField, IntegerField
from pss_project.api.serializers.rest.metrics.LatencyMetricsSerializer \
import LatencyMetricsSerializer
from pss_project.api.models.rest.metrics.IncrementalMetrics \
import IncrementalMetrics
from pss_project.api.serializers.rest.metrics.MemoryMetricsSerializer \
import MemoryMetricsSerializer
class IncrementalMetricsSerializer(Serializer):
# Fields
time = IntegerField()
throughput = DecimalField(max_digits=24,
decimal_places=15,
coerce_to_string=False)
latency = LatencyMetricsSerializer(required=False)
memory_info = MemoryMetricsSerializer(required=False)
def create(self, validated_data):
return IncrementalMetrics(**validated_data)
| 64 | 353 | 23 |
c59a57fdb4853653342c36c7a372a1ad6827770f | 2,673 | py | Python | fsttest/_test_case.py | eddieantonio/fsttest | 8ff71a9aa41a70a30832fa219b72e7478872c16f | [
"MIT"
] | null | null | null | fsttest/_test_case.py | eddieantonio/fsttest | 8ff71a9aa41a70a30832fa219b72e7478872c16f | [
"MIT"
] | 1 | 2020-01-27T21:43:04.000Z | 2020-01-28T15:57:05.000Z | fsttest/_test_case.py | eddieantonio/fsttest | 8ff71a9aa41a70a30832fa219b72e7478872c16f | [
"MIT"
] | 1 | 2021-04-26T17:46:19.000Z | 2021-04-26T17:46:19.000Z | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from pathlib import Path
from typing import Any, Dict, List, Optional, Union
from ._fst import FST
from ._results import FailedTestResult, PassedTestResult
from .exceptions import TestCaseDefinitionError
class TestCase:
"""
An executable test case.
"""
@staticmethod
def from_description(
raw_test_case: Dict[str, Any], location: Optional[Path] = None
) -> "TestCase":
"""
Given a dictionary, parses and returns an executable test case.
"""
# Parse a few things
if "expect" not in raw_test_case:
raise TestCaseDefinitionError('Missing "expect" in test case')
raw_expected = raw_test_case["expect"]
if isinstance(raw_expected, str):
expected = [raw_expected]
elif isinstance(raw_expected, list):
if len(raw_expected) == 0:
raise TestCaseDefinitionError(
"Must provide at least one expected transduction"
)
expected = raw_expected
else:
raise TestCaseDefinitionError(
'"expect" MUST be either a single string or a list of strings;'
f"instead got {raw_expected!r}"
)
if "upper" in raw_test_case:
direction = "down"
fst_input = raw_test_case["upper"]
elif "lower" in raw_test_case:
direction = "up"
fst_input = raw_test_case["lower"]
else:
raise TestCaseDefinitionError('Missing "upper" or "lower" in test case')
return TestCase(fst_input, expected, direction, location)
| 33.835443 | 88 | 0.606061 | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
from pathlib import Path
from typing import Any, Dict, List, Optional, Union
from ._fst import FST
from ._results import FailedTestResult, PassedTestResult
from .exceptions import TestCaseDefinitionError
class TestCase:
"""
An executable test case.
"""
def __init__(
self, input_: str, expected: List[str], direction: str, location: Optional[Path]
):
self.input = input_
self.expected = expected
self.direction = direction
self.location = location
def execute(self, fst: FST) -> Union[PassedTestResult, FailedTestResult]:
transductions = fst.apply([self.input], direction=self.direction)
assert (
self.input in transductions
), f"Expected to find {self.input} in {transductions}"
actual_transductions = transductions[self.input]
assert len(self.expected) >= 1, "Must have at least on expected output"
if set(self.expected) <= set(actual_transductions):
return PassedTestResult(location=self.location)
else:
return FailedTestResult(
given=self.input,
expected=self.expected,
actual=actual_transductions,
location=self.location,
)
@staticmethod
def from_description(
raw_test_case: Dict[str, Any], location: Optional[Path] = None
) -> "TestCase":
"""
Given a dictionary, parses and returns an executable test case.
"""
# Parse a few things
if "expect" not in raw_test_case:
raise TestCaseDefinitionError('Missing "expect" in test case')
raw_expected = raw_test_case["expect"]
if isinstance(raw_expected, str):
expected = [raw_expected]
elif isinstance(raw_expected, list):
if len(raw_expected) == 0:
raise TestCaseDefinitionError(
"Must provide at least one expected transduction"
)
expected = raw_expected
else:
raise TestCaseDefinitionError(
'"expect" MUST be either a single string or a list of strings;'
f"instead got {raw_expected!r}"
)
if "upper" in raw_test_case:
direction = "down"
fst_input = raw_test_case["upper"]
elif "lower" in raw_test_case:
direction = "up"
fst_input = raw_test_case["lower"]
else:
raise TestCaseDefinitionError('Missing "upper" or "lower" in test case')
return TestCase(fst_input, expected, direction, location)
| 946 | 0 | 54 |
84a25250ddea53d73b4571ee50268f072bd9f331 | 1,073 | py | Python | 2019/d19.py | max-f/advent-of-code | 3c0ee995f7c0691418ecb86cbfa201b3d03131b8 | [
"MIT"
] | null | null | null | 2019/d19.py | max-f/advent-of-code | 3c0ee995f7c0691418ecb86cbfa201b3d03131b8 | [
"MIT"
] | null | null | null | 2019/d19.py | max-f/advent-of-code | 3c0ee995f7c0691418ecb86cbfa201b3d03131b8 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import copy
from collections import deque, defaultdict
from utils.intcode import Machine
from utils.utils import get_input, ints
if __name__ == "__main__":
main()
| 21.897959 | 60 | 0.615098 | #!/usr/bin/env python
import copy
from collections import deque, defaultdict
from utils.intcode import Machine
from utils.utils import get_input, ints
def part1(intcode) -> int:
total_affected = 0
for y in range(50):
for x in range(50):
pos_in = position_in_beam(intcode, x, y)
total_affected += pos_in
return total_affected
def part2(intcode, n=100) -> int:
x = 100
y = 100
while not position_in_beam(intcode, x + (n - 1), y):
y += 1
while not position_in_beam(intcode, x, y + (n - 1)):
x += 1
return x * 10000 + y
def position_in_beam(intcode, x, y):
machine = Machine(0, copy.copy(intcode), deque(), 0)
machine.inputs.append(x)
machine.inputs.append(y)
return bool(machine.run()[-1][0])
def main():
input_txt = get_input(19)
int_code_list = ints(input_txt)
code = defaultdict(int, enumerate(int_code_list))
p1 = part1(code)
print(f"Part 1: {p1}")
p2 = part2(code)
print(f"Part 2: {p2}")
if __name__ == "__main__":
main()
| 784 | 0 | 92 |
fe04686535636400f725184e167933f807600954 | 13,763 | py | Python | src/core/task.py | gaotuan/Yearning-1.2.0_me | 8b4a1a443abc39a638931907599b9306fc92531c | [
"Apache-2.0"
] | 1 | 2020-06-05T06:17:48.000Z | 2020-06-05T06:17:48.000Z | src/core/task.py | gaotuan/Yearning-1.2.0_me | 8b4a1a443abc39a638931907599b9306fc92531c | [
"Apache-2.0"
] | 5 | 2020-04-17T03:38:08.000Z | 2020-04-17T03:39:26.000Z | src/core/task.py | gaotuan/SQL-Manager | 8b4a1a443abc39a638931907599b9306fc92531c | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, unicode_literals
import logging
import functools
import threading
import time
from django.http import HttpResponse
from libs import send_email, util
from libs import call_inception
from .models import (
Usermessage,
DatabaseList,
Account,
globalpermissions,
SqlOrder,
SqlRecord,
grained
)
from core.models import Account
from core.utils.send_feishu_mess import send_msg as fs_send_msg
CUSTOM_ERROR = logging.getLogger('Yearning.core.views')
def grained_permissions(func):
'''
:argument 装饰器函数,校验细化权限。非法请求直接返回401交由前端判断状态码
'''
@functools.wraps(func)
return wrapper
class order_push_message(threading.Thread):
'''
:argument 同意执行工单调用该方法异步处理数据
'''
def execute(self):
'''
:argument 将获得的sql语句提交给inception执行并将返回结果写入SqlRecord表,最后更改该工单SqlOrder表中的status
:param
self.order
self.id
:return: none
'''
time.sleep(self.order.delay * 60)
try:
detail = DatabaseList.objects.filter(id=self.order.bundle_id).first()
with call_inception.Inception(
LoginDic={
'host': detail.ip,
'user': detail.username,
'password': detail.password,
'db': self.order.basename,
'port': detail.port
}
) as f:
res = f.Execute(sql=self.order.sql, backup=self.order.backup)
for i in res:
if i['errlevel'] != 0:
SqlOrder.objects.filter(work_id=self.order.work_id).update(status=4)
SqlRecord.objects.get_or_create(
state=i['stagestatus'],
sql=i['sql'],
error=i['errormessage'],
workid=self.order.work_id,
affectrow=i['affected_rows'],
sequence=i['sequence'],
execute_time=i['execute_time'],
SQLSHA1=i['SQLSHA1'],
backup_dbname=i['backup_dbname']
)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--邮箱推送失败: {e}')
finally:
status = SqlOrder.objects.filter(work_id=self.order.work_id).first()
if status.status != 4:
SqlOrder.objects.filter(id=self.id).update(status=1)
def agreed(self):
'''
:argument 将执行的结果通过站内信,email,dingding 发送
:param self.from_user
self.to_user
self.title
self.order
self.addr_ip
:return: none
'''
t = threading.Thread(target=order_push_message.con_close, args=(self,))
t.start()
t.join()
class rejected_push_messages(threading.Thread):
'''
:argument 驳回工单调用该方法异步处理数据
'''
def execute(self):
'''
:argument 更改该工单SqlOrder表中的status
:param
self._tmpData
self.addr_ip
self.text
self.to_user
:return: none
'''
content = DatabaseList.objects.filter(id=self._tmpData['bundle_id']).first()
mail = Account.objects.filter(username=self.to_user).first()
tag = globalpermissions.objects.filter(authorization='global').first()
if tag.message['ding']:
try:
if content.url:
util.dingding(
content='工单驳回通知\n工单编号:%s\n发起人:%s\n操作人:%s\n地址:%s\n驳回说明:%s\n状态:驳回'
% (self._tmpData['work_id'], self.to_user,self.from_user, self.addr_ip, self.text), url=content.url)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--钉钉推送失败: {e}')
if tag.message['feishu']:
try:
user_mail = Account.objects.filter(username=self.to_user).values('email').first()
user = {'mail': user_mail.get('email')}
fs_send_msg(
msg='工单驳回通知\n工单编号:%s\n发起人:%s\n操作人:%s\n地址:%s\n驳回说明:%s\n状态:驳回'
% (self._tmpData['work_id'], self.to_user,self.from_user, self.addr_ip, self.text),user=user)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--飞书推送失败: {e}')
if tag.message['mail']:
try:
if mail.email:
mess_info = {
'workid': self._tmpData['work_id'],
'to_user': self.to_user,
'addr': self.addr_ip,
'rejected': self.text}
put_mess = send_email.send_email(to_addr=mail.email)
put_mess.send_mail(mail_data=mess_info, type=1)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--邮箱推送失败: {e}')
class submit_push_messages(threading.Thread):
'''
:argument 提交工单调用该方法异步处理数据
'''
def submit(self):
'''
:argument 更改该工单SqlOrder表中的status
:param
self.workId
self.user
self.addr_ip
self.text
self.assigned
self.id
:return: none
'''
content = DatabaseList.objects.filter(id=self.id).first()
mail = Account.objects.filter(username=self.assigned).first()
tag = globalpermissions.objects.filter(authorization='global').first()
if tag.message['ding']:
if content.url:
try:
util.dingding(
content='工单提交通知\n工单编号:%s\n发起人:%s\n审批人:%s\n地址:%s\n工单说明:%s\n状态:已提交\n备注:%s'
% (self.workId, self.user,self.assigned, self.addr_ip, self.text, content.before), url=content.url)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--钉钉推送失败: {e}')
if tag.message['feishu']:
try:
user_mail = Account.objects.filter(username=self.assigned).values('email').first()
user = {'mail': user_mail.get('email')}
fs_send_msg(
msg='工单提交通知\n工单编号:%s\n发起人:%s\n审批人:%s\n地址:%s\n工单说明:%s\n状态:已提交\n备注:%s'
% (self.workId, self.user,self.assigned, self.addr_ip, self.text, content.before),user=user)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--飞书推送失败: {e}')
if tag.message['mail']:
if mail.email:
mess_info = {
'workid': self.workId,
'to_user': self.user,
'addr': self.addr_ip,
'text': self.text,
'note': content.before}
try:
put_mess = send_email.send_email(to_addr=mail.email)
put_mess.send_mail(mail_data=mess_info, type=99)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--邮箱推送失败: {e}')
class forward_push_messages(threading.Thread):
'''
:argument 提交工单调用该方法异步处理数据
'''
def submit(self):
'''
:argument 更改该工单SqlOrder表中的status
:param
self.workId
self.user
self.addr_ip
self.text
self.assigned
self.id
:return: none
'''
content = DatabaseList.objects.filter(id=self.id).first()
mail = Account.objects.filter(username=self.assigned).first()
tag = globalpermissions.objects.filter(authorization='global').first()
if tag.message['ding']:
if content.url:
try:
util.dingding(
content='工单转发通知\n工单编号:%s\n发起人:%s\n当前审批人:%s\n地址:%s\n工单说明:%s\n状态:已提交\n备注:%s'
% (self.workId, self.user,self.assigned, self.addr_ip, self.text, content.before), url=content.url)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--钉钉推送失败: {e}')
if tag.message['feishu']:
try:
user_mail = Account.objects.filter(username=self.assigned).values('email').first()
user = {'mail': user_mail.get('email')}
fs_send_msg(
msg='工单转发通知\n工单编号:%s\n发起人:%s\n当前审批人:%s\n地址:%s\n工单说明:%s\n状态:已提交\n备注:%s'
% (self.workId, self.user,self.assigned, self.addr_ip, self.text, content.before),user=user)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--飞书推送失败: {e}')
if tag.message['mail']:
if mail.email:
mess_info = {
'workid': self.workId,
'to_user': self.user,
'addr': self.addr_ip,
'text': self.text,
'note': content.before}
try:
put_mess = send_email.send_email(to_addr=mail.email)
put_mess.send_mail(mail_data=mess_info, type=99)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--邮箱推送失败: {e}')
| 35.65544 | 152 | 0.525612 | from __future__ import absolute_import, unicode_literals
import logging
import functools
import threading
import time
from django.http import HttpResponse
from libs import send_email, util
from libs import call_inception
from .models import (
Usermessage,
DatabaseList,
Account,
globalpermissions,
SqlOrder,
SqlRecord,
grained
)
from core.models import Account
from core.utils.send_feishu_mess import send_msg as fs_send_msg
CUSTOM_ERROR = logging.getLogger('Yearning.core.views')
def grained_permissions(func):
'''
:argument 装饰器函数,校验细化权限。非法请求直接返回401交由前端判断状态码
'''
@functools.wraps(func)
def wrapper(self, request, args=None):
if request.method == "PUT" and args != 'connection':
return func(self, request, args)
else:
if request.method == "GET":
permissions_type = request.GET.get('permissions_type')
else:
permissions_type = request.data['permissions_type']
if permissions_type == 'own_space' or permissions_type == 'query':
return func(self, request, args)
else:
user = grained.objects.filter(username=request.user).first()
if user is not None and user.permissions[permissions_type] == '1':
return func(self, request, args)
else:
return HttpResponse(status=401)
return wrapper
class order_push_message(threading.Thread):
'''
:argument 同意执行工单调用该方法异步处理数据
'''
def __init__(self, addr_ip, id, from_user, to_user):
super().__init__()
self.id = id
self.addr_ip = addr_ip
self.order = SqlOrder.objects.filter(id=id).first()
self.from_user = from_user
self.to_user = to_user
self.title = f'工单:{self.order.work_id}审核通过通知'
def run(self):
self.execute()
self.agreed()
def execute(self):
'''
:argument 将获得的sql语句提交给inception执行并将返回结果写入SqlRecord表,最后更改该工单SqlOrder表中的status
:param
self.order
self.id
:return: none
'''
time.sleep(self.order.delay * 60)
try:
detail = DatabaseList.objects.filter(id=self.order.bundle_id).first()
with call_inception.Inception(
LoginDic={
'host': detail.ip,
'user': detail.username,
'password': detail.password,
'db': self.order.basename,
'port': detail.port
}
) as f:
res = f.Execute(sql=self.order.sql, backup=self.order.backup)
for i in res:
if i['errlevel'] != 0:
SqlOrder.objects.filter(work_id=self.order.work_id).update(status=4)
SqlRecord.objects.get_or_create(
state=i['stagestatus'],
sql=i['sql'],
error=i['errormessage'],
workid=self.order.work_id,
affectrow=i['affected_rows'],
sequence=i['sequence'],
execute_time=i['execute_time'],
SQLSHA1=i['SQLSHA1'],
backup_dbname=i['backup_dbname']
)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--邮箱推送失败: {e}')
finally:
status = SqlOrder.objects.filter(work_id=self.order.work_id).first()
if status.status != 4:
SqlOrder.objects.filter(id=self.id).update(status=1)
def agreed(self):
'''
:argument 将执行的结果通过站内信,email,dingding 发送
:param self.from_user
self.to_user
self.title
self.order
self.addr_ip
:return: none
'''
t = threading.Thread(target=order_push_message.con_close, args=(self,))
t.start()
t.join()
def con_close(self):
Usermessage.objects.get_or_create(
from_user=self.from_user, time=util.date(),
title=self.title, content='该工单已审核通过!', to_user=self.to_user,
state='unread'
)
content = DatabaseList.objects.filter(id=self.order.bundle_id).first()
mail = Account.objects.filter(username=self.to_user).first()
tag = globalpermissions.objects.filter(authorization='global').first()
if tag.message['ding']:
try:
if content.url:
util.dingding(
content='工单执行通知\n工单编号:%s\n发起人:%s\n审核人:%s\n地址:%s\n工单备注:%s\n状态:已执行\n备注:%s'
% (
self.order.work_id, self.order.username,self.order.assigned, self.addr_ip, self.order.text, content.after),
url=content.url)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--钉钉推送失败: {e}')
if tag.message['feishu']:
try:
user_mail = Account.objects.filter(username=self.order.username).values('email').first()
user = {'mail': user_mail.get('email')}
fs_send_msg(
msg='工单执行通知\n工单编号:%s\n发起人:%s\n审核人:%s\n地址:%s\n工单备注:%s\n状态:已执行\n备注:%s'
% (self.order.work_id, self.order.username,self.order.assigned, self.addr_ip, self.order.text, content.after),user=user)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--飞书推送失败: {e}')
if tag.message['mail']:
try:
if mail.email:
mess_info = {
'workid': self.order.work_id,
'to_user': self.order.username,
'addr': self.addr_ip,
'text': self.order.text,
'note': content.after}
put_mess = send_email.send_email(to_addr=mail.email)
put_mess.send_mail(mail_data=mess_info, type=0)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--邮箱推送失败: {e}')
class rejected_push_messages(threading.Thread):
'''
:argument 驳回工单调用该方法异步处理数据
'''
def __init__(self, _tmpData, to_user,from_user, addr_ip, text):
super().__init__()
self.to_user = to_user
self._tmpData = _tmpData
self.addr_ip = addr_ip
self.text = text
self.from_user = from_user
def run(self):
self.execute()
def execute(self):
'''
:argument 更改该工单SqlOrder表中的status
:param
self._tmpData
self.addr_ip
self.text
self.to_user
:return: none
'''
content = DatabaseList.objects.filter(id=self._tmpData['bundle_id']).first()
mail = Account.objects.filter(username=self.to_user).first()
tag = globalpermissions.objects.filter(authorization='global').first()
if tag.message['ding']:
try:
if content.url:
util.dingding(
content='工单驳回通知\n工单编号:%s\n发起人:%s\n操作人:%s\n地址:%s\n驳回说明:%s\n状态:驳回'
% (self._tmpData['work_id'], self.to_user,self.from_user, self.addr_ip, self.text), url=content.url)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--钉钉推送失败: {e}')
if tag.message['feishu']:
try:
user_mail = Account.objects.filter(username=self.to_user).values('email').first()
user = {'mail': user_mail.get('email')}
fs_send_msg(
msg='工单驳回通知\n工单编号:%s\n发起人:%s\n操作人:%s\n地址:%s\n驳回说明:%s\n状态:驳回'
% (self._tmpData['work_id'], self.to_user,self.from_user, self.addr_ip, self.text),user=user)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--飞书推送失败: {e}')
if tag.message['mail']:
try:
if mail.email:
mess_info = {
'workid': self._tmpData['work_id'],
'to_user': self.to_user,
'addr': self.addr_ip,
'rejected': self.text}
put_mess = send_email.send_email(to_addr=mail.email)
put_mess.send_mail(mail_data=mess_info, type=1)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--邮箱推送失败: {e}')
class submit_push_messages(threading.Thread):
'''
:argument 提交工单调用该方法异步处理数据
'''
def __init__(self, workId, user, addr_ip, text, assigned, id):
super().__init__()
self.workId = workId
self.user = user
self.addr_ip = addr_ip
self.text = text
self.assigned = assigned
self.id = id
def run(self):
self.submit()
def submit(self):
'''
:argument 更改该工单SqlOrder表中的status
:param
self.workId
self.user
self.addr_ip
self.text
self.assigned
self.id
:return: none
'''
content = DatabaseList.objects.filter(id=self.id).first()
mail = Account.objects.filter(username=self.assigned).first()
tag = globalpermissions.objects.filter(authorization='global').first()
if tag.message['ding']:
if content.url:
try:
util.dingding(
content='工单提交通知\n工单编号:%s\n发起人:%s\n审批人:%s\n地址:%s\n工单说明:%s\n状态:已提交\n备注:%s'
% (self.workId, self.user,self.assigned, self.addr_ip, self.text, content.before), url=content.url)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--钉钉推送失败: {e}')
if tag.message['feishu']:
try:
user_mail = Account.objects.filter(username=self.assigned).values('email').first()
user = {'mail': user_mail.get('email')}
fs_send_msg(
msg='工单提交通知\n工单编号:%s\n发起人:%s\n审批人:%s\n地址:%s\n工单说明:%s\n状态:已提交\n备注:%s'
% (self.workId, self.user,self.assigned, self.addr_ip, self.text, content.before),user=user)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--飞书推送失败: {e}')
if tag.message['mail']:
if mail.email:
mess_info = {
'workid': self.workId,
'to_user': self.user,
'addr': self.addr_ip,
'text': self.text,
'note': content.before}
try:
put_mess = send_email.send_email(to_addr=mail.email)
put_mess.send_mail(mail_data=mess_info, type=99)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--邮箱推送失败: {e}')
class forward_push_messages(threading.Thread):
'''
:argument 提交工单调用该方法异步处理数据
'''
def __init__(self, workId, user, addr_ip, text, assigned, id):
super().__init__()
self.workId = workId
self.user = user
self.addr_ip = addr_ip
self.text = text
self.assigned = assigned
self.id = id
def run(self):
self.submit()
def submit(self):
'''
:argument 更改该工单SqlOrder表中的status
:param
self.workId
self.user
self.addr_ip
self.text
self.assigned
self.id
:return: none
'''
content = DatabaseList.objects.filter(id=self.id).first()
mail = Account.objects.filter(username=self.assigned).first()
tag = globalpermissions.objects.filter(authorization='global').first()
if tag.message['ding']:
if content.url:
try:
util.dingding(
content='工单转发通知\n工单编号:%s\n发起人:%s\n当前审批人:%s\n地址:%s\n工单说明:%s\n状态:已提交\n备注:%s'
% (self.workId, self.user,self.assigned, self.addr_ip, self.text, content.before), url=content.url)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--钉钉推送失败: {e}')
if tag.message['feishu']:
try:
user_mail = Account.objects.filter(username=self.assigned).values('email').first()
user = {'mail': user_mail.get('email')}
fs_send_msg(
msg='工单转发通知\n工单编号:%s\n发起人:%s\n当前审批人:%s\n地址:%s\n工单说明:%s\n状态:已提交\n备注:%s'
% (self.workId, self.user,self.assigned, self.addr_ip, self.text, content.before),user=user)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--飞书推送失败: {e}')
if tag.message['mail']:
if mail.email:
mess_info = {
'workid': self.workId,
'to_user': self.user,
'addr': self.addr_ip,
'text': self.text,
'note': content.before}
try:
put_mess = send_email.send_email(to_addr=mail.email)
put_mess.send_mail(mail_data=mess_info, type=99)
except Exception as e:
CUSTOM_ERROR.error(f'{e.__class__.__name__}--邮箱推送失败: {e}')
| 4,202 | 0 | 269 |
eac6a981fadd003fa43c9af833b6effbf17649fc | 2,000 | py | Python | snapshotcleanup/snapshotcleanup.py | meredith-digops/awsops | d3e4dc3d16866a95550602b924f97dc5c0c77642 | [
"MIT"
] | 4 | 2017-11-29T08:15:45.000Z | 2020-03-23T18:43:10.000Z | snapshotcleanup/snapshotcleanup.py | meredith-digops/awsops | d3e4dc3d16866a95550602b924f97dc5c0c77642 | [
"MIT"
] | 6 | 2016-09-26T21:01:14.000Z | 2021-05-03T13:33:31.000Z | snapshotcleanup/snapshotcleanup.py | meredith-digops/awsops | d3e4dc3d16866a95550602b924f97dc5c0c77642 | [
"MIT"
] | 5 | 2016-09-26T14:26:22.000Z | 2018-01-26T00:38:01.000Z | #!/usr/bin/env python
from __future__ import print_function
from datetime import datetime, timedelta, tzinfo
import boto3
from botocore.exceptions import ClientError
DEFAULT_RETENTION_DAYS = None
"""If None, no default retention is applied"""
ZERO = timedelta(0)
class UTC(tzinfo):
"""
Implements UTC timezone for datetime interaction
"""
def get_snapshots(ec2, filters, retention):
"""
Generator of snapshots that exceed retention policy.
"""
for snapshot in ec2.snapshots.filter(Filters=filters):
# If the retention is specified in a tag override the default
if snapshot.tags:
for tag in snapshot.tags:
if tag['Key'] == 'ops:retention':
retention = int(tag['Value'])
utc = UTC()
if retention and \
snapshot.start_time < (datetime.now(utc) - timedelta(days=retention)):
yield snapshot
def lambda_handler(event, context):
"""
Delete EBS snapshots that exceed retention policy.
"""
if not 'DryRun' in event:
event['DryRun'] = False
if not 'Filters' in event:
event['Filters'] = [{
'Name': 'tag-key',
'Values': [
'ops:retention'
]
}]
# Set the default retention period if none was provided to the lambda
# invocation
if not 'Retention' in event:
event['Retention'] = DEFAULT_RETENTION_DAYS
ec2 = boto3.resource('ec2')
snapshots = get_snapshots(ec2, filters=event['Filters'],
retention=event['Retention'])
for snapshot in snapshots:
print('Deleting: %s' % snapshot)
try:
snapshot.delete(DryRun=event['DryRun'])
except ClientError as e:
if e.response['Error']['Code'] == 'DryRunOperation':
pass
| 25.316456 | 86 | 0.595 | #!/usr/bin/env python
from __future__ import print_function
from datetime import datetime, timedelta, tzinfo
import boto3
from botocore.exceptions import ClientError
DEFAULT_RETENTION_DAYS = None
"""If None, no default retention is applied"""
ZERO = timedelta(0)
class UTC(tzinfo):
"""
Implements UTC timezone for datetime interaction
"""
def utcoffset(self, dt):
return ZERO
def tzname(self, dt):
return "UTC"
def dst(self, dt):
return ZERO
def get_snapshots(ec2, filters, retention):
"""
Generator of snapshots that exceed retention policy.
"""
for snapshot in ec2.snapshots.filter(Filters=filters):
# If the retention is specified in a tag override the default
if snapshot.tags:
for tag in snapshot.tags:
if tag['Key'] == 'ops:retention':
retention = int(tag['Value'])
utc = UTC()
if retention and \
snapshot.start_time < (datetime.now(utc) - timedelta(days=retention)):
yield snapshot
def lambda_handler(event, context):
"""
Delete EBS snapshots that exceed retention policy.
"""
if not 'DryRun' in event:
event['DryRun'] = False
if not 'Filters' in event:
event['Filters'] = [{
'Name': 'tag-key',
'Values': [
'ops:retention'
]
}]
# Set the default retention period if none was provided to the lambda
# invocation
if not 'Retention' in event:
event['Retention'] = DEFAULT_RETENTION_DAYS
ec2 = boto3.resource('ec2')
snapshots = get_snapshots(ec2, filters=event['Filters'],
retention=event['Retention'])
for snapshot in snapshots:
print('Deleting: %s' % snapshot)
try:
snapshot.delete(DryRun=event['DryRun'])
except ClientError as e:
if e.response['Error']['Code'] == 'DryRunOperation':
pass
| 61 | 0 | 80 |
1b7a12539a5910e5b2156704a5c7a96622ee4933 | 6,698 | py | Python | lib/threatminer.py | macdaliot/exist | 65244f79c602c5a00c3ea6a7eef512ce9c21e60a | [
"MIT"
] | 159 | 2019-03-15T10:46:19.000Z | 2022-03-12T09:19:31.000Z | lib/threatminer.py | macdaliot/exist | 65244f79c602c5a00c3ea6a7eef512ce9c21e60a | [
"MIT"
] | 6 | 2019-03-16T12:51:24.000Z | 2020-07-09T02:25:42.000Z | lib/threatminer.py | macdaliot/exist | 65244f79c602c5a00c3ea6a7eef512ce9c21e60a | [
"MIT"
] | 36 | 2019-03-16T10:37:14.000Z | 2021-11-14T21:04:18.000Z | #!/usr/bin/env python
import argparse
import requests
try:
import simplejson as json
except ImportError:
import json
version = '%(prog)s 20180912'
### From Domain
### From IP address
### From Sample
### From AV
### From Report
### Search APINotes
if __name__ == '__main__':
if ArgParse().type == 'domain':
print(json.dumps(ThreatMiner().getURIFromDomain(ArgParse().resource)))
print(json.dumps(ThreatMiner().getSamplesFromDomain(ArgParse().resource)))
print(json.dumps(ThreatMiner().getSubdomainsFromDomain(ArgParse().resource)))
print(json.dumps(ThreatMiner().getReportFromDomain(ArgParse().resource)))
elif ArgParse().type == 'ip':
print(json.dumps(ThreatMiner().getURIFromIP(ArgParse().resource)))
print(json.dumps(ThreatMiner().getSamplesFromIP(ArgParse().resource)))
print(json.dumps(ThreatMiner().getReportFromIP(ArgParse().resource)))
elif ArgParse().type == 'hash':
print(json.dumps(ThreatMiner().getMetaFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getHttpFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getHostsFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getMutantsFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getRegistryFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getAVFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getReportFromSample(ArgParse().resource)))
elif ArgParse().type == 'av':
print(json.dumps(ThreatMiner().getSamplesFromAV(ArgParse().resource)))
print(json.dumps(ThreatMiner().getReportFromAV(ArgParse().resource)))
elif ArgParse().type == 'report':
print(json.dumps(ThreatMiner().getDomainFromReport(ArgParse().resource)))
print(json.dumps(ThreatMiner().getHostsFromReport(ArgParse().resource)))
print(json.dumps(ThreatMiner().getEmailFromReport(ArgParse().resource)))
print(json.dumps(ThreatMiner().getSamplesFromReport(ArgParse().resource)))
elif ArgParse().type == 'keyword':
print(json.dumps(ThreatMiner().getReportFromKeyword(ArgParse().resource)))
elif ArgParse().type == 'year':
print(json.dumps(ThreatMiner().getReportFromYear(ArgParse().resource)))
| 31.744076 | 115 | 0.615557 | #!/usr/bin/env python
import argparse
import requests
try:
import simplejson as json
except ImportError:
import json
version = '%(prog)s 20180912'
class ThreatMiner():
def __init__(self):
self.__baseURL = "https://api.threatminer.org/v2/"
def sendQuery(self, endpoint, rt, q):
params = {
'rt': rt,
'q': q,
}
url = self.__baseURL + endpoint
try:
res = requests.get(url, params=params)
except Exception as e:
return e
res_dict = json.loads(res.text)
return res_dict
### From Domain
def getURIFromDomain(self, q):
rt = 3
endpoint = "domain.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getSamplesFromDomain(self, q):
rt = 4
endpoint = "domain.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getSubdomainsFromDomain(self, q):
rt = 5
endpoint = "domain.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getReportFromDomain(self, q):
rt = 6
endpoint = "domain.php"
result = self.sendQuery(endpoint, rt, q)
return result
### From IP address
def getURIFromIP(self, q):
rt = 3
endpoint = "host.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getSamplesFromIP(self, q):
rt = 4
endpoint = "host.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getReportFromIP(self, q):
rt = 6
endpoint = "host.php"
result = self.sendQuery(endpoint, rt, q)
return result
### From Sample
def getMetaFromSample(self, q):
rt = 1
endpoint = "sample.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getHttpFromSample(self, q):
rt = 2
endpoint = "sample.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getHostsFromSample(self, q):
rt = 3
endpoint = "sample.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getMutantsFromSample(self, q):
rt = 4
endpoint = "sample.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getRegistryFromSample(self, q):
rt = 5
endpoint = "sample.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getAVFromSample(self, q):
rt = 6
endpoint = "sample.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getReportFromSample(self, q):
rt = 7
endpoint = "sample.php"
result = self.sendQuery(endpoint, rt, q)
return result
### From AV
def getSamplesFromAV(self, q):
rt = 1
endpoint = "av.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getReportFromAV(self, q):
rt = 2
endpoint = "av.php"
result = self.sendQuery(endpoint, rt, q)
return result
### From Report
def getDomainFromReport(self, q):
rt = 1
endpoint = "report.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getHostsFromReport(self, q):
rt = 2
endpoint = "report.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getEmailFromReport(self, q):
rt = 3
endpoint = "report.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getSamplesFromReport(self, q):
rt = 4
endpoint = "report.php"
result = self.sendQuery(endpoint, rt, q)
return result
### Search APINotes
def getReportFromKeyword(self, q):
rt = 1
endpoint = "reports.php"
result = self.sendQuery(endpoint, rt, q)
return result
def getReportFromYear(self, q):
rt = 2
endpoint = "reports.php"
result = self.sendQuery(endpoint, rt, q)
return result
def ArgParse():
parser = argparse.ArgumentParser(description=
'''This script get report from ThreatMiner.
''',
formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument('type', action='store', type=str, help='domain / ip / hash / av / report / keyword / year')
parser.add_argument('resource', action='store', type=str, help='resource')
parser.add_argument('-v', '--version', action='version', version=version)
args = parser.parse_args()
return args
if __name__ == '__main__':
if ArgParse().type == 'domain':
print(json.dumps(ThreatMiner().getURIFromDomain(ArgParse().resource)))
print(json.dumps(ThreatMiner().getSamplesFromDomain(ArgParse().resource)))
print(json.dumps(ThreatMiner().getSubdomainsFromDomain(ArgParse().resource)))
print(json.dumps(ThreatMiner().getReportFromDomain(ArgParse().resource)))
elif ArgParse().type == 'ip':
print(json.dumps(ThreatMiner().getURIFromIP(ArgParse().resource)))
print(json.dumps(ThreatMiner().getSamplesFromIP(ArgParse().resource)))
print(json.dumps(ThreatMiner().getReportFromIP(ArgParse().resource)))
elif ArgParse().type == 'hash':
print(json.dumps(ThreatMiner().getMetaFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getHttpFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getHostsFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getMutantsFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getRegistryFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getAVFromSample(ArgParse().resource)))
print(json.dumps(ThreatMiner().getReportFromSample(ArgParse().resource)))
elif ArgParse().type == 'av':
print(json.dumps(ThreatMiner().getSamplesFromAV(ArgParse().resource)))
print(json.dumps(ThreatMiner().getReportFromAV(ArgParse().resource)))
elif ArgParse().type == 'report':
print(json.dumps(ThreatMiner().getDomainFromReport(ArgParse().resource)))
print(json.dumps(ThreatMiner().getHostsFromReport(ArgParse().resource)))
print(json.dumps(ThreatMiner().getEmailFromReport(ArgParse().resource)))
print(json.dumps(ThreatMiner().getSamplesFromReport(ArgParse().resource)))
elif ArgParse().type == 'keyword':
print(json.dumps(ThreatMiner().getReportFromKeyword(ArgParse().resource)))
elif ArgParse().type == 'year':
print(json.dumps(ThreatMiner().getReportFromYear(ArgParse().resource)))
| 3,665 | -1 | 687 |
da4b158d8c736ac7723e882f97e8bcedc90b1567 | 3,541 | py | Python | sym_api_client_python/clients/connections_client.py | symphony-thibault/symphony-api-client-python | 628cbf3aa857d3bc66a98a3ec009ce1c82295d05 | [
"MIT"
] | null | null | null | sym_api_client_python/clients/connections_client.py | symphony-thibault/symphony-api-client-python | 628cbf3aa857d3bc66a98a3ec009ce1c82295d05 | [
"MIT"
] | null | null | null | sym_api_client_python/clients/connections_client.py | symphony-thibault/symphony-api-client-python | 628cbf3aa857d3bc66a98a3ec009ce1c82295d05 | [
"MIT"
] | null | null | null | import logging
from .api_client import APIClient
# child class of APIClient --> Extends error handling functionality
# ConnectionsClient class contains a series of functions corresponding to all
# pod admin endpoints on the REST API.
| 42.154762 | 80 | 0.674386 | import logging
from .api_client import APIClient
# child class of APIClient --> Extends error handling functionality
# ConnectionsClient class contains a series of functions corresponding to all
# pod admin endpoints on the REST API.
class ConnectionsClient(APIClient):
def __init__(self, bot_client):
self.bot_client = bot_client
def create_connection(self, user_id):
"""
Pods from all users involved need to have crossPod enabled between them.
Users who belong to the same private pod are implicitly connected.
If you attempt to connect with an internal user, this endpoint will
return the corresponding connection object with a status of accepted
"""
logging.debug('ConnectionsClient/create_connection()')
url = '/pod/v1/connection/create'
data = {'userId': user_id}
return self.bot_client.execute_rest_call('POST', url, json=data)
def get_connection(self, user_id):
"""
When calling this as an OBO-enabled endpoint,
use the OBO User Authenticate token for sessionToken
"""
logging.debug('ConnectionsClient/get_connection()')
url = '/pod/v1/connection/user/{0}/info'.format(user_id)
return self.bot_client.execute_rest_call('GET', url)
def list_connections(self, status, **kwargs):
"""
This retrieves all connections of the requesting user.
(i.e. both connections in which the requesting user is the sender and
those in which the requesting user is the inivtee).
By default, if you haven't specified the connection status to filter on,
this call will only return results for both "pending_incoming" and
"pending_outgoing".
"""
logging.debug('ConnectionsClient/list_connections()')
url = '/pod/v1/connection/list'
params = {'status' : status}
return self.bot_client.execute_rest_call('GET', url, params=params)
def accept_connection(self, user_id):
"""
This allows the user to accept a specific connection request.
For users of the same private pod who are implicitly connected,
this endpoint returns the connection with status of "Accepted".
"""
logging.debug('ConnectionsClient/accept_connection()')
url = '/pod/v1/connection/accept'
data = {'userId': user_id}
return self.bot_client.execute_rest_call('POST', url, json=data)
def reject_connection(self, user_id):
"""
This allows the user to reject a specific connection request.
Reject the connection between the requesting user and request sender.
If both users are in the same private pod, an error will be returned
because both users have an implicit connection which cannot be rejected.
"""
logging.debug('ConnectionsClient/reject_connection()')
url = '/pod/v1/connection/reject'
data = {'userId': user_id}
return self.bot_client.execute_rest_call('POST', url, json=data)
def remove_connection(self, user_id):
"""
Removes a connection with a user.
This endpoint returns 400 Bad Request when the users aren't connected.
For example, when a user hasn’t yet accepted a connection request
from another user.
"""
logging.debug('ConnectionsClient/remove_connection()')
url = '/pod/v1/connection/user/{0}/remove'.format(user_id)
return self.bot_client.execute_rest_call('POST', url)
| 47 | 3,236 | 22 |
16b08766cb370edf52b3d39c46180b630ddb5f0e | 1,405 | py | Python | server/services/weather.py | vipul0104/logistics-wizard-controller | bd2470a5847310fe0c7bccadf6179dd7bb866de0 | [
"Apache-2.0"
] | null | null | null | server/services/weather.py | vipul0104/logistics-wizard-controller | bd2470a5847310fe0c7bccadf6179dd7bb866de0 | [
"Apache-2.0"
] | 5 | 2018-06-25T16:12:07.000Z | 2019-11-08T21:47:47.000Z | server/services/weather.py | vipul0104/logistics-wizard-controller | bd2470a5847310fe0c7bccadf6179dd7bb866de0 | [
"Apache-2.0"
] | 1 | 2019-11-03T20:40:02.000Z | 2019-11-03T20:40:02.000Z | """
Handle all actions on the weather resource.
"""
import json
import requests
from server.utils import call_openwhisk
from server.exceptions import ResourceDoesNotExistException, APIException
def get_recommendations(demoGuid):
"""
Get recommendations
"""
try:
payload = dict()
payload['demoGuid'] = demoGuid
response = call_openwhisk('retrieve', payload)
except Exception as e:
raise APIException('KO', internal_details=str(e))
return response
def acknowledge_recommendation(demoGuid, recommendationId):
"""
Acknowledge the given recommendation
"""
try:
payload = dict()
payload['demoGuid'] = demoGuid
payload['recommendationId'] = recommendationId
response = call_openwhisk('acknowledge', payload)
except Exception as e:
raise APIException('KO', internal_details=str(e))
return response
def trigger_simulation(demoGuid):
"""
Trigger a simulation in the given demo
Creates a Snow Storm in the DC area
"""
try:
payload = dict()
payload['demoGuid'] = demoGuid
event = dict()
event = json.loads(open('./sample_event.json').read())
payload['event'] = event
response = call_openwhisk('recommend', payload)
except Exception as e:
raise APIException('KO', internal_details=str(e))
return response
| 25.545455 | 73 | 0.659786 | """
Handle all actions on the weather resource.
"""
import json
import requests
from server.utils import call_openwhisk
from server.exceptions import ResourceDoesNotExistException, APIException
def get_recommendations(demoGuid):
"""
Get recommendations
"""
try:
payload = dict()
payload['demoGuid'] = demoGuid
response = call_openwhisk('retrieve', payload)
except Exception as e:
raise APIException('KO', internal_details=str(e))
return response
def acknowledge_recommendation(demoGuid, recommendationId):
"""
Acknowledge the given recommendation
"""
try:
payload = dict()
payload['demoGuid'] = demoGuid
payload['recommendationId'] = recommendationId
response = call_openwhisk('acknowledge', payload)
except Exception as e:
raise APIException('KO', internal_details=str(e))
return response
def trigger_simulation(demoGuid):
"""
Trigger a simulation in the given demo
Creates a Snow Storm in the DC area
"""
try:
payload = dict()
payload['demoGuid'] = demoGuid
event = dict()
event = json.loads(open('./sample_event.json').read())
payload['event'] = event
response = call_openwhisk('recommend', payload)
except Exception as e:
raise APIException('KO', internal_details=str(e))
return response
| 0 | 0 | 0 |
d351744e79c3ee2c12d9ec03d2736c0dbd0359f3 | 7,788 | py | Python | utils/gdb-printers/csd.py | kjcamann/csd-mirror | e0808cdb084404fc7319c76186c05eba0a56b056 | [
"BSD-2-Clause"
] | null | null | null | utils/gdb-printers/csd.py | kjcamann/csd-mirror | e0808cdb084404fc7319c76186c05eba0a56b056 | [
"BSD-2-Clause"
] | null | null | null | utils/gdb-printers/csd.py | kjcamann/csd-mirror | e0808cdb084404fc7319c76186c05eba0a56b056 | [
"BSD-2-Clause"
] | null | null | null | """GDB pretty-printers for CSD.
"""
import enum
import gdb
import gdb.xmethod
import re
_csd_printer_name = 'csd_pretty_printer'
_csd_xmethod_name = 'csd_xmethods'
_nttpIntegralSuffix = {
'long' : 'l',
'long long' : 'll',
'unsigned int' : 'u',
'unsigned long' : 'ul',
'unsigned long long' : 'ull'
}
def _get_entry_extractor_typename(ty):
"""Return the adjusted typename of an entry extractor for the purpose of
performing symbol lookups.
offset_extractor takes, as its third argument, a non-type template parameter
of type `std::size_t`. When gcc prints the NTTP argument, it prints it as just
a number, e.g., "8". In the symbol name, however, it must appear as something
like "8ul" (unsigned long) because the symbol must encode the type according
to the ABI rules.
"""
templateName = _remove_generics(ty.strip_typedefs().name)
if templateName != 'csg::offset_extractor':
return ty.strip_typedefs().name
offset = ty.template_argument(2)
assert type(offset) is gdb.Value, 'offset_extractor template arg 2 not an NTTP?'
suffix = _nttpIntegralSuffix.get(offset.type.name, None)
fixedOffset = f'{offset}{suffix}' if suffix else str(offset)
return f'csg::offset_extractor<{ty.template_argument(0)}, ' \
f'{ty.template_argument(1)}, {fixedOffset}>'
def _lookup_entry_ref_codec_functions(elementTy, entryTy, entryExTy,
entryRefUnionTy):
"""To iterate over CSD lists in the debugger, we need access to the functions
entry_ref_codec<...>::get_entry and entry_ref_codec<...>::get_value, which
are looked up using this helper.
"""
entryExTyName = _get_entry_extractor_typename(entryExTy)
entryRefCodecClassName = \
f'csg::detail::entry_ref_codec<{entryTy}, {elementTy}, {entryExTyName}>'
def lookupEntryRefCodecSymbol(fnName):
"""Look up symbol for entry_ref_codec<...> static member functions."""
symName = f'{entryRefCodecClassName}::{fnName}'
sym, _ = gdb.lookup_symbol(symName)
if not sym or not sym.is_function:
raise Exception(f'required symbol {symName} does not exist or is not a function')
return sym
getEntryFnName = f'get_entry({entryExTyName} &, {entryRefUnionTy})'
getEntrySym = lookupEntryRefCodecSymbol(getEntryFnName)
getValueFnName = f'get_value({entryRefUnionTy})'
getValueSym = lookupEntryRefCodecSymbol(getValueFnName)
return getEntrySym.value(), getValueSym.value()
class EntryRefPrinter:
"""Printer for csg::entry_ref_union<EntryType, T>"""
class ListPrinter:
"""Printer for all CSD list types."""
def register_csd_pretty_printers():
"""Register event handlers to load csd pretty-printers."""
gdb.events.new_objfile.connect(_register_csd_printers)
gdb.events.clear_objfiles.connect(_unregister_csd_printers)
| 35.081081 | 87 | 0.699666 | """GDB pretty-printers for CSD.
"""
import enum
import gdb
import gdb.xmethod
import re
_csd_printer_name = 'csd_pretty_printer'
_csd_xmethod_name = 'csd_xmethods'
def _remove_generics(typename):
if type(typename) is gdb.Type:
typename = typename.name or typename.tag or str(typename)
match = re.match('^([^<]+)', typename)
return match.group(1)
_nttpIntegralSuffix = {
'long' : 'l',
'long long' : 'll',
'unsigned int' : 'u',
'unsigned long' : 'ul',
'unsigned long long' : 'ull'
}
def _get_entry_extractor_typename(ty):
"""Return the adjusted typename of an entry extractor for the purpose of
performing symbol lookups.
offset_extractor takes, as its third argument, a non-type template parameter
of type `std::size_t`. When gcc prints the NTTP argument, it prints it as just
a number, e.g., "8". In the symbol name, however, it must appear as something
like "8ul" (unsigned long) because the symbol must encode the type according
to the ABI rules.
"""
templateName = _remove_generics(ty.strip_typedefs().name)
if templateName != 'csg::offset_extractor':
return ty.strip_typedefs().name
offset = ty.template_argument(2)
assert type(offset) is gdb.Value, 'offset_extractor template arg 2 not an NTTP?'
suffix = _nttpIntegralSuffix.get(offset.type.name, None)
fixedOffset = f'{offset}{suffix}' if suffix else str(offset)
return f'csg::offset_extractor<{ty.template_argument(0)}, ' \
f'{ty.template_argument(1)}, {fixedOffset}>'
def _lookup_entry_ref_codec_functions(elementTy, entryTy, entryExTy,
entryRefUnionTy):
"""To iterate over CSD lists in the debugger, we need access to the functions
entry_ref_codec<...>::get_entry and entry_ref_codec<...>::get_value, which
are looked up using this helper.
"""
entryExTyName = _get_entry_extractor_typename(entryExTy)
entryRefCodecClassName = \
f'csg::detail::entry_ref_codec<{entryTy}, {elementTy}, {entryExTyName}>'
def lookupEntryRefCodecSymbol(fnName):
"""Look up symbol for entry_ref_codec<...> static member functions."""
symName = f'{entryRefCodecClassName}::{fnName}'
sym, _ = gdb.lookup_symbol(symName)
if not sym or not sym.is_function:
raise Exception(f'required symbol {symName} does not exist or is not a function')
return sym
getEntryFnName = f'get_entry({entryExTyName} &, {entryRefUnionTy})'
getEntrySym = lookupEntryRefCodecSymbol(getEntryFnName)
getValueFnName = f'get_value({entryRefUnionTy})'
getValueSym = lookupEntryRefCodecSymbol(getValueFnName)
return getEntrySym.value(), getValueSym.value()
class EntryRefPrinter:
"""Printer for csg::entry_ref_union<EntryType, T>"""
def __init__(self, value):
self.value = value
self.addrVal = self.value['offset']['m_address']
if int(self.addrVal) & 0x1:
# A tagged address; this means we're pointing at a T value.
ptrType = self.value.type.template_argument(1).pointer()
self.childValue = (self.addrVal - 1).cast(ptrType)
self.label = str(ptrType)
else:
# An untagged address; this means we're pointing directly an entry_type<T>
ptrType = self.value.type.template_argument(0).pointer()
self.childValue = self.addrVal.cast(ptrType)
self.label = str(ptrType)
def children(self):
yield self.label, self.childValue
class ListPrinter:
"""Printer for all CSD list types."""
class ListIterator:
def __init__(self, nextEntryRef, entryEx, getEntryFn, getValueFn,
stopEntryRefValue):
self.nextEntryRef = nextEntryRef
self.entryEx = entryEx
self.getEntryFn = getEntryFn
self.getValueFn = getValueFn
self.count = 0
self.stopEntryRefValue = stopEntryRefValue
def __iter__(self):
return self
def __next__(self):
self.count += 1
if self.isFinished():
raise StopIteration
item = self.getValueFn(self.nextEntryRef).referenced_value()
curEntry = self.getEntryFn(self.entryEx, self.nextEntryRef).dereference()
self.nextEntryRef = curEntry['next']
return f'[{self.count}]', item
def isFinished(self):
return int(self.nextEntryRef['offset']['m_address']) == self.stopEntryRefValue
def __init__(self, value):
self.value = value
self.entryEx = self.value['m_entryExtractor']
qualListTyName = _remove_generics(value.type.strip_typedefs())
assert qualListTyName.startswith('csg::')
self.listTyName = qualListTyName[5:]
self.isProxy = self.listTyName.endswith('_proxy')
self.isTailQ = self.listTyName.startswith('tailq_')
self.fwdHead = self.value['m_head']
if self.isProxy:
self.fwdHead = self.fwdHead.referenced_value()
listHeadEntry = self.fwdHead['m_endEntry'] if self.isTailQ else \
self.fwdHead['m_headEntry']
stopEntryRefValue = int(listHeadEntry.address) if self.isTailQ else 0
firstEntryRef = listHeadEntry['next']
baseCls = self.value.type.fields()[0].type
entryRefUnionTy = firstEntryRef.type
self.elementTy = baseCls.template_argument(0)
self.entryTy = entryRefUnionTy.template_argument(0)
self.entryExTy = self.entryEx.type.strip_typedefs()
getEntryFn, getValueFn = \
_lookup_entry_ref_codec_functions(self.elementTy, self.entryTy,
self.entryExTy, entryRefUnionTy)
self.iterator = self.ListIterator(firstEntryRef, self.entryEx, getEntryFn,
getValueFn, stopEntryRefValue)
def to_string(self):
desc = f'csg::{self.listTyName} of {self.elementTy}'
size = self.fwdHead['m_sz']
if size.type.code == gdb.TYPE_CODE_INT:
desc += f', size = {size}'
elif self.iterator.isFinished():
desc += " (empty)"
if self.entryEx.type.fields():
entryExTyName = self.entryEx.type.strip_typedefs()
desc += f', extractor {entryExTyName} = {self.entryEx}'
return desc
def children(self):
return self.iterator
def display_hint(self):
return 'array'
class CSDPrettyPrinter:
def __init__(self, name):
self.name = name
self.enabled = True
self.lookup = {
'slist_head' : ListPrinter,
'slist_proxy' : ListPrinter,
'stailq_head' : ListPrinter,
'stailq_proxy' : ListPrinter,
'tailq_head' : ListPrinter,
'tailq_proxy' : ListPrinter,
'entry_ref_union' : EntryRefPrinter,
}
def __call__(self, value):
"""Return the pretty printer for a gdb.Value"""
canonType = value.type.strip_typedefs()
if canonType.code not in (gdb.TYPE_CODE_STRUCT, gdb.TYPE_CODE_UNION):
return None
typename = canonType.name or canonType.tag or str(canonType)
if not typename.startswith('csg::'):
return None
baseName = _remove_generics(typename[5:])
printer = self.lookup.get(baseName, None)
return printer(value) if printer else None
def _register_csd_printers(event):
progspace = event.new_objfile.progspace
if not getattr(progspace, _csd_printer_name, False):
print("Loading csd pretty-printers")
gdb.printing.register_pretty_printer(progspace,
CSDPrettyPrinter(_csd_printer_name))
setattr(progspace, _csd_printer_name, True)
def _unregister_csd_printers(event):
progspace = event.progspace
if getattr(progspace, _csd_printer_name, False):
for printer in progspace.pretty_printers:
if getattr(printer, "name", "none") == _csd_printer_name:
progspace.pretty_printers.remove(printer)
setattr(progspace, _csd_printer_name, False)
break
def register_csd_pretty_printers():
"""Register event handlers to load csd pretty-printers."""
gdb.events.new_objfile.connect(_register_csd_printers)
gdb.events.clear_objfiles.connect(_unregister_csd_printers)
| 4,118 | 508 | 372 |
a6c66342d24401cf2bf73506e53eb58aa58133e0 | 1,222 | py | Python | nets/attention/position_encoding.py | megvii-research/CREStereo | fce504591fbb0eb29642235544f1aaecd1198526 | [
"Apache-2.0"
] | 80 | 2022-03-22T06:32:47.000Z | 2022-03-31T21:53:07.000Z | nets/attention/position_encoding.py | megvii-research/CREStereo | fce504591fbb0eb29642235544f1aaecd1198526 | [
"Apache-2.0"
] | 3 | 2022-03-24T06:10:27.000Z | 2022-03-31T06:03:51.000Z | nets/attention/position_encoding.py | megvii-research/CREStereo | fce504591fbb0eb29642235544f1aaecd1198526 | [
"Apache-2.0"
] | 6 | 2022-03-23T08:15:58.000Z | 2022-03-29T12:07:52.000Z | import math
import megengine.module as M
import megengine.functional as F
class PositionEncodingSine(M.Module):
"""
This is a sinusoidal position encoding that generalized to 2-dimensional images
"""
def __init__(self, d_model, max_shape=(256, 256)):
"""
Args:
max_shape (tuple): for 1/8 featmap, the max length of 256 corresponds to 2048 pixels
"""
super().__init__()
pe = F.zeros((d_model, *max_shape))
y_position = F.expand_dims(F.cumsum(F.ones(max_shape), 0), 0)
x_position = F.expand_dims(F.cumsum(F.ones(max_shape), 1), 0)
div_term = F.exp(
F.arange(0, d_model // 2, 2) * (-math.log(10000.0) / d_model // 2)
)
div_term = F.expand_dims(div_term, (1, 2)) # [C//4, 1, 1]
pe[0::4, :, :] = F.sin(x_position * div_term)
pe[1::4, :, :] = F.cos(x_position * div_term)
pe[2::4, :, :] = F.sin(y_position * div_term)
pe[3::4, :, :] = F.cos(y_position * div_term)
self.pe = F.expand_dims(pe, 0)
def forward(self, x):
"""
Args:
x: [N, C, H, W]
"""
return x + self.pe[:, :, : x.shape[2], : x.shape[3]].to(x.device)
| 32.157895 | 96 | 0.54419 | import math
import megengine.module as M
import megengine.functional as F
class PositionEncodingSine(M.Module):
"""
This is a sinusoidal position encoding that generalized to 2-dimensional images
"""
def __init__(self, d_model, max_shape=(256, 256)):
"""
Args:
max_shape (tuple): for 1/8 featmap, the max length of 256 corresponds to 2048 pixels
"""
super().__init__()
pe = F.zeros((d_model, *max_shape))
y_position = F.expand_dims(F.cumsum(F.ones(max_shape), 0), 0)
x_position = F.expand_dims(F.cumsum(F.ones(max_shape), 1), 0)
div_term = F.exp(
F.arange(0, d_model // 2, 2) * (-math.log(10000.0) / d_model // 2)
)
div_term = F.expand_dims(div_term, (1, 2)) # [C//4, 1, 1]
pe[0::4, :, :] = F.sin(x_position * div_term)
pe[1::4, :, :] = F.cos(x_position * div_term)
pe[2::4, :, :] = F.sin(y_position * div_term)
pe[3::4, :, :] = F.cos(y_position * div_term)
self.pe = F.expand_dims(pe, 0)
def forward(self, x):
"""
Args:
x: [N, C, H, W]
"""
return x + self.pe[:, :, : x.shape[2], : x.shape[3]].to(x.device)
| 0 | 0 | 0 |
4a7bae05fad6d3a7ae3e34b5e332150a92ca6ee7 | 3,744 | py | Python | data-science-not/weeks/m03_sequences/p0/stack.py | nurseiit/comm-unist | e7a122c910bf12eddf5c0ffc2c666995b4989408 | [
"MIT"
] | 4 | 2019-07-03T00:57:01.000Z | 2020-12-11T23:06:11.000Z | data-science-not/weeks/m03_sequences/p0/stack.py | nurseiit/comm-unist | e7a122c910bf12eddf5c0ffc2c666995b4989408 | [
"MIT"
] | 1 | 2019-10-19T17:42:42.000Z | 2019-10-19T17:42:42.000Z | data-science-not/weeks/m03_sequences/p0/stack.py | nurseiit/comm-unist | e7a122c910bf12eddf5c0ffc2c666995b4989408 | [
"MIT"
] | 1 | 2019-11-05T04:14:08.000Z | 2019-11-05T04:14:08.000Z | # Copyright 2013, Michael H. Goldwasser
#
# Developed for use with the book:
#
# Data Structures and Algorithms in Python
# Michael T. Goodrich, Roberto Tamassia, and Michael H. Goldwasser
# John Wiley & Sons, 2013
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Basic example of an adapter class to provide a stack interface to Python's list."""
class ArrayStack:
"""LIFO Stack implementation using a Python list as underlying storage."""
def __init__(self):
"""Create an empty stack."""
self._data = [] # nonpublic list instance
def __len__(self):
"""Return the number of elements in the stack."""
return len(self._data)
def is_empty(self):
"""Return True if the stack is empty."""
return len(self._data) == 0
def push(self, e):
"""Add element e to the top of the stack."""
self._data.append(e) # new item stored at end of list
def top(self):
"""Return (but do not remove) the element at the top of the stack.
Raise Empty exception if the stack is empty.
"""
if self.is_empty():
raise AssertionError('Stack is empty')
return self._data[-1] # the last item in the list
def pop(self):
"""Remove and return the element from the top of the stack (i.e., LIFO).
Raise Empty exception if the stack is empty.
"""
if self.is_empty():
raise AssertionError('Stack is empty')
return self._data.pop() # remove last item from list
if __name__ == '__main__':
S = ArrayStack() # contents: [ ]
S.push(5) # contents: [5]
S.push(3) # contents: [5, 3]
print(len(S)) # contents: [5, 3]; outputs 2
print(S.pop()) # contents: [5]; outputs 3
print(S.is_empty()) # contents: [5]; outputs False
print(S.pop()) # contents: [ ]; outputs 5
print(S.is_empty()) # contents: [ ]; outputs True
S.push(7) # contents: [7]
S.push(9) # contents: [7, 9]
print(S.top()) # contents: [7, 9]; outputs 9
S.print_contents()
S.push(4) # contents: [7, 9, 4]
print(len(S)) # contents: [7, 9, 4]; outputs 3
print(S.pop()) # contents: [7, 9]; outputs 4
S.push(6) # contents: [7, 9, 6]
S.push(8) # contents: [7, 9, 6, 8]
S.print_contents()
print(S.pop()) # contents: [7, 9, 6]; outputs 8
#you can push anything in a stack, for instance you can push strings...
S1 = ArrayStack()
S1.push("John")
S1.push("Doe")
S1.print_contents()
#...or an array!
S2 = ArrayStack()
S2.push(["Basic English", 60, 'B+'])
S2.push(["ADSA", 95, 'A+'])
S2.print_contents()
| 39.410526 | 86 | 0.554754 | # Copyright 2013, Michael H. Goldwasser
#
# Developed for use with the book:
#
# Data Structures and Algorithms in Python
# Michael T. Goodrich, Roberto Tamassia, and Michael H. Goldwasser
# John Wiley & Sons, 2013
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Basic example of an adapter class to provide a stack interface to Python's list."""
class ArrayStack:
"""LIFO Stack implementation using a Python list as underlying storage."""
def __init__(self):
"""Create an empty stack."""
self._data = [] # nonpublic list instance
def __len__(self):
"""Return the number of elements in the stack."""
return len(self._data)
def is_empty(self):
"""Return True if the stack is empty."""
return len(self._data) == 0
def push(self, e):
"""Add element e to the top of the stack."""
self._data.append(e) # new item stored at end of list
def top(self):
"""Return (but do not remove) the element at the top of the stack.
Raise Empty exception if the stack is empty.
"""
if self.is_empty():
raise AssertionError('Stack is empty')
return self._data[-1] # the last item in the list
def pop(self):
"""Remove and return the element from the top of the stack (i.e., LIFO).
Raise Empty exception if the stack is empty.
"""
if self.is_empty():
raise AssertionError('Stack is empty')
return self._data.pop() # remove last item from list
def print_contents(self):
print("Stack content: {0}".format(self._data))
if __name__ == '__main__':
S = ArrayStack() # contents: [ ]
S.push(5) # contents: [5]
S.push(3) # contents: [5, 3]
print(len(S)) # contents: [5, 3]; outputs 2
print(S.pop()) # contents: [5]; outputs 3
print(S.is_empty()) # contents: [5]; outputs False
print(S.pop()) # contents: [ ]; outputs 5
print(S.is_empty()) # contents: [ ]; outputs True
S.push(7) # contents: [7]
S.push(9) # contents: [7, 9]
print(S.top()) # contents: [7, 9]; outputs 9
S.print_contents()
S.push(4) # contents: [7, 9, 4]
print(len(S)) # contents: [7, 9, 4]; outputs 3
print(S.pop()) # contents: [7, 9]; outputs 4
S.push(6) # contents: [7, 9, 6]
S.push(8) # contents: [7, 9, 6, 8]
S.print_contents()
print(S.pop()) # contents: [7, 9, 6]; outputs 8
#you can push anything in a stack, for instance you can push strings...
S1 = ArrayStack()
S1.push("John")
S1.push("Doe")
S1.print_contents()
#...or an array!
S2 = ArrayStack()
S2.push(["Basic English", 60, 'B+'])
S2.push(["ADSA", 95, 'A+'])
S2.print_contents()
| 59 | 0 | 27 |
fefc73a6ccd7110962995b4002d9d6080e706454 | 254 | py | Python | preprocessing/smri/utils/features.py | GalBenZvi/BrainPrint | 8dda22f130f60bac66fe05f0f5163ee3680616f5 | [
"Apache-2.0"
] | null | null | null | preprocessing/smri/utils/features.py | GalBenZvi/BrainPrint | 8dda22f130f60bac66fe05f0f5163ee3680616f5 | [
"Apache-2.0"
] | 1 | 2021-08-12T07:54:37.000Z | 2021-08-12T07:54:37.000Z | preprocessing/dwi/utils/features.py | GalBenZvi/BrainPrint | 8dda22f130f60bac66fe05f0f5163ee3680616f5 | [
"Apache-2.0"
] | 1 | 2021-08-08T11:56:19.000Z | 2021-08-08T11:56:19.000Z | FEATURES = {
"DWI": [
"MD",
"FA",
"AD",
"RD",
"EigenValue",
"EigenVector",
"CS",
"CP",
"CL",
],
"SMRI": [
"Thickness",
"Volume",
"Sulc",
],
}
| 13.368421 | 22 | 0.271654 | FEATURES = {
"DWI": [
"MD",
"FA",
"AD",
"RD",
"EigenValue",
"EigenVector",
"CS",
"CP",
"CL",
],
"SMRI": [
"Thickness",
"Volume",
"Sulc",
],
}
| 0 | 0 | 0 |
4e01f94c8ce0771d637f22aa24a5caf4396746e5 | 1,240 | py | Python | tests/test_https_middleware.py | alxpy/aiohttp-middlewares | 377740d21cdaf3142523eb81b0cee4c6dd01f6b5 | [
"BSD-3-Clause"
] | 34 | 2017-05-14T11:31:41.000Z | 2022-03-24T06:07:31.000Z | tests/test_https_middleware.py | alxpy/aiohttp-middlewares | 377740d21cdaf3142523eb81b0cee4c6dd01f6b5 | [
"BSD-3-Clause"
] | 77 | 2017-10-20T19:40:59.000Z | 2022-03-01T05:07:36.000Z | tests/test_https_middleware.py | alxpy/aiohttp-middlewares | 377740d21cdaf3142523eb81b0cee4c6dd01f6b5 | [
"BSD-3-Clause"
] | 2 | 2019-11-06T12:45:33.000Z | 2021-11-24T14:55:28.000Z | import pytest
from aiohttp import web
from aiohttp_middlewares import https_middleware
@pytest.mark.parametrize(
"match_headers, request_headers, expected",
[
(None, None, "http"),
(None, {"X-Forwarded-Proto": "http"}, "http"),
(None, {"X-Forwarded-Proto": "https"}, "https"),
({}, None, "http"),
({}, {"X-Forwarded-Proto": "http"}, "http"),
({"Forwarded": "https"}, None, "http"),
({"Forwarded": "https"}, {"X-Forwarded-Proto": "http"}, "http"),
({"Forwarded": "https"}, {"X-Forwarded-Proto": "https"}, "http"),
({"Forwarded": "https"}, {"Forwarded": "http"}, "http"),
({"Forwarded": "https"}, {"Forwarded": "https"}, "https"),
],
)
| 32.631579 | 73 | 0.625806 | import pytest
from aiohttp import web
from aiohttp_middlewares import https_middleware
def create_app(match_headers):
app = web.Application(middlewares=[https_middleware(match_headers)])
app.router.add_route("GET", "/", handler)
return app
async def handler(request):
return web.json_response(request.url.scheme)
@pytest.mark.parametrize(
"match_headers, request_headers, expected",
[
(None, None, "http"),
(None, {"X-Forwarded-Proto": "http"}, "http"),
(None, {"X-Forwarded-Proto": "https"}, "https"),
({}, None, "http"),
({}, {"X-Forwarded-Proto": "http"}, "http"),
({"Forwarded": "https"}, None, "http"),
({"Forwarded": "https"}, {"X-Forwarded-Proto": "http"}, "http"),
({"Forwarded": "https"}, {"X-Forwarded-Proto": "https"}, "http"),
({"Forwarded": "https"}, {"Forwarded": "http"}, "http"),
({"Forwarded": "https"}, {"Forwarded": "https"}, "https"),
],
)
async def test_https_middleware(
aiohttp_client, match_headers, request_headers, expected
):
client = await aiohttp_client(create_app(match_headers))
response = await client.get("/", headers=request_headers)
assert await response.json() == expected
| 441 | 0 | 68 |
2159bbd87ad1a044357a5af7ed39b624367234cb | 1,066 | py | Python | m2core/data_schemes/redis_system_scheme.py | mdutkin/m2core | 1e08acbc99e9e6c60a03d63110e2fcec96a35ec0 | [
"MIT"
] | 18 | 2017-11-02T16:06:41.000Z | 2019-04-16T08:11:37.000Z | m2core/data_schemes/redis_system_scheme.py | mdutkin/m2core | 1e08acbc99e9e6c60a03d63110e2fcec96a35ec0 | [
"MIT"
] | 4 | 2018-06-19T08:45:26.000Z | 2019-02-08T04:28:28.000Z | m2core/data_schemes/redis_system_scheme.py | mdutkin/m2core | 1e08acbc99e9e6c60a03d63110e2fcec96a35ec0 | [
"MIT"
] | 2 | 2017-11-10T07:27:22.000Z | 2018-06-27T12:16:27.000Z | # holds mapping between human key prefixes and real Redis prefixes
minute = 60
hour = 60 * minute
day = 24 * hour
week = 7 * day
month = 31 * day
redis_scheme = {
#
# human-readable table name
# |
# | prefix for key in Redis +
# | key placeholder
# | |
# | |
# | |
# | |
# | |
# | |
# | |
# | |
# | | key TTL in Redis (sec), None - never expire
# V V V
# mapping between token (key) and user id (value)
'ACCESS_TOKENS_BY_HASH': {'prefix': 'at:%s', 'ttl': None},
# mapping of user id and his roles
'USER_ROLES': {'prefix': 'ur:%s', 'ttl': -1},
# mapping between role id and its permissions
'ROLE_PERMISSIONS': {'prefix': 'rp:%s', 'ttl': -1},
}
| 34.387097 | 87 | 0.366792 | # holds mapping between human key prefixes and real Redis prefixes
minute = 60
hour = 60 * minute
day = 24 * hour
week = 7 * day
month = 31 * day
redis_scheme = {
#
# human-readable table name
# |
# | prefix for key in Redis +
# | key placeholder
# | |
# | |
# | |
# | |
# | |
# | |
# | |
# | |
# | | key TTL in Redis (sec), None - never expire
# V V V
# mapping between token (key) and user id (value)
'ACCESS_TOKENS_BY_HASH': {'prefix': 'at:%s', 'ttl': None},
# mapping of user id and his roles
'USER_ROLES': {'prefix': 'ur:%s', 'ttl': -1},
# mapping between role id and its permissions
'ROLE_PERMISSIONS': {'prefix': 'rp:%s', 'ttl': -1},
}
| 0 | 0 | 0 |
83fef8c29fe6d4a012071d9b3885e0118d9aecd4 | 4,535 | py | Python | python/paddle/fluid/tests/unittests/test_allclose_op.py | Steffy-zxf/Paddle | 82b23b8fcf6f171ad72e1453c8a2b337e95ee8a9 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/unittests/test_allclose_op.py | Steffy-zxf/Paddle | 82b23b8fcf6f171ad72e1453c8a2b337e95ee8a9 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/unittests/test_allclose_op.py | Steffy-zxf/Paddle | 82b23b8fcf6f171ad72e1453c8a2b337e95ee8a9 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 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 unittest
import numpy as np
from op_test import OpTest
import paddle
if __name__ == "__main__":
unittest.main()
| 33.592593 | 80 | 0.592944 | # Copyright (c) 2018 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 unittest
import numpy as np
from op_test import OpTest
import paddle
class TestAllcloseOp(OpTest):
def set_args(self):
self.input = np.array([10000., 1e-07]).astype("float32")
self.other = np.array([10000.1, 1e-08]).astype("float32")
self.rtol = 1e-05
self.atol = 1e-08
self.equal_nan = False
def setUp(self):
self.set_args()
self.op_type = "allclose"
self.inputs = {'Input': self.input, 'Other': self.other}
self.attrs = {
'rtol': self.rtol,
'atol': self.atol,
'equal_nan': self.equal_nan
}
self.outputs = {
'Out': np.array([
np.allclose(
self.inputs['Input'],
self.inputs['Other'],
rtol=self.rtol,
atol=self.atol,
equal_nan=self.equal_nan)
])
}
def test_check_output(self):
self.check_output()
class TestAllcloseOpSmallNum(TestAllcloseOp):
def set_args(self):
self.input = np.array([10000., 1e-08]).astype("float32")
self.other = np.array([10000.1, 1e-09]).astype("float32")
self.rtol = 1e-05
self.atol = 1e-08
self.equal_nan = False
class TestAllcloseOpNanFalse(TestAllcloseOp):
def set_args(self):
self.input = np.array([1.0, float('nan')]).astype("float32")
self.other = np.array([1.0, float('nan')]).astype("float32")
self.rtol = 1e-05
self.atol = 1e-08
self.equal_nan = False
class TestAllcloseOpNanTrue(TestAllcloseOp):
def set_args(self):
self.input = np.array([1.0, float('nan')]).astype("float32")
self.other = np.array([1.0, float('nan')]).astype("float32")
self.rtol = 1e-05
self.atol = 1e-08
self.equal_nan = True
class TestAllcloseDygraph(unittest.TestCase):
def test_api_case(self):
paddle.disable_static()
x_data = np.random.rand(10, 10)
y_data = np.random.rand(10, 10)
x = paddle.to_tensor(x_data)
y = paddle.to_tensor(y_data)
out = paddle.allclose(x, y, rtol=1e-05, atol=1e-08)
expected_out = np.allclose(x_data, y_data, rtol=1e-05, atol=1e-08)
self.assertTrue((out.numpy() == expected_out).all(), True)
paddle.enable_static()
class TestAllcloseError(unittest.TestCase):
def test_input_dtype(self):
def test_x_dtype():
with paddle.static.program_guard(paddle.static.Program(),
paddle.static.Program()):
x = paddle.fluid.data(name='x', shape=[10, 10], dtype='float16')
y = paddle.fluid.data(name='y', shape=[10, 10], dtype='float64')
result = paddle.allclose(x, y)
self.assertRaises(TypeError, test_x_dtype)
def test_y_dtype():
with paddle.static.program_guard(paddle.static.Program(),
paddle.static.Program()):
x = paddle.fluid.data(name='x', shape=[10, 10], dtype='float64')
y = paddle.fluid.data(name='y', shape=[10, 10], dtype='int32')
result = paddle.allclose(x, y)
self.assertRaises(TypeError, test_y_dtype)
def test_attr(self):
x = paddle.fluid.data(name='x', shape=[10, 10], dtype='float64')
y = paddle.fluid.data(name='y', shape=[10, 10], dtype='float64')
def test_rtol():
result = paddle.allclose(x, y, rtol=True)
self.assertRaises(TypeError, test_rtol)
def test_atol():
result = paddle.allclose(x, y, rtol=True)
self.assertRaises(TypeError, test_atol)
def test_equal_nan():
result = paddle.allclose(x, y, equal_nan=1)
self.assertRaises(TypeError, test_equal_nan)
if __name__ == "__main__":
unittest.main()
| 3,291 | 125 | 375 |
bbe11f64ed969361559c9c408832f964831eb078 | 174 | py | Python | flask_swag/extractor/__init__.py | Hardtack/Flask-Swag | 84555d1b88434ed8813a7045f08a98398197e90a | [
"MIT"
] | 10 | 2016-02-08T14:08:20.000Z | 2019-07-21T02:25:02.000Z | flask_swag/extractor/__init__.py | Hardtack/Flask-Swag | 84555d1b88434ed8813a7045f08a98398197e90a | [
"MIT"
] | 2 | 2016-02-11T08:59:00.000Z | 2017-05-08T06:49:28.000Z | flask_swag/extractor/__init__.py | Hardtack/Flask-Swag | 84555d1b88434ed8813a7045f08a98398197e90a | [
"MIT"
] | null | null | null | """
extractor
=========
Extract path info from flask application.
"""
from .base import Extractor
from .mark import MarkExtractor
__all__ = ['Extractor', 'MarkExtractor']
| 14.5 | 41 | 0.706897 | """
extractor
=========
Extract path info from flask application.
"""
from .base import Extractor
from .mark import MarkExtractor
__all__ = ['Extractor', 'MarkExtractor']
| 0 | 0 | 0 |
ab256a8a46bd4d6a36a50cb2513e20b4a1200245 | 1,676 | py | Python | lib/process_util.py | hustwei/chromite | 10eb79abeb64e859362546214b7e039096ac9830 | [
"BSD-3-Clause"
] | null | null | null | lib/process_util.py | hustwei/chromite | 10eb79abeb64e859362546214b7e039096ac9830 | [
"BSD-3-Clause"
] | null | null | null | lib/process_util.py | hustwei/chromite | 10eb79abeb64e859362546214b7e039096ac9830 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Process related utilities."""
from __future__ import print_function
import errno
import os
import signal
import sys
import time
def GetExitStatus(status):
"""Get the exit status of a child from an os.waitpid call.
Args:
status: The return value of os.waitpid(pid, 0)[1]
Returns:
The exit status of the process. If the process exited with a signal,
the return value will be 128 plus the signal number.
"""
if os.WIFSIGNALED(status):
return 128 + os.WTERMSIG(status)
else:
assert os.WIFEXITED(status), 'Unexpected exit status %r' % status
return os.WEXITSTATUS(status)
def ExitAsStatus(status):
"""Exit the same way as |status|.
If the status field says it was killed by a signal, then we'll do that to
ourselves. Otherwise we'll exit with the exit code.
See http://www.cons.org/cracauer/sigint.html for more details.
Args:
status: A status as returned by os.wait type funcs.
"""
exit_status = os.WEXITSTATUS(status)
if os.WIFSIGNALED(status):
# Kill ourselves with the same signal.
sig_status = os.WTERMSIG(status)
pid = os.getpid()
os.kill(pid, sig_status)
time.sleep(0.1)
# Still here? Maybe the signal was masked.
try:
signal.signal(sig_status, signal.SIG_DFL)
except RuntimeError as e:
if e.args[0] != errno.EINVAL:
raise
os.kill(pid, sig_status)
time.sleep(0.1)
# Still here? Just exit.
exit_status = 127
# Exit with the code we want.
sys.exit(exit_status)
| 25.014925 | 75 | 0.693914 | # Copyright 2014 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Process related utilities."""
from __future__ import print_function
import errno
import os
import signal
import sys
import time
def GetExitStatus(status):
"""Get the exit status of a child from an os.waitpid call.
Args:
status: The return value of os.waitpid(pid, 0)[1]
Returns:
The exit status of the process. If the process exited with a signal,
the return value will be 128 plus the signal number.
"""
if os.WIFSIGNALED(status):
return 128 + os.WTERMSIG(status)
else:
assert os.WIFEXITED(status), 'Unexpected exit status %r' % status
return os.WEXITSTATUS(status)
def ExitAsStatus(status):
"""Exit the same way as |status|.
If the status field says it was killed by a signal, then we'll do that to
ourselves. Otherwise we'll exit with the exit code.
See http://www.cons.org/cracauer/sigint.html for more details.
Args:
status: A status as returned by os.wait type funcs.
"""
exit_status = os.WEXITSTATUS(status)
if os.WIFSIGNALED(status):
# Kill ourselves with the same signal.
sig_status = os.WTERMSIG(status)
pid = os.getpid()
os.kill(pid, sig_status)
time.sleep(0.1)
# Still here? Maybe the signal was masked.
try:
signal.signal(sig_status, signal.SIG_DFL)
except RuntimeError as e:
if e.args[0] != errno.EINVAL:
raise
os.kill(pid, sig_status)
time.sleep(0.1)
# Still here? Just exit.
exit_status = 127
# Exit with the code we want.
sys.exit(exit_status)
| 0 | 0 | 0 |
b6f9b268179e914aa4660fb6210f0fd47b82d044 | 7,204 | py | Python | function_testing/test_pointcorr.py | simonsobs/soaculib | db829e74f9feba06b3b90e2b0fc997a4c86ae683 | [
"BSD-2-Clause"
] | 1 | 2022-02-16T22:33:46.000Z | 2022-02-16T22:33:46.000Z | function_testing/test_pointcorr.py | simonsobs/soaculib | db829e74f9feba06b3b90e2b0fc997a4c86ae683 | [
"BSD-2-Clause"
] | null | null | null | function_testing/test_pointcorr.py | simonsobs/soaculib | db829e74f9feba06b3b90e2b0fc997a4c86ae683 | [
"BSD-2-Clause"
] | null | null | null | import soaculib
import test_helpers as th
import time
import numpy as np
import pickle
# Locals.
import spem_model
import util
parser = util.get_parser()
parser.add_argument('mode', default='passive', nargs='?')
args = parser.parse_args()
SPEM_KEYS = [
'IA', 'IE',
'TF', 'TFS',
'TFC',
'AN', 'AW',
# 'AN2', 'AW2',
'NPAE',
'CA',
# 'AES', 'AEC', 'AES2', 'AEC2',
#'EES' ... no elevation ellipticity.
]
IGNORE_WRITEBACK = [] #'AN2', 'AW2']
class SpemHelper:
"""This works with simple parameter names (IA, etc) and values in
degrees (rather than ACU internal mdeg).
"""
DSET = 'DataSets.CmdSPEMParameter'
GLOBAL_EN = ('DataSets.CmdPointingCorrection',
'Systematic error model (SPEM) on')
MDEG = 0.001
keep_going = True
acu = soaculib.AcuControl(args.config)
banner('Check Datasets Present')
for dset in [
'DataSets.StatusSATPDetailed8100',
'DataSets.StatusPointingCorrection',
'DataSets.CmdSPEMParameter',
]:
try:
v1 = acu.Values(dset)
print(' Retrieved %-40s - %i keys' % (dset, len(v1)))
except soaculib.http.HttpError as e:
print(' ! Failed to retrieve %s' % dset)
keep_going = False
check_ok()
banner('Check SPEM Against Schema')
spemh = SpemHelper(acu)
excess_keys = spemh.get().keys()
missing_keys = [k for k in SPEM_KEYS]
print(' Read %i keys (expecting %i)' % (len(excess_keys), len(missing_keys)))
both = set(missing_keys).intersection(excess_keys)
missing_keys = list(set(missing_keys).difference(both))
excess_keys = list(set(excess_keys).difference(both))
if len(missing_keys):
print(' Expected but did not find these keys:')
print(' ' + ', '.join(missing_keys))
keep_going = False
if len(excess_keys):
print(' Found but did not expect these keys:')
print(' ' + ', '.join(excess_keys))
#keep_going = False
check_ok()
banner('Check write-back all SPEM parameters')
if not th.check_remote(acu):
print('ACU is not in remote mode!')
keep_going = False
check_ok()
for k, v in spemh.get().items():
try:
spemh.set({k: v})
except:
print(' Failed to write %s!' % k)
if k not in IGNORE_WRITEBACK:
keep_going = False
continue
print(' Write-back test complete.')
check_ok()
banner('Confirm ACU in Stop')
if acu.mode() != 'Stop':
print(' Any further testing requires ACU to be in stop.')
keep_going = False
else:
print(' ACU is in stop.')
check_ok()
banner('Check SPEM responsiveness')
pos0 = th.get_positions(acu)
print('Current position:', pos0)
# Test basic offsets.
for param in ['IA', 'IE']:
val = 0.1 # deg
print('Set %s=%f deg' % (param, val))
spemh.set({param: val})
print(' new position:', th.get_positions(acu))
spemh.set({param: 0})
banner('Check global enable')
spemh.clear(ignore=IGNORE_WRITEBACK)
pos0 = th.get_positions(acu)
print(' Starting position is az=%8.4f, el=%8.4f' % tuple(pos0))
spemh.set({'IA': 0.3, 'IE': -0.4})
pos1 = th.get_positions(acu)
print(' After SPEM model az=%8.4f, el=%8.4f' % tuple(pos1))
spemh.global_enable(False)
pos2 = th.get_positions(acu)
print(' After SPEM disable az=%8.4f, el=%8.4f' % tuple(pos2))
spemh.global_enable(True)
pos3 = th.get_positions(acu)
print(' After SPEM enable az=%8.4f, el=%8.4f' % tuple(pos3))
spemh.clear(ignore=IGNORE_WRITEBACK)
pos4 = th.get_positions(acu)
print(' After SPEM clear az=%8.4f, el=%8.4f' % tuple(pos4))
if args.mode == 'singles':
# A good mode for debugging individual parameter equations.
banner('Test response to each parameter.')
spemh.clear(ignore=IGNORE_WRITEBACK)
model0 = spemh.get()
pos0 = th.get_positions(acu)
print(' Starting position is az=%8.4f, el=%8.4f' % tuple(pos0))
for k in SPEM_KEYS:
if k in IGNORE_WRITEBACK:
continue
D = 0.4
spemh.set({k: D})
model = dict(model0)
model[k] = D
time.sleep(.2)
pos1 = th.get_positions(acu)
spemh.set({k: 0})
expected = spem_model.delta(pos0, model)
print(' For %-4s = %4.2f only: ' % (k, D) +
'expect [%+7.4f,%+7.4f] ' % tuple(expected) +
'and measure [%+7.4f,%+7.4f]' % tuple(pos1 - pos0),
end='')
if (abs(expected - (pos1-pos0)).sum() > 1e-4):
print(' ! Mismatch.')
else:
print(' * ok')
if args.mode == 'survey':
# A good mode for checking that model makes sense across the sky.
banner('Make a survey of corrections over many pointings.')
model = {'IA': .1,
'IE': .2,
'TF': .3,
#'TFC': .4,
'TFS': .5,
'AN': -.1,
'AW': -.2,
}
# Move through various positions, apply the model at each and
# measure the offsets.
data = [] # [cmd, meas0, meas1]
for el in [40, 45, 55]:
for az in [160, 180, 200]:
print('Moving to az=%.2f el=%.2f' % (az, el))
acu.go_to(az, el)
spemh.clear(ignore=IGNORE_WRITEBACK)
while not th.check_positions(acu, az, el):
time.sleep(.5)
print(' setting stop mode.')
acu.stop()
time.sleep(.2)
pos0 = th.get_positions(acu)
spemh.set(model)
time.sleep(.2)
pos1 = th.get_positions(acu)
print(' delta pos is ', pos1-pos0)
data.append([np.array([az, el]), pos0, pos1])
data = np.array(data)
print(data.shape)
# Write out model and params.
filename = 'spem_survey_%i.pik' % int(time.time())
with open(filename, 'wb') as fout:
pickle.dump({'model': model,
'data': data}, fout)
| 27.601533 | 92 | 0.575236 | import soaculib
import test_helpers as th
import time
import numpy as np
import pickle
# Locals.
import spem_model
import util
parser = util.get_parser()
parser.add_argument('mode', default='passive', nargs='?')
args = parser.parse_args()
SPEM_KEYS = [
'IA', 'IE',
'TF', 'TFS',
'TFC',
'AN', 'AW',
# 'AN2', 'AW2',
'NPAE',
'CA',
# 'AES', 'AEC', 'AES2', 'AEC2',
#'EES' ... no elevation ellipticity.
]
IGNORE_WRITEBACK = [] #'AN2', 'AW2']
class SpemHelper:
"""This works with simple parameter names (IA, etc) and values in
degrees (rather than ACU internal mdeg).
"""
DSET = 'DataSets.CmdSPEMParameter'
GLOBAL_EN = ('DataSets.CmdPointingCorrection',
'Systematic error model (SPEM) on')
MDEG = 0.001
def __init__(self, acu):
self.acu = acu
def global_enable(self, enable=None):
if enable is None:
return self.acu.Values(self.GLOBAL_EN[0])[self.GLOBAL_EN[1]]
self.acu.Command(self.GLOBAL_EN[0], 'Set %s' % self.GLOBAL_EN[1],
int(bool(enable)))
def clear(self, ignore=[]):
vals = self.get(ignore=ignore)
self.set({k: 0 for k in vals.keys()})
return not any(self.get().values())
def get(self, ignore=[]):
# Strip "Parameter " from start of each key.
raw = self.acu.Values(self.DSET)
cleaned = {k.split()[-1]: float(v) * self.MDEG for k, v in raw.items()}
return {k: v for k, v in cleaned.items()
if k not in ignore}
def set(self, dict_arg=None, **kwargs):
all_args = {}
if dict_arg is not None:
all_args.update(dict_arg)
all_args.update(kwargs)
for k, v in all_args.items():
ret_val = self.acu.Command(self.DSET, 'Set Spem_%s' % k, '%f' % (v / self.MDEG))
if ret_val != 'OK, Command send.':
raise RuntimeError('Failed to set parameter: %s' % k)
keep_going = True
def check_ok():
if not keep_going:
parser.exit("Exiting.")
def banner(title):
print()
print('*' * 60)
print(' ' + title)
print('*' * 60)
acu = soaculib.AcuControl(args.config)
banner('Check Datasets Present')
for dset in [
'DataSets.StatusSATPDetailed8100',
'DataSets.StatusPointingCorrection',
'DataSets.CmdSPEMParameter',
]:
try:
v1 = acu.Values(dset)
print(' Retrieved %-40s - %i keys' % (dset, len(v1)))
except soaculib.http.HttpError as e:
print(' ! Failed to retrieve %s' % dset)
keep_going = False
check_ok()
banner('Check SPEM Against Schema')
spemh = SpemHelper(acu)
excess_keys = spemh.get().keys()
missing_keys = [k for k in SPEM_KEYS]
print(' Read %i keys (expecting %i)' % (len(excess_keys), len(missing_keys)))
both = set(missing_keys).intersection(excess_keys)
missing_keys = list(set(missing_keys).difference(both))
excess_keys = list(set(excess_keys).difference(both))
if len(missing_keys):
print(' Expected but did not find these keys:')
print(' ' + ', '.join(missing_keys))
keep_going = False
if len(excess_keys):
print(' Found but did not expect these keys:')
print(' ' + ', '.join(excess_keys))
#keep_going = False
check_ok()
banner('Check write-back all SPEM parameters')
if not th.check_remote(acu):
print('ACU is not in remote mode!')
keep_going = False
check_ok()
for k, v in spemh.get().items():
try:
spemh.set({k: v})
except:
print(' Failed to write %s!' % k)
if k not in IGNORE_WRITEBACK:
keep_going = False
continue
print(' Write-back test complete.')
check_ok()
banner('Confirm ACU in Stop')
if acu.mode() != 'Stop':
print(' Any further testing requires ACU to be in stop.')
keep_going = False
else:
print(' ACU is in stop.')
check_ok()
banner('Check SPEM responsiveness')
pos0 = th.get_positions(acu)
print('Current position:', pos0)
# Test basic offsets.
for param in ['IA', 'IE']:
val = 0.1 # deg
print('Set %s=%f deg' % (param, val))
spemh.set({param: val})
print(' new position:', th.get_positions(acu))
spemh.set({param: 0})
banner('Check global enable')
spemh.clear(ignore=IGNORE_WRITEBACK)
pos0 = th.get_positions(acu)
print(' Starting position is az=%8.4f, el=%8.4f' % tuple(pos0))
spemh.set({'IA': 0.3, 'IE': -0.4})
pos1 = th.get_positions(acu)
print(' After SPEM model az=%8.4f, el=%8.4f' % tuple(pos1))
spemh.global_enable(False)
pos2 = th.get_positions(acu)
print(' After SPEM disable az=%8.4f, el=%8.4f' % tuple(pos2))
spemh.global_enable(True)
pos3 = th.get_positions(acu)
print(' After SPEM enable az=%8.4f, el=%8.4f' % tuple(pos3))
spemh.clear(ignore=IGNORE_WRITEBACK)
pos4 = th.get_positions(acu)
print(' After SPEM clear az=%8.4f, el=%8.4f' % tuple(pos4))
if args.mode == 'singles':
# A good mode for debugging individual parameter equations.
banner('Test response to each parameter.')
spemh.clear(ignore=IGNORE_WRITEBACK)
model0 = spemh.get()
pos0 = th.get_positions(acu)
print(' Starting position is az=%8.4f, el=%8.4f' % tuple(pos0))
for k in SPEM_KEYS:
if k in IGNORE_WRITEBACK:
continue
D = 0.4
spemh.set({k: D})
model = dict(model0)
model[k] = D
time.sleep(.2)
pos1 = th.get_positions(acu)
spemh.set({k: 0})
expected = spem_model.delta(pos0, model)
print(' For %-4s = %4.2f only: ' % (k, D) +
'expect [%+7.4f,%+7.4f] ' % tuple(expected) +
'and measure [%+7.4f,%+7.4f]' % tuple(pos1 - pos0),
end='')
if (abs(expected - (pos1-pos0)).sum() > 1e-4):
print(' ! Mismatch.')
else:
print(' * ok')
if args.mode == 'survey':
# A good mode for checking that model makes sense across the sky.
banner('Make a survey of corrections over many pointings.')
model = {'IA': .1,
'IE': .2,
'TF': .3,
#'TFC': .4,
'TFS': .5,
'AN': -.1,
'AW': -.2,
}
# Move through various positions, apply the model at each and
# measure the offsets.
data = [] # [cmd, meas0, meas1]
for el in [40, 45, 55]:
for az in [160, 180, 200]:
print('Moving to az=%.2f el=%.2f' % (az, el))
acu.go_to(az, el)
spemh.clear(ignore=IGNORE_WRITEBACK)
while not th.check_positions(acu, az, el):
time.sleep(.5)
print(' setting stop mode.')
acu.stop()
time.sleep(.2)
pos0 = th.get_positions(acu)
spemh.set(model)
time.sleep(.2)
pos1 = th.get_positions(acu)
print(' delta pos is ', pos1-pos0)
data.append([np.array([az, el]), pos0, pos1])
data = np.array(data)
print(data.shape)
# Write out model and params.
filename = 'spem_survey_%i.pik' % int(time.time())
with open(filename, 'wb') as fout:
pickle.dump({'model': model,
'data': data}, fout)
| 1,172 | 0 | 192 |
f8a8ba1c09a54c0a8400ac2ff929242b3d0ee342 | 995 | py | Python | django/ledger_base/backend.py | phantomhieve/cashcenter | 642a496c5e60847f4c4a6cc2c80b957ae2d6285b | [
"MIT"
] | null | null | null | django/ledger_base/backend.py | phantomhieve/cashcenter | 642a496c5e60847f4c4a6cc2c80b957ae2d6285b | [
"MIT"
] | 4 | 2021-04-08T22:00:11.000Z | 2021-09-22T19:42:08.000Z | django/ledger_base/backend.py | phantomhieve/cashcenter | 642a496c5e60847f4c4a6cc2c80b957ae2d6285b | [
"MIT"
] | null | null | null | from ledger.models import LedgerData
| 39.8 | 49 | 0.527638 | from ledger.models import LedgerData
def makeInstance(instance, request):
new_instance = LedgerData(
user = request.user,
l_r_no = instance.l_r_no,
l_r_date = instance.l_r_date,
bale_no = instance.bale_no,
supplier = instance.supplier,
location = instance.location,
item = instance.item,
pcs_mtr = instance.pcs_mtr,
price = instance.price,
weight = instance.weight,
frieght = instance.frieght,
transport = instance.transport,
delivery = instance.delivery,
reciept = instance.reciept,
remark = instance.remark,
status = instance.status,
hsn_code = instance.hsn_code,
bill_ammount = instance.bill_ammount,
no_of_bale = instance.no_of_bale
)
return new_instance
| 936 | 0 | 22 |
61379b4f083f9f81ebc303758aee285ce2476135 | 13,529 | py | Python | tests/test_of_mangle.py | cloudysunny14/faucet | 7e4414028f7696e67385b811518ae41d01fc830c | [
"Apache-2.0"
] | 1 | 2016-12-28T15:14:51.000Z | 2016-12-28T15:14:51.000Z | tests/test_of_mangle.py | cloudysunny14/of_mangle | 78fbf4ca897da2995a6ecba6330519b8680ebadb | [
"Apache-2.0"
] | null | null | null | tests/test_of_mangle.py | cloudysunny14/of_mangle | 78fbf4ca897da2995a6ecba6330519b8680ebadb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#
# Copyright 2014 cloudysunny14.
#
# 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.
"""
How to run this test
edit linc config file. LINC-Switch/rel/linc/releases/1.0/sys.config
You can find the sample config I used for the test below:
[
{linc,
[
{of_config, enabled},
{capable_switch_ports,
[
{port, 1, [{interface, "tap0"}]},
{port, 2, [{interface, "tap1"}]}
]},
{capable_switch_queues,
[
{queue, 1, [{min_rate, 100}, {max_rate, 100}]},
{queue, 2, [{min_rate, 100}, {max_rate, 100}]}
]},
{logical_switches,
[
{switch, 0,
[
{backend, linc_us4},
{controllers,
[
{"Switch0-DefaultController", "localhost", 6633, tcp}
]},
{queues_status, enabled},
{ports, [
{port, 1, {queues, [1,2]}},
{port, 2, {queues, [1,2]}}
]}
]}
]}
]},
{enetconf,
[
{capabilities, [{base, {1, 1}},
{startup, {1, 0}},
{'writable-running', {1, 0}}]},
{callback_module, linc_ofconfig},
{sshd_ip, any},
{sshd_port, 1830},
{sshd_user_passwords,
[
{"linc", "linc"}
]}
]},
{lager,
[
{handlers,
[
{lager_console_backend, info},
{lager_file_backend,
[
{"log/error.log", error, 10485760, "$D0", 5},
{"log/console.log", info, 10485760, "$D0", 5}
]}
]}
]},
{sasl,
[
{sasl_error_logger, {file, "log/sasl-error.log"}},
{errlog_type, error},
{error_logger_mf_dir, "log/sasl"}, % Log directory
{error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
{error_logger_mf_maxfiles, 5} % 5 files max
]},
{sync,
[
{excluded_modules, [procket]}
]}
].
Then run linc
# sudo rel/linc/bin/linc console
Then run ryu
# cd of_mangle
# export RYUHOME=$HOME/ryu
# PYTHONPATH=$RYUHOME:. $RYUHOME/bin/ryu-manager --verbose\
tests/test_of_mangle.py
"""
import logging
from ryu.base import app_manager
from ryu.controller import dpset
from ryu.controller.handler import set_ev_cls
from ryu.exception import OFPUnknownVersion
from ryu.lib import ofctl_v1_0
from ryu.lib import ofctl_v1_2
from ryu.lib import ofctl_v1_3
from ryu.lib import hub
from ryu.lib.of_config import capable_switch
from ryu.controller import ofp_event
from ryu.controller import dpset
from ryu.controller.handler import MAIN_DISPATCHER
from ryu.ofproto import ofproto_v1_0
from ryu.ofproto import ofproto_v1_2
from ryu.ofproto import ofproto_v1_3
from app import qoslib
LOG = logging.getLogger(__name__)
LOG_TEST_FINISH = 'TEST_FINISHED: Tests=[%s] (OK=%s NG=%s SKIP=%s)'
| 35.69657 | 83 | 0.572326 | #!/usr/bin/env python
#
# Copyright 2014 cloudysunny14.
#
# 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.
"""
How to run this test
edit linc config file. LINC-Switch/rel/linc/releases/1.0/sys.config
You can find the sample config I used for the test below:
[
{linc,
[
{of_config, enabled},
{capable_switch_ports,
[
{port, 1, [{interface, "tap0"}]},
{port, 2, [{interface, "tap1"}]}
]},
{capable_switch_queues,
[
{queue, 1, [{min_rate, 100}, {max_rate, 100}]},
{queue, 2, [{min_rate, 100}, {max_rate, 100}]}
]},
{logical_switches,
[
{switch, 0,
[
{backend, linc_us4},
{controllers,
[
{"Switch0-DefaultController", "localhost", 6633, tcp}
]},
{queues_status, enabled},
{ports, [
{port, 1, {queues, [1,2]}},
{port, 2, {queues, [1,2]}}
]}
]}
]}
]},
{enetconf,
[
{capabilities, [{base, {1, 1}},
{startup, {1, 0}},
{'writable-running', {1, 0}}]},
{callback_module, linc_ofconfig},
{sshd_ip, any},
{sshd_port, 1830},
{sshd_user_passwords,
[
{"linc", "linc"}
]}
]},
{lager,
[
{handlers,
[
{lager_console_backend, info},
{lager_file_backend,
[
{"log/error.log", error, 10485760, "$D0", 5},
{"log/console.log", info, 10485760, "$D0", 5}
]}
]}
]},
{sasl,
[
{sasl_error_logger, {file, "log/sasl-error.log"}},
{errlog_type, error},
{error_logger_mf_dir, "log/sasl"}, % Log directory
{error_logger_mf_maxbytes, 10485760}, % 10 MB max file size
{error_logger_mf_maxfiles, 5} % 5 files max
]},
{sync,
[
{excluded_modules, [procket]}
]}
].
Then run linc
# sudo rel/linc/bin/linc console
Then run ryu
# cd of_mangle
# export RYUHOME=$HOME/ryu
# PYTHONPATH=$RYUHOME:. $RYUHOME/bin/ryu-manager --verbose\
tests/test_of_mangle.py
"""
import logging
from ryu.base import app_manager
from ryu.controller import dpset
from ryu.controller.handler import set_ev_cls
from ryu.exception import OFPUnknownVersion
from ryu.lib import ofctl_v1_0
from ryu.lib import ofctl_v1_2
from ryu.lib import ofctl_v1_3
from ryu.lib import hub
from ryu.lib.of_config import capable_switch
from ryu.controller import ofp_event
from ryu.controller import dpset
from ryu.controller.handler import MAIN_DISPATCHER
from ryu.ofproto import ofproto_v1_0
from ryu.ofproto import ofproto_v1_2
from ryu.ofproto import ofproto_v1_3
from app import qoslib
LOG = logging.getLogger(__name__)
LOG_TEST_FINISH = 'TEST_FINISHED: Tests=[%s] (OK=%s NG=%s SKIP=%s)'
def get_flow_stats(dp, waiters, ofctl):
table_id = dp.ofproto.OFPTT_ALL
flags = 0
out_port = dp.ofproto.OFPP_ANY
out_group = dp.ofproto.OFPG_ANY
cookie = 0
cookie_mask = 0
match = dp.ofproto_parser.OFPMatch()
stats = dp.ofproto_parser.OFPFlowStatsRequest(
dp, flags, table_id, out_port, out_group, cookie, cookie_mask,
match)
msgs = []
ofctl.send_stats_request(dp, stats, waiters, msgs)
flows = []
for msg in msgs:
for stats in msg.body:
actions = ofctl.actions_to_str(stats.instructions)
match = ofctl.match_to_str(stats.match)
s = {'priority': stats.priority,
'cookie': stats.cookie,
'idle_timeout': stats.idle_timeout,
'hard_timeout': stats.hard_timeout,
'actions': actions,
'match': match,
'table_id': stats.table_id}
flows.append(s)
flows = {str(dp.id): flows}
return flows
def delete_all_flows(dp):
match = dp.ofproto_parser.OFPMatch()
m = dp.ofproto_parser.OFPFlowMod(dp, 0, 0, dp.ofproto.OFPTT_ALL,
dp.ofproto.OFPFC_DELETE,
0, 0, 0, 0xffffffff,
dp.ofproto.OFPP_ANY,
dp.ofproto.OFPG_ANY,
0, match, [])
dp.send_msg(m)
class OFMangleTester(app_manager.RyuApp):
OFP_VERSIONS = [ofproto_v1_3.OFP_VERSION]
_CONTEXTS = {'dpset': dpset.DPSet,
'qoslib': qoslib.QoSLib}
_OFCTL = {ofproto_v1_0.OFP_VERSION: ofctl_v1_0,
ofproto_v1_2.OFP_VERSION: ofctl_v1_2,
ofproto_v1_3.OFP_VERSION: ofctl_v1_3}
def __init__(self, *args, **kwargs):
super(OFMangleTester, self).__init__(*args, **kwargs)
self.dpset = kwargs['dpset']
self.qoslib = kwargs['qoslib']
self.qoslib.use_switch_flow = False
self.waiters = {}
self.pending = []
self.results = {}
self.capable_switch = capable_switch.OFCapableSwitch(
host='localhost',
port=1830,
username='linc',
password='linc',
unknown_host_cb=lambda host,
fingeprint: True)
for t in dir(self):
if t.startswith("test_"):
self.pending.append(t)
self.pending.sort(reverse=True)
def stats_reply_handler(self, ev):
msg = ev.msg
dp = msg.datapath
if dp.id not in self.waiters:
return
if msg.xid not in self.waiters[dp.id]:
return
lock, msgs = self.waiters[dp.id][msg.xid]
msgs.append(msg)
flags = 0
if dp.ofproto.OFP_VERSION == ofproto_v1_0.OFP_VERSION or \
dp.ofproto.OFP_VERSION == ofproto_v1_2.OFP_VERSION:
flags = dp.ofproto.OFPSF_REPLY_MORE
elif dp.ofproto.OFP_VERSION == ofproto_v1_3.OFP_VERSION:
flags = dp.ofproto.OFPMPF_REPLY_MORE
if msg.flags & flags:
return
del self.waiters[dp.id][msg.xid]
lock.set()
# for OpenFlow version1.0
@set_ev_cls(ofp_event.EventOFPFlowStatsReply, MAIN_DISPATCHER)
def stats_reply_handler_v1_0(self, ev):
self.stats_reply_handler(ev)
# for OpenFlow version1.2 or later
@set_ev_cls(ofp_event.EventOFPStatsReply, MAIN_DISPATCHER)
def stats_reply_handler_v1_2(self, ev):
self.stats_reply_handler(ev)
@set_ev_cls(dpset.EventDP, dpset.DPSET_EV_DISPATCHER)
def datapath_handler(self, ev):
# Target switch datapath
self.dp = ev.dp
version = self.dp.ofproto.OFP_VERSION
if version not in self._OFCTL:
raise OFPUnknownVersion(version=version)
self.ofctl = self._OFCTL[version]
hub.spawn(self._do_test)
def test_action_accept(self):
mangle = qoslib.QoSLib.mangle(self.dp)
mangle.add_property('action', 'accept').\
add_property('dst-address', '10.0.0.2').\
add_property('chain', 'forward')
self.qoslib.add_mangle(mangle)
msg = get_flow_stats(self.dp, self.waiters, self.ofctl)
flow = msg[msg.keys()[0]][0]
return ({'hard_timeout': 0, 'actions': ['GOTO_TABLE:3'], 'priority': 0,
'idle_timeout': 0, 'cookie': 0, 'table_id': 2,
'match': {'dl_type': 2048, 'nw_dst': '10.0.0.2'}} == flow)
def test_action_list(self):
mangle = qoslib.QoSLib.mangle(self.dp)
mangle.address_list('first', ['10.0.0.2', '10.0.0.3'])
mangle.add_property('action', 'accept').\
add_property('dst-address-list', 'first').\
add_property('chain', 'forward')
self.qoslib.add_mangle(mangle)
msg = get_flow_stats(self.dp, self.waiters, self.ofctl)
flow = msg[msg.keys()[0]]
LOG.info(flow)
return ([{'hard_timeout': 0, 'actions': ['GOTO_TABLE:3'],
'priority': 0, 'idle_timeout': 0, 'cookie': 2113536,
'table_id': 2, 'match': {'dl_type': 2048, 'nw_dst': '10.0.0.3'}},
{'hard_timeout': 0, 'actions': ['GOTO_TABLE:3'],
'priority': 0, 'idle_timeout': 0, 'cookie': 2113536,
'table_id': 2,
'match': {'dl_type': 2048, 'nw_dst': '10.0.0.2'}}] == flow)
def test_add_address_list(self):
mangle = qoslib.QoSLib.mangle(self.dp)
mangle.address_list('add_telnet', ['10.0.2.1', '10.0.3.1'])
mangle.add_property('action', 'add-dst-to-address-list').\
add_property('address-list', 'add_telnet').\
add_property('dst-port', 5001).\
add_property('chain', 'input').\
add_property('priority', 100)
self.qoslib.add_mangle(mangle)
mangle = qoslib.QoSLib.mangle(self.dp)
mangle.add_property('action', 'mark-packet').\
add_property('src-address-list', 'add_telnet').\
add_property('new-packet-mark', 'drop').\
add_property('chain', 'preforward')
self.qoslib.add_mangle(mangle)
mangle = qoslib.QoSLib.mangle(self.dp)
mangle.add_property('action', 'accept').\
add_property('chain', 'input').\
add_property('priority', 0)
self.qoslib.add_mangle(mangle)
msg = get_flow_stats(self.dp, self.waiters, self.ofctl)
flow = msg[msg.keys()[0]]
LOG.info(flow)
return ([{'hard_timeout': 0, 'actions': ['OUTPUT:4294967293'],
'priority': 100, 'idle_timeout': 0, 'cookie': 1048576,
'table_id': 0, 'match': {'dl_type': 2048, 'nw_proto': 6,
'tp_dst': 5001}}, {'hard_timeout': 0,
'actions': ['GOTO_TABLE:3'], 'priority': 0, 'idle_timeout': 0,
'cookie': 0, 'table_id': 0, 'match': {}}, {'hard_timeout': 0,
'actions': ['SET_FIELD: {ip_dscp:2}', 'GOTO_TABLE:2'],
'priority': 0, 'idle_timeout': 0, 'cookie': 1056768,
'table_id': 1, 'match': {'dl_type': 2048,
'nw_src': '10.0.3.1'}}, {'hard_timeout': 0,
'actions': ['SET_FIELD: {ip_dscp:2}', 'GOTO_TABLE:2'],
'priority': 0, 'idle_timeout': 0, 'cookie': 1056768,
'table_id': 1, 'match': {'dl_type': 2048,
'nw_src': '10.0.2.1'}}] == flow)
def test_match_mac(self):
mangle = qoslib.QoSLib.mangle(self.dp)
mangle.add_property('action', 'accept').\
add_property('dst-mac-address', '11:11:11:11:11:11').\
add_property('chain', 'forward')
self.qoslib.add_mangle(mangle)
msg = get_flow_stats(self.dp, self.waiters, self.ofctl)
flow = msg[msg.keys()[0]]
return ([{'hard_timeout': 0, 'actions': ['GOTO_TABLE:3'],
'priority': 0, 'idle_timeout': 0, 'cookie': 0,
'table_id': 2, 'match': {'dl_dst':
'11:11:11:11:11:11'}}] == flow)
def test_add_queue(self):
queue = qoslib.QoSLib.queue_tree(self.capable_switch, self.dp)
queue.queue('high-priority', '500', '500')
self.qoslib.register_queue(queue)
return True
def test_queue_configuration(self):
queue = qoslib.QoSLib.queue_tree(self.capable_switch, self.dp)
queue.queue('best-effort-queue', '100', '100')
self.qoslib.register_queue(queue)
mangle = qoslib.QoSLib.mangle(self.dp)
mangle.add_property('action', 'mark-packet').\
add_property('new-packet-mark', 'best-effort').\
add_property('src-address', '10.0.1.0/24').\
add_property('jump', 'forward')
self.qoslib.add_mangle(mangle)
mangle = qoslib.QoSLib.mangle(self.dp)
mangle.add_property('action', 'accept').\
add_property('queue', 'best-effort-queue').\
add_property('packet-mark', 'best-effort').\
add_property('chain', 'forward')
self.qoslib.add_mangle(mangle)
msg = get_flow_stats(self.dp, self.waiters, self.ofctl)
flow = msg[msg.keys()[0]]
LOG.info(flow)
return ([{'hard_timeout': 0, 'actions':
['SET_FIELD: {ip_dscp:1}', 'GOTO_TABLE:2'], 'priority': 0,
'idle_timeout': 0, 'cookie': 0, 'table_id': 0,
'match': {'dl_type': 2048, 'nw_src': '10.0.1.0/24'}},
{'hard_timeout': 0, 'actions': ['SET_QUEUE:2',
'GOTO_TABLE:3'], 'priority': 0, 'idle_timeout': 0,
'cookie': 0, 'table_id': 2, 'match': {'dl_type': 2048,
'ip_dscp': 1}}] == flow)
def _print_results(self):
LOG.info("TEST_RESULTS:")
ok = 0
ng = 0
skip = 0
for t in sorted(self.results.keys()):
if self.results[t] is True:
ok += 1
else:
ng += 1
LOG.info(" %s: %s", t, self.results[t])
LOG.info(LOG_TEST_FINISH, len(self.pending), ok, ng, skip)
def _do_test(self):
""""""
for test in self.pending:
delete_all_flows(self.dp)
self.results[test] = getattr(self, test)()
self._print_results()
| 9,184 | 1,110 | 74 |
e644729f9f477affc4780f5fb80a7494502e4463 | 1,708 | py | Python | orchestra/contrib/domains/utils.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 68 | 2015-02-09T10:28:44.000Z | 2022-03-12T11:08:36.000Z | orchestra/contrib/domains/utils.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 17 | 2015-05-01T18:10:03.000Z | 2021-03-19T21:52:55.000Z | orchestra/contrib/domains/utils.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 29 | 2015-03-31T04:51:03.000Z | 2022-02-17T02:58:50.000Z | from collections import defaultdict
from django.utils import timezone
class RecordStorage(object):
"""
list-dict implementation for fast lookups of record types
"""
def format_hostmaster(hostmaster):
"""
The DNS encodes the <local-part> as a single label, and encodes the
<mail-domain> as a domain name. The single label from the <local-part>
is prefaced to the domain name from <mail-domain> to form the domain
name corresponding to the mailbox. Thus the mailbox HOSTMASTER@SRI-
NIC.ARPA is mapped into the domain name HOSTMASTER.SRI-NIC.ARPA. If the
<local-part> contains dots or other special characters, its
representation in a master file will require the use of backslash
quoting to ensure that the domain name is properly encoded. For
example, the mailbox Action.domains@ISI.EDU would be represented as
Action\.domains.ISI.EDU.
http://www.ietf.org/rfc/rfc1035.txt
"""
name, domain = hostmaster.split('@')
if '.' in name:
name = name.replace('.', '\.')
return "%s.%s." % (name, domain)
| 32.226415 | 76 | 0.659251 | from collections import defaultdict
from django.utils import timezone
class RecordStorage(object):
"""
list-dict implementation for fast lookups of record types
"""
def __init__(self, *args):
self.records = list(*args)
self.type = defaultdict(list)
def __iter__(self):
return iter(self.records)
def append(self, record):
self.records.append(record)
self.type[record['type']].append(record)
def insert(self, ix, record):
self.records.insert(ix, record)
self.type[record['type']].insert(ix, record)
def by_type(self, type):
return self.type[type]
def generate_zone_serial():
today = timezone.now()
return int("%.4d%.2d%.2d%.2d" % (today.year, today.month, today.day, 0))
def format_hostmaster(hostmaster):
"""
The DNS encodes the <local-part> as a single label, and encodes the
<mail-domain> as a domain name. The single label from the <local-part>
is prefaced to the domain name from <mail-domain> to form the domain
name corresponding to the mailbox. Thus the mailbox HOSTMASTER@SRI-
NIC.ARPA is mapped into the domain name HOSTMASTER.SRI-NIC.ARPA. If the
<local-part> contains dots or other special characters, its
representation in a master file will require the use of backslash
quoting to ensure that the domain name is properly encoded. For
example, the mailbox Action.domains@ISI.EDU would be represented as
Action\.domains.ISI.EDU.
http://www.ietf.org/rfc/rfc1035.txt
"""
name, domain = hostmaster.split('@')
if '.' in name:
name = name.replace('.', '\.')
return "%s.%s." % (name, domain)
| 444 | 0 | 178 |
edae5c03b18bc54c2307cfc6aff9c4173371eb1c | 5,398 | py | Python | dbinit/dump.py | mrdepth/libdgmpp | 2721f7f905a2c015383868db5043c382fe682ab0 | [
"MIT"
] | 13 | 2016-04-30T17:14:59.000Z | 2021-08-19T01:52:38.000Z | dbinit/dump.py | mrdepth/eufe | 2721f7f905a2c015383868db5043c382fe682ab0 | [
"MIT"
] | 7 | 2017-12-19T23:13:35.000Z | 2018-08-02T14:14:15.000Z | dbinit/dump.py | mrdepth/eufe | 2721f7f905a2c015383868db5043c382fe682ab0 | [
"MIT"
] | 8 | 2016-01-26T16:52:37.000Z | 2021-10-15T08:29:48.000Z |
import yaml
import json
import sqlite3
from functools import reduce
import operator
import time
f=open('./tmp/sde/typeIDs.json', 'r', encoding='utf-8')
j=json.load(f)
#y=load("./tmp/sde/fsd/typeIDs.yaml")
#f=open('./tmp/sde/typeIDs.json', 'w', encoding='utf-8')
#json.dump(y, f)
#f.write(json.dump(y))
#f.close()
#db = sqlite3.connect(':memory:')
db = sqlite3.connect("./tmp/db.sqlite")
c = db.cursor()
c.execute('''
CREATE TABLE invCategories (
"categoryID" tinyint(3) NOT NULL,
"categoryName" TEXT(100),
"published" tinyint(1),
PRIMARY KEY ("categoryID")
);
''')
c.execute('''
CREATE TABLE invGroups (
"groupID" smallint(6) NOT NULL,
"groupName" varchar(100) DEFAULT NULL,
"categoryID" tinyint(3) default NULL,
"published" tinyint(1),
PRIMARY KEY ("groupID")
);
''')
c.execute('''
CREATE TABLE invTypes (
"typeID" int(11) NOT NULL,
"groupID" smallint(6) default NULL,
"typeName" varchar(100) default NULL,
"radius" double default NULL,
"mass" double default NULL,
"volume" double default NULL,
"capacity" double default NULL,
"portionSize" int(11) default NULL,
"raceID" tinyint(3) default NULL,
"published" tinyint(1) default NULL,
"metaGroupID" integer default NULL,
"parentTypeID" integer default NULL,
PRIMARY KEY ("typeID")
);
''')
c.execute('''
CREATE TABLE dgmAttributeTypes (
"attributeID" smallint(6) NOT NULL,
"attributeName" varchar(100) default NULL,
"displayName" varchar(100) default NULL,
"maxAttributeID" smallint(6) default NULL,
"defaultValue" double default NULL,
"stackable" tinyint(1) default NULL,
"highIsGood" tinyint(1) default NULL,
"categoryID" tinyint(3) default NULL,
PRIMARY KEY ("attributeID")
);
''')
c.execute('''
CREATE TABLE dgmTypeAttributes (
"typeID" smallint(6) NOT NULL,
"attributeID" smallint(6) NOT NULL,
"value" double default NULL,
PRIMARY KEY ("typeID","attributeID")
);
''')
c.execute('''
CREATE TABLE dgmTypeEffects (
"typeID" smallint(6) NOT NULL,
"effectID" smallint(6) NOT NULL,
"isDefault" tinyint(1) default NULL,
PRIMARY KEY ("typeID","effectID")
);
''')
c.execute('''
CREATE TABLE dgmEffects (
"effectID" smallint(6),
"effectName" TEXT(400),
"effectCategory" TEXT(100),
"isOffensive" INTEGER,
"isAssistance" INTEGER,
"modifierInfo" TEXT,
PRIMARY KEY ("effectID")
);
''')
c.execute('''
CREATE TABLE planetSchematics (
"schematicID" smallint(6) NOT NULL,
"schematicName" varchar(255) DEFAULT NULL,
"cycleTime" integer DEFAULT NULL,
PRIMARY KEY ("schematicID")
);
''')
c.execute('''
CREATE TABLE planetSchematicsPinMap (
"schematicID" smallint(6) NOT NULL,
"pinTypeID" integer NOT NULL,
PRIMARY KEY ("schematicID","pinTypeID")
);
''')
c.execute('''
CREATE TABLE planetSchematicsTypeMap (
"schematicID" smallint(6) NOT NULL,
"typeID" integer NOT NULL,
"quantity" integer DEFAULT NULL,
"isInput" integer DEFAULT NULL,
PRIMARY KEY ("schematicID","typeID")
);
''')
for id, row in load("./tmp/sde/fsd/categoryIDs.yaml"):
insert('invCategories', id, ['name.en', 'published'], row)
for id, row in load("./tmp/sde/fsd/groupIDs.yaml"):
insert('invGroups', id, ['name.en', 'categoryID', 'published'], row)
for id, row in load("./tmp/sde/fsd/dogmaAttributes.yaml"):
insert('dgmAttributeTypes', id, ['name', 'displayNameID.en', 'maxAttributeID', 'defaultValue', 'stackable', 'highIsGood', 'categoryID'], row)
for id, row in load("./tmp/sde/fsd/dogmaEffects.yaml"):
modifierInfo = find('modifierInfo', row)
if modifierInfo:
row['modifierInfo'] = yaml.dump(modifierInfo)
insert('dgmEffects', id, ['effectName', 'effectCategory', 'isOffensive', 'isAssistance', 'modifierInfo'], row)
for id, row in load("./tmp/sde/fsd/typeIDs.yaml"):
insert('invTypes', id, ['groupID', 'name.en', 'radius', 'mass', 'valume', 'capacity', 'portionSize', 'raceID', 'published', 'metaGroupID', 'variationParentTypeID'], row)
for id, type in load("./tmp/sde/fsd/typeDogma.yaml"):
try:
for row in find("dogmaAttributes", type):
insert('dgmTypeAttributes', id, ['attributeID', 'value'], row)
except:
pass
try:
for row in find("dogmaEffects", type):
insert('dgmTypeEffects', id, ['effectID', 'isDefault'], row)
except:
pass
for row in load("./tmp/sde/bsd/planetSchematics.yaml"):
insert('planetSchematics', row['schematicID'], ['schematicName', 'cycleTime'], row)
for row in load("./tmp/sde/bsd/planetSchematicsPinMap.yaml"):
insert('planetSchematicsPinMap', row['schematicID'], ['pinTypeID'], row)
for row in load("./tmp/sde/bsd/planetSchematicsTypeMap.yaml"):
insert('planetSchematicsTypeMap', row['schematicID'], ['typeID', 'quantity', 'isInput'], row)
db.commit()
db.close()
| 27.682051 | 173 | 0.667469 |
import yaml
import json
import sqlite3
from functools import reduce
import operator
import time
def f():
return None
def load(path):
t0 = time.time()
s=open(path, "r", encoding="utf-8").read()
result = yaml.load(s, yaml.CLoader)
if isinstance(result, dict):
result = result#.items()
t1 = time.time()
print('yaml: {} {}s'.format(path, int((t1 - t0))))
return result
f=open('./tmp/sde/typeIDs.json', 'r', encoding='utf-8')
j=json.load(f)
#y=load("./tmp/sde/fsd/typeIDs.yaml")
#f=open('./tmp/sde/typeIDs.json', 'w', encoding='utf-8')
#json.dump(y, f)
#f.write(json.dump(y))
#f.close()
#db = sqlite3.connect(':memory:')
db = sqlite3.connect("./tmp/db.sqlite")
c = db.cursor()
c.execute('''
CREATE TABLE invCategories (
"categoryID" tinyint(3) NOT NULL,
"categoryName" TEXT(100),
"published" tinyint(1),
PRIMARY KEY ("categoryID")
);
''')
c.execute('''
CREATE TABLE invGroups (
"groupID" smallint(6) NOT NULL,
"groupName" varchar(100) DEFAULT NULL,
"categoryID" tinyint(3) default NULL,
"published" tinyint(1),
PRIMARY KEY ("groupID")
);
''')
c.execute('''
CREATE TABLE invTypes (
"typeID" int(11) NOT NULL,
"groupID" smallint(6) default NULL,
"typeName" varchar(100) default NULL,
"radius" double default NULL,
"mass" double default NULL,
"volume" double default NULL,
"capacity" double default NULL,
"portionSize" int(11) default NULL,
"raceID" tinyint(3) default NULL,
"published" tinyint(1) default NULL,
"metaGroupID" integer default NULL,
"parentTypeID" integer default NULL,
PRIMARY KEY ("typeID")
);
''')
c.execute('''
CREATE TABLE dgmAttributeTypes (
"attributeID" smallint(6) NOT NULL,
"attributeName" varchar(100) default NULL,
"displayName" varchar(100) default NULL,
"maxAttributeID" smallint(6) default NULL,
"defaultValue" double default NULL,
"stackable" tinyint(1) default NULL,
"highIsGood" tinyint(1) default NULL,
"categoryID" tinyint(3) default NULL,
PRIMARY KEY ("attributeID")
);
''')
c.execute('''
CREATE TABLE dgmTypeAttributes (
"typeID" smallint(6) NOT NULL,
"attributeID" smallint(6) NOT NULL,
"value" double default NULL,
PRIMARY KEY ("typeID","attributeID")
);
''')
c.execute('''
CREATE TABLE dgmTypeEffects (
"typeID" smallint(6) NOT NULL,
"effectID" smallint(6) NOT NULL,
"isDefault" tinyint(1) default NULL,
PRIMARY KEY ("typeID","effectID")
);
''')
c.execute('''
CREATE TABLE dgmEffects (
"effectID" smallint(6),
"effectName" TEXT(400),
"effectCategory" TEXT(100),
"isOffensive" INTEGER,
"isAssistance" INTEGER,
"modifierInfo" TEXT,
PRIMARY KEY ("effectID")
);
''')
c.execute('''
CREATE TABLE planetSchematics (
"schematicID" smallint(6) NOT NULL,
"schematicName" varchar(255) DEFAULT NULL,
"cycleTime" integer DEFAULT NULL,
PRIMARY KEY ("schematicID")
);
''')
c.execute('''
CREATE TABLE planetSchematicsPinMap (
"schematicID" smallint(6) NOT NULL,
"pinTypeID" integer NOT NULL,
PRIMARY KEY ("schematicID","pinTypeID")
);
''')
c.execute('''
CREATE TABLE planetSchematicsTypeMap (
"schematicID" smallint(6) NOT NULL,
"typeID" integer NOT NULL,
"quantity" integer DEFAULT NULL,
"isInput" integer DEFAULT NULL,
PRIMARY KEY ("schematicID","typeID")
);
''')
def find(element, json):
try:
return reduce(operator.getitem, element.split('.'), json)
except:
return None
def insert(table, id, keys, row):
values=[id] + [find(x, row) for x in keys]
marks = ','.join(['?' for x in values])
sql='INSERT INTO {} VALUES ({})'.format(table, marks)
c.execute(sql, tuple(values))
for id, row in load("./tmp/sde/fsd/categoryIDs.yaml"):
insert('invCategories', id, ['name.en', 'published'], row)
for id, row in load("./tmp/sde/fsd/groupIDs.yaml"):
insert('invGroups', id, ['name.en', 'categoryID', 'published'], row)
for id, row in load("./tmp/sde/fsd/dogmaAttributes.yaml"):
insert('dgmAttributeTypes', id, ['name', 'displayNameID.en', 'maxAttributeID', 'defaultValue', 'stackable', 'highIsGood', 'categoryID'], row)
for id, row in load("./tmp/sde/fsd/dogmaEffects.yaml"):
modifierInfo = find('modifierInfo', row)
if modifierInfo:
row['modifierInfo'] = yaml.dump(modifierInfo)
insert('dgmEffects', id, ['effectName', 'effectCategory', 'isOffensive', 'isAssistance', 'modifierInfo'], row)
for id, row in load("./tmp/sde/fsd/typeIDs.yaml"):
insert('invTypes', id, ['groupID', 'name.en', 'radius', 'mass', 'valume', 'capacity', 'portionSize', 'raceID', 'published', 'metaGroupID', 'variationParentTypeID'], row)
for id, type in load("./tmp/sde/fsd/typeDogma.yaml"):
try:
for row in find("dogmaAttributes", type):
insert('dgmTypeAttributes', id, ['attributeID', 'value'], row)
except:
pass
try:
for row in find("dogmaEffects", type):
insert('dgmTypeEffects', id, ['effectID', 'isDefault'], row)
except:
pass
for row in load("./tmp/sde/bsd/planetSchematics.yaml"):
insert('planetSchematics', row['schematicID'], ['schematicName', 'cycleTime'], row)
for row in load("./tmp/sde/bsd/planetSchematicsPinMap.yaml"):
insert('planetSchematicsPinMap', row['schematicID'], ['pinTypeID'], row)
for row in load("./tmp/sde/bsd/planetSchematicsTypeMap.yaml"):
insert('planetSchematicsTypeMap', row['schematicID'], ['typeID', 'quantity', 'isInput'], row)
db.commit()
db.close()
| 570 | 0 | 91 |
35dca39e0121540a436f6da96d93d03e4d00edc2 | 689 | py | Python | tests/theano/__init__.py | brandonwillard/symbolic-pymc | 84e8d612c714f502f8d188c1766498f4ff7beecf | [
"Apache-2.0"
] | 59 | 2019-02-16T21:07:48.000Z | 2022-03-09T01:01:45.000Z | tests/theano/__init__.py | brandonwillard/symbolic-pymc | 84e8d612c714f502f8d188c1766498f4ff7beecf | [
"Apache-2.0"
] | 56 | 2019-02-20T09:06:04.000Z | 2021-01-08T21:22:23.000Z | tests/theano/__init__.py | brandonwillard/symbolic-pymc | 84e8d612c714f502f8d188c1766498f4ff7beecf | [
"Apache-2.0"
] | 9 | 2019-02-22T06:22:31.000Z | 2021-07-05T10:05:35.000Z | import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
import theano
import pymc3 as pm
from functools import wraps
theano.config.compute_test_value = "ignore"
theano.config.on_opt_error = "raise"
theano.config.mode = "FAST_COMPILE"
theano.config.cxx = ""
| 19.685714 | 66 | 0.676343 | import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
import theano
import pymc3 as pm
from functools import wraps
theano.config.compute_test_value = "ignore"
theano.config.on_opt_error = "raise"
theano.config.mode = "FAST_COMPILE"
theano.config.cxx = ""
def requires_test_values(f):
@wraps(f)
def _f(*args, **kwargs):
import theano
last_value = theano.config.compute_test_value
theano.config.compute_test_value = "raise"
try:
res = f(*args, **kwargs)
finally:
theano.config.compute_test_value = last_value
return res
return _f
| 340 | 0 | 23 |
70778d96d5999b4ef52cb4dde6e9df7135bb617c | 13,904 | py | Python | Segmentation/eval_performance.py | atomized1/MRI_Segmentation_Radiomics | 3998dd26b60972f41d3b397cecdad16563df4189 | [
"Apache-2.0"
] | 12 | 2020-02-14T05:33:24.000Z | 2022-01-13T16:37:44.000Z | Segmentation/eval_performance.py | atomized1/MRI_Segmentation_Radiomics | 3998dd26b60972f41d3b397cecdad16563df4189 | [
"Apache-2.0"
] | 3 | 2020-01-28T22:20:08.000Z | 2022-02-09T23:33:30.000Z | Segmentation/eval_performance.py | atomized1/MRI_Segmentation_Radiomics | 3998dd26b60972f41d3b397cecdad16563df4189 | [
"Apache-2.0"
] | 4 | 2020-06-12T02:59:55.000Z | 2021-08-20T05:42:34.000Z | import os
from MachineLearning.load_datasets import load_filenames_2nd, load_data, keep_t2
from glob2 import glob
import nibabel as nib
import numpy as np
import keras
from Segmentation.model_keras import *
from sklearn.metrics import precision_recall_curve, precision_score, \
recall_score, roc_auc_score, f1_score, \
precision_recall_fscore_support, matthews_corrcoef, jaccard_similarity_score, accuracy_score
import pandas as pd
from pylab import rcParams
import seaborn as sns
# Set up plotting properties
sns.set(style='ticks', palette='Spectral', font_scale=1.5)
rcParams['figure.figsize'] = 6, 4
RAND_SEED = 42
def load_models(paths):
"""
Loads a list of models
Args:
paths (list): list of paths to models (not including the filename)
Returns:
"""
model = []
for path in paths:
model_path = os.path.join(path, 'Trained_model.h5')
model.append(keras.models.load_model(model_path,
custom_objects={'dice_loss': dice_loss,
'dice_metric': dice_metric}))
return model
def score_pred(Y_lab, Y_prob, threshold):
"""
Calculate a set of scores for the predictions
Args:
Y_lab (numpy array): labels
Y_prob (numpy array): predictions as probablilities
threshold (float): threshold for predictions
Returns:
(float): precision
(float): recall
(float): f1 score (Dice)
(float): support
(float): volume overlap error
(float): binary accuracy
"""
Y_thresh = Y_prob >= threshold
precision = []
recall = []
fbeta_score = []
support = []
voe = []
acc = []
Y_lab = Y_lab.reshape(-1)
Y_thresh = Y_thresh.reshape(-1)
# Compute precision/recall scores
scores = precision_recall_fscore_support(y_true=Y_lab, y_pred=Y_thresh)
precision.append(scores[0][1])
recall.append(scores[1][1])
fbeta_score.append(scores[2][1])
support.append(scores[3][1]/(scores[3][0] + scores[3][1])) # percent of volume occupied by tumor
voe.append(jaccard_similarity_score(y_true=Y_lab, y_pred=Y_thresh))
acc.append(accuracy_score(y_true=Y_lab, y_pred=Y_thresh, normalize=True))
return precision, recall, fbeta_score, support, voe, acc
def main(paths, spath):
"""
Args:
paths (list of str): path to t2_only and all_contrast models
thresholds (list of float): training thresholds
Returns:
"""
# Set up data constants
block_size = [18, 142, 142]
oversamp_test = 1.0
lab_trun = 2
test_split = 0.1
# Load models
models = load_models(paths)
# Set up data generator
gen_t2 = load_test_volumes(only_t2=True)
gen = load_test_volumes()
nsets = next(gen)
nsets = next(gen_t2)
print('Testing using {} sets'.format(nsets))
# Set up metric lists
df = pd.DataFrame(columns=['Loss', 'Data', 'Precision', 'Recall', 'Dice', 'Support', 'VOE', 'Accuracy'])
df_cat = pd.DataFrame(columns=['Loss', 'Data', 'Metric', 'Value']) # Concatenated dataframe
contrasts = ['Multi-modal', 'T2 only']
con_lab = ['t2', 'all']
# Process
clear_vol_stats()
thresholds = []
flag = True
z = 0
while flag:
try:
print('\tVolume %d' % (z + 1))
print('Loading test batch')
[xall, yall, szall] = next(gen)
[xt2, yt2, szt2] = next(gen_t2)
for model, path in zip(models, paths):
# Load model threshold
file = os.path.join(path, 'metrics2.txt')
with open(file, 'r') as f:
dat = f.readlines()
thr_ind = -7
tmp = [i for i in dat[thr_ind] if i.isdigit() or i == '.']
threshold = float(''.join(tmp))
thresholds.append(threshold)
# Get model loss
if 'dice' in path.lower():
loss = 'Dice'
else:
loss = 'Xentropy'
# Get skip status
if 'skip' in path.lower():
skip = 'Yes'
else:
skip = 'No'
# Get number of model inputs
mod_input_ch = model.input_shape[-1]
# Get correct contrast
if mod_input_ch == 1:
x, y, sz = xt2, yt2, szt2
contrast = contrasts[1]
else:
x, y, sz = xall, yall, szall
contrast = contrasts[0]
# Predict using model
print('Making predictions')
y_pred = model.predict(x)
# Compute metrics
print('Evaluating predictions')
res = score_pred(y, y_pred, threshold)
# Concatenate metrics
df = df.append(pd.DataFrame({'Loss': loss,
'Data': contrast,
'Skip': skip,
'Precision': res[0],
'Recall': res[1],
'Dice': res[2],
'Support': res[3],
'VOE': res[4],
'Accuracy': res[5]
}))
for ii in range(6):
df_cat = df_cat.append(pd.DataFrame({'Loss': loss,
'Data': contrast,
'Metric': df.keys()[ii+3],
'Value': res[ii]
}))
# Reconstruct images
# _, y = recon_test_3D(X=x, Y=y, orig_size=sz, block_size=block_size, oversamp=oversamp_test,
# lab_trun=lab_trun)
# x, y_pred = recon_test_3D(X=x, Y=y_pred, orig_size=sz, block_size=block_size, oversamp=oversamp_test,
# lab_trun=lab_trun)
#
# # Swap axes
# x = np.rollaxis(x, 0, 2).swapaxes(1, 2)
# y = np.rollaxis(y, 0, 2).swapaxes(1, 2)
# y_pred = np.rollaxis(y_pred, 0, 2).swapaxes(1, 2)
# Threshold segmentation
y_thresh = y_pred > threshold
# Record volume measurements
write_volumes(y, y_thresh, spath)
z += 1
except StopIteration:
print('Exhausted generator')
flag = False
# Plot results
# print('Saving plots')
# plot_results_cat(df_cat, spath)
# plot_results(df, spath)
# Write statistics
write_stats(df, thresholds, spath)
# Update dataframes to include stds
losses = df['Loss'].unique().tolist()
datas = df['Data'].unique().tolist()
skips = df['Skip'].unique().tolist()
metrics = ['Accuracy', 'Dice', 'Precision', 'Recall', 'Support', 'VOE']
df_out = {i: [] for i in df.keys()}
for loss in losses:
ind1 = df['Loss'] == loss
for data in datas:
ind2 = df['Data'] == data
for skip in skips:
ind3 = df['Skip'] == skip
# Create output df
df_out['Loss'].append(loss)
df_out['Data'].append(data)
df_out['Skip'].append(skip)
for metric in metrics:
# Get measurements
vals = df.loc[ind1 & ind2 & ind3, metric]
df_out[metric].append('{:0.3f} \xb1 {:0.3f}'.format(vals.mean(), vals.std()))
# std_metric = metric + '_std'
# df_out[std_metric].append(vals.std())
df_out = pd.DataFrame.from_dict(df_out)
# Save dataframes
print('Saving data')
save_df(df_out, spath, descriptor='metrics')
save_df(df_cat, spath, descriptor='cat')
if __name__ == '__main__':
"""
Example of how to test train networks.
"""
paths = ['/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_08_14-36-46_cnn_model_3D_3lyr_relu_dice',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_08_21-50-21_cnn_model_3D_3lyr_do_relu_dice_skip',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_09_06-49-45_cnn_model_3D_3lyr_do_relu_xentropy',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_09_14-12-47_cnn_model_3D_3lyr_do_relu_xentropy_skip',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_09_23-04-28_t2_cnn_model_3D_3lyr_relu_dice',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_10_04-50-05_t2_cnn_model_3D_3lyr_do_relu_dice_skip',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_10_12-28-23_t2_cnn_model_3D_3lyr_do_relu_xentropy',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_10_18-43-24_t2_cnn_model_3D_3lyr_do_relu_xentropy_skip']
spath = '/media/matt/Seagate Expansion Drive/b7TData_19/b7TData/Results/Analysis/Segmentation_images'
main(paths, spath)
| 30.897778 | 133 | 0.562572 | import os
from MachineLearning.load_datasets import load_filenames_2nd, load_data, keep_t2
from glob2 import glob
import nibabel as nib
import numpy as np
import keras
from Segmentation.model_keras import *
from sklearn.metrics import precision_recall_curve, precision_score, \
recall_score, roc_auc_score, f1_score, \
precision_recall_fscore_support, matthews_corrcoef, jaccard_similarity_score, accuracy_score
import pandas as pd
from pylab import rcParams
import seaborn as sns
# Set up plotting properties
sns.set(style='ticks', palette='Spectral', font_scale=1.5)
rcParams['figure.figsize'] = 6, 4
RAND_SEED = 42
def load_test_volumes(only_t2=False, adaptive_hist=False):
# Set up image path
image_base_path = '/media/matt/Seagate Expansion Drive/MR Data/MR_Images_Sarcoma'
# Set up data constants
block_size = [18, 142, 142]
oversamp_test = 1.0
lab_trun = 2
test_split = 0.1
# Get filenames
filenames = load_filenames_2nd(base_path=image_base_path)
nfiles = len(filenames)
if only_t2:
filenames = keep_t2(filenames)
# Remove validation and test set
inds = np.array((range(nfiles)), dtype=int)
np.random.seed(RAND_SEED)
np.random.shuffle(inds)
# Test data
test_inds = inds[-round(test_split*nfiles):]
test_files = [filenames[i] for i in test_inds]
# Yield the number of sets in the generator
yield test_files
for test_file in test_files:
X_test, Y_test, orig_size_test = load_data([test_file], block_size,
oversamp_test,
lab_trun, adaptive_hist)
yield [X_test, Y_test, orig_size_test]
def load_models(paths):
"""
Loads a list of models
Args:
paths (list): list of paths to models (not including the filename)
Returns:
"""
model = []
for path in paths:
model_path = os.path.join(path, 'Trained_model.h5')
model.append(keras.models.load_model(model_path,
custom_objects={'dice_loss': dice_loss,
'dice_metric': dice_metric}))
return model
def score_pred(Y_lab, Y_prob, threshold):
"""
Calculate a set of scores for the predictions
Args:
Y_lab (numpy array): labels
Y_prob (numpy array): predictions as probablilities
threshold (float): threshold for predictions
Returns:
(float): precision
(float): recall
(float): f1 score (Dice)
(float): support
(float): volume overlap error
(float): binary accuracy
"""
Y_thresh = Y_prob >= threshold
precision = []
recall = []
fbeta_score = []
support = []
voe = []
acc = []
Y_lab = Y_lab.reshape(-1)
Y_thresh = Y_thresh.reshape(-1)
# Compute precision/recall scores
scores = precision_recall_fscore_support(y_true=Y_lab, y_pred=Y_thresh)
precision.append(scores[0][1])
recall.append(scores[1][1])
fbeta_score.append(scores[2][1])
support.append(scores[3][1]/(scores[3][0] + scores[3][1])) # percent of volume occupied by tumor
voe.append(jaccard_similarity_score(y_true=Y_lab, y_pred=Y_thresh))
acc.append(accuracy_score(y_true=Y_lab, y_pred=Y_thresh, normalize=True))
return precision, recall, fbeta_score, support, voe, acc
def plot_results_cat(df, spath):
# Remove support and accuracy
df = df.loc[df['Metric'] !='Accuracy']
df = df.loc[df['Metric'] !='Support']
# Plot results
plt.figure(1)
sns.swarmplot(x='Metric', y='Value', hue='Data', data=df, size=10, dodge=True)
# plt.grid()
plt.ylabel('Coefficient')
plt.tight_layout()
plt.savefig(os.path.join(spath, 'cat_plot_1901.svg'), dpi=300)
plt.show()
def plot_results(df, spath):
plt.figure(11)
sns.swarmplot(x='Data', y='Precision', data=df, size=10)
plt.grid()
plt.ylabel('Precision Coefficient')
plt.tight_layout()
plt.savefig(os.path.join(spath, 'prec_1901.svg'), dpi=300)
plt.figure(12)
sns.swarmplot(x='Data', y='Recall', data=df, size=10)
plt.grid()
plt.ylabel('Recall Coefficient')
plt.tight_layout()
plt.savefig(os.path.join(spath, 'rec_1901.svg'), dpi=300)
plt.figure(13)
sns.swarmplot(x='Data', y='dice', data=df, size=10)
plt.grid()
plt.ylabel('DICE Coefficient')
plt.tight_layout()
plt.savefig(os.path.join(spath, 'dice_1901.svg'), dpi=300)
plt.figure(14)
sns.swarmplot(x='Data', y='Support', data=df, size=10)
plt.grid()
plt.ylabel('Support Coefficient')
plt.tight_layout()
plt.savefig(os.path.join(spath, 'support_1901.svg'), dpi=300)
plt.figure(15)
sns.swarmplot(x='Data', y='VOE', data=df, size=10)
plt.grid()
plt.ylabel('VOE Coefficient')
plt.tight_layout()
plt.savefig(os.path.join(spath, 'VOE_1901.svg'), dpi=300)
plt.figure(16)
sns.swarmplot(x='Data', y='Accuracy', data=df, size=10)
plt.grid()
plt.ylabel('Accuracy')
plt.tight_layout()
plt.savefig(os.path.join(spath, 'accuracy_1901.svg'), dpi=300)
plt.show()
def write_stats(df, thresholds, spath):
f = open(os.path.join(spath, 'stats.txt'), 'w')
f.write('T2\n')
f.write(20*'-' + '\n')
f.write('Threshold: %0.3f\n' % thresholds[0])
f.write('Mean:\n')
a = df.loc[df['Data'] == 'T2']
f.write(a.mean().to_string())
f.write('\n\nStd:\n')
f.write(a.std().to_string())
f.write(3*'\n')
a = df.loc[df['Data'] == 'T1, T1C, T2']
f.write('T1, T1C, T2\n')
f.write(20*'-' + '\n')
f.write('Threshold: %0.3f\n' % thresholds[1])
f.write('Mean:\n')
f.write(a.mean().to_string())
f.write('\n\nStd:\n')
f.write(a.std().to_string())
f.close()
def clear_vol_stats():
f = open(os.path.join(spath, 'volumes.txt'), 'w')
f.close()
def write_volumes(Y, Y_pred, spath):
y_vol = Y.sum()
pred_vol = Y_pred.sum()
f = open(os.path.join(spath, 'volumes.txt'), 'a')
f.write('Label: %d\tPrediction: %d\tPercent:\%0.3f\n' % (y_vol, pred_vol, 100*y_vol/pred_vol))
f.close()
def save_df(df, spath, descriptor):
df.to_csv(os.path.join(spath, 'data_%s.csv' % descriptor))
def run_from_df(spath):
# Load concatenated dataframe
template = '*cat.csv'
file = glob(os.path.join(spath, template))
df_cat = pd.DataFrame.from_csv(file)
# Load metrics dataframe
template = '*metrics.csv'
file = glob(os.path.join(spath, template))
df = pd.DataFrame.from_csv(file)
# Write statistics
write_stats(df, spath)
# Plot results
plot_results(df, spath)
plot_results_cat(df_cat, spath)
def main(paths, spath):
"""
Args:
paths (list of str): path to t2_only and all_contrast models
thresholds (list of float): training thresholds
Returns:
"""
# Set up data constants
block_size = [18, 142, 142]
oversamp_test = 1.0
lab_trun = 2
test_split = 0.1
# Load models
models = load_models(paths)
# Set up data generator
gen_t2 = load_test_volumes(only_t2=True)
gen = load_test_volumes()
nsets = next(gen)
nsets = next(gen_t2)
print('Testing using {} sets'.format(nsets))
# Set up metric lists
df = pd.DataFrame(columns=['Loss', 'Data', 'Precision', 'Recall', 'Dice', 'Support', 'VOE', 'Accuracy'])
df_cat = pd.DataFrame(columns=['Loss', 'Data', 'Metric', 'Value']) # Concatenated dataframe
contrasts = ['Multi-modal', 'T2 only']
con_lab = ['t2', 'all']
# Process
clear_vol_stats()
thresholds = []
flag = True
z = 0
while flag:
try:
print('\tVolume %d' % (z + 1))
print('Loading test batch')
[xall, yall, szall] = next(gen)
[xt2, yt2, szt2] = next(gen_t2)
for model, path in zip(models, paths):
# Load model threshold
file = os.path.join(path, 'metrics2.txt')
with open(file, 'r') as f:
dat = f.readlines()
thr_ind = -7
tmp = [i for i in dat[thr_ind] if i.isdigit() or i == '.']
threshold = float(''.join(tmp))
thresholds.append(threshold)
# Get model loss
if 'dice' in path.lower():
loss = 'Dice'
else:
loss = 'Xentropy'
# Get skip status
if 'skip' in path.lower():
skip = 'Yes'
else:
skip = 'No'
# Get number of model inputs
mod_input_ch = model.input_shape[-1]
# Get correct contrast
if mod_input_ch == 1:
x, y, sz = xt2, yt2, szt2
contrast = contrasts[1]
else:
x, y, sz = xall, yall, szall
contrast = contrasts[0]
# Predict using model
print('Making predictions')
y_pred = model.predict(x)
# Compute metrics
print('Evaluating predictions')
res = score_pred(y, y_pred, threshold)
# Concatenate metrics
df = df.append(pd.DataFrame({'Loss': loss,
'Data': contrast,
'Skip': skip,
'Precision': res[0],
'Recall': res[1],
'Dice': res[2],
'Support': res[3],
'VOE': res[4],
'Accuracy': res[5]
}))
for ii in range(6):
df_cat = df_cat.append(pd.DataFrame({'Loss': loss,
'Data': contrast,
'Metric': df.keys()[ii+3],
'Value': res[ii]
}))
# Reconstruct images
# _, y = recon_test_3D(X=x, Y=y, orig_size=sz, block_size=block_size, oversamp=oversamp_test,
# lab_trun=lab_trun)
# x, y_pred = recon_test_3D(X=x, Y=y_pred, orig_size=sz, block_size=block_size, oversamp=oversamp_test,
# lab_trun=lab_trun)
#
# # Swap axes
# x = np.rollaxis(x, 0, 2).swapaxes(1, 2)
# y = np.rollaxis(y, 0, 2).swapaxes(1, 2)
# y_pred = np.rollaxis(y_pred, 0, 2).swapaxes(1, 2)
# Threshold segmentation
y_thresh = y_pred > threshold
# Record volume measurements
write_volumes(y, y_thresh, spath)
z += 1
except StopIteration:
print('Exhausted generator')
flag = False
# Plot results
# print('Saving plots')
# plot_results_cat(df_cat, spath)
# plot_results(df, spath)
# Write statistics
write_stats(df, thresholds, spath)
# Update dataframes to include stds
losses = df['Loss'].unique().tolist()
datas = df['Data'].unique().tolist()
skips = df['Skip'].unique().tolist()
metrics = ['Accuracy', 'Dice', 'Precision', 'Recall', 'Support', 'VOE']
df_out = {i: [] for i in df.keys()}
for loss in losses:
ind1 = df['Loss'] == loss
for data in datas:
ind2 = df['Data'] == data
for skip in skips:
ind3 = df['Skip'] == skip
# Create output df
df_out['Loss'].append(loss)
df_out['Data'].append(data)
df_out['Skip'].append(skip)
for metric in metrics:
# Get measurements
vals = df.loc[ind1 & ind2 & ind3, metric]
df_out[metric].append('{:0.3f} \xb1 {:0.3f}'.format(vals.mean(), vals.std()))
# std_metric = metric + '_std'
# df_out[std_metric].append(vals.std())
df_out = pd.DataFrame.from_dict(df_out)
# Save dataframes
print('Saving data')
save_df(df_out, spath, descriptor='metrics')
save_df(df_cat, spath, descriptor='cat')
if __name__ == '__main__':
"""
Example of how to test train networks.
"""
paths = ['/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_08_14-36-46_cnn_model_3D_3lyr_relu_dice',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_08_21-50-21_cnn_model_3D_3lyr_do_relu_dice_skip',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_09_06-49-45_cnn_model_3D_3lyr_do_relu_xentropy',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_09_14-12-47_cnn_model_3D_3lyr_do_relu_xentropy_skip',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_09_23-04-28_t2_cnn_model_3D_3lyr_relu_dice',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_10_04-50-05_t2_cnn_model_3D_3lyr_do_relu_dice_skip',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_10_12-28-23_t2_cnn_model_3D_3lyr_do_relu_xentropy',
'/media/matt/Seagate Expansion Drive/MR Data/ML_Results/2019_11_10_18-43-24_t2_cnn_model_3D_3lyr_do_relu_xentropy_skip']
spath = '/media/matt/Seagate Expansion Drive/b7TData_19/b7TData/Results/Analysis/Segmentation_images'
main(paths, spath)
| 4,222 | 0 | 184 |
e1aab230d47c97b07e835f65d3a577d40d2af698 | 9,585 | py | Python | fixed_stack_in_order_models.py | ekayen/rnng-pytorch | 4cdfcb62f18a214011a8ea4c034fbf9041ac6012 | [
"MIT"
] | null | null | null | fixed_stack_in_order_models.py | ekayen/rnng-pytorch | 4cdfcb62f18a214011a8ea4c034fbf9041ac6012 | [
"MIT"
] | null | null | null | fixed_stack_in_order_models.py | ekayen/rnng-pytorch | 4cdfcb62f18a214011a8ea4c034fbf9041ac6012 | [
"MIT"
] | null | null | null | import torch
from torch import nn
import torch.nn.functional as F
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
import numpy as np
from fixed_stack_models import BeamItems, FixedStack, FixedStackRNNG, StackState
| 49.407216 | 121 | 0.676474 | import torch
from torch import nn
import torch.nn.functional as F
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
import numpy as np
from fixed_stack_models import BeamItems, FixedStack, FixedStackRNNG, StackState
class FixedInOrderStack(FixedStack):
def __init__(self, initial_hidden, stack_size, input_size, beam_size = 1):
super(FixedInOrderStack, self).__init__(initial_hidden, stack_size, input_size, beam_size)
# An extra storage necessary to achieve correct in-order implementation for subwords.
self.last_subword_begin_idx = self.nt_index_pos.new_zeros(self.nt_index_pos.size())
self.attrs += ['last_subword_begin_idx']
def do_shift(self, shift_batches, shifted_embs, subword_end_mask):
super().do_shift(shift_batches, shifted_embs, subword_end_mask)
# Extra operations to update last_subword_begin_idx.
is_begin_subword = (
subword_end_mask[(shift_batches[0], self.pointer[shift_batches]-2,)] +
(self.pointer[shift_batches] == 1) # pointer==1 after shift means this is first shifted token
) # (shifted_batch_size,)
begin_subword_shift_batches = tuple([item[is_begin_subword] for item in shift_batches])
self.last_subword_begin_idx[begin_subword_shift_batches] \
= self.top_position[begin_subword_shift_batches]
def do_nt(self, nt_batches, nt_embs, nt_ids):
subword_begin_idx = self.last_subword_begin_idx[nt_batches]
subword_span_length = self.top_position[nt_batches]+1 - subword_begin_idx
max_span_length = subword_span_length.max()
span_idx_order = (torch.arange(max_span_length, device=subword_begin_idx.device)
.unsqueeze(0).repeat(subword_begin_idx.size(0), 1))
span_idx_mask = (span_idx_order < subword_span_length.unsqueeze(-1)).view(-1)
span_idx = (subword_begin_idx.unsqueeze(-1) + span_idx_order).view(-1)[span_idx_mask] - 1
nt_batches_for_move = ()
for nt_batch in nt_batches:
nt_batches_for_move += (
nt_batch.unsqueeze(-1).expand(-1, max_span_length).reshape(-1)[span_idx_mask],
)
nt_batches_for_move += (span_idx,) # reason why not +1 here is due to offset of self.trees relative to self.hiddens.
nt_batches_for_move_tgt = nt_batches_for_move[:-1] + (nt_batches_for_move[-1] + 1,)
self.trees[nt_batches_for_move_tgt] = self.trees[nt_batches_for_move]
self.trees[nt_batches + (subword_begin_idx-1,)] = nt_embs
self.nt_index_pos[nt_batches] = self.nt_index_pos[nt_batches] + 1
self.nt_ids[nt_batches + (self.nt_index_pos[nt_batches],)] = nt_ids
self.top_position[nt_batches] = self.top_position[nt_batches] + 1
self.nt_index[nt_batches + (self.nt_index_pos[nt_batches],)] = subword_begin_idx
def do_reduce(self, reduce_batches, new_child):
super().do_reduce(reduce_batches, new_child)
self.last_subword_begin_idx[reduce_batches] = self.top_position[reduce_batches]
class InOrderStackState(StackState):
def __init__(self, batch_size, beam_size, device):
super(InOrderStackState, self).__init__(batch_size, beam_size, device)
def update_nt_counts(self, actions, action_dict, action_path):
shift_idxs = (actions == action_dict.a2i['SHIFT']).nonzero(as_tuple=True)
nt_idxs = (actions >= action_dict.nt_begin_id()).nonzero(as_tuple=True)
reduce_idxs = (actions == action_dict.a2i['REDUCE']).nonzero(as_tuple=True)
prev_is_not_nt = (action_path.prev_actions() < action_dict.nt_begin_id())
self.ncons_nts[shift_idxs] = 0
self.nopen_parens[nt_idxs] += 1
self.ncons_nts[nt_idxs] += 1
self.nopen_parens[reduce_idxs] -= 1
# To regard repetitive nt->reduce->nt->reduce ... as cons nts,
# we don't reset ncons_nts if previous action is nt.
reset_ncons_reduce_mask = (actions == action_dict.a2i['REDUCE']) * (prev_is_not_nt)
self.ncons_nts[reset_ncons_reduce_mask] = 0
class FixedStackInOrderRNNG(FixedStackRNNG):
def __init__(self, action_dict,
vocab = 100,
padding_idx = 0,
w_dim = 20,
h_dim = 20,
num_layers = 1,
dropout = 0,
attention_composition = False,
max_open_nts = 100,
max_cons_nts = 3,
speech_feat_types = None,
tok_frame_len=100,
token_lookahead = False,
back_context = 0,
for_context = 0
):
super(FixedStackInOrderRNNG, self).__init__(
action_dict, vocab, padding_idx,
w_dim, h_dim, num_layers,
dropout, attention_composition,
max_open_nts, max_cons_nts,
speech_feat_types,tok_frame_len,token_lookahead,
back_context,for_context)
print(f'token lookahead in in order model init: {token_lookahead}')
def build_stack(self, x, batch_size = None):
stack_size = max(150, x.size(1) + 10)
initial_hidden = self.rnng.get_initial_hidden(x)
return FixedInOrderStack(initial_hidden, stack_size, self.input_size)
def new_beam_stack_with_state(self, initial_hidden, stack_size, beam_size):
stack = FixedInOrderStack(initial_hidden, stack_size, self.input_size, beam_size)
stack_state = InOrderStackState(initial_hidden[0].size(0), beam_size, initial_hidden[0].device)
return stack, stack_state
def invalid_action_mask(self, beam, sent_lengths, subword_end_mask):
action_order = torch.arange(self.num_actions, device=beam.nopen_parens.device)
nopen_parens = beam.nopen_parens
ncons_nts = beam.ncons_nts
pointer = beam.stack.pointer
top_position = beam.stack.top_position
prev_actions = beam.prev_actions()
sent_lengths = sent_lengths.unsqueeze(-1) # add beam dim
# For in-order, cons_nts is accumuated by the loop of nt->reduce.
# Except sentence final, we prohibit reduce to break this loop. Otherwise,
# we fall into the state of one element in the stack, which prohibits following
# shift (-> no way to escape).
#
# We instead prohibit nt for sentence final, because we need to close all
# incomplete brackets.
# This mask is a precondition used both for reduce_mask and reduce_nt
# (depending on sentence final or not).
pre_nt_reduce_mask = ((nopen_parens > self.max_open_nts-1) +
(ncons_nts > self.max_cons_nts-1))
prev_pointer = beam.stack.pointer - 1
prev_prev_pointer = beam.stack.pointer - 2
prev_pointer[prev_pointer < 0] = 0
prev_prev_pointer[prev_prev_pointer < 0] = 0
prev_is_subword_mask = (beam.stack.pointer > 0) * (subword_end_mask.gather(1, prev_pointer) == 0)
prev_is_subword_end_mask = ((beam.stack.pointer > 0) *
subword_end_mask.gather(1, prev_pointer))
# reduce_mask[i,j,k]=True means k is a not allowed reduce action for (i,j).
reduce_mask = (action_order == self.action_dict.a2i['REDUCE']).view(1, 1, -1)
reduce_mask = (((nopen_parens == 0) +
(pre_nt_reduce_mask * (pointer < sent_lengths)) +
# reduce is only allowed when prev is not subword
prev_is_subword_mask).unsqueeze(-1) *
reduce_mask)
finish_mask = (action_order == self.action_dict.finish_action()).view(1, 1, -1)
finish_mask = (((pointer != sent_lengths) +
(nopen_parens != 0) +
(top_position != 1)).unsqueeze(-1) *
finish_mask)
shift_mask = (action_order == self.action_dict.a2i['SHIFT']).view(1, 1, -1)
shift_mask = (((pointer == sent_lengths) +
((pointer > 0) * (nopen_parens == 0) * prev_is_subword_end_mask) +
# when nopen=0, shift accompanies nt, thus requires two.
((nopen_parens == 0) * (top_position >= beam.stack.stack_size-2)) +
# otherwise, requires one room.
((nopen_parens > 0) * (top_position >= beam.stack.stack_size-1))).unsqueeze(-1) *
shift_mask)
nt_mask = (action_order >= self.action_dict.nt_begin_id()).view(1, 1, -1)
prev_is_nt = prev_actions >= self.action_dict.nt_begin_id()
nt_mask = ((prev_is_nt +
(top_position == 0) +
# prohibit nt version of pre_nt_reduce_mask (reduce is prohibited except empty buffer)
(pre_nt_reduce_mask * (pointer == sent_lengths)) +
# reduce is allowed after nt, so minimal room for stack is 1.
(top_position >= beam.stack.stack_size-1) +
# +3 for the same reason as top-down parser; +1 for final finish.
(beam.actions.size(2) - beam.actions_pos < (
sent_lengths - beam.stack.pointer + beam.nopen_parens + 4)) +
# shift->nt is prohibited when shifted token is an (unfinished) subword
(prev_is_subword_mask * (prev_actions == self.action_dict.a2i['SHIFT']))).unsqueeze(-1) *
nt_mask)
pad_mask = (action_order == self.action_dict.padding_idx).view(1, 1, -1)
finished_mask = ((prev_actions == self.action_dict.finish_action()) +
(prev_actions == self.action_dict.padding_idx)).unsqueeze(-1)
beam_width_mask = (torch.arange(beam.beam_size, device=reduce_mask.device).unsqueeze(0) >=
beam.beam_widths.unsqueeze(1)).unsqueeze(-1)
return (reduce_mask + finish_mask + shift_mask + nt_mask + pad_mask + finished_mask +
beam_width_mask)
def _parse_finish_mask(self, beam, action_id, beam_id):
return action_id == self.action_dict.finish_action()
| 8,951 | 53 | 340 |
9be6fb310c07fcd88eaec8696898000d5997cbdc | 1,510 | py | Python | linear_models/perceptron.py | lkk7/ml-library | bf338eb0d0f566ccb0fc51f27e04fafa1215ef93 | [
"MIT"
] | null | null | null | linear_models/perceptron.py | lkk7/ml-library | bf338eb0d0f566ccb0fc51f27e04fafa1215ef93 | [
"MIT"
] | null | null | null | linear_models/perceptron.py | lkk7/ml-library | bf338eb0d0f566ccb0fc51f27e04fafa1215ef93 | [
"MIT"
] | null | null | null | import numpy as np
from linear_models.logistic_regression import LogisticRegression
class Perceptron(LogisticRegression):
"""A simple (binary classification) perceptron. Uses binary cross-entropy loss for updating weights.
>>NOTE: it inherits most of the code from logistic regression for simplicity.<<
Parameters
----------
learning_rate : float, default = 0.2
The learning rate for gradient descent or SGD.
method : str, default = 'gradient'
Method of fitting the model.
'gradient' for gradient descent, 'sgd' for stochastic gradient descent.
reg : str, default = None
Regularization method.
For L1 or L2, use 'l1' or 'l2' respectively.
For elastic net method, use 'elastic'.
None for no regularization.
alpha : float, default = 0
Alpha parameter controlling the 'strength' of regularization.
l1_ratio : float, default = 0
Defines the ratio of L1 regularization. Only for elastic regularization option.
The penalty added to cost is l1_ratio * L1 + 0.5 * (1 - l1_ratio) * L2.
"""
def predict(self, x):
"""Predict the class for given input.
Parameters
----------
x : array-like
Input array.
"""
return np.heaviside(np.dot(x, self.coef) + self.intercept, 1)
| 37.75 | 104 | 0.652318 | import numpy as np
from linear_models.logistic_regression import LogisticRegression
class Perceptron(LogisticRegression):
"""A simple (binary classification) perceptron. Uses binary cross-entropy loss for updating weights.
>>NOTE: it inherits most of the code from logistic regression for simplicity.<<
Parameters
----------
learning_rate : float, default = 0.2
The learning rate for gradient descent or SGD.
method : str, default = 'gradient'
Method of fitting the model.
'gradient' for gradient descent, 'sgd' for stochastic gradient descent.
reg : str, default = None
Regularization method.
For L1 or L2, use 'l1' or 'l2' respectively.
For elastic net method, use 'elastic'.
None for no regularization.
alpha : float, default = 0
Alpha parameter controlling the 'strength' of regularization.
l1_ratio : float, default = 0
Defines the ratio of L1 regularization. Only for elastic regularization option.
The penalty added to cost is l1_ratio * L1 + 0.5 * (1 - l1_ratio) * L2.
"""
def __init__(self, learning_rate=0.2, method='gradient', reg=None, alpha=0, l1_ratio=0):
super().__init__(learning_rate, method, reg, alpha, l1_ratio)
def predict(self, x):
"""Predict the class for given input.
Parameters
----------
x : array-like
Input array.
"""
return np.heaviside(np.dot(x, self.coef) + self.intercept, 1)
| 137 | 0 | 27 |
e465039836c2865c9891dbb3920bc30d8a2a4018 | 2,178 | py | Python | Algo/004 (Contest)/F_test.py | abel1502/mipt_1s | f97974075ad82b4f1df4df1beee6ad895c363691 | [
"MIT"
] | 3 | 2020-10-01T17:21:49.000Z | 2020-10-16T10:57:53.000Z | Algo/004 (Contest)/F_test.py | abel1502/mipt_1s | f97974075ad82b4f1df4df1beee6ad895c363691 | [
"MIT"
] | 2 | 2020-10-07T15:53:14.000Z | 2020-10-07T16:26:02.000Z | Algo/004 (Contest)/F_test.py | abel1502/mipt_1s | f97974075ad82b4f1df4df1beee6ad895c363691 | [
"MIT"
] | null | null | null | import subprocess
import io
import random
INF = 10 ** 20
stress(100)
exit()
data = (16, 8, [8, 10, 15, 16, 4, 11])
"""
16 6 8
8 10 15 16 4 11
"""
ans = solve(*data)
print(test(*data, ans))
print(data, ans)
"""
[Error] (18, 3, [18, 8, 11, 2, 17, 10, 15, 5, 16]) (0, 1, 6)
[Error] (80, 5, [61, 2]) (0, 1, 16)
[Error] (9, 3, [9, 1]) (0, 1, 3)
[Error] (2, 2, [1, 2]) (0, 1, 1)
[Error] (8, 8, [3, 6]) (1, 1, 1)
[Error] (24, 3, [4, 5, 17, 23, 7, 24, 12, 10, 8, 2, 9]) (2, 3, 1)
""" | 20.942308 | 101 | 0.495868 | import subprocess
import io
import random
INF = 10 ** 20
def test(l, k, cells, ans):
inData = "{l} {n} {k}\n{cells}\n".format(n=len(cells), l=l, k=k, cells=' '.join(map(str, cells)))
result = subprocess.run("F.exe", input=inData.encode(), stdout=subprocess.PIPE)
d, c, s = map(int, result.stdout.decode().split())
res = result.returncode == 0 and d == ans[0] and c == ans[1] # and s == ans[1]
if not res:
print("!", d, c, s)
return res
def solve(l, k, cells):
cells = set(cells)
buf = [int((i % l + 1) in cells) for i in range(3 * l)]
blkSize = l // k
minDelta = INF
minStart = 0
minCnt = 0
for offset in range(blkSize):
minBlk = INF
maxBlk = -INF
for blk in range(k):
curBlk = sum(buf[blk * blkSize + offset:(blk + 1) * blkSize + offset])
minBlk = min(minBlk, curBlk)
maxBlk = max(maxBlk, curBlk)
curDelta = maxBlk - minBlk
if curDelta < minDelta:
minDelta = curDelta
minStart = offset
minCnt = 0
if curDelta == minDelta:
minCnt += 1
return (minDelta, minCnt * k, minStart + 1)
def genTest(bndN=(1, 20), bndK=(1,10), bndL=(1,10)):
n = random.randrange(*bndN)
k = random.randrange(*bndK)
l = k * random.randrange(*bndL)
cells = list(range(1, l + 1))
random.shuffle(cells)
cells = cells[:n]
ans = solve(l, k, cells)
return (l, k, cells), ans
def stress(count):
for i in range(count):
data, ans = genTest()
if not test(*data, ans):
print("[Error]", data, ans)
#break
stress(100)
exit()
data = (16, 8, [8, 10, 15, 16, 4, 11])
"""
16 6 8
8 10 15 16 4 11
"""
ans = solve(*data)
print(test(*data, ans))
print(data, ans)
"""
[Error] (18, 3, [18, 8, 11, 2, 17, 10, 15, 5, 16]) (0, 1, 6)
[Error] (80, 5, [61, 2]) (0, 1, 16)
[Error] (9, 3, [9, 1]) (0, 1, 3)
[Error] (2, 2, [1, 2]) (0, 1, 1)
[Error] (8, 8, [3, 6]) (1, 1, 1)
[Error] (24, 3, [4, 5, 17, 23, 7, 24, 12, 10, 8, 2, 9]) (2, 3, 1)
""" | 1,580 | 0 | 92 |
0c88c092702f2372af93159b4d7525bfd1fe0502 | 2,820 | py | Python | meta_policy_search/envs/mujoco_envs/half_cheetah_rand_direc.py | Zhiwei-Z/SeqPromp | d973b8564d500d95477624cfb992fb5a96e096ca | [
"MIT"
] | null | null | null | meta_policy_search/envs/mujoco_envs/half_cheetah_rand_direc.py | Zhiwei-Z/SeqPromp | d973b8564d500d95477624cfb992fb5a96e096ca | [
"MIT"
] | null | null | null | meta_policy_search/envs/mujoco_envs/half_cheetah_rand_direc.py | Zhiwei-Z/SeqPromp | d973b8564d500d95477624cfb992fb5a96e096ca | [
"MIT"
] | null | null | null | import numpy as np
from meta_policy_search.envs.base import MetaEnv
from meta_policy_search.utils import logger
import gym
from gym.envs.mujoco.mujoco_env import MujocoEnv
IterationBound1 = 200
IterationBound2 = 600 | 37.105263 | 92 | 0.634752 | import numpy as np
from meta_policy_search.envs.base import MetaEnv
from meta_policy_search.utils import logger
import gym
from gym.envs.mujoco.mujoco_env import MujocoEnv
IterationBound1 = 200
IterationBound2 = 600
class HalfCheetahRandDirecEnv(MetaEnv, MujocoEnv, gym.utils.EzPickle):
def __init__(self, goal_direction=None):
self.goal_direction = goal_direction if goal_direction else 1.0
MujocoEnv.__init__(self, 'half_cheetah.xml', 5)
gym.utils.EzPickle.__init__(self, goal_direction)
self.counter = 0
def sample_tasks(self, n_tasks):
# for fwd/bwd env, goal direc is backwards if - 1.0, forwards if + 1.0
self.counter += 1
if self.counter < IterationBound1:
return np.random.choice((-1.0, -0.5), (n_tasks, ))
if self.counter < IterationBound2:
return np.random.choice((-1.0, -0.5, 0.5), (n_tasks, ))
return np.random.choice((-1.0, -0.5, 0.5, 1.0), (n_tasks, ))
def set_task(self, task):
"""
Args:
task: task of the meta-learning environment
"""
self.goal_direction = task
def get_task(self):
"""
Returns:
task: task of the meta-learning environment
"""
return self.goal_direction
def step(self, action):
xposbefore = self.sim.data.qpos[0]
self.do_simulation(action, self.frame_skip)
xposafter = self.sim.data.qpos[0]
ob = self._get_obs()
reward_ctrl = - 0.5 * 0.1 * np.square(action).sum()
reward_run = self.goal_direction * (xposafter - xposbefore) / self.dt
reward = reward_ctrl + reward_run
done = False
return ob, reward, done, dict(reward_run=reward_run, reward_ctrl=reward_ctrl)
def _get_obs(self):
return np.concatenate([
self.sim.data.qpos.flat[1:],
self.sim.data.qvel.flat,
])
def reset_model(self):
qpos = self.init_qpos + self.np_random.uniform(low=-.1, high=.1, size=self.model.nq)
qvel = self.init_qvel + self.np_random.randn(self.model.nv) * .1
self.set_state(qpos, qvel)
return self._get_obs()
def viewer_setup(self):
self.viewer.cam.distance = self.model.stat.extent * 0.5
def log_diagnostics(self, paths, prefix=''):
fwrd_vel = [path["env_infos"]['reward_run'] for path in paths]
final_fwrd_vel = [path["env_infos"]['reward_run'][-1] for path in paths]
ctrl_cost = [-path["env_infos"]['reward_ctrl'] for path in paths]
logger.logkv(prefix + 'AvgForwardVel', np.mean(fwrd_vel))
logger.logkv(prefix + 'AvgFinalForwardVel', np.mean(final_fwrd_vel))
logger.logkv(prefix + 'AvgCtrlCost', np.std(ctrl_cost))
def __str__(self):
return 'HalfCheetahRandDirecEnv' | 2,000 | 581 | 23 |
d9c30762e931c64e2c9bdf14b9468c8796124944 | 42,572 | py | Python | pydia/cuda_functions_dp.py | koconnor4/pyDIA | 7c0c2c21f039ae28bcda4af821f16dbafb27ceb5 | [
"MIT"
] | 2 | 2019-04-18T09:58:12.000Z | 2020-03-03T09:27:25.000Z | pydia/cuda_functions_dp.py | koconnor4/pyDIA | 7c0c2c21f039ae28bcda4af821f16dbafb27ceb5 | [
"MIT"
] | null | null | null | pydia/cuda_functions_dp.py | koconnor4/pyDIA | 7c0c2c21f039ae28bcda4af821f16dbafb27ceb5 | [
"MIT"
] | 1 | 2019-03-13T02:09:29.000Z | 2019-03-13T02:09:29.000Z | import pycuda.autoinit
from pycuda.compiler import SourceModule
cu_matrix_kernel = SourceModule("""
#include <math.h>
#include <stdio.h>
#include "texture_fetch_functions.h"
#include "texture_types.h"
#define THREADS_PER_BLOCK 256
#define FIT_RADIUS 6
texture<float, cudaTextureType2DLayered, cudaReadModeElementType> tex;
__device__ void deconvolve3_columns(int width,int height,int rowstride,
double *data,double *buffer,double a,double b) {
double *row;
double q;
int i, j;
/*
// if (( height < 2) || (rowstride > width)) {
// printf("Failure in deconvolve3_rows: height, rowstride, width, a, b = %//d %d %d %f %f\n",height, rowstride, width, a, b );
// return;
// }
*/
if (!height || !width)
return;
if (height == 1) {
q = a + 2.0*b;
for (j = 0; j < width; j++)
data[j] /= q;
return;
}
if (height == 2) {
q = a*(a + 2.0*b);
for (j = 0; j < width; j++) {
buffer[0] = (a + b)/q*data[j] - b/q*data[rowstride + j];
data[rowstride + j] = (a + b)/q*data[rowstride + j] - b/q*data[j];
data[j] = buffer[0];
}
return;
}
/* Special-case first row */
buffer[0] = a + b;
/* Inner rows */
for (i = 1; i < height-1; i++) {
q = b/buffer[i-1];
buffer[i] = a - q*b;
row = data + (i - 1)*rowstride;
for (j = 0; j < width; j++)
row[rowstride + j] -= q*row[j];
}
/* Special-case last row */
q = b/buffer[i-1];
buffer[i] = a + b*(1.0 - q);
row = data + (i - 1)*rowstride;
for (j = 0; j < width; j++)
row[rowstride + j] -= q*row[j];
/* Go back */
row += rowstride;
for (j = 0; j < width; j++)
row[j] /= buffer[i];
do {
i--;
row = data + i*rowstride;
for (j = 0; j < width; j++)
row[j] = (row[j] - b*row[rowstride + j])/buffer[i];
} while (i > 0);
}
__device__ void deconvolve3_rows(int width,int height,int rowstride,double *data,
double *buffer,double a,double b) {
double *row;
double q;
int i, j;
/*
// if (( height < 2) || (rowstride > width)) {
// printf("Failure in deconvolve3_rows\n");
// return;
// }
*/
if (!height || !width)
return;
if (width == 1) {
q = a + 2.0*b;
for (i = 0; i < height; i++)
data[i*rowstride] /= q;
return;
}
if (width == 2) {
q = a*(a + 2.0*b);
for (i = 0; i < height; i++) {
row = data + i*rowstride;
buffer[0] = (a + b)/q*row[0] - b/q*row[1];
row[1] = (a + b)/q*row[1] - b/q*row[0];
row[0] = buffer[0];
}
return;
}
/* Special-case first item */
buffer[0] = a + b;
/* Inner items */
for (j = 1; j < width-1; j++) {
q = b/buffer[j-1];
buffer[j] = a - q*b;
data[j] -= q*data[j-1];
}
/* Special-case last item */
q = b/buffer[j-1];
buffer[j] = a + b*(1.0 - q);
data[j] -= q*data[j-1];
/* Go back */
data[j] /= buffer[j];
do {
j--;
data[j] = (data[j] - b*data[j+1])/buffer[j];
} while (j > 0);
/* Remaining rows */
for (i = 1; i < height; i++) {
row = data + i*rowstride;
/* Forward */
for (j = 1; j < width-1; j++)
row[j] -= b*row[j-1]/buffer[j-1];
row[j] -= b*row[j-1]/buffer[j-1];
/* Back */
row[j] /= buffer[j];
do {
j--;
row[j] = (row[j] - b*row[j+1])/buffer[j];
} while (j > 0);
}
}
__device__ void resolve_coeffs_2d(int width, int height, int rowstride, double *data) {
double *buffer;
int max;
max = width > height ? width : height;
buffer = (double *)malloc(max*sizeof(double));
deconvolve3_rows(width, height, rowstride, data, buffer, 13.0/21.0, 4.0/21.0);
deconvolve3_columns(width, height, rowstride, data, buffer, 13.0/21.0, 4.0/21.0);
free(buffer);
}
__device__ double interpolate_2d(double x,double y,int rowstride,double *coeff) {
double wx[4], wy[4];
int i, j;
double v, vx;
/*
// if (x < 0.0 || x > 1.0 || y < 0.0 || y > 1.0) {
// printf("interpolate_2d: x or y out of bounds %f %f\n",x,y);
// return(-1.0);
// }
*/
wx[0] = 4.0/21.0 + (-11.0/21.0 + (0.5 - x/6.0)*x)*x;
wx[1] = 13.0/21.0 + (1.0/14.0 + (-1.0 + x/2.0)*x)*x;
wx[2] = 4.0/21.0 + (3.0/7.0 + (0.5 - x/2.0)*x)*x;
wx[3] = (1.0/42.0 + x*x/6.0)*x;
wy[0] = 4.0/21.0 + (-11.0/21.0 + (0.5 - y/6.0)*y)*y;
wy[1] = 13.0/21.0 + (1.0/14.0 + (-1.0 + y/2.0)*y)*y;
wy[2] = 4.0/21.0 + (3.0/7.0 + (0.5 - y/2.0)*y)*y;
wy[3] = (1.0/42.0 + y*y/6.0)*y;
v = 0.0;
for (i = 0; i < 4; i++) {
vx = 0.0;
for (j = 0; j < 4; j++)
vx += coeff[i*rowstride + j]*wx[j];
v += wy[i]*vx;
}
return v;
}
__device__ float integrated_profile(int profile_type, int idx, int idy, float xpos,
float ypos, float *psf_parameters, float *lut_0,
float *lut_xd, float *lut_yd) {
int psf_size;
float psf_height, psf_sigma_x, psf_sigma_y, psf_xpos, psf_ypos;
float p0;
int ip, jp;
double pi=3.14159265,fwtosig=0.8493218;
psf_size = (int) psf_parameters[0];
psf_height = psf_parameters[1];
psf_sigma_x = psf_parameters[2];
psf_sigma_y = psf_parameters[3];
psf_ypos = psf_parameters[4];
psf_xpos = psf_parameters[5];
if (profile_type == 0) {
// gaussian
// PSF at location (Idx,Idy). PSF is centred at (7.5,7.5)
// Analytic part
p0 = 0.5*psf_height*pi*fwtosig*fwtosig*
(erf((idx-7.5+0.5)/(1.41421356*psf_sigma_x)) -
erf((idx-7.5-0.5)/(1.41421356*psf_sigma_x))) *
(erf((idy-7.5+0.5)/(1.41421356*psf_sigma_y)) -
erf((idy-7.5-0.5)/(1.41421356*psf_sigma_y)));
// Index into the lookup table
ip = psf_size/2 + 2*idx - 15;
jp = psf_size/2 + 2*idy - 15;
if ((ip>=0) && (ip<=psf_size-1) && (jp>=0) && (jp<=psf_size-1)) {
p0 += lut_0[ip+psf_size*jp] + lut_xd[ip+psf_size*jp]*(xpos-psf_xpos) +
lut_yd[ip+psf_size*jp]*(ypos-psf_ypos);
}
return p0;
} else if (profile_type == 1) {
// moffat25
// From iraf/noao/digiphot/daophot/daolib/profile.x
float d[4][4] = {{ 0.0, 0.0, 0.0, 0.0},
{-0.28867513, 0.28867513, 0.0, 0.0},
{-0.38729833, 0.0, 0.38729833, 0.0},
{-0.43056816, -0.16999052, 0.16999052, 0.43056816}};
float w[4][4] = {{1.0, 0.0, 0.0, 0.0},
{0.5, 0.5, 0.0, 0.0},
{0.27777778, 0.44444444, 0.27777778, 0.0},
{0.17392742, 0.32607258, 0.32607258, 0.17392742}};
double alpha = 0.3195079;
float p1sq, p2sq, p1p2, dx, dy, xy, denom, func, x[4], xsq[4], p1xsq[4];
float y, ysq, p2ysq, wt, p4fod, wp4fod, wf;
int npt, ix, iy;
p1sq = psf_parameters[2]*psf_parameters[2];
p2sq = psf_parameters[3]*psf_parameters[3];
p1p2 = psf_parameters[2]*psf_parameters[3];
dx = idx-7.5+0.5;
dy = idy-7.5+0.5;
xy = dx * dy;
denom = 1.0 + alpha * (dx*dx/p1sq + dy*dy/p2sq + xy*psf_parameters[4]);
if (denom > 1.0e4) {
return 0.0;
}
p0 = 0.0;
func = 1.0 / (p1p2*pow(double(denom),double(2.5)));
if (func >= 0.046) {
npt = 4;
} else if (func >= 0.0022) {
npt = 3;
} else if (func >= 0.0001) {
npt = 2;
} else if (func >= 1.0e-10) {
p0 = (2.5 - 1.0) * func;
}
if (func >= 0.0001) {
for (ix=0; ix<npt; ix++) {
x[ix] = dx + d[npt][ix];
xsq[ix] = x[ix]*x[ix];
p1xsq[ix] = xsq[ix]/p1sq;
}
for (iy=0; iy<npt; iy++) {
y = dy + d[npt][iy];
ysq = y*y;
p2ysq = ysq/p2sq;
for (ix=0; ix<npt; ix++) {
wt = w[npt][iy] * w[npt][ix];
xy = x[ix] * y;
denom = 1.0 + alpha * (p1xsq[ix] + p2ysq + xy*psf_parameters[4]);
func = (2.5 - 1.0) / (p1p2 * pow(double(denom),double(2.5)) );
p4fod = 2.5 * alpha * func / denom;
wp4fod = wt * p4fod;
wf = wt * func;
p0 += wf;
}
}
}
p0 *= psf_parameters[1];
// Index into the lookup table
ip = psf_size/2 + 2*idx - 15;
jp = psf_size/2 + 2*idy - 15;
if ((ip>=0) && (ip<=psf_size-1) && (jp>=0) && (jp<=psf_size-1)) {
p0 += lut_0[ip+psf_size*jp] + lut_xd[ip+psf_size*jp]*(xpos-psf_xpos) +
lut_yd[ip+psf_size*jp]*(ypos-psf_ypos);
}
return p0;
} else {
return 0.0;
}
}
__global__ void convolve_image_psf(int profile_type, int nx, int ny, int dx, int dy,
int dp, int ds, int n_coeff, int nkernel,
int kernel_radius,int *kxindex,
int *kyindex, int* ext_basis, float *psf_parameters,
float *psf_0, float *psf_xd, float *psf_yd,
float *coeff,float *cim1, float* cim2) {
int id, txa, tyb, txag, tybg;
int np, ns, i, j, ii, ip, jp, ic, ki, a, b;
int d1, sidx, l, m, l1, m1, ig, jg;
int psf_size, ix, jx;
float x, y, p0, p1, p1g, cpsf_pixel, xpos, ypos;
float psf_height, psf_sigma_x, psf_sigma_y, psf_sigma_xy, psf_xpos, psf_ypos;
float gain,psf_rad,psf_rad2, px, py;
float sx2, sy2, sxy2, sx2msy2, sx2psy2;
double psf_norm,dd;
double pi=3.14159265,fwtosig=0.8493218;
__shared__ double psf_sum[256];
__shared__ double cpsf[256];
__shared__ double cpix1[256];
__shared__ double cpix2[256];
// initialise memory
id = threadIdx.x+threadIdx.y*16;
cpsf[id] = 0.0;
// star position in normalised units
xpos = blockIdx.x*dx + dx/2;
ypos = blockIdx.y*dy + dy/2;
x = (xpos - 0.5*(nx-1))/(nx-1);
y = (ypos - 0.5*(ny-1))/(ny-1);
// number of polynomial coefficients per basis function
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// PSF parameters
psf_size = (int) psf_parameters[0];
psf_height = psf_parameters[1];
psf_sigma_x = psf_parameters[2];
psf_sigma_y = psf_parameters[3];
psf_ypos = psf_parameters[4];
psf_xpos = psf_parameters[5];
psf_rad = psf_parameters[6];
gain = psf_parameters[7];
if (psf_rad > 5.0) {
psf_rad = 5.0;
}
psf_rad2 = psf_rad*psf_rad;
// PSF integral
__syncthreads();
psf_sum[id] = 0.0;
for (i=threadIdx.x+1; i<psf_size-1; i+=blockDim.x) {
for (j=threadIdx.y+1; j<psf_size-1; j+=blockDim.y) {
psf_sum[id] += psf_0[i+j*psf_size];
}
}
__syncthreads();
i = 128;
while (i != 0) {
if (id < i) {
psf_sum[id] += psf_sum[id + i];
}
__syncthreads();
i /= 2;
}
__syncthreads();
if (profile_type == 0) {
// gaussian
psf_norm = 0.25*psf_sum[0] + psf_height*2*pi*fwtosig*fwtosig;
} else if (profile_type == 1) {
// moffat25
psf_sigma_xy = psf_parameters[8];
sx2 = psf_sigma_x*psf_sigma_x;
sy2 = psf_sigma_y*psf_sigma_y;
sxy2 = psf_sigma_xy*psf_sigma_xy;
sx2msy2 = 1.0/sx2 - 1.0/sy2;
sx2psy2 = 1.0/sx2 + 1.0/sy2;
px = 1.0/sqrt( sx2psy2 + sqrt(sx2msy2*sx2msy2 + sxy2) );
py = 1.0/sqrt( sx2psy2 - sqrt(sx2msy2*sx2msy2 + sxy2) );
psf_norm = 0.25*psf_sum[0] + psf_height*pi*(px*py)/(psf_sigma_x*psf_sigma_y);
}
// Construct the convolved PSF
// PSF at location (Idx,Idy). PSF is centred at (7.5,7.5)
// Analytic part
p0 = integrated_profile(profile_type, threadIdx.x, threadIdx.y, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
cpsf_pixel = 0.0;
// Iterate over coefficients
for (ic=0; ic<n_coeff; ic++) {
// basis function position
ki = ic < np ? 0 : (ic-np)/ns + 1;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
// Set the polynomial degree for the subvector and the
// index within the subvector
if (ki == 0) {
d1 = dp;
sidx = ic;
} else {
d1 = ds;
sidx = ic - np - (ki-1)*ns;
}
// Compute the polynomial index (l,m) values corresponding
// to the index within the subvector
l1 = m1 = 0;
if (d1 > 0) {
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == sidx) {
l1 = l;
m1 = m;
}
i++;
}
}
}
// Indices into the PSF
if (ki > 0) {
txa = threadIdx.x + a;
tyb = threadIdx.y + b;
p1 = integrated_profile(profile_type, txa, tyb, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
// If we have an extended basis function, we need to
// average the PSF over a 3x3 grid
if (ext_basis[ki]) {
p1 = 0.0;
for (ig=-1; ig<2; ig++) {
for (jg=-1; jg<2; jg++) {
txag = txa + ig;
tybg = tyb + jg;
p1g = integrated_profile(profile_type, txag, tybg, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
p1 += p1g;
}
}
p1 /= 9.0;
}
cpsf_pixel += coeff[ic]*(p1-p0)*pow(x,l1)*pow(y,m1);
} else {
cpsf_pixel += coeff[ic]*p0*pow(x,l1)*pow(y,m1);
}
}
} //end ic loop
__syncthreads();
cpsf[id] = cpsf_pixel/psf_norm;
__syncthreads();
// Now convolve the image section with the convolved PSF
for (i=xpos-dx/2; i<xpos+dx/2; i++) {
for (j=ypos-dy/2; j<ypos+dy/2; j++) {
ix = (int)floor(i+0.5)+threadIdx.x-8.0;
jx = (int)floor(j+0.5)+threadIdx.y-8.0;
cpix1[id] = cpsf[id]*tex2DLayered(tex,ix,jx,0);
cpix2[id] = cpsf[id]*tex2DLayered(tex,ix,jx,1);
__syncthreads();
// Parallel sum
ii = 128;
while (ii != 0) {
if (id < ii) {
cpix1[id] += cpix1[id + ii];
cpix2[id] += cpix2[id + ii];
}
__syncthreads();
ii /= 2;
}
if (id == 0) {
cim1[i+j*nx] = cpix1[0];
cim2[i+j*nx] = cpix2[0];
}
__syncthreads();
}
}
return;
}
__global__ void cu_photom(int profile_type,
int nx, int ny, int dp, int ds, int n_coeff, int nkernel,
int kernel_radius,int *kxindex,
int *kyindex, int* ext_basis, float *psf_parameters,
float *psf_0, float *psf_xd, float *psf_yd,
float *posx,
float *posy, float *coeff,
float *flux, float *dflux, float *star_sky) {
int id, txa, tyb, txag, tybg;
int np, ns, i, j, ip, jp, ic, ki, a, b;
int d1, sidx, l, m, l1, m1, ig, jg;
int psf_size, ix, jx;
float x, y, p0, p1, p1g, cpsf_pixel, xpos, ypos, dd;
float psf_height, psf_sigma_x, psf_sigma_y, psf_sigma_xy, psf_xpos, psf_ypos;
float psf_rad, psf_rad2, gain, fl, inv_var, px, py;
float sx2, sy2, sxy2, sx2msy2, sx2psy2;
double subx, suby, psf_norm, bgnd;
double pi=3.14159265, fwtosig=0.8493218, RON=5.0;
__shared__ double psf_sum[256];
__shared__ double cpsf[256];
__shared__ float mpsf[256];
__shared__ float fsum1[256];
__shared__ float fsum2[256];
__shared__ float fsum3[256];
__shared__ float fsum4[256];
__shared__ float fsum5[256];
// initialise memory
id = threadIdx.x+threadIdx.y*16;
cpsf[id] = 0.0;
mpsf[id] = 0.0;
// star position in normalised units
xpos = posx[blockIdx.x];
ypos = posy[blockIdx.x];
x = (xpos - 0.5*(nx-1))/(nx-1);
y = (ypos - 0.5*(ny-1))/(ny-1);
// number of polynomial coefficients per basis function
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// PSF parameters
psf_size = (int) psf_parameters[0];
psf_height = psf_parameters[1];
psf_sigma_x = psf_parameters[2];
psf_sigma_y = psf_parameters[3];
psf_ypos = psf_parameters[4];
psf_xpos = psf_parameters[5];
psf_rad = psf_parameters[6];
gain = psf_parameters[7];
if (psf_rad > 7.0) {
psf_rad = 7.0;
}
psf_rad2 = psf_rad*psf_rad;
// PSF integral
__syncthreads();
psf_sum[id] = 0.0;
for (i=threadIdx.x; i<psf_size; i+=blockDim.x) {
for (j=threadIdx.y; j<psf_size; j+=blockDim.y) {
psf_sum[id] += psf_0[i+j*psf_size];
//if (blockIdx.x == 120) {
// printf("i, j, id, psf_0: %d %d %d %f\\n",i,j,id,psf_0[i+j*psf_size]);
//}
}
}
__syncthreads();
i = 128;
while (i != 0) {
if (id < i) {
psf_sum[id] += psf_sum[id + i];
}
__syncthreads();
i /= 2;
}
__syncthreads();
if (profile_type == 0) {
// gaussian
psf_norm = 0.25*psf_sum[0] + psf_height*2*pi*fwtosig*fwtosig;
//if ((id == 0) && (blockIdx.x==120)){
// printf("psf_sum0, psf_height, psf_norm: %f %f %f\\n",psf_sum[0],psf_height,psf_norm);
//}
} else if (profile_type == 1) {
// moffat25
psf_sigma_xy = psf_parameters[8];
sx2 = psf_sigma_x*psf_sigma_x;
sy2 = psf_sigma_y*psf_sigma_y;
sxy2 = psf_sigma_xy*psf_sigma_xy;
sx2msy2 = 1.0/sx2 - 1.0/sy2;
sx2psy2 = 1.0/sx2 + 1.0/sy2;
px = 1.0/sqrt( sx2psy2 + sqrt(sx2msy2*sx2msy2 + sxy2) );
py = 1.0/sqrt( sx2psy2 - sqrt(sx2msy2*sx2msy2 + sxy2) );
psf_norm = 0.25*psf_sum[0] + psf_height*pi*(px*py)/(psf_sigma_x*psf_sigma_y);
//if ((id == 0) && (blockIdx.x==120)){
// printf("psf_sum0, psf_height, psf_norm: %f %f %f\\n",psf_sum[0],psf_height, psf_norm);
//}
}
// Construct the convolved PSF
// PSF at location (Idx,Idy). PSF is centred at (7.5,7.5)
// Analytic part
p0 = integrated_profile(profile_type, threadIdx.x, threadIdx.y, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
// Spatially variable part
//
// +
// psf_xd[ipsf+psf_size*jpsf]*(xpos-psf_xpos) +
// psf_yd[ipsf+psf_size*jpsf]*(ypos-psf_ypos);
// }
//
cpsf_pixel = 0.0;
// Iterate over coefficients
for (ic=0; ic<n_coeff; ic++) {
// basis function position
ki = ic < np ? 0 : (ic-np)/ns + 1;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
// Set the polynomial degree for the subvector and the
// index within the subvector
if (ki == 0) {
d1 = dp;
sidx = ic;
} else {
d1 = ds;
sidx = ic - np - (ki-1)*ns;
}
// Compute the polynomial index (l,m) values corresponding
// to the index within the subvector
l1 = m1 = 0;
if (d1 > 0) {
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == sidx) {
l1 = l;
m1 = m;
}
i++;
}
}
}
// Indices into the PSF
if (ki > 0) {
txa = threadIdx.x + a;
tyb = threadIdx.y + b;
p1 = integrated_profile(profile_type, txa, tyb, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
//
// +
// psf_xd[ipsf+psf_size*jpsf]*(xpos-psf_xpos) +
// psf_yd[ipsf+psf_size*jpsf]*(ypos-psf_ypos);
// }
//
// If we have an extended basis function, we need to
// average the PSF over a 3x3 grid
if (ext_basis[ki]) {
p1 = 0.0;
for (ig=-1; ig<2; ig++) {
for (jg=-1; jg<2; jg++) {
txag = txa + ig;
tybg = tyb + jg;
p1g = integrated_profile(profile_type, txag, tybg, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
//
// +
// psf_xd[ipsf+psf_size*jpsf]*(xpos-psf_xpos) +
// psf_yd[ipsf+psf_size*jpsf]*(ypos-psf_ypos);
// }
//
p1 += p1g;
}
}
p1 /= 9.0;
}
cpsf_pixel += coeff[ic]*(p1-p0)*pow(x,l1)*pow(y,m1);
} else {
cpsf_pixel += coeff[ic]*p0*pow(x,l1)*pow(y,m1);
}
}
} //end ic loop
__syncthreads();
cpsf[id] = cpsf_pixel/psf_norm;
__syncthreads();
/* Uncomment to print convolved PSF
if ((id == 0) && (blockIdx.x==14)){
txa = 7;
tyb = 7;
ip = psf_size/2 + 2*txa - 15;
jp = psf_size/2 + 2*tyb - 15;
if (profile_type == 0) {
printf("psf_test: %lf %lf %lf %lf\\n",
0.5*psf_height*pi*fwtosig*fwtosig*
(erf((txa-7.5+0.5)/(1.41421356*psf_sigma_x)) -
erf((txa-7.5-0.5)/(1.41421356*psf_sigma_x))) *
(erf((tyb-7.5+0.5)/(1.41421356*psf_sigma_y)) -
erf((tyb-7.5-0.5)/(1.41421356*psf_sigma_y))),
psf_0[ip+psf_size*jp],
psf_xd[ip+psf_size*jp]*(xpos-psf_xpos),
psf_yd[ip+psf_size*jp]*(ypos-psf_ypos));
}
dd = 0.0;
printf("cpsf\\n");
for (j=15; j>=0; j--) {
printf("%2d ",j);
for (i=0; i<16; i++) {
printf("%6.4f ",cpsf[i+j*16]);
dd += cpsf[i+j*16];
}
printf("\\n");
}
printf("sum = %f\\n",dd);
printf("psf lookup table fraction: %f\\n",psf_sum[0]/psf_norm);
}
*/
__syncthreads();
// Map the convolved PSF to the subpixel star coordinates
if (id == 0) {
resolve_coeffs_2d(16,16,16,cpsf);
}
__syncthreads();
mpsf[id] = 0.0;
subx = ceil(xpos+0.5+0.0000000001) - (xpos+0.5);
suby = ceil(ypos+0.5+0.0000000001) - (ypos+0.5);
if ((threadIdx.x > 1) && (threadIdx.x < 14) &&
(threadIdx.y > 1) && (threadIdx.y < 14)) {
mpsf[id] = (float)interpolate_2d(subx,suby,16,&cpsf[threadIdx.x-2+(threadIdx.y-2)*16]);
}
__syncthreads();
// force negative pixels to zero
mpsf[id] = mpsf[id] > 0.0 ? mpsf[id] : 0.0;
__syncthreads();
//
// Normalise mapped PSF
// (No - the convolved PSF contains the phot scale)
/*
cpsf[id] = mpsf[id];
__syncthreads();
i = 128;
while (i != 0) {
if (id < i) {
cpsf[id] += cpsf[id + i];
}
__syncthreads();
i /= 2;
}
mpsf[id] /= cpsf[0];
*/
/* Uncomment to print mapped PSF */
if ((id == 0) && (blockIdx.x==14)){
printf("xpos, ypos: %f %f\\n",xpos,ypos);
printf("subx, suby: %f %f\\n",subx,suby);
printf("mpsf\\n");
dd = 0.0;
for (j=15; j>=0; j--) {
printf("%2d ",j);
for (i=0; i<16; i++) {
printf("%6.4f ",mpsf[i+j*16]);
dd += mpsf[i+j*16];
}
printf("\\n");
}
printf("sum = %f\\n",dd);
}
__syncthreads();
// Fit the mapped PSF to the difference image to compute an
// optimal flux estimate.
// Assume the difference image is in tex(:,:,0)
// and the inverse variance in tex(:,:,1).
// We need to iterate to get the variance correct
//
fl = 0.0;
for (j=0; j<3; j++) {
fsum1[id] = 0.0;
fsum2[id] = 0.0;
fsum3[id] = 0.0;
__syncthreads();
/*
if ((id == 0) && (blockIdx.x==14)){
printf("photom, j=%d\\n",j);
}
*/
if (pow(threadIdx.x-8.0,2)+pow(threadIdx.y-8.0,2) < psf_rad2) {
ix = (int)floor(xpos+0.5)+threadIdx.x-8.0;
jx = (int)floor(ypos+0.5)+threadIdx.y-8.0;
inv_var = 1.0/(1.0/tex2DLayered(tex,ix,jx,1) + fl*mpsf[id]/gain);
fsum1[id] = mpsf[id]*tex2DLayered(tex,ix,jx,0)*inv_var;
fsum2[id] = mpsf[id]*mpsf[id]*inv_var;
fsum3[id] = mpsf[id];
/*
if ((blockIdx.x==14)){
printf("ix jx mpsf im: %03d %03d %6.5f %12.2f\\n",ix,jx,mpsf[id],tex2DLayered(tex,ix,jx,0));
}
*/
}
__syncthreads();
// Parallel sum
i = 128;
while (i != 0) {
if (id < i) {
fsum1[id] += fsum1[id + i];
fsum2[id] += fsum2[id + i];
fsum3[id] += fsum3[id + i];
}
__syncthreads();
i /= 2;
}
fl = fsum1[0]/fsum2[0];
}
if (id == 0) {
flux[blockIdx.x] = fl;
dflux[blockIdx.x] = sqrt(fsum3[0]*fsum3[0]/fsum2[0]);
}
/* Uncomment for debug info */
/*
__syncthreads();
i = 128;
while (i != 0) {
if (id < i) {
mpsf[id] += mpsf[id + i];
}
__syncthreads();
i /= 2;
}
__syncthreads();
if (id == 0) {
if (blockIdx.x == 120) {
printf("result: %f %f %f %f %f %f %f %f %f %f %f %f\\n",fsum1[0],fsum2[0],fsum3[0],mpsf[0],psf_norm,psf_sum[0],bgnd,flux[blockIdx.x],flux[blockIdx.x]*fsum3[0],flux[blockIdx.x]*mpsf[0],fsum4[0],dflux[blockIdx.x]);
}
}
*/
__syncthreads();
return;
}
__global__ void cu_compute_model(int dp, int ds, int db, int *kxindex,
int *kyindex, int* ext_basis, int nkernel, float *coefficient,
float *M) {
int np, ns, nb, hs, idx, ki, a, b, d1, sidx, l, m, l1, m1, i;
double x, y, Bi;
__shared__ double count[THREADS_PER_BLOCK];
// Calculate number of terms in subvectors
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
nb = (db+1)*(db+2)/2;
hs = (nkernel-1)*ns+np+nb;
x = (blockIdx.x - 0.5*(gridDim.x-1))/(gridDim.x-1);
y = (blockIdx.y - 0.5*(gridDim.y-1))/(gridDim.y-1);
count[threadIdx.x] = 0.0;
for (idx = threadIdx.x; idx < hs; idx += blockDim.x) {
// This is the index of the subvector and its kernel offsets
ki = idx < np ? 0 : (idx-np)/ns + 1;
a = b = 0;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
}
// Set the polynomial degree for the subvector and the
// index within the subvector
if (ki == 0) {
d1 = dp;
sidx = idx;
} else if (ki < nkernel) {
d1 = ds;
sidx = idx - np - (ki-1)*ns;
} else {
d1 = db;
sidx = idx - np - (ki-1)*ns;
}
// Compute the (l,m) values corresponding to the index within
// the subvector
l1 = m1 = 0;
if (d1 > 0) {
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == sidx) {
l1 = l;
m1 = m;
}
i++;
}
}
}
if (ki == 0) {
Bi = tex2DLayered(tex,blockIdx.x,blockIdx.y,0);
} else if (ki < nkernel) {
if (ext_basis[ki]) {
Bi = tex2DLayered(tex,blockIdx.x+a,blockIdx.y+b,1)-
tex2DLayered(tex,blockIdx.x,blockIdx.y,0);
} else {
Bi = tex2DLayered(tex,blockIdx.x+a,blockIdx.y+b,0)-
tex2DLayered(tex,blockIdx.x,blockIdx.y,0);
}
} else {
Bi = 1.0;
}
count[threadIdx.x] += coefficient[idx]*pow(x,l1)*pow(y,m1)*Bi;
}
__syncthreads();
// Then parallel-sum the results
i = blockDim.x/2;
while (i != 0) {
if (threadIdx.x < i) {
count[threadIdx.x] += count[threadIdx.x + i];
}
__syncthreads();
i /= 2;
}
if (threadIdx.x == 0) {
M[blockIdx.x+gridDim.x*blockIdx.y] = count[0];
}
}
__global__ void cu_compute_vector(int dp, int ds, int db, int nx,
int ny, int *kxindex, int *kyindex, int *ext_basis, int nkernel,
int kernelRadius,float *V) {
int idx;
int np, ns, ki, a, b, d1, i, j;
int l, m, l1, m1;
float py, x, y, Bi;
double temp;
__shared__ double count[THREADS_PER_BLOCK];
// Calculate number of terms in subvectors
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// This is the index of the subvector and its kernel offsets
ki = blockIdx.x < np ? 0 : (blockIdx.x-np)/ns + 1;
a = b = 0;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
}
// Set the polynomial degrees for the submatrix and the
// indices within the submatrix
if (ki == 0) {
d1 = dp;
idx = blockIdx.x;
} else if (ki < nkernel) {
d1 = ds;
idx = blockIdx.x - np - (ki-1)*ns;
} else {
d1 = db;
idx = blockIdx.x - np - (ki-1)*ns;
}
// Compute the (l,m) values corresponding to the index within
// the subvector
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == idx) {
l1 = l;
m1 = m;
}
i++;
}
}
// Compute the contribution to V from each image location.
// Use individual threads to sum over columns.
// tex[:,:,0] is the reference image,
// tex[:,:,1] is the blurred reference image,
// tex[:,:,2] is the target image,
// tex[:,:,3] is the inverse variance,
// tex[:,:,4] is the mask.
// Bi is the basis image value.
temp = 0.0;
Bi = 1.0;
__syncthreads();
for (j=kernelRadius; j<ny-kernelRadius; j++) {
y = (j - 0.5*(ny-1))/(ny-1);
py = pow(y,m1);
for (i=threadIdx.x+kernelRadius; i<nx-kernelRadius; i+=blockDim.x) {
x = (i - 0.5*(nx-1))/(nx-1);
if (ki == 0) {
Bi = tex2DLayered(tex,i,j,0);
} else if (ki < nkernel) {
if (ext_basis[ki]) {
Bi = tex2DLayered(tex,i+a,j+b,1)-tex2DLayered(tex,i,j,0);
} else {
Bi = tex2DLayered(tex,i+a,j+b,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bi = 1.0;
}
temp += pow(x,l1)*py*Bi*tex2DLayered(tex,i,j,2)*tex2DLayered(tex,i,j,3)*
tex2DLayered(tex,i,j,4);
}
}
count[threadIdx.x] = temp;
__syncthreads();
// Then parallel-sum the rows
i = blockDim.x/2;
while (i != 0) {
if (threadIdx.x < i) {
count[threadIdx.x] += count[threadIdx.x + i];
}
__syncthreads();
i /= 2;
}
if (threadIdx.x == 0) {
V[blockIdx.x] = count[0];
}
}
__global__ void cu_compute_vector_stamps(int dp, int ds, int db, int nx,
int ny, int nstamps, int stamp_half_width, float *stamp_xpos, float* stamp_ypos,
int *kxindex, int *kyindex, int *ext_basis, int nkernel,
int kernelRadius,float *V) {
int idx;
int np, ns, ki, a, b, d1, i, j, i1, i2, j1, j2;
int l, m, l1, m1;
float py, x, y, Bi;
double temp;
__shared__ double count[THREADS_PER_BLOCK];
// Calculate number of terms in subvectors
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// This is the index of the subvector and its kernel offsets
ki = blockIdx.x < np ? 0 : (blockIdx.x-np)/ns + 1;
a = b = 0;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
}
// Set the polynomial degrees for the submatrix and the
// indices within the submatrix
if (ki == 0) {
d1 = dp;
idx = blockIdx.x;
} else if (ki < nkernel) {
d1 = ds;
idx = blockIdx.x - np - (ki-1)*ns;
} else {
d1 = db;
idx = blockIdx.x - np - (ki-1)*ns;
}
// Compute the (l,m) values corresponding to the index within
// the subvector
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == idx) {
l1 = l;
m1 = m;
}
i++;
}
}
// Compute the contribution to V from each image location.
// Use individual threads to sum over columns.
// tex[:,:,0] is the reference image,
// tex[:,:,1] is the blurred reference image,
// tex[:,:,2] is the target image,
// tex[:,:,3] is the inverse variance,
// tex[:,:,4] is the mask.
// Bi is the basis image value.
temp = 0.0;
Bi = 1.0;
__syncthreads();
for (idx = threadIdx.x; idx<nstamps; idx += blockDim.x) {
j1 = max(0,(int)stamp_ypos[idx]-stamp_half_width);
j2 = min(ny,(int)stamp_ypos[idx]+stamp_half_width);
for (j=j1; j<j2; j++) {
y = (j - 0.5*(ny-1))/(ny-1);
py = pow(y,m1);
i1 = max(0,(int)stamp_xpos[idx]-stamp_half_width);
i2 = min(nx,(int)stamp_xpos[idx]+stamp_half_width);
for (i=i1; i<i2; i++) {
x = (i - 0.5*(nx-1))/(nx-1);
if (ki == 0) {
Bi = tex2DLayered(tex,i,j,0);
} else if (ki < nkernel) {
if (ext_basis[ki]) {
Bi = tex2DLayered(tex,i+a,j+b,1)-tex2DLayered(tex,i,j,0);
} else {
Bi = tex2DLayered(tex,i+a,j+b,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bi = 1.0;
}
temp += pow(x,l1)*py*Bi*tex2DLayered(tex,i,j,2)*tex2DLayered(tex,i,j,3)*
tex2DLayered(tex,i,j,4);
}
}
}
count[threadIdx.x] = temp;
__syncthreads();
// Then parallel-sum the rows
i = blockDim.x/2;
while (i != 0) {
if (threadIdx.x < i) {
count[threadIdx.x] += count[threadIdx.x + i];
}
__syncthreads();
i /= 2;
}
if (threadIdx.x == 0) {
V[blockIdx.x] = count[0];
}
}
__global__ void cu_compute_matrix(int dp, int ds, int db, int nx,
int ny, int *kxindex, int *kyindex, int *ext_basis, int nkernel,
int kernelRadius,float *H) {
int idx, idy, idx0, idy0, idx1, idy1;
int np, ns, ki, kj, a, b, c, d, d1, d2, i, j;
int l, m, l1, m1, l2, m2;
float py, x, y, Bi, Bj;
double temp;
__shared__ double count[THREADS_PER_BLOCK];
// Terminate if we are not in the lower triangle
if (blockIdx.x > blockIdx.y) {
return;
}
// Calculate number of terms in submatrices
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// These are indices of the submatrix and their kernel offsets
ki = blockIdx.x < np ? 0 : (blockIdx.x-np)/ns + 1;
kj = blockIdx.y < np ? 0 : (blockIdx.y-np)/ns + 1;
a = b = 0;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
}
if (kj<nkernel) {
c = kxindex[kj];
d = kyindex[kj];
}
// Set the polynomial degrees for the submatrix and the
// indices within the submatrix
if (ki == 0) {
d1 = dp;
idx = blockIdx.x;
} else if (ki < nkernel) {
d1 = ds;
idx = blockIdx.x - np - (ki-1)*ns;
} else {
d1 = db;
idx = blockIdx.x - np - (ki-1)*ns;
}
if (kj == 0) {
d2 = dp;
idy = blockIdx.y;
} else if (kj < nkernel) {
d2 = ds;
idy = blockIdx.y - np - (kj-1)*ns;
} else {
d2 = db;
idy = blockIdx.y - np - (kj-1)*ns;
}
if ((ki>0) && (ki<nkernel) && (kj>0) && (kj<nkernel) && (idx > idy)) {
return;
}
idx0 = idx;
idy0 = idy;
// Compute the (l,m) values corresponding to the indices within
// the submatrix
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == idx) {
l1 = l;
m1 = m;
}
i++;
}
}
i = 0;
for (l=0; l<=d2; l++) {
for (m=0; m<=d2-l; m++) {
if (i == idy) {
l2 = l;
m2 = m;
}
i++;
}
}
// Compute the contribution to H from each image location.
// Use individual threads to sum over columns.
// tex[:,:,0] is the reference image,
// tex[:,:,1] is the blurred reference image,
// tex[:,:,2] is the target image,
// tex[:,:,3] is the inverse variance,
// tex[:,:,4] is the mask.
// Bi and Bj are the basis image values.
temp = 0.0;
Bi = Bj = 1.0;
__syncthreads();
for (j=kernelRadius; j<ny-kernelRadius; j++) {
y = (j - 0.5*(ny-1))/(ny-1);
py = pow(y,m1+m2);
for (i=threadIdx.x+kernelRadius; i<nx-kernelRadius; i+=blockDim.x) {
x = (i - 0.5*(nx-1))/(nx-1);
if (ki == 0) {
Bi = tex2DLayered(tex,i,j,0);
} else if (ki < nkernel) {
if (ext_basis[ki]) {
Bi = tex2DLayered(tex,i+a,j+b,1)-tex2DLayered(tex,i,j,0);
} else {
Bi = tex2DLayered(tex,i+a,j+b,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bi = 1.0;
}
if (kj == 0) {
Bj = tex2DLayered(tex,i,j,0);
} else if (kj < nkernel) {
if (ext_basis[kj]) {
Bj = tex2DLayered(tex,i+c,j+d,1)-tex2DLayered(tex,i,j,0);
} else {
Bj = tex2DLayered(tex,i+c,j+d,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bj = 1.0;
}
temp += pow(x,l1+l2)*py*Bi*Bj*tex2DLayered(tex,i,j,3)*tex2DLayered(tex,i,j,4);
}
}
count[threadIdx.x] = temp;
__syncthreads();
// Then parallel-sum the rows
i = blockDim.x/2;
while (i != 0) {
if (threadIdx.x < i) {
count[threadIdx.x] += count[threadIdx.x + i];
}
__syncthreads();
i /= 2;
}
if (threadIdx.x == 0) {
H[blockIdx.x+gridDim.x*blockIdx.y] = count[0];
H[blockIdx.y+gridDim.x*blockIdx.x] = count[0];
if ((ki>0) && (ki<nkernel) && (kj>0) && (kj<nkernel)) {
idx1 = np + (ki-1)*ns;
idy1 = np + (kj-1)*ns;
H[(idx1+idy0)+gridDim.x*(idy1+idx0)] = count[0];
H[(idy1+idx0)+gridDim.x*(idx1+idy0)] = count[0];
}
}
}
__global__ void cu_compute_matrix_stamps(int dp, int ds, int db, int nx,
int ny, int nstamps, int stamp_half_width, float *stamp_xpos, float* stamp_ypos,
int *kxindex, int *kyindex, int *ext_basis, int nkernel,
int kernelRadius,float *H) {
int idx, idy, idx0, idy0, idx1, idy1;
int np, ns, ki, kj, a, b, c, d, d1, d2, i, j, i1, i2, j1, j2;
int l, m, l1, m1, l2, m2;
float px, py, x, y, Bi, Bj;
double temp;
__shared__ double count[THREADS_PER_BLOCK];
// Terminate if we are not in the lower triangle
if (blockIdx.x > blockIdx.y) {
return;
}
// Calculate number of terms in submatrices
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// These are indices of the submatrix and their kernel offsets
ki = blockIdx.x < np ? 0 : (blockIdx.x-np)/ns + 1;
kj = blockIdx.y < np ? 0 : (blockIdx.y-np)/ns + 1;
a = b = 0;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
}
if (kj<nkernel) {
c = kxindex[kj];
d = kyindex[kj];
}
// Set the polynomial degrees for the submatrix and the
// indices within the submatrix
if (ki == 0) {
d1 = dp;
idx = blockIdx.x;
} else if (ki < nkernel) {
d1 = ds;
idx = blockIdx.x - np - (ki-1)*ns;
} else {
d1 = db;
idx = blockIdx.x - np - (ki-1)*ns;
}
if (kj == 0) {
d2 = dp;
idy = blockIdx.y;
} else if (kj < nkernel) {
d2 = ds;
idy = blockIdx.y - np - (kj-1)*ns;
} else {
d2 = db;
idy = blockIdx.y - np - (kj-1)*ns;
}
if ((ki>0) && (ki<nkernel) && (kj>0) && (kj<nkernel) && (idx > idy)) {
return;
}
idx0 = idx;
idy0 = idy;
// Compute the (l,m) values corresponding to the indices within
// the submatrix
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == idx) {
l1 = l;
m1 = m;
}
i++;
}
}
i = 0;
for (l=0; l<=d2; l++) {
for (m=0; m<=d2-l; m++) {
if (i == idy) {
l2 = l;
m2 = m;
}
i++;
}
}
// Compute the contribution to H from each image location.
// Use individual threads to sum over stamps.
// tex[:,:,0] is the reference image,
// tex[:,:,1] is the blurred reference image,
// tex[:,:,2] is the target image,
// tex[:,:,3] is the inverse variance,
// tex[:,:,4] is the mask.
// Bi and Bj are the basis image values.
temp = 0.0;
Bi = Bj = 1.0;
__syncthreads();
for (idx = threadIdx.x; idx<nstamps; idx += blockDim.x) {
i1 = max(0,(int)stamp_xpos[idx]-stamp_half_width);
i2 = min(nx,(int)stamp_xpos[idx]+stamp_half_width);
for (i=i1; i<i2; i++) {
x = (i - 0.5*(nx-1))/(nx-1);
px = pow(x,l1+l2);
j1 = max(0,(int)stamp_ypos[idx]-stamp_half_width);
j2 = min(ny,(int)stamp_ypos[idx]+stamp_half_width);
for (j=j1; j<j2; j++) {
y = (j - 0.5*(ny-1))/(ny-1);
py = pow(y,m1+m2);
if (ki == 0) {
Bi = tex2DLayered(tex,i,j,0);
} else if (ki < nkernel) {
if (ext_basis[ki]) {
Bi = tex2DLayered(tex,i+a,j+b,1)-tex2DLayered(tex,i,j,0);
} else {
Bi = tex2DLayered(tex,i+a,j+b,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bi = 1.0;
}
if (kj == 0) {
Bj = tex2DLayered(tex,i,j,0);
} else if (kj < nkernel) {
if (ext_basis[kj]) {
Bj = tex2DLayered(tex,i+c,j+d,1)-tex2DLayered(tex,i,j,0);
} else {
Bj = tex2DLayered(tex,i+c,j+d,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bj = 1.0;
}
temp += px*py*Bi*Bj*tex2DLayered(tex,i,j,3)*tex2DLayered(tex,i,j,4);
}
}
}
count[threadIdx.x] = temp;
__syncthreads();
// Then parallel-sum the rows
i = blockDim.x/2;
while (i != 0) {
if (threadIdx.x < i) {
count[threadIdx.x] += count[threadIdx.x + i];
}
__syncthreads();
i /= 2;
}
if (threadIdx.x == 0) {
H[blockIdx.x+gridDim.x*blockIdx.y] = count[0];
H[blockIdx.y+gridDim.x*blockIdx.x] = count[0];
if ((ki>0) && (ki<nkernel) && (kj>0) && (kj<nkernel)) {
idx1 = np + (ki-1)*ns;
idy1 = np + (kj-1)*ns;
H[(idx1+idy0)+gridDim.x*(idy1+idx0)] = count[0];
H[(idy1+idx0)+gridDim.x*(idx1+idy0)] = count[0];
}
}
}
""")
| 25.895377 | 219 | 0.485272 | import pycuda.autoinit
from pycuda.compiler import SourceModule
cu_matrix_kernel = SourceModule("""
#include <math.h>
#include <stdio.h>
#include "texture_fetch_functions.h"
#include "texture_types.h"
#define THREADS_PER_BLOCK 256
#define FIT_RADIUS 6
texture<float, cudaTextureType2DLayered, cudaReadModeElementType> tex;
__device__ void deconvolve3_columns(int width,int height,int rowstride,
double *data,double *buffer,double a,double b) {
double *row;
double q;
int i, j;
/*
// if (( height < 2) || (rowstride > width)) {
// printf("Failure in deconvolve3_rows: height, rowstride, width, a, b = %//d %d %d %f %f\n",height, rowstride, width, a, b );
// return;
// }
*/
if (!height || !width)
return;
if (height == 1) {
q = a + 2.0*b;
for (j = 0; j < width; j++)
data[j] /= q;
return;
}
if (height == 2) {
q = a*(a + 2.0*b);
for (j = 0; j < width; j++) {
buffer[0] = (a + b)/q*data[j] - b/q*data[rowstride + j];
data[rowstride + j] = (a + b)/q*data[rowstride + j] - b/q*data[j];
data[j] = buffer[0];
}
return;
}
/* Special-case first row */
buffer[0] = a + b;
/* Inner rows */
for (i = 1; i < height-1; i++) {
q = b/buffer[i-1];
buffer[i] = a - q*b;
row = data + (i - 1)*rowstride;
for (j = 0; j < width; j++)
row[rowstride + j] -= q*row[j];
}
/* Special-case last row */
q = b/buffer[i-1];
buffer[i] = a + b*(1.0 - q);
row = data + (i - 1)*rowstride;
for (j = 0; j < width; j++)
row[rowstride + j] -= q*row[j];
/* Go back */
row += rowstride;
for (j = 0; j < width; j++)
row[j] /= buffer[i];
do {
i--;
row = data + i*rowstride;
for (j = 0; j < width; j++)
row[j] = (row[j] - b*row[rowstride + j])/buffer[i];
} while (i > 0);
}
__device__ void deconvolve3_rows(int width,int height,int rowstride,double *data,
double *buffer,double a,double b) {
double *row;
double q;
int i, j;
/*
// if (( height < 2) || (rowstride > width)) {
// printf("Failure in deconvolve3_rows\n");
// return;
// }
*/
if (!height || !width)
return;
if (width == 1) {
q = a + 2.0*b;
for (i = 0; i < height; i++)
data[i*rowstride] /= q;
return;
}
if (width == 2) {
q = a*(a + 2.0*b);
for (i = 0; i < height; i++) {
row = data + i*rowstride;
buffer[0] = (a + b)/q*row[0] - b/q*row[1];
row[1] = (a + b)/q*row[1] - b/q*row[0];
row[0] = buffer[0];
}
return;
}
/* Special-case first item */
buffer[0] = a + b;
/* Inner items */
for (j = 1; j < width-1; j++) {
q = b/buffer[j-1];
buffer[j] = a - q*b;
data[j] -= q*data[j-1];
}
/* Special-case last item */
q = b/buffer[j-1];
buffer[j] = a + b*(1.0 - q);
data[j] -= q*data[j-1];
/* Go back */
data[j] /= buffer[j];
do {
j--;
data[j] = (data[j] - b*data[j+1])/buffer[j];
} while (j > 0);
/* Remaining rows */
for (i = 1; i < height; i++) {
row = data + i*rowstride;
/* Forward */
for (j = 1; j < width-1; j++)
row[j] -= b*row[j-1]/buffer[j-1];
row[j] -= b*row[j-1]/buffer[j-1];
/* Back */
row[j] /= buffer[j];
do {
j--;
row[j] = (row[j] - b*row[j+1])/buffer[j];
} while (j > 0);
}
}
__device__ void resolve_coeffs_2d(int width, int height, int rowstride, double *data) {
double *buffer;
int max;
max = width > height ? width : height;
buffer = (double *)malloc(max*sizeof(double));
deconvolve3_rows(width, height, rowstride, data, buffer, 13.0/21.0, 4.0/21.0);
deconvolve3_columns(width, height, rowstride, data, buffer, 13.0/21.0, 4.0/21.0);
free(buffer);
}
__device__ double interpolate_2d(double x,double y,int rowstride,double *coeff) {
double wx[4], wy[4];
int i, j;
double v, vx;
/*
// if (x < 0.0 || x > 1.0 || y < 0.0 || y > 1.0) {
// printf("interpolate_2d: x or y out of bounds %f %f\n",x,y);
// return(-1.0);
// }
*/
wx[0] = 4.0/21.0 + (-11.0/21.0 + (0.5 - x/6.0)*x)*x;
wx[1] = 13.0/21.0 + (1.0/14.0 + (-1.0 + x/2.0)*x)*x;
wx[2] = 4.0/21.0 + (3.0/7.0 + (0.5 - x/2.0)*x)*x;
wx[3] = (1.0/42.0 + x*x/6.0)*x;
wy[0] = 4.0/21.0 + (-11.0/21.0 + (0.5 - y/6.0)*y)*y;
wy[1] = 13.0/21.0 + (1.0/14.0 + (-1.0 + y/2.0)*y)*y;
wy[2] = 4.0/21.0 + (3.0/7.0 + (0.5 - y/2.0)*y)*y;
wy[3] = (1.0/42.0 + y*y/6.0)*y;
v = 0.0;
for (i = 0; i < 4; i++) {
vx = 0.0;
for (j = 0; j < 4; j++)
vx += coeff[i*rowstride + j]*wx[j];
v += wy[i]*vx;
}
return v;
}
__device__ float integrated_profile(int profile_type, int idx, int idy, float xpos,
float ypos, float *psf_parameters, float *lut_0,
float *lut_xd, float *lut_yd) {
int psf_size;
float psf_height, psf_sigma_x, psf_sigma_y, psf_xpos, psf_ypos;
float p0;
int ip, jp;
double pi=3.14159265,fwtosig=0.8493218;
psf_size = (int) psf_parameters[0];
psf_height = psf_parameters[1];
psf_sigma_x = psf_parameters[2];
psf_sigma_y = psf_parameters[3];
psf_ypos = psf_parameters[4];
psf_xpos = psf_parameters[5];
if (profile_type == 0) {
// gaussian
// PSF at location (Idx,Idy). PSF is centred at (7.5,7.5)
// Analytic part
p0 = 0.5*psf_height*pi*fwtosig*fwtosig*
(erf((idx-7.5+0.5)/(1.41421356*psf_sigma_x)) -
erf((idx-7.5-0.5)/(1.41421356*psf_sigma_x))) *
(erf((idy-7.5+0.5)/(1.41421356*psf_sigma_y)) -
erf((idy-7.5-0.5)/(1.41421356*psf_sigma_y)));
// Index into the lookup table
ip = psf_size/2 + 2*idx - 15;
jp = psf_size/2 + 2*idy - 15;
if ((ip>=0) && (ip<=psf_size-1) && (jp>=0) && (jp<=psf_size-1)) {
p0 += lut_0[ip+psf_size*jp] + lut_xd[ip+psf_size*jp]*(xpos-psf_xpos) +
lut_yd[ip+psf_size*jp]*(ypos-psf_ypos);
}
return p0;
} else if (profile_type == 1) {
// moffat25
// From iraf/noao/digiphot/daophot/daolib/profile.x
float d[4][4] = {{ 0.0, 0.0, 0.0, 0.0},
{-0.28867513, 0.28867513, 0.0, 0.0},
{-0.38729833, 0.0, 0.38729833, 0.0},
{-0.43056816, -0.16999052, 0.16999052, 0.43056816}};
float w[4][4] = {{1.0, 0.0, 0.0, 0.0},
{0.5, 0.5, 0.0, 0.0},
{0.27777778, 0.44444444, 0.27777778, 0.0},
{0.17392742, 0.32607258, 0.32607258, 0.17392742}};
double alpha = 0.3195079;
float p1sq, p2sq, p1p2, dx, dy, xy, denom, func, x[4], xsq[4], p1xsq[4];
float y, ysq, p2ysq, wt, p4fod, wp4fod, wf;
int npt, ix, iy;
p1sq = psf_parameters[2]*psf_parameters[2];
p2sq = psf_parameters[3]*psf_parameters[3];
p1p2 = psf_parameters[2]*psf_parameters[3];
dx = idx-7.5+0.5;
dy = idy-7.5+0.5;
xy = dx * dy;
denom = 1.0 + alpha * (dx*dx/p1sq + dy*dy/p2sq + xy*psf_parameters[4]);
if (denom > 1.0e4) {
return 0.0;
}
p0 = 0.0;
func = 1.0 / (p1p2*pow(double(denom),double(2.5)));
if (func >= 0.046) {
npt = 4;
} else if (func >= 0.0022) {
npt = 3;
} else if (func >= 0.0001) {
npt = 2;
} else if (func >= 1.0e-10) {
p0 = (2.5 - 1.0) * func;
}
if (func >= 0.0001) {
for (ix=0; ix<npt; ix++) {
x[ix] = dx + d[npt][ix];
xsq[ix] = x[ix]*x[ix];
p1xsq[ix] = xsq[ix]/p1sq;
}
for (iy=0; iy<npt; iy++) {
y = dy + d[npt][iy];
ysq = y*y;
p2ysq = ysq/p2sq;
for (ix=0; ix<npt; ix++) {
wt = w[npt][iy] * w[npt][ix];
xy = x[ix] * y;
denom = 1.0 + alpha * (p1xsq[ix] + p2ysq + xy*psf_parameters[4]);
func = (2.5 - 1.0) / (p1p2 * pow(double(denom),double(2.5)) );
p4fod = 2.5 * alpha * func / denom;
wp4fod = wt * p4fod;
wf = wt * func;
p0 += wf;
}
}
}
p0 *= psf_parameters[1];
// Index into the lookup table
ip = psf_size/2 + 2*idx - 15;
jp = psf_size/2 + 2*idy - 15;
if ((ip>=0) && (ip<=psf_size-1) && (jp>=0) && (jp<=psf_size-1)) {
p0 += lut_0[ip+psf_size*jp] + lut_xd[ip+psf_size*jp]*(xpos-psf_xpos) +
lut_yd[ip+psf_size*jp]*(ypos-psf_ypos);
}
return p0;
} else {
return 0.0;
}
}
__global__ void convolve_image_psf(int profile_type, int nx, int ny, int dx, int dy,
int dp, int ds, int n_coeff, int nkernel,
int kernel_radius,int *kxindex,
int *kyindex, int* ext_basis, float *psf_parameters,
float *psf_0, float *psf_xd, float *psf_yd,
float *coeff,float *cim1, float* cim2) {
int id, txa, tyb, txag, tybg;
int np, ns, i, j, ii, ip, jp, ic, ki, a, b;
int d1, sidx, l, m, l1, m1, ig, jg;
int psf_size, ix, jx;
float x, y, p0, p1, p1g, cpsf_pixel, xpos, ypos;
float psf_height, psf_sigma_x, psf_sigma_y, psf_sigma_xy, psf_xpos, psf_ypos;
float gain,psf_rad,psf_rad2, px, py;
float sx2, sy2, sxy2, sx2msy2, sx2psy2;
double psf_norm,dd;
double pi=3.14159265,fwtosig=0.8493218;
__shared__ double psf_sum[256];
__shared__ double cpsf[256];
__shared__ double cpix1[256];
__shared__ double cpix2[256];
// initialise memory
id = threadIdx.x+threadIdx.y*16;
cpsf[id] = 0.0;
// star position in normalised units
xpos = blockIdx.x*dx + dx/2;
ypos = blockIdx.y*dy + dy/2;
x = (xpos - 0.5*(nx-1))/(nx-1);
y = (ypos - 0.5*(ny-1))/(ny-1);
// number of polynomial coefficients per basis function
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// PSF parameters
psf_size = (int) psf_parameters[0];
psf_height = psf_parameters[1];
psf_sigma_x = psf_parameters[2];
psf_sigma_y = psf_parameters[3];
psf_ypos = psf_parameters[4];
psf_xpos = psf_parameters[5];
psf_rad = psf_parameters[6];
gain = psf_parameters[7];
if (psf_rad > 5.0) {
psf_rad = 5.0;
}
psf_rad2 = psf_rad*psf_rad;
// PSF integral
__syncthreads();
psf_sum[id] = 0.0;
for (i=threadIdx.x+1; i<psf_size-1; i+=blockDim.x) {
for (j=threadIdx.y+1; j<psf_size-1; j+=blockDim.y) {
psf_sum[id] += psf_0[i+j*psf_size];
}
}
__syncthreads();
i = 128;
while (i != 0) {
if (id < i) {
psf_sum[id] += psf_sum[id + i];
}
__syncthreads();
i /= 2;
}
__syncthreads();
if (profile_type == 0) {
// gaussian
psf_norm = 0.25*psf_sum[0] + psf_height*2*pi*fwtosig*fwtosig;
} else if (profile_type == 1) {
// moffat25
psf_sigma_xy = psf_parameters[8];
sx2 = psf_sigma_x*psf_sigma_x;
sy2 = psf_sigma_y*psf_sigma_y;
sxy2 = psf_sigma_xy*psf_sigma_xy;
sx2msy2 = 1.0/sx2 - 1.0/sy2;
sx2psy2 = 1.0/sx2 + 1.0/sy2;
px = 1.0/sqrt( sx2psy2 + sqrt(sx2msy2*sx2msy2 + sxy2) );
py = 1.0/sqrt( sx2psy2 - sqrt(sx2msy2*sx2msy2 + sxy2) );
psf_norm = 0.25*psf_sum[0] + psf_height*pi*(px*py)/(psf_sigma_x*psf_sigma_y);
}
// Construct the convolved PSF
// PSF at location (Idx,Idy). PSF is centred at (7.5,7.5)
// Analytic part
p0 = integrated_profile(profile_type, threadIdx.x, threadIdx.y, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
cpsf_pixel = 0.0;
// Iterate over coefficients
for (ic=0; ic<n_coeff; ic++) {
// basis function position
ki = ic < np ? 0 : (ic-np)/ns + 1;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
// Set the polynomial degree for the subvector and the
// index within the subvector
if (ki == 0) {
d1 = dp;
sidx = ic;
} else {
d1 = ds;
sidx = ic - np - (ki-1)*ns;
}
// Compute the polynomial index (l,m) values corresponding
// to the index within the subvector
l1 = m1 = 0;
if (d1 > 0) {
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == sidx) {
l1 = l;
m1 = m;
}
i++;
}
}
}
// Indices into the PSF
if (ki > 0) {
txa = threadIdx.x + a;
tyb = threadIdx.y + b;
p1 = integrated_profile(profile_type, txa, tyb, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
// If we have an extended basis function, we need to
// average the PSF over a 3x3 grid
if (ext_basis[ki]) {
p1 = 0.0;
for (ig=-1; ig<2; ig++) {
for (jg=-1; jg<2; jg++) {
txag = txa + ig;
tybg = tyb + jg;
p1g = integrated_profile(profile_type, txag, tybg, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
p1 += p1g;
}
}
p1 /= 9.0;
}
cpsf_pixel += coeff[ic]*(p1-p0)*pow(x,l1)*pow(y,m1);
} else {
cpsf_pixel += coeff[ic]*p0*pow(x,l1)*pow(y,m1);
}
}
} //end ic loop
__syncthreads();
cpsf[id] = cpsf_pixel/psf_norm;
__syncthreads();
// Now convolve the image section with the convolved PSF
for (i=xpos-dx/2; i<xpos+dx/2; i++) {
for (j=ypos-dy/2; j<ypos+dy/2; j++) {
ix = (int)floor(i+0.5)+threadIdx.x-8.0;
jx = (int)floor(j+0.5)+threadIdx.y-8.0;
cpix1[id] = cpsf[id]*tex2DLayered(tex,ix,jx,0);
cpix2[id] = cpsf[id]*tex2DLayered(tex,ix,jx,1);
__syncthreads();
// Parallel sum
ii = 128;
while (ii != 0) {
if (id < ii) {
cpix1[id] += cpix1[id + ii];
cpix2[id] += cpix2[id + ii];
}
__syncthreads();
ii /= 2;
}
if (id == 0) {
cim1[i+j*nx] = cpix1[0];
cim2[i+j*nx] = cpix2[0];
}
__syncthreads();
}
}
return;
}
__global__ void cu_photom(int profile_type,
int nx, int ny, int dp, int ds, int n_coeff, int nkernel,
int kernel_radius,int *kxindex,
int *kyindex, int* ext_basis, float *psf_parameters,
float *psf_0, float *psf_xd, float *psf_yd,
float *posx,
float *posy, float *coeff,
float *flux, float *dflux, float *star_sky) {
int id, txa, tyb, txag, tybg;
int np, ns, i, j, ip, jp, ic, ki, a, b;
int d1, sidx, l, m, l1, m1, ig, jg;
int psf_size, ix, jx;
float x, y, p0, p1, p1g, cpsf_pixel, xpos, ypos, dd;
float psf_height, psf_sigma_x, psf_sigma_y, psf_sigma_xy, psf_xpos, psf_ypos;
float psf_rad, psf_rad2, gain, fl, inv_var, px, py;
float sx2, sy2, sxy2, sx2msy2, sx2psy2;
double subx, suby, psf_norm, bgnd;
double pi=3.14159265, fwtosig=0.8493218, RON=5.0;
__shared__ double psf_sum[256];
__shared__ double cpsf[256];
__shared__ float mpsf[256];
__shared__ float fsum1[256];
__shared__ float fsum2[256];
__shared__ float fsum3[256];
__shared__ float fsum4[256];
__shared__ float fsum5[256];
// initialise memory
id = threadIdx.x+threadIdx.y*16;
cpsf[id] = 0.0;
mpsf[id] = 0.0;
// star position in normalised units
xpos = posx[blockIdx.x];
ypos = posy[blockIdx.x];
x = (xpos - 0.5*(nx-1))/(nx-1);
y = (ypos - 0.5*(ny-1))/(ny-1);
// number of polynomial coefficients per basis function
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// PSF parameters
psf_size = (int) psf_parameters[0];
psf_height = psf_parameters[1];
psf_sigma_x = psf_parameters[2];
psf_sigma_y = psf_parameters[3];
psf_ypos = psf_parameters[4];
psf_xpos = psf_parameters[5];
psf_rad = psf_parameters[6];
gain = psf_parameters[7];
if (psf_rad > 7.0) {
psf_rad = 7.0;
}
psf_rad2 = psf_rad*psf_rad;
// PSF integral
__syncthreads();
psf_sum[id] = 0.0;
for (i=threadIdx.x; i<psf_size; i+=blockDim.x) {
for (j=threadIdx.y; j<psf_size; j+=blockDim.y) {
psf_sum[id] += psf_0[i+j*psf_size];
//if (blockIdx.x == 120) {
// printf("i, j, id, psf_0: %d %d %d %f\\n",i,j,id,psf_0[i+j*psf_size]);
//}
}
}
__syncthreads();
i = 128;
while (i != 0) {
if (id < i) {
psf_sum[id] += psf_sum[id + i];
}
__syncthreads();
i /= 2;
}
__syncthreads();
if (profile_type == 0) {
// gaussian
psf_norm = 0.25*psf_sum[0] + psf_height*2*pi*fwtosig*fwtosig;
//if ((id == 0) && (blockIdx.x==120)){
// printf("psf_sum0, psf_height, psf_norm: %f %f %f\\n",psf_sum[0],psf_height,psf_norm);
//}
} else if (profile_type == 1) {
// moffat25
psf_sigma_xy = psf_parameters[8];
sx2 = psf_sigma_x*psf_sigma_x;
sy2 = psf_sigma_y*psf_sigma_y;
sxy2 = psf_sigma_xy*psf_sigma_xy;
sx2msy2 = 1.0/sx2 - 1.0/sy2;
sx2psy2 = 1.0/sx2 + 1.0/sy2;
px = 1.0/sqrt( sx2psy2 + sqrt(sx2msy2*sx2msy2 + sxy2) );
py = 1.0/sqrt( sx2psy2 - sqrt(sx2msy2*sx2msy2 + sxy2) );
psf_norm = 0.25*psf_sum[0] + psf_height*pi*(px*py)/(psf_sigma_x*psf_sigma_y);
//if ((id == 0) && (blockIdx.x==120)){
// printf("psf_sum0, psf_height, psf_norm: %f %f %f\\n",psf_sum[0],psf_height, psf_norm);
//}
}
// Construct the convolved PSF
// PSF at location (Idx,Idy). PSF is centred at (7.5,7.5)
// Analytic part
p0 = integrated_profile(profile_type, threadIdx.x, threadIdx.y, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
// Spatially variable part
//
// +
// psf_xd[ipsf+psf_size*jpsf]*(xpos-psf_xpos) +
// psf_yd[ipsf+psf_size*jpsf]*(ypos-psf_ypos);
// }
//
cpsf_pixel = 0.0;
// Iterate over coefficients
for (ic=0; ic<n_coeff; ic++) {
// basis function position
ki = ic < np ? 0 : (ic-np)/ns + 1;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
// Set the polynomial degree for the subvector and the
// index within the subvector
if (ki == 0) {
d1 = dp;
sidx = ic;
} else {
d1 = ds;
sidx = ic - np - (ki-1)*ns;
}
// Compute the polynomial index (l,m) values corresponding
// to the index within the subvector
l1 = m1 = 0;
if (d1 > 0) {
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == sidx) {
l1 = l;
m1 = m;
}
i++;
}
}
}
// Indices into the PSF
if (ki > 0) {
txa = threadIdx.x + a;
tyb = threadIdx.y + b;
p1 = integrated_profile(profile_type, txa, tyb, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
//
// +
// psf_xd[ipsf+psf_size*jpsf]*(xpos-psf_xpos) +
// psf_yd[ipsf+psf_size*jpsf]*(ypos-psf_ypos);
// }
//
// If we have an extended basis function, we need to
// average the PSF over a 3x3 grid
if (ext_basis[ki]) {
p1 = 0.0;
for (ig=-1; ig<2; ig++) {
for (jg=-1; jg<2; jg++) {
txag = txa + ig;
tybg = tyb + jg;
p1g = integrated_profile(profile_type, txag, tybg, xpos, ypos,
psf_parameters, psf_0, psf_xd, psf_yd);
__syncthreads();
//
// +
// psf_xd[ipsf+psf_size*jpsf]*(xpos-psf_xpos) +
// psf_yd[ipsf+psf_size*jpsf]*(ypos-psf_ypos);
// }
//
p1 += p1g;
}
}
p1 /= 9.0;
}
cpsf_pixel += coeff[ic]*(p1-p0)*pow(x,l1)*pow(y,m1);
} else {
cpsf_pixel += coeff[ic]*p0*pow(x,l1)*pow(y,m1);
}
}
} //end ic loop
__syncthreads();
cpsf[id] = cpsf_pixel/psf_norm;
__syncthreads();
/* Uncomment to print convolved PSF
if ((id == 0) && (blockIdx.x==14)){
txa = 7;
tyb = 7;
ip = psf_size/2 + 2*txa - 15;
jp = psf_size/2 + 2*tyb - 15;
if (profile_type == 0) {
printf("psf_test: %lf %lf %lf %lf\\n",
0.5*psf_height*pi*fwtosig*fwtosig*
(erf((txa-7.5+0.5)/(1.41421356*psf_sigma_x)) -
erf((txa-7.5-0.5)/(1.41421356*psf_sigma_x))) *
(erf((tyb-7.5+0.5)/(1.41421356*psf_sigma_y)) -
erf((tyb-7.5-0.5)/(1.41421356*psf_sigma_y))),
psf_0[ip+psf_size*jp],
psf_xd[ip+psf_size*jp]*(xpos-psf_xpos),
psf_yd[ip+psf_size*jp]*(ypos-psf_ypos));
}
dd = 0.0;
printf("cpsf\\n");
for (j=15; j>=0; j--) {
printf("%2d ",j);
for (i=0; i<16; i++) {
printf("%6.4f ",cpsf[i+j*16]);
dd += cpsf[i+j*16];
}
printf("\\n");
}
printf("sum = %f\\n",dd);
printf("psf lookup table fraction: %f\\n",psf_sum[0]/psf_norm);
}
*/
__syncthreads();
// Map the convolved PSF to the subpixel star coordinates
if (id == 0) {
resolve_coeffs_2d(16,16,16,cpsf);
}
__syncthreads();
mpsf[id] = 0.0;
subx = ceil(xpos+0.5+0.0000000001) - (xpos+0.5);
suby = ceil(ypos+0.5+0.0000000001) - (ypos+0.5);
if ((threadIdx.x > 1) && (threadIdx.x < 14) &&
(threadIdx.y > 1) && (threadIdx.y < 14)) {
mpsf[id] = (float)interpolate_2d(subx,suby,16,&cpsf[threadIdx.x-2+(threadIdx.y-2)*16]);
}
__syncthreads();
// force negative pixels to zero
mpsf[id] = mpsf[id] > 0.0 ? mpsf[id] : 0.0;
__syncthreads();
//
// Normalise mapped PSF
// (No - the convolved PSF contains the phot scale)
/*
cpsf[id] = mpsf[id];
__syncthreads();
i = 128;
while (i != 0) {
if (id < i) {
cpsf[id] += cpsf[id + i];
}
__syncthreads();
i /= 2;
}
mpsf[id] /= cpsf[0];
*/
/* Uncomment to print mapped PSF */
if ((id == 0) && (blockIdx.x==14)){
printf("xpos, ypos: %f %f\\n",xpos,ypos);
printf("subx, suby: %f %f\\n",subx,suby);
printf("mpsf\\n");
dd = 0.0;
for (j=15; j>=0; j--) {
printf("%2d ",j);
for (i=0; i<16; i++) {
printf("%6.4f ",mpsf[i+j*16]);
dd += mpsf[i+j*16];
}
printf("\\n");
}
printf("sum = %f\\n",dd);
}
__syncthreads();
// Fit the mapped PSF to the difference image to compute an
// optimal flux estimate.
// Assume the difference image is in tex(:,:,0)
// and the inverse variance in tex(:,:,1).
// We need to iterate to get the variance correct
//
fl = 0.0;
for (j=0; j<3; j++) {
fsum1[id] = 0.0;
fsum2[id] = 0.0;
fsum3[id] = 0.0;
__syncthreads();
/*
if ((id == 0) && (blockIdx.x==14)){
printf("photom, j=%d\\n",j);
}
*/
if (pow(threadIdx.x-8.0,2)+pow(threadIdx.y-8.0,2) < psf_rad2) {
ix = (int)floor(xpos+0.5)+threadIdx.x-8.0;
jx = (int)floor(ypos+0.5)+threadIdx.y-8.0;
inv_var = 1.0/(1.0/tex2DLayered(tex,ix,jx,1) + fl*mpsf[id]/gain);
fsum1[id] = mpsf[id]*tex2DLayered(tex,ix,jx,0)*inv_var;
fsum2[id] = mpsf[id]*mpsf[id]*inv_var;
fsum3[id] = mpsf[id];
/*
if ((blockIdx.x==14)){
printf("ix jx mpsf im: %03d %03d %6.5f %12.2f\\n",ix,jx,mpsf[id],tex2DLayered(tex,ix,jx,0));
}
*/
}
__syncthreads();
// Parallel sum
i = 128;
while (i != 0) {
if (id < i) {
fsum1[id] += fsum1[id + i];
fsum2[id] += fsum2[id + i];
fsum3[id] += fsum3[id + i];
}
__syncthreads();
i /= 2;
}
fl = fsum1[0]/fsum2[0];
}
if (id == 0) {
flux[blockIdx.x] = fl;
dflux[blockIdx.x] = sqrt(fsum3[0]*fsum3[0]/fsum2[0]);
}
/* Uncomment for debug info */
/*
__syncthreads();
i = 128;
while (i != 0) {
if (id < i) {
mpsf[id] += mpsf[id + i];
}
__syncthreads();
i /= 2;
}
__syncthreads();
if (id == 0) {
if (blockIdx.x == 120) {
printf("result: %f %f %f %f %f %f %f %f %f %f %f %f\\n",fsum1[0],fsum2[0],fsum3[0],mpsf[0],psf_norm,psf_sum[0],bgnd,flux[blockIdx.x],flux[blockIdx.x]*fsum3[0],flux[blockIdx.x]*mpsf[0],fsum4[0],dflux[blockIdx.x]);
}
}
*/
__syncthreads();
return;
}
__global__ void cu_compute_model(int dp, int ds, int db, int *kxindex,
int *kyindex, int* ext_basis, int nkernel, float *coefficient,
float *M) {
int np, ns, nb, hs, idx, ki, a, b, d1, sidx, l, m, l1, m1, i;
double x, y, Bi;
__shared__ double count[THREADS_PER_BLOCK];
// Calculate number of terms in subvectors
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
nb = (db+1)*(db+2)/2;
hs = (nkernel-1)*ns+np+nb;
x = (blockIdx.x - 0.5*(gridDim.x-1))/(gridDim.x-1);
y = (blockIdx.y - 0.5*(gridDim.y-1))/(gridDim.y-1);
count[threadIdx.x] = 0.0;
for (idx = threadIdx.x; idx < hs; idx += blockDim.x) {
// This is the index of the subvector and its kernel offsets
ki = idx < np ? 0 : (idx-np)/ns + 1;
a = b = 0;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
}
// Set the polynomial degree for the subvector and the
// index within the subvector
if (ki == 0) {
d1 = dp;
sidx = idx;
} else if (ki < nkernel) {
d1 = ds;
sidx = idx - np - (ki-1)*ns;
} else {
d1 = db;
sidx = idx - np - (ki-1)*ns;
}
// Compute the (l,m) values corresponding to the index within
// the subvector
l1 = m1 = 0;
if (d1 > 0) {
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == sidx) {
l1 = l;
m1 = m;
}
i++;
}
}
}
if (ki == 0) {
Bi = tex2DLayered(tex,blockIdx.x,blockIdx.y,0);
} else if (ki < nkernel) {
if (ext_basis[ki]) {
Bi = tex2DLayered(tex,blockIdx.x+a,blockIdx.y+b,1)-
tex2DLayered(tex,blockIdx.x,blockIdx.y,0);
} else {
Bi = tex2DLayered(tex,blockIdx.x+a,blockIdx.y+b,0)-
tex2DLayered(tex,blockIdx.x,blockIdx.y,0);
}
} else {
Bi = 1.0;
}
count[threadIdx.x] += coefficient[idx]*pow(x,l1)*pow(y,m1)*Bi;
}
__syncthreads();
// Then parallel-sum the results
i = blockDim.x/2;
while (i != 0) {
if (threadIdx.x < i) {
count[threadIdx.x] += count[threadIdx.x + i];
}
__syncthreads();
i /= 2;
}
if (threadIdx.x == 0) {
M[blockIdx.x+gridDim.x*blockIdx.y] = count[0];
}
}
__global__ void cu_compute_vector(int dp, int ds, int db, int nx,
int ny, int *kxindex, int *kyindex, int *ext_basis, int nkernel,
int kernelRadius,float *V) {
int idx;
int np, ns, ki, a, b, d1, i, j;
int l, m, l1, m1;
float py, x, y, Bi;
double temp;
__shared__ double count[THREADS_PER_BLOCK];
// Calculate number of terms in subvectors
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// This is the index of the subvector and its kernel offsets
ki = blockIdx.x < np ? 0 : (blockIdx.x-np)/ns + 1;
a = b = 0;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
}
// Set the polynomial degrees for the submatrix and the
// indices within the submatrix
if (ki == 0) {
d1 = dp;
idx = blockIdx.x;
} else if (ki < nkernel) {
d1 = ds;
idx = blockIdx.x - np - (ki-1)*ns;
} else {
d1 = db;
idx = blockIdx.x - np - (ki-1)*ns;
}
// Compute the (l,m) values corresponding to the index within
// the subvector
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == idx) {
l1 = l;
m1 = m;
}
i++;
}
}
// Compute the contribution to V from each image location.
// Use individual threads to sum over columns.
// tex[:,:,0] is the reference image,
// tex[:,:,1] is the blurred reference image,
// tex[:,:,2] is the target image,
// tex[:,:,3] is the inverse variance,
// tex[:,:,4] is the mask.
// Bi is the basis image value.
temp = 0.0;
Bi = 1.0;
__syncthreads();
for (j=kernelRadius; j<ny-kernelRadius; j++) {
y = (j - 0.5*(ny-1))/(ny-1);
py = pow(y,m1);
for (i=threadIdx.x+kernelRadius; i<nx-kernelRadius; i+=blockDim.x) {
x = (i - 0.5*(nx-1))/(nx-1);
if (ki == 0) {
Bi = tex2DLayered(tex,i,j,0);
} else if (ki < nkernel) {
if (ext_basis[ki]) {
Bi = tex2DLayered(tex,i+a,j+b,1)-tex2DLayered(tex,i,j,0);
} else {
Bi = tex2DLayered(tex,i+a,j+b,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bi = 1.0;
}
temp += pow(x,l1)*py*Bi*tex2DLayered(tex,i,j,2)*tex2DLayered(tex,i,j,3)*
tex2DLayered(tex,i,j,4);
}
}
count[threadIdx.x] = temp;
__syncthreads();
// Then parallel-sum the rows
i = blockDim.x/2;
while (i != 0) {
if (threadIdx.x < i) {
count[threadIdx.x] += count[threadIdx.x + i];
}
__syncthreads();
i /= 2;
}
if (threadIdx.x == 0) {
V[blockIdx.x] = count[0];
}
}
__global__ void cu_compute_vector_stamps(int dp, int ds, int db, int nx,
int ny, int nstamps, int stamp_half_width, float *stamp_xpos, float* stamp_ypos,
int *kxindex, int *kyindex, int *ext_basis, int nkernel,
int kernelRadius,float *V) {
int idx;
int np, ns, ki, a, b, d1, i, j, i1, i2, j1, j2;
int l, m, l1, m1;
float py, x, y, Bi;
double temp;
__shared__ double count[THREADS_PER_BLOCK];
// Calculate number of terms in subvectors
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// This is the index of the subvector and its kernel offsets
ki = blockIdx.x < np ? 0 : (blockIdx.x-np)/ns + 1;
a = b = 0;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
}
// Set the polynomial degrees for the submatrix and the
// indices within the submatrix
if (ki == 0) {
d1 = dp;
idx = blockIdx.x;
} else if (ki < nkernel) {
d1 = ds;
idx = blockIdx.x - np - (ki-1)*ns;
} else {
d1 = db;
idx = blockIdx.x - np - (ki-1)*ns;
}
// Compute the (l,m) values corresponding to the index within
// the subvector
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == idx) {
l1 = l;
m1 = m;
}
i++;
}
}
// Compute the contribution to V from each image location.
// Use individual threads to sum over columns.
// tex[:,:,0] is the reference image,
// tex[:,:,1] is the blurred reference image,
// tex[:,:,2] is the target image,
// tex[:,:,3] is the inverse variance,
// tex[:,:,4] is the mask.
// Bi is the basis image value.
temp = 0.0;
Bi = 1.0;
__syncthreads();
for (idx = threadIdx.x; idx<nstamps; idx += blockDim.x) {
j1 = max(0,(int)stamp_ypos[idx]-stamp_half_width);
j2 = min(ny,(int)stamp_ypos[idx]+stamp_half_width);
for (j=j1; j<j2; j++) {
y = (j - 0.5*(ny-1))/(ny-1);
py = pow(y,m1);
i1 = max(0,(int)stamp_xpos[idx]-stamp_half_width);
i2 = min(nx,(int)stamp_xpos[idx]+stamp_half_width);
for (i=i1; i<i2; i++) {
x = (i - 0.5*(nx-1))/(nx-1);
if (ki == 0) {
Bi = tex2DLayered(tex,i,j,0);
} else if (ki < nkernel) {
if (ext_basis[ki]) {
Bi = tex2DLayered(tex,i+a,j+b,1)-tex2DLayered(tex,i,j,0);
} else {
Bi = tex2DLayered(tex,i+a,j+b,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bi = 1.0;
}
temp += pow(x,l1)*py*Bi*tex2DLayered(tex,i,j,2)*tex2DLayered(tex,i,j,3)*
tex2DLayered(tex,i,j,4);
}
}
}
count[threadIdx.x] = temp;
__syncthreads();
// Then parallel-sum the rows
i = blockDim.x/2;
while (i != 0) {
if (threadIdx.x < i) {
count[threadIdx.x] += count[threadIdx.x + i];
}
__syncthreads();
i /= 2;
}
if (threadIdx.x == 0) {
V[blockIdx.x] = count[0];
}
}
__global__ void cu_compute_matrix(int dp, int ds, int db, int nx,
int ny, int *kxindex, int *kyindex, int *ext_basis, int nkernel,
int kernelRadius,float *H) {
int idx, idy, idx0, idy0, idx1, idy1;
int np, ns, ki, kj, a, b, c, d, d1, d2, i, j;
int l, m, l1, m1, l2, m2;
float py, x, y, Bi, Bj;
double temp;
__shared__ double count[THREADS_PER_BLOCK];
// Terminate if we are not in the lower triangle
if (blockIdx.x > blockIdx.y) {
return;
}
// Calculate number of terms in submatrices
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// These are indices of the submatrix and their kernel offsets
ki = blockIdx.x < np ? 0 : (blockIdx.x-np)/ns + 1;
kj = blockIdx.y < np ? 0 : (blockIdx.y-np)/ns + 1;
a = b = 0;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
}
if (kj<nkernel) {
c = kxindex[kj];
d = kyindex[kj];
}
// Set the polynomial degrees for the submatrix and the
// indices within the submatrix
if (ki == 0) {
d1 = dp;
idx = blockIdx.x;
} else if (ki < nkernel) {
d1 = ds;
idx = blockIdx.x - np - (ki-1)*ns;
} else {
d1 = db;
idx = blockIdx.x - np - (ki-1)*ns;
}
if (kj == 0) {
d2 = dp;
idy = blockIdx.y;
} else if (kj < nkernel) {
d2 = ds;
idy = blockIdx.y - np - (kj-1)*ns;
} else {
d2 = db;
idy = blockIdx.y - np - (kj-1)*ns;
}
if ((ki>0) && (ki<nkernel) && (kj>0) && (kj<nkernel) && (idx > idy)) {
return;
}
idx0 = idx;
idy0 = idy;
// Compute the (l,m) values corresponding to the indices within
// the submatrix
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == idx) {
l1 = l;
m1 = m;
}
i++;
}
}
i = 0;
for (l=0; l<=d2; l++) {
for (m=0; m<=d2-l; m++) {
if (i == idy) {
l2 = l;
m2 = m;
}
i++;
}
}
// Compute the contribution to H from each image location.
// Use individual threads to sum over columns.
// tex[:,:,0] is the reference image,
// tex[:,:,1] is the blurred reference image,
// tex[:,:,2] is the target image,
// tex[:,:,3] is the inverse variance,
// tex[:,:,4] is the mask.
// Bi and Bj are the basis image values.
temp = 0.0;
Bi = Bj = 1.0;
__syncthreads();
for (j=kernelRadius; j<ny-kernelRadius; j++) {
y = (j - 0.5*(ny-1))/(ny-1);
py = pow(y,m1+m2);
for (i=threadIdx.x+kernelRadius; i<nx-kernelRadius; i+=blockDim.x) {
x = (i - 0.5*(nx-1))/(nx-1);
if (ki == 0) {
Bi = tex2DLayered(tex,i,j,0);
} else if (ki < nkernel) {
if (ext_basis[ki]) {
Bi = tex2DLayered(tex,i+a,j+b,1)-tex2DLayered(tex,i,j,0);
} else {
Bi = tex2DLayered(tex,i+a,j+b,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bi = 1.0;
}
if (kj == 0) {
Bj = tex2DLayered(tex,i,j,0);
} else if (kj < nkernel) {
if (ext_basis[kj]) {
Bj = tex2DLayered(tex,i+c,j+d,1)-tex2DLayered(tex,i,j,0);
} else {
Bj = tex2DLayered(tex,i+c,j+d,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bj = 1.0;
}
temp += pow(x,l1+l2)*py*Bi*Bj*tex2DLayered(tex,i,j,3)*tex2DLayered(tex,i,j,4);
}
}
count[threadIdx.x] = temp;
__syncthreads();
// Then parallel-sum the rows
i = blockDim.x/2;
while (i != 0) {
if (threadIdx.x < i) {
count[threadIdx.x] += count[threadIdx.x + i];
}
__syncthreads();
i /= 2;
}
if (threadIdx.x == 0) {
H[blockIdx.x+gridDim.x*blockIdx.y] = count[0];
H[blockIdx.y+gridDim.x*blockIdx.x] = count[0];
if ((ki>0) && (ki<nkernel) && (kj>0) && (kj<nkernel)) {
idx1 = np + (ki-1)*ns;
idy1 = np + (kj-1)*ns;
H[(idx1+idy0)+gridDim.x*(idy1+idx0)] = count[0];
H[(idy1+idx0)+gridDim.x*(idx1+idy0)] = count[0];
}
}
}
__global__ void cu_compute_matrix_stamps(int dp, int ds, int db, int nx,
int ny, int nstamps, int stamp_half_width, float *stamp_xpos, float* stamp_ypos,
int *kxindex, int *kyindex, int *ext_basis, int nkernel,
int kernelRadius,float *H) {
int idx, idy, idx0, idy0, idx1, idy1;
int np, ns, ki, kj, a, b, c, d, d1, d2, i, j, i1, i2, j1, j2;
int l, m, l1, m1, l2, m2;
float px, py, x, y, Bi, Bj;
double temp;
__shared__ double count[THREADS_PER_BLOCK];
// Terminate if we are not in the lower triangle
if (blockIdx.x > blockIdx.y) {
return;
}
// Calculate number of terms in submatrices
np = (dp+1)*(dp+2)/2;
ns = (ds+1)*(ds+2)/2;
// These are indices of the submatrix and their kernel offsets
ki = blockIdx.x < np ? 0 : (blockIdx.x-np)/ns + 1;
kj = blockIdx.y < np ? 0 : (blockIdx.y-np)/ns + 1;
a = b = 0;
if (ki<nkernel) {
a = kxindex[ki];
b = kyindex[ki];
}
if (kj<nkernel) {
c = kxindex[kj];
d = kyindex[kj];
}
// Set the polynomial degrees for the submatrix and the
// indices within the submatrix
if (ki == 0) {
d1 = dp;
idx = blockIdx.x;
} else if (ki < nkernel) {
d1 = ds;
idx = blockIdx.x - np - (ki-1)*ns;
} else {
d1 = db;
idx = blockIdx.x - np - (ki-1)*ns;
}
if (kj == 0) {
d2 = dp;
idy = blockIdx.y;
} else if (kj < nkernel) {
d2 = ds;
idy = blockIdx.y - np - (kj-1)*ns;
} else {
d2 = db;
idy = blockIdx.y - np - (kj-1)*ns;
}
if ((ki>0) && (ki<nkernel) && (kj>0) && (kj<nkernel) && (idx > idy)) {
return;
}
idx0 = idx;
idy0 = idy;
// Compute the (l,m) values corresponding to the indices within
// the submatrix
i = 0;
for (l=0; l<=d1; l++) {
for (m=0; m<=d1-l; m++) {
if (i == idx) {
l1 = l;
m1 = m;
}
i++;
}
}
i = 0;
for (l=0; l<=d2; l++) {
for (m=0; m<=d2-l; m++) {
if (i == idy) {
l2 = l;
m2 = m;
}
i++;
}
}
// Compute the contribution to H from each image location.
// Use individual threads to sum over stamps.
// tex[:,:,0] is the reference image,
// tex[:,:,1] is the blurred reference image,
// tex[:,:,2] is the target image,
// tex[:,:,3] is the inverse variance,
// tex[:,:,4] is the mask.
// Bi and Bj are the basis image values.
temp = 0.0;
Bi = Bj = 1.0;
__syncthreads();
for (idx = threadIdx.x; idx<nstamps; idx += blockDim.x) {
i1 = max(0,(int)stamp_xpos[idx]-stamp_half_width);
i2 = min(nx,(int)stamp_xpos[idx]+stamp_half_width);
for (i=i1; i<i2; i++) {
x = (i - 0.5*(nx-1))/(nx-1);
px = pow(x,l1+l2);
j1 = max(0,(int)stamp_ypos[idx]-stamp_half_width);
j2 = min(ny,(int)stamp_ypos[idx]+stamp_half_width);
for (j=j1; j<j2; j++) {
y = (j - 0.5*(ny-1))/(ny-1);
py = pow(y,m1+m2);
if (ki == 0) {
Bi = tex2DLayered(tex,i,j,0);
} else if (ki < nkernel) {
if (ext_basis[ki]) {
Bi = tex2DLayered(tex,i+a,j+b,1)-tex2DLayered(tex,i,j,0);
} else {
Bi = tex2DLayered(tex,i+a,j+b,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bi = 1.0;
}
if (kj == 0) {
Bj = tex2DLayered(tex,i,j,0);
} else if (kj < nkernel) {
if (ext_basis[kj]) {
Bj = tex2DLayered(tex,i+c,j+d,1)-tex2DLayered(tex,i,j,0);
} else {
Bj = tex2DLayered(tex,i+c,j+d,0)-tex2DLayered(tex,i,j,0);
}
} else {
Bj = 1.0;
}
temp += px*py*Bi*Bj*tex2DLayered(tex,i,j,3)*tex2DLayered(tex,i,j,4);
}
}
}
count[threadIdx.x] = temp;
__syncthreads();
// Then parallel-sum the rows
i = blockDim.x/2;
while (i != 0) {
if (threadIdx.x < i) {
count[threadIdx.x] += count[threadIdx.x + i];
}
__syncthreads();
i /= 2;
}
if (threadIdx.x == 0) {
H[blockIdx.x+gridDim.x*blockIdx.y] = count[0];
H[blockIdx.y+gridDim.x*blockIdx.x] = count[0];
if ((ki>0) && (ki<nkernel) && (kj>0) && (kj<nkernel)) {
idx1 = np + (ki-1)*ns;
idy1 = np + (kj-1)*ns;
H[(idx1+idy0)+gridDim.x*(idy1+idx0)] = count[0];
H[(idy1+idx0)+gridDim.x*(idx1+idy0)] = count[0];
}
}
}
""")
| 0 | 0 | 0 |
127f75e4af1c5b7ee4fe6000ac7878906b35420f | 5,466 | py | Python | taro/jobs/job.py | taro-suite/taro | baa76e75706bc824a799928d9b7548431b898338 | [
"MIT"
] | null | null | null | taro/jobs/job.py | taro-suite/taro | baa76e75706bc824a799928d9b7548431b898338 | [
"MIT"
] | 26 | 2021-04-05T12:32:21.000Z | 2022-03-22T12:53:44.000Z | taro/jobs/job.py | taro-suite/taro | baa76e75706bc824a799928d9b7548431b898338 | [
"MIT"
] | 1 | 2021-04-16T21:04:53.000Z | 2021-04-16T21:04:53.000Z | """
Job framework defines components used for job submission and management.
It is built upon :mod:`execution` framework.
It provides constructs for:
1. Creating of job definition
2. Implementing of job instance
3. Implementing of job observer
There are two type of clients of the framework:
1. Job users
2. Job management implementation
"""
import abc
from collections import namedtuple
from fnmatch import fnmatch
from taro.jobs.execution import ExecutionError
class JobInfo:
"""
Immutable snapshot of job instance state
"""
@property
@property
@property
@property
@property
@property
@property
DisabledJob = namedtuple('DisabledJob', 'job_id regex created expires')
Warn = namedtuple('Warn', 'name params')
WarnEventCtx = namedtuple('WarnEventCtx', 'count')
| 24.079295 | 115 | 0.643981 | """
Job framework defines components used for job submission and management.
It is built upon :mod:`execution` framework.
It provides constructs for:
1. Creating of job definition
2. Implementing of job instance
3. Implementing of job observer
There are two type of clients of the framework:
1. Job users
2. Job management implementation
"""
import abc
from collections import namedtuple
from fnmatch import fnmatch
from taro.jobs.execution import ExecutionError
class JobInstance(abc.ABC):
@property
@abc.abstractmethod
def job_id(self) -> str:
"""Identifier of the job of this instance"""
@property
@abc.abstractmethod
def instance_id(self) -> str:
"""Identifier of this instance"""
@property
@abc.abstractmethod
def lifecycle(self):
"""Execution lifecycle of this instance"""
@property
@abc.abstractmethod
def status(self):
"""Current status of the job or None if not supported"""
@property
@abc.abstractmethod
def last_output(self):
"""Last lines of output or None if not supported"""
@property
@abc.abstractmethod
def warnings(self):
"""
Return dictionary of {alarm_name: occurrence_count}
:return: warnings
"""
@abc.abstractmethod
def add_warning(self, warning):
"""
Add warning to the instance
:param warning warning to add
"""
@property
@abc.abstractmethod
def exec_error(self) -> ExecutionError:
"""Job execution error if occurred otherwise None"""
@abc.abstractmethod
def create_info(self):
"""
Create consistent (thread-safe) snapshot of job instance state
:return job (instance) info
"""
@abc.abstractmethod
def stop(self):
"""
Stop running execution gracefully
"""
@abc.abstractmethod
def interrupt(self):
"""
Stop running execution immediately
"""
@abc.abstractmethod
def add_state_observer(self, observer):
"""
Register execution state observer
Observer can be:
1. An instance of ExecutionStateObserver
2. Callable object with single parameter of JobInfo type
:param observer observer to register
"""
@abc.abstractmethod
def remove_state_observer(self, observer):
"""
De-register execution state observer
:param observer observer to de-register
"""
@abc.abstractmethod
def add_warning_observer(self, observer):
"""
Register warning observer
:param observer observer to register
"""
@abc.abstractmethod
def remove_warning_observer(self, observer):
"""
De-register warning observer
:param observer observer to de-register
"""
@abc.abstractmethod
def add_output_observer(self, observer):
"""
Register output observer
:param observer observer to register
"""
@abc.abstractmethod
def remove_output_observer(self, observer):
"""
De-register output observer
:param observer observer to de-register
"""
class JobInfo:
"""
Immutable snapshot of job instance state
"""
def __init__(self, job_id: str, instance_id: str, lifecycle, status, warnings, exec_error: ExecutionError):
self._job_id = job_id
self._instance_id = instance_id
self._lifecycle = lifecycle
self._status = status
self._warnings = warnings
self._exec_error = exec_error
@property
def job_id(self) -> str:
return self._job_id
@property
def instance_id(self) -> str:
return self._instance_id
@property
def lifecycle(self):
return self._lifecycle
@property
def state(self):
return self._lifecycle.state()
@property
def status(self):
return self._status
@property
def warnings(self):
return self._warnings
@property
def exec_error(self) -> ExecutionError:
return self._exec_error
def matches(self, instance, job_matching_strategy=fnmatch):
return job_matching_strategy(self.job_id, instance) or fnmatch(self.instance_id, instance)
def __repr__(self) -> str:
return "{}({!r}, {!r}, {!r}, {!r}, {!r}, {!r})".format(
self.__class__.__name__, self._job_id, self.instance_id, self._lifecycle, self._status, self._warnings,
self._exec_error)
class JobInfoCollection:
def __init__(self, *jobs):
self._jobs = jobs
@property
def jobs(self):
return list(self._jobs)
class ExecutionStateObserver(abc.ABC):
@abc.abstractmethod
def state_update(self, job_info: JobInfo):
"""This method is called when job instance execution state is changed."""
DisabledJob = namedtuple('DisabledJob', 'job_id regex created expires')
Warn = namedtuple('Warn', 'name params')
WarnEventCtx = namedtuple('WarnEventCtx', 'count')
class WarningObserver(abc.ABC):
@abc.abstractmethod
def new_warning(self, job_info: JobInfo, warning: Warn, event_ctx: WarnEventCtx):
"""This method is called when there is a new warning event."""
class JobOutputObserver(abc.ABC):
@abc.abstractmethod
def output_update(self, job_info: JobInfo, output):
"""Executed when new output line is available."""
| 941 | 3,316 | 378 |
7e126c872bc77ec31b05758c5eda86b8368ea35a | 305 | py | Python | plugins/test/main.py | StyXman/pbt | 83dac5b896e9037fac17453f21a4d14faa25c09e | [
"Apache-2.0"
] | 1 | 2015-07-16T19:14:50.000Z | 2015-07-16T19:14:50.000Z | plugins/test/main.py | StyXman/pbt | 83dac5b896e9037fac17453f21a4d14faa25c09e | [
"Apache-2.0"
] | null | null | null | plugins/test/main.py | StyXman/pbt | 83dac5b896e9037fac17453f21a4d14faa25c09e | [
"Apache-2.0"
] | null | null | null | import pbt
import sys
import unittest
@pbt.command(name="test")
| 23.461538 | 53 | 0.704918 | import pbt
import sys
import unittest
@pbt.command(name="test")
def run(ctx, args, project):
loader = unittest.TestLoader()
for test_dir in project.settings.test_paths:
tests = loader.discover(test_dir)
testRunner = unittest.runner.TextTestRunner()
testRunner.run(tests)
| 217 | 0 | 22 |
258df39239a3f809e93d6348ebe51ed653b9433d | 285 | py | Python | test/api/test_nvgli.py | lonagi/pynvg | a7b28952960184509eba8060e10ddd824913b08e | [
"MIT"
] | null | null | null | test/api/test_nvgli.py | lonagi/pynvg | a7b28952960184509eba8060e10ddd824913b08e | [
"MIT"
] | null | null | null | test/api/test_nvgli.py | lonagi/pynvg | a7b28952960184509eba8060e10ddd824913b08e | [
"MIT"
] | null | null | null | import unittest
from pynvg.api import nvgli
if(__name__=="main"):
unittest.main() | 20.357143 | 39 | 0.642105 | import unittest
from pynvg.api import nvgli
class NVGLiTestCase(unittest.TestCase):
def test_nvgli(self):
url = "nvg-grou.com";
result="https://nvg.li/nvg";
test=nvgli(url);
self.assertEqual(test,result)
if(__name__=="main"):
unittest.main() | 131 | 18 | 50 |
2a6533ef8ebb5fa457b07048f4ff5f7a4f159684 | 400 | py | Python | hlwtadmin/migrations/0024_concertannouncement_seen_count.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 1 | 2020-10-16T16:29:01.000Z | 2020-10-16T16:29:01.000Z | hlwtadmin/migrations/0024_concertannouncement_seen_count.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | 365 | 2020-02-03T12:46:53.000Z | 2022-02-27T17:20:46.000Z | hlwtadmin/migrations/0024_concertannouncement_seen_count.py | Kunstenpunt/havelovewilltravel | 6a27824b4d3d8b1bf19e0bc0d0648f0f4e8abc83 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0 on 2020-03-25 09:09
from django.db import migrations, models
| 21.052632 | 49 | 0.615 | # Generated by Django 3.0 on 2020-03-25 09:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hlwtadmin', '0023_auto_20200323_1239'),
]
operations = [
migrations.AddField(
model_name='concertannouncement',
name='seen_count',
field=models.IntegerField(default=1),
),
]
| 0 | 288 | 23 |
13c657a63c4bc6f64117453622ae0d605cc4d139 | 735 | py | Python | uptee/lib/template_loader.py | teeworldsCNFun/upTee | 1c04b7421f4834f83bbb9f59f43dfebac08e56b0 | [
"BSD-3-Clause"
] | 2 | 2018-12-26T18:48:58.000Z | 2021-07-20T23:41:14.000Z | uptee/lib/template_loader.py | teeworldsCNFun/upTee | 1c04b7421f4834f83bbb9f59f43dfebac08e56b0 | [
"BSD-3-Clause"
] | 13 | 2015-01-20T19:18:10.000Z | 2022-03-07T21:35:55.000Z | uptee/lib/template_loader.py | teeworldsCNFun/upTee | 1c04b7421f4834f83bbb9f59f43dfebac08e56b0 | [
"BSD-3-Clause"
] | 3 | 2015-12-04T20:10:50.000Z | 2022-01-24T12:31:09.000Z | import os
from django.template.loaders.filesystem import Loader as FileSystemLoader
from accounts.models import get_template
import settings
| 38.684211 | 85 | 0.711565 | import os
from django.template.loaders.filesystem import Loader as FileSystemLoader
from accounts.models import get_template
import settings
class Loader(FileSystemLoader):
def get_template_sources(self, template_name, template_dirs=None):
if not template_dirs:
template = settings.DEFAULT_TEMPLATE
request = getattr(settings, 'request_handler', None)
template_dirs = settings.TEMPLATE_DIRS
if request:
template = get_template(request)
template_dirs = [os.path.join(path, template) for path in template_dirs]
template_dirs = tuple(template_dirs)
return super(Loader, self).get_template_sources(template_name, template_dirs)
| 533 | 10 | 50 |
a7dbb1c47342dbe9ec25e6f02175caff451286c8 | 910 | py | Python | oop/class_ipaddress.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | 11 | 2021-04-05T09:30:23.000Z | 2022-03-09T13:27:56.000Z | oop/class_ipaddress.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | null | null | null | oop/class_ipaddress.py | levs72/pyneng-examples | d6288292dcf9d1ebc5a9db4a0d620bd11b4a2df9 | [
"MIT"
] | 11 | 2021-04-06T03:44:35.000Z | 2022-03-04T21:20:40.000Z | import ipaddress
if __name__ == "__main__":
ip1 = IPAddress("10.1.1.1/25")
print(ip1 + 5)
print(5 + ip1)
print(ip1.__radd__(5))
| 26 | 62 | 0.579121 | import ipaddress
class IPAddress:
def __init__(self, ip):
address, mask = ip.split("/")
self.address = address
self.mask = int(mask)
def __str__(self):
return f"{self.address}/{self.mask}"
def __repr__(self):
return f"IPAddress('{self.address}/{self.mask}')"
def __add__(self, second):
if not isinstance(second, int):
raise TypeError(
f"unsupported operand type(s) for +: "
f"'IPAddress' and '{type(second).__name__}'"
)
ip_int = int(ipaddress.ip_address(self.address))
result_ip = str(ipaddress.ip_address(ip_int + second))
return IPAddress(f"{result_ip}/{self.mask}")
def __radd__(self, number):
return self + number
if __name__ == "__main__":
ip1 = IPAddress("10.1.1.1/25")
print(ip1 + 5)
print(5 + ip1)
print(ip1.__radd__(5))
| 611 | -5 | 157 |