hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b350a79a6775424d2d8cb6ced758fe97fa60621
| 139
|
py
|
Python
|
exersices/hourglasses.py
|
gcvalderrama/python_foundations
|
5ac045085dcc6c906729b481f833fa6a7889bd19
|
[
"MIT"
] | null | null | null |
exersices/hourglasses.py
|
gcvalderrama/python_foundations
|
5ac045085dcc6c906729b481f833fa6a7889bd19
|
[
"MIT"
] | null | null | null |
exersices/hourglasses.py
|
gcvalderrama/python_foundations
|
5ac045085dcc6c906729b481f833fa6a7889bd19
|
[
"MIT"
] | null | null | null |
if __name__ == "__main__":
print(reverseArray([1, 4, 3, 2]))
print(reverseArray([6676, 3216, 4063, 8373, 423, 586, 8850, 6762]))
| 23.166667
| 71
| 0.618705
| 19
| 139
| 4.105263
| 0.894737
| 0.435897
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.300885
| 0.18705
| 139
| 6
| 71
| 23.166667
| 0.389381
| 0
| 0
| 0
| 0
| 0
| 0.058394
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.666667
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
9b7ae1c4c5bd492fe513f1e4a6ec6b4635863b3b
| 146
|
py
|
Python
|
utils/__init__.py
|
itsnarsi/1WeStar
|
c3d0caa1079db6900a227ab51694faabd6f0eb2d
|
[
"MIT"
] | null | null | null |
utils/__init__.py
|
itsnarsi/1WeStar
|
c3d0caa1079db6900a227ab51694faabd6f0eb2d
|
[
"MIT"
] | null | null | null |
utils/__init__.py
|
itsnarsi/1WeStar
|
c3d0caa1079db6900a227ab51694faabd6f0eb2d
|
[
"MIT"
] | null | null | null |
# @Author: Narsi Reddy <narsi>
# @Date: 2019-12-17T20:51:47-06:00
# @Last modified by: narsi
# @Last modified time: 2019-12-17T20:51:48-06:00
| 29.2
| 48
| 0.671233
| 26
| 146
| 3.769231
| 0.615385
| 0.122449
| 0.22449
| 0.265306
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.290323
| 0.150685
| 146
| 4
| 49
| 36.5
| 0.5
| 0.938356
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
32e01bf72683c9d183ccd04008d1a93cedc9f774
| 1,363
|
py
|
Python
|
Largest product in a series.py
|
cakmakaf/Project_Euler_Challenges
|
27364e2a924440a8e4bacde5d56b9de4ecbf9fe9
|
[
"MIT"
] | 1
|
2019-02-21T22:27:28.000Z
|
2019-02-21T22:27:28.000Z
|
Largest product in a series.py
|
cakmakaf/Project_Euler_Challenges
|
27364e2a924440a8e4bacde5d56b9de4ecbf9fe9
|
[
"MIT"
] | null | null | null |
Largest product in a series.py
|
cakmakaf/Project_Euler_Challenges
|
27364e2a924440a8e4bacde5d56b9de4ecbf9fe9
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Tue Nov 13 10:56:32 2018
@author: acakmak
"""
series = "7316717653133062491922511967442657474235534919493496983520312774506326239578318016984801869478851843858615607891129494954595017379583319528532088055111254069874715852386305071569329096329522744304355766896648950445244523161731856403098711121722383113622298934233803081353362766142828064444866452387493035890729629049156044077239071381051585930796086670172427121883998797908792274921901699720888093776657273330010533678812202354218097512545405947522435258490771167055601360483958644670632441572215539753697817977846174064955149290862569321978468622482839722413756570560574902614079729686524145351004748216637048440319989000889524345065854122758866688116427171479924442928230863465674813919123162824586178664583591245665294765456828489128831426076900422421902267105562632111110937054421750694165896040807198403850962455444362981230987879927244284909188845801561660979191338754992005240636899125607176060588611646710940507754100225698315520005593572972571636269561882670428252483600823257530420752963450"
LargestProduct = 0
for n in range(0, len(series) - 13):
Product = 1
for i in range(n, n + 13):
Product *= int(series[i: i + 1])
if Product > LargestProduct:
LargestProduct = Product
print (LargestProduct)
| 61.954545
| 1,012
| 0.879677
| 48
| 1,363
| 24.979167
| 0.604167
| 0.011676
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.818109
| 0.084373
| 1,363
| 22
| 1,013
| 61.954545
| 0.142628
| 0.055759
| 0
| 0
| 0
| 0
| 0.794281
| 0.794281
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.111111
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fd47a797af2a59ffb9a07feea8b58efbc2b5798b
| 42,428
|
py
|
Python
|
src/framework/visualization/visualizer.py
|
securedataplane/mts
|
9ffe415ce586600e558e7a2855348c9cd1651f49
|
[
"MIT"
] | 1
|
2022-03-10T13:00:25.000Z
|
2022-03-10T13:00:25.000Z
|
src/framework/visualization/visualizer.py
|
securedataplane/mts
|
9ffe415ce586600e558e7a2855348c9cd1651f49
|
[
"MIT"
] | 1
|
2019-07-23T08:49:09.000Z
|
2019-07-23T08:49:09.000Z
|
src/framework/visualization/visualizer.py
|
securedataplane/mts
|
9ffe415ce586600e558e7a2855348c9cd1651f49
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
# http://matplotlib.org/api/pyplot_api.html
# https://gist.github.com/bilalhusain
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from numpy import arange
from scipy.interpolate import spline
from pylab import *
import itertools
import json
import time
import re
from datetime import datetime, tzinfo, timedelta
import glob
import expLib
labels = [u'44bytes', u'512bytes', u'1500bytes', u'2048bytes', u'9000bytes']
labels = [u'64bytes', u'512bytes', u'1500bytes', u'2048bytes', u'9000bytes']
lat_packet_start_index = 100
lat_packet_end_index = 10100
def plotLatency(pcapAnalysisPath,topology):
baseline_noDpdk = {}
baseline_Dpdk = {}
sriov_dpdk = {}
sriov_noDpdk = {}
if topology == "phy2phy":
baseline_noDpdk = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-Baseline_NoDPDK-')
baseline_Dpdk = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-Baseline_DPDK-')
sriov_dpdk = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-SRIOV_DPDK-')
sriov_noDpdk = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-SRIOV_NoDPDK-')
elif topology == "phy2vm2vm2phy":
baseline_noDpdk = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-Baseline_NoDPDK-')
baseline_Dpdk = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-Baseline_DPDK-')
sriov_dpdk = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-SRIOV_DPDK-')
sriov_noDpdk = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-SRIOV_NoDPDK-')
# print baseline_noDpdk
# print sriov_dpdk
# print sriov_noDpdk
fig = plt.figure(1, figsize = (8.75,4.6),frameon=True)
fig.autofmt_xdate(bottom=0.1, rotation=90, ha='right')
ax = plt.subplot(111)
c = 0
data = []
xmark = []
data.append([])
xmark.append("")
c = 0
for l in labels:
data.append(baseline_noDpdk[l])
xmark.append('baseline-nodpdk')
data.append(baseline_Dpdk[l])
xmark.append('baseline-dpdk')
data.append(sriov_noDpdk[l])
xmark.append('sriov-nodpdk')
data.append(sriov_dpdk[l])
xmark.append('sriov-dpdk')
ax.text(2.0, 10000.05, u'64$B$')
ax.text(5.0, 10000.05, u'512$B$')
ax.text(8.0, 10000.05, u'1500$B$')
ax.text(11.0, 10000.05, u'2048$B$')
ax.text(14.0, 10000.05, u'9000$B$')
bp_dict = plt.boxplot(data, patch_artist=False)
plt.setp(bp_dict['whiskers'], color='black', linewidth=1, linestyle='-')
plt.setp(bp_dict['fliers'], color='blue', linewidth=1, marker='+', markersize=2)
plt.setp(bp_dict['boxes'], linewidth=1)
plt.setp(bp_dict['medians'], linewidth=1, color='red')
plt.xticks(range(1, 18), tuple(xmark), rotation='-45', ha='left')
# Print median values for debug
# medians=[]
# for line in bp_dict['medians']:
# # get position data for median line
# x, y = line.get_xydata()[1] # top of median line
# # overlay median value
# text(x, y, '%.4f' % y,
# horizontalalignment='center', fontsize=5) # draw above, centered
# print "%.4f" % y
# medians.append(y)
# plt.grid(True)
marker = itertools.cycle(('d', '*', 'o', '^'))
plt.plot([1.0, 1.0], [-1, 10000], color='#000000')
plt.plot([4.5, 4.5], [-1, 10000], color='#000000')
plt.plot([7.5, 7.5], [-1, 10000], color='#000000')
plt.plot([10.5, 10.5], [-1, 10000], color='#000000')
plt.plot([13.5, 13.5], [-1, 10000], color='#000000')
plt.ylim((0.001,10000))
plt.ylabel('Latency in millisecond')
plt.xlabel("Scenario mode")
box = ax.get_position()
ax.set_position([box.x0, box.y0 + box.height * 0.25, box.width * 1.0, box.height * 0.78])
ax.yaxis.grid(True, linestyle='-', which='major', color='grey', alpha=0.8)
ax.set_axisbelow(True)
ax.set_yscale('log')
# ax.set_xscale('log')
plt.savefig(pcapAnalysisPath+'plot_box_latency_'+topology+'.pdf', dpi=(2500), format='pdf')
plt.savefig(pcapAnalysisPath+'plot_box_latency_'+topology+'.png', dpi=(250), format='png')
plt.close()
def plotLatencyMulti(pcapAnalysisPath,topology):
Baseline_NoDPDK = {}
Baseline_DPDK = {}
SRIOV_NoDPDK_OneOvs = {}
SRIOV_DPDK_OneOvs = {}
SRIOV_NoDPDK_TwoOvs = {}
SRIOV_DPDK_TwoOvs = {}
SRIOV_NoDPDK_FourOvs = {}
SRIOV_DPDK_FourOvs = {}
if topology == "phy2phy":
Baseline_NoDPDK = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-Baseline_NoDPDK-')
Baseline_DPDK = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-Baseline_DPDK-')
SRIOV_DPDK_OneOvs = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-SRIOV_DPDK_OneOvs-')
SRIOV_NoDPDK_OneOvs = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-SRIOV_NoDPDK_OneOvs-')
SRIOV_DPDK_TwoOvs = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-SRIOV_DPDK_TwoOvs-')
SRIOV_NoDPDK_TwoOvs = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-SRIOV_NoDPDK_TwoOvs-')
SRIOV_DPDK_FourOvs = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-SRIOV_DPDK_FourOvs-')
SRIOV_NoDPDK_FourOvs = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-SRIOV_NoDPDK_FourOvs-')
elif topology == "phy2vm2vm2phy":
Baseline_NoDPDK = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-Baseline_NoDPDK-')
Baseline_DPDK = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-Baseline_DPDK-')
SRIOV_DPDK_OneOvs = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-SRIOV_DPDK_OneOvs-')
SRIOV_NoDPDK_OneOvs = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-SRIOV_NoDPDK_OneOvs-')
SRIOV_DPDK_TwoOvs = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-SRIOV_DPDK_TwoOvs-')
SRIOV_NoDPDK_TwoOvs = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-SRIOV_NoDPDK_TwoOvs-')
SRIOV_DPDK_FourOvs = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-SRIOV_DPDK_FourOvs-')
SRIOV_NoDPDK_FourOvs = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-SRIOV_NoDPDK_FourOvs-')
# print Baseline_NoDPDK
# print SRIOV_DPDK_OneOvs
# print SRIOV_NoDPDK_OneOvs
# print SRIOV_DPDK_TwoOvs
# print SRIOV_NoDPDK_TwoOvs
fig = plt.figure(1, figsize = (8.75,4.6),frameon=True)
fig.autofmt_xdate(bottom=0.1, rotation=90, ha='right')
ax = plt.subplot(111)
c = 0
data = []
xmark = []
data.append([])
xmark.append("")
c = 0
for l in labels:
data.append(Baseline_NoDPDK[l])
xmark.append('Baseline_NoDPDK')
data.append(Baseline_DPDK[l])
xmark.append('baseline-dpdk')
data.append(SRIOV_NoDPDK_OneOvs[l])
xmark.append('SRIOV_NoDPDK_OneOvs')
data.append(SRIOV_DPDK_OneOvs[l])
xmark.append('SRIOV_NoDPDK_OneOvs')
data.append(SRIOV_NoDPDK_TwoOvs[l])
xmark.append('SRIOV_NoDPDK_TwoOvs')
data.append(SRIOV_DPDK_TwoOvs[l])
xmark.append('SRIOV_NoDPDK_TwoOvs')
data.append(SRIOV_NoDPDK_FourOvs[l])
xmark.append('SRIOV_NoDPDK_FourOvs')
data.append(SRIOV_DPDK_FourOvs[l])
xmark.append('SRIOV_NoDPDK_FourOvs')
# ax.text(2.0, 10000.05, u'64$B$')
# ax.text(7.0, 10000.05, u'512$B$')
# ax.text(12.0, 10000.05, u'1500$B$')
# ax.text(17.0, 10000.05, u'2048$B$')
# ax.text(22.0, 10000.05, u'9000$B$')
bp_dict = plt.boxplot(data, patch_artist=False)
plt.setp(bp_dict['whiskers'], color='black', linewidth=1, linestyle='-')
plt.setp(bp_dict['fliers'], color='blue', linewidth=1, marker='+', markersize=2)
plt.setp(bp_dict['boxes'], linewidth=1)
plt.setp(bp_dict['medians'], linewidth=1, color='red')
plt.xticks(range(1, 22), tuple(xmark), rotation='-45', ha='left')
# Print median values for debug
# medians=[]
# for line in bp_dict['medians']:
# # get position data for median line
# x, y = line.get_xydata()[1] # top of median line
# # overlay median value
# text(x, y, '%.4f' % y,
# horizontalalignment='center', fontsize=5) # draw above, centered
# print "%.4f" % y
# medians.append(y)
# plt.grid(True)
marker = itertools.cycle(('d', '*', 'o', '^'))
# plt.plot([1.0, 1.0], [-1, 10000], color='#000000')
# plt.plot([6.5, 4.5], [-1, 10000], color='#000000')
# plt.plot([11.5, 7.5], [-1, 10000], color='#000000')
# plt.plot([16.5, 10.5], [-1, 10000], color='#000000')
# plt.plot([21.5, 13.5], [-1, 10000], color='#000000')
plt.ylim((0.001,10000))
plt.ylabel('Latency in millisecond')
plt.xlabel("Scenario mode")
box = ax.get_position()
ax.set_position([box.x0, box.y0 + box.height * 0.25, box.width * 1.0, box.height * 0.78])
ax.yaxis.grid(True, linestyle='-', which='major', color='grey', alpha=0.8)
ax.set_axisbelow(True)
ax.set_yscale('log')
# ax.set_xscale('log')
plt.savefig(pcapAnalysisPath+'plot_box_latency_'+topology+'-4Tenants.pdf', dpi=(2500), format='pdf')
plt.savefig(pcapAnalysisPath+'plot_box_latency_'+topology+'-4Tenants.png', dpi=(250), format='png')
plt.close()
def plotLatencySplit(pcapAnalysisPath,topology):
Baseline_NoDPDK = {}
Baseline_DPDK = {}
SRIOV_NoDPDK_OneOvs = {}
SRIOV_DPDK_OneOvs = {}
SRIOV_NoDPDK_TwoOvs = {}
SRIOV_DPDK_TwoOvs = {}
SRIOV_NoDPDK_FourOvs = {}
SRIOV_DPDK_FourOvs = {}
if topology == "phy2phy":
Baseline_NoDPDK = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-Baseline_NoDPDK-')
Baseline_DPDK = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-Baseline_DPDK-')
SRIOV_DPDK_OneOvs = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-SRIOV_DPDK_OneOvs-')
SRIOV_NoDPDK_OneOvs = read_lat_dict(pcapAnalysisPath+'phy2phy-latency-SRIOV_NoDPDK_OneOvs-')
SRIOV_DPDK_TwoOvs = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-SRIOV_DPDK_TwoOvs-')
SRIOV_NoDPDK_TwoOvs = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-SRIOV_NoDPDK_TwoOvs-')
SRIOV_DPDK_FourOvs = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-SRIOV_DPDK_FourOvs-')
SRIOV_NoDPDK_FourOvs = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-SRIOV_NoDPDK_FourOvs-')
elif topology == "phy2vm2vm2phy":
Baseline_NoDPDK = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-Baseline_NoDPDK-')
Baseline_DPDK = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-Baseline_DPDK-')
SRIOV_DPDK_OneOvs = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-SRIOV_DPDK_OneOvs-')
SRIOV_NoDPDK_OneOvs = read_lat_dict(pcapAnalysisPath+'phy2vm2vm2phy-latency-SRIOV_NoDPDK_OneOvs-')
SRIOV_DPDK_TwoOvs = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-SRIOV_DPDK_TwoOvs-')
SRIOV_NoDPDK_TwoOvs = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-SRIOV_NoDPDK_TwoOvs-')
SRIOV_DPDK_FourOvs = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-SRIOV_DPDK_FourOvs-')
SRIOV_NoDPDK_FourOvs = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-SRIOV_NoDPDK_FourOvs-')
elif topology == "vm2vm":
Baseline_NoDPDK = read_lat_dict(pcapAnalysisPath+'vm2vm-latency-Baseline_NoDPDK-')
Baseline_DPDK = read_lat_dict(pcapAnalysisPath+'vm2vm-latency-Baseline_DPDK-')
SRIOV_DPDK_OneOvs = read_lat_dict(pcapAnalysisPath+'vm2vm-latency-SRIOV_DPDK_OneOvs-')
SRIOV_NoDPDK_OneOvs = read_lat_dict(pcapAnalysisPath+'vm2vm-latency-SRIOV_NoDPDK_OneOvs-')
SRIOV_DPDK_TwoOvs = read_lat_dict(pcapAnalysisPath + 'vm2vm-latency-SRIOV_DPDK_TwoOvs-')
SRIOV_NoDPDK_TwoOvs = read_lat_dict(pcapAnalysisPath + 'vm2vm-latency-SRIOV_NoDPDK_TwoOvs-')
SRIOV_DPDK_FourOvs = read_lat_dict(pcapAnalysisPath + 'vm2vm-latency-SRIOV_DPDK_FourOvs-')
SRIOV_NoDPDK_FourOvs = read_lat_dict(pcapAnalysisPath + 'vm2vm-latency-SRIOV_NoDPDK_FourOvs-')
# print Baseline_NoDPDK
# print SRIOV_DPDK_OneOvs
# print SRIOV_NoDPDK_OneOvs
# print SRIOV_DPDK_TwoOvs
# print SRIOV_NoDPDK_TwoOvs
fig = plt.figure(1, figsize = (8.75, 4.6),frameon=True)
fig.autofmt_xdate(bottom=0.1, rotation=90, ha='right')
ax = plt.subplot(1, 2, 1)
plt.tight_layout()
c = 0
data = []
xmark = []
# data.append([])
# xmark.append("")
c = 0
labels = ["64bytes", "512bytes", "1500bytes", "2048bytes"]
for l in labels:
data.append(Baseline_NoDPDK[l])
xmark.append('Baseline')
data.append(SRIOV_NoDPDK_OneOvs[l])
xmark.append('1\nvswitch\nVM')
data.append(SRIOV_NoDPDK_TwoOvs[l])
xmark.append('2\nvswitch\nVM')
data.append(SRIOV_NoDPDK_FourOvs[l])
xmark.append('4\nvswitch\nVM')
ax.text(2.0, 1000000.05, u'64$B$')
ax.text(6.0, 1000000.05, u'512$B$')
ax.text(10.0, 1000000.05, u'1500$B$')
ax.text(14.0, 1000000.05, u'2048$B$')
bp_dict = plt.boxplot(data, patch_artist=False)
colors = ['black', '#1F77B4', '#FF7F0E', '#2CA02C']
colors = ['black']
for color in colors:
plt.setp(bp_dict['whiskers'], color=color, linewidth=1, linestyle='-')
plt.setp(bp_dict['fliers'], color=color, linewidth=1, marker='+', markersize=1)
plt.setp(bp_dict['boxes'], color=color, linewidth=1)
plt.setp(bp_dict['medians'], linewidth=1, color='red')
plt.xticks(range(1, 17), tuple(["B", "1", "2", "4", "B", "1", "2", "4", "B", "1", "2", "4", "B", "1", "2", "4"]))
# plt.xticks(range(1, 5), tuple(xmark))
plt.plot([1.5, 1.5], [-1, 1000000], color='#000000')
plt.plot([2.5, 2.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([3.5, 3.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([4.5, 4.5], [-1, 1000000], color='#000000')
plt.plot([5.5, 5.5], [-1, 1000000], color='#000000')
plt.plot([6.5, 6.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([7.5, 7.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([8.5, 8.5], [-1, 1000000], color='#000000')
plt.plot([9.5, 9.5], [-1, 1000000], color='#000000')
plt.plot([10.5, 10.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([11.5, 11.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([12.5, 12.5], [-1, 1000000], color='#000000')
plt.plot([13.5, 13.5], [-1, 1000000], color='#000000')
plt.plot([14.5, 14.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([15.5, 15.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([16.5, 16.5], [-1, 1000000], color='#000000')
# plt.axvspan(1.5, 5.0, facecolor='0.6', alpha=0.5)
plt.ylim((1,1000000))
plt.ylabel('Latency (microsecond)')
# ax.add_patch(Rectangle((1.49, .9), 1, 10002, alpha=0.2, color='#1F77B4'))
# ax.add_patch(Rectangle((2.49, .9), 1, 10002, alpha=0.2, color='#FF7F0E'))
# ax.add_patch(Rectangle((3.49, .9), 1, 10002, alpha=0.2, color='#2CA02C'))
box = ax.get_position()
ax.set_position([box.x0 + 0.05, box.y0 + box.height * 0.25, box.width * 0.91, box.height * 0.75])
ax.yaxis.grid(True, linestyle='-', which='major', color='grey', alpha=0.8)
ax.set_axisbelow(True)
ax.set_yscale('log')
### Second plot with dpdk
ax = plt.subplot(1, 2, 2)
c = 0
data = []
xmark = []
# data.append([])
# xmark.append("")
c = 0
labels = ["64bytes", "512bytes", "1500bytes", "2048bytes"]
for l in labels:
data.append(Baseline_DPDK[l])
xmark.append('Baseline')
data.append(SRIOV_DPDK_OneOvs[l])
xmark.append('1\nvswitch\nVM')
data.append(SRIOV_DPDK_TwoOvs[l])
xmark.append('2\nvswitch\nVM')
data.append(SRIOV_DPDK_FourOvs[l])
xmark.append('4\nvswitch\nVM')
ax.text(2.0, 1000000.05, u'64$B$')
ax.text(6.0, 1000000.05, u'512$B$')
ax.text(10.0, 1000000.05, u'1500$B$')
ax.text(14.0, 1000000.05, u'2048$B$')
bp_dict = plt.boxplot(data, patch_artist=False)
plt.setp(bp_dict['whiskers'], color='black', linewidth=1, linestyle='-')
plt.setp(bp_dict['fliers'], color='blue', linewidth=1, marker='+', markersize=1)
plt.setp(bp_dict['boxes'], linewidth=1)
plt.setp(bp_dict['medians'], linewidth=1, color='red')
plt.xticks(range(1, 17), tuple(["B", "1", "2", "4", "B", "1", "2", "4", "B", "1", "2", "4", "B", "1", "2", "4"]))
# plt.xticks(range(1, 5), tuple(xmark))
plt.plot([1.5, 1.5], [-1, 1000000], color='#000000')
plt.plot([2.5, 2.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([3.5, 3.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([4.5, 4.5], [-1, 1000000], color='#000000')
plt.plot([5.5, 5.5], [-1, 1000000], color='#000000')
plt.plot([6.5, 6.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([7.5, 7.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([8.5, 8.5], [-1, 1000000], color='#000000')
plt.plot([9.5, 9.5], [-1, 1000000], color='#000000')
plt.plot([10.5, 10.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([11.5, 11.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([12.5, 12.5], [-1, 1000000], color='#000000')
plt.plot([13.5, 13.5], [-1, 1000000], color='#000000')
plt.plot([14.5, 14.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([15.5, 15.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([16.5, 16.5], [-1, 1000000], color='#000000')
# plt.axvspan(1.5, 5.0, facecolor='0.6', alpha=0.5)
plt.ylim((1,1000000))
# ax.add_patch(Rectangle((1.49, .9), 1, 10002, alpha=0.01, color='#1F77B4'))
# ax.add_patch(Rectangle((2.49, .9), 1, 10002, alpha=0.01, color='#FF7F0E'))
# ax.add_patch(Rectangle((3.49, .9), 1, 10002, alpha=0.01, color='#2CA02C'))
box = ax.get_position()
ax.set_position([box.x0 + 0.05, box.y0 + box.height * 0.25, box.width * 0.91, box.height * 0.75])
ax.yaxis.grid(True, linestyle='-', which='major', color='grey', alpha=0.8)
ax.set_axisbelow(True)
ax.set_yscale('log')
plt.figtext(0.26, 0.209, "No DPDK", color="black")
plt.figtext(0.72, 0.209, "With DPDK", color="black")
# ax.legend(['B: Baseline', '1: 1 vswitch VM', '2: 2 vswitch VM', '4: 4 vswitch VM'], handletextpad=-0.1, handlelength=0, markerscale=0, loc='lower center', ncol=2, bbox_to_anchor=(-0.315, -0.5), numpoints=1)
plt.savefig(pcapAnalysisPath+'plot_box_latency_'+topology+'-4Tenants-Split.pdf', dpi=(2500), format='pdf')
plt.savefig(pcapAnalysisPath+'plot_box_latency_'+topology+'-4Tenants-Split.png', dpi=(250), format='png')
plt.close()
def plotLatencyPerTenant(pcapAnalysisPath, resourceType="shared", topology="p2p",
throughput=10000, time=50, startOffset=10, endOffset=10,
tenantCount=4, packetSize="64bytes"):
tenants = ["tenant1", "tenant2", "tenant3", "tenant4"]
# tenants = ["tenant1"]
# dicts to store the per tenant latency
b_tLat_p2p = dict.fromkeys(tenants, {})
o_tLat_p2p = dict.fromkeys(tenants, {})
t_tLat_p2p = dict.fromkeys(tenants, {})
f_tLat_p2p = dict.fromkeys(tenants, {})
b_tLat_p2v = dict.fromkeys(tenants, {})
o_tLat_p2v = dict.fromkeys(tenants, {})
t_tLat_p2v = dict.fromkeys(tenants, {})
f_tLat_p2v = dict.fromkeys(tenants, {})
b_tLat_v2v = dict.fromkeys(tenants, {})
o_tLat_v2v = dict.fromkeys(tenants, {})
t_tLat_v2v = dict.fromkeys(tenants, {})
f_tLat_v2v = dict.fromkeys(tenants, {})
if resourceType == "shared":
print "tenants" + str(tenants)
for t in tenants:
if topology == "p2p" or topology == "phy2phy":
b_tLat_p2p[t] = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-Baseline_NoDPDK-', True, t,
topo=topology, throughput=throughput, time=time, startOffset=startOffset,
endOffset=endOffset, tenantCount=tenantCount)
o_tLat_p2p[t] = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-SRIOV_NoDPDK_OneOvs-', True, t,
topo=topology, throughput=throughput, time=time, startOffset=startOffset,
endOffset=endOffset, tenantCount=tenantCount)
t_tLat_p2p[t] = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-SRIOV_NoDPDK_TwoOvs-', True, t,
topo=topology, throughput=throughput, time=time, startOffset=startOffset,
endOffset=endOffset, tenantCount=tenantCount)
f_tLat_p2p[t] = read_lat_dict(pcapAnalysisPath + 'phy2phy-latency-SRIOV_NoDPDK_FourOvs-', True, t,
topo=topology, throughput=throughput, time=time, startOffset=startOffset,
endOffset=endOffset, tenantCount=tenantCount)
elif topology == "p2v" or topology == "phy2vm2vm2phy":
b_tLat_p2v[t] = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-Baseline_NoDPDK-', True, t,
topo=topology, throughput=throughput, time=time, startOffset=startOffset,
endOffset=endOffset, tenantCount=tenantCount)
o_tLat_p2v[t] = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-SRIOV_NoDPDK_OneOvs-', True, t,
topo=topology, throughput=throughput, time=time, startOffset=startOffset,
endOffset=endOffset, tenantCount=tenantCount)
t_tLat_p2v[t] = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-SRIOV_NoDPDK_TwoOvs-', True, t,
topo=topology, throughput=throughput, time=time, startOffset=startOffset,
endOffset=endOffset, tenantCount=tenantCount)
f_tLat_p2v[t] = read_lat_dict(pcapAnalysisPath + 'phy2vm2vm2phy-latency-SRIOV_NoDPDK_FourOvs-', True, t,
topo=topology, throughput=throughput, time=time, startOffset=startOffset,
endOffset=endOffset, tenantCount=tenantCount)
elif topology == "v2v" or topology == "vm2vm":
if t == "tenant3" or t == "tenant4":
continue
else:
b_tLat_v2v[t] = read_lat_dict(pcapAnalysisPath + 'vm2vm-latency-Baseline_NoDPDK-', True, t,
topo=topology, throughput=throughput, time=time, startOffset=startOffset,
endOffset=endOffset, tenantCount=tenantCount)
o_tLat_v2v[t] = read_lat_dict(pcapAnalysisPath + 'vm2vm-latency-SRIOV_NoDPDK_OneOvs-', True, t,
topo=topology, throughput=throughput, time=time, startOffset=startOffset,
endOffset=endOffset, tenantCount=tenantCount)
t_tLat_v2v[t] = read_lat_dict(pcapAnalysisPath + 'vm2vm-latency-SRIOV_NoDPDK_TwoOvs-', True, t,
topo=topology, throughput=throughput, time=time, startOffset=startOffset,
endOffset=endOffset, tenantCount=tenantCount)
# pprint.pprint(two_tLat_p2p[tenants[0]]["64bytes"])
fig = plt.figure(1, figsize = (8.75, 4.6),frameon=True)
fig.autofmt_xdate(bottom=0.1, rotation=90, ha='right')
ax = plt.subplot(1, 1, 1)
# plt.tight_layout()
c = 0
data = []
xmark = []
c = 0
if topology == "p2p" or topology == "phy2phy":
for t in tenants:
data.append(b_tLat_p2p[t][packetSize])
for t in tenants:
data.append(o_tLat_p2p[t][packetSize])
for t in tenants:
data.append(t_tLat_p2p[t][packetSize])
for t in tenants:
data.append(f_tLat_p2p[t][packetSize])
elif topology == "p2v" or topology == "phy2vm2vm2phy":
for t in tenants:
data.append(b_tLat_p2v[t][packetSize])
for t in tenants:
data.append(o_tLat_p2v[t][packetSize])
for t in tenants:
data.append(t_tLat_p2v[t][packetSize])
for t in tenants:
data.append(f_tLat_p2v[t][packetSize])
elif topology == "v2v" or topology == "vm2vm":
for t in ["tenant1", "tenant2"]:
data.append(b_tLat_v2v[t][packetSize])
for t in ["tenant1", "tenant2"]:
data.append(o_tLat_v2v[t][packetSize])
for t in ["tenant1", "tenant2"]:
data.append(t_tLat_v2v[t][packetSize])
# pprint.pprint(data)
print "len(data): " + str(len(data))
plotType = "boxplot"
if plotType == "histogram":
# For histogram
print "histogram"
plt.hist(x=data[8], bins=20, density=False, range=[2,32])
print len(data[0])
elif plotType == "cdf":
# For cdf
print "cdf"
values, base = np.histogram(data[0], bins=20, normed=True)
cumulative = np.cumsum(values)
print cumulative
plt.plot(base[1:], cumulative, c='blue')
elif plotType == "sortedcdf":
# For sorted cdf
print "Sortedcdf"
sorted_data = np.sort(data[0])
yvals = np.arange(len(sorted_data))/float(len(sorted_data)-1)
plt.plot(sorted_data, yvals)
for d in data:
for q in [50, 90, 95, 100]:
print ("{}%% percentile: {}".format(q, np.percentile(d, q)))
elif plotType == "boxplot":
# For boxplot
bp_dict = plt.boxplot(data, patch_artist=False)
colors = ['black', '#1F77B4', '#FF7F0E', '#2CA02C']
colors = ['black']
for color in colors:
plt.setp(bp_dict['whiskers'], color=color, linewidth=1, linestyle='-')
plt.setp(bp_dict['fliers'], color=color, linewidth=1, marker='+', markersize=1)
plt.setp(bp_dict['boxes'], color=color, linewidth=1)
plt.setp(bp_dict['medians'], linewidth=1, color='red')
plt.xticks(range(1, 17),
tuple(["B-T1", "B-T2", "B-T3", "B-T4", "1-T1", "1-T2", "1-T3", "1-T4",
"2-T1", "2-T2", "2-T3", "2-T4", "4-T1", "4-T2", "4-T3", "4-T4"]))
# plt.xticks(range(1, 5), tuple(xmark))
# plt.plot([1.5, 1.5], [-1, 1000000], color='#000000')
# plt.plot([2.5, 2.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
# plt.plot([3.5, 3.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([4.5, 4.5], [-1, 1000000], color='#000000')
# plt.plot([5.5, 5.5], [-1, 1000000], color='#000000')
# plt.plot([6.5, 6.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
# plt.plot([7.5, 7.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([8.5, 8.5], [-1, 1000000], color='#000000')
# plt.plot([9.5, 9.5], [-1, 1000000], color='#000000')
# plt.plot([10.5, 10.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
# plt.plot([11.5, 11.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
plt.plot([12.5, 12.5], [-1, 1000000], color='#000000')
# plt.plot([13.5, 13.5], [-1, 1000000], color='#000000')
# plt.plot([14.5, 14.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
# plt.plot([15.5, 15.5], [-1, 1000000], color='#000000', alpha=0.1, linewidth=0.5)
# plt.plot([16.5, 16.5], [-1, 1000000], color='#000000')
plt.ylim((1,10000))
plt.ylabel('Latency ($\mu$s)')
# box = ax.get_position()
# ax.set_position([box.x0 + 0.05, box.y0 + box.height * 0.25, box.width * 0.91, box.height * 0.75])
ax.yaxis.grid(True, linestyle='-', which='major', color='grey', alpha=0.8)
ax.set_axisbelow(True)
ax.set_yscale('log')
plt.title("Per tenant latency analysis for "+topology+ "@" + str(throughput) + "pps" + " for " + packetSize + " packets")
figureName = "plot_lat_pertenant_"+plotType+"_"+resourceType+"_"+topology+"_"+str(throughput)+"pps"+"_"+packetSize+".png"
plt.savefig(pcapAnalysisPath + figureName)
return figureName
def read_lat_dict(path, isTenant=False, tenant="tenant1", topo="p2p",
throughput=10000, time=50, startOffset=10, endOffset=10,
tenantCount=4):
# print "read_lat_dict()"
# import ast
tenantTput = throughput/tenantCount
startIndex = tenantTput*startOffset
ret = {}
for i in labels:
# print "i: " + str(i)
ret[i] = []
try:
# print "printing the combo: "
# print (str(path+i+'.res'))
# data = ast.literal_eval(open(path+i+'.res').read())
if isTenant is False:
data = json.loads(open(path+i+'.res').read())
else:
data = json.loads(open(path+i+'-'+tenant+'.res').read())
# continue
if isTenant is False:
for j in range(0, len(data.keys())):
ret[i].append(data[unicode(str(j))] * 1000000.0) #in microsecond
# if data[unicode(str(j))] * 1000.0 < 1:
# ret[i].append(data[unicode(str(j))] * 1000.0)
elif isTenant is True:
if topo != "v2v":
print "len(data.keys(): " + str(len(data.keys()))
# for j in range(2500, 2500+len(data.keys())-5):
for j in range(startIndex, startIndex + len(data.keys()) - 5):
if data[unicode(str(j))] * 1000000.0 > 1000000:
print str(j) + " has latency greater than 1 second!!" + str(data[unicode(str(j))] * 1000000.0)
else:
ret[i].append(data[unicode(str(j))] * 1000000.0) #in microsecond
elif topo == "v2v":
for j in range(startIndex, startIndex + len(data.keys())):
if data[unicode(str(j))] * 1000000.0 > 1000000:
print str(j) + " has latency greater than 1 second!!"
else:
ret[i].append(data[unicode(str(j))] * 1000000.0) #in microsecond
print "len of ret is:" + str(len(ret[i]))
except Exception as e:
print (e)
# print ret
return ret
def plotThroughput(pcapAnalysisPath, topology):
baseline_noDpdk_tx, baseline_noDpdk_rx = [], []
baseline_Dpdk_tx, baseline_Dpdk_rx = [], []
sriov_dpdk_tx, sriov_dpdk_rx = [], []
sriov_noDpdk_tx, sriov_noDpdk_rx = [], []
if topology == "phy2phy":
baseline_noDpdk_tx, baseline_noDpdk_rx = get_tput_dict(
pcapAnalysisPath+'phy2phy-throughput-Baseline_NoDPDK-elbeplane-*',
pcapAnalysisPath+'phy2phy-throughput-Baseline_NoDPDK-planeelbe-*')
baseline_Dpdk_tx, baseline_Dpdk_rx = get_tput_dict(
pcapAnalysisPath+'phy2phy-throughput-Baseline_DPDK-elbeplane-*',
pcapAnalysisPath+'phy2phy-throughput-Baseline_DPDK-planeelbe-*')
sriov_dpdk_tx, sriov_dpdk_rx = get_tput_dict(
pcapAnalysisPath+'phy2phy-throughput-SRIOV_DPDK-elbeplane-*',
pcapAnalysisPath+'phy2phy-throughput-SRIOV_DPDK-planeelbe-*')
sriov_noDpdk_tx, sriov_noDpdk_rx = get_tput_dict(
pcapAnalysisPath+'phy2phy-throughput-SRIOV_NoDPDK-elbeplane-*',
pcapAnalysisPath+'phy2phy-throughput-SRIOV_NoDPDK-planeelbe-*')
elif topology == "phy2vm2vm2phy":
baseline_noDpdk_tx, baseline_noDpdk_rx = get_tput_dict(
pcapAnalysisPath+'phy2vm2vm2phy-throughput-Baseline_NoDPDK-elbeplane-*',
pcapAnalysisPath+'phy2vm2vm2phy-throughput-Baseline_NoDPDK-planeelbe-*')
baseline_Dpdk_tx, baseline_Dpdk_rx = get_tput_dict(
pcapAnalysisPath+'phy2vm2vm2phy-throughput-Baseline_DPDK-elbeplane-*',
pcapAnalysisPath+'phy2vm2vm2phy-throughput-Baseline_DPDK-planeelbe-*')
sriov_dpdk_tx, sriov_dpdk_rx = get_tput_dict(
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_DPDK-elbeplane-*',
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_DPDK-planeelbe-*')
sriov_noDpdk_tx, sriov_noDpdk_rx = get_tput_dict(
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_NoDPDK-elbeplane-*',
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_NoDPDK-planeelbe-*')
print baseline_noDpdk_tx, baseline_noDpdk_rx
print baseline_Dpdk_tx, baseline_Dpdk_rx
print sriov_dpdk_tx, sriov_dpdk_rx
print sriov_noDpdk_tx, sriov_noDpdk_rx
fig = plt.figure(1, figsize=(8.75, 4.6), frameon=True)
ax = plt.subplot(111)
plt.grid(True)
marker = itertools.cycle(('d', '*', 'o', '^'))
plt.plot(baseline_noDpdk_tx, baseline_noDpdk_rx, marker=marker.next(), color='#79c36a', linestyle='', label='baseline_nodpdk', markersize=9)
plt.plot(baseline_Dpdk_tx, baseline_Dpdk_rx, marker=marker.next(), color='#79c36a', linestyle='', label='baseline_dpdk', markersize=9)
plt.plot(sriov_noDpdk_tx, sriov_noDpdk_rx, marker=marker.next(), color='#599ad3', linestyle='', label='sriov_nodpdk', markersize=9)
plt.plot(sriov_dpdk_tx, sriov_dpdk_rx, marker=marker.next(), color='#727272', linestyle='', label='sriov_dpdk', markersize=9)
# plt.ylim((300000, 700000 + 20000))
# plt.xlim((300000, 1500000 + 20000))
plt.ylabel('Packets/s Forwarded')
plt.xlabel("Packets/s Sent")
ax.legend(loc='lower center', ncol=2, bbox_to_anchor=(0.5, -0.45), numpoints=1)
box = ax.get_position()
ax.set_position([box.x0, box.y0 + box.height * 0.25, box.width * 1.0, box.height * 0.75])
ax.set_axisbelow(True)
plt.savefig(pcapAnalysisPath+'plot_tput_'+topology+'.pdf', dpi=(2500), format='pdf')
plt.savefig(pcapAnalysisPath+'plot_tput_'+topology+'.png', dpi=(250), format='png')
plt.close()
def plotThroughputMulti(pcapAnalysisPath, topology):
Baseline_MultiTenant_NoDPDK_tx, Baseline_MultiTenant_NoDPDK_rx = [], []
Baseline_MultiTenant_DPDK_tx, Baseline_MultiTenant_DPDK_rx = [], []
SRIOV_MultiTenant_NoDPDK_tx, SRIOV_MultiTenant_NoDPDK_rx = [], []
SRIOV_MultiTenant_DPDK_tx, SRIOV_MultiTenant_DPDK_rx = [], []
SRIOV_MultiOvs_DPDK_tx, SRIOV_MultiOvs_DPDK_rx = [], []
if topology == "phy2phy":
Baseline_MultiTenant_NoDPDK_tx, Baseline_MultiTenant_NoDPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2phy-throughput-Baseline_MultiTenant_NoDPDK-elbeplane-*',
pcapAnalysisPath+'phy2phy-throughput-Baseline_MultiTenant_NoDPDK-planeelbe-*')
Baseline_MultiTenant_DPDK_tx, Baseline_MultiTenant_DPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2phy-throughput-Baseline_MultiTenant_DPDK-elbeplane-*',
pcapAnalysisPath+'phy2phy-throughput-Baseline_MultiTenant_DPDK-planeelbe-*')
SRIOV_MultiTenant_NoDPDK_tx, SRIOV_MultiTenant_NoDPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2phy-throughput-SRIOV_MultiTenant_NoDPDK-elbeplane-*',
pcapAnalysisPath+'phy2phy-throughput-SRIOV_MultiTenant_NoDPDK-planeelbe-*')
SRIOV_MultiTenant_DPDK_tx, SRIOV_MultiTenant_DPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2phy-throughput-SRIOV_MultiTenant_DPDK-elbeplane-*',
pcapAnalysisPath+'phy2phy-throughput-SRIOV_MultiTenant_DPDK-planeelbe-*')
SRIOV_MultiOvs_NoDPDK_tx, SRIOV_MultiOvs_NoDPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2phy-throughput-SRIOV_MultiOvs_NoDPDK-elbeplane-*',
pcapAnalysisPath+'phy2phy-throughput-SRIOV_MultiOvs_NoDPDK-planeelbe-*')
SRIOV_MultiOvs_DPDK_tx, SRIOV_MultiOvs_DPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2phy-throughput-SRIOV_MultiOvs_DPDK-elbeplane-*',
pcapAnalysisPath+'phy2phy-throughput-SRIOV_MultiOvs_DPDK-planeelbe-*')
elif topology == "phy2vm2vm2phy":
Baseline_MultiTenant_NoDPDK_tx, Baseline_MultiTenant_NoDPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2vm2vm2phy-throughput-Baseline_MultiTenant_NoDPDK-elbeplane-*',
pcapAnalysisPath+'phy2vm2vm2phy-throughput-Baseline_MultiTenant_NoDPDK-planeelbe-*')
Baseline_MultiTenant_DPDK_tx, Baseline_MultiTenant_DPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2vm2vm2phy-throughput-Baseline_MultiTenant_DPDK-elbeplane-*',
pcapAnalysisPath+'phy2vm2vm2phy-throughput-Baseline_MultiTenant_DPDK-planeelbe-*')
SRIOV_MultiTenant_NoDPDK_tx, SRIOV_MultiTenant_NoDPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_MultiTenant_NoDPDK-elbeplane-*',
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_MultiTenant_NoDPDK-planeelbe-*')
SRIOV_MultiTenant_DPDK_tx, SRIOV_MultiTenant_DPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_MultiTenant_DPDK-elbeplane-*',
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_MultiTenant_DPDK-planeelbe-*')
SRIOV_MultiOvs_NoDPDK_tx, SRIOV_MultiOvs_NoDPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_MultiOvs_NoDPDK-elbeplane-*',
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_MultiOvs_NoDPDK-planeelbe-*')
SRIOV_MultiOvs_DPDK_tx, SRIOV_MultiOvs_DPDK_rx = get_tput_dict(
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_MultiOvs_DPDK-elbeplane-*',
pcapAnalysisPath+'phy2vm2vm2phy-throughput-SRIOV_MultiOvs_DPDK-planeelbe-*')
print Baseline_MultiTenant_NoDPDK_tx, Baseline_MultiTenant_NoDPDK_rx
print SRIOV_MultiTenant_NoDPDK_tx, SRIOV_MultiTenant_NoDPDK_rx
print SRIOV_MultiTenant_DPDK_tx, SRIOV_MultiTenant_DPDK_rx
print SRIOV_MultiOvs_NoDPDK_tx, SRIOV_MultiOvs_NoDPDK_rx
print SRIOV_MultiOvs_DPDK_tx, SRIOV_MultiOvs_DPDK_rx
fig = plt.figure(1, figsize=(8.75, 4.6), frameon=True)
ax = plt.subplot(111)
plt.grid(True)
marker = itertools.cycle(('d', '*', 'o', '^', 'p'))
plt.plot(Baseline_MultiTenant_NoDPDK_tx, Baseline_MultiTenant_NoDPDK_rx, marker=marker.next(), color='#79c36a', linestyle='', label='Baseline_MultiTenant_NoDPDK', markersize=9)
plt.plot(Baseline_MultiTenant_DPDK_tx, Baseline_MultiTenant_DPDK_rx, marker=marker.next(), color='#727272', linestyle='', label='Baseline_MultiTenant_DPDK', markersize=9)
plt.plot(SRIOV_MultiTenant_DPDK_tx, SRIOV_MultiTenant_DPDK_rx, marker=marker.next(), color='#599ad3', linestyle='', label='SRIOV_MultiTenant_DPDK', markersize=9)
plt.plot(SRIOV_MultiTenant_NoDPDK_tx, SRIOV_MultiTenant_NoDPDK_rx, marker=marker.next(), color='#727272', linestyle='', label='SRIOV_MultiTenant_NoDPDK', markersize=9)
plt.plot(SRIOV_MultiOvs_DPDK_tx, SRIOV_MultiOvs_DPDK_rx, marker=marker.next(), color='#599ad3', linestyle='',
label='SRIOV_MultiOvs_DPDK', markersize=9)
plt.plot(SRIOV_MultiOvs_NoDPDK_tx, SRIOV_MultiOvs_NoDPDK_rx, marker=marker.next(), color='#727272',
linestyle='', label='SRIOV_MultiOvs_NoDPDK', markersize=9)
# plt.ylim((300000, 1400000 + 20000))
# plt.xlim((300000, 1400000 + 20000))
plt.ylabel('Packets/s Forwarded (k pps)')
plt.xlabel("Packets/s Sent (k pps)")
ax.legend(loc='lower center', ncol=2, bbox_to_anchor=(0.5, -0.45), numpoints=1)
box = ax.get_position()
ax.set_position([box.x0, box.y0 + box.height * 0.25, box.width * 1.0, box.height * 0.75])
ax.set_axisbelow(True)
plt.savefig(pcapAnalysisPath+'plot_tput_'+topology+'-Multi.pdf', dpi=(2500), format='pdf')
plt.savefig(pcapAnalysisPath+'plot_tput_'+topology+'-Multi.png', dpi=(320), format='png')
plt.close()
def tabulateTput(pcapAnalysisPath, topology, vswitchMode, isIsolated, txrxFiles, txThroughput):
print "tabulateTput()"
import os.path
import csv
if os.path.isfile(pcapAnalysisPath+"tput.csv") is False:
print "create the tput table csv file."
headings = ["topology", "vswitchMode", "isIsolated", "tx (Mpps)", "rx (Mpps)"]
with open(pcapAnalysisPath+"tput.csv", 'a') as tputFile:
wr = csv.writer(tputFile, quoting=csv.QUOTE_NONE)
wr.writerow(headings)
else:
print "tput table csv already exits. Will append data."
if len(txrxFiles) == 1:
txTput = txThroughput * 1.0 / 1000000
rx = pcapAnalysisPath + txrxFiles[0]
rxTput = parse_tput_dict_dagbits(rx)
elif len(txrxFiles) == 2:
tx = pcapAnalysisPath + txrxFiles[0]
rx = pcapAnalysisPath + txrxFiles[1]
txTput = parse_tput_dict_dagbits(tx)
rxTput = parse_tput_dict_dagbits(rx)
data = [topology, vswitchMode, isIsolated, txTput, rxTput]
with open(pcapAnalysisPath+"tput.csv", 'a') as tputFile:
wr = csv.writer(tputFile, quoting=csv.QUOTE_NONE)
wr.writerow(data)
def get_tput_dict(txPath, rxPath):
print "get_tput_dict()"
x1 = []
y1 = []
try:
d = glob.glob(rxPath)
d.sort()
for i in d:
# print "y1 parsedicts:"
y1.append(parse_tput_dict(i))
print parse_tput_dict(i)
d = glob.glob(txPath)
d.sort()
for i in d:
# print "x1 parsedicts:"
x1.append(parse_tput_dict(i))
print parse_tput_dict(i)
# exit()
return x1, y1
except:
x1 = []
y1 = []
def parse_tput_dict(dict_data):
try:
for l in open(dict_data):
if l.split()[0] == 'Average':
return int(float(l.split()[3])/1000)
except:
print "Looks like its empty!"
return 0
def parse_tput_dict_dagbits(tputFile):
try:
foundRate = False
for l in open(tputFile):
if l.split(':')[0] == ' Rate' and foundRate is False:
foundRate = True
if l.split(':')[0] == ' Rate' and foundRate is True:
rateLine = l.split(':')
rate = rateLine[1].split('(')[1].split()[0]
return float(float(rate)/1000000.0)
except:
print "Looks like its empty!"
return 0
| 50.509524
| 212
| 0.634958
| 5,414
| 42,428
| 4.793498
| 0.076099
| 0.03518
| 0.025855
| 0.061383
| 0.864982
| 0.841053
| 0.771617
| 0.764026
| 0.705032
| 0.642918
| 0
| 0.078358
| 0.212831
| 42,428
| 839
| 213
| 50.569726
| 0.698695
| 0.10083
| 0
| 0.554869
| 0
| 0
| 0.186612
| 0.11433
| 0.001546
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.023184
| null | null | 0.046368
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fd5b5dccf615119cdf9d53f8d764b52ee8d44ae9
| 10,079
|
py
|
Python
|
csdl/examples/ex_bracketed_search.py
|
LSDOlab/csdl
|
04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3
|
[
"MIT"
] | null | null | null |
csdl/examples/ex_bracketed_search.py
|
LSDOlab/csdl
|
04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3
|
[
"MIT"
] | null | null | null |
csdl/examples/ex_bracketed_search.py
|
LSDOlab/csdl
|
04c2c5764f6ca9b865ec87ecfeaf6f22ecacc5a3
|
[
"MIT"
] | 1
|
2021-10-04T19:40:32.000Z
|
2021-10-04T19:40:32.000Z
|
from csdl import Model, ScipyKrylov, NewtonSolver, NonlinearBlockGS
import numpy as np
class ExampleBracketedScalar(Model):
"""
:param var: x
"""
def define(self):
# NOTE: Importing definitions within a method is bad practice.
# This is only done here to automate example/test case
# generation more easily.
# When defining CSDL models, please put the import statements at
# the top of your Python file(s).
from csdl.examples.models.quadratic_function import QuadraticFunction
solve_quadratic = self.create_implicit_operation(
QuadraticFunction(shape=(1, )))
solve_quadratic.declare_state('x', residual='y', bracket=(0, 2))
a = self.declare_variable('a', val=1)
b = self.declare_variable('b', val=-4)
c = self.declare_variable('c', val=3)
x = solve_quadratic(a, b, c)
class ExampleBracketedArray(Model):
"""
:param var: x
"""
def define(self):
# NOTE: Importing definitions within a method is bad practice.
# This is only done here to automate example/test case
# generation more easily.
# When defining CSDL models, please put the import statements at
# the top of your Python file(s).
from csdl.examples.models.quadratic_function import QuadraticFunction
solve_quadratic = self.create_implicit_operation(
QuadraticFunction(shape=(2, )))
solve_quadratic.declare_state('x',
residual='y',
bracket=(
np.array([0, 2.]),
np.array([2, np.pi], ),
))
a = self.declare_variable('a', val=[1, -1])
b = self.declare_variable('b', val=[-4, 4])
c = self.declare_variable('c', val=[3, -3])
x = solve_quadratic(a, b, c)
class ExampleWithSubsystemsBracketedScalar(Model):
"""
:param var: y
"""
def define(self):
# NOTE: Importing definitions within a method is bad practice.
# This is only done here to automate example/test case
# generation more easily.
# When defining CSDL models, please put the import statements at
# the top of your Python file(s).
from csdl.examples.models.quadratic_wih_extra_term import QuadraticWithExtraTerm
from csdl.examples.models.simple_add import SimpleAdd
from csdl.examples.models.fixed_point import FixedPoint2
self.add(SimpleAdd(p=7, q=8), name='R')
solve_fixed_point_iteration = self.create_implicit_operation(
FixedPoint2(name='a'))
solve_fixed_point_iteration.declare_state('a', residual='r')
solve_fixed_point_iteration.nonlinear_solver = NonlinearBlockGS(
maxiter=100)
solve_quadratic = self.create_implicit_operation(
QuadraticWithExtraTerm(shape=(1, )))
solve_quadratic.declare_state('y', residual='z', bracket=(0, 2))
solve_quadratic.nonlinear_solver = NonlinearBlockGS(maxiter=100)
a = solve_fixed_point_iteration()
b = self.declare_variable('b', val=-4)
c = self.declare_variable('c', val=18)
r = self.declare_variable('r')
y = solve_quadratic(a, b, c, r)
class ExampleWithSubsystemsBracketedArray(Model):
"""
:param var: y
"""
def define(self):
# NOTE: Importing definitions within a method is bad practice.
# This is only done here to automate example/test case
# generation more easily.
# When defining CSDL models, please put the import statements at
# the top of your Python file(s).
from csdl.examples.models.quadratic_wih_extra_term import QuadraticWithExtraTerm
from csdl.examples.models.simple_add import SimpleAdd
from csdl.examples.models.fixed_point import FixedPoint2
self.add(SimpleAdd(p=[7, -7], q=[8, -8]), name='R')
solve_fixed_point_iteration = self.create_implicit_operation(
FixedPoint2(name='ap'))
solve_fixed_point_iteration.declare_state('ap', residual='r')
solve_fixed_point_iteration.nonlinear_solver = NonlinearBlockGS(
maxiter=100)
solve_quadratic = self.create_implicit_operation(
QuadraticWithExtraTerm(shape=(2, )))
solve_quadratic.declare_state('y',
residual='z',
bracket=(
np.array([0, 2.]),
np.array([2, np.pi], ),
))
solve_quadratic.nonlinear_solver = NonlinearBlockGS(maxiter=100)
ap = solve_fixed_point_iteration()
a = self.create_output('a', shape=(2, ))
a[0] = ap
a[1] = -ap
b = self.declare_variable('b', val=[-4, 4])
c = self.declare_variable('c', val=[18, -18])
r = self.declare_variable('r', shape=(2, ))
y = solve_quadratic(a, b, c, r)
# ----------------------------------------------------------------------
class ExampleBracketedScalarDefineModelInline(Model):
"""
:param var: x
"""
def define(self):
model = Model()
a = model.declare_variable('a')
b = model.declare_variable('b')
c = model.declare_variable('c')
x = model.declare_variable('x')
y = a * x**2 + b * x + c
model.register_output('y', y)
solve_quadratic = self.create_implicit_operation(model)
solve_quadratic.declare_state('x', residual='y', bracket=(0, 2))
a = self.declare_variable('a', val=1)
b = self.declare_variable('b', val=-4)
c = self.declare_variable('c', val=3)
x = solve_quadratic(a, b, c)
class ExampleBracketedArrayDefineModelInline(Model):
"""
:param var: x
"""
def define(self):
model = Model()
a = model.declare_variable('a', shape=(2, ))
b = model.declare_variable('b', shape=(2, ))
c = model.declare_variable('c', shape=(2, ))
x = model.declare_variable('x', shape=(2, ))
y = a * x**2 + b * x + c
model.register_output('y', y)
solve_quadratic = self.create_implicit_operation(model)
solve_quadratic.declare_state('x',
residual='y',
bracket=(
np.array([0, 2.]),
np.array([2, np.pi], ),
))
a = self.declare_variable('a', val=[1, -1])
b = self.declare_variable('b', val=[-4, 4])
c = self.declare_variable('c', val=[3, -3])
x = solve_quadratic(a, b, c)
class ExampleWithSubsystemsBracketedScalarDefineModelInline(Model):
"""
:param var: y
"""
def define(self):
with self.create_submodel('R') as model:
p = model.create_input('p', val=7)
q = model.create_input('q', val=8)
r = p + q
model.register_output('r', r)
m2 = Model()
x = m2.declare_variable('a')
r = m2.register_output('r', x - ((x + 3 - x**4) / 2)**(1 / 4))
m3 = Model()
a = m3.declare_variable('a')
b = m3.declare_variable('b')
c = m3.declare_variable('c')
r = m3.declare_variable('r')
y = m3.declare_variable('y')
m3.register_output('z', a * y**2 + b * y + c - r)
solve_fixed_point_iteration = self.create_implicit_operation(m2)
solve_fixed_point_iteration.declare_state('a', residual='r')
solve_fixed_point_iteration.nonlinear_solver = NonlinearBlockGS(
maxiter=100)
solve_quadratic = self.create_implicit_operation(m3)
solve_quadratic.declare_state('y', residual='z', bracket=(0, 2))
solve_quadratic.nonlinear_solver = NonlinearBlockGS(maxiter=100)
a = solve_fixed_point_iteration()
b = self.declare_variable('b', val=-4)
c = self.declare_variable('c', val=18)
r = self.declare_variable('r')
y = solve_quadratic(a, b, c, r)
class ExampleWithSubsystemsBracketedArrayDefineModelInline(Model):
"""
:param var: y
"""
def define(self):
with self.create_submodel('R') as model:
p = model.create_input('p', val=[7, -7])
q = model.create_input('q', val=[8, -8])
r = p + q
model.register_output('r', r)
m2 = Model()
x = m2.declare_variable('ap')
r = m2.register_output('r', x - ((x + 3 - x**4) / 2)**(1 / 4))
m3 = Model()
a = m3.declare_variable('a', shape=(2, ))
b = m3.declare_variable('b', shape=(2, ))
c = m3.declare_variable('c', shape=(2, ))
r = m3.declare_variable('r', shape=(2, ))
y = m3.declare_variable('y', shape=(2, ))
m3.register_output('z', a * y**2 + b * y + c - r)
solve_fixed_point_iteration = self.create_implicit_operation(m2)
solve_fixed_point_iteration.declare_state('ap', residual='r')
solve_fixed_point_iteration.nonlinear_solver = NonlinearBlockGS(
maxiter=100)
solve_quadratic = self.create_implicit_operation(m3)
solve_quadratic.declare_state('y',
residual='z',
bracket=(
np.array([0, 2.]),
np.array([2, np.pi], ),
))
solve_quadratic.nonlinear_solver = NonlinearBlockGS(maxiter=100)
ap = solve_fixed_point_iteration()
a = self.create_output('a', shape=(2, ))
a[0] = ap
a[1] = -ap
b = self.declare_variable('b', val=[-4, 4])
c = self.declare_variable('c', val=[18, -18])
r = self.declare_variable('r', shape=(2, ))
y = solve_quadratic(a, b, c, r)
| 38.17803
| 88
| 0.560671
| 1,173
| 10,079
| 4.653879
| 0.098892
| 0.120901
| 0.083532
| 0.070343
| 0.928009
| 0.882946
| 0.867009
| 0.867009
| 0.858033
| 0.858033
| 0
| 0.022283
| 0.309852
| 10,079
| 263
| 89
| 38.323194
| 0.762507
| 0.110626
| 0
| 0.761364
| 0
| 0
| 0.010427
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.045455
| false
| 0
| 0.056818
| 0
| 0.147727
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b5dced6d67f40fde1df3f32e546d64dbe1f829f0
| 3,437
|
py
|
Python
|
prep/join_student_question_index.py
|
mack-the-psych/vdok3
|
f3ab898c1815d0d54822dbb18b82723a48fc71f7
|
[
"MIT"
] | null | null | null |
prep/join_student_question_index.py
|
mack-the-psych/vdok3
|
f3ab898c1815d0d54822dbb18b82723a48fc71f7
|
[
"MIT"
] | null | null | null |
prep/join_student_question_index.py
|
mack-the-psych/vdok3
|
f3ab898c1815d0d54822dbb18b82723a48fc71f7
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python
import pandas as pd
def bas_join_student_question_index(csv_file_src, csv_file_trg, data_dir=r'./'):
df_ac_src = pd.read_csv(data_dir + csv_file_src, encoding= 'latin1')
df_ac_src = df_ac_src.set_index(r'AC_Doc_ID')
df_ac_trg = pd.read_csv(data_dir + csv_file_trg, encoding= 'latin1')
df_ac_trg = df_ac_trg.set_index(r'AC_Doc_ID')
df_ac_trg[r'Student_Question_Index'] = df_ac_src[r'Student_Question_Index']
return df_ac_trg
if __name__ == "__main__":
data_dir = r'../data/'
df_ac_merge_trg = bas_join_student_question_index(r'Key-Stem-Passage-Aggregate_plim-Def-PRE.csv',
r'RF_Classified-Prediction-Def-PRE-All.csv', data_dir)
df_ac_merge_trg.to_csv(data_dir + r'Refmt_RF_Classified-Prediction-Def-PRE-All.csv',
encoding= 'latin1')
df_ac_merge_trg = bas_join_student_question_index(r'Key-Stem-Passage-Aggregate_plim-Sen-PRE.csv',
r'RF-Classified-Prediction-Sen-PRE-All.csv', data_dir)
df_ac_merge_trg.to_csv(data_dir + r'Refmt_RF-Classified-Prediction-Sen-PRE-All.csv',
encoding= 'latin1')
df_ac_merge_trg = bas_join_student_question_index(r'Key-Stem-Passage-Aggregate_plim-Def-PRE-POST.csv',
r'RF-Classified-Prediction-Def-PRE-POST-All.csv', data_dir)
df_ac_merge_trg.to_csv(data_dir + r'Refmt_RF-Classified-Prediction-Def-PRE-POST-All.csv',
encoding= 'latin1')
df_ac_merge_trg = bas_join_student_question_index(r'Key-Stem-Passage-Aggregate_plim-Sen-PRE-POST.csv',
r'RF-Classified-Prediction-Sen-PRE-POST-All.csv', data_dir)
df_ac_merge_trg.to_csv(data_dir + r'Refmt_RF-Classified-Prediction-Sen-PRE-POST-All.csv',
encoding= 'latin1')
data_dir = r'../data/wo_DK_NR/'
df_ac_merge_trg = bas_join_student_question_index(r'Key-Stem-Passage-Aggregate_plim-Def-PRE_wo_DK_NR.csv',
r'RF_wo_DK_NR_Classified-Prediction-Def-PRE-All.csv', data_dir)
df_ac_merge_trg.to_csv(data_dir + r'Refmt_RF_wo_DK_NR_Classified-Prediction-Def-PRE-All.csv',
encoding= 'latin1')
df_ac_merge_trg = bas_join_student_question_index(r'Key-Stem-Passage-Aggregate_plim-Sen-PRE_wo_DK_NR.csv',
r'RF_wo_DK_NR-Classified-Prediction-Sen-PRE-All.csv', data_dir)
df_ac_merge_trg.to_csv(data_dir + r'Refmt_RF_wo_DK_NR-Classified-Prediction-Sen-PRE-All.csv',
encoding= 'latin1')
df_ac_merge_trg = bas_join_student_question_index(r'Key-Stem-Passage-Aggregate_plim-Def-PRE-POST_wo_DK_NR.csv',
r'RF-Classified-Prediction-Def-PRE-POST_wo_DK_NR-All.csv', data_dir)
df_ac_merge_trg.to_csv(data_dir + r'Refmt_RF-Classified-Prediction-Def-PRE-POST_wo_DK_NR-All.csv',
encoding= 'latin1')
df_ac_merge_trg = bas_join_student_question_index(r'Key-Stem-Passage-Aggregate_plim-Sen-PRE-POST_wo_DK_NR.csv',
r'RF-Classified-Prediction-Sen-PRE-POST_wo_DK_NR-All.csv', data_dir)
df_ac_merge_trg.to_csv(data_dir + r'Refmt_RF-Classified-Prediction-Sen-PRE-POST_wo_DK_NR-All.csv',
encoding= 'latin1')
| 59.258621
| 115
| 0.656677
| 529
| 3,437
| 3.856333
| 0.096408
| 0.04902
| 0.088235
| 0.094118
| 0.885784
| 0.872549
| 0.865686
| 0.837255
| 0.805882
| 0.776471
| 0
| 0.003795
| 0.233343
| 3,437
| 57
| 116
| 60.298246
| 0.770398
| 0.005819
| 0
| 0.186047
| 0
| 0
| 0.397248
| 0.364169
| 0
| 0
| 0
| 0
| 0
| 1
| 0.023256
| false
| 0.186047
| 0.023256
| 0
| 0.069767
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
bd069c43f21971c6b3bbae50776b33b9ecce3825
| 570
|
py
|
Python
|
ss5/4-5.py
|
DuongVu39/C4E10_Duong
|
60ec59bddbb3397b5a1804930d5bdfd81107dcae
|
[
"MIT"
] | null | null | null |
ss5/4-5.py
|
DuongVu39/C4E10_Duong
|
60ec59bddbb3397b5a1804930d5bdfd81107dcae
|
[
"MIT"
] | null | null | null |
ss5/4-5.py
|
DuongVu39/C4E10_Duong
|
60ec59bddbb3397b5a1804930d5bdfd81107dcae
|
[
"MIT"
] | null | null | null |
<<<<<<< HEAD
from turtle import *
bgcolor('lightgreen')
color('blue')
speed (-1)
def draw_pattern(n):
m = 5
for i in range (n):
for j in range (4):
right(90)
fd(m)
m += 4
left (5)
draw_pattern(100)
=======
from turtle import *
bgcolor('lightgreen')
color('blue')
speed (-1)
def draw_pattern(n):
m = 5
for i in range (n):
for j in range (4):
right(90)
fd(m)
m += 4
left (5)
draw_pattern(100)
>>>>>>> 687005e51286e9522a42a2d33dcef452fb0a05b2
| 14.25
| 48
| 0.505263
| 74
| 570
| 3.837838
| 0.378378
| 0.15493
| 0.112676
| 0.161972
| 0.84507
| 0.84507
| 0.84507
| 0.84507
| 0.84507
| 0.84507
| 0
| 0.126005
| 0.345614
| 570
| 39
| 49
| 14.615385
| 0.635389
| 0
| 0
| 0.896552
| 0
| 0
| 0.049123
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.068966
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
1fbf6a553d223f7bed9e04af16513a82f835904b
| 27,510
|
py
|
Python
|
sdk/python/pulumi_alicloud/datahub/topic.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 42
|
2019-03-18T06:34:37.000Z
|
2022-03-24T07:08:57.000Z
|
sdk/python/pulumi_alicloud/datahub/topic.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 152
|
2019-04-15T21:03:44.000Z
|
2022-03-29T18:00:57.000Z
|
sdk/python/pulumi_alicloud/datahub/topic.py
|
pulumi/pulumi-alicloud
|
9c34d84b4588a7c885c6bec1f03b5016e5a41683
|
[
"ECL-2.0",
"Apache-2.0"
] | 3
|
2020-08-26T17:30:07.000Z
|
2021-07-05T01:37:45.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['TopicArgs', 'Topic']
@pulumi.input_type
class TopicArgs:
def __init__(__self__, *,
project_name: pulumi.Input[str],
comment: Optional[pulumi.Input[str]] = None,
life_cycle: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
record_schema: Optional[pulumi.Input[Mapping[str, Any]]] = None,
record_type: Optional[pulumi.Input[str]] = None,
shard_count: Optional[pulumi.Input[int]] = None):
"""
The set of arguments for constructing a Topic resource.
:param pulumi.Input[str] project_name: The name of the datahub project that this topic belongs to. It is case-insensitive.
:param pulumi.Input[str] comment: Comment of the datahub topic. It cannot be longer than 255 characters.
:param pulumi.Input[int] life_cycle: How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
:param pulumi.Input[str] name: The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
:param pulumi.Input[Mapping[str, Any]] record_schema: Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:
- BIGINT
- STRING
- BOOLEAN
- DOUBLE
- TIMESTAMP
:param pulumi.Input[str] record_type: The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
:param pulumi.Input[int] shard_count: The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
"""
pulumi.set(__self__, "project_name", project_name)
if comment is not None:
pulumi.set(__self__, "comment", comment)
if life_cycle is not None:
pulumi.set(__self__, "life_cycle", life_cycle)
if name is not None:
pulumi.set(__self__, "name", name)
if record_schema is not None:
pulumi.set(__self__, "record_schema", record_schema)
if record_type is not None:
pulumi.set(__self__, "record_type", record_type)
if shard_count is not None:
pulumi.set(__self__, "shard_count", shard_count)
@property
@pulumi.getter(name="projectName")
def project_name(self) -> pulumi.Input[str]:
"""
The name of the datahub project that this topic belongs to. It is case-insensitive.
"""
return pulumi.get(self, "project_name")
@project_name.setter
def project_name(self, value: pulumi.Input[str]):
pulumi.set(self, "project_name", value)
@property
@pulumi.getter
def comment(self) -> Optional[pulumi.Input[str]]:
"""
Comment of the datahub topic. It cannot be longer than 255 characters.
"""
return pulumi.get(self, "comment")
@comment.setter
def comment(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "comment", value)
@property
@pulumi.getter(name="lifeCycle")
def life_cycle(self) -> Optional[pulumi.Input[int]]:
"""
How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
"""
return pulumi.get(self, "life_cycle")
@life_cycle.setter
def life_cycle(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "life_cycle", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="recordSchema")
def record_schema(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
"""
Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:
- BIGINT
- STRING
- BOOLEAN
- DOUBLE
- TIMESTAMP
"""
return pulumi.get(self, "record_schema")
@record_schema.setter
def record_schema(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
pulumi.set(self, "record_schema", value)
@property
@pulumi.getter(name="recordType")
def record_type(self) -> Optional[pulumi.Input[str]]:
"""
The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
"""
return pulumi.get(self, "record_type")
@record_type.setter
def record_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "record_type", value)
@property
@pulumi.getter(name="shardCount")
def shard_count(self) -> Optional[pulumi.Input[int]]:
"""
The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
"""
return pulumi.get(self, "shard_count")
@shard_count.setter
def shard_count(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "shard_count", value)
@pulumi.input_type
class _TopicState:
def __init__(__self__, *,
comment: Optional[pulumi.Input[str]] = None,
create_time: Optional[pulumi.Input[str]] = None,
last_modify_time: Optional[pulumi.Input[str]] = None,
life_cycle: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
record_schema: Optional[pulumi.Input[Mapping[str, Any]]] = None,
record_type: Optional[pulumi.Input[str]] = None,
shard_count: Optional[pulumi.Input[int]] = None):
"""
Input properties used for looking up and filtering Topic resources.
:param pulumi.Input[str] comment: Comment of the datahub topic. It cannot be longer than 255 characters.
:param pulumi.Input[str] create_time: Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
:param pulumi.Input[str] last_modify_time: Last modify time of the datahub topic. It is the same as *create_time* at the beginning. It is also a human-readable string rather than 64-bits UTC.
:param pulumi.Input[int] life_cycle: How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
:param pulumi.Input[str] name: The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
:param pulumi.Input[str] project_name: The name of the datahub project that this topic belongs to. It is case-insensitive.
:param pulumi.Input[Mapping[str, Any]] record_schema: Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:
- BIGINT
- STRING
- BOOLEAN
- DOUBLE
- TIMESTAMP
:param pulumi.Input[str] record_type: The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
:param pulumi.Input[int] shard_count: The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
"""
if comment is not None:
pulumi.set(__self__, "comment", comment)
if create_time is not None:
pulumi.set(__self__, "create_time", create_time)
if last_modify_time is not None:
pulumi.set(__self__, "last_modify_time", last_modify_time)
if life_cycle is not None:
pulumi.set(__self__, "life_cycle", life_cycle)
if name is not None:
pulumi.set(__self__, "name", name)
if project_name is not None:
pulumi.set(__self__, "project_name", project_name)
if record_schema is not None:
pulumi.set(__self__, "record_schema", record_schema)
if record_type is not None:
pulumi.set(__self__, "record_type", record_type)
if shard_count is not None:
pulumi.set(__self__, "shard_count", shard_count)
@property
@pulumi.getter
def comment(self) -> Optional[pulumi.Input[str]]:
"""
Comment of the datahub topic. It cannot be longer than 255 characters.
"""
return pulumi.get(self, "comment")
@comment.setter
def comment(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "comment", value)
@property
@pulumi.getter(name="createTime")
def create_time(self) -> Optional[pulumi.Input[str]]:
"""
Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
"""
return pulumi.get(self, "create_time")
@create_time.setter
def create_time(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "create_time", value)
@property
@pulumi.getter(name="lastModifyTime")
def last_modify_time(self) -> Optional[pulumi.Input[str]]:
"""
Last modify time of the datahub topic. It is the same as *create_time* at the beginning. It is also a human-readable string rather than 64-bits UTC.
"""
return pulumi.get(self, "last_modify_time")
@last_modify_time.setter
def last_modify_time(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "last_modify_time", value)
@property
@pulumi.getter(name="lifeCycle")
def life_cycle(self) -> Optional[pulumi.Input[int]]:
"""
How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
"""
return pulumi.get(self, "life_cycle")
@life_cycle.setter
def life_cycle(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "life_cycle", value)
@property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
"""
return pulumi.get(self, "name")
@name.setter
def name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "name", value)
@property
@pulumi.getter(name="projectName")
def project_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of the datahub project that this topic belongs to. It is case-insensitive.
"""
return pulumi.get(self, "project_name")
@project_name.setter
def project_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "project_name", value)
@property
@pulumi.getter(name="recordSchema")
def record_schema(self) -> Optional[pulumi.Input[Mapping[str, Any]]]:
"""
Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:
- BIGINT
- STRING
- BOOLEAN
- DOUBLE
- TIMESTAMP
"""
return pulumi.get(self, "record_schema")
@record_schema.setter
def record_schema(self, value: Optional[pulumi.Input[Mapping[str, Any]]]):
pulumi.set(self, "record_schema", value)
@property
@pulumi.getter(name="recordType")
def record_type(self) -> Optional[pulumi.Input[str]]:
"""
The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
"""
return pulumi.get(self, "record_type")
@record_type.setter
def record_type(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "record_type", value)
@property
@pulumi.getter(name="shardCount")
def shard_count(self) -> Optional[pulumi.Input[int]]:
"""
The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
"""
return pulumi.get(self, "shard_count")
@shard_count.setter
def shard_count(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "shard_count", value)
class Topic(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
comment: Optional[pulumi.Input[str]] = None,
life_cycle: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
record_schema: Optional[pulumi.Input[Mapping[str, Any]]] = None,
record_type: Optional[pulumi.Input[str]] = None,
shard_count: Optional[pulumi.Input[int]] = None,
__props__=None):
"""
The topic is the basic unit of Datahub data source and is used to define one kind of data or stream. It contains a set of subscriptions. You can manage the datahub source of an application by using topics. [Refer to details](https://help.aliyun.com/document_detail/47440.html).
## Example Usage
Basic Usage
- BLob Topic
```python
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.datahub.Topic("example",
comment="created by terraform",
life_cycle=7,
project_name="tf_datahub_project",
record_type="BLOB",
shard_count=3)
```
- Tuple Topic
```python
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.datahub.Topic("example",
comment="created by terraform",
life_cycle=7,
project_name="tf_datahub_project",
record_schema={
"bigint_field": "BIGINT",
"boolean_field": "BOOLEAN",
"double_field": "DOUBLE",
"string_field": "STRING",
"timestamp_field": "TIMESTAMP",
},
record_type="TUPLE",
shard_count=3)
```
## Import
Datahub topic can be imported using the ID, e.g.
```sh
$ pulumi import alicloud:datahub/topic:Topic example tf_datahub_project:tf_datahub_topic
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] comment: Comment of the datahub topic. It cannot be longer than 255 characters.
:param pulumi.Input[int] life_cycle: How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
:param pulumi.Input[str] name: The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
:param pulumi.Input[str] project_name: The name of the datahub project that this topic belongs to. It is case-insensitive.
:param pulumi.Input[Mapping[str, Any]] record_schema: Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:
- BIGINT
- STRING
- BOOLEAN
- DOUBLE
- TIMESTAMP
:param pulumi.Input[str] record_type: The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
:param pulumi.Input[int] shard_count: The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: TopicArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
The topic is the basic unit of Datahub data source and is used to define one kind of data or stream. It contains a set of subscriptions. You can manage the datahub source of an application by using topics. [Refer to details](https://help.aliyun.com/document_detail/47440.html).
## Example Usage
Basic Usage
- BLob Topic
```python
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.datahub.Topic("example",
comment="created by terraform",
life_cycle=7,
project_name="tf_datahub_project",
record_type="BLOB",
shard_count=3)
```
- Tuple Topic
```python
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.datahub.Topic("example",
comment="created by terraform",
life_cycle=7,
project_name="tf_datahub_project",
record_schema={
"bigint_field": "BIGINT",
"boolean_field": "BOOLEAN",
"double_field": "DOUBLE",
"string_field": "STRING",
"timestamp_field": "TIMESTAMP",
},
record_type="TUPLE",
shard_count=3)
```
## Import
Datahub topic can be imported using the ID, e.g.
```sh
$ pulumi import alicloud:datahub/topic:Topic example tf_datahub_project:tf_datahub_topic
```
:param str resource_name: The name of the resource.
:param TopicArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(TopicArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
comment: Optional[pulumi.Input[str]] = None,
life_cycle: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
record_schema: Optional[pulumi.Input[Mapping[str, Any]]] = None,
record_type: Optional[pulumi.Input[str]] = None,
shard_count: Optional[pulumi.Input[int]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = TopicArgs.__new__(TopicArgs)
__props__.__dict__["comment"] = comment
__props__.__dict__["life_cycle"] = life_cycle
__props__.__dict__["name"] = name
if project_name is None and not opts.urn:
raise TypeError("Missing required property 'project_name'")
__props__.__dict__["project_name"] = project_name
__props__.__dict__["record_schema"] = record_schema
__props__.__dict__["record_type"] = record_type
__props__.__dict__["shard_count"] = shard_count
__props__.__dict__["create_time"] = None
__props__.__dict__["last_modify_time"] = None
super(Topic, __self__).__init__(
'alicloud:datahub/topic:Topic',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
comment: Optional[pulumi.Input[str]] = None,
create_time: Optional[pulumi.Input[str]] = None,
last_modify_time: Optional[pulumi.Input[str]] = None,
life_cycle: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
record_schema: Optional[pulumi.Input[Mapping[str, Any]]] = None,
record_type: Optional[pulumi.Input[str]] = None,
shard_count: Optional[pulumi.Input[int]] = None) -> 'Topic':
"""
Get an existing Topic resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] comment: Comment of the datahub topic. It cannot be longer than 255 characters.
:param pulumi.Input[str] create_time: Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
:param pulumi.Input[str] last_modify_time: Last modify time of the datahub topic. It is the same as *create_time* at the beginning. It is also a human-readable string rather than 64-bits UTC.
:param pulumi.Input[int] life_cycle: How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
:param pulumi.Input[str] name: The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
:param pulumi.Input[str] project_name: The name of the datahub project that this topic belongs to. It is case-insensitive.
:param pulumi.Input[Mapping[str, Any]] record_schema: Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:
- BIGINT
- STRING
- BOOLEAN
- DOUBLE
- TIMESTAMP
:param pulumi.Input[str] record_type: The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
:param pulumi.Input[int] shard_count: The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _TopicState.__new__(_TopicState)
__props__.__dict__["comment"] = comment
__props__.__dict__["create_time"] = create_time
__props__.__dict__["last_modify_time"] = last_modify_time
__props__.__dict__["life_cycle"] = life_cycle
__props__.__dict__["name"] = name
__props__.__dict__["project_name"] = project_name
__props__.__dict__["record_schema"] = record_schema
__props__.__dict__["record_type"] = record_type
__props__.__dict__["shard_count"] = shard_count
return Topic(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter
def comment(self) -> pulumi.Output[Optional[str]]:
"""
Comment of the datahub topic. It cannot be longer than 255 characters.
"""
return pulumi.get(self, "comment")
@property
@pulumi.getter(name="createTime")
def create_time(self) -> pulumi.Output[str]:
"""
Create time of the datahub topic. It is a human-readable string rather than 64-bits UTC.
"""
return pulumi.get(self, "create_time")
@property
@pulumi.getter(name="lastModifyTime")
def last_modify_time(self) -> pulumi.Output[str]:
"""
Last modify time of the datahub topic. It is the same as *create_time* at the beginning. It is also a human-readable string rather than 64-bits UTC.
"""
return pulumi.get(self, "last_modify_time")
@property
@pulumi.getter(name="lifeCycle")
def life_cycle(self) -> pulumi.Output[Optional[int]]:
"""
How many days this topic lives. The permitted range of values is [1, 7]. The default value is 3.
"""
return pulumi.get(self, "life_cycle")
@property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
"""
The name of the datahub topic. Its length is limited to 1-128 and only characters such as letters, digits and '_' are allowed. It is case-insensitive.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="projectName")
def project_name(self) -> pulumi.Output[str]:
"""
The name of the datahub project that this topic belongs to. It is case-insensitive.
"""
return pulumi.get(self, "project_name")
@property
@pulumi.getter(name="recordSchema")
def record_schema(self) -> pulumi.Output[Optional[Mapping[str, Any]]]:
"""
Schema of this topic, required only for TUPLE topic. Supported data types (case-insensitive) are:
- BIGINT
- STRING
- BOOLEAN
- DOUBLE
- TIMESTAMP
"""
return pulumi.get(self, "record_schema")
@property
@pulumi.getter(name="recordType")
def record_type(self) -> pulumi.Output[Optional[str]]:
"""
The type of this topic. Its value must be one of {BLOB, TUPLE}. For BLOB topic, data will be organized as binary and encoded by BASE64. For TUPLE topic, data has fixed schema. The default value is "TUPLE" with a schema {STRING}.
"""
return pulumi.get(self, "record_type")
@property
@pulumi.getter(name="shardCount")
def shard_count(self) -> pulumi.Output[Optional[int]]:
"""
The number of shards this topic contains. The permitted range of values is [1, 10]. The default value is 1.
"""
return pulumi.get(self, "shard_count")
| 44.80456
| 285
| 0.63406
| 3,502
| 27,510
| 4.803541
| 0.068532
| 0.069968
| 0.076804
| 0.05362
| 0.902687
| 0.882951
| 0.869694
| 0.858638
| 0.851682
| 0.833551
| 0
| 0.007292
| 0.267212
| 27,510
| 613
| 286
| 44.877651
| 0.827174
| 0.432061
| 0
| 0.752542
| 1
| 0
| 0.088899
| 0.002037
| 0
| 0
| 0
| 0
| 0
| 1
| 0.162712
| false
| 0.00339
| 0.016949
| 0
| 0.277966
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
1fd0d9e214842fc979e7e0b052b2a321bd60b783
| 44
|
py
|
Python
|
tase/telegram/methods/__init__.py
|
soran-ghaderi/Chromusic_search_engine
|
e811401fee39ff4cb184750fcbde55053c69453d
|
[
"Apache-2.0"
] | 4
|
2022-02-21T06:56:16.000Z
|
2022-03-07T21:10:19.000Z
|
tase/telegram/methods/__init__.py
|
soran-ghaderi/Chromusic_search_engine
|
e811401fee39ff4cb184750fcbde55053c69453d
|
[
"Apache-2.0"
] | null | null | null |
tase/telegram/methods/__init__.py
|
soran-ghaderi/Chromusic_search_engine
|
e811401fee39ff4cb184750fcbde55053c69453d
|
[
"Apache-2.0"
] | 1
|
2022-03-07T21:10:02.000Z
|
2022-03-07T21:10:02.000Z
|
from .search_messages import search_messages
| 44
| 44
| 0.909091
| 6
| 44
| 6.333333
| 0.666667
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.068182
| 44
| 1
| 44
| 44
| 0.926829
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
1f45503f400da41e3109736d2448566ba2d55fbd
| 16,127
|
py
|
Python
|
tests/test_main.py
|
Bag-of-Party/python-website
|
50e6135ade7311aa66e229857f531a4d52c85d1d
|
[
"Apache-2.0"
] | null | null | null |
tests/test_main.py
|
Bag-of-Party/python-website
|
50e6135ade7311aa66e229857f531a4d52c85d1d
|
[
"Apache-2.0"
] | 1
|
2021-07-24T11:18:27.000Z
|
2021-07-24T11:18:27.000Z
|
tests/test_main.py
|
Bag-of-Party/python-website
|
50e6135ade7311aa66e229857f531a4d52c85d1d
|
[
"Apache-2.0"
] | null | null | null |
from flask import session
import psycopg2
import psycopg2.extras
import pytest
import uuid
from psycopg2 import Error
from app.main import home, signup, login, create_party, party, add_items, terms, action, contact, login_data_check, app, DATABASE_URL, bcrypt
from unittest.mock import Mock
@pytest.fixture
def db_conn_parties():
db_conn = psycopg2.connect(DATABASE_URL)
cur = db_conn.cursor()
cur.execute("TRUNCATE TABLE parties")
db_conn.commit()
cur.close()
yield db_conn
db_conn.close()
@pytest.fixture
def db_conn_items():
db_conn = psycopg2.connect(DATABASE_URL)
cur = db_conn.cursor()
cur.execute("TRUNCATE TABLE items")
db_conn.commit()
cur.close()
yield db_conn
db_conn.close()
def test_home(monkeypatch):
with app.test_request_context('/'):
render_template = Mock()
monkeypatch.setattr("app.main.render_template", render_template)
response = home()
render_template.assert_called_with('home.html', page_class="home")
def test_contacts_page(monkeypatch):
with app.test_request_context('/contact'):
render_template = Mock()
monkeypatch.setattr("app.main.render_template", render_template)
response = contact()
render_template.assert_called_with('contact.html', page_class="contact")
def test_terms_page(monkeypatch):
with app.test_request_context('/terms'):
render_template = Mock()
monkeypatch.setattr("app.main.render_template", render_template)
response = terms()
render_template.assert_called_with('terms.html', page_class="terms")
def test_signup_get(monkeypatch):
with app.test_request_context('/signup'):
render_template = Mock()
monkeypatch.setattr("app.main.render_template", render_template)
response = signup()
render_template.assert_called_with('signup.html', page_class="signup")
def test_signup_post_redirect(db_conn_items, db_conn_parties, monkeypatch):
with app.test_request_context('/signup', method = "POST", data = {
"party_name": "test",
"generated_url": "4u3u/test",
"user_email": "test",
"party_password": "test"
}):
response = signup()
assert response.status_code == 303
assert response.headers["location"] == "/4u3u/test"
def test_create_party_database_insertion(db_conn_parties):
uniqid = uuid.uuid4()
create_party(uniqid, "test_name", "2u3u/test", "test_email", "test_password")
cur = db_conn_parties.cursor()
cur.execute("SELECT * from parties where url = '2u3u/test'")
data = cur.fetchone()
assert data == (str(uniqid), 'test_name', '2u3u/test', 'test_email', "test_password")
def test_signup_POSTreq_creates_party_input(monkeypatch):
uniqid = uuid.uuid4()
with app.test_request_context('/signup', method = "POST", data = {
"party_name": "test_name",
"generated_url": "2u3u/test",
"user_email": "test_email",
"party_password": "test"
}):
create_party = Mock()
monkeypatch.setattr("app.main.create_party", create_party)
# uniqid = uuid.uuid4()
testuniqid = Mock(return_value = uniqid)
monkeypatch.setattr("uuid.uuid4", testuniqid)
hash_password = b"1234"
test_password = Mock(return_value = hash_password)
monkeypatch.setattr("app.main.bcrypt.generate_password_hash", test_password)
signup()
create_party.assert_called_with(uniqid, "test_name", "2u3u/test", "test_email", "1234")
def test_login_sucsess_routing(monkeypatch, db_conn_parties):
uniqid = uuid.uuid4()
with app.test_request_context('/login', method = "POST", data = {
"login_group_email": "test_email",
"login_password": "test_password"
}):
test_password = bcrypt.generate_password_hash("test_password").decode()
create_party(uniqid, "test_name", "2u3u/test", "test_email", test_password)
response = login()
print("response")
print(response)
assert response.status_code == 303
assert response.headers["location"] == "/2u3u/test"
def test_login_fail_routing(monkeypatch, db_conn_parties):
uniqid = uuid.uuid4()
with app.test_request_context('/login', method = "POST", data = {
"login_group_email": "test_email",
"login_password": "fail_password"
}):
test_password = bcrypt.generate_password_hash("test_password").decode()
create_party(uniqid, "test_name", "2u3u/test", "test_email", test_password)
render_template = Mock()
monkeypatch.setattr("app.main.render_template", render_template)
response = login()
render_template.assert_called_with('login.html')
def test_login_bypass_routing(monkeypatch):
with app.test_request_context('/login'):
render_template = Mock()
monkeypatch.setattr("app.main.render_template", render_template)
response = login()
render_template.assert_called_with('login.html')
def test_login_data_check(db_conn_parties):
uniqid = uuid.uuid4()
test_password = bcrypt.generate_password_hash("test_password").decode()
create_party(uniqid, "test_name", "2u3u/test", "test_email", test_password)
data = login_data_check("test_email")
assert data == (str(uniqid), "test_name", '2u3u/test', 'test_email', test_password)
def test_login_fail_session_empty(monkeypatch, db_conn_parties):
uniqid = uuid.uuid4()
with app.test_request_context('/login', method = "POST", data = {
"login_group_email": "test_email",
"login_password": "fail_password"
}):
test_password = bcrypt.generate_password_hash("test_password").decode()
create_party(uniqid, "test_name", "2u3u/test", "test_email", test_password)
render_template = Mock()
monkeypatch.setattr("app.main.render_template", render_template)
response = login()
assert 'group_id' not in session
def test_party_page_routing_out_of_session(db_conn_parties, monkeypatch):
with app.test_request_context("/1j5p/party_name"):
render_template = Mock()
monkeypatch.setattr("app.main.render_template", render_template)
response = party("1j5p", "party_name")
render_template.assert_called_with('login.html')
def test_party_page_routing_in_session_no_items(db_conn_items, db_conn_parties, monkeypatch):
uniqid = uuid.uuid4()
test_password = bcrypt.generate_password_hash("test_password").decode()
create_party(uniqid, "test_name", "2u3u/test", "test_email", test_password)
with app.test_request_context("/2u3u/test"):
render_template = Mock()
monkeypatch.setattr("app.main.render_template", render_template)
session['group_id'] = str(uniqid)
party("2u3u", "test")
render_template.assert_called_with('partypage.html', data= [str(uniqid), 'test_name', '2u3u/test', 'test_email', test_password], page_items=[], root_items=[], names=[])
def test_party_page_routing_in_session_with_items_no_contents(db_conn_items, db_conn_parties, monkeypatch):
uniqid = uuid.uuid4()
test_password = bcrypt.generate_password_hash("test_password").decode()
create_party(uniqid, "test_name", "2u3u/test", "test_email", test_password)
uniqid_container = uuid.uuid4()
string_id = str(uniqid)
add_items(str(uniqid_container), str(uniqid), "test_item", "test_info", None)
with app.test_request_context("/2u3u/test"):
render_template = Mock()
monkeypatch.setattr("app.main.render_template", render_template)
session['group_id'] = str(uniqid)
party("2u3u", "test")
render_template.assert_called_with('partypage.html', data= [str(uniqid), 'test_name', '2u3u/test', 'test_email', test_password], page_items=[[str(uniqid_container), str(uniqid), "test_item", "test_info", None]], root_items=[{'id': str(uniqid_container), 'party_id': str(uniqid), 'name': 'test_item', 'info': 'test_info', 'container_id': None, 'contents': [], 'length': 0}], names=['test_item'])
def test_party_page_routing_in_session_with_items_with_contents(db_conn_items, db_conn_parties, monkeypatch):
uniqid = uuid.uuid4()
test_password = bcrypt.generate_password_hash("test_password").decode()
create_party(uniqid, "test_name", "2u3u/test", "test_email", test_password)
uniqid_container = uuid.uuid4()
uniqid_container_inside = uuid.uuid4()
uniqid_group = uuid.uuid4()
uniqid_item_inside = uuid.uuid4()
add_items(str(uniqid_container), str(uniqid), "test_item", "test_info", None)
add_items(str(uniqid_container_inside), str(uniqid), "test_item_2", "test_info_2", str(uniqid_container))
cur = db_conn_items.cursor()
cur.execute("SELECT * from items where party_id = %s",(str(uniqid_group),))
item_data = cur.fetchone()
with app.test_request_context("/2u3u/test"):
render_template = Mock()
monkeypatch.setattr("app.main.render_template", render_template)
session['group_id'] = str(uniqid)
party("2u3u", "test")
render_template.assert_called_with('partypage.html', data=[str(uniqid), 'test_name', '2u3u/test', 'test_email', test_password], page_items=[[str(uniqid_container), str(uniqid), 'test_item', 'test_info', None], [str(uniqid_container_inside), str(uniqid), 'test_item_2', 'test_info_2', str(uniqid_container)]], root_items=[{'id': str(uniqid_container), 'party_id': str(uniqid), 'name': 'test_item', 'info': 'test_info', 'container_id': None, 'contents': [{'id': str(uniqid_container_inside), 'party_id': str(uniqid), 'name': 'test_item_2', 'info': 'test_info_2', 'container_id': str(uniqid_container), 'contents': []}], 'length': 1}], names=['test_item', 'test_item_2'])
# def test_party_page_routing_in_session_with_items(db_conn_items, db_conn_parties, monkeypatch):
# uniqid = uuid.uuid4()
# test_password = bcrypt.generate_password_hash("test_password").decode()
# create_party(uniqid, "test_name", "2u3u/test", "test_email", test_password)
# with app.test_request_context("/2u3u/test"):
# render_template = Mock()
# monkeypatch.setattr("app.main.render_template", render_template)
# session['group_id'] = str(uniqid)
# party("2u3u", "test")
# render_template.assert_called_with('partypage.html', data= [str(uniqid), 'test_name', '2u3u/test', 'test_email', test_password], page_items=[], root_items=[], names=[])
# def test_add_items(db_conn_items, db_conn_parties):
# create_party(uniqid, "test_name", "1j5p/party_name", "test_email", "test_password")
# db_conn = psycopg2.connect(DATABASE_URL)
# cur = db_conn.cursor()
# # cur = db_conn_parties.cursor()
# cur.execute("SELECT * from parties where url = '1j5p/party_name'")
# data = cur.fetchone()
# print("data")
# print(data)
# # with app.test_request_context('/1j5p/party_name', method = "POST", data = {
# # "add_item": "test_item",
# # "add_item_info": "test_info",
# # "container_id": uniqid_container
# # }):
# add_items(str(uniqid_container), str(uniqid), "test_item", "test_info", None)
# cur.execute("SELECT * from parties where url = '1j5p/party_name'")
# item_data = cur.fetchone()
# assert data == (str(uniqid), 'test_name', '1j5p/party_name', 'test_email', "test_password")
# assert item_data == (str(uniqid_container), str(uniqid), "test_item", "test_info")
def test_add_items_no_contents(db_conn_parties, db_conn_items):
uniqid = uuid.uuid4()
uniqid_container = uuid.uuid4()
string_id = str(uniqid)
add_items(str(uniqid_container), str(uniqid), "test_item", "test_info", None)
cur = db_conn_items.cursor()
cur.execute("SELECT * from items where party_id = %s",(str(uniqid),))
item_data = cur.fetchone()
assert item_data == (str(uniqid_container), str(uniqid), "test_item", "test_info", None)
# FIXME this is not testing all the data, only paretnt level bing pulled
def test_add_items_with_contents(db_conn_parties, db_conn_items):
uniqid_container = uuid.uuid4()
uniqid_container_inside = uuid.uuid4()
uniqid_group = uuid.uuid4()
uniqid_item_inside = uuid.uuid4()
add_items(str(uniqid_container), str(uniqid_group), "test_item", "test_info", None)
add_items(str(uniqid_container_inside), str(uniqid_group), "test_item_2", "test_info_2", str(uniqid_container))
cur = db_conn_items.cursor()
cur.execute("SELECT * from items where party_id = %s",(str(uniqid_group),))
item_data = cur.fetchone()
# print("item_data")
# print(item_data)
assert item_data == (str(uniqid_container), str(uniqid_group), "test_item", "test_info", None)
def test_delete_item_no_contents_delete_redirect(db_conn_parties, db_conn_items):
uniqid = uuid.uuid4()
test_password = bcrypt.generate_password_hash("test_password").decode()
create_party(uniqid, "test_name", "2u3u/test", "test_email", test_password)
# uniqid_item = uuid.uuid4()
uniqid_container = uuid.uuid4()
string_id = str(uniqid)
add_items(str(uniqid_container), str(uniqid), "test_item", "test_info", None)
with app.test_request_context(f'/2u3u/test/?delete={uniqid}'):
session['group_id'] = str(uniqid)
response = party("2u3u", "test")
print("response")
print(response)
assert response.status_code == 303
assert response.headers["location"] == "/2u3u/test"
def test_delete_item_no_contents(db_conn_parties, db_conn_items):
uniqid = uuid.uuid4()
test_password = bcrypt.generate_password_hash("test_password").decode()
create_party(uniqid, "test_name", "2u3u/test", "test_email", test_password)
# uniqid_item = uuid.uuid4()
uniqid_container = uuid.uuid4()
string_id = str(uniqid)
add_items(str(uniqid_container), str(uniqid), "test_item", "test_info", None)
with app.test_request_context(f'/2u3u/test/?delete={uniqid_container}'):
session['group_id'] = str(uniqid)
# party("2u3u", "test")
party("2u3u", "test")
cur = db_conn_items.cursor()
cur.execute("SELECT * from items where party_id = %s",(str(uniqid),))
item_data = cur.fetchone()
print("item_data")
print(item_data)
assert item_data != (str(uniqid_container), str(uniqid), 'test_item', 'test_info', None)
def test_partpage_item_added_page_redirect(db_conn_parties, db_conn_items, monkeypatch):
uniqid = uuid.uuid4()
test_password = bcrypt.generate_password_hash("test_password").decode()
create_party(uniqid, "test_name", "2u3u/test", "test_email", test_password)
with app.test_request_context("/2u3u/test", method = "POST", data = {
"add_item": "test_item",
"add_item_info": "test_info",
"container_id": None
}):
session['group_id'] = str(uniqid)
response = party("2u3u", "test")
# print("response")
# print(response) RETURNIUNG PAGE HTML
assert response.status_code == 303
assert response.headers["location"] == "/2u3u/test"
def test_add_items_no_contents_action_modal(db_conn_items, db_conn_parties, monkeypatch):
uniqid_container = uuid.uuid4()
uniqid_container_inside = uuid.uuid4()
uniqid_group = uuid.uuid4()
uniqid_item_inside = uuid.uuid4()
with app.test_request_context('/action', method = 'POST', data = {
"itemName": "item_name",
"infoDetails": "item_info",
"container": None,
}):
session['group_url'] = '2u3u/test'
session['group_id'] = str(uniqid_group)
uniqid = uuid.uuid4()
testuniqid = Mock(return_value = uniqid)
monkeypatch.setattr("uuid.uuid4", testuniqid)
action()
cur = db_conn_items.cursor()
cur.execute("SELECT * from items where party_id = %s",(str(uniqid_group),))
item_data = cur.fetchone()
assert item_data == (str(uniqid), str(uniqid_group), "item_name", "item_info", None)
| 37.158986
| 676
| 0.683078
| 2,037
| 16,127
| 5.078056
| 0.068238
| 0.059165
| 0.040023
| 0.034803
| 0.860886
| 0.83198
| 0.810808
| 0.779002
| 0.762664
| 0.728635
| 0
| 0.012907
| 0.178458
| 16,127
| 433
| 677
| 37.244804
| 0.767832
| 0.117939
| 0
| 0.636364
| 0
| 0
| 0.195328
| 0.027309
| 0
| 0
| 0
| 0.002309
| 0.098485
| 1
| 0.090909
| false
| 0.132576
| 0.030303
| 0
| 0.121212
| 0.022727
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
1f46a0696fe0e67b4d126c647f72efa69c7ef748
| 82
|
py
|
Python
|
nodes/IGResizeImage/__init__.py
|
bertrandboudaud/imagegraph
|
7c95b645edeb1a68d56c6c3b19f1ff6fde413afc
|
[
"MIT"
] | null | null | null |
nodes/IGResizeImage/__init__.py
|
bertrandboudaud/imagegraph
|
7c95b645edeb1a68d56c6c3b19f1ff6fde413afc
|
[
"MIT"
] | null | null | null |
nodes/IGResizeImage/__init__.py
|
bertrandboudaud/imagegraph
|
7c95b645edeb1a68d56c6c3b19f1ff6fde413afc
|
[
"MIT"
] | null | null | null |
from . import IGResizeImage
def get():
return IGResizeImage.IGResizeImage()
| 13.666667
| 40
| 0.743902
| 8
| 82
| 7.625
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.170732
| 82
| 5
| 41
| 16.4
| 0.897059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
2f43cd59944830caf0f22ae2cbbdb8d706a340dc
| 78
|
py
|
Python
|
snnw/nn/activation/relu.py
|
juliustao/SNNW
|
2051c81b4013030d67fdfdcb1dd2973ba550ddd9
|
[
"MIT"
] | null | null | null |
snnw/nn/activation/relu.py
|
juliustao/SNNW
|
2051c81b4013030d67fdfdcb1dd2973ba550ddd9
|
[
"MIT"
] | null | null | null |
snnw/nn/activation/relu.py
|
juliustao/SNNW
|
2051c81b4013030d67fdfdcb1dd2973ba550ddd9
|
[
"MIT"
] | null | null | null |
def function(x):
return x * (x > 0)
def derivative(x):
return x > 0
| 11.142857
| 22
| 0.551282
| 13
| 78
| 3.307692
| 0.461538
| 0.325581
| 0.372093
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.037037
| 0.307692
| 78
| 6
| 23
| 13
| 0.759259
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
2f9ef5ffb24d82460cddcb1e37246e51b4d8a70d
| 198
|
py
|
Python
|
image_base/__init__.py
|
ryanfeather/image_base
|
6aa56eaa59abd0c62bebd06f26a801e6ba62ddb4
|
[
"MIT"
] | null | null | null |
image_base/__init__.py
|
ryanfeather/image_base
|
6aa56eaa59abd0c62bebd06f26a801e6ba62ddb4
|
[
"MIT"
] | null | null | null |
image_base/__init__.py
|
ryanfeather/image_base
|
6aa56eaa59abd0c62bebd06f26a801e6ba62ddb4
|
[
"MIT"
] | null | null | null |
from . import parallel
from . import filter
from . import io_utils
from . import sloth_utils
from . import net_base
from . import extraction
from . import data_generators
from . import augmentation
| 22
| 29
| 0.79798
| 28
| 198
| 5.5
| 0.464286
| 0.519481
| 0.194805
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.161616
| 198
| 9
| 30
| 22
| 0.927711
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
85dcb00c4841f36f2abbfee23a51d4109d33c34f
| 8,054
|
py
|
Python
|
conformal_blocks/test/test_f_curve_random.py
|
mjschust/conformal-blocks
|
7f6c551f506b3ebf5e0f73eb9b4cadaeee2a02b9
|
[
"MIT"
] | null | null | null |
conformal_blocks/test/test_f_curve_random.py
|
mjschust/conformal-blocks
|
7f6c551f506b3ebf5e0f73eb9b4cadaeee2a02b9
|
[
"MIT"
] | 1
|
2017-04-20T23:15:32.000Z
|
2017-04-20T23:15:32.000Z
|
conformal_blocks/test/test_f_curve_random.py
|
mjschust/conformal-blocks
|
7f6c551f506b3ebf5e0f73eb9b4cadaeee2a02b9
|
[
"MIT"
] | null | null | null |
import unittest
import conformal_blocks.cbbundle as cbd
class MyTestCase(unittest.TestCase):
def test_A2N6(self):
liealg = cbd.TypeALieAlgebra(2)
cbb = cbd.ConformalBlocksBundle(liealg, [(2, 0), (0, 1), (2, 0), (1, 0), (0, 0), (0, 2)], 2)
f_curve = [(1,), (5,), (3, 6), (2, 4)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 2), (0, 2), (0, 0), (2, 0), (0, 2), (0, 2)], 2)
f_curve = [(4,), (2,), (3, 6), (1, 5)]
self.assertEqual(2, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(2, 0), (1, 1), (2, 0), (0, 1), (0, 1), (2, 0)], 2)
f_curve = [(2,), (3, 6), (5,), (1, 4)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 2), (0, 0), (0, 0), (0, 0), (0, 2), (0, 2)], 2)
f_curve = [(2,), (3, 4, 5), (1,), (6,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 0), (2, 0), (1, 1), (0, 2), (0, 0), (1, 0)], 2)
f_curve = [(1, 3), (5,), (2, 4), (6,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 1), (0, 1), (2, 0), (0, 2), (1, 0), (0, 2)], 2)
f_curve = [(3, 6), (1,), (4,), (2, 5)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 0), (2, 0), (2, 0), (2, 0), (0, 1), (1, 1)], 2)
f_curve = [(4,), (1, 5, 6), (2,), (3,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(2, 0), (0, 1), (0, 0), (2, 0), (1, 1), (0, 1)], 2)
f_curve = [(4,), (2,), (1, 5), (3, 6)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 1), (0, 1), (1, 1), (0, 2), (1, 0), (0, 0)], 2)
f_curve = [(2,), (4, 5), (3, 6), (1,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 0), (1, 1), (1, 1), (1, 1), (0, 2), (0, 0)], 2)
f_curve = [(1, 4), (2, 5), (6,), (3,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 0), (1, 1), (1, 0), (1, 0), (1, 0), (0, 2)], 2)
f_curve = [(1,), (5,), (4, 6), (2, 3)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 0), (1, 0), (0, 1), (0, 0), (1, 0), (1, 1)], 2)
f_curve = [(1, 4, 6), (5,), (2,), (3,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 0), (2, 0), (1, 0), (1, 0), (1, 1), (0, 1)], 2)
f_curve = [(4,), (2, 3), (1, 6), (5,)]
self.assertEqual(1, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(2, 0), (0, 2), (2, 0), (1, 1), (0, 2), (0, 0)], 2)
f_curve = [(3, 6), (1,), (2, 5), (4,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 1), (0, 2), (2, 0), (1, 0), (0, 1), (1, 1)], 2)
f_curve = [(5,), (1,), (4, 6), (2, 3)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(2, 0), (0, 0), (0, 2), (0, 0), (0, 0), (0, 2)], 2)
f_curve = [(3,), (2, 4), (5, 6), (1,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
def test_A3N6(self):
liealg = cbd.TypeALieAlgebra(3)
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 2, 0), (0, 1, 1), (0, 0, 1), (1, 1, 0), (0, 0, 1), (0, 1, 1)], 2)
f_curve = [(6,), (1,), (2, 3, 4), (5,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(2, 0, 0), (0, 0, 2), (0, 0, 1), (2, 0, 0), (1, 0, 0), (0, 0, 1)], 2)
f_curve = [(5, 6), (2, 3), (4,), (1,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 1, 1), (1, 0, 1), (0, 1, 0), (1, 1, 0), (0, 0, 2), (0, 0, 1)], 2)
f_curve = [(2, 3), (4,), (1, 6), (5,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 0, 1), (0, 1, 1), (1, 0, 0), (1, 1, 0), (0, 0, 2), (0, 2, 0)], 2)
f_curve = [(4,), (5,), (1, 3), (2, 6)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 0, 0), (0, 1, 1), (0, 0, 2), (0, 1, 1), (1, 0, 1), (0, 1, 1)], 2)
f_curve = [(6,), (1,), (3, 4, 5), (2,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 1, 0), (0, 2, 0), (0, 0, 2), (1, 0, 1), (0, 1, 1), (0, 0, 1)], 2)
f_curve = [(1, 3), (2,), (5,), (4, 6)]
self.assertEqual(3, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(2, 0, 0), (0, 1, 0), (1, 0, 1), (1, 0, 1), (1, 0, 0), (0, 0, 1)], 2)
f_curve = [(3,), (4,), (1, 2), (5, 6)]
self.assertEqual(3, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 0, 1), (0, 1, 1), (1, 0, 0), (0, 0, 0), (0, 0, 0), (0, 2, 0)], 2)
f_curve = [(1, 4), (3,), (2, 5), (6,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 1, 0), (0, 1, 1), (2, 0, 0), (0, 0, 0), (1, 1, 0), (0, 2, 0)], 2)
f_curve = [(2, 4), (1,), (3, 5), (6,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 0, 1), (0, 0, 0), (0, 0, 0), (0, 0, 2), (0, 1, 1), (0, 2, 0)], 2)
f_curve = [(3, 5), (1, 2), (6,), (4,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
def test_C2N6(self):
liealg = cbd.TypeCLieAlgebra(2)
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 1), (2, 0), (0, 0), (2, 0), (1, 0), (0, 1)], 2)
f_curve = [(6,), (2, 4), (3,), (1, 5)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 1), (2, 0), (0, 2), (0, 1), (1, 0), (0, 2)], 2)
f_curve = [(3,), (4,), (1, 2, 6), (5,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 1), (0, 0), (0, 2), (0, 2), (0, 2), (0, 1)], 2)
f_curve = [(1, 4), (6,), (3, 5), (2,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 1), (2, 0), (0, 1), (0, 0), (1, 0), (0, 0)], 2)
f_curve = [(2, 3), (6,), (1, 5), (4,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 0), (2, 0), (1, 0), (0, 1), (1, 0), (1, 0)], 2)
f_curve = [(2,), (4, 6), (1,), (3, 5)]
self.assertEqual(3, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 0), (0, 0), (0, 1), (0, 1), (1, 1), (0, 0)], 2)
f_curve = [(1,), (4, 5, 6), (3,), (2,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 0), (1, 1), (0, 1), (1, 0), (0, 2), (0, 1)], 2)
f_curve = [(3, 5, 6), (2,), (1,), (4,)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(1, 0), (0, 2), (1, 0), (0, 0), (1, 1), (0, 2)], 2)
f_curve = [(1,), (5,), (3, 4), (2, 6)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 2), (1, 0), (0, 0), (1, 1), (0, 2), (2, 0)], 2)
f_curve = [(5,), (2,), (1,), (3, 4, 6)]
self.assertEqual(1, cbb.intersect_F_curve(f_curve))
cbb = cbd.ConformalBlocksBundle(liealg, [(0, 0), (1, 1), (0, 1), (1, 1), (1, 1), (0, 0)], 2)
f_curve = [(1,), (2,), (3,), (4, 5, 6)]
self.assertEqual(0, cbb.intersect_F_curve(f_curve))
if __name__ == '__main__':
unittest.main()
| 50.024845
| 118
| 0.492302
| 1,325
| 8,054
| 2.874717
| 0.026415
| 0.061433
| 0.038593
| 0.311893
| 0.924652
| 0.914938
| 0.889735
| 0.860331
| 0.791021
| 0.74639
| 0
| 0.129663
| 0.244475
| 8,054
| 160
| 119
| 50.3375
| 0.496302
| 0
| 0
| 0.294118
| 0
| 0
| 0.000993
| 0
| 0
| 0
| 0
| 0
| 0.302521
| 1
| 0.02521
| false
| 0
| 0.016807
| 0
| 0.05042
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
c85b898dd362377012d9b6eb6ea45062cf82eec6
| 5,843
|
py
|
Python
|
debug_logging/migrations/0001_initial.py
|
lincolnloop/django-debug-logging
|
dc2f60b5abaf5f344de45a791f3a3473873ae304
|
[
"BSD-3-Clause"
] | 14
|
2015-02-13T08:23:59.000Z
|
2021-09-01T22:38:48.000Z
|
debug_logging/migrations/0001_initial.py
|
lincolnloop/django-debug-logging
|
dc2f60b5abaf5f344de45a791f3a3473873ae304
|
[
"BSD-3-Clause"
] | null | null | null |
debug_logging/migrations/0001_initial.py
|
lincolnloop/django-debug-logging
|
dc2f60b5abaf5f344de45a791f3a3473873ae304
|
[
"BSD-3-Clause"
] | 2
|
2016-04-18T03:07:47.000Z
|
2017-05-24T08:35:27.000Z
|
# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'DebugLogRecord'
db.create_table('debug_logging_debuglogrecord', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('timestamp', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
('project_name', self.gf('django.db.models.fields.CharField')(max_length=255)),
('hostname', self.gf('django.db.models.fields.CharField')(max_length=255)),
('request_path', self.gf('django.db.models.fields.CharField')(max_length=255)),
('revision', self.gf('django.db.models.fields.CharField')(max_length=40, null=True, blank=True)),
('settings_pickled', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
('timer_utime', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('timer_stime', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('timer_cputime', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('timer_total', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('timer_vcsw', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('timer_ivcsw', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('sql_num_queries', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('sql_time', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('sql_queries_pickled', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
('cache_num_calls', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('cache_time', self.gf('django.db.models.fields.FloatField')(null=True, blank=True)),
('cache_hits', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('cache_misses', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('cache_sets', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('cache_gets', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('cache_get_many', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('cache_deletes', self.gf('django.db.models.fields.IntegerField')(null=True, blank=True)),
('cache_calls_pickled', self.gf('django.db.models.fields.TextField')(null=True, blank=True)),
))
db.send_create_signal('debug_logging', ['DebugLogRecord'])
def backwards(self, orm):
# Deleting model 'DebugLogRecord'
db.delete_table('debug_logging_debuglogrecord')
models = {
'debug_logging.debuglogrecord': {
'Meta': {'object_name': 'DebugLogRecord'},
'cache_calls_pickled': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'cache_deletes': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'cache_get_many': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'cache_gets': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'cache_hits': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'cache_misses': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'cache_num_calls': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'cache_sets': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'cache_time': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'hostname': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'project_name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'request_path': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'revision': ('django.db.models.fields.CharField', [], {'max_length': '40', 'null': 'True', 'blank': 'True'}),
'settings_pickled': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'sql_num_queries': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'sql_queries_pickled': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
'sql_time': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'timer_cputime': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'timer_ivcsw': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'timer_stime': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'timer_total': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'timer_utime': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
'timer_vcsw': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'})
}
}
complete_apps = ['debug_logging']
| 73.0375
| 121
| 0.608934
| 672
| 5,843
| 5.177083
| 0.125
| 0.117275
| 0.201207
| 0.287439
| 0.856281
| 0.856281
| 0.83501
| 0.819776
| 0.783271
| 0.751078
| 0
| 0.00497
| 0.173541
| 5,843
| 79
| 122
| 73.962025
| 0.715469
| 0.013178
| 0
| 0
| 0
| 0
| 0.501909
| 0.314821
| 0
| 0
| 0
| 0
| 0
| 1
| 0.029851
| false
| 0
| 0.059701
| 0
| 0.134328
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
23b1bf0f450ff95a144de5045f5b3bc8d76d99ad
| 4,689
|
py
|
Python
|
matplotcheck/tests/test_base.py
|
earthlab/matPlotCheck
|
c1b6a3bf805b1b813b9bdf98752f2bf4baa9cdcf
|
[
"BSD-3-Clause"
] | 12
|
2019-03-01T15:07:10.000Z
|
2022-03-04T08:23:26.000Z
|
matplotcheck/tests/test_base.py
|
earthlab/matPlotCheck
|
c1b6a3bf805b1b813b9bdf98752f2bf4baa9cdcf
|
[
"BSD-3-Clause"
] | 382
|
2018-12-20T23:05:47.000Z
|
2022-01-13T02:34:44.000Z
|
matplotcheck/tests/test_base.py
|
earthlab/matPlotCheck
|
c1b6a3bf805b1b813b9bdf98752f2bf4baa9cdcf
|
[
"BSD-3-Clause"
] | 8
|
2019-01-23T23:10:51.000Z
|
2021-11-03T16:17:51.000Z
|
"""Tests for the base module"""
import pytest
import matplotlib.pyplot as plt
def test_line_plot(pt_line_plt):
"""Test that the line plot returns true for line but false for bar or
scatter."""
pt_line_plt.assert_plot_type("line")
with pytest.raises(AssertionError, match="Plot is not of type bar"):
pt_line_plt.assert_plot_type("bar")
with pytest.raises(AssertionError, match="Plot is not of type scatter"):
pt_line_plt.assert_plot_type("scatter")
plt.close()
def test_scatter_plot(pt_scatter_plt):
"""Test that the scatter plot returns true for line but false for bar or
line."""
pt_scatter_plt.assert_plot_type("scatter")
with pytest.raises(AssertionError, match="Plot is not of type bar"):
pt_scatter_plt.assert_plot_type("bar")
with pytest.raises(AssertionError, match="Plot is not of type line"):
pt_scatter_plt.assert_plot_type("line")
plt.close()
def test_bar_plot(pt_bar_plt):
"""Test that the scatter plot returns true for line but false for bar or
line."""
pt_bar_plt.assert_plot_type("bar")
with pytest.raises(AssertionError, match="Plot is not of type scatter"):
pt_bar_plt.assert_plot_type("scatter")
with pytest.raises(AssertionError, match="Plot is not of type line"):
pt_bar_plt.assert_plot_type("line")
plt.close()
def test_options(pt_line_plt):
"""Test that a ValueError is raised if an incorrect plot type is
provided."""
with pytest.raises(
ValueError,
match="Plot_type to test must be either: scatter, bar or line",
):
pt_line_plt.assert_plot_type("foo")
plt.close()
""" assert_string_contains Tests """
def test_assert_string_contains(pt_line_plt):
"""Tests that assert_string_contains passes with correct expected
strings."""
test_string = "this is a test string"
string_expected = ["this", "is", "a", "test"]
pt_line_plt.assert_string_contains(test_string, string_expected)
plt.close()
def test_assert_string_contains_fails(pt_line_plt):
"""Tests that assert_string_contains fails with incorrect expected
strings."""
test_string = "this is a test string"
string_expected = ["this", "is", "not", "a", "test"]
with pytest.raises(
AssertionError, match="String does not contain expected string: not"
):
pt_line_plt.assert_string_contains(test_string, string_expected)
plt.close()
def test_assert_string_contains_or(pt_line_plt):
"""Tests that assert_string_contains correctly passes when using OR
logic."""
test_string = "this is a test string"
string_expected = ["this", ["is", "not"], "a", "test"]
pt_line_plt.assert_string_contains(test_string, string_expected)
plt.close()
def test_assert_string_contains_or_fails(pt_line_plt):
"""Tests that assert_string_contains correctly fails when using OR
logic."""
test_string = "this is a test string"
string_expected = ["this", "is", ["not", "jambalaya"], "a", "test"]
with pytest.raises(
AssertionError, match="String does not contain at least one of: "
):
pt_line_plt.assert_string_contains(test_string, string_expected)
plt.close()
def test_assert_string_contains_handles_short_list_passes(pt_line_plt):
"""Tests that assert_string_contains correctly passes in the case that
strings_expected conains a list of length 1."""
test_string = "this is a test string"
string_expected = [["this"], ["is"]]
pt_line_plt.assert_string_contains(test_string, string_expected)
plt.close()
def test_assert_string_contains_handles_short_list_fails(pt_line_plt):
"""Tests that assert_string_contains correctly fails in the case that
strings_expected conains a list of length 1."""
test_string = "this is a test string"
string_expected = [["this"], ["is"], ["not"]]
with pytest.raises(
AssertionError, match="String does not contain expected string: not"
):
pt_line_plt.assert_string_contains(test_string, string_expected)
plt.close()
def test_assert_string_contains_passes_with_none(pt_line_plt):
"""Tests that assert_string_contains passes when strings_expected is
None"""
test_string = "this is a test string"
string_expected = None
pt_line_plt.assert_string_contains(test_string, string_expected)
plt.close()
def test_assert_string_contains_passes_with_empty(pt_line_plt):
"""Tests that assert_string_contains passes when strings_expected is
empty"""
test_string = "this is a test string"
string_expected = []
pt_line_plt.assert_string_contains(test_string, string_expected)
plt.close()
| 34.477941
| 76
| 0.71785
| 676
| 4,689
| 4.683432
| 0.110947
| 0.094757
| 0.157928
| 0.121289
| 0.883449
| 0.859444
| 0.847757
| 0.825332
| 0.825332
| 0.74921
| 0
| 0.000522
| 0.183195
| 4,689
| 135
| 77
| 34.733333
| 0.82611
| 0.209213
| 0
| 0.556962
| 0
| 0
| 0.174536
| 0
| 0
| 0
| 0
| 0
| 0.443038
| 1
| 0.151899
| false
| 0.037975
| 0.025316
| 0
| 0.177215
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
23de52878cb9dc5002da8a2e6ff233024eab8cb6
| 16,679
|
py
|
Python
|
platform/core/tests/test_auditor/test_auditor_notebook.py
|
hackerwins/polyaxon
|
ff56a098283ca872abfbaae6ba8abba479ffa394
|
[
"Apache-2.0"
] | null | null | null |
platform/core/tests/test_auditor/test_auditor_notebook.py
|
hackerwins/polyaxon
|
ff56a098283ca872abfbaae6ba8abba479ffa394
|
[
"Apache-2.0"
] | null | null | null |
platform/core/tests/test_auditor/test_auditor_notebook.py
|
hackerwins/polyaxon
|
ff56a098283ca872abfbaae6ba8abba479ffa394
|
[
"Apache-2.0"
] | null | null | null |
# pylint:disable=ungrouped-imports
from unittest.mock import patch
import pytest
import auditor
from events.registry import notebook as notebook_events
from factories.factory_plugins import NotebookJobFactory
from factories.factory_projects import ProjectFactory
from tests.test_auditor.utils import AuditorBaseTest
@pytest.mark.auditor_mark
class AuditorNotebookTest(AuditorBaseTest):
"""Testing subscribed events"""
EVENTS = notebook_events.EVENTS
def setUp(self):
super().setUp()
self.notebook = NotebookJobFactory(project=ProjectFactory())
self.tested_events = {
notebook_events.NOTEBOOK_STARTED,
notebook_events.NOTEBOOK_STARTED_TRIGGERED,
notebook_events.NOTEBOOK_STOPPED,
notebook_events.NOTEBOOK_STOPPED_TRIGGERED,
notebook_events.NOTEBOOK_CLEANED_TRIGGERED,
notebook_events.NOTEBOOK_VIEWED,
notebook_events.NOTEBOOK_NEW_STATUS,
notebook_events.NOTEBOOK_FAILED,
notebook_events.NOTEBOOK_SUCCEEDED,
notebook_events.NOTEBOOK_STATUSES_VIEWED,
notebook_events.NOTEBOOK_UPDATED,
notebook_events.NOTEBOOK_DELETED,
notebook_events.NOTEBOOK_DELETED_TRIGGERED,
notebook_events.NOTEBOOK_ARCHIVED,
notebook_events.NOTEBOOK_RESTORED,
notebook_events.NOTEBOOK_UNBOOKMARKED,
notebook_events.NOTEBOOK_BOOKMARKED,
}
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_started(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_STARTED,
instance=self.notebook,
target='project')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 0
assert notifier_record.call_count == 1
assert executor_record.call_count == 1
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_started_triggered(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_STARTED_TRIGGERED,
instance=self.notebook,
target='project',
actor_id=1,
actor_name='foo')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
assert notifier_record.call_count == 0
assert executor_record.call_count == 0
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_stopped(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_STOPPED,
instance=self.notebook,
target='project')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 0
assert notifier_record.call_count == 0
assert executor_record.call_count == 1
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_stopped_triggered(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_STOPPED_TRIGGERED,
instance=self.notebook,
target='project',
actor_id=1,
actor_name='foo')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
assert notifier_record.call_count == 0
assert executor_record.call_count == 0
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_cleaned_triggered(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_CLEANED_TRIGGERED,
instance=self.notebook,
target='project',
actor_id=1,
actor_name='foo')
assert tracker_record.call_count == 0
assert activitylogs_record.call_count == 0
assert notifier_record.call_count == 0
assert executor_record.call_count == 1
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_viewed(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_VIEWED,
instance=self.notebook,
target='project',
actor_id=1,
actor_name='foo')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
assert notifier_record.call_count == 0
assert executor_record.call_count == 0
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_experiment_new_status(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_NEW_STATUS,
instance=self.notebook,
target='project')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 0
assert notifier_record.call_count == 0
assert executor_record.call_count == 1
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_experiment_failed(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_FAILED,
instance=self.notebook,
target='project')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 0
assert notifier_record.call_count == 1
assert executor_record.call_count == 1
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_experiment_succeeded(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_SUCCEEDED,
instance=self.notebook,
target='project')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 0
assert notifier_record.call_count == 1
assert executor_record.call_count == 1
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_statuses_viewed(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_STATUSES_VIEWED,
instance=self.notebook,
target='project',
actor_name='foo',
actor_id=1)
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
assert notifier_record.call_count == 0
assert executor_record.call_count == 0
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_updated(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_UPDATED,
instance=self.notebook,
actor_name='foo',
actor_id=1)
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
assert notifier_record.call_count == 0
assert executor_record.call_count == 0
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_deleted(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_DELETED,
instance=self.notebook)
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 0
assert notifier_record.call_count == 0
assert executor_record.call_count == 0
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_triggered_deleted(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_DELETED_TRIGGERED,
instance=self.notebook,
actor_name='foo',
actor_id=1)
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
assert notifier_record.call_count == 0
assert executor_record.call_count == 0
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_job_archived(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_ARCHIVED,
instance=self.notebook,
actor_name='foo',
actor_id=1)
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
assert notifier_record.call_count == 0
assert executor_record.call_count == 0
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_job_restored(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_RESTORED,
instance=self.notebook,
actor_name='foo',
actor_id=1)
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
assert notifier_record.call_count == 0
assert executor_record.call_count == 0
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_unbookmarked(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_UNBOOKMARKED,
instance=self.notebook,
actor_id=1,
actor_name='foo',
target='project')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
assert notifier_record.call_count == 0
assert executor_record.call_count == 0
@patch('executor.executor_service.ExecutorService.record_event')
@patch('notifier.service.NotifierService.record_event')
@patch('tracker.service.TrackerService.record_event')
@patch('activitylogs.service.ActivityLogService.record_event')
def test_notebook_bookmarked(self,
activitylogs_record,
tracker_record,
notifier_record,
executor_record):
auditor.record(event_type=notebook_events.NOTEBOOK_BOOKMARKED,
instance=self.notebook,
actor_id=1,
actor_name='foo',
target='project')
assert tracker_record.call_count == 1
assert activitylogs_record.call_count == 1
assert notifier_record.call_count == 0
assert executor_record.call_count == 0
del AuditorBaseTest
| 45.32337
| 77
| 0.604653
| 1,488
| 16,679
| 6.47043
| 0.052419
| 0.097113
| 0.105941
| 0.058164
| 0.896967
| 0.87069
| 0.87069
| 0.866016
| 0.866016
| 0.866016
| 0
| 0.007004
| 0.32376
| 16,679
| 367
| 78
| 45.446866
| 0.846618
| 0.003537
| 0
| 0.785714
| 0
| 0
| 0.20555
| 0.198507
| 0
| 0
| 0
| 0
| 0.21118
| 1
| 0.055901
| false
| 0
| 0.021739
| 0
| 0.083851
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f1a9175ad1549a1fc92beaf4a95975ff2d9f908a
| 3,761
|
py
|
Python
|
personal_portfolio/vendor/migrations/0027_auto_20210302_1031.py
|
numbstudent/ghvms
|
6d5f93c76498e0fa167b0ce7dfed53764242626f
|
[
"MIT"
] | null | null | null |
personal_portfolio/vendor/migrations/0027_auto_20210302_1031.py
|
numbstudent/ghvms
|
6d5f93c76498e0fa167b0ce7dfed53764242626f
|
[
"MIT"
] | null | null | null |
personal_portfolio/vendor/migrations/0027_auto_20210302_1031.py
|
numbstudent/ghvms
|
6d5f93c76498e0fa167b0ce7dfed53764242626f
|
[
"MIT"
] | null | null | null |
# Generated by Django 3.1.6 on 2021-03-02 03:31
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('vendor', '0026_pekerjaanberjalanperusahaan_pengalamanmitrakerjaperusahaan'),
]
operations = [
migrations.RenameField(
model_name='pekerjaanberjalanperusahaan',
old_name='bidang_usaha',
new_name='b_bidang_usaha',
),
migrations.RenameField(
model_name='pekerjaanberjalanperusahaan',
old_name='dokumen',
new_name='b_dokumen',
),
migrations.RenameField(
model_name='pekerjaanberjalanperusahaan',
old_name='lokasi',
new_name='b_lokasi',
),
migrations.RenameField(
model_name='pekerjaanberjalanperusahaan',
old_name='mata_uang',
new_name='b_mata_uang',
),
migrations.RenameField(
model_name='pekerjaanberjalanperusahaan',
old_name='mulai_kerjasama',
new_name='b_mulai_kerjasama',
),
migrations.RenameField(
model_name='pekerjaanberjalanperusahaan',
old_name='nama',
new_name='b_nama',
),
migrations.RenameField(
model_name='pekerjaanberjalanperusahaan',
old_name='nilai_kontrak',
new_name='b_nilai_kontrak',
),
migrations.RenameField(
model_name='pengalamanmitrakerjaperusahaan',
old_name='bidang_usaha',
new_name='m_bidang_usaha',
),
migrations.RenameField(
model_name='pengalamanmitrakerjaperusahaan',
old_name='dokumen',
new_name='m_dokumen',
),
migrations.RenameField(
model_name='pengalamanmitrakerjaperusahaan',
old_name='lokasi',
new_name='m_lokasi',
),
migrations.RenameField(
model_name='pengalamanmitrakerjaperusahaan',
old_name='mata_uang',
new_name='m_mata_uang',
),
migrations.RenameField(
model_name='pengalamanmitrakerjaperusahaan',
old_name='mulai_kerjasama',
new_name='m_mulai_kerjasama',
),
migrations.RenameField(
model_name='pengalamanmitrakerjaperusahaan',
old_name='nama',
new_name='m_nama',
),
migrations.RenameField(
model_name='pengalamanmitrakerjaperusahaan',
old_name='nilai_kontrak',
new_name='m_nilai_kontrak',
),
migrations.RenameField(
model_name='pengalamanperusahaan',
old_name='bidang_usaha',
new_name='p_bidang_usaha',
),
migrations.RenameField(
model_name='pengalamanperusahaan',
old_name='dokumen',
new_name='p_dokumen',
),
migrations.RenameField(
model_name='pengalamanperusahaan',
old_name='lokasi',
new_name='p_lokasi',
),
migrations.RenameField(
model_name='pengalamanperusahaan',
old_name='mata_uang',
new_name='p_mata_uang',
),
migrations.RenameField(
model_name='pengalamanperusahaan',
old_name='mulai_kerjasama',
new_name='p_mulai_kerjasama',
),
migrations.RenameField(
model_name='pengalamanperusahaan',
old_name='nama',
new_name='p_nama',
),
migrations.RenameField(
model_name='pengalamanperusahaan',
old_name='nilai_kontrak',
new_name='p_nilai_kontrak',
),
]
| 31.605042
| 86
| 0.571656
| 303
| 3,761
| 6.732673
| 0.141914
| 0.216176
| 0.267647
| 0.308824
| 0.893627
| 0.812745
| 0.645098
| 0
| 0
| 0
| 0
| 0.007567
| 0.332358
| 3,761
| 118
| 87
| 31.872881
| 0.804859
| 0.011965
| 0
| 0.75
| 1
| 0
| 0.281637
| 0.124394
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.008929
| 0
| 0.035714
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f1bffc93c5bfe3d5eb8359d7140dbed4fd729a6c
| 36,051
|
py
|
Python
|
simple_salesforce/tests/test_api.py
|
cmitzel/simple-salesforce
|
c210452ef64425e95129ed7cca36d146e722fe00
|
[
"Apache-2.0"
] | 1
|
2020-11-19T22:12:23.000Z
|
2020-11-19T22:12:23.000Z
|
simple_salesforce/tests/test_api.py
|
cmitzel/simple-salesforce
|
c210452ef64425e95129ed7cca36d146e722fe00
|
[
"Apache-2.0"
] | null | null | null |
simple_salesforce/tests/test_api.py
|
cmitzel/simple-salesforce
|
c210452ef64425e95129ed7cca36d146e722fe00
|
[
"Apache-2.0"
] | null | null | null |
"""Tests for api.py"""
import http.client as http
import re
import unittest
from collections import OrderedDict
from datetime import datetime
from unittest.mock import Mock, patch
import requests
import responses
from simple_salesforce import tests
from simple_salesforce.api import PerAppUsage, Salesforce, SFType, Usage
def _create_sf_type(object_name="Case", session_id="5", sf_instance="my.salesforce.com"):
"""Creates SFType instances"""
return SFType(object_name=object_name, session_id=session_id, sf_instance=sf_instance, session=requests.Session())
class TestSFType(unittest.TestCase):
"""Tests for the SFType instance"""
def setUp(self):
request_patcher = patch("simple_salesforce.api.requests")
self.mockrequest = request_patcher.start()
self.addCleanup(request_patcher.stop)
@responses.activate
def test_metadata_with_additional_request_headers(self):
"""Ensure custom headers are used for metadata requests"""
responses.add(responses.GET, re.compile(r"^https://.*$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.metadata(headers={"Sforce-Auto-Assign": "FALSE"})
request_headers = responses.calls[0].request.headers
additional_request_header = request_headers["Sforce-Auto-Assign"]
self.assertEqual(additional_request_header, "FALSE")
self.assertEqual(result, {})
@responses.activate
def test_metadata_without_additional_request_headers(self):
"""Ensure metadata requests without additional headers"""
responses.add(responses.GET, re.compile(r"^https://.*$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
self.assertEqual(sf_type.metadata(), {})
@responses.activate
def test_describe_with_additional_request_headers(self):
"""Ensure custom headers are used for describe requests"""
responses.add(responses.GET, re.compile(r"^https://.*/Case/describe$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.describe(headers={"Sforce-Auto-Assign": "FALSE"})
request_headers = responses.calls[0].request.headers
additional_request_header = request_headers["Sforce-Auto-Assign"]
self.assertEqual(additional_request_header, "FALSE")
self.assertEqual(result, {})
@responses.activate
def test_describe_without_additional_request_headers(self):
"""Ensure describe requests without additional headers"""
responses.add(responses.GET, re.compile(r"^https://.*/Case/describe$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
self.assertEqual(sf_type.describe(), {})
@responses.activate
def test_describe_layout_with_additional_request_headers(self):
"""Ensure custom headers are used for describe_layout requests"""
responses.add(responses.GET, re.compile(r"^https://.*/Case/describe/layouts/444$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.describe_layout(record_id="444", headers={"Sforce-Auto-Assign": "FALSE"})
request_headers = responses.calls[0].request.headers
additional_request_header = request_headers["Sforce-Auto-Assign"]
self.assertEqual(additional_request_header, "FALSE")
self.assertEqual(result, {})
@responses.activate
def test_describe_layout_without_additional_request_headers(self):
"""Ensure describe_layout requests without additional headers"""
responses.add(responses.GET, re.compile(r"^https://.*/Case/describe/layouts/444$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
self.assertEqual(sf_type.describe_layout(record_id="444"), {})
@responses.activate
def test_get_with_additional_request_headers(self):
"""Ensure custom headers are used for get requests"""
responses.add(responses.GET, re.compile(r"^https://.*/Case/444$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.get(record_id="444", headers={"Sforce-Auto-Assign": "FALSE"})
request_headers = responses.calls[0].request.headers
additional_request_header = request_headers["Sforce-Auto-Assign"]
self.assertEqual(additional_request_header, "FALSE")
self.assertEqual(result, {})
@responses.activate
def test_get_without_additional_request_headers(self):
"""Ensure get requests without additional headers"""
responses.add(responses.GET, re.compile(r"^https://.*/Case/444$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
self.assertEqual(sf_type.get(record_id="444"), {})
@responses.activate
def test_get_by_custom_id_with_additional_request_headers(self):
"""Ensure custom headers are used for get_by_custom_id requests"""
responses.add(responses.GET, re.compile(r"^https://.*/Case/some-field/444$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.get_by_custom_id(
custom_id_field="some-field", custom_id="444", headers={"Sforce-Auto-Assign": "FALSE"}
)
request_headers = responses.calls[0].request.headers
additional_request_header = request_headers["Sforce-Auto-Assign"]
self.assertEqual(additional_request_header, "FALSE")
self.assertEqual(result, {})
@responses.activate
def test_get_by_custom_id_without_additional_request_headers(self):
"""Ensure get_by_custom_id requests without additional headers"""
responses.add(responses.GET, re.compile(r"^https://.*/Case/some-field/444$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.get_by_custom_id(custom_id_field="some-field", custom_id="444")
self.assertEqual(result, {})
@responses.activate
def test_create_with_additional_request_headers(self):
"""Ensure custom headers are used for create requests"""
responses.add(responses.POST, re.compile(r"^https://.*/Case/$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.create(data={"some": "data"}, headers={"Sforce-Auto-Assign": "FALSE"})
request_headers = responses.calls[0].request.headers
additional_request_header = request_headers["Sforce-Auto-Assign"]
self.assertEqual(additional_request_header, "FALSE")
self.assertEqual(result, {})
@responses.activate
def test_create_without_additional_request_headers(self):
"""Ensure create requests without additional headers"""
responses.add(responses.POST, re.compile(r"^https://.*/Case/$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.create(data={"some": "data"})
self.assertEqual(result, {})
@responses.activate
def test_update_with_additional_request_headers(self):
"""Ensure custom headers are used for updates"""
responses.add(responses.PATCH, re.compile(r"^https://.*/Case/some-case-id$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.update(
record_id="some-case-id", data={"some": "data"}, headers={"Sforce-Auto-Assign": "FALSE"}
)
request_headers = responses.calls[0].request.headers
additional_request_header = request_headers["Sforce-Auto-Assign"]
self.assertEqual(additional_request_header, "FALSE")
self.assertEqual(result, http.OK)
@responses.activate
def test_update_without_additional_request_headers(self):
"""Ensure updates work without custom headers"""
responses.add(responses.PATCH, re.compile(r"^https://.*/Case/some-case-id$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.update(record_id="some-case-id", data={"some": "data"})
self.assertEqual(result, http.OK)
@responses.activate
def test_upsert_with_additional_request_headers(self):
"""Ensure custom headers are used for upserts"""
responses.add(responses.PATCH, re.compile(r"^https://.*/Case/some-case-id$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.upsert(
record_id="some-case-id", data={"some": "data"}, headers={"Sforce-Auto-Assign": "FALSE"}
)
request_headers = responses.calls[0].request.headers
additional_request_header = request_headers["Sforce-Auto-Assign"]
self.assertEqual(additional_request_header, "FALSE")
self.assertEqual(result, http.OK)
@responses.activate
def test_upsert_without_additional_request_headers(self):
"""Ensure upserts work without custom headers"""
responses.add(responses.PATCH, re.compile(r"^https://.*/Case/some-case-id$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.upsert(record_id="some-case-id", data={"some": "data"})
self.assertEqual(result, http.OK)
@responses.activate
def test_delete_with_additional_request_headers(self):
"""Ensure custom headers are used for deletes"""
responses.add(responses.DELETE, re.compile(r"^https://.*/Case/some-case-id$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.delete(record_id="some-case-id", headers={"Sforce-Auto-Assign": "FALSE"})
request_headers = responses.calls[0].request.headers
additional_request_header = request_headers["Sforce-Auto-Assign"]
self.assertEqual(additional_request_header, "FALSE")
self.assertEqual(result, http.OK)
@responses.activate
def test_delete_without_additional_request_headers(self):
"""Ensure deletes work without custom headers"""
responses.add(responses.DELETE, re.compile(r"^https://.*/Case/some-case-id$"), body="{}", status=http.OK)
sf_type = _create_sf_type()
result = sf_type.delete(record_id="some-case-id")
self.assertEqual(result, http.OK)
@responses.activate
def test_deleted_with_additional_request_headers(self):
"""Ensure custom headers are used for deleted"""
responses.add(
responses.GET, re.compile(r"^https://.*/Case/deleted/\?start=.+&end=.+$"), body="{}", status=http.OK
)
sf_type = _create_sf_type()
result = sf_type.deleted(start=datetime.now(), end=datetime.now(), headers={"Sforce-Auto-Assign": "FALSE"})
request_headers = responses.calls[0].request.headers
additional_request_header = request_headers["Sforce-Auto-Assign"]
self.assertEqual(additional_request_header, "FALSE")
self.assertEqual(result, {})
@responses.activate
def test_deleted_without_additional_request_headers(self):
"""Ensure deleted works without custom headers"""
responses.add(
responses.GET, re.compile(r"^https://.*/Case/deleted/\?start=.+&end=.+$"), body="{}", status=http.OK
)
sf_type = _create_sf_type()
result = sf_type.deleted(start=datetime.now(), end=datetime.now())
self.assertEqual(result, {})
@responses.activate
def test_updated_with_additional_request_headers(self):
"""Ensure custom headers are used for updated"""
responses.add(
responses.GET, re.compile(r"^https://.*/Case/updated/\?start=.+&end=.+$"), body="{}", status=http.OK
)
sf_type = _create_sf_type()
result = sf_type.updated(start=datetime.now(), end=datetime.now(), headers={"Sforce-Auto-Assign": "FALSE"})
request_headers = responses.calls[0].request.headers
additional_request_header = request_headers["Sforce-Auto-Assign"]
self.assertEqual(additional_request_header, "FALSE")
self.assertEqual(result, {})
@responses.activate
def test_updated_without_additional_request_headers(self):
"""Ensure updated works without custom headers"""
responses.add(
responses.GET, re.compile(r"^https://.*/Case/updated/\?start=.+&end=.+$"), body="{}", status=http.OK
)
sf_type = _create_sf_type()
result = sf_type.updated(start=datetime.now(), end=datetime.now())
self.assertEqual(result, {})
class TestSalesforce(unittest.TestCase):
"""Tests for the Salesforce instance"""
def setUp(self):
"""Setup the SalesforceLogin tests"""
request_patcher = patch("simple_salesforce.api.requests")
self.mockrequest = request_patcher.start()
self.addCleanup(request_patcher.stop)
@responses.activate
def test_custom_session_success(self):
"""Ensure custom session is used"""
responses.add(responses.POST, re.compile(r"^https://.*$"), body=tests.LOGIN_RESPONSE_SUCCESS, status=http.OK)
session_state = {
"called": False,
}
# pylint: disable=unused-argument,missing-docstring
def on_response(*args, **kwargs):
session_state["called"] = True
session = requests.Session()
session.hooks = {
"response": on_response,
}
client = Salesforce(session=session, username="foo@bar.com", password="password", security_token="token")
self.assertEqual(tests.SESSION_ID, client.session_id)
self.assertEqual(session, client.session)
@responses.activate
def test_custom_version_success(self):
"""Test custom version"""
responses.add(responses.POST, re.compile(r"^https://.*$"), body=tests.LOGIN_RESPONSE_SUCCESS, status=http.OK)
# Use an invalid version that is guaranteed to never be used
expected_version = "4.2"
client = Salesforce(
session=requests.Session(),
username="foo@bar.com",
password="password",
security_token="token",
version=expected_version,
)
self.assertEqual(client.base_url.split("/")[-2], "v%s" % expected_version)
def test_shared_session_to_sftype(self):
"""Test Salesforce and SFType instances share default `Session`"""
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL)
self.assertIs(client.session, client.Contact.session)
def test_shared_custom_session_to_sftype(self):
"""Test Salesforce and SFType instances share custom `Session`"""
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session)
self.assertIs(session, client.session)
self.assertIs(session, client.Contact.session)
def test_proxies_inherited_default(self):
"""Test Salesforce and SFType use same proxies"""
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session)
self.assertIs(session.proxies, client.session.proxies)
self.assertIs(session.proxies, client.Contact.session.proxies)
def test_proxies_inherited_set_on_session(self):
"""Test Salesforce and SFType use same custom proxies"""
session = requests.Session()
session.proxies = tests.PROXIES
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session)
self.assertIs(tests.PROXIES, client.session.proxies)
self.assertIs(tests.PROXIES, client.Contact.session.proxies)
def test_proxies_ignored(self):
"""Test overridden proxies are ignored"""
session = requests.Session()
session.proxies = tests.PROXIES
with patch("simple_salesforce.api.logger.warning") as mock_log:
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session, proxies={})
self.assertIn("ignoring proxies", mock_log.call_args[0][0])
self.assertIs(tests.PROXIES, client.session.proxies)
@responses.activate
def test_api_usage_simple(self):
"""Make sure a header response is recorded"""
responses.add(
responses.GET,
re.compile(r"^https://.*$"),
body='{"example": 1}',
adding_headers={"Sforce-Limit-Info": "api-usage=18/5000"},
status=http.OK,
)
client = Salesforce.__new__(Salesforce)
client.session = requests.Session()
client.headers = {}
client.base_url = "https://localhost"
client.query("q")
self.assertDictEqual(client.api_usage, {"api-usage": Usage(18, 5000)})
@responses.activate
def test_api_usage_per_app(self):
"""Make sure a header response is recorded"""
pau = "api-usage=25/5000; per-app-api-usage=17/250(appName=sample-app)"
responses.add(
responses.GET,
re.compile(r"^https://.*$"),
body='{"example": 1}',
adding_headers={"Sforce-Limit-Info": pau},
status=http.OK,
)
client = Salesforce.__new__(Salesforce)
client.session = requests.Session()
client.headers = {}
client.base_url = "https://localhost"
client.query("q")
self.assertDictEqual(
client.api_usage, {"api-usage": Usage(25, 5000), "per-app-api-usage": PerAppUsage(17, 250, "sample-app")}
)
@responses.activate
def test_query(self):
"""Test querying generates the expected request"""
responses.add(
responses.GET, re.compile(r"^https://.*/query/\?q=SELECT\+ID\+FROM\+Account$"), body="{}", status=http.OK
)
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session)
result = client.query("SELECT ID FROM Account")
self.assertEqual(result, {})
@responses.activate
def test_query_include_deleted(self):
"""Test querying for all records generates the expected request"""
responses.add(
responses.GET, re.compile(r"^https://.*/queryAll/\?q=SELECT\+ID\+FROM\+Account$"), body="{}", status=http.OK
)
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session)
result = client.query("SELECT ID FROM Account", include_deleted=True)
self.assertEqual(result, {})
@responses.activate
def test_query_more_id_not_url(self):
"""
Test fetching additional results by ID generates the expected request
"""
responses.add(responses.GET, re.compile(r"^https://.*/query/next-records-id$"), body="{}", status=http.OK)
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session)
result = client.query_more("next-records-id", identifier_is_url=False)
self.assertEqual(result, {})
@responses.activate
def test_query_more_id_not_url_include_deleted(self):
"""
Test fetching additional results by ID generates the expected request
"""
responses.add(responses.GET, re.compile(r"^https://.*/queryAll/next-records-id$"), body="{}", status=http.OK)
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session)
result = client.query_more("next-records-id", identifier_is_url=False, include_deleted=True)
self.assertEqual(result, {})
@responses.activate
def test_query_all_iter(self):
"""
Test that we get data only once we ask for them (lazily).
"""
responses.add(
responses.GET,
re.compile(r"^https://.*/query/\?q=SELECT\+ID\+FROM\+Account$"),
body='{"records": [{"ID": "1"}], "done": false, "nextRecordsUrl": '
'"https://example.com/query/next-records-id", "totalSize": 2}',
status=http.OK,
)
responses.add(
responses.GET,
re.compile(r"^https://.*/query/next-records-id$"),
body='{"records": [{"ID": "2"}], "done": true, "totalSize": 2}',
status=http.OK,
)
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session)
result = client.query_all_iter("SELECT ID FROM Account")
self.assertEqual(next(result), OrderedDict([(u"ID", u"1")]))
self.assertEqual(next(result), OrderedDict([(u"ID", u"2")]))
with self.assertRaises(StopIteration):
next(result)
@responses.activate
def test_query_all(self):
"""
Test that we query and fetch additional result sets automatically.
"""
responses.add(
responses.GET,
re.compile(r"^https://.*/query/\?q=SELECT\+ID\+FROM\+Account$"),
body='{"records": [{"ID": "1"}], "done": false, "nextRecordsUrl": '
'"https://example.com/query/next-records-id", "totalSize": 2}',
status=http.OK,
)
responses.add(
responses.GET,
re.compile(r"^https://.*/query/next-records-id$"),
body='{"records": [{"ID": "2"}], "done": true, "totalSize": 2}',
status=http.OK,
)
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session)
result = client.query_all("SELECT ID FROM Account")
self.assertEqual(
result,
OrderedDict(
[
("records", [OrderedDict([("ID", "1")]), OrderedDict([("ID", "2")])]),
("done", True),
("totalSize", 2),
]
),
)
@responses.activate
def test_query_all_include_deleted(self):
"""
Test that we query all and fetch additional result sets automatically.
"""
responses.add(
responses.GET,
re.compile(r"^https://.*/queryAll/\?q=SELECT\+ID\+FROM\+Account$"),
body='{"records": [{"ID": "1"}], "done": false, "nextRecordsUrl": '
'"https://example.com/queryAll/next-records-id",'
'"totalSize": 2}',
status=http.OK,
)
responses.add(
responses.GET,
re.compile(r"^https://.*/queryAll/next-records-id$"),
body='{"records": [{"ID": "2"}], "done": true, "totalSize": 2}',
status=http.OK,
)
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session)
result = client.query_all("SELECT ID FROM Account", include_deleted=True)
self.assertEqual(
result,
OrderedDict(
[
("records", [OrderedDict([("ID", "1")]), OrderedDict([("ID", "2")])]),
("done", True),
("totalSize", 2),
]
),
)
@responses.activate
def test_api_limits(self):
"""Test method for getting Salesforce organization limits"""
responses.add(
responses.GET, re.compile(r"^https://.*/limits/$"), json=tests.ORGANIZATION_LIMITS_RESPONSE, status=http.OK
)
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance_url=tests.SERVER_URL, session=session)
result = client.limits()
self.assertEqual(result, tests.ORGANIZATION_LIMITS_RESPONSE)
@patch("simple_salesforce.sfdc_session.SfdcSession.post")
@patch("simple_salesforce.metadata.SfdcMetadataApi._read_deploy_zip")
def test_md_deploy_success(self, mock_read_zip, mock_post):
""" "
Test method for metadata deployment
"""
mock_response = Mock()
mock_response.status_code = 200
mock_response.text = '<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://soap.sforce.com/2006/04/metadata"><soapenv:Body><deployResponse><result><done>false</done><id>0Af3B00001CMyfASAT</id><state>Queued</state></result></deployResponse></soapenv:Body></soapenv:Envelope>'
mock_post.return_value = mock_response
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance=tests.SERVER_URL, session=session)
pid, state = client.deploy("path/to/fake/zip.zip", {})
self.assertEqual(pid, "0Af3B00001CMyfASAT")
self.assertEqual(state, "Queued")
@patch("simple_salesforce.sfdc_session.SfdcSession.post")
@patch("simple_salesforce.metadata.SfdcMetadataApi._read_deploy_zip")
def test_md_deploy_failed_status_code(self, mock_read_zip, mock_post):
""" "
Test method for metadata deployment
"""
mock_response = Mock()
mock_response.status_code = 2599
mock_response.text = "Unrecognized Error"
mock_post.return_value = mock_response
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance=tests.SERVER_URL, session=session)
with self.assertRaises(Exception):
client.deploy("path/to/fake/zip.zip", {})
@patch("simple_salesforce.sfdc_session.SfdcSession.post")
def test_check_status_pending(self, mock_post):
""" "
Test method for metadata deployment
"""
mock_response = Mock()
mock_response.status_code = 200
mock_response.text = '<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://soap.sforce.com/2006/04/metadata"><soapenv:Body><checkDeployStatusResponse><result><checkOnly>true</checkOnly><createdBy>0053D0000052Xaq</createdBy><createdByName>User User</createdByName><createdDate>2020-10-28T15:38:34.000Z</createdDate><details><runTestResult><numFailures>0</numFailures><numTestsRun>0</numTestsRun><totalTime>0.0</totalTime></runTestResult></details><done>false</done><id>0Af3D00001NViC1SAL</id><ignoreWarnings>false</ignoreWarnings><lastModifiedDate>2020-10-28T15:38:34.000Z</lastModifiedDate><numberComponentErrors>0</numberComponentErrors><numberComponentsDeployed>0</numberComponentsDeployed><numberComponentsTotal>0</numberComponentsTotal><numberTestErrors>0</numberTestErrors><numberTestsCompleted>0</numberTestsCompleted><numberTestsTotal>0</numberTestsTotal><rollbackOnError>true</rollbackOnError><runTestsEnabled>false</runTestsEnabled><status>Pending</status><success>false</success></result></checkDeployStatusResponse></soapenv:Body></soapenv:Envelope>'
mock_post.return_value = mock_response
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance=tests.SERVER_URL, session=session)
state, state_detail, deployment_detail, unit_test_detail = client.checkDeployStatus("abdcefg")
self.assertEqual(state, "Pending")
self.assertEqual(state_detail, None)
self.assertEqual(
deployment_detail, {"total_count": "0", "failed_count": "0", "deployed_count": "0", "errors": []}
)
self.assertEqual(
unit_test_detail, {"total_count": "0", "failed_count": "0", "completed_count": "0", "errors": []}
)
@patch("simple_salesforce.sfdc_session.SfdcSession.post")
def test_check_status_success(self, mock_post):
""" "
Test method for metadata deployment
"""
mock_response = Mock()
mock_response.status_code = 200
mock_response.text = '<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://soap.sforce.com/2006/04/metadata"><soapenv:Body><checkDeployStatusResponse><result><checkOnly>false</checkOnly><completedDate>2020-10-28T13:33:29.000Z</completedDate><createdBy>0053D0000052Xaq</createdBy><createdByName>User User</createdByName><createdDate>2020-10-28T13:33:25.000Z</createdDate><details><componentSuccesses><changed>true</changed><componentType>ApexSettings</componentType><created>false</created><createdDate>2020-10-28T13:33:29.000Z</createdDate><deleted>false</deleted><fileName>shape/settings/Apex.settings</fileName><fullName>Apex</fullName><success>true</success></componentSuccesses><componentSuccesses><changed>true</changed><componentType>ChatterSettings</componentType><created>false</created><createdDate>2020-10-28T13:33:29.000Z</createdDate><deleted>false</deleted><fileName>shape/settings/Chatter.settings</fileName><fullName>Chatter</fullName><success>true</success></componentSuccesses><componentSuccesses><changed>true</changed><componentType></componentType><created>false</created><createdDate>2020-10-28T13:33:29.000Z</createdDate><deleted>false</deleted><fileName>shape/package.xml</fileName><fullName>package.xml</fullName><success>true</success></componentSuccesses><componentSuccesses><changed>true</changed><componentType>LightningExperienceSettings</componentType><created>false</created><createdDate>2020-10-28T13:33:29.000Z</createdDate><deleted>false</deleted><fileName>shape/settings/LightningExperience.settings</fileName><fullName>LightningExperience</fullName><success>true</success></componentSuccesses><componentSuccesses><changed>true</changed><componentType>LanguageSettings</componentType><created>false</created><createdDate>2020-10-28T13:33:29.000Z</createdDate><deleted>false</deleted><fileName>shape/settings/Language.settings</fileName><fullName>Language</fullName><success>true</success></componentSuccesses><runTestResult><numFailures>0</numFailures><numTestsRun>0</numTestsRun><totalTime>0.0</totalTime></runTestResult></details><done>true</done><id>0Af3D00001NVCnwSAH</id><ignoreWarnings>false</ignoreWarnings><lastModifiedDate>2020-10-28T13:33:29.000Z</lastModifiedDate><numberComponentErrors>0</numberComponentErrors><numberComponentsDeployed>4</numberComponentsDeployed><numberComponentsTotal>4</numberComponentsTotal><numberTestErrors>0</numberTestErrors><numberTestsCompleted>0</numberTestsCompleted><numberTestsTotal>0</numberTestsTotal><rollbackOnError>true</rollbackOnError><runTestsEnabled>false</runTestsEnabled><startDate>2020-10-28T13:33:26.000Z</startDate><status>Succeeded</status><success>true</success></result></checkDeployStatusResponse></soapenv:Body></soapenv:Envelope>'
mock_post.return_value = mock_response
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance=tests.SERVER_URL, session=session)
state, state_detail, deployment_detail, unit_test_detail = client.checkDeployStatus("abdcefg")
self.assertEqual(state, "Succeeded")
self.assertEqual(state_detail, None)
self.assertEqual(
deployment_detail, {"total_count": "4", "failed_count": "0", "deployed_count": "4", "errors": []}
)
self.assertEqual(
unit_test_detail, {"total_count": "0", "failed_count": "0", "completed_count": "0", "errors": []}
)
@patch("simple_salesforce.sfdc_session.SfdcSession.post")
def test_check_status_payload_error(self, mock_post):
""" "
Test method for metadata deployment
"""
mock_response = Mock()
mock_response.status_code = 200
mock_response.text = '<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://soap.sforce.com/2006/04/metadata"><soapenv:Body><checkDeployStatusResponse><result><checkOnly>true</checkOnly><completedDate>2020-10-28T13:37:48.000Z</completedDate><createdBy>0053D0000052Xaq</createdBy><createdByName>User User</createdByName><createdDate>2020-10-28T13:37:46.000Z</createdDate><details><componentFailures><changed>false</changed><componentType></componentType><created>false</created><createdDate>2020-10-28T13:37:47.000Z</createdDate><deleted>false</deleted><fileName>package.xml</fileName><fullName>package.xml</fullName><problem>No package.xml found</problem><problemType>Error</problemType><success>false</success></componentFailures><runTestResult><numFailures>0</numFailures><numTestsRun>0</numTestsRun><totalTime>0.0</totalTime></runTestResult></details><done>true</done><id>0Af3D00001NVD0TSAX</id><ignoreWarnings>false</ignoreWarnings><lastModifiedDate>2020-10-28T13:37:48.000Z</lastModifiedDate><numberComponentErrors>0</numberComponentErrors><numberComponentsDeployed>0</numberComponentsDeployed><numberComponentsTotal>0</numberComponentsTotal><numberTestErrors>0</numberTestErrors><numberTestsCompleted>0</numberTestsCompleted><numberTestsTotal>0</numberTestsTotal><rollbackOnError>true</rollbackOnError><runTestsEnabled>false</runTestsEnabled><startDate>2020-10-28T13:37:47.000Z</startDate><status>Failed</status><success>false</success></result></checkDeployStatusResponse></soapenv:Body></soapenv:Envelope>'
mock_post.return_value = mock_response
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance=tests.SERVER_URL, session=session)
state, state_detail, deployment_detail, unit_test_detail = client.checkDeployStatus("abdcefg")
self.assertEqual(state, "Failed")
self.assertEqual(state_detail, None)
self.assertEqual(
deployment_detail,
{
"total_count": "0",
"failed_count": "0",
"deployed_count": "0",
"errors": [{"type": None, "file": "package.xml", "status": "Error", "message": "No package.xml found"}],
},
)
self.assertEqual(
unit_test_detail, {"total_count": "0", "failed_count": "0", "completed_count": "0", "errors": []}
)
@patch("simple_salesforce.sfdc_session.SfdcSession.post")
def test_check_status_in_progress(self, mock_post):
""" "
Test method for metadata deployment
"""
mock_response = Mock()
mock_response.status_code = 200
mock_response.text = '<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://soap.sforce.com/2006/04/metadata"><soapenv:Body><checkDeployStatusResponse><result><checkOnly>false</checkOnly><createdBy>0053D0000052Xaq</createdBy><createdByName>User User</createdByName><createdDate>2020-10-28T17:24:30.000Z</createdDate><details><runTestResult><numFailures>0</numFailures><numTestsRun>0</numTestsRun><totalTime>0.0</totalTime></runTestResult></details><done>false</done><id>0Af3D00001NW8mnSAD</id><ignoreWarnings>false</ignoreWarnings><lastModifiedDate>2020-10-28T17:37:08.000Z</lastModifiedDate><numberComponentErrors>0</numberComponentErrors><numberComponentsDeployed>2</numberComponentsDeployed><numberComponentsTotal>3</numberComponentsTotal><numberTestErrors>0</numberTestErrors><numberTestsCompleted>0</numberTestsCompleted><numberTestsTotal>0</numberTestsTotal><rollbackOnError>true</rollbackOnError><runTestsEnabled>false</runTestsEnabled><startDate>2020-10-28T17:24:30.000Z</startDate><status>InProgress</status><success>false</success></result></checkDeployStatusResponse></soapenv:Body></soapenv:Envelope>'
mock_post.return_value = mock_response
session = requests.Session()
client = Salesforce(session_id=tests.SESSION_ID, instance=tests.SERVER_URL, session=session)
state, state_detail, deployment_detail, unit_test_detail = client.checkDeployStatus("abdcefg")
self.assertEqual(state, "InProgress")
self.assertEqual(state_detail, None)
self.assertEqual(
deployment_detail, {"total_count": "3", "failed_count": "0", "deployed_count": "2", "errors": []}
)
self.assertEqual(
unit_test_detail, {"total_count": "0", "failed_count": "0", "completed_count": "0", "errors": []}
)
| 51.13617
| 2,812
| 0.678289
| 4,067
| 36,051
| 5.845832
| 0.084829
| 0.016909
| 0.032681
| 0.023344
| 0.874238
| 0.854721
| 0.81897
| 0.782166
| 0.754658
| 0.75041
| 0
| 0.021892
| 0.177693
| 36,051
| 704
| 2,813
| 51.208807
| 0.780098
| 0.06746
| 0
| 0.602
| 0
| 0.012
| 0.329585
| 0.181766
| 0
| 0
| 0
| 0
| 0.152
| 1
| 0.098
| false
| 0.004
| 0.02
| 0
| 0.124
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9e75a0c226b95475266faab0ff0122199498d7df
| 3,131
|
py
|
Python
|
Lib/site-packages/psycopg/_wrappers.py
|
RosaSineSpinis/twitter_bitcon_tag_analyser
|
3311022b6fd629ce85f0c4fa0516e310bed05d74
|
[
"bzip2-1.0.6"
] | 5
|
2021-12-14T03:33:39.000Z
|
2022-01-11T14:13:21.000Z
|
ch16-deployment/.venv/lib/python3.10/site-packages/psycopg/_wrappers.py
|
wsvincent/djangoforbeginners_32
|
aba7c99aa6050cfe8fb9d588af58c9f67411ae8a
|
[
"MIT"
] | null | null | null |
ch16-deployment/.venv/lib/python3.10/site-packages/psycopg/_wrappers.py
|
wsvincent/djangoforbeginners_32
|
aba7c99aa6050cfe8fb9d588af58c9f67411ae8a
|
[
"MIT"
] | null | null | null |
"""
Wrappers for numeric types.
"""
# Copyright (C) 2020-2021 The Psycopg Team
# Wrappers to force numbers to be cast as specific PostgreSQL types
# These types are implemented here but exposed by `psycopg.types.numeric`.
# They are defined here to avoid a circular import.
_MODULE = "psycopg.types.numeric"
class Int2(int):
"""
Force dumping a Python `!int` as a PostgreSQL :sql:`smallint/int2`.
"""
__module__ = _MODULE
__slots__ = ()
def __new__(cls, arg: int) -> "Int2":
return super().__new__(cls, arg)
def __str__(self) -> str:
return super().__repr__()
def __repr__(self) -> str:
return f"{self.__class__.__name__}({super().__repr__()})"
class Int4(int):
"""
Force dumping a Python `!int` as a PostgreSQL :sql:`integer/int4`.
"""
__module__ = _MODULE
__slots__ = ()
def __new__(cls, arg: int) -> "Int4":
return super().__new__(cls, arg)
def __str__(self) -> str:
return super().__repr__()
def __repr__(self) -> str:
return f"{self.__class__.__name__}({super().__repr__()})"
class Int8(int):
"""
Force dumping a Python `!int` as a PostgreSQL :sql:`bigint/int8`.
"""
__module__ = _MODULE
__slots__ = ()
def __new__(cls, arg: int) -> "Int8":
return super().__new__(cls, arg)
def __str__(self) -> str:
return super().__repr__()
def __repr__(self) -> str:
return f"{self.__class__.__name__}({super().__repr__()})"
class IntNumeric(int):
"""
Force dumping a Python `!int` as a PostgreSQL :sql:`numeric/decimal`.
"""
__module__ = _MODULE
__slots__ = ()
def __new__(cls, arg: int) -> "IntNumeric":
return super().__new__(cls, arg)
def __str__(self) -> str:
return super().__repr__()
def __repr__(self) -> str:
return f"{self.__class__.__name__}({super().__repr__()})"
class Float4(float):
"""
Force dumping a Python `!float` as a PostgreSQL :sql:`float4/real`.
"""
__module__ = _MODULE
__slots__ = ()
def __new__(cls, arg: float) -> "Float4":
return super().__new__(cls, arg)
def __str__(self) -> str:
return super().__repr__()
def __repr__(self) -> str:
return f"{self.__class__.__name__}({super().__repr__()})"
class Float8(float):
"""
Force dumping a Python `!float` as a PostgreSQL :sql:`float8/double precision`.
"""
__module__ = _MODULE
__slots__ = ()
def __new__(cls, arg: float) -> "Float8":
return super().__new__(cls, arg)
def __str__(self) -> str:
return super().__repr__()
def __repr__(self) -> str:
return f"{self.__class__.__name__}({super().__repr__()})"
class Oid(int):
"""
Force dumping a Python `!int` as a PostgreSQL :sql:`oid`.
"""
__module__ = _MODULE
__slots__ = ()
def __new__(cls, arg: int) -> "Oid":
return super().__new__(cls, arg)
def __str__(self) -> str:
return super().__repr__()
def __repr__(self) -> str:
return f"{self.__class__.__name__}({super().__repr__()})"
| 22.688406
| 83
| 0.597892
| 368
| 3,131
| 4.304348
| 0.17663
| 0.05303
| 0.079545
| 0.083965
| 0.751263
| 0.751263
| 0.751263
| 0.751263
| 0.607323
| 0.607323
| 0
| 0.009725
| 0.24465
| 3,131
| 137
| 84
| 22.854015
| 0.660042
| 0.234749
| 0
| 0.765625
| 0
| 0
| 0.169737
| 0.153509
| 0
| 0
| 0
| 0
| 0
| 1
| 0.328125
| false
| 0
| 0
| 0.328125
| 0.984375
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
9e8cbc089e0c1d05479fc8a52790f0be45db7c8d
| 10,481
|
py
|
Python
|
consequent/alignment.py
|
pjmartel/consequent
|
fa0a41e056a6b240d41819a8e5c310a9057fa7e9
|
[
"MIT"
] | null | null | null |
consequent/alignment.py
|
pjmartel/consequent
|
fa0a41e056a6b240d41819a8e5c310a9057fa7e9
|
[
"MIT"
] | null | null | null |
consequent/alignment.py
|
pjmartel/consequent
|
fa0a41e056a6b240d41819a8e5c310a9057fa7e9
|
[
"MIT"
] | 1
|
2019-10-24T18:25:59.000Z
|
2019-10-24T18:25:59.000Z
|
import numpy as np
import matplotlib.pyplot as plt
from sys import exit
def plotMat(mat, fs):
fig, axs = plt.subplots()
axs.axis("tight")
axs.axis("off")
the_table = axs.table(cellText=mat, cellLoc='center', loc='center')
for key, cell in the_table.get_celld().items():
row, col = key
cell.set_fontsize(fs)
fig.show()
def plotTraceMat(tmat, smat, fs):
fig, axs = plt.subplots()
axs.axis("tight")
axs.axis("off")
arrows = [8598, 8593, 8592]
plotMat = [['' for c in range(tmat.shape[1])]
for r in range(tmat.shape[0])]
for i in range(tmat.shape[0]):
for j in range(tmat.shape[1]):
# if(smat[i, j] == 0):
# plotMat[i][j] = ' '
# else:
if smat[i, j] != 0:
plotMat[i][j] = chr(arrows[tmat[i, j]])
# plotMat = np.fromfunction(lambda i, j: arrows[mat[i, j]], mat.shape)
t1 = axs.table(cellText=plotMat, cellLoc='center', loc='center')
t1.set_fontsize(fs)
for key, cell in t1.get_celld().items():
cell.set_linewidth(0)
# t2 = axs.table(cellText=smat, cellLoc='center', loc='center')
# t2.set_fontsize(fs)
# t2.set_alpha(0.5)
fig.show()
def needlemanWunsch(seqA, seqB, scoreMat, gapO=-10, gapE=-0.5, ScoreOnly=False):
"""
Computes the optimal global aligment of two amino acid
sequences using the Needleman-Wunsch algorithm.
seqA, seqB - aminoacid sequences
scoreMat - scoring matrix
gapO - gap opening penalty
gapE - gap extension penalty
ScoreOnly - if True, only the optimal score is computed
(aligment is returned as "None")
"""
# Check for valid score matrix argument
if not isinstance(scoreMat, np.ndarray):
print("Error in 'smitWaterman': scoring matrix has wrong data type.")
exit(0)
elif scoreMat.shape != (26, 26):
print("Error in 'smitWaterman': scoring matrix has wrong shape.")
exit(0)
# print(type(scoreMat)
# Convert seqs to numerical
seqA = np.array(list(map(ord, seqA)), dtype=np.int8)
seqB = np.array(list(map(ord, seqB)), dtype=np.int8)
seqA -= ord("A")
seqB -= ord("A")
matAli = np.zeros((len(seqA)+1, len(seqB)+1), dtype=np.int32)
matTrace = np.zeros((len(seqA)+1, len(seqB)+1), dtype=np.int8)
# init aligment and trace matrices
matAli[1:, 0] = np.fromfunction(
lambda i: gapO+gapE*i, (len(seqA),))
matTrace[1:, 0] = 1
#
# (ix,iy) = np.meshgrid(range(len(seqB)), range(len(seqA)))
# matAli[1:
matAli[0, 1:] = np.fromfunction(
lambda j: gapO+gapE*j, (len(seqB),))
matTrace[0, 1:] = 2
# Let'a initialize the rest of the aligment matrix with
# the comparison scores from the scoring matrix.
# Note the meshgrid trick to avoid loops ;-)
(ix, iy) = np.meshgrid(range(len(seqB)), range(len(seqA)))
matAli[1:, 1:] = scoreMat[seqB[ix], seqA[iy]]
# for i in range(len(A)+1):
# matAli[i, 0] = (gapOpen+gapExtend*(i-1))*(i > 0)
# matTrace[i, 0] = 1
# for j in range(len(B)+1):
# matAli[0, j] = (gapOpen+gapExtend*(j-1))*(j > 0)
# matTrace[0, j] = 2
# matTrace[0, 0] = 0
# Fill aligment matrix
for i in range(1, len(seqA)+1):
for j in range(1, len(seqB)+1):
# tempScores = (matAli[i-1, j-1] + matAli[i, j],
tempScores = (matAli[i-1, j-1] + scoreMat[seqA[i-1], seqB[j-1]],
matAli[i-1, j] +
(gapE if (matTrace[i-1, j] == 1) else gapO),
matAli[i, j-1] + (gapE if (matTrace[i, j-1] == 2) else gapO))
idx = np.argmax(tempScores)
matTrace[i, j] = idx
matAli[i, j] = tempScores[idx]
Score = matAli[-1, -1]
# if ScoreOnly is True, return before computing alignment
if ScoreOnly:
return(Score, None, matAli, matTrace)
# Backtrack aligment
alB = []
alA = []
i = len(seqA)
j = len(seqB)
cur = matTrace[i, j]
while(i > 0 or j > 0):
# print(i, j)
cur = matTrace[i, j]
if cur == 0:
alA.append(chr(seqA[i-1]+65))
alB.append(chr(seqB[j-1]+65))
i -= 1
j -= 1
elif cur == 1:
alA.append(chr(seqA[i-1]+65))
alB.append("-")
i -= 1
elif cur == 2:
alB.append(chr(seqB[j-1]+65))
alA.append("-")
j -= 1
else:
print("Invalid value in aligment matrix.")
exit(0)
Alignment = np.array(["".join(alA[::-1]), "".join(alB[::-1])])
return(Score, Alignment, matAli, matTrace)
def smithWaterman(seqA, seqB, scoreMat, gapO=-10, gapE=-0.5, ScoreOnly=False):
"""
Computer the optimal local aligment of two aminoacid
sequences using the Smith-Waterman algoritm.
seqA, seqB - aminoacid sequences
scoreMat - scoring matrix
gapO - gap opening penalty
gapE - gap extension penalty
ScoreOnly - if True, only the optimal score is computed
and no aligment is returned.
"""
# Check for valid score matrix argument
if not isinstance(scoreMat, np.ndarray):
print("Error in 'smitWaterman': scoring matrix has wrong data type.")
exit(1)
elif scoreMat.shape != (26, 26):
print("Error in 'smitWaterman': scoring matrix has wrong shape.")
exit(1)
# Convert seqs to numerical
seqA = np.array(list(map(ord, seqA)), dtype=np.int8)
seqB = np.array(list(map(ord, seqB)), dtype=np.int8)
seqA -= ord("A")
seqB -= ord("A")
matAli = np.zeros((len(seqA)+1, len(seqB)+1), dtype=np.int32)
matTrace = np.zeros((len(seqA)+1, len(seqB)+1), dtype=np.int8)
# matTrace = np.zeros((len(A)+1,len(B)+1),dtype=(np.int8,2))
# matTrace = np.empty((len(A)+1,len(B)+1),dtype=object)
# init aligment and trace matrices
# matAli[1:, 0] = np.fromfunction(
# lambda i: gapO+gapE*i, (len(seqA),))
# matTrace[1:, 0] = 1
# matAli[0, 1:] = np.fromfunction(
# lambda j: gapO+gapE*j, (len(seqB),))
# matTrace[0, 1:] = 2
# for i in range(len(A)+1):
# matAli[i, 0] = (gapOpen+gapExtend*(i-1))*(i > 0)
# matTrace[i, 0] = 1
# for j in range(len(B)+1):
# matAli[0, j] = (gapOpen+gapExtend*(j-1))*(j > 0)
# matTrace[0, j] = 2
# matTrace[0, 0] = 0
# Fill aligment matrix
for i in range(1, len(seqA)+1):
for j in range(1, len(seqB)+1):
tempScores = (matAli[i-1, j-1] + scoreMat[seqA[i-1], seqB[j-1]],
matAli[i-1, j] +
(gapE if (matTrace[i-1, j] == 1) else gapO),
matAli[i, j-1] + (gapE if (matTrace[i, j-1] == 2) else gapO), 0)
idx = np.argmax(tempScores)
matAli[i, j] = tempScores[idx]
if idx == 3:
idx = 2
matTrace[i, j] = idx
Score = matAli.max()
if ScoreOnly:
return(Score, None, matAli, matTrace)
# Backtrack aligment
alB = []
alA = []
# (i, j) are the indices of max score in matAli
i, j = np.unravel_index(np.argmax(matAli), matAli.shape)
# print("--->", Score, i, j)
# print(matAli)
while(matAli[i, j] != 0):
# print(i, j)
cur = matTrace[i, j]
if cur == 0:
alA.append(chr(seqA[i-1]+65))
alB.append(chr(seqB[j-1]+65))
i -= 1
j -= 1
elif cur == 1:
alA.append(chr(seqA[i-1]+65))
alB.append("-")
i -= 1
elif cur == 2:
alB.append(chr(seqB[j-1]+65))
alA.append("-")
j -= 1
else:
print("Invalid value in trace matrix:", cur)
exit(0)
Alignment = np.array(["".join(alA[::-1]), "".join(alB[::-1])])
return(Score, Alignment, matAli, matTrace)
def needleFast(seqA, seqB, scoreMat, gapO=-8, gapE=-8):
# Convert seqs to numerical
seqA = np.array(list(map(ord, seqA)), dtype=np.int8)
seqB = np.array(list(map(ord, seqB)), dtype=np.int8)
seqA -= ord("A")
seqB -= ord("A")
matAli = np.zeros((len(seqA)+1, len(seqB)+1), dtype=np.int32)
matTrace = np.zeros((len(seqA)+1, len(seqB)+1), dtype=np.int8)
# init aligment and trace matrices
matAli[1:, 0] = np.fromfunction(
lambda i: gapO+gapE*i, (len(seqA),))
matTrace[1:, 0] = 1
#
# (ix,iy) = np.meshgrid(range(len(seqB)), range(len(seqA)))
# matAli[1:
matAli[0, 1:] = np.fromfunction(
lambda j: gapO+gapE*j, (len(seqB),))
matTrace[0, 1:] = 2
# Let'a initialize the rest of the aligment matrix with
# the comparison scores from the scoring matrix.
# Note the meshgrid trick to avoid loops ;-)
(ix, iy) = np.meshgrid(range(len(seqB)), range(len(seqA)))
matAli[1:, 1:] = scoreMat[seqB[ix], seqA[iy]]
# Fill aligment matrix
for i in range(1, len(seqA)+1):
for j in range(1, len(seqB)+1):
# tempScores = (matAli[i-1, j-1] + matAli[i, j],
tempScores = (matAli[i-1, j-1] + scoreMat[seqA[i-1], seqB[j-1]],
matAli[i-1, j] +
(gapE if (matTrace[i-1, j] == 1) else gapO),
matAli[i, j-1] + (gapE if (matTrace[i, j-1] == 2) else gapO))
idx = np.argmax(tempScores)
matTrace[i, j] = idx
matAli[i, j] = tempScores[idx]
return(matAli[-1, -1], None, matAli, matTrace)
def smithFast(seqA, seqB, scoreMat, gapO=-8, gapE=-8):
# Convert seqs to numerical
seqA = np.array(list(map(ord, seqA)), dtype=np.int8)
seqB = np.array(list(map(ord, seqB)), dtype=np.int8)
seqA -= ord("A")
seqB -= ord("A")
matAli = np.zeros((len(seqA)+1, len(seqB)+1), dtype=np.int32)
matTrace = np.zeros((len(seqA)+1, len(seqB)+1), dtype=np.int8)
# Fill aligment matrix
for i in range(1, len(seqA)+1):
for j in range(1, len(seqB)+1):
tempScores = (matAli[i-1, j-1] + scoreMat[seqA[i-1], seqB[j-1]],
matAli[i-1, j] +
(gapE if (matTrace[i-1, j] == 1) else gapO),
matAli[i, j-1] + (gapE if (matTrace[i, j-1] == 2) else gapO), 0)
idx = np.argmax(tempScores)
matAli[i, j] = tempScores[idx]
if idx == 3:
idx = 2
matTrace[i, j] = idx
Score = matAli.max()
return(Score, None, matAli, matTrace)
| 33.273016
| 90
| 0.540025
| 1,513
| 10,481
| 3.734303
| 0.124256
| 0.012035
| 0.008496
| 0.019115
| 0.806195
| 0.795044
| 0.787965
| 0.782655
| 0.776283
| 0.776283
| 0
| 0.037292
| 0.293865
| 10,481
| 314
| 91
| 33.378981
| 0.726118
| 0.258754
| 0
| 0.81768
| 0
| 0
| 0.045112
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.033149
| false
| 0
| 0.016575
| 0
| 0.049724
| 0.033149
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9ead3d147e570bf234ba8c0f909578ebabb04e30
| 9,447
|
py
|
Python
|
graphAttack/operations/twoInputOperations.py
|
jgolebiowski/graphAttack
|
ec8488444b44d0bd54498bf917ee42d821643ee8
|
[
"MIT"
] | 51
|
2017-08-16T13:04:43.000Z
|
2022-03-30T09:10:30.000Z
|
graphAttack/operations/twoInputOperations.py
|
jgolebiowski/graphAttack
|
ec8488444b44d0bd54498bf917ee42d821643ee8
|
[
"MIT"
] | null | null | null |
graphAttack/operations/twoInputOperations.py
|
jgolebiowski/graphAttack
|
ec8488444b44d0bd54498bf917ee42d821643ee8
|
[
"MIT"
] | 12
|
2017-09-27T01:10:02.000Z
|
2021-05-05T09:44:56.000Z
|
"""This where implementations of individual operations live"""
from ..coreOperation import *
from ..coreNode import broadcast_shape, reduce_shape
from ..gaUtilities import graphAttackFunctions as gaf
import numpy as np
class MultiplyOperation(TwoInputOperation):
"""Multiply two inputs
Attributes
----------
name : str
Name of the operation
result : np.array
Output of the operation
testing : bool
Flag specifying if the operation is in testing (making prefictions: True)
or training (optimizing parameters: False) mode
gradA : np.array
gradient with respect to inputA
gradB : np.array
gradient with respect to inputB
inputA : ga.Operation
Operation feeding data A into this operation
inputB : ga.Operation
Operation feeding data B into this operation
shape : tuple
shape of the output
"""
name = "MultiplyOperation"
def perform(self, a, b):
"""Multiply two together
Parameters
----------
a : np.array
first set of input data
b : np.array
second set pf input data
Returns
-------
np.aarray
Result of the operation
"""
return np.multiply(a, b)
def performGradient(self, input):
"""Find out the gradient with respect to the parameter
Parameters
----------
input : int
Specify an input operation with respect to which the
gradient is calculated
the key is:
inputA => 0
inputB => 1
Returns
-------
np.array
Gradient propagated through this operation
Raises
------
ValueError
input has ot be either 0 or 1
"""
if (self.endNode):
if (input == 0):
grad = np.ones(self.inputA.shape)
elif (input == 1):
grad = np.ones(self.inputB.shape)
else:
raise ValueError
else:
if (input == 0):
grad = np.zeros(self.inputA.shape)
elif (input == 1):
grad = np.zeros(self.inputB.shape)
else:
raise ValueError
for out in self.outputs:
grad += reduce_shape(out.getGradient(self), grad)
if (input == 0):
grad = grad * self.inputB.getValue()
elif (input == 1):
grad = grad * self.inputA.getValue()
return grad
class DivideOperation(TwoInputOperation):
"""Divide two inputs
Attributes
----------
name : str
Name of the operation
result : np.array
Output of the operation
testing : bool
Flag specifying if the operation is in testing (making prefictions: True)
or training (optimizing parameters: False) mode
gradA : np.array
gradient with respect to inputA
gradB : np.array
gradient with respect to inputB
inputA : ga.Operation
Operation feeding data A into this operation
inputB : ga.Operation
Operation feeding data B into this operation
shape : tuple
shape of the output
"""
name = "DivideOperation"
def perform(self, a, b):
"""Multiply two together
Parameters
----------
a : np.array
first set of input data
b : np.array
second set pf input data
Returns
-------
np.aarray
Result of the operation
"""
return np.divide(a, b)
def performGradient(self, input):
"""Find out the gradient with respect to the parameter
Parameters
----------
input : int
Specify an input operation with respect to which the
gradient is calculated
the key is:
inputA => 0
inputB => 1
Returns
-------
np.array
Gradient propagated through this operation
Raises
------
ValueError
input has ot be either 0 or 1
"""
if (self.endNode):
if (input == 0):
grad = np.ones(self.inputA.shape)
elif (input == 1):
grad = np.ones(self.inputB.shape)
else:
raise ValueError
else:
if (input == 0):
grad = np.zeros(self.inputA.shape)
elif (input == 1):
grad = np.zeros(self.inputB.shape)
else:
raise ValueError
for out in self.outputs:
grad += reduce_shape(out.getGradient(self), grad)
if (input == 0):
grad = np.divide(grad, self.inputB.getValue())
elif (input == 1):
grad = np.divide(grad, np.square(self.inputA.getValue()))
return grad
class AddOperation(TwoInputOperation):
"""add two inputs
Attributes
----------
name : str
Name of the operation
result : np.array
Output of the operation
testing : bool
Flag specifying if the operation is in testing (making prefictions: True)
or training (optimizing parameters: False) mode
gradA : np.array
gradient with respect to inputA
gradB : np.array
gradient with respect to inputB
inputA : ga.Operation
Operation feeding data A into this operation
inputB : ga.Operation
Operation feeding data B into this operation
shape : tuple
shape of the output
"""
name = "AddOperation"
def perform(self, a, b):
"""add two together
Parameters
----------
a : np.array
first set of input data
b : np.array
second set pf input data
Returns
-------
np.aarray
Result of the operation
"""
return np.add(a, b)
def performGradient(self, input):
"""Find out the gradient with respect to the parameter
Parameters
----------
input : int
Specify an input operation with respect to which the
gradient is calculated
the key is:
inputA => 0
inputB => 1
Returns
-------
np.array
Gradient propagated through this operation
Raises
------
ValueError
input has ot be either 0 or 1
"""
if (self.endNode):
if (input == 0):
grad = np.ones(self.inputA.shape)
elif (input == 1):
grad = np.ones(self.inputB.shape)
else:
raise ValueError
else:
if (input == 0):
grad = np.zeros(self.inputA.shape)
elif (input == 1):
grad = np.zeros(self.inputB.shape)
else:
raise ValueError
for out in self.outputs:
grad += reduce_shape(out.getGradient(self), grad)
return grad
class MatMatmulOperation(TwoInputOperation):
"""MatrixMultiplication for 2d matrices
Attributes
----------
name : str
Name of the operation
result : np.array
Output of the operation
testing : bool
Flag specifying if the operation is in testing (making prefictions: True)
or training (optimizing parameters: False) mode
gradA : np.array
gradient with respect to inputA
gradB : np.array
gradient with respect to inputB
inputA : ga.Operation
Operation feeding data A into this operation
inputB : ga.Operation
Operation feeding data B into this operation
shape : tuple
shape of the output
"""
name = "MatMatmulOperation"
def setShape(self):
"""Set the output shape"""
if not (len(self.inputA.shape) == 2 == len(self.inputB.shape)):
raise ValueError("This should be used on arrays of ndims == 2")
self.shape = (self.inputA.shape[0], self.inputB.shape[1])
def perform(self, a, b):
"""Perform MatMul
Parameters
----------
a : np.array
first set of input data
b : np.array
second set pf input data
Returns
-------
np.aarray
Result of the operation
"""
return gaf.matmul(a, b)
def performGradient(self, input):
"""Find out the gradient with respect to the parameter
Parameters
----------
input : int
Specify an input operation with respect to which the
gradient is calculated
the key is:
inputA => 0
inputB => 1
Returns
-------
np.array
Gradient propagated through this operation
Raises
------
ValueError
input has ot be either 0 or 1
"""
if (self.endNode):
grad = np.ones(self.shape)
else:
grad = np.zeros(self.shape)
for out in self.outputs:
grad += out.getGradient(self)
if (input == 0):
grad = gaf.matmul(grad, self.inputB.getValue().T)
elif (input == 1):
grad = gaf.matmul(self.inputA.getValue().T, grad)
return grad
| 25.953297
| 81
| 0.529692
| 1,023
| 9,447
| 4.886608
| 0.125122
| 0.033607
| 0.041608
| 0.05041
| 0.833567
| 0.826365
| 0.808562
| 0.808562
| 0.794159
| 0.794159
| 0
| 0.0067
| 0.383826
| 9,447
| 363
| 82
| 26.024793
| 0.852087
| 0.471155
| 0
| 0.704082
| 0
| 0
| 0.028401
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.091837
| false
| 0
| 0.040816
| 0
| 0.295918
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7ba21bdc5c3c20d756bec632b059838dba7c1299
| 24,199
|
py
|
Python
|
sqlalchemy_mptt/tests/cases/edit_node.py
|
AngelLiang/sqlalchemy_mptt
|
ce7c8ceea915f4bc2716aafdc7cafe075d862942
|
[
"MIT"
] | 123
|
2016-01-10T16:46:09.000Z
|
2022-02-23T10:44:30.000Z
|
sqlalchemy_mptt/tests/cases/edit_node.py
|
AngelLiang/sqlalchemy_mptt
|
ce7c8ceea915f4bc2716aafdc7cafe075d862942
|
[
"MIT"
] | 23
|
2016-01-21T06:12:31.000Z
|
2021-11-10T15:21:49.000Z
|
sqlalchemy_mptt/tests/cases/edit_node.py
|
AngelLiang/sqlalchemy_mptt
|
ce7c8ceea915f4bc2716aafdc7cafe075d862942
|
[
"MIT"
] | 23
|
2016-01-19T20:26:11.000Z
|
2021-04-06T13:56:34.000Z
|
class Changes(object):
def test_update_wo_move(self):
""" Update node w/o move
initial state of the tree :mod:`sqlalchemy_mptt.tests.add_mptt_tree`
.. code::
level Nested sets example
1 1(1)22
_______________|___________________
| | |
2 2(2)5 6(4)11 12(7)21
| ^ ^
3 3(3)4 7(5)8 9(6)10 13(8)16 17(10)20
| |
4 14(9)15 18(11)19
"""
node = self.session.query(self.model)\
.filter(self.model.get_pk_column() == 4).one()
node.visible = True
self.session.add(node)
_level = node.get_default_level()
self.assertEqual(
[
# id lft rgt lvl parent tree
(1, 1, 22, _level + 0, None, 1),
(2, 2, 5, _level + 1, 1, 1),
(3, 3, 4, _level + 2, 2, 1),
(4, 6, 11, _level + 1, 1, 1),
(5, 7, 8, _level + 2, 4, 1),
(6, 9, 10, _level + 2, 4, 1),
(7, 12, 21, _level + 1, 1, 1),
(8, 13, 16, _level + 2, 7, 1),
(9, 14, 15, _level + 3, 8, 1),
(10, 17, 20, _level + 2, 7, 1),
(11, 18, 19, _level + 3, 10, 1),
(12, 1, 22, _level + 0, None, 2),
(13, 2, 5, _level + 1, 12, 2),
(14, 3, 4, _level + 2, 13, 2),
(15, 6, 11, _level + 1, 12, 2),
(16, 7, 8, _level + 2, 15, 2),
(17, 9, 10, _level + 2, 15, 2),
(18, 12, 21, _level + 1, 12, 2),
(19, 13, 16, _level + 2, 18, 2),
(20, 14, 15, _level + 3, 19, 2),
(21, 17, 20, _level + 2, 18, 2),
(22, 18, 19, _level + 3, 21, 2)
],
self.result.all()) # flake8: noqa
def test_update_wo_move_like_sacrud_save(self):
""" Just change attr from node w/o move
initial state of the tree :mod:`sqlalchemy_mptt.tests.add_mptt_tree`
.. code::
level Nested sets example
1 1(1)22
_______________|___________________
| | |
2 2(2)5 6(4)11 12(7)21
| ^ ^
3 3(3)4 7(5)8 9(6)10 13(8)16 17(10)20
| |
4 14(9)15 18(11)19
"""
node = self.session.query(self.model)\
.filter(self.model.get_pk_column() == 4).one()
node.parent_id = '1'
node.visible = True
self.session.add(node)
_level = node.get_default_level()
# id lft rgt lvl parent tree
self.assertEqual([(1, 1, 22, _level + 0, None, 1),
(2, 2, 5, _level + 1, 1, 1),
(3, 3, 4, _level + 2, 2, 1),
(4, 6, 11, _level + 1, 1, 1),
(5, 7, 8, _level + 2, 4, 1),
(6, 9, 10, _level + 2, 4, 1),
(7, 12, 21, _level + 1, 1, 1),
(8, 13, 16, _level + 2, 7, 1),
(9, 14, 15, _level + 3, 8, 1),
(10, 17, 20, _level + 2, 7, 1),
(11, 18, 19, _level + 3, 10, 1),
(12, 1, 22, _level + 0, None, 2),
(13, 2, 5, _level + 1, 12, 2),
(14, 3, 4, _level + 2, 13, 2),
(15, 6, 11, _level + 1, 12, 2),
(16, 7, 8, _level + 2, 15, 2),
(17, 9, 10, _level + 2, 15, 2),
(18, 12, 21, _level + 1, 12, 2),
(19, 13, 16, _level + 2, 18, 2),
(20, 14, 15, _level + 3, 19, 2),
(21, 17, 20, _level + 2, 18, 2),
(22, 18, 19, _level + 3, 21, 2)], self.result.all())
def test_insert_node(self):
""" Insert node with parent==6
initial state of the tree :mod:`sqlalchemy_mptt.tests.add_mptt_tree`
.. code::
level Nested sets example
1 1(1)22
_______________|___________________
| | |
2 2(2)5 6(4)11 12(7)21
| ^ ^
3 3(3)4 7(5)8 9(6)10 13(8)16 17(10)20
| |
4 14(9)15 18(11)19
level Insert node with parent_id == 6
1 1(1)24
_______________|_________________
| | |
2 2(2)5 6(4)13 14(7)23
| ____|____ ___|____
| | | | |
3 3(3)4 7(5)8 9(6)12 15(8)18 19(10)22
| | |
4 10(23)11 16(9)17 20(11)21
"""
node = self.model(parent_id=6)
self.session.add(node)
_level = node.get_default_level()
self.assertEqual(
[
# id lft rgt lvl parent tree
(1, 1, 24, _level + 0, None, 1),
(2, 2, 5, _level + 1, 1, 1),
(3, 3, 4, _level + 2, 2, 1),
(4, 6, 13, _level + 1, 1, 1),
(5, 7, 8, _level + 2, 4, 1),
(6, 9, 12, _level + 2, 4, 1),
(7, 14, 23, _level + 1, 1, 1),
(8, 15, 18, _level + 2, 7, 1),
(9, 16, 17, _level + 3, 8, 1),
(10, 19, 22, _level + 2, 7, 1),
(11, 20, 21, _level + 3, 10, 1),
(12, 1, 22, _level + 0, None, 2),
(13, 2, 5, _level + 1, 12, 2),
(14, 3, 4, _level + 2, 13, 2),
(15, 6, 11, _level + 1, 12, 2),
(16, 7, 8, _level + 2, 15, 2),
(17, 9, 10, _level + 2, 15, 2),
(18, 12, 21, _level + 1, 12, 2),
(19, 13, 16, _level + 2, 18, 2),
(20, 14, 15, _level + 3, 19, 2),
(21, 17, 20, _level + 2, 18, 2),
(22, 18, 19, _level + 3, 21, 2),
(23, 10, 11, _level + 3, 6, 1)
],
self.result.all())
def test_insert_node_near_subtree(self):
""" Insert node with parent==4
initial state of the tree :mod:`sqlalchemy_mptt.tests.add_mptt_tree`
.. code::
level Nested sets example
1 1(1)22
_______________|___________________
| | |
2 2(2)5 6(4)11 12(7)21
| ^ ^
3 3(3)4 7(5)8 9(6)10 13(8)16 17(10)20
| |
4 14(9)15 18(11)19
level Insert node with parent_id == 4
1 1(1)24
_______________|_____________________
| | |
2 2(2)5 6(4)13 14(7)23
| ______|________ __|______
| | | | | |
3 3(3)4 7(5)8 9(6)10 11(23)12 15(8)18 19(10)22
| |
4 16(9)17 20(11)21
"""
node = self.model(parent_id=4)
self.session.add(node)
_level = node.get_default_level()
self.assertEqual(
[
# id lft rgt lvl parent tree
(1, 1, 24, _level + 0, None, 1),
(2, 2, 5, _level + 1, 1, 1),
(3, 3, 4, _level + 2, 2, 1),
(4, 6, 13, _level + 1, 1, 1),
(5, 7, 8, _level + 2, 4, 1),
(6, 9, 10, _level + 2, 4, 1),
(7, 14, 23, _level + 1, 1, 1),
(8, 15, 18, _level + 2, 7, 1),
(9, 16, 17, _level + 3, 8, 1),
(10, 19, 22, _level + 2, 7, 1),
(11, 20, 21, _level + 3, 10, 1),
(12, 1, 22, _level + 0, None, 2),
(13, 2, 5, _level + 1, 12, 2),
(14, 3, 4, _level + 2, 13, 2),
(15, 6, 11, _level + 1, 12, 2),
(16, 7, 8, _level + 2, 15, 2),
(17, 9, 10, _level + 2, 15, 2),
(18, 12, 21, _level + 1, 12, 2),
(19, 13, 16, _level + 2, 18, 2),
(20, 14, 15, _level + 3, 19, 2),
(21, 17, 20, _level + 2, 18, 2),
(22, 18, 19, _level + 3, 21, 2),
(23, 11, 12, _level + 2, 4, 1)
],
self.result.all())
def test_insert_after_node(self):
pass
def test_delete_node(self):
""" Delete node(4)
initial state of the tree :mod:`sqlalchemy_mptt.tests.add_mptt_tree`
.. code::
level Test delete node
1 1(1)22
_______________|___________________
| | |
2 2(2)5 6(4)11 12(7)21
| ^ ^
3 3(3)4 7(5)8 9(6)10 13(8)16 17(10)20
| |
4 14(9)15 18(11)19
level Delete node == 4
1 1(1)16
_______________|_____
| |
2 2(2)5 6(7)15
| ^
3 3(3)4 7(8)10 11(10)14
| |
4 8(9)9 12(11)13
"""
node = self.session.query(self.model)\
.filter(self.model.get_pk_column() == 4).one()
self.session.delete(node)
_level = node.get_default_level()
self.assertEqual(
[
# id lft rgt lvl parent tree
(1, 1, 16, _level + 0, None, 1),
(2, 2, 5, _level + 1, 1, 1),
(3, 3, 4, _level + 2, 2, 1),
(7, 6, 15, _level + 1, 1, 1),
(8, 7, 10, _level + 2, 7, 1),
(9, 8, 9, _level + 3, 8, 1),
(10, 11, 14, _level + 2, 7, 1),
(11, 12, 13, _level + 3, 10, 1),
(12, 1, 22, _level + 0, None, 2),
(13, 2, 5, _level + 1, 12, 2),
(14, 3, 4, _level + 2, 13, 2),
(15, 6, 11, _level + 1, 12, 2),
(16, 7, 8, _level + 2, 15, 2),
(17, 9, 10, _level + 2, 15, 2),
(18, 12, 21, _level + 1, 12, 2),
(19, 13, 16, _level + 2, 18, 2),
(20, 14, 15, _level + 3, 19, 2),
(21, 17, 20, _level + 2, 18, 2),
(22, 18, 19, _level + 3, 21, 2)
],
self.result.all())
def test_update_node(self):
""" Set parent_id==5 for node(8)
initial state of the tree :mod:`sqlalchemy_mptt.tests.add_mptt_tree`
.. code::
level Test update node
1 1(1)22
_______________|___________________
| | |
2 2(2)5 6(4)11 12(7)21
| ^ ^
3 3(3)4 7(5)8 9(6)10 13(8)16 17(10)20
| |
4 14(9)15 18(11)19
level Move 8 - > 5
1 1(1)22
_______________|__________________
| | |
2 2(2)5 6(4)15 16(7)21
| ^ |
3 3(3)4 7(5)12 13(6)14 17(10)20
| |
4 8(8)11 18(11)19
|
5 9(9)10
"""
node = self.session.query(self.model)\
.filter(self.model.get_pk_column() == 8).one()
node.parent_id = 5
self.session.add(node)
_level = node.get_default_level()
self.assertEqual(
[
# id lft rgt lvl parent tree
(1, 1, 22, _level + 0, None, 1),
(2, 2, 5, _level + 1, 1, 1),
(3, 3, 4, _level + 2, 2, 1),
(4, 6, 15, _level + 1, 1, 1),
(5, 7, 12, _level + 2, 4, 1),
(6, 13, 14, _level + 2, 4, 1),
(7, 16, 21, _level + 1, 1, 1),
(8, 8, 11, _level + 3, 5, 1),
(9, 9, 10, _level + 4, 8, 1),
(10, 17, 20, _level + 2, 7, 1),
(11, 18, 19, _level + 3, 10, 1),
(12, 1, 22, _level + 0, None, 2),
(13, 2, 5, _level + 1, 12, 2),
(14, 3, 4, _level + 2, 13, 2),
(15, 6, 11, _level + 1, 12, 2),
(16, 7, 8, _level + 2, 15, 2),
(17, 9, 10, _level + 2, 15, 2),
(18, 12, 21, _level + 1, 12, 2),
(19, 13, 16, _level + 2, 18, 2),
(20, 14, 15, _level + 3, 19, 2),
(21, 17, 20, _level + 2, 18, 2),
(22, 18, 19, _level + 3, 21, 2)
],
self.result.all())
""" level Move 8 - > 5
1 1(1)22
_______________|__________________
| | |
2 2(2)5 6(4)15 16(7)21
| ^ |
3 3(3)4 7(5)12 13(6)14 17(10)20
| |
4 8(8)11 18(11)19
|
5 9(9)10
level Move 4 - > 2
1 1(1)22
________|_____________
| |
2 2(2)15 16(7)21
____|_____ |
| | |
3 3(4)12 13(3)14 17(10)20
^ |
4 4(5)9 10(6)11 18(11)19
|
5 5(8)8
|
6 6(9)7
"""
node = self.session.query(self.model)\
.filter(self.model.get_pk_column() == 4).one()
node.parent_id = 2
self.session.add(node)
self.assertEqual(
[
# id lft rgt lvl parent tree
(1, 1, 22, _level + 0, None, 1),
(2, 2, 15, _level + 1, 1, 1),
(3, 13, 14, _level + 2, 2, 1),
(4, 3, 12, _level + 2, 2, 1),
(5, 4, 9, _level + 3, 4, 1),
(6, 10, 11, _level + 3, 4, 1),
(7, 16, 21, _level + 1, 1, 1),
(8, 5, 8, _level + 4, 5, 1),
(9, 6, 7, _level + 5, 8, 1),
(10, 17, 20, _level + 2, 7, 1),
(11, 18, 19, _level + 3, 10, 1),
(12, 1, 22, _level + 0, None, 2),
(13, 2, 5, _level + 1, 12, 2),
(14, 3, 4, _level + 2, 13, 2),
(15, 6, 11, _level + 1, 12, 2),
(16, 7, 8, _level + 2, 15, 2),
(17, 9, 10, _level + 2, 15, 2),
(18, 12, 21, _level + 1, 12, 2),
(19, 13, 16, _level + 2, 18, 2),
(20, 14, 15, _level + 3, 19, 2),
(21, 17, 20, _level + 2, 18, 2),
(22, 18, 19, _level + 3, 21, 2)
],
self.result.all())
""" level Move 4 - > 2
1 1(1)22
________|_____________
| |
2 2(2)15 16(7)21
____|_____ |
| | |
3 3(4)12 13(3)14 17(10)20
^ |
4 4(5)9 10(6)11 18(11)19
|
5 5(8)8
|
6 6(9)7
level Move 8 - > 10
1 1(1)22
________|_____________
| |
2 2(2)11 12(7)21
______|_____ |
| | |
3 3(4)8 9(3)10 13(10)20
__|____ _|______
| | | |
4 4(5)5 6(6)7 14(8)17 18(11)19
|
5 15(9)16
"""
node = self.session.query(self.model)\
.filter(self.model.get_pk_column() == 8).one()
node.parent_id = 10
self.session.add(node)
self.assertEqual(
[
# id lft rgt lvl parent tree
(1, 1, 22, _level + 0, None, 1),
(2, 2, 11, _level + 1, 1, 1),
(3, 9, 10, _level + 2, 2, 1),
(4, 3, 8, _level + 2, 2, 1),
(5, 4, 5, _level + 3, 4, 1),
(6, 6, 7, _level + 3, 4, 1),
(7, 12, 21, _level + 1, 1, 1),
(8, 14, 17, _level + 3, 10, 1),
(9, 15, 16, _level + 4, 8, 1),
(10, 13, 20, _level + 2, 7, 1),
(11, 18, 19, _level + 3, 10, 1),
(12, 1, 22, _level + 0, None, 2),
(13, 2, 5, _level + 1, 12, 2),
(14, 3, 4, _level + 2, 13, 2),
(15, 6, 11, _level + 1, 12, 2),
(16, 7, 8, _level + 2, 15, 2),
(17, 9, 10, _level + 2, 15, 2),
(18, 12, 21, _level + 1, 12, 2),
(19, 13, 16, _level + 2, 18, 2),
(20, 14, 15, _level + 3, 19, 2),
(21, 17, 20, _level + 2, 18, 2),
(22, 18, 19, _level + 3, 21, 2)
],
self.result.all())
def test_rebuild(self):
""" Rebuild tree with tree_id==1
.. code::
level Nested sets w/o left & right (or broken left & right)
1 (1)
_______________|___________________
| | |
2 (2) (4) (7)
| ^ ^
3 (3) (5) (6) (8) (10)
| |
4 (9) (11)
level Nested sets after rebuild
1 1(1)22
_______________|___________________
| | |
2 2(2)5 6(4)11 12(7)21
| ^ ^
3 3(3)4 7(5)8 9(6)10 13(8)16 17(10)20
| |
4 14(9)15 18(11)19
"""
self.session.query(self.model).update({
self.model.left: 0,
self.model.right: 0,
self.model.level: 0
})
self.model.rebuild(self.session, 1)
_level = self.model.get_default_level()
self.assertEqual(
self.result.all(),
[
# id lft rgt lvl parent tree
(1, 1, 22, _level + 0, None, 1),
(2, 2, 5, _level + 1, 1, 1),
(3, 3, 4, _level + 2, 2, 1),
(4, 6, 11, _level + 1, 1, 1),
(5, 7, 8, _level + 2, 4, 1),
(6, 9, 10, _level + 2, 4, 1),
(7, 12, 21, _level + 1, 1, 1),
(8, 13, 16, _level + 2, 7, 1),
(9, 14, 15, _level + 3, 8, 1),
(10, 17, 20, _level + 2, 7, 1),
(11, 18, 19, _level + 3, 10, 1),
(12, 0, 0, 0, None, 2),
(13, 0, 0, 0, 12, 2),
(14, 0, 0, 0, 13, 2),
(15, 0, 0, 0, 12, 2),
(16, 0, 0, 0, 15, 2),
(17, 0, 0, 0, 15, 2),
(18, 0, 0, 0, 12, 2),
(19, 0, 0, 0, 18, 2),
(20, 0, 0, 0, 19, 2),
(21, 0, 0, 0, 18, 2),
(22, 0, 0, 0, 21, 2)
]
)
self.model.rebuild(self.session)
self.assertEqual(
self.result.all(),
[
# id lft rgt lvl parent tree
(1, 1, 22, _level + 0, None, 1),
(2, 2, 5, _level + 1, 1, 1),
(3, 3, 4, _level + 2, 2, 1),
(4, 6, 11, _level + 1, 1, 1),
(5, 7, 8, _level + 2, 4, 1),
(6, 9, 10, _level + 2, 4, 1),
(7, 12, 21, _level + 1, 1, 1),
(8, 13, 16, _level + 2, 7, 1),
(9, 14, 15, _level + 3, 8, 1),
(10, 17, 20, _level + 2, 7, 1),
(11, 18, 19, _level + 3, 10, 1),
(12, 1, 22, _level + 0, None, 2),
(13, 2, 5, _level + 1, 12, 2),
(14, 3, 4, _level + 2, 13, 2),
(15, 6, 11, _level + 1, 12, 2),
(16, 7, 8, _level + 2, 15, 2),
(17, 9, 10, _level + 2, 15, 2),
(18, 12, 21, _level + 1, 12, 2),
(19, 13, 16, _level + 2, 18, 2),
(20, 14, 15, _level + 3, 19, 2),
(21, 17, 20, _level + 2, 18, 2),
(22, 18, 19, _level + 3, 21, 2)
]
)
| 44.647601
| 78
| 0.290508
| 2,670
| 24,199
| 2.310861
| 0.035581
| 0.030794
| 0.020421
| 0.035008
| 0.894814
| 0.835494
| 0.820421
| 0.808104
| 0.803566
| 0.803566
| 0
| 0.261551
| 0.585892
| 24,199
| 541
| 79
| 44.730129
| 0.354156
| 0.267945
| 0
| 0.7411
| 0
| 0
| 0.000072
| 0
| 0
| 0
| 0
| 0
| 0.032362
| 1
| 0.02589
| false
| 0.003236
| 0
| 0
| 0.029126
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
7bcc1145ed49c7ff4c515e172774f0110005813b
| 16,729
|
py
|
Python
|
app/main/views.py
|
ergauravsoni/final-year-frontend
|
0529236a3fd36bbc364e8f5c93d102fcdf557a6a
|
[
"MIT"
] | null | null | null |
app/main/views.py
|
ergauravsoni/final-year-frontend
|
0529236a3fd36bbc364e8f5c93d102fcdf557a6a
|
[
"MIT"
] | null | null | null |
app/main/views.py
|
ergauravsoni/final-year-frontend
|
0529236a3fd36bbc364e8f5c93d102fcdf557a6a
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.views.decorators.csrf import csrf_exempt
from django.views.static import serve
import os
import requests
from datetime import datetime, timedelta
from pathlib import Path
ENDPOINT_URL = 'https://1d74196f58f8.ngrok.io/api/'
BASE_DIR = Path(__file__).resolve().parent.parent
def download(request):
try:
r = requests.get(ENDPOINT_URL + 'users/me/',headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
if r.status_code >= 200 and r.status_code < 300:
r2 = requests.get(ENDPOINT_URL + 'games/score_list/',headers=request.session['auth_payload'])
print(r2.json())
content = {'email': r.json()['email'],'name': r.json()['name']}
file = open("file.txt", "w")
#convert variable to string
str1 = repr(r.json())
str2 = repr(r2.json())
str3 = ""
content ={}
if r2.json()[0]['inventory_score']==0:
str3 = "Unable to evaluate. Try Again."
elif r2.json()[0]['inventory_score']>0 and r2.json()[0]['inventory_score']<11:
str3 = "These ups and downs are considered normal."
elif r2.json()[0]['inventory_score']>10 and r2.json()[0]['inventory_score']<17:
str3 = "Mild Mood Disturbance"
elif r2.json()[0]['inventory_score']>16 and r2.json()[0]['inventory_score']<21:
str3 = "Borderline Clinical Depression"
elif r2.json()[0]['inventory_score']>20 and r2.json()[0]['inventory_score']<31:
str3 = "Moderate Depression"
elif r2.json()[0]['inventory_score']>30 and r2.json()[0]['inventory_score']<41:
str3 = "Severe Depression"
else:
str3 = "Extreme Depression"
if r2.json()[0]['tower_blocks_score']>40:
content['tb_score_factor'] = 'High'
content['tb_color'] = 'success'
elif r2.json()[0]['tower_blocks_score']<21:
content['tb_score_factor'] = 'Low'
content['tb_color'] = 'danger'
else:
content['tb_score_factor'] = 'Average'
content['tb_color'] = 'warning'
content['bounce_score'] = r2.json()[0]['bounce_score']
if r2.json()[0]['bounce_score']==0:
content['b_score_factor'] = 'Low'
content['b_color'] = 'danger'
elif r2.json()[0]['bounce_score']<41:
content['b_score_factor'] = 'High'
content['b_color'] = 'success'
elif r2.json()[0]['bounce_score']>50:
content['b_score_factor'] = 'Low'
content['b_color'] = 'danger'
else:
content['b_score_factor'] = 'Average'
content['b_color'] = 'warning'
content['kill_birds_score'] = r2.json()[0]['kill_birds_score']
if r2.json()[0]['kill_birds_score']>4:
content['kb_score_factor'] = 'High'
content['kb_color'] = 'success'
elif r2.json()[0]['kill_birds_score']<3:
content['kb_score_factor'] = 'Low'
content['kb_color'] = 'danger'
else:
content['kb_score_factor'] = 'Average'
content['kb_color'] = 'warning'
content['snake_score'] = r2.json()[0]['snake_score']
if r2.json()[0]['snake_score']>14:
content['s_score_factor'] = 'High'
content['s_color'] = 'success'
elif r2.json()[0]['snake_score']<5:
content['s_score_factor'] = 'Low'
content['s_color'] = 'danger'
else:
content['s_score_factor'] = 'Average'
content['s_color'] = 'warning'
tbn=0
if content['tb_score_factor']=='High':
tbn=3
elif content['tb_score_factor']=='Average':
tbn=2
else:
tbn=1
bn=0
if content['b_score_factor']=='High':
bn=3
elif content['b_score_factor']=='Average':
bn=2
else:
bn=1
kbn=0
if content['kb_score_factor']=='High':
kbn=3
elif content['kb_score_factor']=='Average':
kbn=2
else:
kbn=1
sn=0
if content['s_score_factor']=='High':
sn=3
elif content['s_score_factor']=='Average':
sn=2
else:
sn=1
if r2.json()[0]['tower_blocks_score']==0:
tbn=0
if r2.json()[0]['bounce_score']==0:
bn=0
if r2.json()[0]['kill_birds_score']==0:
kbn=0
if r2.json()[0]['snake_score']==0:
sn=0
content['perception_percent'] = str(round(23.33*tbn + 10*kbn))
content['attention_percent'] = str(round(20*sn + 13.33*bn))
content['learning_percent'] = str(round(33.33*sn))
str4 = "Perception = " + content['perception_percent'] + "% \n" + "Attention = " + content['attention_percent'] + "%\nLearning = " + content['learning_percent'] + "%\n"
r3 = requests.get("https://thingspeak.com/channels/1408511/fields/3/last.json?api_key=0IQJRAN4L6IQO10B")
print("BPM:",r3.json())
str5 = r3.json()['field3']
r4 = requests.get("https://thingspeak.com/channels/1408511/fields/1/last.json?api_key=0IQJRAN4L6IQO10B")
print("Steps:",r4.json())
str6 = r4.json()['field1']
r5 = requests.get("https://thingspeak.com/channels/1408511/fields/2/last.json?api_key=0IQJRAN4L6IQO10B")
print("Calories:",r5.json())
str7 = r5.json()['field2']
file.write("Overall Health Analytical Report\n\nUser Details = " + str1 + "\n\n" + "Game Analytics Report = " + str2 + "\n\n" + "Neuropsychological Report :\n" + str4 + "\n" + "Depression Detection Inventory Report = " + str3 + "\n\nHeartrate (BPM) = " + str5 + "\n\nStep Count = " + str6 + "\n\nEnergy Consumed(Calories) = " + str7)
#close file
file.close()
filepath = str(BASE_DIR) + "/file.txt"
return serve(request, os.path.basename(filepath), os.path.dirname(filepath))
except KeyError:
pass
return HttpResponseRedirect(reverse('users:signin'))
def dashboard(request):
try:
r = requests.get(ENDPOINT_URL + 'users/me/',headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
if r.status_code >= 200 and r.status_code < 300:
content = {'email': r.json()['email'],'name': r.json()['name']}
return render(request, "main/dashboard.html",content)
except KeyError:
pass
return HttpResponseRedirect(reverse('users:signin'))
@csrf_exempt
def tower_blocks(request):
if request.method == 'POST':
print('Tower Blocks Score:',request.POST['score'])
payload={
'tower_blocks_score':request.POST['score'],
'user':request.POST['email']
}
r = requests.put(ENDPOINT_URL + 'games/score_update/',data=payload,headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
return HttpResponseRedirect(reverse('main:dashboard'))
else:
try:
r = requests.get(ENDPOINT_URL + 'users/me/',headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
if r.status_code >= 200 and r.status_code < 300:
content = {'email': r.json()['email'],'name': r.json()['name']}
return render(request, "main/tower_blocks.html",content)
except KeyError:
pass
return HttpResponseRedirect(reverse('users:signin'))
@csrf_exempt
def bounce(request):
if request.method == 'POST':
print('Bounce Score:',request.POST['score'])
payload={
'bounce_score':request.POST['score'],
'user':request.POST['email']
}
r = requests.put(ENDPOINT_URL + 'games/score_update/',data=payload,headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
return HttpResponseRedirect(reverse('main:dashboard'))
else:
try:
r = requests.get(ENDPOINT_URL + 'users/me/',headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
if r.status_code >= 200 and r.status_code < 300:
content = {'email': r.json()['email'],'name': r.json()['name']}
return render(request, "main/bounce.html",content)
except KeyError:
pass
return HttpResponseRedirect(reverse('users:signin'))
@csrf_exempt
def kill_birds(request):
if request.method == 'POST':
print('Kill Birds Score:',request.POST['score'])
payload={
'kill_birds_score':request.POST['score'],
'user':request.POST['email']
}
r = requests.put(ENDPOINT_URL + 'games/score_update/',data=payload,headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
return HttpResponseRedirect(reverse('main:dashboard'))
else:
try:
r = requests.get(ENDPOINT_URL + 'users/me/',headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
if r.status_code >= 200 and r.status_code < 300:
content = {'email': r.json()['email'],'name': r.json()['name']}
return render(request, "main/kill_birds.html",content)
except KeyError:
pass
return HttpResponseRedirect(reverse('users:signin'))
@csrf_exempt
def snake(request):
if request.method == 'POST':
print('Snake Score:',request.POST['score'])
payload={
'snake_score':request.POST['score'],
'user':request.POST['email']
}
r = requests.put(ENDPOINT_URL + 'games/score_update/',data=payload,headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
return HttpResponseRedirect(reverse('main:dashboard'))
else:
try:
r = requests.get(ENDPOINT_URL + 'users/me/',headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
if r.status_code >= 200 and r.status_code < 300:
content = {'email': r.json()['email'],'name': r.json()['name']}
return render(request, "main/snake.html",content)
except KeyError:
pass
return HttpResponseRedirect(reverse('users:signin'))
def game_analytics(request):
try:
r1 = requests.get(ENDPOINT_URL + 'users/me/',headers=request.session['auth_payload'])
r2 = requests.get(ENDPOINT_URL + 'games/score_list/',headers=request.session['auth_payload'])
print(r1.json())
print(r1.status_code)
print(r2.json())
print(r2.status_code)
if r1.status_code >= 200 and r1.status_code < 300:
content = {'email': r1.json()['email'],'name': r1.json()['name']}
content['tower_blocks_score'] = r2.json()[0]['tower_blocks_score']
if r2.json()[0]['tower_blocks_score']>40:
content['tb_score_factor'] = 'High'
content['tb_color'] = 'success'
elif r2.json()[0]['tower_blocks_score']<21:
content['tb_score_factor'] = 'Low'
content['tb_color'] = 'danger'
else:
content['tb_score_factor'] = 'Average'
content['tb_color'] = 'warning'
content['bounce_score'] = r2.json()[0]['bounce_score']
if r2.json()[0]['bounce_score']==0:
content['b_score_factor'] = 'Low'
content['b_color'] = 'danger'
elif r2.json()[0]['bounce_score']<41:
content['b_score_factor'] = 'High'
content['b_color'] = 'success'
elif r2.json()[0]['bounce_score']>50:
content['b_score_factor'] = 'Low'
content['b_color'] = 'danger'
else:
content['b_score_factor'] = 'Average'
content['b_color'] = 'warning'
content['kill_birds_score'] = r2.json()[0]['kill_birds_score']
if r2.json()[0]['kill_birds_score']>4:
content['kb_score_factor'] = 'High'
content['kb_color'] = 'success'
elif r2.json()[0]['kill_birds_score']<3:
content['kb_score_factor'] = 'Low'
content['kb_color'] = 'danger'
else:
content['kb_score_factor'] = 'Average'
content['kb_color'] = 'warning'
content['snake_score'] = r2.json()[0]['snake_score']
if r2.json()[0]['snake_score']>14:
content['s_score_factor'] = 'High'
content['s_color'] = 'success'
elif r2.json()[0]['snake_score']<5:
content['s_score_factor'] = 'Low'
content['s_color'] = 'danger'
else:
content['s_score_factor'] = 'Average'
content['s_color'] = 'warning'
tbn=0
if content['tb_score_factor']=='High':
tbn=3
elif content['tb_score_factor']=='Average':
tbn=2
else:
tbn=1
bn=0
if content['b_score_factor']=='High':
bn=3
elif content['b_score_factor']=='Average':
bn=2
else:
bn=1
kbn=0
if content['kb_score_factor']=='High':
kbn=3
elif content['kb_score_factor']=='Average':
kbn=2
else:
kbn=1
sn=0
if content['s_score_factor']=='High':
sn=3
elif content['s_score_factor']=='Average':
sn=2
else:
sn=1
if r2.json()[0]['tower_blocks_score']==0:
tbn=0
if r2.json()[0]['bounce_score']==0:
bn=0
if r2.json()[0]['kill_birds_score']==0:
kbn=0
if r2.json()[0]['snake_score']==0:
sn=0
content['perception_percent'] = round(23.33*tbn + 10*kbn)
content['attention_percent'] = round(20*sn + 13.33*bn)
content['learning_percent'] = round(33.33*sn)
date_obj = datetime.fromisoformat(r2.json()[0]['last_updated'])
print(date_obj.tzinfo,date_obj.microsecond)
date_p = datetime.fromisoformat((date_obj.strftime("%Y-%m-%d %H:%M:%S")))
print(date_p)
print(date_p+timedelta(hours=3,minutes=30,microseconds=int(date_obj.microsecond)))
date_f=date_p+timedelta(hours=3,minutes=30,microseconds=int(date_obj.microsecond))
content['last_updated'] = date_f
return render(request, "main/game_analytics.html",content)
except KeyError:
pass
return HttpResponseRedirect(reverse('users:signin'))
@csrf_exempt
def inventory(request):
if request.method == 'POST':
print('Inventory Score:',request.POST['score'])
payload={
'inventory_score':request.POST['score'],
'user':request.POST['email']
}
r = requests.put(ENDPOINT_URL + 'games/score_update/',data=payload,headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
return HttpResponseRedirect(reverse('main:dashboard'))
else:
try:
r = requests.get(ENDPOINT_URL + 'users/me/',headers=request.session['auth_payload'])
print(r.json())
print(r.status_code)
if r.status_code >= 200 and r.status_code < 300:
content = {'email': r.json()['email'],'name': r.json()['name']}
return render(request, "main/inventory.html",content)
except KeyError:
pass
return HttpResponseRedirect(reverse('users:signin'))
| 40.604369
| 345
| 0.5347
| 1,874
| 16,729
| 4.614194
| 0.115261
| 0.033306
| 0.036429
| 0.017694
| 0.814965
| 0.796114
| 0.728692
| 0.720597
| 0.70325
| 0.673528
| 0
| 0.031937
| 0.314962
| 16,729
| 411
| 346
| 40.703163
| 0.7226
| 0.002152
| 0
| 0.745902
| 0
| 0.008197
| 0.238032
| 0.002756
| 0.005464
| 0
| 0
| 0
| 0
| 1
| 0.021858
| false
| 0.021858
| 0.02459
| 0
| 0.103825
| 0.10929
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
c8bc3d8f7ad248b964ece9bfde44698d9c384d12
| 160
|
py
|
Python
|
ssheepdog/settings/test.py
|
SheepDogInc/ssheepdog
|
12d54d7f94b137fb76d997486d98b6df8d25d0f0
|
[
"BSD-3-Clause"
] | 1
|
2015-09-30T19:10:14.000Z
|
2015-09-30T19:10:14.000Z
|
ssheepdog/settings/test.py
|
SheepDogInc/ssheepdog
|
12d54d7f94b137fb76d997486d98b6df8d25d0f0
|
[
"BSD-3-Clause"
] | 2
|
2020-06-05T16:51:34.000Z
|
2021-06-10T17:33:57.000Z
|
ssheepdog/settings/test.py
|
SheepDogInc/ssheepdog
|
12d54d7f94b137fb76d997486d98b6df8d25d0f0
|
[
"BSD-3-Clause"
] | 2
|
2015-02-21T21:08:56.000Z
|
2015-05-30T10:18:50.000Z
|
print "You can configure SKIP_TESTS_WITH_FLAGS in ssheepdog/test.py to skip those tests that require a VM"
SKIP_TESTS_WITH_FLAGS = [] # or ['requires_server']
| 40
| 106
| 0.7875
| 27
| 160
| 4.407407
| 0.777778
| 0.151261
| 0.218487
| 0.302521
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1375
| 160
| 3
| 107
| 53.333333
| 0.862319
| 0.1375
| 0
| 0
| 0
| 0
| 0.720588
| 0.154412
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.5
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
a810bcaa11c10b03a06c0435b38bbc87d7fdbae9
| 204
|
py
|
Python
|
src/clikit/io/input_stream/__init__.py
|
finswimmer/clikit
|
206198eb60d53c5daefa715f8a93e1fe85ffcf7e
|
[
"MIT"
] | 78
|
2018-12-06T16:18:08.000Z
|
2022-03-18T01:44:06.000Z
|
src/clikit/io/input_stream/__init__.py
|
finswimmer/clikit
|
206198eb60d53c5daefa715f8a93e1fe85ffcf7e
|
[
"MIT"
] | 24
|
2019-05-11T16:40:06.000Z
|
2022-02-27T01:11:04.000Z
|
src/clikit/io/input_stream/__init__.py
|
finswimmer/clikit
|
206198eb60d53c5daefa715f8a93e1fe85ffcf7e
|
[
"MIT"
] | 17
|
2019-01-14T18:18:01.000Z
|
2022-03-07T23:05:46.000Z
|
from .null_input_stream import NullInputStream
from .standard_input_stream import StandardInputStream
from .stream_input_stream import StreamInputStream
from .string_input_stream import StringInputStream
| 40.8
| 54
| 0.901961
| 24
| 204
| 7.333333
| 0.458333
| 0.25
| 0.386364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078431
| 204
| 4
| 55
| 51
| 0.93617
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
b558451abbef440c32cff971440b1eda1e006ef8
| 22,540
|
py
|
Python
|
circuit_figure_generation.py
|
mar-be/master-thesis-code
|
79c102a2b685eb1c54ace12cb6df31f32d4a51ae
|
[
"Apache-2.0"
] | null | null | null |
circuit_figure_generation.py
|
mar-be/master-thesis-code
|
79c102a2b685eb1c54ace12cb6df31f32d4a51ae
|
[
"Apache-2.0"
] | null | null | null |
circuit_figure_generation.py
|
mar-be/master-thesis-code
|
79c102a2b685eb1c54ace12cb6df31f32d4a51ae
|
[
"Apache-2.0"
] | null | null | null |
import os
from matplotlib import pyplot as plt
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit
from numpy import pi
dir = "circuit_drawings"
file_ending = ".pdf"
output = "mpl"
scale = 1
with_layout=False
plot_barriers=False
fold = 11
try:
os.makedirs("circuit_drawings")
except FileExistsError:
pass
def save_figure(circuit:QuantumCircuit, scale, fold, with_layout, plot_barriers, filename):
circuit.draw(output="mpl", scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, style={"margin":[1.7,0,0,0], "figwidth":8}, filename=filename)
def count(circuit:QuantumCircuit, name):
print('#'*40)
print(f"Counts for {name}:")
print(f"Depth: {circuit.depth()-1}")
one_qubit_ops = 0
for op, count in circuit.count_ops().items():
if op in ["measure", "cx", "barrier"]:
continue
one_qubit_ops += count
print(f"One Qubit Ops: {one_qubit_ops}")
print(f"CNOTs: {circuit.num_nonlocal_gates()}")
bv_qreg_q = QuantumRegister(2, 'q')
bv_creg_meas = ClassicalRegister(2, 'meas')
bv = QuantumCircuit(bv_qreg_q, bv_creg_meas)
bv.rz(1.5707963267948961, bv_qreg_q[0])
bv.sx(bv_qreg_q[0])
bv.rz(1.5707963267948966, bv_qreg_q[0])
bv.rz(1.5707963267948966, bv_qreg_q[1])
bv.sx(bv_qreg_q[1])
bv.rz(4.71238898038469, bv_qreg_q[1])
bv.cx(bv_qreg_q[0], bv_qreg_q[1])
bv.rz(1.5707963267948961, bv_qreg_q[0])
bv.sx(bv_qreg_q[0])
bv.rz(1.5707963267948966, bv_qreg_q[0])
bv.rz(1.5707963267948961, bv_qreg_q[1])
bv.sx(bv_qreg_q[1])
bv.rz(1.5707963267948966, bv_qreg_q[1])
bv.barrier(bv_qreg_q[0], bv_qreg_q[1])
bv.measure(bv_qreg_q[0], bv_creg_meas[0])
bv.measure(bv_qreg_q[1], bv_creg_meas[1])
bv.draw(output=output, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/bv{file_ending}")
qft_qreg_q = QuantumRegister(2, 'q')
qft_creg_meas = ClassicalRegister(2, 'meas')
qft = QuantumCircuit(qft_qreg_q, qft_creg_meas)
qft.rz(1.5707963267948966, qft_qreg_q[0])
qft.sx(qft_qreg_q[0])
qft.rz(2.356194490192344, qft_qreg_q[0])
qft.cx(qft_qreg_q[0], qft_qreg_q[1])
qft.rz(5.497787143782137, qft_qreg_q[1])
qft.cx(qft_qreg_q[0], qft_qreg_q[1])
qft.rz(2.356194490192344, qft_qreg_q[1])
qft.sx(qft_qreg_q[1])
qft.rz(1.5707963267948966, qft_qreg_q[1])
qft.barrier(qft_qreg_q[0], qft_qreg_q[1])
qft.measure(qft_qreg_q[0], qft_creg_meas[0])
qft.measure(qft_qreg_q[1], qft_creg_meas[1])
qft.draw(output=output, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/qft{file_ending}")
hwea_qreg_q = QuantumRegister(2, 'q')
hwea_creg_meas = ClassicalRegister(2, 'meas')
hwea = QuantumCircuit(hwea_qreg_q, hwea_creg_meas)
hwea.rz(4.71238898038469, hwea_qreg_q[0])
hwea.sx(hwea_qreg_q[0])
hwea.rz(1.5707963267948966, hwea_qreg_q[0])
hwea.cx(hwea_qreg_q[0], hwea_qreg_q[1])
hwea.sx(hwea_qreg_q[0])
hwea.sx(hwea_qreg_q[0])
hwea.rz(3.141592653589793, hwea_qreg_q[0])
hwea.barrier(hwea_qreg_q[0], hwea_qreg_q[1])
hwea.measure(hwea_qreg_q[0], hwea_creg_meas[0])
hwea.measure(hwea_qreg_q[1], hwea_creg_meas[1])
hwea.draw(output=output, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/hwea{file_ending}")
uccsd_qreg_q = QuantumRegister(2, 'q')
uccsd_creg_meas = ClassicalRegister(2, 'meas')
uccsd = QuantumCircuit(uccsd_qreg_q, uccsd_creg_meas)
uccsd.rz(1.5707963267948961, uccsd_qreg_q[0])
uccsd.sx(uccsd_qreg_q[0])
uccsd.rz(1.5707963267948966, uccsd_qreg_q[0])
uccsd.rz(1.5707963267948961, uccsd_qreg_q[1])
uccsd.sx(uccsd_qreg_q[1])
uccsd.rz(1.5707963267948966, uccsd_qreg_q[1])
uccsd.cx(uccsd_qreg_q[1], uccsd_qreg_q[0])
uccsd.rz(-1.4877468618698795, uccsd_qreg_q[0])
uccsd.cx(uccsd_qreg_q[1], uccsd_qreg_q[0])
uccsd.sx(uccsd_qreg_q[0])
uccsd.rz(1.5707963267948948, uccsd_qreg_q[0])
uccsd.sx(uccsd_qreg_q[1])
uccsd.rz(1.5707963267948948, uccsd_qreg_q[1])
uccsd.cx(uccsd_qreg_q[1], uccsd_qreg_q[0])
uccsd.rz(-1.4877468618698795, uccsd_qreg_q[0])
uccsd.cx(uccsd_qreg_q[1], uccsd_qreg_q[0])
uccsd.rz(3.141592653589793, uccsd_qreg_q[0])
uccsd.sx(uccsd_qreg_q[0])
uccsd.rz(3.141592653589793, uccsd_qreg_q[0])
uccsd.rz(3.141592653589793, uccsd_qreg_q[1])
uccsd.sx(uccsd_qreg_q[1])
uccsd.rz(3.141592653589793, uccsd_qreg_q[1])
uccsd.barrier(uccsd_qreg_q[0], uccsd_qreg_q[1])
uccsd.measure(uccsd_qreg_q[0], uccsd_creg_meas[0])
uccsd.measure(uccsd_qreg_q[1], uccsd_creg_meas[1])
aqft_qreg_q = QuantumRegister(2, 'q')
aqft_creg_meas = ClassicalRegister(2, 'meas')
aqft = QuantumCircuit(aqft_qreg_q, aqft_creg_meas)
aqft.rz(1.5707963267948966, aqft_qreg_q[0])
aqft.sx(aqft_qreg_q[0])
aqft.rz(2.356194490192344, aqft_qreg_q[0])
aqft.cx(aqft_qreg_q[0], aqft_qreg_q[1])
aqft.rz(5.497787143782137, aqft_qreg_q[1])
aqft.cx(aqft_qreg_q[0], aqft_qreg_q[1])
aqft.rz(2.356194490192344, aqft_qreg_q[1])
aqft.sx(aqft_qreg_q[1])
aqft.rz(1.5707963267948966, aqft_qreg_q[1])
aqft.barrier(aqft_qreg_q[0], aqft_qreg_q[1])
aqft.measure(aqft_qreg_q[0], aqft_creg_meas[0])
aqft.measure(aqft_qreg_q[1], aqft_creg_meas[1])
sl_qreg_q = QuantumRegister(2, 'q')
sl_creg_meas = ClassicalRegister(2, 'meas')
supremacy_linear = QuantumCircuit(sl_qreg_q, sl_creg_meas)
supremacy_linear.rz(1.5707963267948961, sl_qreg_q[0])
supremacy_linear.sx(sl_qreg_q[0])
supremacy_linear.rz(1.5707963267948966, sl_qreg_q[0])
supremacy_linear.cx(sl_qreg_q[0], sl_qreg_q[1])
supremacy_linear.rz(3.1415926535897936, sl_qreg_q[0])
supremacy_linear.sx(sl_qreg_q[0])
supremacy_linear.rz(3.9269908169872423, sl_qreg_q[0])
supremacy_linear.sx(sl_qreg_q[0])
supremacy_linear.rz(4.71238898038469, sl_qreg_q[0])
supremacy_linear.rz(3.1415926535897936, sl_qreg_q[1])
supremacy_linear.sx(sl_qreg_q[1])
supremacy_linear.rz(3.9269908169872405, sl_qreg_q[1])
supremacy_linear.sx(sl_qreg_q[1])
supremacy_linear.rz(1.5707963267948943, sl_qreg_q[1])
supremacy_linear.barrier(sl_qreg_q[0], sl_qreg_q[1])
supremacy_linear.measure(sl_qreg_q[0], sl_creg_meas[0])
supremacy_linear.measure(sl_qreg_q[1], sl_creg_meas[1])
grover_qreg_q = QuantumRegister(2, 'q')
grover_creg_meas = ClassicalRegister(2, 'meas')
grover = QuantumCircuit(grover_qreg_q, grover_creg_meas)
grover.rz(1.5707963267948961, grover_qreg_q[0])
grover.sx(grover_qreg_q[0])
grover.rz(1.5707963267948966, grover_qreg_q[0])
grover.cx(grover_qreg_q[0], grover_qreg_q[1])
grover.rz(4.71238898038469, grover_qreg_q[1])
grover.sx(grover_qreg_q[1])
grover.rz(1.5707963267948966, grover_qreg_q[1])
grover.barrier(grover_qreg_q[0], grover_qreg_q[1])
grover.rz(1.5707963267948961, grover_qreg_q[0])
grover.sx(grover_qreg_q[0])
grover.rz(1.5707963267948966, grover_qreg_q[0])
grover.rz(1.5707963267948961, grover_qreg_q[1])
grover.sx(grover_qreg_q[1])
grover.rz(1.5707963267948966, grover_qreg_q[1])
grover.barrier(grover_qreg_q[0], grover_qreg_q[1])
grover.x(grover_qreg_q[0])
grover.rz(1.5707963267948966, grover_qreg_q[1])
grover.sx(grover_qreg_q[1])
grover.rz(4.71238898038469, grover_qreg_q[1])
grover.cx(grover_qreg_q[0], grover_qreg_q[1])
grover.x(grover_qreg_q[0])
grover.rz(4.71238898038469, grover_qreg_q[1])
grover.sx(grover_qreg_q[1])
grover.rz(1.5707963267948966, grover_qreg_q[1])
grover.barrier(grover_qreg_q[0], grover_qreg_q[1])
grover.rz(1.5707963267948961, grover_qreg_q[0])
grover.sx(grover_qreg_q[0])
grover.rz(1.5707963267948966, grover_qreg_q[0])
grover.rz(1.5707963267948961, grover_qreg_q[1])
grover.sx(grover_qreg_q[1])
grover.rz(1.5707963267948966, grover_qreg_q[1])
grover.barrier(grover_qreg_q[0], grover_qreg_q[1])
grover.measure(grover_qreg_q[0], grover_creg_meas[0])
grover.measure(grover_qreg_q[1], grover_creg_meas[1])
part_bv_qreg_q = QuantumRegister(5, 'q')
part_bv_creg_meas = ClassicalRegister(5, 'meas')
part_bv = QuantumCircuit(part_bv_qreg_q, part_bv_creg_meas)
part_bv.rz(1.5707963267948966, part_bv_qreg_q[0])
part_bv.sx(part_bv_qreg_q[0])
part_bv.rz(4.71238898038469, part_bv_qreg_q[0])
part_bv.rz(1.5707963267948961, part_bv_qreg_q[1])
part_bv.sx(part_bv_qreg_q[1])
part_bv.rz(1.5707963267948966, part_bv_qreg_q[1])
part_bv.cx(part_bv_qreg_q[0], part_bv_qreg_q[1])
part_bv.cx(part_bv_qreg_q[1], part_bv_qreg_q[0])
part_bv.cx(part_bv_qreg_q[0], part_bv_qreg_q[1])
part_bv.rz(1.5707963267948961, part_bv_qreg_q[2])
part_bv.sx(part_bv_qreg_q[2])
part_bv.rz(1.5707963267948966, part_bv_qreg_q[2])
part_bv.rz(1.5707963267948961, part_bv_qreg_q[3])
part_bv.sx(part_bv_qreg_q[3])
part_bv.rz(1.5707963267948966, part_bv_qreg_q[3])
part_bv.rz(1.5707963267948961, part_bv_qreg_q[4])
part_bv.sx(part_bv_qreg_q[4])
part_bv.rz(1.5707963267948966, part_bv_qreg_q[4])
part_bv.cx(part_bv_qreg_q[3], part_bv_qreg_q[4])
part_bv.cx(part_bv_qreg_q[4], part_bv_qreg_q[3])
part_bv.cx(part_bv_qreg_q[3], part_bv_qreg_q[4])
part_bv.cx(part_bv_qreg_q[2], part_bv_qreg_q[3])
part_bv.cx(part_bv_qreg_q[3], part_bv_qreg_q[2])
part_bv.cx(part_bv_qreg_q[2], part_bv_qreg_q[3])
part_bv.cx(part_bv_qreg_q[2], part_bv_qreg_q[1])
part_bv.cx(part_bv_qreg_q[1], part_bv_qreg_q[2])
part_bv.cx(part_bv_qreg_q[2], part_bv_qreg_q[1])
part_bv.cx(part_bv_qreg_q[1], part_bv_qreg_q[2])
part_bv.rz(1.5707963267948961, part_bv_qreg_q[1])
part_bv.sx(part_bv_qreg_q[1])
part_bv.rz(1.5707963267948966, part_bv_qreg_q[1])
part_bv.cx(part_bv_qreg_q[0], part_bv_qreg_q[1])
part_bv.cx(part_bv_qreg_q[1], part_bv_qreg_q[0])
part_bv.cx(part_bv_qreg_q[0], part_bv_qreg_q[1])
part_bv.cx(part_bv_qreg_q[3], part_bv_qreg_q[4])
part_bv.cx(part_bv_qreg_q[4], part_bv_qreg_q[3])
part_bv.cx(part_bv_qreg_q[3], part_bv_qreg_q[4])
part_bv.cx(part_bv_qreg_q[3], part_bv_qreg_q[2])
part_bv.cx(part_bv_qreg_q[3], part_bv_qreg_q[4])
part_bv.cx(part_bv_qreg_q[4], part_bv_qreg_q[3])
part_bv.cx(part_bv_qreg_q[3], part_bv_qreg_q[4])
part_bv.cx(part_bv_qreg_q[3], part_bv_qreg_q[2])
part_bv.cx(part_bv_qreg_q[1], part_bv_qreg_q[2])
part_bv.rz(1.5707963267948961, part_bv_qreg_q[1])
part_bv.sx(part_bv_qreg_q[1])
part_bv.rz(1.5707963267948966, part_bv_qreg_q[1])
part_bv.rz(1.5707963267948961, part_bv_qreg_q[2])
part_bv.sx(part_bv_qreg_q[2])
part_bv.rz(1.5707963267948966, part_bv_qreg_q[2])
part_bv.rz(1.5707963267948961, part_bv_qreg_q[3])
part_bv.sx(part_bv_qreg_q[3])
part_bv.rz(1.5707963267948966, part_bv_qreg_q[3])
part_bv.rz(1.5707963267948961, part_bv_qreg_q[4])
part_bv.sx(part_bv_qreg_q[4])
part_bv.rz(1.5707963267948966, part_bv_qreg_q[4])
part_bv.barrier(part_bv_qreg_q[1], part_bv_qreg_q[0], part_bv_qreg_q[2], part_bv_qreg_q[4], part_bv_qreg_q[3])
part_bv.measure(part_bv_qreg_q[0], part_bv_creg_meas[0])
part_bv.measure(part_bv_qreg_q[4], part_bv_creg_meas[1])
part_bv.measure(part_bv_qreg_q[3], part_bv_creg_meas[2])
part_bv.measure(part_bv_qreg_q[1], part_bv_creg_meas[3])
part_bv.measure(part_bv_qreg_q[2], part_bv_creg_meas[4])
part_sl_qreg_q = QuantumRegister(5, 'q')
part_sl_creg_meas = ClassicalRegister(5, 'meas')
part_supremacy_linear = QuantumCircuit(part_sl_qreg_q, part_sl_creg_meas)
part_supremacy_linear.rz(1.5707963267948961, part_sl_qreg_q[0])
part_supremacy_linear.sx(part_sl_qreg_q[0])
part_supremacy_linear.rz(1.5707963267948966, part_sl_qreg_q[0])
part_supremacy_linear.cx(part_sl_qreg_q[0], part_sl_qreg_q[1])
part_supremacy_linear.rz(3.1415926535897936, part_sl_qreg_q[0])
part_supremacy_linear.sx(part_sl_qreg_q[0])
part_supremacy_linear.rz(3.9269908169872423, part_sl_qreg_q[0])
part_supremacy_linear.sx(part_sl_qreg_q[0])
part_supremacy_linear.rz(4.71238898038469, part_sl_qreg_q[0])
part_supremacy_linear.rz(3.141592653589793, part_sl_qreg_q[1])
part_supremacy_linear.sx(part_sl_qreg_q[1])
part_supremacy_linear.rz(1.5707963267948966, part_sl_qreg_q[1])
part_supremacy_linear.rz(1.5707963267948963, part_sl_qreg_q[2])
part_supremacy_linear.sx(part_sl_qreg_q[2])
part_supremacy_linear.rz(3.9269908169872396, part_sl_qreg_q[2])
part_supremacy_linear.sx(part_sl_qreg_q[2])
part_supremacy_linear.rz(1.570796326794896, part_sl_qreg_q[2])
part_supremacy_linear.cx(part_sl_qreg_q[1], part_sl_qreg_q[2])
part_supremacy_linear.rz(-1.5707963267948968, part_sl_qreg_q[1])
part_supremacy_linear.sx(part_sl_qreg_q[1])
part_supremacy_linear.rz(3.9269908169872405, part_sl_qreg_q[1])
part_supremacy_linear.sx(part_sl_qreg_q[1])
part_supremacy_linear.rz(1.5707963267948966, part_sl_qreg_q[1])
part_supremacy_linear.rz(3.141592653589793, part_sl_qreg_q[2])
part_supremacy_linear.sx(part_sl_qreg_q[2])
part_supremacy_linear.rz(1.5707963267948966, part_sl_qreg_q[2])
part_supremacy_linear.rz(1.5707963267948963, part_sl_qreg_q[3])
part_supremacy_linear.sx(part_sl_qreg_q[3])
part_supremacy_linear.rz(3.9269908169872396, part_sl_qreg_q[3])
part_supremacy_linear.sx(part_sl_qreg_q[3])
part_supremacy_linear.rz(1.570796326794896, part_sl_qreg_q[3])
part_supremacy_linear.cx(part_sl_qreg_q[2], part_sl_qreg_q[3])
part_supremacy_linear.rz(3.1415926535897936, part_sl_qreg_q[2])
part_supremacy_linear.sx(part_sl_qreg_q[2])
part_supremacy_linear.rz(3.9269908169872423, part_sl_qreg_q[2])
part_supremacy_linear.sx(part_sl_qreg_q[2])
part_supremacy_linear.rz(4.71238898038469, part_sl_qreg_q[2])
part_supremacy_linear.rz(3.141592653589793, part_sl_qreg_q[3])
part_supremacy_linear.sx(part_sl_qreg_q[3])
part_supremacy_linear.rz(1.5707963267948966, part_sl_qreg_q[3])
part_supremacy_linear.rz(1.5707963267948963, part_sl_qreg_q[4])
part_supremacy_linear.sx(part_sl_qreg_q[4])
part_supremacy_linear.rz(3.9269908169872396, part_sl_qreg_q[4])
part_supremacy_linear.sx(part_sl_qreg_q[4])
part_supremacy_linear.rz(1.570796326794896, part_sl_qreg_q[4])
part_supremacy_linear.cx(part_sl_qreg_q[3], part_sl_qreg_q[4])
part_supremacy_linear.rz(3.141592653589795, part_sl_qreg_q[3])
part_supremacy_linear.rz(1.5707963267948974, part_sl_qreg_q[4])
part_supremacy_linear.sx(part_sl_qreg_q[4])
part_supremacy_linear.rz(4.712388980384688, part_sl_qreg_q[4])
part_supremacy_linear.barrier(part_sl_qreg_q[0], part_sl_qreg_q[1], part_sl_qreg_q[2], part_sl_qreg_q[3], part_sl_qreg_q[4])
part_supremacy_linear.measure(part_sl_qreg_q[0], part_sl_creg_meas[0])
part_supremacy_linear.measure(part_sl_qreg_q[1], part_sl_creg_meas[1])
part_supremacy_linear.measure(part_sl_qreg_q[2], part_sl_creg_meas[2])
part_supremacy_linear.measure(part_sl_qreg_q[3], part_sl_creg_meas[3])
part_supremacy_linear.measure(part_sl_qreg_q[4], part_sl_creg_meas[4])
part_adder_qreg_q = QuantumRegister(5, 'q')
part_adder_creg_meas = ClassicalRegister(5, 'meas')
part_adder = QuantumCircuit(part_adder_qreg_q, part_adder_creg_meas)
part_adder.cx(part_adder_qreg_q[1], part_adder_qreg_q[0])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.x(part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[4])
part_adder.cx(part_adder_qreg_q[4], part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[4])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[3])
part_adder.rz(1.5707963267948961, part_adder_qreg_q[2])
part_adder.sx(part_adder_qreg_q[2])
part_adder.rz(1.5707963267948966, part_adder_qreg_q[2])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[2])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[4], part_adder_qreg_q[3])
part_adder.rz(5.497787143782137, part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[3])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[4], part_adder_qreg_q[3])
part_adder.rz(5.497787143782137, part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[2])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[3])
part_adder.rz(2.356194490192344, part_adder_qreg_q[2])
part_adder.sx(part_adder_qreg_q[2])
part_adder.rz(1.5707963267948966, part_adder_qreg_q[2])
part_adder.cx(part_adder_qreg_q[1], part_adder_qreg_q[2])
part_adder.rz(1.5707963267948961, part_adder_qreg_q[1])
part_adder.sx(part_adder_qreg_q[1])
part_adder.rz(1.5707963267948966, part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.rz(5.497787143782137, part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[1])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[0])
part_adder.rz(5.497787143782137, part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[1], part_adder_qreg_q[0])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.rz(0.7853981633974474, part_adder_qreg_q[0])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[1])
part_adder.rz(5.497787143782137, part_adder_qreg_q[1])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[2])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[1])
part_adder.x(part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[1], part_adder_qreg_q[0])
part_adder.rz(5.497787143782137, part_adder_qreg_q[0])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[1], part_adder_qreg_q[0])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[1])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[0])
part_adder.rz(5.497787143782137, part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[1], part_adder_qreg_q[0])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.rz(2.356194490192344, part_adder_qreg_q[0])
part_adder.sx(part_adder_qreg_q[0])
part_adder.rz(1.5707963267948966, part_adder_qreg_q[0])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[1])
part_adder.rz(5.497787143782137, part_adder_qreg_q[1])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[2])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.cx(part_adder_qreg_q[1], part_adder_qreg_q[0])
part_adder.cx(part_adder_qreg_q[0], part_adder_qreg_q[1])
part_adder.x(part_adder_qreg_q[0])
part_adder.cx(part_adder_qreg_q[1], part_adder_qreg_q[2])
part_adder.cx(part_adder_qreg_q[1], part_adder_qreg_q[0])
part_adder.rz(1.5707963267948961, part_adder_qreg_q[2])
part_adder.sx(part_adder_qreg_q[2])
part_adder.rz(1.5707963267948966, part_adder_qreg_q[2])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[4])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[4])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[3])
part_adder.rz(5.497787143782137, part_adder_qreg_q[4])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[4])
part_adder.x(part_adder_qreg_q[4])
part_adder.cx(part_adder_qreg_q[4], part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[4])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[2])
part_adder.rz(5.497787143782137, part_adder_qreg_q[2])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[2])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[4], part_adder_qreg_q[3])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[2], part_adder_qreg_q[3])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[2])
part_adder.rz(5.497787143782137, part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[4], part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[4])
part_adder.cx(part_adder_qreg_q[4], part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[4])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[2])
part_adder.rz(5.497787143782137, part_adder_qreg_q[2])
part_adder.rz(0.7853981633974487, part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[2])
part_adder.x(part_adder_qreg_q[2])
part_adder.rz(2.356194490192344, part_adder_qreg_q[4])
part_adder.sx(part_adder_qreg_q[4])
part_adder.rz(1.5707963267948966, part_adder_qreg_q[4])
part_adder.cx(part_adder_qreg_q[4], part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[4])
part_adder.cx(part_adder_qreg_q[4], part_adder_qreg_q[3])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[4])
part_adder.cx(part_adder_qreg_q[3], part_adder_qreg_q[2])
part_adder.barrier(part_adder_qreg_q[0], part_adder_qreg_q[4], part_adder_qreg_q[1], part_adder_qreg_q[2], part_adder_qreg_q[3])
part_adder.measure(part_adder_qreg_q[4], part_adder_creg_meas[0])
part_adder.measure(part_adder_qreg_q[2], part_adder_creg_meas[1])
part_adder.measure(part_adder_qreg_q[3], part_adder_creg_meas[2])
part_adder.measure(part_adder_qreg_q[0], part_adder_creg_meas[3])
part_adder.measure(part_adder_qreg_q[1], part_adder_creg_meas[4])
save_figure(circuit=bv, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/bv{file_ending}")
count(bv, "bv")
save_figure(circuit=qft, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/qft{file_ending}")
count(qft, "qft")
save_figure(circuit=hwea, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/hwea{file_ending}")
count(hwea, "hwea")
save_figure(circuit=grover, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/grover{file_ending}")
count(grover, "grover")
save_figure(circuit=uccsd, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/uccsd{file_ending}")
count(uccsd, "uccsd")
save_figure(circuit=supremacy_linear, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/supremacy_linear{file_ending}")
count(supremacy_linear, "supremacy_linear")
save_figure(circuit=part_bv, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/part_bv{file_ending}")
count(part_bv, "part_bv")
save_figure(circuit=part_supremacy_linear, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/part_supremacy_linear{file_ending}")
count(part_supremacy_linear, "part_supremacy_linear")
save_figure(circuit=part_adder, scale=scale, fold = fold, with_layout=with_layout, plot_barriers=plot_barriers, filename=f"{dir}/part_adder{file_ending}")
count(part_adder, "part_adder")
| 47.653277
| 177
| 0.811624
| 4,410
| 22,540
| 3.7161
| 0.025397
| 0.155297
| 0.149134
| 0.160605
| 0.881621
| 0.815292
| 0.793019
| 0.750549
| 0.718819
| 0.687393
| 0
| 0.13666
| 0.048802
| 22,540
| 472
| 178
| 47.754237
| 0.627705
| 0
| 0
| 0.531818
| 0
| 0
| 0.027464
| 0.016061
| 0
| 0
| 0
| 0
| 0
| 1
| 0.004545
| false
| 0.002273
| 0.009091
| 0
| 0.013636
| 0.011364
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
b59ae08472a885d6e26020cd4c416a3030db9025
| 2,933
|
py
|
Python
|
tests/contract/test_entity.py
|
alucardxh/zvt
|
02a2c64828146f4e15e702150f26a5ab6647a91c
|
[
"MIT"
] | 1
|
2021-09-08T17:00:23.000Z
|
2021-09-08T17:00:23.000Z
|
tests/contract/test_entity.py
|
alucardxh/zvt
|
02a2c64828146f4e15e702150f26a5ab6647a91c
|
[
"MIT"
] | 1
|
2021-12-02T11:21:52.000Z
|
2021-12-02T11:21:52.000Z
|
tests/contract/test_entity.py
|
alucardxh/zvt
|
02a2c64828146f4e15e702150f26a5ab6647a91c
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from zvt.contract import TradableEntity, IntervalLevel
from zvt.utils.time_utils import to_pd_timestamp
def test_get_1min_timestamps():
timestamps = []
for timestamp in TradableEntity.get_interval_timestamps(start_date='2020-06-17', end_date='2020-06-18',
level=IntervalLevel.LEVEL_1MIN):
timestamps.append(timestamp)
assert to_pd_timestamp('2020-06-17 09:31:00') in timestamps
assert to_pd_timestamp('2020-06-17 11:30:00') in timestamps
assert to_pd_timestamp('2020-06-17 13:01:00') in timestamps
assert to_pd_timestamp('2020-06-17 15:00:00') in timestamps
assert to_pd_timestamp('2020-06-17 09:31:00') in timestamps
assert to_pd_timestamp('2020-06-17 11:30:00') in timestamps
assert to_pd_timestamp('2020-06-17 13:01:00') in timestamps
assert to_pd_timestamp('2020-06-18 15:00:00') in timestamps
def test_get_1h_timestamps():
timestamps = []
for timestamp in TradableEntity.get_interval_timestamps(start_date='2020-06-17', end_date='2020-06-18',
level=IntervalLevel.LEVEL_1HOUR):
timestamps.append(timestamp)
assert to_pd_timestamp('2020-06-17 10:30:00') in timestamps
assert to_pd_timestamp('2020-06-17 11:30:00') in timestamps
assert to_pd_timestamp('2020-06-17 14:00:00') in timestamps
assert to_pd_timestamp('2020-06-17 15:00:00') in timestamps
assert to_pd_timestamp('2020-06-17 10:30:00') in timestamps
assert to_pd_timestamp('2020-06-17 11:30:00') in timestamps
assert to_pd_timestamp('2020-06-17 14:00:00') in timestamps
assert to_pd_timestamp('2020-06-18 15:00:00') in timestamps
def test_is_finished_kdata_timestamp():
assert TradableEntity.is_finished_kdata_timestamp('2020-06-17 10:30', IntervalLevel.LEVEL_30MIN)
assert not TradableEntity.is_finished_kdata_timestamp('2020-06-17 10:30', IntervalLevel.LEVEL_1DAY)
assert TradableEntity.is_finished_kdata_timestamp('2020-06-17 11:30', IntervalLevel.LEVEL_30MIN)
assert not TradableEntity.is_finished_kdata_timestamp('2020-06-17 11:30', IntervalLevel.LEVEL_1DAY)
assert TradableEntity.is_finished_kdata_timestamp('2020-06-17 13:30', IntervalLevel.LEVEL_30MIN)
assert not TradableEntity.is_finished_kdata_timestamp('2020-06-17 13:30', IntervalLevel.LEVEL_1DAY)
def test_open_close():
assert TradableEntity.is_open_timestamp('2020-06-17 09:30')
assert TradableEntity.is_close_timestamp('2020-06-17 15:00')
timestamps = []
for timestamp in TradableEntity.get_interval_timestamps(start_date='2020-06-17', end_date='2020-06-18',
level=IntervalLevel.LEVEL_1HOUR):
timestamps.append(timestamp)
assert TradableEntity.is_open_timestamp(timestamps[0])
assert TradableEntity.is_close_timestamp(timestamps[-1])
| 47.306452
| 107
| 0.717354
| 426
| 2,933
| 4.71831
| 0.126761
| 0.089552
| 0.099502
| 0.18607
| 0.90597
| 0.837811
| 0.827363
| 0.827363
| 0.827363
| 0.824378
| 0
| 0.159354
| 0.17627
| 2,933
| 61
| 108
| 48.081967
| 0.672599
| 0.00716
| 0
| 0.613636
| 0
| 0
| 0.169072
| 0
| 0
| 0
| 0
| 0
| 0.590909
| 1
| 0.090909
| false
| 0
| 0.045455
| 0
| 0.136364
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
a914974ca99d76ada501cb7b4318972d2e3f6032
| 8,104
|
py
|
Python
|
Train/Train_TPC_module.py
|
giussepi/cyto_CRLM
|
4489d5d81c4270ec7b6048ceb2f2a02bfa699177
|
[
"Apache-2.0"
] | null | null | null |
Train/Train_TPC_module.py
|
giussepi/cyto_CRLM
|
4489d5d81c4270ec7b6048ceb2f2a02bfa699177
|
[
"Apache-2.0"
] | 6
|
2020-03-24T18:11:41.000Z
|
2022-03-12T00:16:18.000Z
|
Train/Train_TPC_module.py
|
giussepi/cyto_CRLM
|
4489d5d81c4270ec7b6048ceb2f2a02bfa699177
|
[
"Apache-2.0"
] | null | null | null |
import torch
import time
import copy
import logging
def train_model(model, dataloaders,criterion, optimizer, scheduler,config):
num_epochs= config.num_epochs
display_size= config.display_size
save_epoch= config.save_epoch
save_path= config.save_path
device_ids = config.device_ids
device = torch.device('cuda:{}'.format(','.join([str(i) for i in device_ids])) \
if torch.cuda.device_count()>0 else torch.device('cpu'))
since = time.time()
dataset_sizes = {x: len(dataloaders[x].dataset) for x in ['train', 'val']}
train_loss = []
train_acc = []
eval_loss = []
eval_acc = []
best_model_wts = copy.deepcopy(model.state_dict())
best_acc = 0.0
#model.cuda()
for epoch in range(num_epochs):
print('Epoch {}/{}'.format(epoch, num_epochs - 1))
print('-' * 10)
logging.info('Epoch {}/{}'.format(epoch, num_epochs - 1))
logging.info('-' * 10)
# Each epoch has a training and validation phase
for phase in ['train', 'val']:
if phase == 'train':
scheduler.step()
model.train() # Set model to training mode
else:
model.eval() # Set model to evaluate mode
running_loss = 0.0
running_corrects = 0
# Iterate over data.
for batch_index,(inputs, labels) in enumerate(dataloaders[phase]):
inputs = inputs.to(device).float()
labels = labels.to(device).long()
# zero the parameter gradients
optimizer.zero_grad()
# forward
# track history if only in train
with torch.set_grad_enabled(phase == 'train'):
outputs = model(inputs)
_, preds = torch.max(outputs, 1)
loss = criterion(outputs, labels)
# backward + optimize only if in training phase
if phase == 'train':
loss.backward()
optimizer.step()
# statistics
running_loss += loss.item() * inputs.size(0)
running_corrects += torch.sum(preds == labels.data).float()
if phase == 'train' and batch_index% display_size==0:
print('{} Loss: {:.4f} Acc: {:.4f}'.format(phase, \
running_loss/(batch_index+1)/inputs.shape[0], \
running_corrects.double()/(batch_index+1)/inputs.shape[0]))
epoch_loss = running_loss / dataset_sizes[phase]
epoch_acc = running_corrects.double() / dataset_sizes[phase]
if phase=='train':
train_loss.append(epoch_loss)
train_acc.append(epoch_acc)
torch.save(train_loss,save_path + 'train_loss.pth')
torch.save(train_acc,save_path + 'train_acc.pth')
if phase=='val':
#print(eval_acc)
eval_loss.append(epoch_loss)
eval_acc.append(epoch_acc)
torch.save(eval_loss,save_path + 'eval_loss.pth')
torch.save(eval_acc,save_path + 'eval_acc.pth')
if phase == 'val' and epoch_acc > best_acc:
best_acc = epoch_acc
best_model_wts = copy.deepcopy(model.state_dict())
print('{} Loss: {:.4f} Acc: {:.4f}'.format(phase,epoch_loss,epoch_acc))
logging.info('{} Loss: {:.4f} Acc: {:.4f}'.format(phase,epoch_loss,epoch_acc))
if (epoch+1)%save_epoch == 0:
torch.save(model.state_dict(),save_path + 'TPC_%03d.pth'%(epoch+1))
print("model saved %d"%(epoch+1))
time_elapsed = time.time() - since
print('Training complete in {:.0f}m {:.0f}s'.format(time_elapsed // 60, time_elapsed % 60))
print('Best val Acc: {:4f}'.format(best_acc))
logging.info('Training complete in {:.0f}m {:.0f}s'.format(time_elapsed // 60, time_elapsed % 60))
logging.info('Best val Acc: {:4f}'.format(best_acc))
# load best model weights
model.load_state_dict(best_model_wts)
torch.save(model.state_dict(),save_path+'TPC_best.pth')
def train_model_bak(model, dataloaders,criterion, optimizer, scheduler, num_epochs=25,\
display_size=100,save_epoch=5,save_path='./'):
since = time.time()
dataset_sizes = {x: len(dataloaders[x].dataset) for x in ['train', 'val']}
train_loss = []
train_acc = []
eval_loss = []
eval_acc = []
#model.cuda()
for epoch in range(num_epochs):
print('Epoch {}/{}'.format(epoch, num_epochs - 1))
print('-' * 10)
logging.info('Epoch {}/{}'.format(epoch, num_epochs - 1))
logging.info('-' * 10)
# Each epoch has a training and validation phase
for phase in ['train', 'val']:
if phase == 'train':
scheduler.step()
model.train() # Set model to training mode
else:
model.eval() # Set model to evaluate mode
running_loss = 0.0
running_corrects = 0
# Iterate over data.
for batch_index,(inputs, labels) in enumerate(dataloaders[phase]):
inputs = inputs.cuda().float()
labels = labels.cuda().long()
# zero the parameter gradients
optimizer.zero_grad()
# forward
# track history if only in train
with torch.set_grad_enabled(phase == 'train'):
outputs = model(inputs)
_, preds = torch.max(outputs, 1)
loss = criterion(outputs, labels)
# backward + optimize only if in training phase
if phase == 'train':
loss.backward()
optimizer.step()
# statistics
running_loss += loss.item() * inputs.size(0)
running_corrects += torch.sum(preds == labels.data).float()
if phase == 'train' and batch_index% display_size==0:
print('{} Loss: {:.4f} Acc: {:.4f}'.format(phase, \
running_loss/(batch_index+1)/inputs.shape[0], \
running_corrects.double()/(batch_index+1)/inputs.shape[0]))
epoch_loss = running_loss / dataset_sizes[phase]
epoch_acc = running_corrects.double() / dataset_sizes[phase]
train_loss.append(epoch_loss)
train_acc.append(epoch_acc)
torch.save(train_loss,save_path + 'train_loss.pth')
torch.save(train_acc,save_path + 'train_acc.pth')
print('{} Loss: {:.4f} Acc: {:.4f}'.format(phase,epoch_loss,epoch_acc))
logging.info('{} Loss: {:.4f} Acc: {:.4f}'.format(phase,epoch_loss,epoch_acc))
if phase=='val':
eval_loss.append(epoch_loss)
eval_acc.append(epoch_acc)
torch.save(epoch_loss,save_path + 'eval_loss.pth')
torch.save(epoch_acc,save_path + 'eval_acc.pth')
if (epoch+1)%save_epoch == 0:
torch.save(model.state_dict(),save_path + 'TCP_%03d.pth'%(epoch+1))
print("model saved %d"%(epoch+1))
time_elapsed = time.time() - since
print('Training complete in {:.0f}m {:.0f}s'.format(time_elapsed // 60, time_elapsed % 60))
print('Best val Acc: {:4f}'.format(best_acc))
logging.info('Training complete in {:.0f}m {:.0f}s'.format(time_elapsed // 60, time_elapsed % 60))
logging.info('Best val Acc: {:4f}'.format(best_acc))
| 40.318408
| 122
| 0.522458
| 908
| 8,104
| 4.480176
| 0.129956
| 0.027532
| 0.02704
| 0.016224
| 0.866765
| 0.8412
| 0.8412
| 0.830383
| 0.805556
| 0.786136
| 0
| 0.017724
| 0.352542
| 8,104
| 200
| 123
| 40.52
| 0.757576
| 0.068238
| 0
| 0.786765
| 0
| 0
| 0.0926
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.014706
| false
| 0
| 0.029412
| 0
| 0.044118
| 0.102941
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a956257e4b85a4db3727b31a5fedaac1bbaa36c6
| 1,590
|
py
|
Python
|
kooplex-proxy/proxy/crud.py
|
enasequence/covid-workflow-manager
|
185899b236f925dadb45ea5f224713202c4e7b00
|
[
"Apache-2.0"
] | 5
|
2020-06-29T19:50:36.000Z
|
2022-01-31T09:16:29.000Z
|
kooplex-proxy/proxy/crud.py
|
enasequence/covid-workflow-manager
|
185899b236f925dadb45ea5f224713202c4e7b00
|
[
"Apache-2.0"
] | 10
|
2020-06-29T19:48:57.000Z
|
2022-02-13T11:54:06.000Z
|
kooplex-proxy/proxy/crud.py
|
enasequence/covid-workflow-manager
|
185899b236f925dadb45ea5f224713202c4e7b00
|
[
"Apache-2.0"
] | 2
|
2020-06-25T13:40:52.000Z
|
2021-02-03T20:23:09.000Z
|
from sqlalchemy.orm import Session
import models
def get_covid_country_weekly(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.CovidCountryWeekly).offset(skip).limit(limit).all()
def get_unique_vcf_append(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.UniqueVCFAppend).offset(skip).limit(limit).all()
def get_vcf_all(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.VCFAll).offset(skip).limit(limit).all()
def get_cov(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.Cov).offset(skip).limit(limit).all()
def get_meta(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.Meta).offset(skip).limit(limit).all()
def get_unique_cov_append(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.UniqueCovAppend).offset(skip).limit(limit).all()
def get_lineage_def(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.LineageDef).offset(skip).limit(limit).all()
def get_operation(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.Operation).offset(skip).limit(limit).all()
def get_unique_cov(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.UniqueCov).offset(skip).limit(limit).all()
def get_unique_vcf(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.UniqueVCF).offset(skip).limit(limit).all()
def get_vcf_all_append(db: Session, skip: int = 0, limit: int = 100):
return db.query(models.VCFAllAppend).offset(skip).limit(limit).all()
| 33.829787
| 78
| 0.705031
| 250
| 1,590
| 4.392
| 0.144
| 0.060109
| 0.130237
| 0.160291
| 0.818761
| 0.797814
| 0.797814
| 0.692168
| 0.692168
| 0.492714
| 0
| 0.032
| 0.13522
| 1,590
| 46
| 79
| 34.565217
| 0.766545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.458333
| false
| 0
| 0.083333
| 0.458333
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
a996c8357d85160b00c7d3a4653b061b5bb8e38a
| 124
|
py
|
Python
|
pose_format/__init__.py
|
yairc2223/pose-format
|
6556433193582f8a7ed80d58d19ec11749e8606b
|
[
"MIT"
] | 11
|
2020-09-02T02:58:23.000Z
|
2022-01-20T09:17:26.000Z
|
pose_format/__init__.py
|
yairc2223/pose-format
|
6556433193582f8a7ed80d58d19ec11749e8606b
|
[
"MIT"
] | 5
|
2021-12-10T15:48:59.000Z
|
2022-02-21T15:53:20.000Z
|
pose_format/__init__.py
|
yairc2223/pose-format
|
6556433193582f8a7ed80d58d19ec11749e8606b
|
[
"MIT"
] | 6
|
2020-09-21T02:21:26.000Z
|
2022-02-05T17:18:44.000Z
|
from pose_format.pose import Pose
from pose_format.pose_body import PoseBody
from pose_format.pose_header import PoseHeader
| 31
| 46
| 0.879032
| 20
| 124
| 5.2
| 0.4
| 0.230769
| 0.403846
| 0.519231
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 124
| 3
| 47
| 41.333333
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
8d3cc3c2be883a0b058735a525362761810d51a9
| 8,007
|
py
|
Python
|
test.py
|
natalierpayne/join_replicate_fqs
|
ad560963100e6b4a98927e2f4ef9f317b53adb71
|
[
"MIT"
] | null | null | null |
test.py
|
natalierpayne/join_replicate_fqs
|
ad560963100e6b4a98927e2f4ef9f317b53adb71
|
[
"MIT"
] | null | null | null |
test.py
|
natalierpayne/join_replicate_fqs
|
ad560963100e6b4a98927e2f4ef9f317b53adb71
|
[
"MIT"
] | null | null | null |
""" Tests for join_replicate_fqs.py """
import os
import re
import gzip
from subprocess import getstatusoutput
from shutil import rmtree
PRG = './join_replicate_fqs.py'
# pylint:disable=consider-using-with,unspecified-encoding
# --------------------------------------------------
def test_exists():
""" Program exists """
assert os.path.isfile(PRG)
# --------------------------------------------------
def test_usage():
""" Program prints usage statement with help flag """
for flag in ['-h', '--help']:
rv, out = getstatusoutput(f'{PRG} {flag}')
assert rv == 0
assert out.lower().startswith('usage')
# --------------------------------------------------
def test_dies_bad_file():
""" Program fails with nonexistent file """
rv, out = getstatusoutput(f'{PRG} oo -f foo')
assert rv != 0
assert out.lower().startswith('usage:')
assert re.search("foo does not exist. Please provide valid filename.", out)
# -------------------------------------------------
def test_dies_no_task():
""" Program fails without -c or -e"""
suffix = '_WR'
rv, out = getstatusoutput(f'{PRG} {suffix} -f inputs/*.fq')
assert rv != 0
assert out.lower().startswith('usage:')
assert re.search('join_replicate_fqs.py: error:', out)
# -------------------------------------------------
def test_dies_o_without_c():
""" Program fails when -o used without -c"""
suffix = '_WR'
rv, out = getstatusoutput(f'{PRG} {suffix} -f inputs/*.fq -o')
assert rv != 0
assert out.lower().startswith('usage:')
assert re.search('join_replicate_fqs.py: error:', out)
# -------------------------------------------------
def test_dies_d_without_e():
""" Program fails when -d used without -e"""
suffix = '_WR'
rv, out = getstatusoutput(f'{PRG} {suffix} -f inputs/*.fq -d')
assert rv != 0
assert out.lower().startswith('usage:')
assert re.search('join_replicate_fqs.py: error:', out)
# -------------------------------------------------
def test_dies_e_without_d():
""" Program fails when -e used without -d"""
suffix = '_WR'
rv, out = getstatusoutput(f'{PRG} {suffix} -f inputs/*.fq -e')
assert rv != 0
assert out.lower().startswith('usage:')
assert re.search('join_replicate_fqs.py: error:', out)
# --------------------------------------------------
def test_dies_bad_pattern():
""" Program fails to find replicates with bad pattern """
rv, out = getstatusoutput(f'{PRG} foo -f inputs/*.fq -ed exdir')
assert rv != 0
assert out == ("No replicates were found! Check ['foo'] is correct.")
if os.path.isdir('exdir'):
rmtree('exdir')
# -------------------------------------------------
def test_fqs_concat():
""" Program concatenates replicate fq files """
suffix = '_WR'
rv, out = getstatusoutput(f'{PRG} {suffix} -f inputs/*.fq -c -o outdir')
assert rv == 0
assert out == ''
assert os.path.isdir('outdir')
assert os.path.isfile('outdir/ind_1.1.fq')
assert os.path.isfile('outdir/ind_1.2.fq')
with open('outdir/ind_1.1.fq', encoding='utf-8') as fh:
assert fh.read() == open('expected/concat/ind_1.1.fq').read()
with open('outdir/ind_1.2.fq', encoding='utf-8') as fh:
assert fh.read() == open('expected/concat/ind_1.2.fq').read()
if os.path.isdir('outdir'):
rmtree('outdir')
# -------------------------------------------------
def test_fqs_extract():
""" Program extracts replicate fq files """
suffix = '_WR'
rv, out = getstatusoutput(f'{PRG} {suffix} -f inputs/*.fq -e -d outdir')
assert rv == 0
assert out == ''
assert os.path.isdir('outdir')
assert os.path.isfile('outdir/ind_1.1.fq')
assert os.path.isfile('outdir/ind_1_WR.1.fq')
assert os.path.isfile('outdir/ind_1.2.fq')
assert os.path.isfile('outdir/ind_1_WR.2.fq')
with open('outdir/ind_1.1.fq', encoding='utf-8') as fh:
assert fh.read().strip() == \
open('expected/extract/ind_1.1.fq').read().strip()
with open('outdir/ind_1_WR.1.fq', encoding='utf-8') as fh:
assert fh.read().strip() == \
open('expected/extract/ind_1_WR.1.fq').read().strip()
with open('outdir/ind_1.2.fq', encoding='utf-8') as fh:
assert fh.read().strip() == \
open('expected/extract/ind_1.2.fq').read().strip()
with open('outdir/ind_1_WR.2.fq', encoding='utf-8') as fh:
assert fh.read().strip() == \
open('expected/extract/ind_1_WR.2.fq').read().strip()
if os.path.isdir('outdir'):
rmtree('outdir')
# -------------------------------------------------
def test_fqs_concat_extract():
""" Program concatenates and extracts replicate files """
rv, out = getstatusoutput(f'{PRG} _WR -f inputs/*.fq -co catdir -ed exdir')
assert rv == 0
assert out == ''
assert os.path.isdir('catdir')
assert os.path.isfile('catdir/ind_1.1.fq')
assert os.path.isfile('catdir/ind_1.2.fq')
with open('catdir/ind_1.1.fq', encoding='utf-8') as fh:
assert fh.read() == open('expected/concat/ind_1.1.fq').read()
with open('catdir/ind_1.2.fq', encoding='utf-8') as fh:
assert fh.read() == open('expected/concat/ind_1.2.fq').read()
if os.path.isdir('catdir'):
rmtree('catdir')
assert os.path.isdir('exdir')
assert os.path.isfile('exdir/ind_1.1.fq')
assert os.path.isfile('exdir/ind_1_WR.1.fq')
assert os.path.isfile('exdir/ind_1.2.fq')
assert os.path.isfile('exdir/ind_1_WR.2.fq')
with open('exdir/ind_1.1.fq', encoding='utf-8') as fh:
assert fh.read().strip() == \
open('expected/extract/ind_1.1.fq').read().strip()
with open('exdir/ind_1_WR.1.fq', encoding='utf-8') as fh:
assert fh.read().strip() == \
open('expected/extract/ind_1_WR.1.fq').read().strip()
with open('exdir/ind_1.2.fq', encoding='utf-8') as fh:
assert fh.read().strip() == \
open('expected/extract/ind_1.2.fq').read().strip()
with open('exdir/ind_1_WR.2.fq', encoding='utf-8') as fh:
assert fh.read().strip() == \
open('expected/extract/ind_1_WR.2.fq').read().strip()
if os.path.isdir('exdir'):
rmtree('exdir')
# -------------------------------------------------
def test_gz_concat_extract():
""" Program concatenates and extracts gzipped replicate files """
rv, out = getstatusoutput(f'{PRG} _WR -f inputs/*.gz -co catdir -ed exdir')
assert rv == 0
assert out == ''
assert os.path.isdir('catdir')
assert os.path.isfile('catdir/ind_1.1.fq.gz')
assert os.path.isfile('catdir/ind_1.2.fq.gz')
with gzip.open('catdir/ind_1.1.fq.gz', 'rt') as fh:
assert fh.read() == \
gzip.open('expected/gz_concat/ind_1.1.fq.gz', 'rt').read()
with gzip.open('catdir/ind_1.2.fq.gz', 'rt') as fh:
assert fh.read() == \
gzip.open('expected/gz_concat/ind_1.2.fq.gz', 'rt').read()
if os.path.isdir('catdir'):
rmtree('catdir')
assert os.path.isdir('exdir')
assert os.path.isfile('exdir/ind_1.1.fq.gz')
assert os.path.isfile('exdir/ind_1_WR.1.fq.gz')
assert os.path.isfile('exdir/ind_1.2.fq.gz')
assert os.path.isfile('exdir/ind_1_WR.2.fq.gz')
with gzip.open('exdir/ind_1.1.fq.gz', 'rt') as fh:
assert fh.read() == \
gzip.open('expected/gz_extract/ind_1.1.fq.gz', 'rt').read()
with gzip.open('exdir/ind_1_WR.1.fq.gz', 'rt') as fh:
assert fh.read() == \
gzip.open('expected/gz_extract/ind_1_WR.1.fq.gz', 'rt').read()
with gzip.open('exdir/ind_1.2.fq.gz', 'rt') as fh:
assert fh.read() == \
gzip.open('expected/gz_extract/ind_1.2.fq.gz', 'rt').read()
with gzip.open('exdir/ind_1_WR.2.fq.gz', 'rt') as fh:
assert fh.read() == \
gzip.open('expected/gz_extract/ind_1_WR.2.fq.gz', 'rt').read()
if os.path.isdir('exdir'):
rmtree('exdir')
| 36.067568
| 79
| 0.562633
| 1,145
| 8,007
| 3.820087
| 0.095197
| 0.049383
| 0.068587
| 0.078189
| 0.836305
| 0.819845
| 0.784636
| 0.772748
| 0.76406
| 0.708276
| 0
| 0.020244
| 0.191832
| 8,007
| 221
| 80
| 36.230769
| 0.655695
| 0.146996
| 0
| 0.552632
| 0
| 0
| 0.305535
| 0.10877
| 0
| 0
| 0
| 0
| 0.460526
| 1
| 0.078947
| false
| 0
| 0.032895
| 0
| 0.111842
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5714f73ce724fa6a48760a262fe40938aac86506
| 26,768
|
py
|
Python
|
eval/survey_utils.py
|
CristianViorelPopa/BART-TL-topic-label-generation
|
d2cee2438bb855e426548b39de1ed89c6db08840
|
[
"MIT"
] | 6
|
2021-05-01T08:01:49.000Z
|
2022-03-13T11:54:17.000Z
|
eval/survey_utils.py
|
CristianViorelPopa/BART-TL-topic-label-generation
|
d2cee2438bb855e426548b39de1ed89c6db08840
|
[
"MIT"
] | 3
|
2021-05-07T09:05:45.000Z
|
2021-06-30T15:32:21.000Z
|
eval/survey_utils.py
|
CristianViorelPopa/BART-TL-topic-label-generation
|
d2cee2438bb855e426548b39de1ed89c6db08840
|
[
"MIT"
] | 1
|
2021-11-18T09:10:45.000Z
|
2021-11-18T09:10:45.000Z
|
import numpy as np
import pandas as pd
import nltk
from nltk.corpus import stopwords
nltk.download('stopwords') # run once
stop_words = stopwords.words('english')
invalid_tokens = stop_words + \
['we', 'once', 'that', 'you', 'i', 'an', 'yet', 'whom', 'was', 'being',
'my', 'our', 'their', 'he', 'she', 'us', 'them', 'him', 'her', 'twice',
'had', 'the', 'your', 'his', 'would', 'mr.', 'sir', 'not', 'ok', 'also',
'mr', 'one', 'no', 'while', 'as']
invalid_tokens = list(set(invalid_tokens))
num_minimum_annotators = 2
total_annotated_labels = 0
insufficiently_annotated_labels = 0
sufficiently_annotated_labels = 0
def preprocess_label(label):
return label.split('(')[0].replace('_', ' ').strip()
def get_model_scores(survey_csv_files, topics_csv_file, model_hypos_file, start=2, end=None, ignore_validation=True):
answer_values = {
'Not relevant at all': 0,
'A bit relevant': 1,
# 'Somehow relevant': 2,
# 'Relevant': 3,
'Relevant': 2,
# 'Very relevant': 4
'Very relevant': 3
}
topic_labels_scores = {}
target_topic_terms = []
for csv_file in survey_csv_files:
# if csv_file == sys.argv[2]:
# import pdb
# pdb.set_trace()
responses = pd.read_csv(csv_file)
invalid_tokens_scores = []
for _ in range(responses.shape[0]):
invalid_tokens_scores.append([])
# skip timestamp and nickname columns
if end is None:
end = len(responses.columns)
for question in responses.columns[start:end]:
# topic_terms = ' '.join(question.split('\n')[1].split('[')[0][:-1].split(', '))
# bugged question
if len(question.split('\n')) == 1:
continue
topic_terms = ' '.join(question
.split('Select how relevant the terms below are for describing the following word sequence:')[1]
.split('Here are two sample paragraphs')[0]
.split(', '))
else:
topic_terms = ' '.join(question.split('\n')[1].split('[')[0][:].split(', '))
label = question.split('[')[1].split(']')[0]
if topic_terms not in topic_labels_scores:
topic_labels_scores[topic_terms] = {}
answers = responses[question].values
if label in invalid_tokens:
for idx in range(len(answers)):
if not pd.isnull(answers[idx]):
invalid_tokens_scores[idx].append(answer_values[answers[idx]])
answers = answers[~pd.isnull(answers)]
answers = [answer_values[answer] for answer in answers]
if len(answers) > 0:
# topic_labels_scores[topic_terms][label] = np.mean(answers)
if label not in invalid_tokens:
# if len(answers) < num_minimum_annotators:
# insufficiently_annotated_labels += 1
# else:
if label not in topic_labels_scores[topic_terms]:
topic_labels_scores[topic_terms][label] = []
# sufficiently_annotated_labels += 1
topic_labels_scores[topic_terms][label].extend(answers)
# sufficiently_annotated_labels += 1
else:
if label not in topic_labels_scores[topic_terms] and label not in invalid_tokens:
topic_labels_scores[topic_terms][label] = []
# topic_labels_scores[topic_terms][label] = -1.0
# print(topic_terms)
# only account for the topics in the last survey
if csv_file == survey_csv_files[-1]:
target_topic_terms.append(topic_terms)
valid_answers = [sum(np.array(user_answers) <= 1) >= 0.25 * len(user_answers)
for user_answers in invalid_tokens_scores]
if not ignore_validation and not np.all(valid_answers):
print('WARNING: Not all answers passed the validation!')
import pdb
pdb.set_trace()
# topic_labels_scores['voice direction speed signal button format technique light command procedure']['accelerometer'] = 3.0
# topic_labels_scores['voice direction speed signal button format technique light command procedure']['addition'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['observation'] = 2.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['metabolism'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['circadian rhythm'] = 3.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['contradiction'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['proteus'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['hypnotism'] = 3.5
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['subjective experience'] = 4.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['vibration'] = 1.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['unconsciousness'] = 4.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['signal processing'] = 1.0
# topic_labels_scores['argument ad logical attack fallacy toilet beer visited delivery accusative']['principle'] = 4.0
# topic_labels_scores['argument ad logical attack fallacy toilet beer visited delivery accusative']['formalism'] = 4.0
# topic_labels_scores['argument ad logical attack fallacy toilet beer visited delivery accusative']['argument ad fallacy'] = 2.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['interrogation'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['confidentiality'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['prosecutor'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['apprehension'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['public enquiry'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['crime and punishment'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['observation'] = 1.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['propos inquiry'] = 1.0
# topic_labels_scores['power government kill approved ruler democracy dictator chauvinism unlimited authoritarian']['head of state'] = 3.5
# topic_labels_scores['power government kill approved ruler democracy dictator chauvinism unlimited authoritarian']['freedom of speech'] = 4.0
# topic_labels_scores['power government kill approved ruler democracy dictator chauvinism unlimited authoritarian']['imperialism'] = 4.0
# topic_labels_scores['cloud virus amazon trail frankenstein addicted deployed crumb maze othello']['viruses'] = 3.0
# topic_labels_scores['plate vehicle state license motor shall registration law apostille issued']['passenger vehicle'] = 3.0
# topic_labels_scores['plate vehicle state license motor shall registration law apostille issued']['passenger car'] = 3.0
# topic_labels_scores['plate vehicle state license motor shall registration law apostille issued']['point of sale'] = 1.0
global total_annotated_labels
global insufficiently_annotated_labels
global sufficiently_annotated_labels
for _, labels_scores in topic_labels_scores.items():
for label in labels_scores.keys():
if len(labels_scores[label]) >= num_minimum_annotators:
labels_scores[label] = np.mean(labels_scores[label])
sufficiently_annotated_labels += 1
total_annotated_labels += 1
elif labels_scores[label]:
labels_scores[label] = -1.0
insufficiently_annotated_labels += 1
total_annotated_labels += 1
else:
labels_scores[label] = -1.0
total_annotated_labels += 1
model_scores = []
with open(topics_csv_file) as topics_csv, open(model_hypos_file) as model_hypos:
# ignore header
topics_csv.readline()
while True:
topic_terms = topics_csv.readline()
if topic_terms.strip() == '':
break
topic_terms = ' '.join(topic_terms.strip().split(',')[2:])
labels = [preprocess_label(label)
for label in model_hypos.readline().strip().split(' ')]
# the topic was not included in the survey
# if topic_terms not in topic_labels_scores:
# continue
# the topic is not in the last survey
if topic_terms not in target_topic_terms:
continue
label_scores = []
for label in labels:
if label not in topic_labels_scores[topic_terms]:
# this is no longer applicable, since every label that doesn't exist has a score
# of -1 and is treated correctly
print('Not all labels of the model were included in the survey!')
continue
# label_scores.append(topic_labels_scores[topic_terms][label])
label_scores.append((label, topic_labels_scores[topic_terms][label]))
# label_scores = list(filter(lambda x: x != -1.0, label_scores))
label_scores = list(filter(lambda x: x[1] != -1.0, label_scores))
for label in labels:
if label in invalid_tokens:
label_scores.append((label, 0.0))
if len(label_scores) > 0:
model_scores.append(label_scores)
else:
model_scores.append([])
model_scores = np.array(model_scores)
return model_scores, sufficiently_annotated_labels, insufficiently_annotated_labels, total_annotated_labels
def get_model_scores_with_topics(survey_csv_files, topics_csv_file, model_hypos_file, start=2, end=None, ignore_validation=True):
answer_values = {
'Not relevant at all': 0,
'A bit relevant': 1,
# 'Somehow relevant': 2,
# 'Relevant': 3,
'Relevant': 2,
# 'Very relevant': 4
'Very relevant': 3
}
topic_labels_scores = {}
target_topic_terms = []
for csv_file in survey_csv_files:
# if csv_file == sys.argv[2]:
# import pdb
# pdb.set_trace()
responses = pd.read_csv(csv_file)
invalid_tokens_scores = []
for _ in range(responses.shape[0]):
invalid_tokens_scores.append([])
# skip timestamp and nickname columns
if end is None:
end = len(responses.columns)
for question in responses.columns[start:end]:
# topic_terms = ' '.join(question.split('\n')[1].split('[')[0][:-1].split(', '))
# bugged question
if len(question.split('\n')) == 1:
continue
topic_terms = ' '.join(question
.split('Select how relevant the terms below are for describing the following word sequence:')[1]
.split('Here are two sample paragraphs')[0]
.split(', '))
else:
topic_terms = ' '.join(question.split('\n')[1].split('[')[0][:].split(', '))
label = question.split('[')[1].split(']')[0]
if topic_terms not in topic_labels_scores:
topic_labels_scores[topic_terms] = {}
answers = responses[question].values
if label in invalid_tokens:
for idx in range(len(answers)):
if not pd.isnull(answers[idx]):
invalid_tokens_scores[idx].append(answer_values[answers[idx]])
answers = answers[~pd.isnull(answers)]
answers = [answer_values[answer] for answer in answers]
if len(answers) > 0:
# topic_labels_scores[topic_terms][label] = np.mean(answers)
if label not in invalid_tokens:
# if len(answers) < num_minimum_annotators:
# insufficiently_annotated_labels += 1
# else:
if label not in topic_labels_scores[topic_terms]:
topic_labels_scores[topic_terms][label] = []
# sufficiently_annotated_labels += 1
topic_labels_scores[topic_terms][label].extend(answers)
# sufficiently_annotated_labels += 1
else:
if label not in topic_labels_scores[topic_terms] and label not in invalid_tokens:
topic_labels_scores[topic_terms][label] = []
# topic_labels_scores[topic_terms][label] = -1.0
# print(topic_terms)
# only account for the topics in the last survey
if csv_file == survey_csv_files[-1]:
target_topic_terms.append(topic_terms)
valid_answers = [sum(np.array(user_answers) <= 1) >= 0.25 * len(user_answers)
for user_answers in invalid_tokens_scores]
if not ignore_validation and not np.all(valid_answers):
print('WARNING: Not all answers passed the validation!')
import pdb
pdb.set_trace()
# topic_labels_scores['voice direction speed signal button format technique light command procedure']['accelerometer'] = 3.0
# topic_labels_scores['voice direction speed signal button format technique light command procedure']['addition'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['observation'] = 2.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['metabolism'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['circadian rhythm'] = 3.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['contradiction'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['proteus'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['hypnotism'] = 3.5
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['subjective experience'] = 4.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['vibration'] = 1.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['unconsciousness'] = 4.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['signal processing'] = 1.0
# topic_labels_scores['argument ad logical attack fallacy toilet beer visited delivery accusative']['principle'] = 4.0
# topic_labels_scores['argument ad logical attack fallacy toilet beer visited delivery accusative']['formalism'] = 4.0
# topic_labels_scores['argument ad logical attack fallacy toilet beer visited delivery accusative']['argument ad fallacy'] = 2.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['interrogation'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['confidentiality'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['prosecutor'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['apprehension'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['public enquiry'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['crime and punishment'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['observation'] = 1.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['propos inquiry'] = 1.0
# topic_labels_scores['power government kill approved ruler democracy dictator chauvinism unlimited authoritarian']['head of state'] = 3.5
# topic_labels_scores['power government kill approved ruler democracy dictator chauvinism unlimited authoritarian']['freedom of speech'] = 4.0
# topic_labels_scores['power government kill approved ruler democracy dictator chauvinism unlimited authoritarian']['imperialism'] = 4.0
# topic_labels_scores['cloud virus amazon trail frankenstein addicted deployed crumb maze othello']['viruses'] = 3.0
# topic_labels_scores['plate vehicle state license motor shall registration law apostille issued']['passenger vehicle'] = 3.0
# topic_labels_scores['plate vehicle state license motor shall registration law apostille issued']['passenger car'] = 3.0
# topic_labels_scores['plate vehicle state license motor shall registration law apostille issued']['point of sale'] = 1.0
global total_annotated_labels
global insufficiently_annotated_labels
global sufficiently_annotated_labels
for _, labels_scores in topic_labels_scores.items():
for label in labels_scores.keys():
if len(labels_scores[label]) >= num_minimum_annotators:
labels_scores[label] = np.mean(labels_scores[label])
sufficiently_annotated_labels += 1
total_annotated_labels += 1
elif labels_scores[label]:
labels_scores[label] = -1.0
insufficiently_annotated_labels += 1
total_annotated_labels += 1
else:
labels_scores[label] = -1.0
total_annotated_labels += 1
model_scores = {}
with open(topics_csv_file) as topics_csv, open(model_hypos_file) as model_hypos:
# ignore header
topics_csv.readline()
while True:
topic_terms = topics_csv.readline()
if topic_terms.strip() == '':
break
topic_terms = ' '.join(topic_terms.strip().split(',')[2:])
labels = [preprocess_label(label)
for label in model_hypos.readline().strip().split(' ')]
# the topic was not included in the survey
# if topic_terms not in topic_labels_scores:
# continue
# the topic is not in the last survey
if topic_terms not in target_topic_terms:
continue
label_scores = []
for label in labels:
if label not in topic_labels_scores[topic_terms]:
# this is no longer applicable, since every label that doesn't exist has a score
# of -1 and is treated correctly
print('Not all labels of the model were included in the survey!')
continue
# label_scores.append(topic_labels_scores[topic_terms][label])
label_scores.append((label, topic_labels_scores[topic_terms][label]))
# label_scores = list(filter(lambda x: x != -1.0, label_scores))
label_scores = list(filter(lambda x: x[1] != -1.0, label_scores))
for label in labels:
if label in invalid_tokens:
label_scores.append((label, 0.0))
if len(label_scores) > 0:
model_scores[topic_terms] = label_scores
else:
model_scores[topic_terms] = []
# model_scores = np.array(model_scores)
return model_scores, sufficiently_annotated_labels, insufficiently_annotated_labels, total_annotated_labels
def get_model_stddev(survey_csv_files, topics_csv_file, model_hypos_file, start=2, end=None, ignore_validation=True):
answer_values = {
'Not relevant at all': 0,
'A bit relevant': 1,
# 'Somehow relevant': 2,
# 'Relevant': 3,
'Relevant': 2,
# 'Very relevant': 4
'Very relevant': 3
}
topic_labels_scores = {}
target_topic_terms = []
for csv_file in survey_csv_files:
# if csv_file == sys.argv[2]:
# import pdb
# pdb.set_trace()
responses = pd.read_csv(csv_file)
invalid_tokens_scores = []
for _ in range(responses.shape[0]):
invalid_tokens_scores.append([])
# skip timestamp and nickname columns
if end is None:
end = len(responses.columns)
for question in responses.columns[start:end]:
# topic_terms = ' '.join(question.split('\n')[1].split('[')[0][:-1].split(', '))
# bugged question
if len(question.split('\n')) == 1:
continue
topic_terms = ' '.join(question
.split('Select how relevant the terms below are for describing the following word sequence:')[1]
.split('Here are two sample paragraphs')[0]
.split(', '))
else:
topic_terms = ' '.join(question.split('\n')[1].split('[')[0][:].split(', '))
label = question.split('[')[1].split(']')[0]
if topic_terms not in topic_labels_scores:
topic_labels_scores[topic_terms] = {}
answers = responses[question].values
if label in invalid_tokens:
for idx in range(len(answers)):
if not pd.isnull(answers[idx]):
invalid_tokens_scores[idx].append(answer_values[answers[idx]])
answers = answers[~pd.isnull(answers)]
answers = [answer_values[answer] for answer in answers]
if len(answers) > 0:
# topic_labels_scores[topic_terms][label] = np.mean(answers)
if label not in invalid_tokens:
# if len(answers) < num_minimum_annotators:
# insufficiently_annotated_labels += 1
# else:
if label not in topic_labels_scores[topic_terms]:
topic_labels_scores[topic_terms][label] = []
# sufficiently_annotated_labels += 1
topic_labels_scores[topic_terms][label].extend(answers)
# sufficiently_annotated_labels += 1
else:
if label not in topic_labels_scores[topic_terms] and label not in invalid_tokens:
topic_labels_scores[topic_terms][label] = []
# topic_labels_scores[topic_terms][label] = -1.0
# print(topic_terms)
# only account for the topics in the last survey
if csv_file == survey_csv_files[-1]:
target_topic_terms.append(topic_terms)
valid_answers = [sum(np.array(user_answers) <= 1) >= 0.25 * len(user_answers)
for user_answers in invalid_tokens_scores]
if not ignore_validation and not np.all(valid_answers):
print('WARNING: Not all answers passed the validation!')
import pdb
pdb.set_trace()
# topic_labels_scores['voice direction speed signal button format technique light command procedure']['accelerometer'] = 3.0
# topic_labels_scores['voice direction speed signal button format technique light command procedure']['addition'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['observation'] = 2.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['metabolism'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['circadian rhythm'] = 3.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['contradiction'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['proteus'] = 0.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['hypnotism'] = 3.5
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['subjective experience'] = 4.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['vibration'] = 1.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['unconsciousness'] = 4.0
# topic_labels_scores['suffix ending brain eye perception visual experienced breath ic historic']['signal processing'] = 1.0
# topic_labels_scores['argument ad logical attack fallacy toilet beer visited delivery accusative']['principle'] = 4.0
# topic_labels_scores['argument ad logical attack fallacy toilet beer visited delivery accusative']['formalism'] = 4.0
# topic_labels_scores['argument ad logical attack fallacy toilet beer visited delivery accusative']['argument ad fallacy'] = 2.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['interrogation'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['confidentiality'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['prosecutor'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['apprehension'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['public enquiry'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['crime and punishment'] = 4.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['observation'] = 1.0
# topic_labels_scores['mid sudden inquiry newly beard ford flavour investigate apropos inquire']['propos inquiry'] = 1.0
# topic_labels_scores['power government kill approved ruler democracy dictator chauvinism unlimited authoritarian']['head of state'] = 3.5
# topic_labels_scores['power government kill approved ruler democracy dictator chauvinism unlimited authoritarian']['freedom of speech'] = 4.0
# topic_labels_scores['power government kill approved ruler democracy dictator chauvinism unlimited authoritarian']['imperialism'] = 4.0
# topic_labels_scores['cloud virus amazon trail frankenstein addicted deployed crumb maze othello']['viruses'] = 3.0
# topic_labels_scores['plate vehicle state license motor shall registration law apostille issued']['passenger vehicle'] = 3.0
# topic_labels_scores['plate vehicle state license motor shall registration law apostille issued']['passenger car'] = 3.0
# topic_labels_scores['plate vehicle state license motor shall registration law apostille issued']['point of sale'] = 1.0
global total_annotated_labels
global insufficiently_annotated_labels
global sufficiently_annotated_labels
for _, labels_scores in topic_labels_scores.items():
for label in labels_scores.keys():
if len(labels_scores[label]) >= num_minimum_annotators:
labels_scores[label] = np.std(labels_scores[label])
sufficiently_annotated_labels += 1
total_annotated_labels += 1
elif labels_scores[label]:
labels_scores[label] = -1.0
insufficiently_annotated_labels += 1
total_annotated_labels += 1
else:
labels_scores[label] = -1.0
total_annotated_labels += 1
model_scores = []
with open(topics_csv_file) as topics_csv, open(model_hypos_file) as model_hypos:
# ignore header
topics_csv.readline()
while True:
topic_terms = topics_csv.readline()
if topic_terms.strip() == '':
break
topic_terms = ' '.join(topic_terms.strip().split(',')[2:])
labels = [preprocess_label(label)
for label in model_hypos.readline().strip().split(' ')]
# the topic was not included in the survey
# if topic_terms not in topic_labels_scores:
# continue
# the topic is not in the last survey
if topic_terms not in target_topic_terms:
continue
label_scores = []
for label in labels:
if label not in topic_labels_scores[topic_terms]:
# this is no longer applicable, since every label that doesn't exist has a score
# of -1 and is treated correctly
print('Not all labels of the model were included in the survey!')
continue
# label_scores.append(topic_labels_scores[topic_terms][label])
label_scores.append((label, topic_labels_scores[topic_terms][label]))
# label_scores = list(filter(lambda x: x != -1.0, label_scores))
label_scores = list(filter(lambda x: x[1] != -1.0, label_scores))
for label in labels:
if label in invalid_tokens:
label_scores.append((label, 0.0))
if len(label_scores) > 0:
model_scores.append(label_scores)
else:
model_scores.append([])
model_scores = np.array(model_scores)
return model_scores, sufficiently_annotated_labels, insufficiently_annotated_labels, total_annotated_labels
| 46.961404
| 143
| 0.736327
| 3,658
| 26,768
| 5.196009
| 0.078185
| 0.100384
| 0.120745
| 0.07955
| 0.973378
| 0.97201
| 0.97201
| 0.97201
| 0.97201
| 0.97201
| 0
| 0.014854
| 0.157464
| 26,768
| 570
| 144
| 46.961404
| 0.827916
| 0.516251
| 0
| 0.907285
| 0
| 0
| 0.077254
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.013245
| false
| 0.009934
| 0.023179
| 0.003311
| 0.049669
| 0.019868
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5721c553325c0bc54b57c405497ba212019b1190
| 3,681
|
py
|
Python
|
data/types.py
|
wuhoodude/Bappybot
|
c7f0bf42678758d2d042b48f843c8c341b737e70
|
[
"MIT"
] | 7
|
2015-06-08T17:57:16.000Z
|
2017-12-14T09:09:01.000Z
|
data/types.py
|
wuhoodude/Bappybot
|
c7f0bf42678758d2d042b48f843c8c341b737e70
|
[
"MIT"
] | 8
|
2015-06-08T19:51:50.000Z
|
2021-12-13T19:46:10.000Z
|
data/types.py
|
wuhoodude/Bappybot
|
c7f0bf42678758d2d042b48f843c8c341b737e70
|
[
"MIT"
] | 21
|
2015-06-08T17:06:42.000Z
|
2020-07-23T07:21:12.000Z
|
Types = {
"Bug":{"Bug":1,"Dark":1,"Dragon":1,"Electric":1,"Fairy":1,"Fighting":0.5,"Fire":2,"Flying":2,"Ghost":1,"Grass":0.5,"Ground":0.5,"Ice":1,"Normal":1,"Poison":1,"Psychic":1,"Rock":2,"Steel":1,"Water":1},
"Dark":{"Bug":2,"Dark":0.5,"Dragon":1,"Electric":1,"Fairy":2,"Fighting":2,"Fire":1,"Flying":1,"Ghost":0.5,"Grass":1,"Ground":1,"Ice":1,"Normal":1,"Poison":1,"Psychic":0,"Rock":1,"Steel":1,"Water":1},
"Dragon":{"Bug":1,"Dark":1,"Dragon":2,"Electric":0.5,"Fairy":2,"Fighting":1,"Fire":0.5,"Flying":1,"Ghost":1,"Grass":0.5,"Ground":1,"Ice":2,"Normal":1,"Poison":1,"Psychic":1,"Rock":1,"Steel":1,"Water":0.5},
"Electric":{"Bug":1,"Dark":1,"Dragon":1,"Electric":0.5,"Fairy":1,"Fighting":1,"Fire":1,"Flying":0.5,"Ghost":1,"Grass":1,"Ground":2,"Ice":1,"Normal":1,"Poison":1,"Psychic":1,"Rock":1,"Steel":0.5,"Water":1},
"Fairy":{"Bug":0.5,"Dark":0.5,"Dragon":0,"Electric":1,"Fairy":1,"Fighting":0.5,"Fire":1,"Flying":1,"Ghost":1,"Grass":1,"Ground":1,"Ice":1,"Normal":1,"Poison":2,"Psychic":1,"Rock":1,"Steel":2,"Water":1},
"Fighting":{"Bug":0.5,"Dark":0.5,"Dragon":1,"Electric":1,"Fairy":2,"Fighting":1,"Fire":1,"Flying":2,"Ghost":1,"Grass":1,"Ground":1,"Ice":1,"Normal":1,"Poison":1,"Psychic":2,"Rock":1,"Steel":1,"Water":1},
"Fire":{"Bug":0.5,"Dark":1,"Dragon":1,"Electric":1,"Fairy":0.5,"Fighting":1,"Fire":0.5,"Flying":1,"Ghost":1,"Grass":0.5,"Ground":2,"Ice":0.5,"Normal":1,"Poison":1,"Psychic":1,"Rock":2,"Steel":0.5,"Water":2},
"Flying":{"Bug":0.5,"Dark":1,"Dragon":1,"Electric":2,"Fairy":1,"Fighting":0.5,"Fire":1,"Flying":1,"Ghost":1,"Grass":0.5,"Ground":0,"Ice":2,"Normal":1,"Poison":1,"Psychic":1,"Rock":2,"Steel":1,"Water":1},
"Ghost":{"Bug":1,"Dark":2,"Dragon":1,"Electric":1,"Fairy":1,"Fighting":0,"Fire":1,"Flying":1,"Ghost":2,"Grass":1,"Ground":1,"Ice":1,"Normal":0,"Poison":0.5,"Psychic":1,"Rock":1,"Steel":1,"Water":1},
"Grass":{"Bug":2,"Dark":1,"Dragon":1,"Electric":0.5,"Fairy":1,"Fighting":1,"Fire":2,"Flying":2,"Ghost":1,"Grass":0.5,"Ground":0.5,"Ice":2,"Normal":1,"Poison":2,"Psychic":1,"Rock":1,"Steel":1,"Water":0.5},
"Ground":{"Bug":1,"Dark":1,"Dragon":1,"Electric":0,"Fairy":1,"Fighting":1,"Fire":1,"Flying":1,"Ghost":1,"Grass":2,"Ground":1,"Ice":2,"Normal":1,"Poison":0.5,"Psychic":1,"Rock":0.5,"Steel":1,"Water":2},
"Ice":{"Bug":1,"Dark":1,"Dragon":1,"Electric":1,"Fairy":1,"Fighting":2,"Fire":2,"Flying":1,"Ghost":1,"Grass":1,"Ground":1,"Ice":0.5,"Normal":1,"Poison":1,"Psychic":1,"Rock":2,"Steel":2,"Water":1},
"Normal":{"Bug":1,"Dark":1,"Dragon":1,"Electric":1,"Fairy":1,"Fighting":2,"Fire":1,"Flying":1,"Ghost":0,"Grass":1,"Ground":1,"Ice":1,"Normal":1,"Poison":1,"Psychic":1,"Rock":1,"Steel":1,"Water":1},
"Poison":{"Bug":0.5,"Dark":1,"Dragon":1,"Electric":1,"Fairy":0.5,"Fighting":0.5,"Fire":1,"Flying":1,"Ghost":1,"Grass":0.5,"Ground":2,"Ice":1,"Normal":1,"Poison":0.5,"Psychic":2,"Rock":1,"Steel":1,"Water":1},
"Psychic":{"Bug":2,"Dark":2,"Dragon":1,"Electric":1,"Fairy":1,"Fighting":0.5,"Fire":1,"Flying":1,"Ghost":2,"Grass":1,"Ground":1,"Ice":1,"Normal":1,"Poison":1,"Psychic":0.5,"Rock":1,"Steel":1,"Water":1},
"Rock":{"Bug":1,"Dark":1,"Dragon":1,"Electric":1,"Fairy":1,"Fighting":2,"Fire":0.5,"Flying":0.5,"Ghost":1,"Grass":2,"Ground":2,"Ice":1,"Normal":0.5,"Poison":0.5,"Psychic":1,"Rock":1,"Steel":2,"Water":2},
"Steel":{"Bug":0.5,"Dark":1,"Dragon":0.5,"Electric":1,"Fairy":0.5,"Fighting":2,"Fire":2,"Flying":0.5,"Ghost":1,"Grass":0.5,"Ground":2,"Ice":0.5,"Normal":0.5,"Poison":0,"Psychic":0.5,"Rock":0.5,"Steel":0.5,"Water":1},
"Water":{"Bug":1,"Dark":1,"Dragon":1,"Electric":2,"Fairy":1,"Fighting":1,"Fire":0.5,"Flying":1,"Ghost":1,"Grass":2,"Ground":1,"Ice":0.5,"Normal":1,"Poison":1,"Psychic":1,"Rock":1,"Steel":0.5,"Water":0.5}
}
| 175.285714
| 216
| 0.600924
| 726
| 3,681
| 3.046832
| 0.03168
| 0.053345
| 0.101718
| 0.059675
| 0.916817
| 0.877939
| 0.819168
| 0.773056
| 0.696203
| 0.620705
| 0
| 0.104673
| 0.005977
| 3,681
| 20
| 217
| 184.05
| 0.499863
| 0
| 0
| 0
| 0
| 0
| 0.495518
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5723574c7b2fbf157d5fb0d3c4799edd95383909
| 22,653
|
py
|
Python
|
tests/quara/protocol/qtomography/standard/test_loss_minimization_estimator.py
|
tknrsgym/quara
|
8f3337af83cdd02bb85632bb1e297902b1fff8fb
|
[
"Apache-2.0"
] | 3
|
2021-05-19T11:44:30.000Z
|
2022-03-30T07:13:49.000Z
|
tests/quara/protocol/qtomography/standard/test_loss_minimization_estimator.py
|
tknrsgym/quara
|
8f3337af83cdd02bb85632bb1e297902b1fff8fb
|
[
"Apache-2.0"
] | 2
|
2021-06-02T01:24:59.000Z
|
2021-06-02T12:20:31.000Z
|
tests/quara/protocol/qtomography/standard/test_loss_minimization_estimator.py
|
tknrsgym/quara
|
8f3337af83cdd02bb85632bb1e297902b1fff8fb
|
[
"Apache-2.0"
] | 1
|
2021-10-14T13:21:27.000Z
|
2021-10-14T13:21:27.000Z
|
import time
from typing import List
import numpy as np
import numpy.testing as npt
import pytest
from quara.loss_function.weighted_probability_based_squared_error import (
WeightedProbabilityBasedSquaredError,
WeightedProbabilityBasedSquaredErrorOption,
)
from quara.minimization_algorithm.minimization_algorithm import MinimizationResult
from quara.minimization_algorithm.projected_gradient_descent_backtracking import (
ProjectedGradientDescentBacktracking,
ProjectedGradientDescentBacktrackingOption,
)
from quara.math import func_proj
from quara.objects.composite_system import CompositeSystem
from quara.objects.elemental_system import ElementalSystem
from quara.objects.matrix_basis import get_normalized_pauli_basis
from quara.objects.povm import (
get_x_povm,
get_y_povm,
get_z_povm,
)
from quara.objects.state import convert_var_to_state, get_z0_1q
from quara.protocol.qtomography.standard.standard_qst import StandardQst
from quara.protocol.qtomography.standard.loss_minimization_estimator import (
LossMinimizationEstimator,
LossMinimizationEstimationResult,
)
def get_test_data(on_para_eq_constraint=False):
e_sys = ElementalSystem(0, get_normalized_pauli_basis())
c_sys = CompositeSystem([e_sys])
povm_x = get_x_povm(c_sys)
povm_y = get_y_povm(c_sys)
povm_z = get_z_povm(c_sys)
povms = [povm_x, povm_y, povm_z]
qst = StandardQst(povms, on_para_eq_constraint=on_para_eq_constraint, seed_data=7)
return qst, c_sys
class TestLossMinimizationEstimator:
def test_calc_estimate__is_computation_time_required(self):
empi_dists = [
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([1, 0], dtype=np.float64)),
]
loss = WeightedProbabilityBasedSquaredError(4)
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=True, on_algo_ineq_constraint=True
)
estimator = LossMinimizationEstimator()
# is_computation_time_required=True
actual = estimator.calc_estimate(
qst,
empi_dists,
loss,
loss_option,
algo,
algo_option,
is_computation_time_required=True,
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=7)
assert type(actual.computation_time) == float
# is_computation_time_required=False
actual = estimator.calc_estimate(
qst, empi_dists, loss, loss_option, algo, algo_option
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=7)
assert actual.computation_time == None
def test_calc_estimate__is_detailed_results_required(self):
empi_dists = [
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([1, 0], dtype=np.float64)),
]
loss = WeightedProbabilityBasedSquaredError(4)
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=True, on_algo_ineq_constraint=True
)
estimator = LossMinimizationEstimator()
# is_detailed_results_required=True
actual = estimator.calc_estimate(
qst,
empi_dists,
loss,
loss_option,
algo,
algo_option,
is_detailed_results_required=True,
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=7)
assert type(actual.detailed_results) == list
assert len(actual.detailed_results) == 1
assert isinstance(actual.detailed_results[0], MinimizationResult) == True
# is_detailed_results_required=False
actual = estimator.calc_estimate(
qst, empi_dists, loss, loss_option, algo, algo_option
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=7)
assert actual.detailed_results == None
def test_calc_estimate__on_algo_xx_constraint(self):
empi_dists = [
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([1, 0], dtype=np.float64)),
]
loss = WeightedProbabilityBasedSquaredError(4)
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
# case1: on_algo_eq_constraint=True, on_algo_ineq_constraint=True
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
obj_start = (
qst.generate_empty_estimation_obj_with_setting_info().generate_origin_obj()
)
var_start = obj_start.to_var()
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=True,
on_algo_ineq_constraint=True,
var_start=var_start,
)
estimator = LossMinimizationEstimator()
actual = estimator.calc_estimate(
qst, empi_dists, loss, loss_option, algo, algo_option
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=7)
# case2: on_algo_eq_constraint=True, on_algo_ineq_constraint=False
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
obj_start = (
qst.generate_empty_estimation_obj_with_setting_info().generate_origin_obj()
)
var_start = obj_start.to_var()
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=True,
on_algo_ineq_constraint=False,
var_start=var_start,
)
estimator = LossMinimizationEstimator()
actual = estimator.calc_estimate(
qst, empi_dists, loss, loss_option, algo, algo_option
)
expected = [1 / np.sqrt(2), 0, 0, 0.707106764760052]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=15)
# case3: on_algo_eq_constraint=False, on_algo_ineq_constraint=True
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
obj_start = (
qst.generate_empty_estimation_obj_with_setting_info().generate_origin_obj()
)
var_start = obj_start.to_var()
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=False,
on_algo_ineq_constraint=True,
var_start=var_start,
)
estimator = LossMinimizationEstimator()
actual = estimator.calc_estimate(
qst, empi_dists, loss, loss_option, algo, algo_option
)
expected = [0.707106790461949, 0, 0, 0.707106713475754]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=15)
# case4: on_algo_eq_constraint=False, on_algo_ineq_constraint=False
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
obj_start = (
qst.generate_empty_estimation_obj_with_setting_info().generate_origin_obj()
)
var_start = obj_start.to_var()
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=False,
on_algo_ineq_constraint=False,
var_start=var_start,
)
estimator = LossMinimizationEstimator()
actual = estimator.calc_estimate(
qst, empi_dists, loss, loss_option, algo, algo_option
)
expected = [
7.071067772680395e-01,
-3.291237808416748e-26,
-3.291237808416748e-26,
7.071067976130435e-01,
]
npt.assert_almost_equal(actual.estimated_var, expected, decimal=10)
def test_calc_estimate__func_proj(self):
empi_dists = [
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([1, 0], dtype=np.float64)),
]
loss = WeightedProbabilityBasedSquaredError(4)
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
# case1: func_proj=auto setting
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
obj_start = (
qst.generate_empty_estimation_obj_with_setting_info().generate_origin_obj()
)
var_start = obj_start.to_var()
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=True,
on_algo_ineq_constraint=True,
var_start=var_start,
)
estimator = LossMinimizationEstimator()
actual = estimator.calc_estimate(
qst, empi_dists, loss, loss_option, algo, algo_option
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=7)
# case2: func_proj=func_proj.proj_to_self
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
obj_start = (
qst.generate_empty_estimation_obj_with_setting_info().generate_origin_obj()
)
var_start = obj_start.to_var()
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=True,
on_algo_ineq_constraint=True,
var_start=var_start,
)
loss = WeightedProbabilityBasedSquaredError(
4, func_prob_dists=func_proj.proj_to_self
)
estimator = LossMinimizationEstimator()
actual = estimator.calc_estimate(
qst, empi_dists, loss, loss_option, algo, algo_option
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=7)
# case3: func_proj=func_proj.proj_to_hyperplane
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
obj_start = (
qst.generate_empty_estimation_obj_with_setting_info().generate_origin_obj()
)
var_start = obj_start.to_var()
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=True,
on_algo_ineq_constraint=True,
var_start=var_start,
)
loss = WeightedProbabilityBasedSquaredError(
4, func_prob_dists=func_proj.proj_to_hyperplane(var_start)
)
estimator = LossMinimizationEstimator()
actual = estimator.calc_estimate(
qst, empi_dists, loss, loss_option, algo, algo_option
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=7)
# case4: func_proj=func_proj.proj_to_nonnegative
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
obj_start = (
qst.generate_empty_estimation_obj_with_setting_info().generate_origin_obj()
)
var_start = obj_start.to_var()
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=True,
on_algo_ineq_constraint=True,
var_start=var_start,
)
loss = WeightedProbabilityBasedSquaredError(
4, func_prob_dists=func_proj.proj_to_nonnegative
)
estimator = LossMinimizationEstimator()
actual = estimator.calc_estimate(
qst, empi_dists, loss, loss_option, algo, algo_option
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=7)
def test_calc_estimate_sequence(self):
qst, _ = get_test_data()
empi_dists_seq = [
[
(100, np.array([0.5, 0.5], dtype=np.float64)),
(100, np.array([0.5, 0.5], dtype=np.float64)),
(100, np.array([1, 0], dtype=np.float64)),
],
[
(10000, np.array([1, 0], dtype=np.float64)),
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([0.5, 0.5], dtype=np.float64)),
],
]
loss = WeightedProbabilityBasedSquaredError(4)
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
algo_option = ProjectedGradientDescentBacktrackingOption()
estimator = LossMinimizationEstimator()
actual = estimator.calc_estimate_sequence(
qst,
empi_dists_seq,
loss,
loss_option,
algo,
algo_option,
)
expected = [
[1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)],
[1 / np.sqrt(2), 1 / np.sqrt(2), 0, 0],
]
for a, e in zip(actual.estimated_qoperation_sequence, expected):
assert a.is_physical()
npt.assert_almost_equal(a.to_stacked_vector(), e, decimal=7)
def test_calc_estimate_sequence_value_error(self):
qst, _ = get_test_data()
empi_dists_seq = [
[
(100, np.array([0.5, 0.5], dtype=np.float64)),
(100, np.array([0.5, 0.5], dtype=np.float64)),
(100, np.array([1, 0], dtype=np.float64)),
],
[
(10000, np.array([1, 0], dtype=np.float64)),
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([0.5, 0.5], dtype=np.float64)),
],
]
# loss.is_option_sufficient() is False
loss = WeightedProbabilityBasedSquaredError(4)
def _is_option_sufficient():
return False
loss.is_option_sufficient = _is_option_sufficient
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
algo_option = ProjectedGradientDescentBacktrackingOption()
estimator = LossMinimizationEstimator()
with pytest.raises(ValueError):
estimator.calc_estimate_sequence(
qst,
empi_dists_seq,
loss,
loss_option,
algo,
algo_option,
)
# algo.is_loss_sufficient() is False
loss = WeightedProbabilityBasedSquaredError(4)
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
def _is_loss_sufficient():
return False
algo.is_loss_sufficient = _is_loss_sufficient
algo_option = ProjectedGradientDescentBacktrackingOption()
estimator = LossMinimizationEstimator()
with pytest.raises(ValueError):
estimator.calc_estimate_sequence(
qst,
empi_dists_seq,
loss,
loss_option,
algo,
algo_option,
)
# algo.is_option_sufficient() is False
loss = WeightedProbabilityBasedSquaredError(4)
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
def _is_option_sufficient():
return False
algo.is_option_sufficient = _is_option_sufficient
algo_option = ProjectedGradientDescentBacktrackingOption()
estimator = LossMinimizationEstimator()
with pytest.raises(ValueError):
estimator.calc_estimate_sequence(
qst,
empi_dists_seq,
loss,
loss_option,
algo,
algo_option,
)
# algo.is_loss_and_option_sufficient() is False
loss = WeightedProbabilityBasedSquaredError(4)
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
def _is_loss_and_option_sufficient():
return False
algo.is_loss_and_option_sufficient = _is_loss_and_option_sufficient
algo_option = ProjectedGradientDescentBacktrackingOption()
estimator = LossMinimizationEstimator()
with pytest.raises(ValueError):
estimator.calc_estimate_sequence(
qst,
empi_dists_seq,
loss,
loss_option,
algo,
algo_option,
)
def test_calc_estimate__pgdb_opton__sum_absolute_difference_loss(self):
empi_dists = [
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([1, 0], dtype=np.float64)),
]
loss = WeightedProbabilityBasedSquaredError(4)
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
# mode_stopping_criterion_gradient_descent="sum_absolute_difference_loss"
# num_history_stopping_criterion_gradient_descent=10
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=True,
on_algo_ineq_constraint=True,
mode_stopping_criterion_gradient_descent="sum_absolute_difference_loss",
num_history_stopping_criterion_gradient_descent=10,
)
estimator = LossMinimizationEstimator()
# is_computation_time_required=True
actual = estimator.calc_estimate(
qst,
empi_dists,
loss,
loss_option,
algo,
algo_option,
is_computation_time_required=True,
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=11)
def test_calc_estimate__pgdb_opton__sum_absolute_difference_variable(self):
empi_dists = [
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([1, 0], dtype=np.float64)),
]
loss = WeightedProbabilityBasedSquaredError(4)
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
# mode_stopping_criterion_gradient_descent="sum_absolute_difference_variable"
# num_history_stopping_criterion_gradient_descent=10
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=True,
on_algo_ineq_constraint=True,
mode_stopping_criterion_gradient_descent="sum_absolute_difference_variable",
num_history_stopping_criterion_gradient_descent=10,
)
estimator = LossMinimizationEstimator()
# is_computation_time_required=True
actual = estimator.calc_estimate(
qst,
empi_dists,
loss,
loss_option,
algo,
algo_option,
is_computation_time_required=True,
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=15)
def test_calc_estimate__pgdb_opton__sum_absolute_difference_projected_gradient(
self,
):
empi_dists = [
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([0.5, 0.5], dtype=np.float64)),
(10000, np.array([1, 0], dtype=np.float64)),
]
loss = WeightedProbabilityBasedSquaredError(4)
loss_option = WeightedProbabilityBasedSquaredErrorOption(mode_weight="identity")
qst, _ = get_test_data()
algo = ProjectedGradientDescentBacktracking()
# mode_stopping_criterion_gradient_descent="sum_absolute_difference_projected_gradient"
# num_history_stopping_criterion_gradient_descent=10
algo_option = ProjectedGradientDescentBacktrackingOption(
on_algo_eq_constraint=True,
on_algo_ineq_constraint=True,
mode_stopping_criterion_gradient_descent="sum_absolute_difference_projected_gradient",
num_history_stopping_criterion_gradient_descent=10,
)
estimator = LossMinimizationEstimator()
# is_computation_time_required=True
actual = estimator.calc_estimate(
qst,
empi_dists,
loss,
loss_option,
algo,
algo_option,
is_computation_time_required=True,
)
expected = [1 / np.sqrt(2), 0, 0, 1 / np.sqrt(2)]
assert actual.estimated_qoperation.is_physical()
npt.assert_almost_equal(actual.estimated_var, expected, decimal=15)
| 37.136066
| 98
| 0.64274
| 2,341
| 22,653
| 5.868859
| 0.074327
| 0.006405
| 0.033627
| 0.016886
| 0.878157
| 0.858942
| 0.838489
| 0.831502
| 0.825533
| 0.810976
| 0
| 0.036489
| 0.271708
| 22,653
| 609
| 99
| 37.197044
| 0.796278
| 0.05315
| 0
| 0.715447
| 0
| 0
| 0.009242
| 0.004761
| 0
| 0
| 0
| 0
| 0.075203
| 1
| 0.028455
| false
| 0
| 0.03252
| 0.00813
| 0.073171
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
939ab1fbb68d176522f954e28d7d1b5645071bd2
| 3,898
|
py
|
Python
|
agent/test/test_agent_unittest.py
|
rampopat/charje
|
3af178bd72800e339c45637356440780c3b0563a
|
[
"MIT"
] | 1
|
2021-12-22T02:04:40.000Z
|
2021-12-22T02:04:40.000Z
|
agent/test/test_agent_unittest.py
|
rampopat/charje
|
3af178bd72800e339c45637356440780c3b0563a
|
[
"MIT"
] | null | null | null |
agent/test/test_agent_unittest.py
|
rampopat/charje
|
3af178bd72800e339c45637356440780c3b0563a
|
[
"MIT"
] | null | null | null |
import unittest
from unittest import TestCase, mock
from agents.prediction_market_adapter import NUM_PREDICTIONS
from agents.agent import Agent
class TestAgent(TestCase):
def test_place_bet(self):
with mock.patch('agents.agent.PredictionMarketAdapter', autospec=True) \
as MockPredictionMarket:
mock_prediction_market = MockPredictionMarket.return_value
account = '42'
agent = Agent(account, logging=False)
predictions = [agent.DEFAULT_PREDICTION] * NUM_PREDICTIONS
agent.place_bet()
mock_prediction_market.place_bet.assert_called_with(account,
Agent.DEFAULT_BETTING_AMOUNT,
predictions)
agent.place_bet()
mock_prediction_market.place_bet.assert_called_with(account,
Agent.DEFAULT_BETTING_AMOUNT,
predictions)
def test_rank_bet(self):
with mock.patch('agents.agent.PredictionMarketAdapter', autospec=True) \
as MockPredictionMarket:
mock_prediction_market = MockPredictionMarket.return_value
account = '42'
agent = Agent(account, logging=False)
agent.prediction_history = [[75] * NUM_PREDICTIONS, None, None]
agent.aggregate_history = [75] * NUM_PREDICTIONS
agent.rank_bet()
mock_prediction_market.rank.assert_called_once_with(account)
def test_collect_reward(self):
with mock.patch('agents.agent.PredictionMarketAdapter', autospec=True) \
as MockPredictionMarket:
mock_prediction_market = MockPredictionMarket.return_value
account = '42'
agent = Agent(account, logging=False)
agent.prediction_history = [[75] * NUM_PREDICTIONS, None, None]
agent.aggregate_history = [75] * NUM_PREDICTIONS
mock_prediction_market.get_winning_tier.return_value = 'top'
agent.collect_reward()
mock_prediction_market.transfer_reward.assert_called_once_with(account)
def test_no_rank_if_no_bet(self):
with mock.patch('agents.agent.PredictionMarketAdapter', autospec=True) \
as MockPredictionMarket:
mock_prediction_market = MockPredictionMarket.return_value
account = '42'
agent = Agent(account, logging=False)
agent.prediction_history = [None, None, None]
agent.rank_bet()
mock_prediction_market.rank.assert_not_called()
def test_no_rank_if_lost(self):
with mock.patch('agents.agent.PredictionMarketAdapter', autospec=True) \
as MockPredictionMarket:
mock_prediction_market = MockPredictionMarket.return_value
account = '42'
agent = Agent(account, logging=False)
agent.prediction_history = [[1000] * NUM_PREDICTIONS,
[75] * NUM_PREDICTIONS, [75] * NUM_PREDICTIONS]
agent.aggregate_history = [75] * NUM_PREDICTIONS
agent.rank_bet()
mock_prediction_market.rank.assert_not_called()
def test_no_transfer_if_no_bet(self):
with mock.patch('agents.agent.PredictionMarketAdapter', autospec=True) \
as MockPredictionMarket:
mock_prediction_market = MockPredictionMarket.return_value
account = '42'
agent = Agent(account, logging=False)
agent.prediction_history = [None, None, None]
agent.collect_reward()
mock_prediction_market.transfer_reward.assert_not_called()
if __name__ == '__main__':
unittest.main()
| 40.185567
| 93
| 0.612878
| 367
| 3,898
| 6.190736
| 0.155313
| 0.105634
| 0.123239
| 0.044894
| 0.862676
| 0.837148
| 0.837148
| 0.8125
| 0.8125
| 0.763644
| 0
| 0.011228
| 0.31452
| 3,898
| 96
| 94
| 40.604167
| 0.839072
| 0
| 0
| 0.722222
| 0
| 0
| 0.061313
| 0.055413
| 0
| 0
| 0
| 0
| 0.097222
| 1
| 0.083333
| false
| 0
| 0.055556
| 0
| 0.152778
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
93f4cfeccc5304a876f560c6ae8ea2f84d5f2a91
| 62,017
|
py
|
Python
|
scripts/PortalFilesTester.py
|
vkozareva/single_cell_portal
|
d5c5d4f6de5cce97ddc30d2e80068155c11cd818
|
[
"BSD-3-Clause"
] | 42
|
2016-07-27T22:25:24.000Z
|
2021-07-29T12:31:05.000Z
|
scripts/PortalFilesTester.py
|
vkozareva/single_cell_portal
|
d5c5d4f6de5cce97ddc30d2e80068155c11cd818
|
[
"BSD-3-Clause"
] | 80
|
2016-08-16T18:39:22.000Z
|
2021-11-27T07:01:53.000Z
|
scripts/PortalFilesTester.py
|
vkozareva/single_cell_portal
|
d5c5d4f6de5cce97ddc30d2e80068155c11cd818
|
[
"BSD-3-Clause"
] | 25
|
2017-02-22T13:27:12.000Z
|
2021-07-21T02:05:50.000Z
|
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import os
import PortalFiles
import SortSparseMatrix
import unittest
__author__ = "Timothy Tickle"
__copyright__ = "Copyright 2016"
__credits__ = ["Timothy Tickle", "Brian Haas"]
__license__ = "MIT"
__maintainer__ = "Timothy Tickle"
__email__ = "ttickle@broadinstitute.org"
__status__ = "Development"
def files_are_equivalent(file_path_1, file_path_2):
"""
Returns if the contents of two files are the same.
Errors if the files are missing.
* str_file_path_1 : String
Path of the first of the files to compare to each other
* str_file_path_2 : String
Path of the second of files to compare to each other
* Return : Boolean
True indicates the contents of the files are exact.
"""
if not os.path.exists(file_path_1):
raise IOError("Missing file: " + file_path_1)
if not os.path.exists(file_path_2):
raise IOError("Missing file: " + file_path_2)
# Check if file lines counts are not the same.
with open(file_path_1) as count_file_1:
with open(file_path_2) as count_file_2:
count_1 = sum(1 for line in count_file_1)
count_2 = sum(1 for line in count_file_2)
if count_1 != count_2:
print("::Expected files to be the same size::")
print("::File 1 line count::"+ str(count_1))
print("::File 2 line count::"+ str(count_2))
return(False)
# Compare line by line and short circuit on a mismatched line.
with open(file_path_1) as check_file_1:
with open(file_path_2) as check_file_2:
for line in check_file_1:
compare_line = next(check_file_2)
if not line == compare_line:
print("::"+line+"::")
print("::"+compare_line+"::")
return(False)
return(True)
class CoordinatesFileTester(unittest.TestCase):
"""
Tests the Coordinates File object.
"""
def test_init(self):
"""
Make sure init can occur
"""
test_file = os.path.join("test_files", "coordinates.txt")
PortalFiles.CoordinatesFile(test_file)
self.assertTrue(True, 'Coordinates file can init.')
def test_init_details(self):
"""
Check internals on init.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
has_error = False
error_message = []
if test_file.file_has_error:
has_error = True
error_message.append("Started with a false error state.")
if not test_file.delimiter == PortalFiles.c_DEFAULT_DELIM:
has_error = True
error_message.append("Delimiter was not set correctly.")
if not test_file.demo_file == PortalFiles.c_COORDINATES_DEMO_LINK:
has_error = True
error_message.append("Demo link was not set correctly.")
if(not ".".join(test_file.expected_header) ==
".".join(PortalFiles.c_COORDINATES_HEADER)):
has_error = True
error_message.append("Started with a wrong expected header.")
if not test_file.expected_header_length == PortalFiles.c_COORDINATES_HEADER_LENGTH:
has_error = True
error_message.append("Started with a false error state.")
if not test_file.file_name == test_file_name:
has_error = True
error_message.append("File name incorrect.")
if not test_file.header_length == 6:
has_error = True
error_message.append("File length incorrect.")
if not test_file.line_number == 1:
has_error = True
error_message.append("Wrong initial file number.")
if test_file.cell_names is None:
has_error = True
error_message.append("Incorrect cell names on init.")
error_message.append(str(test_file))
self.assertTrue(not has_error, error_message)
def test_init_str(self):
"""
Check str on init.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
actual_str = str(test_file)
correct_str = "; ".join(["Error:"+str(False),
"Delim:"+PortalFiles.c_DEFAULT_DELIM,
"Demo:"+PortalFiles.c_COORDINATES_DEMO_LINK,
"ExpectedHeader:"+",".join(PortalFiles.c_COORDINATES_HEADER),
"ExpectedHeaderLen:"+str(PortalFiles.c_COORDINATES_HEADER_LENGTH),
"FileName:"+test_file_name,
"Header:"+",".join(["NAME","X","Y","Z","Category","Intensity"]),
"HeaderLen:"+str(6),
"LineNumber:"+str(1),
"CellNames:"+str(test_file.cell_names)])
self.assertTrue(correct_str == actual_str,
"Expected="+correct_str+"\nReceived="+actual_str)
def test_check_header_correct(self):
"""
Check the header is called correct when it is.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(not test_file.file_has_error,
"Should not have reached an error state.")
def test_check_header_incorrect(self):
"""
Check the header is called incorrect when position 00 is incorrect.
"""
test_file_name = os.path.join("test_files",
"coordinates_bad_header.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_header_for_duplicates(self):
"""
Check the header is called incorrect when duplicates exist.
"""
test_file_name = os.path.join("test_files",
"coordinates_bad_header_duplicates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_body_correct(self):
"""
Check the body is called correct when it is.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(not test_file.file_has_error,
"Should not have reached an error state.")
def test_check_body_incorrect_type(self):
"""
Check the body is called incorrect when it is incorrect.
This file has a bad entry, wrong type.
"""
test_file_name = os.path.join("test_files", "coordinates_bad_body.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_body_incorrect_type_2(self):
"""
Check the body is called incorrect when it is incorrect.
This file has a missing entry.
"""
test_file_name = os.path.join("test_files",
"coordinates_bad_body_2.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_get_duplicates_no_duplicates(self):
"""
Get duplicates from file, no duplicates.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
duplicates = test_file.get_duplicates(test_file.cell_names)
self.assertTrue(len(duplicates) == 0,
"Should be empty with no duplicates.")
def test_get_duplicates_with_duplicates(self):
"""
Get duplicates from file, with 2 duplicates.
"""
test_file_name = os.path.join("test_files",
"coordinates_duplicates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
duplicates = test_file.get_duplicates(test_file.cell_names)
self.assertTrue(len(duplicates) == 2,
"Should have 2 duplicates.")
def test_check_duplicate_cell_names_no_duplicates(self):
"""
Check duplicates cell names in file, no duplicates.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
original_len = len(test_file.cell_names)
test_file.check_duplicate_cell_names()
self.assertTrue(not test_file.file_has_error,
" ".join(["There are no duplicates,",
"no error detected."]))
def test_check_duplicate_cell_names_with_duplicates(self):
"""
Check duplicates cell names in file, wirh 2 duplicates.
"""
test_file_name = os.path.join("test_files",
"coordinates_duplicates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
original_len = len(test_file.cell_names)
test_file.check_duplicate_cell_names()
self.assertTrue(test_file.file_has_error,
" ".join(["There are 2 duplicates,",
"error detected."]))
def test_check_correct(self):
"""
Check the file is called correct when it is.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check()
self.assertTrue(not test_file.file_has_error,
"Should not have reached an error state.")
def test_check_correct_bad_header(self):
"""
Check the file is called incorrect when a header is bad.
"""
test_file_name = os.path.join("test_files",
"coordinates_bad_header.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_correct_bad_body(self):
"""
Check the file is called incorrect when the body is bad.
"""
test_file_name = os.path.join("test_files", "coordinates_bad_body.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_correct_bad_body_duplicates(self):
"""
Check the file is called incorrect when the body has duplicates.
"""
test_file_name = os.path.join("test_files",
"coordinates_duplicates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_compare_cell_names_for_identical(self):
"""
Check comparing cell names for two identical files.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
test_file_name_2 = os.path.join("test_files", "coordinates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
test_file_2 = PortalFiles.CoordinatesFile(test_file_name_2)
self.assertTrue((not test_file.file_has_error) and
(not test_file_2.file_has_error),
"Did not start test with a no error state.")
compare_error = test_file.compare_cell_names(test_file_2)
self.assertTrue(not compare_error,
"Should not have reached an error state.")
def test_compare_cell_names_for_correct_files(self):
"""
Check comparing cell names for two files with identical cell names.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
test_file_name_2 = os.path.join("test_files", "metadata.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
test_file_2 = PortalFiles.MetadataFile(test_file_name_2)
self.assertTrue((not test_file.file_has_error) and
(not test_file_2.file_has_error),
"Did not start test with a no error state.")
compare_error = test_file.compare_cell_names(test_file_2)
self.assertTrue(not compare_error,
"Should not have reached an error state.")
def test_compare_cell_names_for_incorrect_files(self):
"""
Check comparing cell names for two files,
this one with duplicate names.
"""
test_file_name = os.path.join("test_files",
"coordinates_duplicates.txt")
test_file_name_2 = os.path.join("test_files", "metadata.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
test_file_2 = PortalFiles.MetadataFile(test_file_name_2)
self.assertTrue((not test_file.file_has_error) and
(not test_file_2.file_has_error),
"Did not start test with a no error state.")
compare_error = test_file.compare_cell_names(test_file_2)
self.assertTrue(compare_error,
"Should have reached an error state.")
def test_compare_cell_names_for_incorrect_compare_files(self):
"""
Check comparing cell names for two files,
the comparing file with duplicate names.
"""
test_file_name = os.path.join("test_files",
"coordinates.txt")
test_file_name_2 = os.path.join("test_files", "metadata_duplicates.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
test_file_2 = PortalFiles.MetadataFile(test_file_name_2)
self.assertTrue((not test_file.file_has_error) and
(not test_file_2.file_has_error),
"Did not start test with a no error state.")
compare_error = test_file.compare_cell_names(test_file_2)
self.assertTrue(compare_error,
"Should have reached an error state.")
def test_update_cell_names_from_none(self):
"""
Update cell names from a None value.
"""
test_file = os.path.join("test_files", "coordinates.txt")
test_file = PortalFiles.CoordinatesFile(test_file)
names = ",".join(["CELL_0001","CELL_00010","CELL_00011",
"CELL_00012","CELL_00013","CELL_00014",
"CELL_00015","CELL_0002","CELL_0003",
"CELL_0004","CELL_0005","CELL_0006",
"CELL_0007","CELL_0008","CELL_0009"])
test_file.cell_names = None
test_file.update_cell_names()
names_after = ",".join(sorted(test_file.cell_names))
self.assertTrue(names == names_after,
"Updated cell names are correct.")
def test_update_cell_names_from_init(self):
"""
Update cell names from an init value.
"""
test_file = os.path.join("test_files", "coordinates.txt")
test_file = PortalFiles.CoordinatesFile(test_file)
names = ",".join(["CELL_0001","CELL_00010","CELL_00011",
"CELL_00012","CELL_00013","CELL_00014",
"CELL_00015","CELL_0002","CELL_0003",
"CELL_0004","CELL_0005","CELL_0006",
"CELL_0007","CELL_0008","CELL_0009"])
test_file.update_cell_names()
test_file.update_cell_names()
test_file.update_cell_names()
names_after = ",".join(sorted(test_file.cell_names))
self.assertTrue(names == names_after,
"Updated cell names are correct.")
def test_subset_cells_one(self):
"""
Test subset cells to 1 cell.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
correct_file = os.path.join("test_files",
"coordinates_subset_1_correct.txt")
keep_cells = ["CELL_0009"]
test_file = PortalFiles.CoordinatesFile(test_file_name)
subset_file_name = test_file.subset_cells(keep_cells)
# Test files
pass_test = files_are_equivalent(file_path_1=subset_file_name,
file_path_2=correct_file)
# Remove the test files
if(os.path.exists(subset_file_name)):
os.remove(subset_file_name)
self.assertTrue(pass_test, "Can not subset file.")
def test_subset_cells_many(self):
"""
Test subset cells to 3 cell.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
correct_file = os.path.join("test_files",
"coordinates_subset_3_correct.txt")
keep_cells = ["CELL_0009","CELL_0002","CELL_0005"]
test_file = PortalFiles.CoordinatesFile(test_file_name)
subset_file_name = test_file.subset_cells(keep_cells)
# Test files
pass_test = files_are_equivalent(file_path_1=subset_file_name,
file_path_2=correct_file)
# Remove the test files
if(os.path.exists(subset_file_name)):
os.remove(subset_file_name)
self.assertTrue(pass_test, "Can not subset file.")
def test_deidentify_cells(self):
"""
Test deidentify file.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
correct_file = os.path.join("test_files",
"coordinates_deidentifed_correct.txt")
correct_map = os.path.join("test_files",
"coordinates_mapping_correct.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
deid_return = test_file.deidentify_cell_names()
deid_file_name = deid_return["name"]
map_file_name = deid_return["mapping_file"]
# Test files
pass_test = files_are_equivalent(file_path_1=deid_file_name,
file_path_2=correct_file)
pass_test = pass_test and files_are_equivalent(file_path_1=map_file_name,
file_path_2=correct_map)
# Remove the test files
if(os.path.exists(deid_file_name)):
os.remove(deid_file_name)
if(os.path.exists(map_file_name)):
os.remove(map_file_name)
self.assertTrue(pass_test, "Can not deidentify file.")
def test_deidentify_cells_check_created_names(self):
"""
Test deidentify file. Check to make sure cell
names are created and passed.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
cell_mappings_truth = ["CELL_0001:cell_0", "CELL_0002:cell_1", "CELL_0003:cell_2",
"CELL_0004:cell_3", "CELL_0005:cell_4", "CELL_0006:cell_5",
"CELL_0007:cell_6", "CELL_0008:cell_7", "CELL_0009:cell_8",
"CELL_00010:cell_9", "CELL_00011:cell_10", "CELL_00012:cell_11",
"CELL_00013:cell_12", "CELL_00014:cell_13", "CELL_00015:cell_14"]
cell_mappings_truth = ",".join(sorted(cell_mappings_truth))
test_file = PortalFiles.CoordinatesFile(test_file_name)
deid_return = test_file.deidentify_cell_names()
deid_file_name = deid_return["name"]
map_file_name = deid_return["mapping_file"]
deid_file_mapping = deid_return["mapping"]
# Test files
cell_mappings = []
for sorted_key in deid_file_mapping.keys():
cell_mappings.append(str(sorted_key)+":"+str(deid_file_mapping[sorted_key]))
cell_mappings = ",".join(sorted(cell_mappings))
# Remove the test files
if(os.path.exists(deid_file_name)):
os.remove(deid_file_name)
if(os.path.exists(map_file_name)):
os.remove(map_file_name)
self.assertTrue(cell_mappings == cell_mappings_truth,
"Returned mappings were not expected.="+cell_mappings)
def test_deidentify_cells_precreated_names(self):
"""
Test deidentify file with cell already made.
"""
test_file_name = os.path.join("test_files", "coordinates.txt")
correct_file = os.path.join("test_files",
"coordinates_deidentifed_precreated_correct.txt")
correct_map = os.path.join("test_files",
"coordinates_mapping_precreated_correct.txt")
test_file = PortalFiles.CoordinatesFile(test_file_name)
names = dict(zip(test_file.cell_names, [str(i) for i in range(len(test_file.cell_names))]))
deid_return = test_file.deidentify_cell_names(cell_names_change=names)
deid_file_name = deid_return["name"]
map_file_name = deid_return["mapping_file"]
# Test files
pass_test = files_are_equivalent(file_path_1=deid_file_name,
file_path_2=correct_file)
pass_test = pass_test and files_are_equivalent(file_path_1=map_file_name,
file_path_2=correct_map)
# Remove the test files
if(os.path.exists(deid_file_name)):
os.remove(deid_file_name)
if(os.path.exists(map_file_name)):
os.remove(map_file_name)
self.assertTrue(pass_test, "Can not deidentify file.")
class ExpressionFileTester(unittest.TestCase):
"""
Tests the expression file object.
"""
def test_init(self):
"""
Make sure init can occur.
"""
test_file = os.path.join("test_files", "expression.txt")
PortalFiles.ExpressionFile(test_file)
self.assertTrue(True, "Expression File can init.")
def test_check_header_correct(self):
"""
Check the header is called correct when it is.
"""
test_file_name = os.path.join("test_files", "expression.txt")
test_file = PortalFiles.ExpressionFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(not test_file.file_has_error,
"Should not have reached an error state.")
def test_check_header_incorrect_00(self):
"""
Check the header is called incorrect when element 00 is wrong.
"""
test_file_name = os.path.join("test_files",
"expression_bad_header.txt")
test_file = PortalFiles.ExpressionFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_header_incorrect_element_count(self):
"""
Check the header is called incorrect when 00 is blank.
"""
test_file_name = os.path.join("test_files",
"expression_bad_header_2.txt")
test_file = PortalFiles.ExpressionFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_body_correct(self):
"""
Check the body is called correct when it is.
"""
test_file_name = os.path.join("test_files", "expression.txt")
test_file = PortalFiles.ExpressionFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(not test_file.file_has_error,
"Should not have reached an error state.")
def test_check_body_incorrect_1(self):
"""
Check the body is called incorrect when it has a missing element.
"""
test_file_name = os.path.join("test_files",
"expression_bad_body_1.txt")
test_file = PortalFiles.ExpressionFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_body_incorrect_2(self):
"""
Check the body is called incorrect when it has a wrong type element.
"""
test_file_name = os.path.join("test_files",
"expression_bad_body_2.txt")
test_file = PortalFiles.ExpressionFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_update_cell_names_from_none(self):
"""
Update cell names from a None value.
"""
test_file = os.path.join("test_files", "expression.txt")
test_file = PortalFiles.ExpressionFile(test_file)
names = ",".join(sorted(test_file.cell_names))
test_file.cell_names = None
test_file.update_cell_names()
names_after = ",".join(sorted(test_file.cell_names))
self.assertTrue(names == names_after,
"Updated cell names are correct.")
def test_update_cell_names_from_init(self):
"""
Update cell names from an init value.
"""
test_file = os.path.join("test_files", "expression.txt")
test_file = PortalFiles.ExpressionFile(test_file)
names = "".join(["CELL_0001,CELL_00010,CELL_00011,",
"CELL_00012,CELL_00013,CELL_00014,",
"CELL_00015,CELL_0002,CELL_0003,",
"CELL_0004,CELL_0005,CELL_0006,",
"CELL_0007,CELL_0008,CELL_0009"])
test_file.update_cell_names()
test_file.update_cell_names()
test_file.update_cell_names()
names_after = ",".join(sorted(test_file.cell_names))
self.assertTrue(names == names_after,
"Updated cell names are correct.")
def test_deidentify_cells(self):
"""
Test deidentify file.
"""
test_file_name = os.path.join("test_files", "expression.txt")
correct_file = os.path.join("test_files",
"expression_deidentifed_correct.txt")
correct_map = os.path.join("test_files",
"expression_mapping_correct.txt")
test_file = PortalFiles.ExpressionFile(test_file_name)
deid_return = test_file.deidentify_cell_names()
deid_file_name = deid_return["name"]
map_file_name = deid_return["mapping_file"]
# Test files
pass_test = files_are_equivalent(file_path_1=deid_file_name,
file_path_2=correct_file)
pass_test = pass_test and files_are_equivalent(file_path_1=map_file_name,
file_path_2=correct_map)
# Remove the test files
if(os.path.exists(deid_file_name)):
os.remove(deid_file_name)
if(os.path.exists(map_file_name)):
os.remove(map_file_name)
self.assertTrue(pass_test, "Can not deidentify file.")
def test_deidentify_cells_check_created_names(self):
"""
Test deidentify file. Check to make sure cell
names are created and passed.
"""
test_file_name = os.path.join("test_files", "expression.txt")
deid_file = os.path.join("test_files",
"expression"+PortalFiles.c_DEID_POSTFIX+".txt")
map_file = os.path.join("test_files",
"expression"+PortalFiles.c_MAP_POSTFIX+".txt")
cell_mappings_truth = sorted(["CELL_0001:cell_0", "CELL_0002:cell_1", "CELL_0003:cell_2",
"CELL_0004:cell_3", "CELL_0005:cell_4", "CELL_0006:cell_5",
"CELL_0007:cell_6", "CELL_0008:cell_7", "CELL_0009:cell_8",
"CELL_00010:cell_9", "CELL_00011:cell_10", "CELL_00012:cell_11",
"CELL_00013:cell_12", "CELL_00014:cell_13", "CELL_00015:cell_14"])
cell_mappings_truth = ",".join(cell_mappings_truth)
test_file = PortalFiles.ExpressionFile(test_file_name)
deid_return = test_file.deidentify_cell_names()
deid_file_name = deid_return["name"]
map_file_name = deid_return["mapping_file"]
deid_file_mapping = deid_return["mapping"]
# Test files
cell_mappings = []
for sorted_key in deid_file_mapping.keys():
cell_mappings.append(str(sorted_key)+":"+str(deid_file_mapping[sorted_key]))
cell_mappings = ",".join(sorted(cell_mappings))
# Remove the test files
if(os.path.exists(deid_file_name)):
os.remove(deid_file_name)
if(os.path.exists(map_file_name)):
os.remove(map_file_name)
self.assertTrue(cell_mappings == cell_mappings_truth,
"Returned mappings were not expected.="+cell_mappings)
def test_deidentify_cells_precreated_names(self):
"""
Test deidentify file with cell already made.
"""
test_file_name = os.path.join("test_files", "expression.txt")
correct_file = os.path.join("test_files",
"expression_deidentifed_precreated_correct.txt")
correct_map = os.path.join("test_files",
"expression_mapping_precreated_correct.txt")
test_file = PortalFiles.ExpressionFile(test_file_name)
names = dict(zip(test_file.cell_names, [str(i) for i in range(len(test_file.cell_names))]))
deid_return = test_file.deidentify_cell_names(cell_names_change=names)
deid_file_name = deid_return["name"]
map_file_name = deid_return["mapping_file"]
# Test files
pass_test = files_are_equivalent(file_path_1=deid_file_name,
file_path_2=correct_file)
pass_test = pass_test and files_are_equivalent(file_path_1=map_file_name,
file_path_2=correct_map)
# Remove the test files
if(os.path.exists(deid_file_name)):
os.remove(deid_file_name)
if(os.path.exists(map_file_name)):
os.remove(map_file_name)
self.assertTrue(pass_test, "Can not deidentify file.")
def test_get_gene_names(self):
"""
Confirm that genes names are returned correctly from am good file.
"""
expected_gene_names = ["Itm2a", "Sergef", "Chil5", "Fam109a",
"Dhx9", "Ssu72", "Olfr1018", "Fam71e2",
"Eif2b2", "1700061E18Rik", "Mks1",
"Gm12000", "Hebp2", "Gm14444", "Vps28",
"Setd6", "Gstm2", "Spn-ps", "Psma4"]
test_file_name = os.path.join("test_files", "expression.txt")
test_file = PortalFiles.ExpressionFile(test_file_name)
str_truth = ",".join(sorted(expected_gene_names))
str_received = ",".join(sorted(test_file.get_gene_names()))
self.assertTrue(str_truth == str_received,
"Did not receive the expected gene names.")
def test_subset_cells_one(self):
"""
Test subset cells to 1 cell.
"""
test_file_name = os.path.join("test_files", "expression.txt")
correct_file = os.path.join("test_files",
"expression_subset_1_correct.txt")
keep_cells = ["CELL_0002"]
test_file = PortalFiles.ExpressionFile(test_file_name)
subset_file_name = test_file.subset_cells(keep_cells)
# Test files
pass_test = files_are_equivalent(file_path_1=subset_file_name,
file_path_2=correct_file)
# Remove the test files
if(os.path.exists(subset_file_name)):
os.remove(subset_file_name)
self.assertTrue(pass_test, "Can not subset file.")
def test_subset_cells_many(self):
"""
Test subset cells to 4 cell.
"""
test_file_name = os.path.join("test_files", "expression.txt")
correct_file = os.path.join("test_files",
"expression_subset_4_correct.txt")
keep_cells = ["CELL_0002","CELL_0004","CELL_0006","CELL_0008"]
test_file = PortalFiles.ExpressionFile(test_file_name)
subset_file_name = test_file.subset_cells(keep_cells)
# Test files
pass_test = files_are_equivalent(file_path_1=subset_file_name,
file_path_2=correct_file)
# Remove the test files
if(os.path.exists(subset_file_name)):
os.remove(subset_file_name)
self.assertTrue(pass_test, "Can not subset file.")
class MetadataFileTester(unittest.TestCase):
"""
Tests the Metadata File object.
"""
def test_init(self):
"""
Make sure init can occur
"""
test_file = os.path.join("test_files", "metadata.txt")
PortalFiles.MetadataFile(test_file)
self.assertTrue(True, 'Metadata file can init.')
def test_check_header_correct(self):
"""
Check the header is called correct when it is.
"""
test_file_name = os.path.join("test_files", "metadata.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(not test_file.file_has_error,
"Should not have reached an error state.")
def test_check_header_incorrect_00(self):
"""
Check the header is called incorrect when element 00 is wrong.
"""
test_file_name = os.path.join("test_files",
"metadata_bad_header.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_header_incorrect_element_count(self):
"""
Check the header is called incorrect when 00 is blank.
"""
test_file_name = os.path.join("test_files",
"metadata_bad_header_2.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_header_duplicate_id(self):
"""
Check the header is called incorrect when a column is duplicate.
"""
test_file_name = os.path.join("test_files",
"metadata_bad_header_dup.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_header_no_data_column(self):
"""
Check the header is called incorrect when there are only id columns.
"""
test_file_name = os.path.join("test_files",
"metadata_bad_no_data.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_type_row_correct(self):
"""
Check the type row is called correct when it is.
"""
test_file_name = os.path.join("test_files", "metadata.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_type_row()
self.assertTrue(not test_file.file_has_error,
"Should not have reached an error state.")
def test_check_type_row_bad_type(self):
"""
Check the type row is called error when one of the types are incorrect.
"""
test_file_name = os.path.join("test_files", "metadata_bad_type.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_type_row()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_type_row_bad_type_id(self):
"""
Check the type row is called error when the type id is not correct
"""
test_file_name = os.path.join("test_files", "metadata_bad_type_id.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_type_row()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_type_row_bad_row_length(self):
"""
Check the type row is called error when the type row is a wrong length
"""
test_file_name = os.path.join("test_files", "metadata_bad_type_row_length.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_type_row()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_body_correct(self):
"""
Check the body is called correct when it is
"""
test_file_name = os.path.join("test_files",
"metadata.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(not test_file.file_has_error,
"Should have not reached an error state.")
def test_check_body_incorrect_1(self):
"""
Check the body is called incorrect when it has a missing element.
"""
test_file_name = os.path.join("test_files",
"metadata_bad_body_1.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_body_incorrect_2(self):
"""
Check the body is called incorrect when it has a wrong type element.
"""
test_file_name = os.path.join("test_files",
"metadata_bad_body_2.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_update_cell_names_from_none(self):
"""
Update cell names from a None value.
"""
test_file = os.path.join("test_files", "metadata.txt")
test_file = PortalFiles.MetadataFile(test_file)
names = ",".join(sorted(test_file.cell_names))
test_file.cell_names = None
test_file.update_cell_names()
names_after = ",".join(sorted(test_file.cell_names))
self.assertTrue(names == names_after,
"Updated cell names are correct.")
def test_update_cell_names_from_init(self):
"""
Update cell names from an init value.
"""
test_file = os.path.join("test_files", "metadata.txt")
test_file = PortalFiles.MetadataFile(test_file)
names = "".join(["CELL_0001,CELL_00010,CELL_00011,",
"CELL_00012,CELL_00013,CELL_00014,",
"CELL_00015,CELL_0002,CELL_0003,",
"CELL_0004,CELL_0005,CELL_0006,",
"CELL_0007,CELL_0008,CELL_0009"])
test_file.update_cell_names()
test_file.update_cell_names()
test_file.update_cell_names()
names_after = ",".join(sorted(test_file.cell_names))
self.assertTrue(names == names_after,
"Updated cell names are correct.")
def test_deidentify_cells(self):
"""
Test deidentify file.
"""
test_file_name = os.path.join("test_files", "metadata.txt")
correct_file = os.path.join("test_files",
"metadata_deidentifed_correct.txt")
correct_map = os.path.join("test_files",
"metadata_mapping_correct.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
deid_return = test_file.deidentify_cell_names()
deid_file_name = deid_return["name"]
map_file_name = deid_return["mapping_file"]
# Test files
pass_test = files_are_equivalent(file_path_1=deid_file_name,
file_path_2=correct_file)
pass_test = pass_test and files_are_equivalent(file_path_1=map_file_name,
file_path_2=correct_map)
# Remove the test files
if(os.path.exists(deid_file_name)):
os.remove(deid_file_name)
if(os.path.exists(map_file_name)):
os.remove(map_file_name)
self.assertTrue(pass_test, "Can not deidentify file.")
def test_deidentify_cells_check_created_names(self):
"""
Test deidentify file. Check to make sure cell
names are created and passed.
"""
test_file_name = os.path.join("test_files", "metadata.txt")
cell_mappings_truth = sorted(["CELL_0001:cell_0", "CELL_0002:cell_1", "CELL_0003:cell_2",
"CELL_0004:cell_3", "CELL_0005:cell_4", "CELL_0006:cell_5",
"CELL_0007:cell_6", "CELL_0008:cell_7", "CELL_0009:cell_8",
"CELL_00010:cell_9", "CELL_00011:cell_10", "CELL_00012:cell_11",
"CELL_00013:cell_12", "CELL_00014:cell_13", "CELL_00015:cell_14"])
cell_mappings_truth = ",".join(cell_mappings_truth)
test_file = PortalFiles.MetadataFile(test_file_name)
deid_return = test_file.deidentify_cell_names()
deid_file_name = deid_return["name"]
map_file_name = deid_return["mapping_file"]
deid_file_mapping = deid_return["mapping"]
# Test files
cell_mappings = []
for sorted_key in deid_file_mapping.keys():
cell_mappings.append(str(sorted_key)+":"+str(deid_file_mapping[sorted_key]))
cell_mappings = ",".join(sorted(cell_mappings))
# Remove the test files
if(os.path.exists(deid_file_name)):
os.remove(deid_file_name)
if(os.path.exists(map_file_name)):
os.remove(map_file_name)
self.assertTrue(cell_mappings == cell_mappings_truth,
"Returned mappings were not expected.="+cell_mappings)
def test_deidentify_cells_precreated_names(self):
"""
Test deidentify file with cell already made.
"""
test_file_name = os.path.join("test_files", "metadata.txt")
correct_file = os.path.join("test_files",
"metadata_deidentifed_precreated_correct.txt")
correct_map = os.path.join("test_files",
"metadata_mapping_precreated_correct.txt")
test_file = PortalFiles.MetadataFile(test_file_name)
names = dict(zip(test_file.cell_names, [str(i) for i in range(len(test_file.cell_names))]))
deid_return = test_file.deidentify_cell_names(cell_names_change=names)
deid_file_name = deid_return["name"]
map_file_name = deid_return["mapping_file"]
# Test files
pass_test = files_are_equivalent(file_path_1=deid_file_name,
file_path_2=correct_file)
pass_test = pass_test and files_are_equivalent(file_path_1=map_file_name,
file_path_2=correct_map)
# Remove the test files
if(os.path.exists(deid_file_name)):
os.remove(deid_file_name)
if(os.path.exists(map_file_name)):
os.remove(map_file_name)
self.assertTrue(pass_test, "Can not deidentify file.")
def test_get_labels_correct(self):
"""
Check to make sure labels are returned correctly with a good file
"""
test_file_name = os.path.join("test_files",
"metadata.txt")
truth = ["CLST_A", "CLST_B", "CLST_C",
"CLST_A_1", "CLST_A_2", "CLST_B_1",
"CLST_B_2", "CLST_C_1", "CLST_C_2"]
test_file = PortalFiles.MetadataFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
received_labels = test_file.get_labels()
truth_str = ",".join(sorted(truth))
received_str = ",".join(sorted(received_labels))
self.assertTrue(truth_str == received_str,
"Did not receive the expected labels.")
def test_subset_cells_one(self):
"""
Test subset cells to 1 cell.
"""
test_file_name = os.path.join("test_files", "metadata.txt")
correct_file = os.path.join("test_files",
"metadata_subset_1_correct.txt")
keep_cells = ["CELL_0001"]
test_file = PortalFiles.MetadataFile(test_file_name)
subset_file_name = test_file.subset_cells(keep_cells)
# Test files
pass_test = files_are_equivalent(file_path_1=subset_file_name,
file_path_2=correct_file)
# Remove the test files
if(os.path.exists(subset_file_name)):
os.remove(subset_file_name)
self.assertTrue(pass_test, "Can not subset file.")
def test_subset_cells_many(self):
"""
Test subset cells to 2 cell.
"""
test_file_name = os.path.join("test_files", "metadata.txt")
correct_file = os.path.join("test_files",
"metadata_subset_2_correct.txt")
keep_cells = ["CELL_0001","CELL_00015"]
test_file = PortalFiles.MetadataFile(test_file_name)
subset_file_name = test_file.subset_cells(keep_cells)
# Test files
pass_test = files_are_equivalent(file_path_1=subset_file_name,
file_path_2=correct_file)
# Remove the test files
if(os.path.exists(subset_file_name)):
os.remove(subset_file_name)
self.assertTrue(pass_test, "Can not subset file.")
class GeneListFileTester(unittest.TestCase):
"""
Tests the Gene list file object.
"""
def test_get_gene_names(self):
"""
Confirm that genes names are returned correctly from am good file.
"""
expected_gene_names = ["Itm2a", "Sergef", "Chil5", "Fam109a",
"Dhx9", "Ssu72", "Olfr1018", "Fam71e2",
"Eif2b2", "1700061E18Rik", "Mks1",
"Gm12000", "Hebp2", "Gm14444", "Vps28",
"Setd6", "Gstm2", "Spn-ps", "Psma4"]
test_file_name = os.path.join("test_files", "gene_list.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
str_truth = ",".join(sorted(expected_gene_names))
str_received = ",".join(sorted(test_file.get_gene_names()))
self.assertTrue(str_truth == str_received,
"Did not receive the expected gene names.")
def test_check_header_correct(self):
"""
Check the header is called correct when it is.
"""
test_file_name = os.path.join("test_files", "gene_list.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(not test_file.file_has_error,
"Should not have reached an error state.")
def test_check_header_bad_00(self):
"""
Check the header is called error when the 00 element is wrong.
"""
test_file_name = os.path.join("test_files", "gene_list_bad_header.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_header()
self.assertTrue(test_file.file_has_error,
"Should not have reached an error state.")
def test_check_body_correct(self):
"""
Check the body is called correct when it is correct.
"""
test_file_name = os.path.join("test_files",
"gene_list.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(not test_file.file_has_error,
"Should have reached an error state.")
def test_check_body_incorrect_type(self):
"""
Check the body is called correct when it is correct.
"""
test_file_name = os.path.join("test_files",
"gene_list_bad_type.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_body_incorrect_value_empty(self):
"""
Check the body is called correct when one value is empty.
"""
test_file_name = os.path.join("test_files",
"gene_list_bad_empty_value.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_check_body_incorrect_row_length(self):
"""
Check the body is called correct when one row is too long.
"""
test_file_name = os.path.join("test_files",
"gene_list_bad_row_length.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.check_body()
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_deidentify_cells(self):
"""
Test deidentify file.
"""
test_file_name = os.path.join("test_files", "gene_list.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
deid_result = test_file.deidentify_cell_names()
self.assertTrue((deid_result["name"] is None) and
(deid_result["mapping"] is None),
"Should not have attempted to deid file, there are no cell names.")
def test_compare_gene_names_for_good(self):
"""
Check compare gene names for a good file.
"""
test_file_name = os.path.join("test_files",
"gene_list.txt")
test_expression_file_name = os.path.join("test_files", "expression.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
expr_file = PortalFiles.ExpressionFile(test_expression_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.compare_gene_names(expr_file)
self.assertTrue(not test_file.file_has_error,
"Should have reached an error state.")
def test_compare_gene_names_for_good_2(self):
"""
Check compare gene names for a good file, expression file having more genes then gene list.
"""
test_file_name = os.path.join("test_files",
"gene_list_minus_one.txt")
test_expression_file_name = os.path.join("test_files", "expression.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
expr_file = PortalFiles.ExpressionFile(test_expression_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.compare_gene_names(expr_file)
self.assertTrue(not test_file.file_has_error,
"Should have reached an error state.")
def test_compare_gene_names_for_none_expression(self):
"""
Check compare gene names for a none expression file.
"""
test_file_name = os.path.join("test_files",
"gene_list.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
expr_file = None
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.compare_gene_names(expr_file)
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_compare_gene_names_for_missing_in_expression(self):
"""
Check compare gene names for an expression file missing a gene in the gene list.
"""
test_file_name = os.path.join("test_files",
"gene_list_plus_one.txt")
test_expression_file_name = os.path.join("test_files", "expression.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
expr_file = PortalFiles.ExpressionFile(test_expression_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.compare_gene_names(expr_file)
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_compare_cluster_labels_for_good(self):
"""
Check compare cluster labels for good files
"""
test_file_name = os.path.join("test_files",
"gene_list.txt")
test_metadata_file_name = os.path.join("test_files", "metadata.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
meta_file = PortalFiles.MetadataFile(test_metadata_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.compare_cluster_labels(meta_file)
self.assertTrue(not test_file.file_has_error,
"Should not have reached an error state.")
def test_compare_cluster_labels_for_missing_label(self):
"""
Check compare cluster labels for a missing
label that is only found in the gene list file.
"""
test_file_name = os.path.join("test_files",
"gene_list_additional_label.txt")
test_metadata_file_name = os.path.join("test_files", "metadata.txt")
test_file = PortalFiles.GeneListFile(test_file_name)
meta_file = PortalFiles.MetadataFile(test_metadata_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
test_file.compare_cluster_labels(meta_file)
self.assertTrue(test_file.file_has_error,
"Should have reached an error state.")
def test_get_labels_correct(self):
"""
Check to make sure labels are returned correctly with a good file
"""
test_file_name = os.path.join("test_files",
"gene_list.txt")
truth = ["CLST_B", "CLST_C", "CLST_A"]
test_file = PortalFiles.GeneListFile(test_file_name)
if test_file.file_has_error:
self.assertTrue(False, "Did not start test with a no error state.")
received_labels = test_file.get_labels()
truth_str = ",".join(sorted(truth))
received_str = ",".join(sorted(received_labels))
self.assertTrue(truth_str == received_str,
"Did not receive the expected labels.")
class SortSparseMatrixTester(unittest.TestCase):
"""
Tests the Sparse Matrix Sorting function.
"""
def test_check_sort_sparse_matrix(self):
"""
Check that the sparse matrix sorting function outputs a correctely sorted file.
"""
SortSparseMatrix.sort_sparse_matrix(os.path.join("test_files", "test_sparse_matrix.mtx"), "sorted_test.mtx")
self.assertTrue(files_are_equivalent(os.path.join("test_files", "gene_sorted-test_sparse_matrix.mtx"), "sorted_test.mtx"),
"Generated file and validation file are not equal.")
# Creates a suite of tests
def suite():
loader = unittest.TestLoader()
tests = loader.loadTestsFromTestCase(CoordinatesFileTester)
tests.addTests(loader.loadTestsFromTestCase(ExpressionFileTester))
tests.addTests(loader.loadTestsFromTestCase(MetadataFileTester))
tests.addTests(loader.loadTestsFromTestCase(GeneListFileTester))
tests.addTests(loader.loadTestsFromTestCase(SortSparseMatrixTester))
return(tests)
| 46.075037
| 130
| 0.611703
| 7,620
| 62,017
| 4.656299
| 0.042126
| 0.103041
| 0.050731
| 0.043404
| 0.90423
| 0.888532
| 0.866182
| 0.85147
| 0.840422
| 0.821285
| 0
| 0.018516
| 0.297241
| 62,017
| 1,345
| 131
| 46.109294
| 0.795585
| 0.087476
| 0
| 0.788971
| 0
| 0
| 0.193265
| 0.033272
| 0
| 0
| 0
| 0
| 0.133616
| 1
| 0.086957
| false
| 0.031813
| 0.008484
| 0
| 0.100742
| 0.006363
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9e1a7658136e2fad1bc312db9620bc87bb1fdb18
| 5,384
|
py
|
Python
|
tests/itach.py
|
rlsgit/pytach
|
8ee7ee427ec4bf6f78992adce0cfdfb9f3e94509
|
[
"MIT"
] | null | null | null |
tests/itach.py
|
rlsgit/pytach
|
8ee7ee427ec4bf6f78992adce0cfdfb9f3e94509
|
[
"MIT"
] | null | null | null |
tests/itach.py
|
rlsgit/pytach
|
8ee7ee427ec4bf6f78992adce0cfdfb9f3e94509
|
[
"MIT"
] | null | null | null |
"""
The itach driver test function.
"""
import logging
import logging.config
import time
from pytach import iTach
from pytach import const
logging.config.fileConfig("logging.ini",disable_existing_loggers=False)
_LOGGER = logging.getLogger(__name__)
_LOGGER.info("iTach test starting...")
configIR = {
"type": const.TYPE_IR,
"name": "ip2ir01",
"host": "192.168.1.32",
# "devices": [
# {
# "name": "proj",
# "port": 2,
# "commands": [
# {
# "name": "on",
# "data": "0000 006C 0000 0022 0157 00AB 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 060A"
# },
# {
# "name": "off",
# "data": "0000 006C 0000 0022 0157 00AB 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 060A"
# }
# ]
# }
# ]
}
itach = iTach.createHost(configIR)
_LOGGER.info("iTach created: %s", itach.toString())
itach.addDevice({ const.CONF_NAME: "projector", const.CONF_PORT: "2" })
_LOGGER.info("iTach with projector: %s", itach.toString())
itach.removeDevice("projector")
_LOGGER.info("iTach without projector: %s", itach.toString())
projector = itach.addDevice({ const.CONF_NAME: "projector", const.CONF_PORT: "2" })
_LOGGER.info("iTach with projector: %s", itach.toString())
projector.addCommand({ const.CONF_NAME: "blank", const.CONF_DATA: "0000 006C 0000 0022 0157 00AB 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 060A" })
response = projector.sendCommand("blank")
_LOGGER.info("projector on returned: %s", response)
# print(prontoToGC(1,1,"0000 006C 0000 0022 0157 00AB 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 060A"))
# print(prontoToGC(1,1,"0000 006C 0000 0022 0157 00AB 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 060A"))
# configIR = {
# "type": TYPE_IR,
# "name": "ip2ir01",
# "host": "192.168.1.32",
# "devices": [
# {
# "name": "proj",
# "port": 2,
# "commands": [
# {
# "name": "on",
# "data": "0000 006C 0000 0022 0157 00AB 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 060A"
# },
# {
# "name": "off",
# "data": "0000 006C 0000 0022 0157 00AB 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 060A"
# }
# ]
# }
# ]
# }
# itachIR = iTach.createHost(configIR)
# print(itachIR.getDevice("proj").sendData("sendir,1:1,1,38000,1,1,343,171,21,64,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,21,21,64,21,21,21,64,21,21,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,21,21,21,21,64,21,64,21,64,21,64,21,64,21,21,21,64,21,64,21,21,21,1546"))
# configSL = {
# "type": TYPE_SL,
# "name": "ip2sl01",
# "host": "192.168.1.31",
# "devices": [
# {
# "name": "mca",
# "port": 1,
# "commands": [
# {
# "name": "zone1_status",
# "data": "?11\r"
# },
# {
# "name": "zone1_on",
# "data": "<11PR01\r"
# },
# {
# "name": "zone1_off",
# "data": "<11PR00\r"
# }
# ]
# }
# ]
# }
# itachSL = iTach.createHost(configSL)
#print(itachSL.getDevice("mca").sendCommand("zone1_status"))
#print(itachSL.getDevice("mca").sendCommand("zone1_on"))
#time.sleep(5)
#print(itachSL.getDevice("mca").sendCommand("zone1_off"))
#print(itachSL.getDevice("mca").sendCommand("zone1_status"))
| 47.646018
| 431
| 0.651932
| 830
| 5,384
| 4.193976
| 0.107229
| 0.546969
| 0.606722
| 0.523987
| 0.786843
| 0.775065
| 0.752083
| 0.724504
| 0.724504
| 0.711864
| 0
| 0.534742
| 0.235513
| 5,384
| 112
| 432
| 48.071429
| 0.310982
| 0.698366
| 0
| 0.083333
| 0
| 0.041667
| 0.404612
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.208333
| 0
| 0.208333
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
f564b74111b159142fbbba3b27d775d0df390d39
| 11,560
|
py
|
Python
|
script/swift_sqlite_helper.py
|
NightDrivers/PythonStudy
|
25c4eafc0c68d0faac06af0e27622c74ff9dac22
|
[
"MIT"
] | null | null | null |
script/swift_sqlite_helper.py
|
NightDrivers/PythonStudy
|
25c4eafc0c68d0faac06af0e27622c74ff9dac22
|
[
"MIT"
] | null | null | null |
script/swift_sqlite_helper.py
|
NightDrivers/PythonStudy
|
25c4eafc0c68d0faac06af0e27622c74ff9dac22
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import re
import argparse
def parse_argv():
__parse = argparse.ArgumentParser()
__parse.add_argument("file", help="文件名")
__parse.add_argument("--tab-identation-width", type=int, default=4, help="代码Tab缩进宽度")
__parse.add_argument("--connection", default="DBConnection", help="DBConnection实例名称")
return __parse.parse_args()
if __name__ == "__main__":
argv = parse_argv()
source_file_path = argv.file
source_file = open(source_file_path)
tab_identation_width = argv.tab_identation_width
connection = argv.connection
print(tab_identation_width)
file_prefix_text = ""
class_name = ""
super_class_name = ""
identation_component_text = " " * tab_identation_width
variables = []
variable_declaration_codes = []
for item in source_file:
if len(class_name) == 0:
match = re.match("class .+: .+{\n", item, re.RegexFlag.DOTALL)
file_prefix_text += item
if match is not None:
# 这里可能没有父类
temp = item[6:-3].split(": ")
class_name = temp[0]
super_class_name = temp[1]
print(repr(temp))
print(class_name)
print(super_class_name)
else:
if item.startswith(identation_component_text + "var "):
print(repr(item))
if item.endswith("{\n"):
continue
variable_declaration_codes.append(item)
temp = item[8:-1]
elif item.startswith(identation_component_text + "@objc var "):
print(repr(item))
if item.endswith("{\n"):
continue
variable_declaration_codes.append(item)
temp = item[14:-1]
else:
continue
temp = temp.replace(" ", "")
temp = "".join(re.split("//.+", temp))
if temp.__contains__("="):
if temp.__contains__(":"):
temp = temp.split("=")[0]
items = temp.split(":")
variables.append((items[0], items[1]))
else:
items = temp.split("=")
variable_type = ""
if re.match("\\d+", items[1]) is not None:
variable_type = "Int"
elif re.match("\".?\"", items[1], re.RegexFlag.DOTALL):
variable_type = "String"
elif re.match(".+\\(\\)", items[1], re.RegexFlag.DOTALL):
variable_type = items[1][:-2]
elif re.match("true|false", items[1]):
variable_type = "Bool"
else:
print("暂不支持的变量声明格式: {0}".format(item))
continue
variables.append((items[0], variable_type))
elif temp.__contains__(":"):
items = temp.split(":")
variables.append((items[0], items[1]))
else:
print("暂不支持的变量声明格式: {0}".format(item))
continue
source_file.close()
if len(variables) == 0:
print("没有找到声明的变量")
exit(0)
source_file = open(source_file_path, "wt")
source_file.write(file_prefix_text)
source_file.write("\n")
for item in variable_declaration_codes:
source_file.write(item)
# TableColum
source_file.write("\n")
source_file.write(identation_component_text + "struct TableColumn {\n")
for item in variables:
print(item[0])
print(item[1])
source_file.write(identation_component_text*2 + "static let {0} = Expression<{1}>(\"{0}\")\n".format(item[0], item[1]))
source_file.write(identation_component_text + "}\n")
source_file.write("\n")
source_file.write( identation_component_text + "static let table = Table(\"{0}\")\n".format(class_name))
# create
source_file.write("\n")
source_file.write(identation_component_text + "static var create = {\n")
source_file.write(identation_component_text*2 + "\n")
source_file.write(identation_component_text*2 + "return table.create(temporary: false, ifNotExists: true, withoutRowid: false) {\n")
for item in variables:
source_file.write(identation_component_text*3 + "$0.column(TableColumn.{0})\n".format(item[0]))
source_file.write(identation_component_text*2 + "}\n")
source_file.write(identation_component_text + "}()\n")
# all
source_file.write("\n")
source_file.write(identation_component_text + "static func all(_ predicate: Expression<Bool> = Expression<Bool>.init(value: true)) -> [{0}] ".format(class_name) + "{\n")
source_file.write(identation_component_text * 2 + "\n")
source_file.write(identation_component_text * 2 + "do {\n")
source_file.write(identation_component_text * 3 + "let items = try {0}.prepare({1}.table.filter(predicate))\n".format(connection, class_name))
source_file.write(identation_component_text * 3 + "let models = items.map({ " + "row -> {0} in\n".format(class_name))
source_file.write(identation_component_text * 4 + "let item = {0}()\n".format(class_name))
for item in variables:
source_file.write(identation_component_text * 4 + "item.{0} = row[TableColumn.{0}]\n".format(item[0]))
source_file.write(identation_component_text * 4 + "return item\n")
source_file.write(identation_component_text * 3 + "})\n")
source_file.write(identation_component_text * 3 + "return models\n")
source_file.write(identation_component_text * 2 + "} catch {\n")
source_file.write(identation_component_text * 3 + "print(error)\n")
source_file.write(identation_component_text * 3 + "return []\n")
source_file.write(identation_component_text * 2 + "}\n")
source_file.write(identation_component_text + "}\n")
# insert
source_file.write("\n")
source_file.write(identation_component_text + "func insert() throws {\n")
source_file.write(identation_component_text * 2 + "\n")
source_file.write(identation_component_text * 2 + "do {\n")
source_file.write(identation_component_text * 3 + "let insert = {0}.table.insert(\n".format(class_name))
for i in range(len(variables)):
item = variables[i]
source_file.write(identation_component_text * 4 + "TableColumn.{0} <- self.{0}".format(item[0]))
if i == len(variables) - 1:
source_file.write("\n")
else:
source_file.write(",\n")
source_file.write(identation_component_text * 3 + ")\n")
source_file.write(identation_component_text * 3 + "try {0}.run(insert)\n".format(connection))
source_file.write(identation_component_text * 2 + "} catch {\n")
source_file.write(identation_component_text * 3 + "print(error)\n")
source_file.write(identation_component_text * 3 + "throw error\n")
source_file.write(identation_component_text * 2 + "}\n")
source_file.write(identation_component_text + "}\n")
# delete
source_file.write("\n")
source_file.write(identation_component_text + "static func delete(_ predicate: Expression<Bool> = Expression<Bool>.init(value: true)) throws {\n")
source_file.write(identation_component_text * 2 + "\n")
source_file.write(identation_component_text * 2 + "do {\n")
source_file.write(identation_component_text * 3 + "let delete = {0}.table.filter(predicate).delete()\n".format(class_name))
source_file.write(identation_component_text * 3 + "try {0}.run(delete)\n".format(connection))
source_file.write(identation_component_text * 2 + "} catch {\n")
source_file.write(identation_component_text * 3 + "print(error)\n")
source_file.write(identation_component_text * 3 + "throw error\n")
source_file.write(identation_component_text * 2 + "}\n")
source_file.write(identation_component_text + "}\n")
# update
source_file.write("\n")
source_file.write(identation_component_text + "func update(_ predicate: Expression<Bool> = Expression<Bool>.init(value: true)) throws {\n")
source_file.write(identation_component_text * 2 + "\n")
source_file.write(identation_component_text * 2 + "do {\n")
source_file.write(
identation_component_text * 3 + "let update = {0}.table.filter(predicate).update(\n".format(class_name))
for i in range(len(variables)):
item = variables[i]
source_file.write(identation_component_text * 4 + "TableColumn.{0} <- self.{0}".format(item[0]))
if i == len(variables) - 1:
source_file.write("\n")
else:
source_file.write(",\n")
source_file.write(identation_component_text * 3 + ")\n")
source_file.write(identation_component_text * 3 + "try {0}.run(update)\n".format(connection))
source_file.write(identation_component_text * 2 + "} catch {\n")
source_file.write(identation_component_text * 3 + "print(error)\n")
source_file.write(identation_component_text * 3 + "throw error\n")
source_file.write(identation_component_text * 2 + "}\n")
source_file.write(identation_component_text + "}\n")
# exist
source_file.write("\n")
source_file.write(identation_component_text + "static func exist(_ predicate: Expression<Bool> = Expression<Bool>.init(value: true)) -> Bool {\n")
source_file.write(identation_component_text * 2 + "\n")
source_file.write(identation_component_text * 2 + "do {\n")
source_file.write(
identation_component_text * 3 + "let items = try {0}.prepare({1}.table.filter(predicate))\n".format(connection, class_name))
source_file.write(identation_component_text * 3 + "return items.first(where: { _ in true }) != nil\n")
source_file.write(identation_component_text * 2 + "} catch {\n")
source_file.write(identation_component_text * 3 + "print(error)\n")
source_file.write(identation_component_text * 3 + "return false\n")
source_file.write(identation_component_text * 2 + "}\n")
source_file.write(identation_component_text + "}\n")
# first item
source_file.write("\n")
source_file.write(identation_component_text + "static func firstItem(_ predicate: Expression<Bool> = Expression<Bool>.init(value: true)) -> {0}? ".format(class_name) + "{\n")
source_file.write(identation_component_text * 2 + "\n")
source_file.write(identation_component_text * 2 + "do {\n")
source_file.write(identation_component_text * 3 + "let items = try {0}.prepare({1}.table.filter(predicate))\n".format(connection, class_name))
source_file.write(identation_component_text * 3 + "if let item = items.first(where: { _ in true }) {\n")
source_file.write(identation_component_text * 4 + "let model = {0}()\n".format(class_name))
for item in variables:
source_file.write(identation_component_text * 4 + "model.{0} = item[TableColumn.{0}]\n".format(item[0]))
source_file.write(identation_component_text * 4 + "return model\n")
source_file.write(identation_component_text * 3 + "}else {\n")
source_file.write(identation_component_text * 4 + "return nil\n")
source_file.write(identation_component_text * 3 + "}\n")
source_file.write(identation_component_text * 2 + "} catch {\n")
source_file.write(identation_component_text * 3 + "print(error)\n")
source_file.write(identation_component_text * 3 + "return nil\n")
source_file.write(identation_component_text * 2 + "}\n")
source_file.write(identation_component_text + "}\n")
source_file.write("}\n")
source_file.close()
| 50.26087
| 178
| 0.640398
| 1,431
| 11,560
| 4.906359
| 0.090846
| 0.156673
| 0.217918
| 0.302663
| 0.780088
| 0.756445
| 0.748469
| 0.737644
| 0.704316
| 0.701325
| 0
| 0.015225
| 0.215917
| 11,560
| 229
| 179
| 50.480349
| 0.759378
| 0.007785
| 0
| 0.5
| 0
| 0.025
| 0.178113
| 0.040056
| 0
| 0
| 0
| 0
| 0
| 1
| 0.005
| false
| 0
| 0.01
| 0
| 0.02
| 0.085
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f565bb055ff6913f93cf3590772a4d10b7878b81
| 187
|
py
|
Python
|
Aulas/aula07a.py
|
yurixf/Python
|
d1f91d52235dcba73deff281d80af0b44f028735
|
[
"MIT"
] | null | null | null |
Aulas/aula07a.py
|
yurixf/Python
|
d1f91d52235dcba73deff281d80af0b44f028735
|
[
"MIT"
] | null | null | null |
Aulas/aula07a.py
|
yurixf/Python
|
d1f91d52235dcba73deff281d80af0b44f028735
|
[
"MIT"
] | null | null | null |
n = input('Digite algo:')
print ('Seu nome é: {:20}!'.format(n))
print ('Seu nome é: {:=>20}!'.format(n))
print ('Seu nome é: {:=<20}!'.format(n))
print ('Seu nome é: {:=^20}!'.format(n))
| 37.4
| 40
| 0.55615
| 32
| 187
| 3.25
| 0.3125
| 0.307692
| 0.461538
| 0.5
| 0.846154
| 0.846154
| 0.846154
| 0.846154
| 0.846154
| 0.846154
| 0
| 0.04878
| 0.122995
| 187
| 5
| 41
| 37.4
| 0.585366
| 0
| 0
| 0
| 0
| 0
| 0.478723
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.8
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 11
|
f5762aca8eacbf3ebfa63be00a7c87c48a29c37c
| 4,993
|
py
|
Python
|
gyoithon/migrations/0005_auto_20210506_1358.py
|
gyoisamurai/GyoiBoard
|
aebd29820a39d1d88b9e5874b56f923b1c88d170
|
[
"MIT"
] | 3
|
2021-07-03T12:41:39.000Z
|
2021-11-18T17:23:08.000Z
|
gyoithon/migrations/0005_auto_20210506_1358.py
|
gyoisamurai/GyoiBoard
|
aebd29820a39d1d88b9e5874b56f923b1c88d170
|
[
"MIT"
] | null | null | null |
gyoithon/migrations/0005_auto_20210506_1358.py
|
gyoisamurai/GyoiBoard
|
aebd29820a39d1d88b9e5874b56f923b1c88d170
|
[
"MIT"
] | 3
|
2021-06-12T13:25:48.000Z
|
2021-09-30T19:06:49.000Z
|
# Generated by Django 3.1.7 on 2021-05-06 04:58
import datetime
from django.db import migrations, models
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('gyoithon', '0004_auto_20210506_0955'),
]
operations = [
migrations.CreateModel(
name='Domain',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=255, verbose_name='Domain Name')),
('registrar', models.CharField(default='N/A', max_length=255, verbose_name='Registrar')),
('administrative_contact', models.CharField(default='N/A', max_length=255, verbose_name='Administrative Contact')),
('registrant_name', models.CharField(default='N/A', max_length=255, verbose_name='Registrant Name')),
('registrant_organization', models.CharField(default='N/A', max_length=255, verbose_name='Registrant Organization')),
('registrant_email', models.CharField(default='N/A', max_length=255, verbose_name='Registrant Email')),
('admin_name', models.CharField(default='N/A', max_length=255, verbose_name='Admin Name')),
('admin_organization', models.CharField(default='N/A', max_length=255, verbose_name='Admin Organization')),
('admin_email', models.CharField(default='N/A', max_length=255, verbose_name='Admin Email')),
('tech_name', models.CharField(default='N/A', max_length=255, verbose_name='Tech Name')),
('tech_organization', models.CharField(default='N/A', max_length=255, verbose_name='Tech Organization')),
('tech_email', models.CharField(default='N/A', max_length=255, verbose_name='Tech Email')),
('name_server', models.CharField(default='N/A', max_length=1000, verbose_name='Name Server')),
('registration_date', models.DateTimeField(default=datetime.datetime(2021, 5, 6, 4, 58, 40, 765699, tzinfo=utc))),
],
),
migrations.CreateModel(
name='Subdomain',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('related_domain', models.CharField(max_length=255, verbose_name='Domain Name')),
('name', models.CharField(max_length=255, verbose_name='Subdomain Name')),
('ip_address', models.CharField(default='N/A', max_length=15, verbose_name='IP Address')),
('http_accessible', models.CharField(default='N/A', max_length=255, verbose_name='Accessible (HTTP)')),
('http_location', models.CharField(default='N/A', max_length=1000, verbose_name='Location (HTTP)')),
('http_page_title', models.CharField(default='N/A', max_length=1000, verbose_name='Page Title (HTTP)')),
('http_screenshot_url', models.CharField(default='N/A', max_length=1000, verbose_name='Screenshot Captured URL (HTTP)')),
('http_screenshot_path', models.CharField(default='N/A', max_length=1000, verbose_name='Path to save the Screenshot (HTTP)')),
('https_accessible', models.CharField(default='N/A', max_length=255, verbose_name='Accessible (HTTPS)')),
('https_location', models.CharField(default='N/A', max_length=1000, verbose_name='Location (HTTPS)')),
('https_page_title', models.CharField(default='N/A', max_length=1000, verbose_name='Page Title (HTTPS)')),
('https_screenshot_url', models.CharField(default='N/A', max_length=1000, verbose_name='Screenshot Captured URL (HTTPS)')),
('https_screenshot_path', models.CharField(default='N/A', max_length=1000, verbose_name='Path to save the Screenshot (HTTPS)')),
('dns_a_record', models.CharField(default='N/A', max_length=5000, verbose_name='DNS A Record')),
('dns_cname_record', models.CharField(default='N/A', max_length=5000, verbose_name='DNS CNAME Record')),
('dns_ns_record', models.CharField(default='N/A', max_length=5000, verbose_name='DNS NS Record')),
('dns_mx_record', models.CharField(default='N/A', max_length=5000, verbose_name='DNS MX Record')),
('dns_soa_record', models.CharField(default='N/A', max_length=5000, verbose_name='DNS SOA Record')),
('dns_txt_record', models.CharField(default='N/A', max_length=5000, verbose_name='DNS TXT Record')),
('registration_date', models.DateTimeField(default=datetime.datetime(2021, 5, 6, 4, 58, 40, 766259, tzinfo=utc))),
],
),
migrations.AlterField(
model_name='organization',
name='registration_date',
field=models.DateTimeField(default=datetime.datetime(2021, 5, 6, 4, 58, 40, 765144, tzinfo=utc)),
),
]
| 74.522388
| 144
| 0.641498
| 597
| 4,993
| 5.167504
| 0.167504
| 0.121232
| 0.206807
| 0.216207
| 0.738736
| 0.738736
| 0.738736
| 0.728039
| 0.713128
| 0.68201
| 0
| 0.048302
| 0.203885
| 4,993
| 66
| 145
| 75.651515
| 0.727799
| 0.009013
| 0
| 0.183333
| 1
| 0
| 0.240194
| 0.017994
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.05
| 0
| 0.1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
193845c5e689c2b8f7193220a7d2b44803cb3528
| 2,751
|
py
|
Python
|
tests/test_binder.py
|
jonathanslenders/cycli
|
288f098dd9b96df65d4f0d517a6fe0da4126afe4
|
[
"MIT"
] | 3
|
2019-02-07T14:26:11.000Z
|
2021-12-15T09:34:34.000Z
|
tests/test_binder.py
|
jonathanslenders/cycli
|
288f098dd9b96df65d4f0d517a6fe0da4126afe4
|
[
"MIT"
] | 1
|
2018-04-05T21:47:42.000Z
|
2018-04-05T22:08:55.000Z
|
tests/test_binder.py
|
jonathanslenders/cycli
|
288f098dd9b96df65d4f0d517a6fe0da4126afe4
|
[
"MIT"
] | null | null | null |
from cycli.binder import curly_left, curly_right, paren_left, paren_right, bracket_left, bracket_right, apostrophe, \
quote
from mock import call
import pytest
@pytest.fixture
def binder():
from mock import MagicMock
return MagicMock()
def test_curly_left(binder):
curly_left(binder)
binder.cli.current_buffer.insert_text.assert_has_calls([call("{"), call("}", move_cursor=False)])
def test_curly_right_curly_current(binder):
binder.cli.current_buffer.document.current_char = "}"
curly_right(binder)
binder.cli.current_buffer.cursor_right.assert_called_once_with()
def test_curly_right_not_curly_current(binder):
binder.cli.current_buffer.document.current_char = "n"
curly_right(binder)
binder.cli.current_buffer.insert_text.assert_has_calls([call("}")])
def test_paren_left(binder):
paren_left(binder)
binder.cli.current_buffer.insert_text.assert_has_calls([call("("), call(")", move_cursor=False)])
def test_paren_right_paren_current(binder):
binder.cli.current_buffer.document.current_char = ")"
paren_right(binder)
binder.cli.current_buffer.cursor_right.assert_called_once_with()
def test_paren_right_not_paren_current(binder):
binder.cli.current_buffer.document.current_char = "n"
paren_right(binder)
binder.cli.current_buffer.insert_text.assert_has_calls([call(")")])
def test_bracket_left(binder):
bracket_left(binder)
binder.cli.current_buffer.insert_text.assert_has_calls([call("["), call("]", move_cursor=False)])
def test_bracket_right_bracket_current(binder):
binder.cli.current_buffer.document.current_char = "]"
bracket_right(binder)
binder.cli.current_buffer.cursor_right.assert_called_once_with()
def test_bracket_right_not_bracket_current(binder):
binder.cli.current_buffer.document.current_char = "n"
bracket_right(binder)
binder.cli.current_buffer.insert_text.assert_has_calls([call("]")])
def test_apostrophe_current(binder):
binder.cli.current_buffer.document.current_char = "'"
apostrophe(binder)
binder.cli.current_buffer.cursor_right.assert_called_once_with()
def test_apostrophe_not_current(binder):
binder.cli.current_buffer.document.current_char = "n"
apostrophe(binder)
binder.cli.current_buffer.insert_text.assert_has_calls([call("'"), call("'", move_cursor=False)])
def test_quote_current(binder):
binder.cli.current_buffer.document.current_char = "\""
quote(binder)
binder.cli.current_buffer.cursor_right.assert_called_once_with()
def test_quote_not_current(binder):
binder.cli.current_buffer.document.current_char = "n"
quote(binder)
binder.cli.current_buffer.insert_text.assert_has_calls([call("\""), call("\"", move_cursor=False)])
| 31.62069
| 117
| 0.768448
| 376
| 2,751
| 5.25
| 0.098404
| 0.139818
| 0.174772
| 0.256332
| 0.817123
| 0.817123
| 0.801925
| 0.784701
| 0.784701
| 0.72999
| 0
| 0
| 0.110505
| 2,751
| 86
| 118
| 31.988372
| 0.806702
| 0
| 0
| 0.350877
| 0
| 0
| 0.010905
| 0
| 0
| 0
| 0
| 0
| 0.22807
| 1
| 0.245614
| false
| 0
| 0.070175
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
1944ff3bd6f343b5071ddfa6717eded1e30f0968
| 91
|
py
|
Python
|
LuoguCodes/AT3674.py
|
Anguei/OI-Codes
|
0ef271e9af0619d4c236e314cd6d8708d356536a
|
[
"MIT"
] | null | null | null |
LuoguCodes/AT3674.py
|
Anguei/OI-Codes
|
0ef271e9af0619d4c236e314cd6d8708d356536a
|
[
"MIT"
] | null | null | null |
LuoguCodes/AT3674.py
|
Anguei/OI-Codes
|
0ef271e9af0619d4c236e314cd6d8708d356536a
|
[
"MIT"
] | null | null | null |
s = raw_input()
print ';Yes'; if (s[0] == s[1] == s[2] or s[1] == s[2] == s[3]) else ';No';
| 45.5
| 75
| 0.43956
| 21
| 91
| 1.857143
| 0.619048
| 0.102564
| 0.153846
| 0.205128
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082192
| 0.197802
| 91
| 2
| 75
| 45.5
| 0.452055
| 0
| 0
| 0
| 0
| 0
| 0.076087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.5
| 1
| 0
| 1
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
5fd7be8e5a9dc5f8bdc443871e7f64125d142528
| 157
|
py
|
Python
|
torch_discounted_cumsum/__init__.py
|
toshas/torch-discounted-cumsum
|
43e94d1475d62ded4dcb60001c98c10cee63c6c4
|
[
"CC-BY-4.0",
"BSD-3-Clause"
] | 56
|
2020-12-31T14:15:36.000Z
|
2022-02-28T14:53:07.000Z
|
torch_discounted_cumsum/__init__.py
|
toshas/torch-discounted-cumsum
|
43e94d1475d62ded4dcb60001c98c10cee63c6c4
|
[
"CC-BY-4.0",
"BSD-3-Clause"
] | 7
|
2021-04-16T07:55:06.000Z
|
2022-03-30T10:00:54.000Z
|
torch_discounted_cumsum/__init__.py
|
toshas/torch-discounted-cumsum
|
43e94d1475d62ded4dcb60001c98c10cee63c6c4
|
[
"CC-BY-4.0",
"BSD-3-Clause"
] | 3
|
2021-08-18T10:02:38.000Z
|
2021-11-22T08:23:19.000Z
|
from torch_discounted_cumsum.discounted_cumsum import discounted_cumsum_left, discounted_cumsum_right
from torch_discounted_cumsum.version import __version__
| 78.5
| 101
| 0.929936
| 20
| 157
| 6.65
| 0.4
| 0.601504
| 0.285714
| 0.37594
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.050955
| 157
| 2
| 102
| 78.5
| 0.892617
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
27480e46d085b8f7d8afb3da497719d04a1ec04a
| 255
|
py
|
Python
|
files/telling.py
|
janbodnar/Python-Course
|
51705ab5a2adef52bcdb99a800e94c0d67144a38
|
[
"BSD-2-Clause"
] | 13
|
2017-08-22T12:26:07.000Z
|
2021-07-29T16:13:50.000Z
|
files/telling.py
|
janbodnar/Python-Course
|
51705ab5a2adef52bcdb99a800e94c0d67144a38
|
[
"BSD-2-Clause"
] | 1
|
2021-02-08T10:24:33.000Z
|
2021-02-08T10:24:33.000Z
|
files/telling.py
|
janbodnar/Python-Course
|
51705ab5a2adef52bcdb99a800e94c0d67144a38
|
[
"BSD-2-Clause"
] | 17
|
2018-08-13T11:10:33.000Z
|
2021-07-29T16:14:02.000Z
|
#!/usr/bin/python
with open('works.txt', 'r') as f:
print(f'The current file position is {f.tell()}')
f.read(22)
print(f'The current file position is {f.tell()}')
f.seek(0, 0)
print(f'The current file position is {f.tell()}')
| 19.615385
| 53
| 0.592157
| 44
| 255
| 3.431818
| 0.477273
| 0.119205
| 0.178808
| 0.317881
| 0.708609
| 0.708609
| 0.708609
| 0.708609
| 0.708609
| 0.476821
| 0
| 0.020101
| 0.219608
| 255
| 12
| 54
| 21.25
| 0.738693
| 0.062745
| 0
| 0.5
| 0
| 0
| 0.533613
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
27c5e4d18f144f26ff246e1ae8eb3204eac3bb93
| 209
|
py
|
Python
|
toppra/solverwrapper/__init__.py
|
indivisibleatom/toppra
|
a5634163c99155ae633ae399d5cac753eef4c80c
|
[
"MIT"
] | null | null | null |
toppra/solverwrapper/__init__.py
|
indivisibleatom/toppra
|
a5634163c99155ae633ae399d5cac753eef4c80c
|
[
"MIT"
] | null | null | null |
toppra/solverwrapper/__init__.py
|
indivisibleatom/toppra
|
a5634163c99155ae633ae399d5cac753eef4c80c
|
[
"MIT"
] | null | null | null |
from .cvxpy_solverwrapper import cvxpyWrapper
from .qpoases_solverwrapper import qpOASESSolverWrapper
from .hot_qpoases_solverwrapper import hotqpOASESSolverWrapper
from .ecos_solverwrapper import ecosWrapper
| 41.8
| 62
| 0.904306
| 21
| 209
| 8.761905
| 0.52381
| 0.413043
| 0.282609
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.076555
| 209
| 4
| 63
| 52.25
| 0.953368
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7e1113ed11dc33d96ff85fa409dbf6d3b916cc7c
| 156
|
py
|
Python
|
stateful_simulator/time_delays/__init__.py
|
pboueri/stateful-simulator
|
19a85138e11fd566b88be0a8446030d4143a90dd
|
[
"BSD-3-Clause"
] | 2
|
2018-10-28T06:41:34.000Z
|
2018-10-30T04:19:05.000Z
|
stateful_simulator/time_delays/__init__.py
|
pboueri/stateful-simulator
|
19a85138e11fd566b88be0a8446030d4143a90dd
|
[
"BSD-3-Clause"
] | null | null | null |
stateful_simulator/time_delays/__init__.py
|
pboueri/stateful-simulator
|
19a85138e11fd566b88be0a8446030d4143a90dd
|
[
"BSD-3-Clause"
] | null | null | null |
import stateful_simulator.time_delays.UniformDelayer
import stateful_simulator.time_delays.ExponentialDelayer
import stateful_simulator.time_delays.Delayer
| 39
| 56
| 0.923077
| 18
| 156
| 7.666667
| 0.444444
| 0.304348
| 0.5
| 0.586957
| 0.717391
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.038462
| 156
| 3
| 57
| 52
| 0.92
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
fd72780f3fc0149b45d960f39de2c24173c2ebdc
| 168
|
py
|
Python
|
z2/process/__init__.py
|
mpenning/zz
|
b8448e39f0ad34285c40144bd0f55f506c5a7f2b
|
[
"BSD-3-Clause"
] | null | null | null |
z2/process/__init__.py
|
mpenning/zz
|
b8448e39f0ad34285c40144bd0f55f506c5a7f2b
|
[
"BSD-3-Clause"
] | null | null | null |
z2/process/__init__.py
|
mpenning/zz
|
b8448e39f0ad34285c40144bd0f55f506c5a7f2b
|
[
"BSD-3-Clause"
] | null | null | null |
# Expose run_cmd() and iter_cmd_realtime...
from z2.process.control import zrun
from z2.process.control import iter_cmd_realtime
from z2.process.control import run_cmd
| 33.6
| 48
| 0.827381
| 28
| 168
| 4.75
| 0.428571
| 0.135338
| 0.293233
| 0.451128
| 0.81203
| 0.616541
| 0.616541
| 0.616541
| 0
| 0
| 0
| 0.019868
| 0.10119
| 168
| 4
| 49
| 42
| 0.860927
| 0.244048
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
fd9e4d44e5d042682c756c876a38a69ae974d50c
| 24,771
|
py
|
Python
|
djfrontend/tests/tests_templatetags.py
|
mitjanikolaus/django-frontend
|
9573c3968d082bd2f1dfa733075115ec94975539
|
[
"MIT"
] | null | null | null |
djfrontend/tests/tests_templatetags.py
|
mitjanikolaus/django-frontend
|
9573c3968d082bd2f1dfa733075115ec94975539
|
[
"MIT"
] | null | null | null |
djfrontend/tests/tests_templatetags.py
|
mitjanikolaus/django-frontend
|
9573c3968d082bd2f1dfa733075115ec94975539
|
[
"MIT"
] | null | null | null |
from djfrontend.templatetags.settings import *
from django.conf import settings
from django.test import TestCase, LiveServerTestCase
from django.template import Template, Context
class DjfrontendStaticTest(LiveServerTestCase):
"""
Ensure the files actually exist.
"""
# Change settings until StaticLiveServerCase in 1.7!
settings.DEBUG = True
def test_djfrontend_h5bp_css(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/css/h5bp/%s/h5bp.css' % DJFRONTEND_H5BP_CSS_DEFAULT)
self.assertEqual(file.status_code, 200)
def test_djfrontend_normalize(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/css/normalize/%s/normalize.css' % DJFRONTEND_NORMALIZE_DEFAULT)
self.assertEqual(file.status_code, 200)
def test_djfrontend_fontawesome(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/css/fontawesome/%s/font-awesome.css' % DJFRONTEND_FONTAWESOME_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/css/fontawesome/%s/font-awesome.min.css' % DJFRONTEND_FONTAWESOME_DEFAULT)
file_font_eot = self.client.get(self.live_server_url + '/static/djfrontend/fonts/fontawesome/%s/fontawesome-webfont.eot' % DJFRONTEND_FONTAWESOME_DEFAULT)
file_font_svg = self.client.get(self.live_server_url + '/static/djfrontend/fonts/fontawesome/%s/fontawesome-webfont.svg' % DJFRONTEND_FONTAWESOME_DEFAULT)
file_font_ttf = self.client.get(self.live_server_url + '/static/djfrontend/fonts/fontawesome/%s/fontawesome-webfont.ttf' % DJFRONTEND_FONTAWESOME_DEFAULT)
file_font_woff = self.client.get(self.live_server_url + '/static/djfrontend/fonts/fontawesome/%s/fontawesome-webfont.woff' % DJFRONTEND_FONTAWESOME_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file_min.status_code, 200)
self.assertEqual(file_font_eot.status_code, 200)
self.assertEqual(file_font_svg.status_code, 200)
self.assertEqual(file_font_ttf.status_code, 200)
self.assertEqual(file_font_woff.status_code, 200)
def test_djfrontend_modernizr(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/js/modernizr/%s/modernizr.js' % DJFRONTEND_MODERNIZR_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/js/modernizr/%s/modernizr.min.js' % DJFRONTEND_MODERNIZR_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file_min.status_code, 200)
def test_djfrontend_jquery(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/%s/jquery.js' % DJFRONTEND_JQUERY_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/%s/jquery.min.js' % DJFRONTEND_JQUERY_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file_min.status_code, 200)
def test_djfrontend_jqueryui(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/jqueryui/%s/jquery-ui.js' % DJFRONTEND_JQUERYUI_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/jqueryui/%s/jquery-ui.min.js' % DJFRONTEND_JQUERYUI_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file_min.status_code, 200)
def test_djfrontend_jquery_datatables(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/jquery.dataTables/%s/jquery.dataTables.js' % DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/jquery.dataTables/%s/jquery.dataTables.min.js' % DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file_min.status_code, 200)
def test_djfrontend_jquery_datatables_css(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/css/jquery/jquery.dataTables/%s/jquery.dataTables.css' % DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/css/jquery/jquery.dataTables/%s/jquery.dataTables.min.css' % DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file.status_code, 200)
def test_djfrontend_jquery_datatables_themeroller(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/css/jquery/jquery.dataTables/%s/jquery.dataTables_themeroller.css' % DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT)
self.assertEqual(file.status_code, 200)
def test_djfrontend_jquery_formset(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/jquery.formset/%s/jquery.formset.js' % DJFRONTEND_JQUERY_FORMSET_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/jquery.formset/%s/jquery.formset.min.js' % DJFRONTEND_JQUERY_FORMSET_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file_min.status_code, 200)
def test_djfrontend_jquery_scrollto(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/jquery.scrollTo/%s/jquery.scrollTo.js' % DJFRONTEND_JQUERY_SCROLLTO_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/jquery.scrollTo/%s/jquery.scrollTo.min.js' % DJFRONTEND_JQUERY_SCROLLTO_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file_min.status_code, 200)
def test_djfrontend_jquery_smoothscroll(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/jquery.smooth-scroll/%s/jquery.smooth-scroll.js' % DJFRONTEND_JQUERY_SMOOTHSCROLL_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/js/jquery/jquery.smooth-scroll/%s/jquery.smooth-scroll.min.js' % DJFRONTEND_JQUERY_SMOOTHSCROLL_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file_min.status_code, 200)
def test_djfrontend_twbs_css(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/css/twbs/%s/bootstrap.css' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/css/twbs/%s/bootstrap.min.css' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_font_eot = self.client.get(self.live_server_url + '/static/djfrontend/fonts/twbs/%s/glyphicons-halflings-regular.eot' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_font_svg = self.client.get(self.live_server_url + '/static/djfrontend/fonts/twbs/%s/glyphicons-halflings-regular.svg' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_font_ttf = self.client.get(self.live_server_url + '/static/djfrontend/fonts/twbs/%s/glyphicons-halflings-regular.ttf' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_font_woff = self.client.get(self.live_server_url + '/static/djfrontend/fonts/twbs/%s/glyphicons-halflings-regular.woff' % DJFRONTEND_TWBS_VERSION_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file_min.status_code, 200)
self.assertEqual(file_font_eot.status_code, 200)
self.assertEqual(file_font_svg.status_code, 200)
self.assertEqual(file_font_ttf.status_code, 200)
self.assertEqual(file_font_woff.status_code, 200)
def test_djfrontend_twbs_theme_css(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/css/twbs/%s/bootstrap-theme.css' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/css/twbs/%s/bootstrap-theme.min.css' % DJFRONTEND_TWBS_VERSION_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file_min.status_code, 200)
def test_djfrontend_twbs_js(self):
file = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/bootstrap.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_min = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/bootstrap.min.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_affix = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/affix.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_alert = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/alert.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_button = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/button.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_carousel = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/carousel.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_collapse = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/collapse.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_dropdown = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/dropdown.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_modal = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/modal.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_popover = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/popover.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_scrollspy = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/scrollspy.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_tab = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/tab.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_tooltip = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/tooltip.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
file_transition = self.client.get(self.live_server_url + '/static/djfrontend/js/twbs/%s/transition.js' % DJFRONTEND_TWBS_VERSION_DEFAULT)
self.assertEqual(file.status_code, 200)
self.assertEqual(file_min.status_code, 200)
self.assertEqual(file_affix.status_code, 200)
self.assertEqual(file_alert.status_code, 200)
self.assertEqual(file_button.status_code, 200)
self.assertEqual(file_carousel.status_code, 200)
self.assertEqual(file_collapse.status_code, 200)
self.assertEqual(file_dropdown.status_code, 200)
self.assertEqual(file_modal.status_code, 200)
self.assertEqual(file_popover.status_code, 200)
self.assertEqual(file_scrollspy.status_code, 200)
self.assertEqual(file_tab.status_code, 200)
self.assertEqual(file_tooltip.status_code, 200)
self.assertEqual(file_transition.status_code, 200)
class DjfrontendDefaultTestCase(TestCase):
"""
Ensure the default values are being returned.
"""
def test_djfrontend_h5bp_html(self):
attr = 'lang="%s"' % DJFRONTEND_H5BP_HTML_DEFAULT
t = Template(
"{% load djfrontend %}"
"{% djfrontend_h5bp_html %}"
).render(Context())
self.assertTrue(attr in t)
def test_djfrontend_h5bp_css(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_h5bp_css %}"
).render(Context())
self.assertTrue(DJFRONTEND_H5BP_CSS_DEFAULT in t)
def test_djfrontend_normalize(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_normalize %}"
).render(Context())
self.assertTrue(DJFRONTEND_NORMALIZE_DEFAULT in t)
def test_djfrontend_fontawesome(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_fontawesome %}"
).render(Context())
self.assertTrue(DJFRONTEND_FONTAWESOME_DEFAULT in t)
def test_djfrontend_modernizr(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_modernizr %}"
).render(Context())
self.assertTrue(DJFRONTEND_MODERNIZR_DEFAULT in t)
def test_djfrontend_jquery(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery %}"
).render(Context())
self.assertTrue(DJFRONTEND_JQUERY_DEFAULT in t)
def test_djfrontend_jqueryui(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jqueryui %}"
).render(Context())
self.assertTrue(DJFRONTEND_JQUERYUI_DEFAULT in t)
def test_djfrontend_jquery_datatables(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_datatables %}"
).render(Context())
self.assertTrue(DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT in t)
def test_djfrontend_jquery_datatables_css(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_datatables_css %}"
).render(Context())
self.assertTrue(DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT in t)
def test_djfrontend_jquery_formset(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_formset %}"
).render(Context())
self.assertTrue(DJFRONTEND_JQUERY_FORMSET_DEFAULT in t)
def test_djfrontend_jquery_scrollto(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_scrollto %}"
).render(Context())
self.assertTrue(DJFRONTEND_JQUERY_SCROLLTO_DEFAULT in t)
def test_djfrontend_jquery_smoothscroll(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_smoothscroll %}"
).render(Context())
self.assertTrue(DJFRONTEND_JQUERY_SMOOTHSCROLL_DEFAULT in t)
def test_djfrontend_twbs_css(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_twbs_css %}"
).render(Context())
self.assertTrue(DJFRONTEND_TWBS_VERSION_DEFAULT in t)
def test_djfrontend_twbs_theme_css(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_twbs_theme_css %}"
).render(Context())
self.assertTrue(DJFRONTEND_TWBS_VERSION_DEFAULT in t)
def test_djfrontend_twbs_js(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_twbs_js %}"
).render(Context())
self.assertTrue(DJFRONTEND_TWBS_VERSION_DEFAULT in t)
def test_djfrontend_twbs_js_popover(self):
t = Template(
"{% load djfrontend %}"
"{% djfrontend_twbs_js files='popover' %}"
).render(Context())
self.assertTrue('popover.js' in t)
self.assertTrue('tooltip.js' in t)
class DjfrontendSettingsTestCase(TestCase):
"""
Ensure the settings override the defaults.
"""
def test_djfrontend_h5bp_html(self):
attr = 'lang="%s"' % DJFRONTEND_H5BP_HTML_DEFAULT
settings.DJFRONTEND_H5BP_HTML = 'fr'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_h5bp_html %}"
).render(Context())
self.assertFalse(attr in t)
def test_djfrontend_h5bp_css(self):
settings.DJFRONTEND_H5BP_CSS = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_h5bp_css %}"
).render(Context())
self.assertFalse(DJFRONTEND_H5BP_CSS_DEFAULT in t)
def test_djfrontend_normalize(self):
settings.DJFRONTEND_NORMALIZE = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_normalize %}"
).render(Context())
self.assertFalse(DJFRONTEND_NORMALIZE_DEFAULT in t)
def test_djfrontend_fontawesome(self):
settings.DJFRONTEND_FONTAWESOME = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_fontawesome %}"
).render(Context())
self.assertFalse(DJFRONTEND_FONTAWESOME_DEFAULT in t)
def test_djfrontend_modernizr(self):
settings.DJFRONTEND_MODERNIZR = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_modernizr %}"
).render(Context())
self.assertFalse(DJFRONTEND_MODERNIZR_DEFAULT in t)
def test_djfrontend_jquery(self):
settings.DJFRONTEND_JQUERY = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_DEFAULT in t)
def test_djfrontend_jqueryui(self):
settings.DJFRONTEND_JQUERYUI = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jqueryui %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERYUI_DEFAULT in t)
def test_djfrontend_jquery_datatables(self):
settings.DJFRONTEND_JQUERY_DATATABLES = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_datatables %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT in t)
def test_djfrontend_jquery_datatables_css(self):
settings.DJFRONTEND_JQUERY_DATATABLES_CSS = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_datatables_css %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT in t)
def test_djfrontend_jquery_formset(self):
settings.DJFRONTEND_JQUERY_FORMSET = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_formset %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_FORMSET_DEFAULT in t)
def test_djfrontend_jquery_scrollto(self):
settings.DJFRONTEND_JQUERY_SCROLLTO = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_scrollto %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_SCROLLTO_DEFAULT in t)
def test_djfrontend_jquery_smoothscroll(self):
settings.DJFRONTEND_JQUERY_SMOOTHSCROLL = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_smoothscroll %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_SMOOTHSCROLL_DEFAULT in t)
def test_djfrontend_twbs_css(self):
settings.DJFRONTEND_TWBS_CSS = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_twbs_css %}"
).render(Context())
self.assertFalse(DJFRONTEND_TWBS_VERSION_DEFAULT in t)
def test_djfrontend_twbs_theme_css(self):
settings.DJFRONTEND_TWBS_THEME_CSS = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_twbs_theme_css %}"
).render(Context())
self.assertFalse(DJFRONTEND_TWBS_VERSION_DEFAULT in t)
def test_djfrontend_twbs_js(self):
settings.DJFRONTEND_TWBS_JS_VERSION = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_twbs_js %}"
).render(Context())
self.assertFalse(DJFRONTEND_TWBS_VERSION_DEFAULT in t)
class DjfrontendSettingsGranularityTestCase(TestCase):
"""
Ensure the template tag argument is the final override.
"""
def test_djfrontend_h5bp_html(self):
attr_default = 'lang="%s"' % DJFRONTEND_H5BP_HTML_DEFAULT
attr = 'lang="de"'
settings.DJFRONTEND_H5BP_HTML = 'fr'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_h5bp_html 'de' %}"
).render(Context())
self.assertFalse(attr_default in t)
self.assertTrue(attr in t)
def test_djfrontend_h5bp_css(self):
settings.DJFRONTEND_H5BP_CSS = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_h5bp_css 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_H5BP_CSS_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_normalize(self):
settings.DJFRONTEND_NORMALIZE = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_normalize 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_NORMALIZE_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_fontawesome(self):
settings.DJFRONTEND_FONTAWESOME = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_fontawesome 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_FONTAWESOME_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_modernizr(self):
settings.DJFRONTEND_MODERNIZR = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_modernizr 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_MODERNIZR_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_jquery(self):
settings.DJFRONTEND_JQUERY = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_jqueryui(self):
settings.DJFRONTEND_JQUERYUI = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jqueryui 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERYUI_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_jquery_datatables(self):
settings.DJFRONTEND_JQUERY_DATATABLES = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_datatables 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_jquery_datatables_css(self):
settings.DJFRONTEND_JQUERY_DATATABLES_CSS = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_datatables_css 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_jquery_datatables_themeroller(self):
settings.DJFRONTEND_JQUERY_DATATABLES_THEMEROLLER = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_datatables_css 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_DATATABLES_VERSION_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_jquery_formset(self):
settings.DJFRONTEND_JQUERY_FORMSET = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_formset 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_FORMSET_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_jquery_scrollto(self):
settings.DJFRONTEND_JQUERY_SCROLLTO = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_scrollto 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_SCROLLTO_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_jquery_smoothscroll(self):
settings.DJFRONTEND_JQUERY_SMOOTHSCROLL = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_jquery_smoothscroll 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_JQUERY_SMOOTHSCROLL_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_twbs_css(self):
settings.DJFRONTEND_TWBS_CSS = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_twbs_css 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_TWBS_VERSION_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_twbs_theme_css(self):
settings.DJFRONTEND_TWBS_THEME_CSS = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_twbs_theme_css 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_TWBS_VERSION_DEFAULT in t)
self.assertTrue('x.x.x' in t)
def test_djfrontend_twbs_js(self):
settings.DJFRONTEND_TWBS_JS_VERSION = '0.0.0'
t = Template(
"{% load djfrontend %}"
"{% djfrontend_twbs_js 'x.x.x' %}"
).render(Context())
self.assertFalse(DJFRONTEND_TWBS_VERSION_DEFAULT in t)
self.assertTrue('x.x.x' in t)
| 45.702952
| 188
| 0.672076
| 2,922
| 24,771
| 5.420945
| 0.037988
| 0.090909
| 0.06654
| 0.050442
| 0.926136
| 0.898422
| 0.835606
| 0.830934
| 0.826831
| 0.783838
| 0
| 0.01312
| 0.212305
| 24,771
| 541
| 189
| 45.787431
| 0.798688
| 0.009245
| 0
| 0.778761
| 0
| 0.013274
| 0.217679
| 0.129284
| 0
| 0
| 0
| 0
| 0.245575
| 1
| 0.137168
| false
| 0
| 0.00885
| 0
| 0.154867
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e304282704b5488f6d5bc6b1f025772390c40fe9
| 152
|
py
|
Python
|
src/jax_limbdark/__init__.py
|
dfm/gpu-limbdark
|
05d246316cc3b96d7b62a4d0f14a50c725d4ed7a
|
[
"MIT"
] | 1
|
2021-08-24T13:38:04.000Z
|
2021-08-24T13:38:04.000Z
|
src/jax_limbdark/__init__.py
|
dfm/gpu-limbdark
|
05d246316cc3b96d7b62a4d0f14a50c725d4ed7a
|
[
"MIT"
] | null | null | null |
src/jax_limbdark/__init__.py
|
dfm/gpu-limbdark
|
05d246316cc3b96d7b62a4d0f14a50c725d4ed7a
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
__all__ = ["__version__", "kepler"]
from .jax_limbdark import kepler
from .jax_limbdark_version import version as __version__
| 21.714286
| 56
| 0.736842
| 19
| 152
| 5.105263
| 0.578947
| 0.206186
| 0.268041
| 0.43299
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007634
| 0.138158
| 152
| 6
| 57
| 25.333333
| 0.732824
| 0.138158
| 0
| 0
| 0
| 0
| 0.131783
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
e30897aafcd1fff9999ceae4f564483cacbf364d
| 128
|
py
|
Python
|
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_1/_pkg0_0_1_1_1/_mod0_0_1_1_1_4.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_1/_pkg0_0_1_1_1/_mod0_0_1_1_1_4.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 173
|
2018-07-05T13:59:39.000Z
|
2018-08-09T01:12:03.000Z
|
python/testData/completion/heavyStarPropagation/lib/_pkg0/_pkg0_0/_pkg0_0_1/_pkg0_0_1_1/_pkg0_0_1_1_1/_mod0_0_1_1_1_4.py
|
truthiswill/intellij-community
|
fff88cfb0dc168eea18ecb745d3e5b93f57b0b95
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
name0_0_1_1_1_4_0 = None
name0_0_1_1_1_4_1 = None
name0_0_1_1_1_4_2 = None
name0_0_1_1_1_4_3 = None
name0_0_1_1_1_4_4 = None
| 14.222222
| 24
| 0.820313
| 40
| 128
| 1.875
| 0.175
| 0.266667
| 0.466667
| 0.533333
| 0.88
| 0.88
| 0.746667
| 0
| 0
| 0
| 0
| 0.318182
| 0.140625
| 128
| 9
| 25
| 14.222222
| 0.363636
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
e34ed88cd1e7c246026b7c8ea7a442a0aa7364e7
| 1,341
|
py
|
Python
|
test/test_del_project.py
|
dinyt/mantis_training
|
ca61bc895a2d1b93a4742d64b23e31f3f7f368a5
|
[
"Apache-2.0"
] | null | null | null |
test/test_del_project.py
|
dinyt/mantis_training
|
ca61bc895a2d1b93a4742d64b23e31f3f7f368a5
|
[
"Apache-2.0"
] | null | null | null |
test/test_del_project.py
|
dinyt/mantis_training
|
ca61bc895a2d1b93a4742d64b23e31f3f7f368a5
|
[
"Apache-2.0"
] | null | null | null |
from model.project import Project
import random
def test_delete_some_project_with_db(app, db):
if db.get_project_list() == 0:
app.project.create(Project(name="New project"))
old_projects = db.get_project_list()
project = random.choice(old_projects)
app.project.delete_by_id(project.id)
new_projects = db.get_project_list()
assert len(old_projects) - 1 == app.project.count()
old_projects.remove(project)
assert old_projects == new_projects
assert sorted(new_projects, key=Project.id_or_max) == sorted(app.project.get_project_list(), key=Project.id_or_max)
def test_delete_some_project_with_soap(app):
user = app.config['webadmin']
old_projects = app.soap.get_all_projects(user["username"], user["password"])
if old_projects == 0:
app.project.create(Project(name="New project"))
old_projects = app.soap.get_all_projects(user["username"], user["password"])
project = random.choice(old_projects)
app.project.delete_by_id(project.id)
new_projects = app.soap.get_all_projects(user["username"], user["password"])
assert len(old_projects) - 1 == app.project.count()
old_projects.remove(project)
assert old_projects == new_projects
assert sorted(new_projects, key=Project.id_or_max) == sorted(app.project.get_project_list(), key=Project.id_or_max)
| 47.892857
| 119
| 0.734526
| 195
| 1,341
| 4.764103
| 0.205128
| 0.142088
| 0.07535
| 0.06028
| 0.884822
| 0.850377
| 0.790097
| 0.790097
| 0.790097
| 0.790097
| 0
| 0.003466
| 0.139448
| 1,341
| 28
| 120
| 47.892857
| 0.80156
| 0
| 0
| 0.615385
| 0
| 0
| 0.058122
| 0
| 0
| 0
| 0
| 0
| 0.230769
| 1
| 0.076923
| false
| 0.115385
| 0.076923
| 0
| 0.153846
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
e37227ab12d63205c689794286c9ebcd0941bd4d
| 9,970
|
py
|
Python
|
tests/src/smiley/smiley/tests/presentation/test_trace.py
|
incognitoRepo/hdlogger
|
c738161ef3144469ba0f47caf89770613031e96e
|
[
"BSD-2-Clause"
] | null | null | null |
tests/src/smiley/smiley/tests/presentation/test_trace.py
|
incognitoRepo/hdlogger
|
c738161ef3144469ba0f47caf89770613031e96e
|
[
"BSD-2-Clause"
] | null | null | null |
tests/src/smiley/smiley/tests/presentation/test_trace.py
|
incognitoRepo/hdlogger
|
c738161ef3144469ba0f47caf89770613031e96e
|
[
"BSD-2-Clause"
] | null | null | null |
import testtools
from smiley import db
from smiley.presentation import trace
class CollapseTraceTest(testtools.TestCase):
def test_consecutive_lines(self):
trace_data = [
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=1,
func_name='func',
trace_arg={},
local_vars={},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=2,
func_name='func',
trace_arg={},
local_vars={},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=3,
func_name='func',
trace_arg={},
local_vars={},
timestamp=1,
),
]
collapsed = list(trace.collapse_trace(trace_data))
self.assertEqual(len(collapsed), 1)
line_nos = [r.line_no for r in collapsed]
self.assertEqual(line_nos, [(1, 3)])
def test_non_consecutive_lines(self):
trace_data = [
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=1,
func_name='func',
trace_arg={},
local_vars={},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=20,
func_name='func',
trace_arg={},
local_vars={},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=40,
func_name='func',
trace_arg={},
local_vars={},
timestamp=1,
),
]
collapsed = list(trace.collapse_trace(trace_data))
self.assertEqual(len(collapsed), 1)
line_nos = [r.line_no for r in collapsed]
self.assertEqual(line_nos, [(1, 40)])
def test_call_lines_return(self):
trace_data = [
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='call',
filename='filename.py',
line_no=1,
func_name='func',
trace_arg={},
local_vars={},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=1,
func_name='func',
trace_arg={},
local_vars={},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=2,
func_name='func',
trace_arg={},
local_vars={},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='return',
filename='filename.py',
line_no=2,
func_name='func',
trace_arg={},
local_vars={},
timestamp=1,
),
]
collapsed = list(trace.collapse_trace(trace_data))
self.assertEqual(len(collapsed), 3)
line_nos = [r.line_no for r in collapsed]
self.assertEqual(line_nos, [(1, 1),
(1, 2),
(2, 2)])
def test_new_var(self):
trace_data = [
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=1,
func_name='func',
trace_arg={},
local_vars={
'v1': 1,
},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=2,
func_name='func',
trace_arg={},
local_vars={
'v1': 1,
'v2': 2,
},
timestamp=1,
),
]
collapsed = list(trace.collapse_trace(trace_data))
self.assertEqual(len(collapsed), 1)
self.assertEqual(collapsed[0].local_vars,
{'v1': 1, 'v2': 2})
def test_changed_var(self):
trace_data = [
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=1,
func_name='func',
trace_arg={},
local_vars={
'v1': 1,
'v3': 3,
},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=2,
func_name='func',
trace_arg={},
local_vars={
'v1': 1,
'v2': 2,
'v3': 4,
},
timestamp=1,
),
]
collapsed = list(trace.collapse_trace(trace_data))
self.assertEqual(len(collapsed), 2)
self.assertEqual(collapsed[0].local_vars,
{'v1': 1, 'v3': 3})
self.assertEqual(collapsed[1].local_vars,
{'v1': 1, 'v2': 2, 'v3': 4})
def test_changed_var2(self):
trace_data = [
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=1,
func_name='func',
trace_arg={},
local_vars={
'v1': 1,
'v3': 3,
},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=2,
func_name='func',
trace_arg={},
local_vars={
'v1': 1,
'v2': 2,
'v3': 4,
},
timestamp=1,
),
# Force the previous data to be emitted, with the next set
# of local variables being completely different to verify
# that the variable change detection resets
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='call',
filename='filename.py',
line_no=3,
func_name='func',
trace_arg={},
local_vars={},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=4,
func_name='func',
trace_arg={},
local_vars={
'V1': 1,
},
timestamp=1,
),
db.Trace(
id='1',
run_id='1',
thread_id='t1',
call_id='1',
event='line',
filename='filename.py',
line_no=5,
func_name='func',
trace_arg={},
local_vars={
'V1': 1,
'V2': 2,
},
timestamp=1,
),
]
collapsed = list(trace.collapse_trace(trace_data))
self.assertEqual(len(collapsed), 4)
self.assertEqual(collapsed[0].local_vars,
{'v1': 1, 'v3': 3})
self.assertEqual(collapsed[1].local_vars,
{'v1': 1, 'v2': 2, 'v3': 4})
self.assertEqual(collapsed[3].local_vars,
{'V1': 1, 'V2': 2})
| 29.497041
| 70
| 0.350552
| 871
| 9,970
| 3.80597
| 0.089552
| 0.051584
| 0.051584
| 0.057315
| 0.890498
| 0.890498
| 0.885068
| 0.885068
| 0.873906
| 0.873906
| 0
| 0.042717
| 0.530391
| 9,970
| 337
| 71
| 29.58457
| 0.665314
| 0.015446
| 0
| 0.873846
| 0
| 0
| 0.052793
| 0
| 0
| 0
| 0
| 0
| 0.046154
| 1
| 0.018462
| false
| 0
| 0.009231
| 0
| 0.030769
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
e3770caf225a524dfd209a49e73ad29480af766b
| 4,164
|
py
|
Python
|
app/looptest2.py
|
ThebiggunSeeoil/VIS-MASTER
|
a54a5f321cfe8b258bacc25458490c5b154edf19
|
[
"MIT"
] | null | null | null |
app/looptest2.py
|
ThebiggunSeeoil/VIS-MASTER
|
a54a5f321cfe8b258bacc25458490c5b154edf19
|
[
"MIT"
] | null | null | null |
app/looptest2.py
|
ThebiggunSeeoil/VIS-MASTER
|
a54a5f321cfe8b258bacc25458490c5b154edf19
|
[
"MIT"
] | null | null | null |
from itertools import groupby
INFO = [{'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '11', 'NOZZLE_num': '1', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '11', 'NOZZLE_num': '2', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '11', 'NOZZLE_num': '3', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '12', 'NOZZLE_num': '1', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '12', 'NOZZLE_num': '2', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '12', 'NOZZLE_num': '3', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '13', 'NOZZLE_num': '1', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '13', 'NOZZLE_num': '2', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '13', 'NOZZLE_num': '3', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '14', 'NOZZLE_num': '1', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '14', 'NOZZLE_num': '2', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '14', 'NOZZLE_num': '3', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '15', 'NOZZLE_num': '1', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '15', 'NOZZLE_num': '2', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '11', 'NOZZLE_pump_log_address': '15', 'NOZZLE_num': '3', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '16', 'NOZZLE_num': '1', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '16', 'NOZZLE_num': '2', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '16', 'NOZZLE_num': '3', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '17', 'NOZZLE_num': '1', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '17', 'NOZZLE_num': '2', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '17', 'NOZZLE_num': '3', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '18', 'NOZZLE_num': '1', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '18', 'NOZZLE_num': '2', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '18', 'NOZZLE_num': '3', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '19', 'NOZZLE_num': '1', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '19', 'NOZZLE_num': '2', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '19', 'NOZZLE_num': '3', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '20', 'NOZZLE_num': '1', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '20', 'NOZZLE_num': '2', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '20', 'NOZZLE_num': '3', 'dcount': 1}, {'name_id': 1224, 'Unit_log_address': '12', 'NOZZLE_pump_log_address': '23', 'NOZZLE_num': '1', 'dcount': 1}]
# dictionary
# INFO = [
# {'employee': 'XYZ_1', 'company': 'ABC_1'},
# {'employee': 'XYZ_2', 'company': 'ABC_2'},
# {'employee': 'XYZ_3', 'company': 'ABC_3'},
# {'employee': 'XYZ_4', 'company': 'ABC_3'},
# {'employee': 'XYZ_5', 'company': 'ABC_2'},
# {'employee': 'XYZ_6', 'company': 'ABC_3'},
# {'employee': 'XYZ_7', 'company': 'ABC_1'},
# {'employee': 'XYZ_8', 'company': 'ABC_2'},
# {'employee': 'XYZ_9', 'company': 'ABC_1'}
# ]
# define a fuction for key
def key_func(k):
return k['name_id']
# sort INFO data by 'company' key.
INFO = sorted(INFO, key=key_func)
for key, value in groupby(INFO, key_func):
print(key)
print(list(value))
| 154.222222
| 3,418
| 0.636407
| 626
| 4,164
| 3.851438
| 0.091054
| 0.257155
| 0.128577
| 0.180008
| 0.907922
| 0.827872
| 0.827872
| 0.827872
| 0.827872
| 0.827872
| 0
| 0.088937
| 0.114313
| 4,164
| 27
| 3,419
| 154.222222
| 0.564805
| 0.120317
| 0
| 0
| 0
| 0
| 0.575214
| 0.196798
| 0
| 0
| 0
| 0
| 0
| 1
| 0.125
| false
| 0
| 0.125
| 0.125
| 0.375
| 0.25
| 0
| 0
| 0
| null | 1
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 11
|
473b93be5f9db35539699f971be4e5c4d05c0fbb
| 63,090
|
py
|
Python
|
cinder/tests/test_oodrive_eguan.py
|
oodrive/cinder
|
40b43d6698128ab26b056586e0a5c5e818e21c11
|
[
"Apache-2.0"
] | 1
|
2015-11-25T10:18:28.000Z
|
2015-11-25T10:18:28.000Z
|
cinder/tests/test_oodrive_eguan.py
|
oodrive/cinder
|
40b43d6698128ab26b056586e0a5c5e818e21c11
|
[
"Apache-2.0"
] | null | null | null |
cinder/tests/test_oodrive_eguan.py
|
oodrive/cinder
|
40b43d6698128ab26b056586e0a5c5e818e21c11
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (c) 2012 - 2014 Oodrive
# 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.
"""
Test the eguan block storage backend driver.
@author: pwehrle
"""
from cinder import exception
from cinder.openstack.common import log
from cinder import test
from cinder.tests.volume.drivers.eguan import mocks
from cinder import units
from cinder.volume.configuration import Configuration
from cinder.volume.drivers.eguan.driver import eguan_opts
from cinder.volume.drivers.eguan.driver import EguanDriver
from cinder.volume.drivers.eguan.driver import KeystoneNotificationHandler
from cinder.volume.drivers.eguan.driver import map_tenant_to_vvr_id
from cinder.volume.drivers.eguan import resource_proxies
from httmock import all_requests
from httmock import HTTMock
from os import environ
from oslo.config import cfg
from oslo.messaging.notify.dispatcher import NotificationResult
from requests.exceptions import ConnectionError
from requests import Session
from threading import Thread
from uuid import UUID
from uuid import uuid4
LOG = log.getLogger(__name__)
CONF = cfg.CONF
INTEGR_BACKEND = environ.get('EGUAN_INT_BACKEND')
INT_SPLIT = INTEGR_BACKEND.split('|') if INTEGR_BACKEND else None
_VOLD_BACKENDS = ({UUID(hex=INT_SPLIT[0]): INT_SPLIT[1]}
if INTEGR_BACKEND else
{uuid4(): uri + '/storage'
for uri in ['http://192.0.2.130:2345',
'http://198.51.100.130:2345',
'http://203.0.113.130:2345']})
_MOCK_VOLD_REST_SERVERS = ({t_id: mocks.MockVvrsRes(str(t_id), url, {})
for t_id, url in
_VOLD_BACKENDS.iteritems()})
@all_requests
def respond_all(url, request):
"""Intercept all calls, raise common exceptions and
forward to mock volds.
"""
LOG.debug("Analyzing call to URL %(url)s with request %(request)s" %
{'url': url, 'request': request})
# checks if the requested host is reachable
target_hosts = [host_url for host_url in
_MOCK_VOLD_REST_SERVERS.itervalues()
if host_url.base_url.netloc == url.netloc]
LOG.debug('Found matching hosts; %s' % target_hosts)
if len(target_hosts) == 0:
raise ConnectionError()
# checks for a valid tenant ID
tenant_id = UUID(mocks.extract_tenant_id(url))
target_server = _MOCK_VOLD_REST_SERVERS.get(tenant_id)
if target_server is None:
return {'status_code': 403}
# forward request to next level
server_mock = HTTMock(target_server.respond_all)
with server_mock:
s = Session()
return s.send(request)
ROOT_MOCK = (HTTMock() if INTEGR_BACKEND
else HTTMock(respond_all))
def _new_test_volume(tenant_id, snapshot_id=None, **kw_args):
volume_id = uuid4().get_hex()
display_name = 'test_vol_' + volume_id
volume_size_gb = kw_args.get('size') or 4
test_vol = {'name': display_name,
'size': volume_size_gb,
'display_name': display_name,
'id': volume_id,
'provider_auth': None,
'project_id': tenant_id.get_hex(),
'display_description':
'test volume for owner ID ' + str(tenant_id),
'snapshot_id': snapshot_id,
'volume_type_id': None}
test_vol.update(kw_args)
return test_vol
def _new_test_snapshot(tenant_id, volume_id, **kw_args):
snapshot_id = uuid4().get_hex()
test_snap = {'display_name': 'testSnap_' + str(tenant_id),
'id': snapshot_id,
'volume_id': volume_id,
'volume_size': 1,
'project_id': tenant_id.get_hex()}
test_snap.update(kw_args)
return test_snap
class TestEguanDriver(test.TestCase):
"""Main test class for the eguan block storage backend driver."""
def setUp(self):
super(TestEguanDriver, self).setUp()
self._driver = EguanDriver()
CONF.import_group('eguan', 'cinder.volume.drivers.eguan')
CONF.import_opt('vold_rest_uri', 'cinder.volume.drivers.eguan',
'eguan')
CONF.eguan.vold_rest_uri = ([INTEGR_BACKEND] if INTEGR_BACKEND
else [t_id.get_hex() + '|' + url for t_id,
url in _VOLD_BACKENDS.iteritems()])
# initialize backend by creating the appropriate VVR(s)
for t_id, url in _VOLD_BACKENDS.iteritems():
vvrs_res = resource_proxies.VvrsRes(url + '/vvrs', t_id)
vvr_id = map_tenant_to_vvr_id(t_id)
with ROOT_MOCK:
try:
vvr_res = vvrs_res.get_vvr(vvr_id)
except exception.NotFound:
vvr_res = vvrs_res.create_vvr(vvr_id)
# start the VVR if it's not yet started
if not vvr_res.started:
vvr_res.start()
def test_do_setup(self):
"""Test successful setup using the test client configuration."""
with HTTMock(respond_all):
self._driver.do_setup({})
def test_do_setup_fail_no_backend(self):
"""Test setup failure due to a missing backend address."""
CONF.eguan.vold_rest_uri = []
self.assertRaises(exception.VolumeBackendAPIException,
self._driver.do_setup, {})
def test_do_setup_fail_invalid_tenant(self):
"""Test setup failure due to an invalid tenant ID."""
CONF.eguan.vold_rest_uri.append("%s|http://192.0.2.134:4536/storage" %
'1337-dead-beef')
self.assertRaises(exception.VolumeBackendAPIException,
self._driver.do_setup, {})
def test_check_for_setup_error(self):
"""Test successful post-setup checking."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
def test_check_for_setup_error_fail_unreachable(self):
"""Test post-setup check failure due to an unreachable vold server."""
CONF.eguan.vold_rest_uri.append("%s|http://192.0.2.134:4536/storage" %
uuid4().get_hex())
with ROOT_MOCK:
self._driver.do_setup({})
self.assertRaises(exception.VolumeBackendAPIException,
self._driver.check_for_setup_error)
def test_create_volume(self):
"""Test creating volumes on multiple REST backends."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
volume_id = UUID(hex=test_vol.get('id'))
display_name = test_vol.get('display_name')
volume_size_gb = test_vol.get('size')
self._driver.create_volume(test_vol)
read_volume = self._driver.get_volume(tenant_id, volume_id)
self.assertEqual(volume_id,
UUID(hex=getattr(read_volume, 'uuid')))
self.assertEqual(display_name, getattr(read_volume, 'name'))
self.assertEqual(volume_size_gb * units.GiB,
long(getattr(read_volume, 'size')))
def test_create_volume_with_description(self):
"""Test creating volumes with optional descriptions."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
description = 'Test volume description'
test_vol['display_description'] = description
volume_id = UUID(hex=test_vol.get('id'))
display_name = test_vol.get('display_name')
volume_size_gb = test_vol.get('size')
self._driver.create_volume(test_vol)
read_volume = self._driver.get_volume(tenant_id, volume_id)
self.assertEqual(volume_id,
UUID(hex=getattr(read_volume, 'uuid')))
self.assertEqual(display_name, getattr(read_volume, 'name'))
self.assertEqual(volume_size_gb * units.GiB,
long(getattr(read_volume, 'size')))
self.assertEqual(description, getattr(read_volume,
'description'))
def test_create_volume_no_name(self):
"""Test creation of volumes without a name."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
volume_id = UUID(hex=test_vol.get('id'))
test_vol.pop('display_name')
self._driver.create_volume(test_vol)
read_volume = self._driver.get_volume(tenant_id, volume_id)
self.assertEqual(volume_id,
UUID(hex=getattr(read_volume, 'uuid')))
def test_create_volume_fail_missing_project_id(self):
"""Test failure to create volumes due to missing project IDs."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.pop('project_id')
self.assertIsNone(test_vol.get('project_id'))
self.assertRaises(exception.VolumeBackendAPIException,
lambda: self._driver.create_volume(test_vol))
def test_create_volume_fail_bad_project_id(self):
"""Test failure to create volumes due to a bad project ID."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.update({'project_id': uuid4().get_hex()})
self.assertRaises(exception.VolumeBackendAPIException,
lambda: self._driver.create_volume(test_vol))
def test_create_volume_fail_invalid_size(self):
"""Test failure to create volumes due to a negative size."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol['size'] = -1
self.assertRaises(exception.VolumeBackendAPIException,
lambda: self._driver.create_volume(test_vol))
def test_create_volume_fail_no_size(self):
"""Test failure to create volumes due to a missing size."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.pop('size')
self.assertRaises(exception.VolumeBackendAPIException,
lambda: self._driver.create_volume(test_vol))
def test_create_volume_from_snapshot(self):
"""Test creating volumes from existing snapshots."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
self._driver.create_volume(test_vol)
test_snap = _new_test_snapshot(tenant_id,
volume_id=test_vol['id'],
display_name='test_snap')
snapshot_id = UUID(hex=test_snap.get('id'))
snapshot_name = test_snap.get('display_name')
self._driver.create_snapshot(test_snap)
test_snap_vol = _new_test_volume(tenant_id,
snapshot_id=test_snap['id'])
self._driver.create_volume_from_snapshot(test_snap_vol,
test_snap)
read_snap = self._driver.get_snapshot(tenant_id, snapshot_id)
self.assertEqual(snapshot_id,
UUID(hex=getattr(read_snap, 'uuid')))
self.assertEqual(snapshot_name, getattr(read_snap, 'name'))
def test_create_volume_from_snapshot_fail_no_snap(self):
"""Test volume creation failure if given an invalid snapshot ID."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
vol_id = uuid4().get_hex()
bad_snap = _new_test_snapshot(tenant_id, volume_id=vol_id)
bad_snap_id = bad_snap['id']
test_vol = _new_test_volume(tenant_id, snapshot_id=bad_snap_id)
test_vol['id'] = vol_id
self.assertRaises(exception.NotFound, lambda:
self._driver.
create_volume_from_snapshot(test_vol,
bad_snap))
def test_create_cloned_volume(self):
"""Test volume creation as a clone of an existing volume."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
orig_vol = _new_test_volume(tenant_id, size=6)
self._driver.create_volume(orig_vol)
cloned_vol = _new_test_volume(tenant_id, size=6)
self._driver.create_cloned_volume(cloned_vol, orig_vol)
read_cloned_vol = (self._driver.
get_volume(tenant_id,
UUID(hex=cloned_vol['id'])))
self.assertNotEqual(UUID(hex=orig_vol['id']),
UUID(hex=getattr(read_cloned_vol,
read_cloned_vol.id_attr)))
self.assertEqual(orig_vol['size'] * units.GiB,
long(getattr(read_cloned_vol, 'size')))
def test_create_cloned_volume_with_description(self):
"""Test volume creation as a clone with a description."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
orig_vol = _new_test_volume(tenant_id, size=6)
self._driver.create_volume(orig_vol)
cloned_vol = _new_test_volume(tenant_id, size=6)
clone_desc = 'volume cloned from ' + orig_vol['id']
cloned_vol['display_description'] = clone_desc
self._driver.create_cloned_volume(cloned_vol, orig_vol)
read_cloned_vol = (self._driver.
get_volume(tenant_id,
UUID(hex=cloned_vol['id'])))
self.assertNotEqual(UUID(hex=orig_vol['id']),
UUID(hex=getattr(read_cloned_vol,
read_cloned_vol.id_attr)))
self.assertEqual(orig_vol['size'] * units.GiB,
long(getattr(read_cloned_vol, 'size')))
self.assertEqual(clone_desc, getattr(read_cloned_vol,
'description'))
def test_create_cloned_volume_fail_no_src_volume(self):
"""Test volume cloning failure if given a non-existent source."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
orig_vol = _new_test_volume(tenant_id)
cloned_vol = _new_test_volume(tenant_id)
self.assertRaises(exception.NotFound,
lambda: self._driver.
create_cloned_volume(cloned_vol, orig_vol))
def test_create_cloned_volume_fail_diff_tenant_ids(self):
"""Test volume creation failure due to different tenant IDs."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
orig_vol = _new_test_volume(tenant_id)
self._driver.create_volume(orig_vol)
cloned_vol = _new_test_volume(uuid4())
self.assertRaises(exception.VolumeBackendAPIException,
lambda: self._driver.
create_cloned_volume(cloned_vol, orig_vol))
def test_extend_volume(self):
"""Test deletion of a volume."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
volume_id = UUID(hex=test_vol.get('id'))
old_size = test_vol.get('size')
self._driver.create_volume(test_vol)
read_volume = self._driver.get_volume(tenant_id, volume_id)
self.assertEqual(old_size * units.GiB,
long(getattr(read_volume, 'size')))
new_size = 2 * old_size
self._driver.extend_volume(test_vol, new_size)
new_read_vol = self._driver.get_volume(tenant_id, volume_id)
self.assertEqual(new_size * units.GiB,
long(getattr(new_read_vol, 'size')))
def test_extend_volume_fail_negative_size(self):
"""Test deletion of a volume."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
volume_id = UUID(hex=test_vol.get('id'))
old_size = test_vol.get('size')
self._driver.create_volume(test_vol)
read_volume = self._driver.get_volume(tenant_id, volume_id)
self.assertEqual(old_size * units.GiB,
long(getattr(read_volume, 'size')))
new_size = -2 * old_size
self._driver.extend_volume(test_vol, new_size)
# check the volume's size was not set to the negative value
reread_volume = self._driver.get_volume(tenant_id, volume_id)
self.assertGreater(getattr(reread_volume, 'size'), 0)
def test_delete_volume(self):
"""Test deletion of a volume."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
volume_id = UUID(hex=test_vol.get('id'))
self._driver.create_volume(test_vol)
self._driver.delete_volume(test_vol)
self.assertRaises(exception.NotFound,
lambda: self._driver.get_volume(tenant_id,
volume_id))
def test_delete_volume_fail_no_volume(self):
"""Test failed deletion of an inexistent volume."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
volume_id = UUID(hex=test_vol.get('id'))
self.assertRaises(exception.NotFound,
lambda: self._driver.get_volume(tenant_id,
volume_id))
self.assertRaises(exception.NotFound,
lambda: self._driver.delete_volume(test_vol))
def test_create_snapshot(self):
"""Test creation of a snapshot."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
self._driver.create_volume(test_vol)
test_snap = _new_test_snapshot(tenant_id,
volume_id=test_vol['id'])
snap_id = UUID(hex=test_snap['id'])
self._driver.create_snapshot(test_snap)
read_snap = self._driver.get_snapshot(tenant_id, snap_id)
self.assertEqual(snap_id,
UUID(hex=getattr(read_snap, 'uuid')))
self.assertEqual(test_snap['display_name'],
getattr(read_snap, 'name'))
read_vol = self._driver.get_volume(tenant_id,
UUID(hex=test_vol['id']))
self.assertEqual(UUID(hex=test_snap['volume_id']),
UUID(hex=getattr(read_vol, 'uuid')))
self.assertEqual(snap_id,
UUID(hex=getattr(read_vol, 'parent')))
def test_create_snapshot_with_description(self):
"""Test creation of a snapshot with optional description."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
self._driver.create_volume(test_vol)
tst_snap = _new_test_snapshot(tenant_id,
volume_id=test_vol['id'])
description = 'Test snapshot description'
tst_snap['display_description'] = description
snap_id = UUID(hex=tst_snap['id'])
self._driver.create_snapshot(tst_snap)
read_snap = self._driver.get_snapshot(tenant_id, snap_id)
self.assertEqual(snap_id,
UUID(hex=getattr(read_snap, 'uuid')))
self.assertEqual(tst_snap['display_name'],
getattr(read_snap, 'name'))
read_vol = self._driver.get_volume(tenant_id,
UUID(hex=test_vol['id']))
self.assertEqual(UUID(hex=tst_snap['volume_id']),
UUID(hex=getattr(read_vol, 'uuid')))
self.assertEqual(snap_id,
UUID(hex=getattr(read_vol, 'parent')))
read_snap = self._driver.get_snapshot(tenant_id,
UUID(hex=tst_snap['id']))
self.assertEqual(snap_id, UUID(hex=getattr(read_snap, 'uuid')))
self.assertEqual(description, getattr(read_snap,
'description'))
def test_create_snapshot_no_name(self):
"""Test snapshot creation without a name."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
self._driver.create_volume(test_vol)
test_snap = _new_test_snapshot(tenant_id,
volume_id=test_vol['id'])
test_snap.pop('display_name')
snap_id = UUID(hex=test_snap['id'])
self._driver.create_snapshot(test_snap)
read_snap = self._driver.get_snapshot(tenant_id, snap_id)
self.assertEqual(snap_id,
UUID(hex=getattr(read_snap, 'uuid')))
def test_create_snapshot_fail_no_volume(self):
"""Test snapshot creation failure if given an invalid volume ID."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
bad_vol_id = uuid4().get_hex()
test_snap = _new_test_snapshot(tenant_id, volume_id=bad_vol_id)
self.assertRaises(exception.NotFound, lambda:
self._driver.
create_snapshot(test_snap))
def test_create_snapshot_fail_missing_project_id(self):
"""Test failure to create snapshots due to missing project IDs."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
vol_id = test_vol['id']
test_snap = _new_test_snapshot(tenant_id,
volume_id=vol_id)
self._driver.create_volume(test_vol)
test_snap.pop('project_id')
self.assertIsNone(test_snap.get('project_id'))
self.assertRaises(exception.VolumeBackendAPIException,
lambda: self._driver.
create_snapshot(test_snap))
def test_create_snapshot_fail_bad_project_id(self):
"""Test failure to create snapshots due to a bad project ID."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
vol_id = test_vol['id']
test_snap = _new_test_snapshot(tenant_id,
volume_id=vol_id)
self._driver.create_volume(test_vol)
test_snap.update({'project_id': uuid4().get_hex()})
self.assertRaises(exception.VolumeBackendAPIException,
lambda: self.
_driver.create_snapshot(test_snap))
def test_create_snapshot_fail_read_only(self):
"""Test failure creating a snapshot on a read-only volume."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
volume_id = UUID(hex=test_vol.get('id'))
self._driver.create_volume(test_vol)
test_vol['readOnly'] = True
self._driver.create_export({}, test_vol)
read_volume = self._driver.get_volume(tenant_id, volume_id)
self.assertTrue(getattr(read_volume, 'readOnly'))
test_snap = _new_test_snapshot(tenant_id,
volume_id=test_vol['id'])
self.assertRaises(exception.VolumeBackendAPIException,
lambda: self.
_driver.create_snapshot(test_snap))
def test_delete_snapshot(self):
"""Test deletion of a snapshot."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
self._driver.create_volume(test_vol)
test_snap = _new_test_snapshot(tenant_id,
volume_id=test_vol['id'])
snap_id = UUID(hex=test_snap['id'])
self._driver.create_snapshot(test_snap)
self._driver.delete_snapshot(test_snap)
self.assertRaises(exception.NotFound,
lambda: self._driver.get_volume(tenant_id,
snap_id))
def test_delete_snapshot_fail_no_snapshot(self):
"""Test deletion of a snapshot."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
self._driver.create_volume(test_vol)
test_snap = _new_test_snapshot(tenant_id,
volume_id=test_vol['id'])
snap_id = UUID(hex=test_snap.get('id'))
self.assertRaises(exception.NotFound,
lambda: self._driver.get_snapshot(tenant_id,
snap_id))
self.assertRaises(exception.NotFound,
lambda: self._driver.
delete_snapshot(test_snap))
def test_create_export(self):
"""Test export creation."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
self._driver.create_volume(test_vol)
update = self._driver.create_export({}, test_vol)
self.assertTrue(update['provider_location'])
#TODO(pwehrle): check for valid values
def test_create_export_read_only(self):
"""Test export creation."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
volume_id = UUID(hex=test_vol.get('id'))
self._driver.create_volume(test_vol)
test_vol['readOnly'] = True
update = self._driver.create_export({}, test_vol)
self.assertTrue(update['provider_location'])
#TODO(pwehrle): check for valid values
read_volume = self._driver.get_volume(tenant_id, volume_id)
self.assertTrue(getattr(read_volume, 'readOnly'))
def test_create_export_fail_no_volume(self):
"""Test export creation failure due to a missing volume."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
self.assertRaises(exception.NotFound,
lambda: self._driver.
create_export({}, test_vol))
def test_ensure_export(self):
"""Test ensuring export existence."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
volume_id = UUID(hex=test_vol['id'])
self._driver.create_volume(test_vol)
vol_res = self._driver.get_volume(tenant_id, volume_id)
self.assertFalse(hasattr(vol_res, 'provider_location'))
self._driver.ensure_export({}, test_vol)
exp_vol_res = self._driver.get_volume(tenant_id, volume_id)
self.assertTrue(hasattr(exp_vol_res, 'provider_location'))
def test_remove_export(self):
"""Test export removal."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
volume_id = UUID(hex=test_vol['id'])
test_vol.update(self._driver.create_volume(test_vol) or {})
test_vol.update(self._driver.create_export({}, test_vol))
self.assertTrue(test_vol['provider_location'])
self._driver.remove_export({}, test_vol)
read_vol_res = self._driver.get_volume(tenant_id, volume_id)
self.assertFalse(hasattr(read_vol_res, 'provider_location'))
def test_initialize_connection(self):
"""Test connection initialization for an unspecified client."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.update(self._driver.create_volume(test_vol) or {})
test_vol.update(self._driver.create_export({}, test_vol))
self.assertTrue(test_vol.get('provider_location'))
test_conn = {'ip': '192.0.2.232'}
connection_info = (self._driver.
initialize_connection(test_vol,
test_conn))
vol_type = connection_info['driver_volume_type']
self.assertEqual('iscsi', vol_type)
self.assertTrue('data' in connection_info)
conn_data = connection_info['data']
self.assertTrue('access_mode' in conn_data)
self.assertTrue('target_portal' in conn_data)
#iscsi-specific part
self.assertTrue('target_iqn' in conn_data)
self.assertTrue('volume_id' in conn_data)
self.assertTrue('target_lun' in conn_data)
self.assertFalse('nbd_dev_name' in conn_data)
def test_initialize_connection_iscsi(self):
"""Test connection initialization for an iSCSI client."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.update(self._driver.create_volume(test_vol) or {})
test_vol.update(self._driver.create_export({}, test_vol))
self.assertTrue(test_vol.get('provider_location'))
test_conn = {'ip': '192.0.2.232',
'initiator':
'iqn.1993-08.org.debian:01:80373e17099'}
connection_info = (self._driver.
initialize_connection(test_vol,
test_conn))
vol_type = connection_info['driver_volume_type']
self.assertEqual('iscsi', vol_type)
self.assertTrue('data' in connection_info)
conn_data = connection_info['data']
self.assertTrue('access_mode' in conn_data)
self.assertTrue('target_portal' in conn_data)
#iscsi-specific part
self.assertTrue('target_iqn' in conn_data)
self.assertTrue('volume_id' in conn_data)
self.assertTrue('target_lun' in conn_data)
self.assertFalse('nbd_dev_name' in conn_data)
def test_initialize_connection_nbd(self):
"""Test connection initialization for an NBD client."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.update(self._driver.create_volume(test_vol) or {})
test_vol.update(self._driver.create_export({}, test_vol))
self.assertTrue(test_vol.get('provider_location'))
test_conn = {'ip': '192.0.2.232',
'nbd_client_id':
'nbd-client version 2.9.25'}
connection_info = (self._driver.
initialize_connection(test_vol,
test_conn))
vol_type = connection_info['driver_volume_type']
self.assertEqual('nbd', vol_type)
self.assertTrue('data' in connection_info)
conn_data = connection_info['data']
self.assertTrue('access_mode' in conn_data)
self.assertTrue('target_portal' in conn_data)
# nbd-specific part
self.assertTrue('nbd_dev_name' in conn_data)
self.assertFalse('target_iqn' in conn_data)
def test_initialize_connection_not_exported(self):
"""Test connection initialization on a non-exported volume."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
volume_id = UUID(hex=test_vol['id'])
test_vol.update(self._driver.create_volume(test_vol) or {})
self.assertFalse(test_vol.get('provider_location'))
test_conn = {'ip': '192.0.2.232',
'initiator':
'iqn.1993-08.org.debian:01:80373e17099'}
connection_info = self._driver.initialize_connection(test_vol,
test_conn)
vol_res = self._driver.get_volume(tenant_id, volume_id)
self.assertTrue(hasattr(vol_res, 'provider_location'))
vol_type = connection_info['driver_volume_type']
self.assertTrue(vol_type in {'iscsi', 'nbd'})
self.assertTrue('data' in connection_info)
conn_data = connection_info['data']
self.assertTrue('access_mode' in conn_data)
self.assertTrue('target_portal' in conn_data)
if vol_type == 'iscsi':
self.assertTrue('target_iqn' in conn_data)
self.assertTrue('volume_id' in conn_data)
self.assertTrue('target_lun' in conn_data)
elif vol_type == 'nbd':
self.assertTrue('nbd_dev_name' in conn_data)
def test_initialize_connection_fail_no_client_ip(self):
"""Test connection init failure due to a missing client IP."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.update(self._driver.create_volume(test_vol) or {})
test_vol.update(self._driver.create_export({}, test_vol))
self.assertTrue(test_vol['provider_location'])
test_conn = {'initiator':
'iqn.1993-08.org.debian:01:80373e17099'}
self.assertRaises(exception.VolumeBackendAPIException,
lambda: self.
_driver.initialize_connection(test_vol,
test_conn))
def test_validate_connector(self):
"""Test the connector validation function."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.update(self._driver.create_volume(test_vol) or {})
test_vol.update(self._driver.create_export({}, test_vol))
self.assertTrue(test_vol['provider_location'])
test_conn = {'ip': '192.0.2.232',
'initiator':
'iqn.1993-08.org.debian:01:80373e17099'}
self._driver.validate_connector(test_conn)
def test_validate_connector_fail_no_ip(self):
"""Test the connector validation function."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.update(self._driver.create_volume(test_vol) or {})
test_vol.update(self._driver.create_export({}, test_vol))
self.assertTrue(test_vol['provider_location'])
test_conn = {'initiator':
'iqn.1993-08.org.debian:01:80373e17099'}
self.assertRaises(exception.VolumeBackendAPIException,
lambda: self._driver.
validate_connector(test_conn))
def test_terminate_connection(self):
"""Test connection termination."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.update(self._driver.create_volume(test_vol) or {})
test_vol.update(self._driver.create_export({}, test_vol))
self.assertTrue(test_vol.get('provider_location'))
test_conn = {'ip': '192.0.2.232',
'initiator':
'iqn.1993-08.org.debian:01:80373e17099'}
self._driver.initialize_connection(test_vol, test_conn)
self._driver.terminate_connection(test_vol, test_conn)
#TODO(pwehrle): find some smart thing(s) to check
def test_attach_volume(self):
"""Test attaching volumes to instances."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.update(self._driver.create_volume(test_vol) or {})
instance_uuid = uuid4()
self._driver.attach_volume({}, test_vol, instance_uuid,
'test_host.example.com',
'/mnt/vol1')
def test_attach_volume_fail_no_volume(self):
"""Test failure to attach non-existent volumes to instances."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
instance_uuid = uuid4()
self.assertRaises(exception.NotFound,
lambda: self._driver.
attach_volume({}, test_vol, instance_uuid,
'test_host.example.com',
'/mnt/vol1'))
def test_detach_volume(self):
"""Test detaching volumes from instances."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.update(self._driver.create_volume(test_vol) or {})
instance_uuid = uuid4()
test_host = 'test_host.example.com'
self._driver.attach_volume({}, test_vol, instance_uuid,
test_host,
'/mnt/vol1')
# add attached_host manually
test_vol['attached_host'] = test_host
self._driver.detach_volume({}, test_vol)
def test_detach_volume_not_attached(self):
"""Test detaching non-attached volumes from instances."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol.update(self._driver.create_volume(test_vol) or {})
self._driver.detach_volume({}, test_vol)
def test_detach_volume_fail_no_volume(self):
"""Test failure detaching non-existent volumes from instances."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
for tenant_id in _VOLD_BACKENDS.iterkeys():
test_vol = _new_test_volume(tenant_id)
test_vol['attached_host'] = 'test_host.example.com'
self.assertRaises(exception.NotFound,
lambda: self._driver.detach_volume({},
test_vol))
def test_get_volume_stats(self):
"""Test getting volume statistics."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
cap_values = ['unknown', 'infinite']
stats_data = self._driver.get_volume_stats()
self.assertTrue(stats_data.get('driver_version'))
free_cap = stats_data.get('free_capacity_gb')
self.assertTrue(free_cap in cap_values or
long(free_cap) >= 0)
self.assertTrue(long(stats_data.
get('reserved_percentage')) >= 0)
self.assertTrue(stats_data.get('storage_protocol') in ['iSCSI',
'nbd'])
total_cap = stats_data.get('total_capacity_gb')
self.assertTrue(total_cap in cap_values or
long(total_cap) >= 0)
self.assertEqual(stats_data.get('vendor_name'), 'Oodrive')
self.assertEqual(stats_data.get('volume_backend_name'),
'eguan')
def test_get_volume_stats_with_conf_backend_name(self):
"""Test getting volume statistics with a configured backend name."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
cap_values = ['unknown', 'infinite']
custom_backend_name = 'Custom backend'
new_conf = Configuration(eguan_opts)
new_conf.local_conf.set_override('volume_backend_name',
custom_backend_name)
try:
new_driver = EguanDriver(configuration=new_conf)
stats_data = new_driver.get_volume_stats(refresh=True)
self.assertTrue(stats_data.get('driver_version'))
free_cap = stats_data.get('free_capacity_gb')
self.assertTrue(free_cap in cap_values or
long(free_cap) >= 0)
self.assertTrue(long(stats_data.
get('reserved_percentage')) >= 0)
self.assertTrue(stats_data.get('storage_protocol') in ['iSCSI',
'nbd'])
total_cap = stats_data.get('total_capacity_gb')
self.assertTrue(total_cap == 'infinite' or
long(total_cap) >= 0)
self.assertEqual(stats_data.get('vendor_name'), 'Oodrive')
self.assertEqual(stats_data.get('volume_backend_name'),
custom_backend_name)
finally:
new_conf.local_conf.clear_override('volume_backend_name')
def test_get_volume_stats_with_refresh(self):
"""Test getting volume statistics with forced refresh."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
cap_values = ['unknown', 'infinite']
stats_data = self._driver.get_volume_stats(refresh=True)
self.assertTrue(stats_data.get('driver_version'))
free_cap = stats_data.get('free_capacity_gb')
self.assertTrue(free_cap in cap_values or
long(free_cap) >= 0)
self.assertTrue(long(stats_data.
get('reserved_percentage')) >= 0)
self.assertTrue(stats_data.get('storage_protocol') in ['iSCSI',
'nbd'])
total_cap = stats_data.get('total_capacity_gb')
self.assertTrue(total_cap == 'infinite' or
long(total_cap) >= 0)
self.assertEqual(stats_data.get('vendor_name'), 'Oodrive')
self.assertEqual(stats_data.get('volume_backend_name'),
'eguan')
def test_keystone_notification_create(self):
"""Test creating a VVR following a tenant creation notification."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
notif_handler = KeystoneNotificationHandler(self._driver)
new_tenant_id = uuid4()
notif_result = notif_handler.info({},
'identity.localhost',
'identity.project.created',
{'resource_info':
new_tenant_id.get_hex()},
{})
self.assertEqual(NotificationResult.HANDLED, notif_result)
vvr_id = map_tenant_to_vvr_id(new_tenant_id)
vvrs_proxy = self._driver._checked_vvrs_proxy(new_tenant_id)
target_vvr = vvrs_proxy.get_vvr(vvr_id)
self.assertEqual(vvr_id, UUID(hex=getattr(target_vvr, 'uuid')))
test_vol = _new_test_volume(new_tenant_id)
volume_id = UUID(hex=test_vol.get('id'))
self._driver.create_volume(test_vol)
read_volume = self._driver.get_volume(new_tenant_id, volume_id)
self.assertEqual(volume_id,
UUID(hex=getattr(read_volume, 'uuid')))
def test_keystone_notification_create_existing(self):
"""Test creating a VVR following a tenant creation notification."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
notif_handler = KeystoneNotificationHandler(self._driver)
new_tenant_id = uuid4()
notif_result = notif_handler.info({},
'identity.localhost',
'identity.project.created',
{'resource_info':
new_tenant_id.get_hex()},
{})
self.assertEqual(NotificationResult.HANDLED, notif_result)
vvr_id = map_tenant_to_vvr_id(new_tenant_id)
vvrs_proxy = self._driver._checked_vvrs_proxy(new_tenant_id)
target_vvr = vvrs_proxy.get_vvr(vvr_id)
self.assertEqual(vvr_id, UUID(hex=getattr(target_vvr, 'uuid')))
notif_result = notif_handler.info({},
'identity.localhost',
'identity.project.created',
{'resource_info':
new_tenant_id.get_hex()},
{})
self.assertEqual(NotificationResult.HANDLED, notif_result)
def test_keystone_notification_create_async_vol_request(self):
"""Test volume creation requests while the VVR is being created."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
notif_handler = KeystoneNotificationHandler(self._driver)
new_tenant_id = uuid4()
notif_thread = Thread(target=notif_handler.info,
args=({},
'identity.localhost',
'identity.project.created',
{'resource_info':
new_tenant_id.get_hex()},
{}))
notif_thread.start()
test_vol = _new_test_volume(new_tenant_id)
volume_id = UUID(hex=test_vol.get('id'))
self._driver.create_volume(test_vol)
read_volume = self._driver.get_volume(new_tenant_id, volume_id)
self.assertEqual(volume_id,
UUID(hex=getattr(read_volume, 'uuid')))
notif_thread.join(10)
vvr_id = map_tenant_to_vvr_id(new_tenant_id)
vvrs_proxy = self._driver._checked_vvrs_proxy(new_tenant_id)
target_vvr = vvrs_proxy.get_vvr(vvr_id)
self.assertEqual(vvr_id, UUID(hex=getattr(target_vvr, 'uuid')))
def test_keystone_notification_delete(self):
"""Test deleting a VVR following a tenant deletion notification."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
notif_handler = KeystoneNotificationHandler(self._driver)
new_tenant_id = uuid4()
notif_result = notif_handler.info({},
'identity.localhost',
'identity.project.created',
{'resource_info':
new_tenant_id.get_hex()},
{})
self.assertEqual(NotificationResult.HANDLED, notif_result)
vvr_id = map_tenant_to_vvr_id(new_tenant_id)
vvrs_proxy = self._driver._checked_vvrs_proxy(new_tenant_id)
target_vvr = vvrs_proxy.get_vvr(vvr_id)
self.assertEqual(vvr_id, UUID(hex=getattr(target_vvr, 'uuid')))
notif_result = notif_handler.info({},
'identity.localhost',
'identity.project.deleted',
{'resource_info':
new_tenant_id.get_hex()},
{})
self.assertEqual(NotificationResult.HANDLED, notif_result)
self.assertRaises(exception.NotFound,
lambda: vvrs_proxy.get_vvr(vvr_id))
def test_keystone_notification_delete_exported_device(self):
"""Test deleting a VVR in the presence of an exported device."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
notif_handler = KeystoneNotificationHandler(self._driver)
new_tenant_id = uuid4()
notif_result = notif_handler.info({},
'identity.localhost',
'identity.project.created',
{'resource_info':
new_tenant_id.get_hex()},
{})
self.assertEqual(NotificationResult.HANDLED, notif_result)
vvr_id = map_tenant_to_vvr_id(new_tenant_id)
vvrs_proxy = self._driver._checked_vvrs_proxy(new_tenant_id)
target_vvr = vvrs_proxy.get_vvr(vvr_id)
self.assertEqual(vvr_id, UUID(hex=getattr(target_vvr, 'uuid')))
for dev_nb in range(1, 5):
test_vol = _new_test_volume(new_tenant_id)
test_vol['display_name'] = 'Vol-' + str(dev_nb)
self._driver.create_volume(test_vol)
if (dev_nb % 2) == 0:
continue
update = self._driver.create_export({}, test_vol)
self.assertTrue(update['provider_location'])
notif_result = notif_handler.info({},
'identity.localhost',
'identity.project.deleted',
{'resource_info':
new_tenant_id.get_hex()},
{})
self.assertEqual(NotificationResult.HANDLED, notif_result)
self.assertRaises(exception.NotFound,
lambda: vvrs_proxy.get_vvr(vvr_id))
def test_keystone_notification_delete_stopped_vvr(self):
"""Test deleting a stopped VVR."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
notif_handler = KeystoneNotificationHandler(self._driver)
new_tenant_id = uuid4()
notif_result = notif_handler.info({},
'identity.localhost',
'identity.project.created',
{'resource_info':
new_tenant_id.get_hex()},
{})
self.assertEqual(NotificationResult.HANDLED, notif_result)
vvr_id = map_tenant_to_vvr_id(new_tenant_id)
vvrs_proxy = self._driver._checked_vvrs_proxy(new_tenant_id)
target_vvr = vvrs_proxy.get_vvr(vvr_id)
self.assertEqual(vvr_id, UUID(hex=getattr(target_vvr, 'uuid')))
updated_vvr = target_vvr.stop()
self.assertFalse(updated_vvr.started)
notif_result = notif_handler.info({},
'identity.localhost',
'identity.project.deleted',
{'resource_info':
new_tenant_id.get_hex()},
{})
self.assertEqual(NotificationResult.HANDLED, notif_result)
self.assertRaises(exception.NotFound,
lambda: vvrs_proxy.get_vvr(vvr_id))
def test_keystone_notification_delete_ignore_missing(self):
"""Test handling a deletion notification for a non-existent VVR."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
notif_handler = KeystoneNotificationHandler(self._driver)
new_tenant_id = uuid4()
notif_result = notif_handler.info({},
'identity.localhost',
'identity.project.deleted',
{'resource_info':
new_tenant_id.get_hex()},
{})
self.assertEqual(NotificationResult.HANDLED, notif_result)
vvr_id = map_tenant_to_vvr_id(new_tenant_id)
vvrs_proxy = self._driver._checked_vvrs_proxy(new_tenant_id)
self.assertRaises(exception.NotFound,
lambda: vvrs_proxy.get_vvr(vvr_id))
def test_keystone_notification_ignore(self):
"""Test miscellaneous ignored notifications."""
with ROOT_MOCK:
self._driver.do_setup({})
self._driver.check_for_setup_error()
notif_handler = KeystoneNotificationHandler(self._driver)
tenant_id_hex = uuid4().get_hex()
# missing resource ID
self.assertIsNone(notif_handler.info({},
'identity.localhost',
'identity.project.created',
{},
{}))
# identity service, but not on project topic
self.assertIsNone(notif_handler.info({},
'identity.localhost',
'identity.user',
{'resource_info':
tenant_id_hex},
{}))
# identity service, project topic, but unknown operation
self.assertIsNone(notif_handler.info({},
'identity.localhost',
'identity.project.unknown',
{'resource_info':
tenant_id_hex},
{}))
# another service entirely
self.assertIsNone(notif_handler.info({},
'image.localhost',
'image',
{},
{}))
| 47.08209
| 79
| 0.545285
| 6,592
| 63,090
| 4.844053
| 0.063714
| 0.079544
| 0.029813
| 0.031943
| 0.811067
| 0.783164
| 0.742672
| 0.722347
| 0.701929
| 0.686835
| 0
| 0.007413
| 0.36711
| 63,090
| 1,339
| 80
| 47.117252
| 0.792306
| 0.067697
| 0
| 0.729781
| 0
| 0
| 0.061806
| 0.011496
| 0
| 0
| 0
| 0.000747
| 0.145576
| 1
| 0.060894
| false
| 0
| 0.021884
| 0
| 0.087536
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
474ed78bf0cbcfa9b4f30d0a83025be484fdec02
| 46
|
py
|
Python
|
tests/test_pycounts-klv-524.py
|
Kingslin0810/pycounts-klv-524
|
db0700031ac7b8ea5ca5f247174de87d8f108a2e
|
[
"MIT"
] | null | null | null |
tests/test_pycounts-klv-524.py
|
Kingslin0810/pycounts-klv-524
|
db0700031ac7b8ea5ca5f247174de87d8f108a2e
|
[
"MIT"
] | null | null | null |
tests/test_pycounts-klv-524.py
|
Kingslin0810/pycounts-klv-524
|
db0700031ac7b8ea5ca5f247174de87d8f108a2e
|
[
"MIT"
] | null | null | null |
from pycounts-klv-524 import pycounts-klv-524
| 23
| 45
| 0.826087
| 8
| 46
| 4.75
| 0.625
| 0.578947
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0.086957
| 46
| 1
| 46
| 46
| 0.761905
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 1
| null | null | 0
| 1
| 1
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
9a2611bb44033b45ce5a6f2385b600a31e2621ed
| 134
|
py
|
Python
|
gyakujinton/__init__.py
|
mamerisawesome/gyakujinton
|
835ffe8ddf61b638db50a6ff15f764bee19917bd
|
[
"MIT"
] | null | null | null |
gyakujinton/__init__.py
|
mamerisawesome/gyakujinton
|
835ffe8ddf61b638db50a6ff15f764bee19917bd
|
[
"MIT"
] | null | null | null |
gyakujinton/__init__.py
|
mamerisawesome/gyakujinton
|
835ffe8ddf61b638db50a6ff15f764bee19917bd
|
[
"MIT"
] | null | null | null |
from .functions.draw import generate_superimposition
from .functions.draw import draw_on_image
from .functions.skew import skew_image
| 33.5
| 52
| 0.865672
| 19
| 134
| 5.894737
| 0.473684
| 0.348214
| 0.303571
| 0.410714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089552
| 134
| 3
| 53
| 44.666667
| 0.918033
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 9
|
7be88ff979a0af19aa00c283f466fe83d0c188fe
| 515
|
py
|
Python
|
backends/paltoodl/rev20150404/odl_types/odl_abstract_map.py
|
snlab/alto-server
|
1d8b8530a8948930c267298801b0e2dcd78dd71a
|
[
"Apache-2.0"
] | null | null | null |
backends/paltoodl/rev20150404/odl_types/odl_abstract_map.py
|
snlab/alto-server
|
1d8b8530a8948930c267298801b0e2dcd78dd71a
|
[
"Apache-2.0"
] | null | null | null |
backends/paltoodl/rev20150404/odl_types/odl_abstract_map.py
|
snlab/alto-server
|
1d8b8530a8948930c267298801b0e2dcd78dd71a
|
[
"Apache-2.0"
] | 1
|
2015-04-25T17:03:18.000Z
|
2015-04-25T17:03:18.000Z
|
class AbstractODLMap:
def load_from_odl(self, odl_map):
raise NotImplementedError( "Should have implemented this" )
def load_from_rfc(self, rfc_map):
raise NotImplementedError( "Should have implemented this" )
def resource_id(self):
raise NotImplementedError( "Should have implemented this" )
def odl_map(self):
raise NotImplementedError( "Should have implemented this" )
def rfc_map(self):
raise NotImplementedError( "Should have implemented this" )
| 32.1875
| 67
| 0.706796
| 58
| 515
| 6.12069
| 0.293103
| 0.338028
| 0.422535
| 0.478873
| 0.791549
| 0.791549
| 0.791549
| 0.791549
| 0
| 0
| 0
| 0
| 0.219417
| 515
| 15
| 68
| 34.333333
| 0.883085
| 0
| 0
| 0.454545
| 0
| 0
| 0.271845
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.454545
| false
| 0
| 0
| 0
| 0.545455
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 8
|
d0030f4a8a791164ed114ddfc0a4f6deed6f74dd
| 3,158
|
py
|
Python
|
src/errors.py
|
altmirai/altpiggybank
|
751590642e0a2a572310923fbd971acd0fdf8527
|
[
"MIT"
] | null | null | null |
src/errors.py
|
altmirai/altpiggybank
|
751590642e0a2a572310923fbd971acd0fdf8527
|
[
"MIT"
] | 6
|
2020-08-13T13:45:12.000Z
|
2020-08-14T15:08:41.000Z
|
src/errors.py
|
altmirai/altpiggybank
|
751590642e0a2a572310923fbd971acd0fdf8527
|
[
"MIT"
] | 1
|
2020-08-13T16:16:00.000Z
|
2020-08-13T16:16:00.000Z
|
import requests
import click
import ecdsa
import json
def addr(error, context, config, **kwargs):
# Connection Timeout Error
if isinstance(error, requests.exceptions.ConnectTimeout):
raise click.UsageError(
'API connection timeout, please try again later', context)
# API status_code NOT 200
elif isinstance(error, AssertionError):
raise click.UsageError(error.args[0], context)
# VerifyingKey.from_pem failed due to bad file format
elif isinstance(error, ecdsa.der.UnexpectedDER):
raise click.UsageError(
'Incorrect file, please provide a PEM formatted public key file', context)
else:
unkown_error(error, context)
def refresh(error, context, config, **kwargs):
# Connection Timeout Error
if isinstance(error, requests.exceptions.ConnectTimeout):
raise click.UsageError(
'API connection timeout, please try again later', context)
# API status_code NOT 200, PEM not present in JSON file
elif isinstance(error, AssertionError):
raise click.UsageError(error.args[0], context)
# File not JSON
elif isinstance(error, json.decoder.JSONDecodeError):
raise click.UsageError(
'Incorrect file, please provide a JSON formatted addr file created by piggy addr', context)
else:
unkown_error(error, context)
def fee(error, context, config, **kwargs):
# Connection Timeout Error
if isinstance(error, requests.exceptions.ConnectTimeout):
raise click.UsageError(
'API connection timeout, please try again later', context)
# API status_code NOT 200, PEM not present in JSON file
elif isinstance(error, AssertionError):
raise click.UsageError(error.args[0], context)
# File not JSON
elif isinstance(error, json.decoder.JSONDecodeError):
raise click.UsageError(
'Incorrect file, please provide a JSON formatted addr file created by piggy addr', context)
else:
unkown_error(error, context)
def tx(error, context, config, **kwargs):
# Connection Timeout Error
if isinstance(error, requests.exceptions.ConnectTimeout):
raise click.UsageError(
'API connection timeout, please try again later', context)
# API status_code NOT 200
elif isinstance(error, AssertionError):
raise click.UsageError(error.args[0], context)
else:
unkown_error(error, context)
def signed(error, context, config, **kwargs):
# Connection Timeout Error
if isinstance(error, requests.exceptions.ConnectTimeout):
raise click.UsageError(
'API connection timeout, please try again later', context)
# API status_code NOT 200
elif isinstance(error, AssertionError):
raise click.UsageError(error.args[0], context)
else:
unkown_error(error, context)
def unkown_error(error, context):
file_name = error.__traceback__.tb_frame.f_code.co_filename
line_num = error.__traceback__.tb_lineno
raise click.UsageError(
f'This is embarrassing, There was a {type(error).__name__}({error}) on line {line_num} in {file_name}', context)
| 37.595238
| 120
| 0.69696
| 379
| 3,158
| 5.722955
| 0.208443
| 0.064546
| 0.129092
| 0.063624
| 0.828953
| 0.828953
| 0.828953
| 0.811895
| 0.790226
| 0.790226
| 0
| 0.008104
| 0.218493
| 3,158
| 83
| 121
| 38.048193
| 0.870746
| 0.121596
| 0
| 0.741379
| 0
| 0.017241
| 0.198913
| 0.011232
| 0
| 0
| 0
| 0
| 0.086207
| 1
| 0.103448
| false
| 0
| 0.068966
| 0
| 0.172414
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d0f5caf6fc0dceb31966caa47a9b31b570968943
| 18,273
|
py
|
Python
|
training/config/training.py
|
vhrspvl/Minda-Training
|
6d54d44b718506d6fe460abe5796bdee9e74d0ad
|
[
"MIT"
] | null | null | null |
training/config/training.py
|
vhrspvl/Minda-Training
|
6d54d44b718506d6fe460abe5796bdee9e74d0ad
|
[
"MIT"
] | null | null | null |
training/config/training.py
|
vhrspvl/Minda-Training
|
6d54d44b718506d6fe460abe5796bdee9e74d0ad
|
[
"MIT"
] | 1
|
2020-02-14T12:56:53.000Z
|
2020-02-14T12:56:53.000Z
|
from __future__ import unicode_literals
from frappe import _
import frappe
def get_data():
system_manager = frappe.get_doc("User", frappe.session.user).get(
"roles", {"role": "System Manager"})
training_manager = frappe.get_doc("User", frappe.session.user).get(
"roles", {"role": "Training Manager"})
employee = frappe.get_doc("User", frappe.session.user).get(
"roles", {"role": "Employee"})
hr_manager = frappe.get_doc("User", frappe.session.user).get(
"roles", {"role": "HR Manager"})
if system_manager:
return [
{
"label": _("Evaluation Forms"),
"items": [
{
"type": "doctype",
"name": "Auto Cutting and Crimping",
"description": _("Auto Cutting and Crimping"),
},
{
"type": "doctype",
"name": "Semi Auto Crimping",
"description": _("Semi Auto Crimping"),
},
{
"type": "doctype",
"name": "Assembly Evaluation",
"description": _("Assembly Evaluation"),
},
{
"type": "doctype",
"name": "Quality Evaluation",
"description": _("Quality Evaluation"),
},
]
},
{
"label": _("Monitoring Sheets"),
"items": [
{
"type": "doctype",
"name": "Associate Performance Monitoring",
"description": _("Associate Performance Monitoring"),
},
{
"type": "doctype",
"name": "Associate Performance Monitoring Check Sheet",
"description": _("Associate Performance Monitoring Check Sheet"),
},
{
"type": "doctype",
"name": "Knowledge Verification Sheet",
"description": _("Knowledge Verification Sheet"),
},
{
"type": "doctype",
"name": "Employee Performance Summary Report",
"description": _("Employee Performance Summary Report"),
}
]
},
{
"label": _("Tests & Questions"),
"items": [
{
"type": "doctype",
"name": "Color Blindness Test",
"description": _("Color Blindness Test"),
},
{
"type": "doctype",
"name": "Selection Test",
"description": _("Selection Test"),
},
{
"type": "doctype",
"name": "New Joinees Practical Knowledge Verification",
"description": _("New Joinees Practical Knowledge Verification"),
},
{
"type": "doctype",
"name": "Induction Training Assembly Area",
"description": _("Induction Training Assembly Area"),
},
{
"type": "doctype",
"name": "Induction Training Machine Area Crimping",
"description": _("Induction Training Machine Area Crimping"),
},
{
"type": "doctype",
"name": "Induction Training Machine Area Operator",
"description": _("Induction Training Machine Area Operator"),
},
{
"type": "doctype",
"name": "Crimping Questions",
"description": _("Crimping Questions"),
}
]
},
{
"label": _("Tools & Reports"),
"items": [
{
"type": "report",
"is_query_report": True,
"name": "New Joinees Details",
"label": _("New Joinees Test Details"),
"description": _("New Joinees Details"),
"doctype": "Employee"
},
{
"type": "report",
"is_query_report": True,
"name": "Pending List KVS",
"label": _("Pending List KVS"),
"description": _("Pending List KVS"),
"doctype": "Employee"
},
{
"type": "report",
"is_query_report": True,
"name": "Practical Knowledge Verification Pending List",
"label": _("Pending List Practical Knowledge Verification"),
"description": _("Pending List KVS"),
"doctype": "New Joinees Practical Knowledge Verification"
},
{
"type": "doctype",
"name": "KVS Type Assignment",
"description": _("Line and Shift Assignment Details"),
},
{
"type": "doctype",
"name": "Line and Shift Assignment Tool",
"description": _("Line and Shift Assignment Tool"),
},
{
"type": "doctype",
"name": "Line and Shift Assignment Details",
"description": _("Line and Shift Assignment Details"),
},
{
"type": "report",
"is_query_report": True,
"name": "Skill Evaluation Due Report",
"label": _("Skill Evaluation Due Report"),
"description": _("Skill Evaluation Due Report")
# "doctype": "New Joinees Practical Knowledge Verification"
}
]
},
{
"label": _("Supervisor Evaluation Marks"),
"items": [
{
"type": "doctype",
"name": "Auto Cutting and Crimping Marks",
"description": _("Auto Cutting and Crimping Marks"),
},
{
"type": "doctype",
"name": "Semi Auto Crimping Marks",
"description": _("Semi Auto Crimping Marks"),
},
{
"type": "doctype",
"name": "Assembly Evaluation Marks",
"description": _("Assembly Evaluation Marks"),
},
{
"type": "doctype",
"name": "Quality Evaluation Marks",
"description": _("Quality Evaluation Marks"),
},
]
},
]
elif training_manager:
return [
{
"label": _("Evaluation Forms"),
"items": [
{
"type": "doctype",
"name": "Auto Cutting and Crimping",
"description": _("Auto Cutting and Crimping"),
},
{
"type": "doctype",
"name": "Semi Auto Crimping",
"description": _("Semi Auto Crimping"),
},
{
"type": "doctype",
"name": "Assembly Evaluation",
"description": _("Assembly Evaluation"),
},
{
"type": "doctype",
"name": "Quality Evaluation",
"description": _("Quality Evaluation"),
},
]
},
{
"label": _("Monitoring Sheets"),
"items": [
{
"type": "doctype",
"name": "Associate Performance Monitoring",
"description": _("Associate Performance Monitoring"),
},
{
"type": "doctype",
"name": "Associate Performance Monitoring Check Sheet",
"description": _("Associate Performance Monitoring Check Sheet"),
},
{
"type": "doctype",
"name": "Knowledge Verification Sheet",
"description": _("Knowledge Verification Sheet"),
},
{
"type": "doctype",
"name": "Employee Performance Summary Report",
"description": _("Employee Performance Summary Report"),
}
]
},
{
"label": _("Tests & Questions"),
"items": [
{
"type": "doctype",
"name": "Color Blindness Test",
"description": _("Color Blindness Test"),
},
{
"type": "doctype",
"name": "Selection Test",
"description": _("Selection Test"),
},
{
"type": "doctype",
"name": "New Joinees Practical Knowledge Verification",
"description": _("New Joinees Practical Knowledge Verification"),
},
{
"type": "doctype",
"name": "Induction Training Assembly Area",
"description": _("Induction Training Assembly Area"),
},
{
"type": "doctype",
"name": "Induction Training Machine Area Crimping",
"description": _("Induction Training Machine Area Crimping"),
},
{
"type": "doctype",
"name": "Induction Training Machine Area Operator",
"description": _("Induction Training Machine Area Operator"),
},
{
"type": "doctype",
"name": "Crimping Questions",
"description": _("Crimping Questions"),
}
]
},
{
"label": _("Tools & Reports"),
"items": [
{
"type": "report",
"is_query_report": True,
"name": "New Joinees Details",
"label": _("New Joinees Test Details"),
"description": _("New Joinees Details"),
"doctype": "Employee"
},
{
"type": "report",
"is_query_report": True,
"name": "Pending List KVs",
"label": _("Pending List KVS"),
"description": _("Pending List KVS"),
"doctype": "Employee"
},
{
"type": "report",
"is_query_report": True,
"name": "Practical Knowledge Verificatio Pending List",
"label": _("Pending List Practical Knowledge Verification"),
"description": _("Pending List KVS"),
"doctype": "New Joinees Practical Knowledge Verification"
},
{
"type": "doctype",
"name": "KVS Type Assignment",
"description": _("Line and Shift Assignment Details"),
},
{
"type": "doctype",
"name": "Line and Shift Assignment Tool",
"description": _("Line and Shift Assignment Tool"),
},
{
"type": "doctype",
"name": "Line and Shift Assignment Details",
"description": _("Line and Shift Assignment Details"),
},
{
"type": "report",
"is_query_report": True,
"name": "Skill Evaluation Due Report",
"label": _("Skill Evaluation Due Report"),
"description": _("Skill Evaluation Due Report")
# "doctype": "New Joinees Practical Knowledge Verification"
}
]
},
{
"label": _("Supervisor Evaluation Marks"),
"items": [
{
"type": "doctype",
"name": "Auto Cutting and Crimping Marks",
"description": _("Auto Cutting and Crimping Marks"),
},
{
"type": "doctype",
"name": "Semi Auto Crimping Marks",
"description": _("Semi Auto Crimping Marks"),
},
{
"type": "doctype",
"name": "Assembly Evaluation Marks",
"description": _("Assembly Evaluation Marks"),
},
{
"type": "doctype",
"name": "Quality Evaluation Marks",
"description": _("Quality Evaluation Marks"),
},
]
},
]
elif hr_manager:
return [
{
"label": _("Evaluation Forms"),
"items": [
{
"type": "doctype",
"name": "Auto Cutting and Crimping",
"description": _("Auto Cutting and Crimping"),
},
{
"type": "doctype",
"name": "Semi Auto Crimping",
"description": _("Semi Auto Crimping"),
},
{
"type": "doctype",
"name": "Assembly Evaluation",
"description": _("Assembly Evaluation"),
},
{
"type": "doctype",
"name": "Quality Evaluation",
"description": _("Quality Evaluation"),
},
]
},
{
"label": _("Monitoring Sheets"),
"items": [
{
"type": "doctype",
"name": "Associate Performance Monitoring",
"description": _("Associate Performance Monitoring Tool"),
},
{
"type": "doctype",
"name": "Associate Performance Monitoring Check Sheet",
"description": _("Associate Performance Monitoring Check Sheet"),
},
{
"type": "doctype",
"name": "Knowledge Verification Sheet",
"description": _("Knowledge Verification Sheet"),
},
{
"type": "doctype",
"name": "Employee Performance Summary Report",
"description": _("Employee Performance Summary Report"),
}
]
},
{
"label": _("Tests & Questions"),
"items": [
{
"type": "doctype",
"name": "Induction Training Assembly Area",
"description": _("Induction Training Assembly Area"),
},
{
"type": "doctype",
"name": "Induction Training Machine Area Crimping",
"description": _("Induction Training Machine Area Crimping"),
},
{
"type": "doctype",
"name": "Induction Training Machine Area Operator",
"description": _("Induction Training Machine Area Operator"),
},
{
"type": "doctype",
"name": "Crimping Questions",
"description": _("Crimping Questions"),
}
]
},
]
| 41.91055
| 89
| 0.347836
| 958
| 18,273
| 6.511482
| 0.08142
| 0.09875
| 0.134659
| 0.053863
| 0.970664
| 0.970664
| 0.970664
| 0.970664
| 0.970664
| 0.970664
| 0
| 0
| 0.547474
| 18,273
| 435
| 90
| 42.006897
| 0.754384
| 0.006293
| 0
| 0.556075
| 0
| 0
| 0.342495
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.002336
| false
| 0
| 0.007009
| 0
| 0.016355
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ef8b45f32d03ee64bdd830071f72a1ecd4f9b70a
| 8,912
|
py
|
Python
|
tests/test_plugin.py
|
rad96/pytest-telegram
|
3e1fbf46c30eda0366060c897367e4f47cd48bf1
|
[
"MIT"
] | 1
|
2021-06-11T07:22:06.000Z
|
2021-06-11T07:22:06.000Z
|
tests/test_plugin.py
|
rad96/pytest-telegram
|
3e1fbf46c30eda0366060c897367e4f47cd48bf1
|
[
"MIT"
] | 11
|
2020-12-06T00:35:45.000Z
|
2020-12-10T20:19:08.000Z
|
tests/test_plugin.py
|
rad96/pytest-telegram
|
3e1fbf46c30eda0366060c897367e4f47cd48bf1
|
[
"MIT"
] | null | null | null |
import mock
import pytest
def test_pytest_telegram(testdir):
"""Make sure plugin works."""
testdir.makepyfile(
"""
import pytest
def test_pass():
assert 1 == 1
def test_fail():
assert 1 == 2
@pytest.mark.skip()
def test_skip():
assert 1 == 1
def test_error(test):
assert 1 == ""
@pytest.mark.xfail()
def test_xfail():
assert 1 == 2
@pytest.mark.xfail()
def test_xpass():
assert 1 == 1
"""
)
telegram_token = 'Token'
telegram_chat_id = '130559633'
telegram_report_url = 'http://report_link.com'
fail_sticker_id = 'CAACAgIAAxkBAAMIX8rohSxoNbodB1D38VZx9HI2CDwAAmIBAAIQGm0izcITZBkXtbceBA'
expected_text = 'Passed=1 Failed=1 Skipped=1 Error=1 XFailed=1 XPassed=1' \
'\nTime taken: 00:00:00' \
'\nhttp://report_link.com\n'
with mock.patch('requests.post') as mock_post:
testdir.runpytest('--telegram_id', telegram_chat_id,
'--telegram_token', telegram_token,
'--telegram_report_url', telegram_report_url)
sticker_request = mock_post.mock_calls[0]
sticker_called_url = sticker_request[1][0]
send_sticker = sticker_request[2]['json']['sticker']
message_request = mock_post.mock_calls[4]
message_called_url = message_request[1][0]
message_text = message_request[2]['json']['text']
message_chat_id = message_request[2]['json']['chat_id']
assert sticker_called_url == f'https://api.telegram.org/bot{telegram_token}/sendSticker'
assert message_called_url == f'https://api.telegram.org/bot{telegram_token}/sendMessage'
assert message_text == expected_text
assert message_chat_id == telegram_chat_id
assert send_sticker == fail_sticker_id
def test_success_sticker_telegram(testdir):
"""Make sure plugin sends success sticker."""
testdir.makepyfile(
"""
import pytest
def test_pass():
assert 1 == 1
"""
)
telegram_token = 'Token'
telegram_chat_id = '130559633'
telegram_report_url = 'http://report_link.com'
success_sticker_id = 'CAACAgIAAxkBAAMHX8roD4u8f7DCsRobma1dZNuCeBwAAlkBAAIQGm0iHZVsOV_OQB8eBA'
expected_text = 'Passed=1 Failed=0 Skipped=0 Error=0 XFailed=0 XPassed=0' \
'\nTime taken: 00:00:00' \
'\nhttp://report_link.com\n'
with mock.patch('requests.post') as mock_post:
testdir.runpytest('--telegram_id', telegram_chat_id,
'--telegram_token', telegram_token,
'--telegram_report_url', telegram_report_url)
sticker_request = mock_post.mock_calls[0]
sticker_called_url = sticker_request[1][0]
send_sticker = sticker_request[2]['json']['sticker']
message_request = mock_post.mock_calls[4]
message_called_url = message_request[1][0]
message_text = message_request[2]['json']['text']
message_chat_id = message_request[2]['json']['chat_id']
assert sticker_called_url == f'https://api.telegram.org/bot{telegram_token}/sendSticker'
assert message_called_url == f'https://api.telegram.org/bot{telegram_token}/sendMessage'
assert message_text == expected_text
assert message_chat_id == telegram_chat_id
assert send_sticker == success_sticker_id
def test_list_failed_telegram(testdir):
"""Make sure plugin sends failed tests."""
testdir.makepyfile(
"""
import pytest
def test_fail():
assert 1 != 1
"""
)
telegram_token = 'Token'
telegram_chat_id = '130559633'
telegram_report_url = 'http://report_link.com'
fail_sticker_id = 'CAACAgIAAxkBAAMIX8rohSxoNbodB1D38VZx9HI2CDwAAmIBAAIQGm0izcITZBkXtbceBA'
expected_text = 'Passed=0 Failed=1 Skipped=0 Error=0 XFailed=0 XPassed=0' \
'\nTime taken: 00:00:00' \
'\nhttp://report_link.com\n' \
'\nFailed tests:' \
'\ntest_list_failed_telegram.py::test_fail\n'
with mock.patch('requests.post') as mock_post:
testdir.runpytest('--telegram_id', telegram_chat_id,
'--telegram_token', telegram_token,
'--telegram_report_url', telegram_report_url,
'--telegram_list_failed')
sticker_request = mock_post.mock_calls[0]
sticker_called_url = sticker_request[1][0]
send_sticker = sticker_request[2]['json']['sticker']
message_request = mock_post.mock_calls[4]
message_called_url = message_request[1][0]
message_text = message_request[2]['json']['text']
message_chat_id = message_request[2]['json']['chat_id']
assert sticker_called_url == f'https://api.telegram.org/bot{telegram_token}/sendSticker'
assert message_called_url == f'https://api.telegram.org/bot{telegram_token}/sendMessage'
assert message_text == expected_text
assert message_chat_id == telegram_chat_id
assert send_sticker == fail_sticker_id
def test_list_failed_with_dots_telegram(testdir):
"""Make sure plugin sends limited amount of failed tests."""
testdir.makepyfile(
"""
import pytest
@pytest.mark.parametrize('id', range(10))
def test_fail(id):
assert 1 != 1
"""
)
telegram_token = 'Token'
telegram_chat_id = '130559633'
telegram_report_url = 'http://report_link.com'
fail_sticker_id = 'CAACAgIAAxkBAAMIX8rohSxoNbodB1D38VZx9HI2CDwAAmIBAAIQGm0izcITZBkXtbceBA'
expected_text = 'Passed=0 Failed=10 Skipped=0 Error=0 XFailed=0 XPassed=0' \
'\nTime taken: 00:00:00' \
'\nhttp://report_link.com\n' \
'\nFailed tests:' \
'\ntest_list_failed_with_dots_telegram.py::test_fail[0]' \
'\ntest_list_failed_with_dots_telegram.py::test_fail[1]' \
'\ntest_list_failed_with_dots_telegram.py::test_fail[2]' \
'\n...'
with mock.patch('requests.post') as mock_post:
testdir.runpytest('--telegram_id', telegram_chat_id,
'--telegram_token', telegram_token,
'--telegram_report_url', telegram_report_url,
'--telegram_list_failed')
sticker_request = mock_post.mock_calls[0]
sticker_called_url = sticker_request[1][0]
send_sticker = sticker_request[2]['json']['sticker']
message_request = mock_post.mock_calls[4]
message_called_url = message_request[1][0]
message_text = message_request[2]['json']['text']
message_chat_id = message_request[2]['json']['chat_id']
assert sticker_called_url == f'https://api.telegram.org/bot{telegram_token}/sendSticker'
assert message_called_url == f'https://api.telegram.org/bot{telegram_token}/sendMessage'
assert message_text == expected_text
assert message_chat_id == telegram_chat_id
assert send_sticker == fail_sticker_id
def test_time_taken(testdir):
"""Make sure plugin sends limited amount of failed tests."""
testdir.makepyfile(
"""
import pytest
import time
def test_fail():
time.sleep(1)
assert 1 != 1
"""
)
telegram_token = 'Token'
telegram_chat_id = '130559633'
telegram_report_url = 'http://report_link.com'
fail_sticker_id = 'CAACAgIAAxkBAAMIX8rohSxoNbodB1D38VZx9HI2CDwAAmIBAAIQGm0izcITZBkXtbceBA'
expected_text = 'Passed=0 Failed=1 Skipped=0 Error=0 XFailed=0 XPassed=0' \
'\nTime taken: 00:00:01' \
'\nhttp://report_link.com\n'
with mock.patch('requests.post') as mock_post:
testdir.runpytest('--telegram_id', telegram_chat_id,
'--telegram_token', telegram_token,
'--telegram_report_url', telegram_report_url)
sticker_request = mock_post.mock_calls[0]
sticker_called_url = sticker_request[1][0]
send_sticker = sticker_request[2]['json']['sticker']
message_request = mock_post.mock_calls[4]
message_called_url = message_request[1][0]
message_text = message_request[2]['json']['text']
message_chat_id = message_request[2]['json']['chat_id']
assert sticker_called_url == f'https://api.telegram.org/bot{telegram_token}/sendSticker'
assert message_called_url == f'https://api.telegram.org/bot{telegram_token}/sendMessage'
assert message_text == expected_text
assert message_chat_id == telegram_chat_id
assert send_sticker == fail_sticker_id
| 39.087719
| 97
| 0.628254
| 1,029
| 8,912
| 5.123421
| 0.082604
| 0.034143
| 0.039833
| 0.030349
| 0.935319
| 0.903263
| 0.873103
| 0.873103
| 0.873103
| 0.852618
| 0
| 0.032013
| 0.260435
| 8,912
| 228
| 98
| 39.087719
| 0.767865
| 0.023564
| 0
| 0.836879
| 0
| 0
| 0.30305
| 0.090593
| 0
| 0
| 0
| 0
| 0.177305
| 1
| 0.035461
| false
| 0.035461
| 0.014184
| 0
| 0.049645
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ef953047179fd7b98c1cbf2c6b4cae1f4b186e5c
| 173
|
py
|
Python
|
mythril/laser/ethereum/transaction/__init__.py
|
yrashk/mythril
|
0cea8f562726da468ab4761ff1ff3746ab0d747a
|
[
"MIT"
] | 1
|
2018-09-07T10:17:35.000Z
|
2018-09-07T10:17:35.000Z
|
mythril/laser/ethereum/transaction/__init__.py
|
yrashk/mythril
|
0cea8f562726da468ab4761ff1ff3746ab0d747a
|
[
"MIT"
] | null | null | null |
mythril/laser/ethereum/transaction/__init__.py
|
yrashk/mythril
|
0cea8f562726da468ab4761ff1ff3746ab0d747a
|
[
"MIT"
] | 1
|
2018-06-14T08:36:03.000Z
|
2018-06-14T08:36:03.000Z
|
from mythril.laser.ethereum.transaction.transaction_models import *
from mythril.laser.ethereum.transaction.symbolic import execute_message_call, execute_contract_creation
| 57.666667
| 104
| 0.884393
| 21
| 173
| 7.047619
| 0.619048
| 0.148649
| 0.216216
| 0.324324
| 0.472973
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.057803
| 173
| 2
| 105
| 86.5
| 0.907975
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
eff8387559d57b894ff6cf641e0a956fe92744bf
| 9,860
|
py
|
Python
|
src/architectures.py
|
axemasquelin/WaveletsDNN
|
e9b1ca426aa36733194304d775142e3e84c268c4
|
[
"MIT"
] | null | null | null |
src/architectures.py
|
axemasquelin/WaveletsDNN
|
e9b1ca426aa36733194304d775142e3e84c268c4
|
[
"MIT"
] | null | null | null |
src/architectures.py
|
axemasquelin/WaveletsDNN
|
e9b1ca426aa36733194304d775142e3e84c268c4
|
[
"MIT"
] | null | null | null |
# coding: utf-8
""" MIT License """
'''
Project: Wavelet DNN
Authors: Axel Masquelin
Description:
'''
# Libraries
# ---------------------------------------------------------------------------- #
import torchvision.models as models
import torch.nn as nn
import torchvision
import torch
import preprocessing as pre
import numpy as np
import utils
import cv2
# ---------------------------------------------------------------------------- #
class Wave_1(nn.Module):
def __init__(self):
super(Wave_1, self).__init__()
self.avgpool = nn.AdaptiveAvgPool2d((6,6))
self.classifier = nn.Sequential(
nn.Dropout(),
nn.Linear(4*6*6, 150),
nn.ReLU(inplace=True),
nn.Dropout(),
nn.Linear(150, 50),
nn.ReLU(inplace=True),
nn.Linear(50, 2),
)
def forward(self, x, device):
x = pre.singlelvl_wd(x, device, int(x.size()[2]/2))
x = self.avgpool(x)
x = torch.flatten(x, 1)
x = self.classifier(x)
return x
class incept_wave2(nn.Module):
def __init__(self):
super(incept_wave2, self).__init__()
self.nonlin = nn.ReLU(inplace = True)
self.avgpool = nn.AdaptiveAvgPool2d((6,6))
self.classifier = nn.Sequential(
nn.Dropout(),
nn.Linear(8*6*6, 150),
nn.ReLU(inplace=True),
nn.Dropout(),
nn.Linear(150, 50),
nn.ReLU(inplace=True),
nn.Linear(50, 2),
)
def forward(self, x, device):
LL, x1 = pre.multiscale_wd(x, device, int(x.size()[2]/2))
LL, x2 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
x = utils.tensor_cat(x1,x2, padding = False)
x = self.avgpool(x)
x = torch.flatten(x, 1)
x = self.classifier(x)
return x
class incept_wave3(nn.Module):
def __init__(self):
super(incept_wave3, self).__init__()
self.nonlin = nn.ReLU(inplace = True)
self.avgpool = nn.AdaptiveAvgPool2d((6,6))
self.classifier = nn.Sequential(
nn.Dropout(),
nn.Linear(12*6*6, 150),
nn.ReLU(inplace=True),
nn.Dropout(),
nn.Linear(150, 50),
nn.ReLU(inplace=True),
nn.Linear(50, 2),
)
def forward(self, x, device):
LL, x1 = pre.multiscale_wd(x, device, int(x.size()[2]/2))
LL, x2 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
LL, x3 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
x = utils.tensor_cat(x1,x2,x3, padding = False)
x = self.avgpool(x)
x = torch.flatten(x, 1)
x = self.classifier(x)
return x
class incept_wave4(nn.Module):
def __init__(self):
super(incept_wave4, self).__init__()
self.nonlin = nn.ReLU(inplace = True)
self.avgpool = nn.AdaptiveAvgPool2d((6,6))
self.classifier = nn.Sequential(
nn.Dropout(),
nn.Linear(16*6*6, 150),
nn.ReLU(inplace=True),
nn.Dropout(),
nn.Linear(150, 50),
nn.ReLU(inplace=True),
nn.Linear(50, 2),
)
def forward(self, x, device):
LL, x1 = pre.multiscale_wd(x, device, int(x.size()[2]/2))
LL, x2 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
LL, x3 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
LL, x4 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
x = utils.tensor_cat(x1,x2,x3,x4, padding = False)
x = self.avgpool(x)
x = torch.flatten(x, 1)
x = self.classifier(x)
return x
class incept_wave5(nn.Module):
def __init__(self):
super(incept_wave5, self).__init__()
self.nonlin = nn.ReLU(inplace = True)
self.avgpool = nn.AdaptiveAvgPool2d((6,6))
self.classifier = nn.Sequential(
nn.Dropout(),
nn.Linear(20*6*6, 150),
nn.ReLU(inplace=True),
nn.Dropout(),
nn.Linear(150, 50),
nn.ReLU(inplace=True),
nn.Linear(50, 2),
)
def forward(self, x, device):
LL, x1 = pre.multiscale_wd(x, device, int(x.size()[2]/2))
LL, x2 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
LL, x3 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
LL, x4 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
LL, x5 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
x = utils.tensor_cat(x1,x2,x3,x4,x5, padding = False)
x = self.avgpool(x)
x = torch.flatten(x, 1)
x = self.classifier(x)
return x
class incept_wave6(nn.Module):
def __init__(self):
super(incept_wave6, self).__init__()
self.nonlin = nn.ReLU(inplace = True)
self.avgpool = nn.AdaptiveAvgPool2d((6,6))
self.classifier = nn.Sequential(
nn.Dropout(),
nn.Linear(24*6*6, 150),
nn.ReLU(inplace=True),
nn.Dropout(),
nn.Linear(150, 50),
nn.ReLU(inplace=True),
nn.Linear(50, 2),
)
def forward(self, x, device):
LL, x1 = pre.multiscale_wd(x, device, int(x.size()[2]/2))
LL, x2 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
LL, x3 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
LL, x4 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
LL, x5 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
LL, x6 = pre.multiscale_wd(LL, device, int(LL.size()[2]/2))
x = utils.tensor_cat(x1,x2,x3,x4,x5,x6, padding = False)
x = self.avgpool(x)
x = torch.flatten(x, 1)
x = self.classifier(x)
return x
class Conv_1 (nn.Module):
def __init__(self):
super(Conv_1, self).__init__()
self.features = nn.Sequential(
nn.Conv2d(1, 4, kernel_size= 2, stride= 2, padding = 1),
nn.ReLU(inplace = True),
nn.MaxPool2d(kernel_size = 3, stride = 2),
)
self.avgpool = nn.AdaptiveAvgPool2d((6,6))
self.classifier = nn.Sequential(
nn.Dropout(),
nn.Linear(4*6*6, 150),
nn.ReLU(inplace=True),
nn.Dropout(),
nn.Linear(150, 50),
nn.ReLU(inplace=True),
nn.Linear(50, 2),
)
def forward(self, x, device):
# print(x.size())
x = self.features(x)
# print(x.size())
x = self.avgpool(x)
x = torch.flatten(x, 1)
x = self.classifier(x)
return x
class incept_conv(nn.Module):
def __init__(self):
super(incept_conv, self).__init__()
self.block2x2 = nn.Sequential(
nn.Conv2d(1, 4, kernel_size= 2, stride= 2, padding = 0, dilation = 1),
# nn.Conv2d(1, 4, kernel_size= 3, stride= 2, padding = 1, dilation = 1),
nn.ReLU(inplace = True),
# nn.MaxPool2d(kernel_size = 3, stride = 2),
)
self.block3x3 = nn.Sequential(
nn.Conv2d(1, 4, kernel_size= 4, stride= 4, padding = 2, dilation = 2),
# nn.Conv2d(1, 4, kernel_size= 5, stride= 2, padding = 2, dilation = 1),
nn.ReLU(inplace = True),
# nn.MaxPool2d(kernel_size = 4, stride = 2),
)
self.block5x5 = nn.Sequential(
nn.Conv2d(1, 4, kernel_size= 8, stride= 8, padding = 8, dilation = 3),
# nn.Conv2d(1, 4, kernel_size= 7, stride= 2, padding = 3, dilation = 1),
nn.ReLU(inplace = True),
# nn.MaxPool2d(kernel_size = 8, stride = 2),
)
self.avgpool = nn.AdaptiveAvgPool2d((6,6))
self.classifier = nn.Sequential(
nn.Dropout(),
nn.Linear(12*6*6, 150),
nn.ReLU(inplace=True),
nn.Dropout(),
nn.Linear(150, 50),
nn.ReLU(inplace=True),
nn.Linear(50, 2),
)
def forward(self, x, device):
x2 = self.block2x2(x)
x3 = self.block3x3(x)
x5 = self.block5x5(x)
x = utils.tensor_cat(x2,x3,x5, padding = False)
x = self.avgpool(x)
x = torch.flatten(x, 1)
x = self.classifier(x)
return x
class incept_dilationconv(nn.Module):
def __init__(self):
super(incept_dilationconv, self).__init__()
self.block2x2 = nn.Sequential(
nn.Conv2d(1, 4, kernel_size= 2, stride= 2, padding = 0, dilation = 1),
nn.ReLU(inplace = True),
# nn.MaxPool2d(kernel_size = 3, stride = 2),
)
self.block3x3 = nn.Sequential(
nn.Conv2d(1, 4, kernel_size= 2, stride= 4, padding = 1, dilation = 2),
nn.ReLU(inplace = True),
# nn.MaxPool2d(kernel_size = 4, stride = 2),
)
self.block5x5 = nn.Sequential(
nn.Conv2d(1, 4, kernel_size= 2, stride= 8, padding = 2, dilation = 4),
nn.ReLU(inplace = True),
# nn.MaxPool2d(kernel_size = 8, stride = 2),
)
self.avgpool = nn.AdaptiveAvgPool2d((6,6))
self.classifier = nn.Sequential(
nn.Dropout(),
nn.Linear(12*6*6, 150),
nn.ReLU(inplace=True),
nn.Dropout(),
nn.Linear(150, 50),
nn.ReLU(inplace=True),
nn.Linear(50, 2),
)
def forward(self, x, device):
x2 = self.block2x2(x)
x3 = self.block3x3(x)
x5 = self.block5x5(x)
x = utils.tensor_cat(x2,x3,x5, padding = False)
x = self.avgpool(x)
x = torch.flatten(x, 1)
x = self.classifier(x)
return x
| 31.909385
| 84
| 0.513692
| 1,276
| 9,860
| 3.863636
| 0.074451
| 0.036511
| 0.079108
| 0.103448
| 0.897769
| 0.891075
| 0.87931
| 0.826572
| 0.822718
| 0.822718
| 0
| 0.058912
| 0.325152
| 9,860
| 308
| 85
| 32.012987
| 0.681996
| 0.072515
| 0
| 0.74477
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.075314
| false
| 0
| 0.033473
| 0
| 0.1841
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
4bd284fd198fa6cebd148b6dbfe8086c8993947e
| 38
|
py
|
Python
|
aula11cores.py
|
mario-nobre/python-guanabara
|
2048d833f61c8545ced2163ae1b6b0d844494ada
|
[
"MIT"
] | null | null | null |
aula11cores.py
|
mario-nobre/python-guanabara
|
2048d833f61c8545ced2163ae1b6b0d844494ada
|
[
"MIT"
] | null | null | null |
aula11cores.py
|
mario-nobre/python-guanabara
|
2048d833f61c8545ced2163ae1b6b0d844494ada
|
[
"MIT"
] | null | null | null |
print('\33[1;30;43mOlá, mundo!\33[m')
| 19
| 37
| 0.631579
| 8
| 38
| 3
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 0.052632
| 38
| 1
| 38
| 38
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
ef24051d2041cdd1cf75ecbeaed36bf8b2cc0807
| 14,328
|
py
|
Python
|
tests/ut/python/adv_robustness/attacks/test_iterative_gradient_method.py
|
hboshnak/mindarmour
|
0609a4eaea875a84667bed279add9305752880cc
|
[
"Apache-2.0"
] | null | null | null |
tests/ut/python/adv_robustness/attacks/test_iterative_gradient_method.py
|
hboshnak/mindarmour
|
0609a4eaea875a84667bed279add9305752880cc
|
[
"Apache-2.0"
] | null | null | null |
tests/ut/python/adv_robustness/attacks/test_iterative_gradient_method.py
|
hboshnak/mindarmour
|
0609a4eaea875a84667bed279add9305752880cc
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2019 Huawei Technologies Co., Ltd
#
# 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.
"""
Iterative-gradient Attack test.
"""
import gc
import numpy as np
import pytest
from mindspore.ops import operations as P
from mindspore.nn import Cell
from mindspore import context
from mindspore.nn import SoftmaxCrossEntropyWithLogits
from mindarmour.adv_robustness.attacks import BasicIterativeMethod
from mindarmour.adv_robustness.attacks import MomentumIterativeMethod
from mindarmour.adv_robustness.attacks import ProjectedGradientDescent
from mindarmour.adv_robustness.attacks import IterativeGradientMethod
from mindarmour.adv_robustness.attacks import DiverseInputIterativeMethod
from mindarmour.adv_robustness.attacks import MomentumDiverseInputIterativeMethod
# for user
class Net(Cell):
"""
Construct the network of target model.
Examples:
>>> net = Net()
"""
def __init__(self):
super(Net, self).__init__()
self._softmax = P.Softmax()
def construct(self, inputs):
"""
Construct network.
Args:
inputs (Tensor): Input data.
"""
out = self._softmax(inputs)
return out
@pytest.mark.level0
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_basic_iterative_method_ascend():
"""
Feature: Basic iterative method unit test for ascend.
Description: Given multiple images, we want to make sure the adversarial examples
generated are different from the images
Expectation: input_np != ms_adv_x
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
for i in range(5):
net = Net()
attack = BasicIterativeMethod(net, nb_iter=i + 1, loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
ms_adv_x = attack.generate(input_np, label)
assert np.any(
ms_adv_x != input_np), 'Basic iterative method: generate value' \
' must not be equal to original value.'
del input_np, label, ms_adv_x
gc.collect()
@pytest.mark.level0
@pytest.mark.platform_x86_cpu
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_basic_iterative_method_cpu():
"""
Feature: Basic iterative method unit test for cpu.
Description: Given multiple images, we want to make sure the adversarial examples
generated are different from the images
Expectation: input_np != ms_adv_x
"""
context.set_context(mode=context.GRAPH_MODE, device_target="CPU")
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
for i in range(5):
net = Net()
attack = BasicIterativeMethod(net, nb_iter=i + 1, loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
ms_adv_x = attack.generate(input_np, label)
assert np.any(
ms_adv_x != input_np), 'Basic iterative method: generate value' \
' must not be equal to original value.'
del input_np, label, ms_adv_x
gc.collect()
@pytest.mark.level0
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_momentum_iterative_method_ascend():
"""
Feature: Momentum iterative method unit test for ascend
Description: Given multiple images, we want to make sure the adversarial examples
generated are different from the images
Expectation: input_np != ms_adv_x
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
for i in range(5):
attack = MomentumIterativeMethod(Net(), nb_iter=i + 1, loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
ms_adv_x = attack.generate(input_np, label)
assert np.any(ms_adv_x != input_np), 'Momentum iterative method: generate' \
' value must not be equal to' \
' original value.'
del input_np, label, ms_adv_x
gc.collect()
@pytest.mark.level0
@pytest.mark.platform_x86_cpu
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_momentum_iterative_method_cpu():
"""
Feature: Momentum iterative method unit test for cpu
Description: Given multiple images, we want to make sure the adversarial examples
generated are different from the images
Expectation: input_np != ms_adv_x
"""
context.set_context(mode=context.GRAPH_MODE, device_target="CPU")
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
for i in range(5):
attack = MomentumIterativeMethod(Net(), nb_iter=i + 1, loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
ms_adv_x = attack.generate(input_np, label)
assert np.any(ms_adv_x != input_np), 'Momentum iterative method: generate' \
' value must not be equal to' \
' original value.'
del input_np, label, ms_adv_x
gc.collect()
@pytest.mark.level0
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_projected_gradient_descent_method_ascend():
"""
Feature: Projected gradient descent method unit test for ascend
Description: Given multiple images, we want to make sure the adversarial examples
generated are different from the images
Expectation: input_np != ms_adv_x
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
for i in range(5):
attack = ProjectedGradientDescent(Net(), nb_iter=i + 1, loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
ms_adv_x = attack.generate(input_np, label)
assert np.any(
ms_adv_x != input_np), 'Projected gradient descent method: ' \
'generate value must not be equal to' \
' original value.'
del input_np, label, ms_adv_x
gc.collect()
@pytest.mark.level0
@pytest.mark.platform_x86_cpu
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_projected_gradient_descent_method_cpu():
"""
Feature: Projected gradient descent method unit test for cpu
Description: Given multiple images, we want to make sure the adversarial examples
generated are different from the images
Expectation: input_np != ms_adv_x
"""
context.set_context(mode=context.GRAPH_MODE, device_target="CPU")
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
for i in range(5):
attack = ProjectedGradientDescent(Net(), nb_iter=i + 1, loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
ms_adv_x = attack.generate(input_np, label)
assert np.any(
ms_adv_x != input_np), 'Projected gradient descent method: ' \
'generate value must not be equal to' \
' original value.'
del input_np, label, ms_adv_x
gc.collect()
@pytest.mark.level0
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_diverse_input_iterative_method_ascend():
"""
Feature: Diverse input iterative method unit test for ascend
Description: Given multiple images, we want to make sure the adversarial examples
generated are different from the images
Expectation: input_np != ms_adv_x
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
attack = DiverseInputIterativeMethod(Net(), loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
ms_adv_x = attack.generate(input_np, label)
assert np.any(ms_adv_x != input_np), 'Diverse input iterative method: generate' \
' value must not be equal to' \
' original value.'
del input_np, label, ms_adv_x
gc.collect()
@pytest.mark.level0
@pytest.mark.platform_x86_cpu
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_diverse_input_iterative_method_cpu():
"""
Feature: Diverse input iterative method unit test for cpu
Description: Given multiple images, we want to make sure the adversarial examples
generated are different from the images
Expectation: input_np != ms_adv_x
"""
context.set_context(mode=context.GRAPH_MODE, device_target="CPU")
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
attack = DiverseInputIterativeMethod(Net(), loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
ms_adv_x = attack.generate(input_np, label)
assert np.any(ms_adv_x != input_np), 'Diverse input iterative method: generate' \
' value must not be equal to' \
' original value.'
del input_np, label, ms_adv_x
gc.collect()
@pytest.mark.level0
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_momentum_diverse_input_iterative_method_ascend():
"""
Feature: Momentum diverse input iterative method unit test for ascend
Description: Given multiple images, we want to make sure the adversarial examples
generated are different from the images
Expectation: input_np != ms_adv_x
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
attack = MomentumDiverseInputIterativeMethod(Net(), loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
ms_adv_x = attack.generate(input_np, label)
assert np.any(ms_adv_x != input_np), 'Momentum diverse input iterative method: ' \
'generate value must not be equal to' \
' original value.'
del input_np, label, ms_adv_x
gc.collect()
@pytest.mark.level0
@pytest.mark.platform_x86_cpu
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_momentum_diverse_input_iterative_method_cpu():
"""
Feature: Momentum diverse input iterative method unit test for cpu
Description: Given multiple images, we want to make sure the adversarial examples
generated are different from the images
Expectation: input_np != ms_adv_x
"""
context.set_context(mode=context.GRAPH_MODE, device_target="CPU")
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
attack = MomentumDiverseInputIterativeMethod(Net(), loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
ms_adv_x = attack.generate(input_np, label)
assert np.any(ms_adv_x != input_np), 'Momentum diverse input iterative method: ' \
'generate value must not be equal to' \
' original value.'
del input_np, label, ms_adv_x
gc.collect()
@pytest.mark.level0
@pytest.mark.platform_arm_ascend_training
@pytest.mark.platform_x86_ascend_training
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_error_ascend():
"""
Feature: test error for ascend
Description: test error
Expectation: error detected or attach.generate works properly
"""
context.set_context(mode=context.GRAPH_MODE, device_target="Ascend")
attack = IterativeGradientMethod(Net(), bounds=(0.0, 1.0), loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
with pytest.raises(NotImplementedError):
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
assert attack.generate(input_np, label)
del input_np, label
gc.collect()
@pytest.mark.level0
@pytest.mark.platform_x86_cpu
@pytest.mark.env_card
@pytest.mark.component_mindarmour
def test_error_cpu():
"""
Feature: test error for cpu
Description: test error
Expectation: error detected or attach.generate works properly
"""
context.set_context(mode=context.GRAPH_MODE, device_target="CPU")
attack = IterativeGradientMethod(Net(), bounds=(0.0, 1.0), loss_fn=SoftmaxCrossEntropyWithLogits(sparse=False))
with pytest.raises(NotImplementedError):
input_np = np.asarray([[0.1, 0.2, 0.7]], np.float32)
label = np.asarray([2], np.int32)
label = np.eye(3)[label].astype(np.float32)
assert attack.generate(input_np, label)
del input_np, label
gc.collect()
| 40.134454
| 116
| 0.680276
| 1,885
| 14,328
| 4.995756
| 0.098674
| 0.041627
| 0.025486
| 0.028034
| 0.88542
| 0.884464
| 0.857067
| 0.851333
| 0.843262
| 0.840076
| 0
| 0.020798
| 0.221454
| 14,328
| 356
| 117
| 40.247191
| 0.823398
| 0.226689
| 0
| 0.857143
| 0
| 0
| 0.082584
| 0
| 0
| 0
| 0
| 0
| 0.053571
| 1
| 0.0625
| false
| 0
| 0.058036
| 0
| 0.129464
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
ef5cbe1117b36804aeaea897f8915ff559ab6958
| 15,844
|
py
|
Python
|
discO/plugin/gala/tests/test_wrapper.py
|
GalOrrery/discO
|
3b17b6ead65908c053b09a1a967e8a1819a06209
|
[
"BSD-3-Clause"
] | 1
|
2020-11-17T14:40:51.000Z
|
2020-11-17T14:40:51.000Z
|
discO/plugin/gala/tests/test_wrapper.py
|
nstarman/discO
|
3b17b6ead65908c053b09a1a967e8a1819a06209
|
[
"BSD-3-Clause"
] | 45
|
2020-11-17T14:30:13.000Z
|
2021-02-26T18:47:37.000Z
|
discO/plugin/gala/tests/test_wrapper.py
|
nstarman/discO
|
3b17b6ead65908c053b09a1a967e8a1819a06209
|
[
"BSD-3-Clause"
] | null | null | null |
# -*- coding: utf-8 -*-
"""Testing :mod:`~discO.plugin.gala.wrapper`."""
__all__ = [
"Test_GalaPotentialWrapperMeta",
"Test_GalaPotentialWrapper",
]
##############################################################################
# IMPORTS
# BUILT-IN
from abc import abstractmethod
# THIRD PARTY
import astropy.coordinates as coord
import astropy.units as u
import gala.potential as gpot
import numpy as np
import pytest
from gala.units import galactic
# PROJECT-SPECIFIC
from discO.core.tests.test_wrapper import (
Test_PotentialWrapper as PotentialWrapper_Test,
)
from discO.core.tests.test_wrapper import (
Test_PotentialWrapperMeta as PotentialWrapperMeta_Test,
)
from discO.plugin.gala import wrapper
from discO.utils import resolve_framelike, vectorfield
##############################################################################
# TESTS
##############################################################################
class Test_GalaPotentialWrapperMeta(
PotentialWrapperMeta_Test,
obj=wrapper.GalaPotentialMeta,
):
@classmethod
def setup_class(cls):
"""Setup fixtures for testing."""
super().setup_class()
# now gala stuff
# override super
cls.potential = gpot.KeplerPotential(
m=1 * u.solMass,
units=galactic,
)
# /def
#################################################################
# Method Tests
def test_total_mass(self):
"""Test method ``total_mass``."""
# TODO! upstream fix
assert np.isnan(self.subclass.total_mass(self.potential))
# assert np.allclose(
# self.subclass.total_mass(self.potential),
# 1 * u.solMass,
# )
# /def
def test_density(self):
"""Test method ``density``."""
# ---------------
# when there isn't a frame
with pytest.raises(TypeError, match="must have a frame."):
self.subclass.density(self.potential, self.points)
# ---------------
# basic
points, values = self.subclass.density(
self.potential,
self.points.data,
)
# the points are unchanged
assert points is self.points.data
# check data types
assert isinstance(points, coord.BaseRepresentation)
# and on the values
assert u.allclose(values, [0.0, 0.0, 0.0] * u.solMass / u.pc ** 3)
# ---------------
# frame
# test the different inputs
for frame in (
coord.Galactocentric,
coord.Galactocentric(),
"galactocentric",
):
points, values = self.subclass.density(
self.potential,
self.points,
frame=frame,
)
assert isinstance(points, coord.SkyCoord)
assert isinstance(points.frame, resolve_framelike(frame).__class__)
assert u.allclose(values, [0.0, 0.0, 0.0] * u.solMass / u.pc ** 3)
# TODO! test the specific values
# ---------------
# representation_type
points, values = self.subclass.density(
self.potential,
self.points,
frame=self.points.frame.replicate_without_data(),
representation_type=coord.CartesianRepresentation,
)
assert isinstance(points, coord.SkyCoord)
assert isinstance(points.frame, self.frame)
assert isinstance(points.data, coord.CartesianRepresentation)
assert u.allclose(values, [0.0, 0.0, 0.0] * u.solMass / u.pc ** 3)
# TODO! test the specific values
# /def
def test_potential(self):
"""Test method ``potential``."""
# ---------------
# when there isn't a frame
with pytest.raises(TypeError, match="must have a frame."):
self.subclass.potential(self.potential, self.points)
# ---------------
# basic
points, values = self.subclass.potential(
self.potential,
self.points.data,
)
# the points are unchanged
assert points is self.points.data
# check data types
assert isinstance(points, coord.BaseRepresentation)
# and on the values
assert isinstance(values, u.Quantity)
assert values.unit == u.kpc ** 2 / u.Myr ** 2
# TODO! test the specific values
# ---------------
# frame
# test the different inputs
for frame in (
coord.Galactocentric,
coord.Galactocentric(),
"galactocentric",
):
points, values = self.subclass.potential(
self.potential,
self.points,
frame=frame,
)
assert isinstance(points, coord.SkyCoord)
assert isinstance(points.frame, resolve_framelike(frame).__class__)
assert isinstance(values, u.Quantity)
assert values.unit == u.kpc ** 2 / u.Myr ** 2
# TODO! test the specific values
# ---------------
# representation_type
points, values = self.subclass.potential(
self.potential,
self.points,
frame=self.points.frame.replicate_without_data(),
representation_type=coord.CartesianRepresentation,
)
assert isinstance(points, coord.SkyCoord)
assert isinstance(points.frame, self.frame)
assert isinstance(points.data, coord.CartesianRepresentation)
assert isinstance(values, u.Quantity)
assert values.unit == u.kpc ** 2 / u.Myr ** 2
# TODO! test the specific values
# /def
def test_specific_force(self):
"""Test method ``specific_force``."""
# ---------------
# when there isn't a frame
with pytest.raises(TypeError, match="must have a frame."):
self.subclass.specific_force(self.potential, self.points)
# ---------------
# basic
vf = self.subclass.specific_force(self.potential, self.points.data)
assert isinstance(vf, vectorfield.BaseVectorField)
assert isinstance(vf.points, coord.CartesianRepresentation)
assert hasattr(vf, "vf_x")
assert hasattr(vf, "vf_y")
assert hasattr(vf, "vf_z")
assert vf.frame is None
# TODO! test the specific values
# ---------------
# frame
# test the different inputs
for frame in (
coord.Galactocentric,
coord.Galactocentric(),
"galactocentric",
):
vf = self.subclass.specific_force(
self.potential,
self.points,
frame=frame,
)
assert isinstance(vf, vectorfield.BaseVectorField)
assert isinstance(vf.points, coord.CartesianRepresentation)
assert hasattr(vf, "vf_x")
assert hasattr(vf, "vf_y")
assert hasattr(vf, "vf_z")
assert isinstance(vf.frame, resolve_framelike(frame).__class__)
# TODO! test the specific values
# ---------------
# representation_type
vf = self.subclass.specific_force(
self.potential,
self.points,
frame=self.points.frame.replicate_without_data(),
representation_type=coord.CartesianRepresentation,
)
assert isinstance(vf, vectorfield.BaseVectorField)
assert isinstance(vf.points, coord.CartesianRepresentation)
assert hasattr(vf, "vf_x")
assert hasattr(vf, "vf_y")
assert hasattr(vf, "vf_z")
assert isinstance(vf.frame, self.frame)
# TODO! test the specific values
# /def
def test_acceleration(self):
"""Test method ``acceleration``."""
assert self.subclass.acceleration == self.subclass.specific_force
# /def
#################################################################
# Usage Tests
# /class
#####################################################################
class Test_GalaPotentialWrapper(
PotentialWrapper_Test,
obj=wrapper.GalaPotentialWrapper,
):
@classmethod
def setup_class(cls):
"""Setup fixtures for testing."""
cls.potential = gpot.KeplerPotential(
m=1 * u.solMass,
units=galactic,
)
# set up the rest
super().setup_class()
cls.inst = cls.obj(
cls.potential,
frame="galactocentric",
representation_type="cylindrical",
)
# /def
#################################################################
# Method Tests
def test_total_mass(self):
"""Test method ``total_mass``."""
# TODO! upstream fix
assert np.isnan(self.subclass.total_mass(self.potential))
# assert np.allclose(self.inst.total_mass(), 1 * u.solMass)
# /def
def test_density(self):
"""Test method ``specific_force``."""
# ---------------
# basic
points, values = self.inst.density(self.points.data)
# check data types
assert isinstance(points, self.inst.frame.__class__)
# and on the values
assert u.allclose(values, [0.0, 0.0, 0.0] * u.solMass / u.pc ** 3)
# TODO! test the specific values
# ---------------
# with a frame
points, values = self.inst.density(self.points)
# check data types
assert isinstance(points, coord.SkyCoord)
assert isinstance(points.frame, self.inst.frame.__class__)
# and on the values
assert u.allclose(values, [0.0, 0.0, 0.0] * u.solMass / u.pc ** 3)
# TODO! test the specific values
# ---------------
# can't pass frame
# test the different inputs
with pytest.raises(TypeError, match="keyword argument 'frame'"):
points, values = self.inst.potential(
self.points,
frame=coord.Galactocentric(),
)
# ---------------
# representation_type
points, values = self.inst.density(
self.points,
representation_type=coord.CartesianRepresentation,
)
assert points is not self.points
assert isinstance(points, coord.SkyCoord)
assert isinstance(points.frame, self.inst.frame.__class__)
assert isinstance(points.data, coord.CartesianRepresentation)
assert u.allclose(values, [0.0, 0.0, 0.0] * u.solMass / u.pc ** 3)
# TODO! test the specific values
# /def
def test_potential(self):
"""Test method ``potential``."""
# ---------------
# basic
points, values = self.inst.potential(self.points.data)
# check data types
assert isinstance(points, self.inst.frame.__class__)
# and on the values
assert isinstance(values, u.Quantity)
assert values.unit == u.kpc ** 2 / u.Myr ** 2
# TODO! test the specific values
# ---------------
# with a frame
points, values = self.inst.potential(self.points)
# check data types
assert isinstance(points, coord.SkyCoord)
assert isinstance(points.frame, self.inst.frame.__class__)
# and on the values
assert isinstance(values, u.Quantity)
assert values.unit == u.kpc ** 2 / u.Myr ** 2
# TODO! test the specific values
# ---------------
# can't pass frame
# test the different inputs
with pytest.raises(TypeError, match="keyword argument 'frame'"):
points, values = self.inst.potential(
self.points,
frame=coord.Galactocentric(),
)
# ---------------
# representation_type
points, values = self.inst.potential(
self.points,
representation_type=coord.CartesianRepresentation,
)
assert points is not self.points
assert isinstance(points, coord.SkyCoord)
assert isinstance(points.frame, self.inst.frame.__class__)
assert isinstance(points.data, coord.CartesianRepresentation)
assert isinstance(values, u.Quantity)
assert values.unit == u.kpc ** 2 / u.Myr ** 2
# TODO! test the specific values
# /def
@abstractmethod
def test___call__(self):
"""Test method ``specific_force``."""
# ---------------
# basic
points, values = self.inst(self.points.data)
# check data types
assert isinstance(points, self.inst.frame.__class__)
# and on the values
assert isinstance(values, u.Quantity)
assert values.unit == u.kpc ** 2 / u.Myr ** 2
# ---------------
# with a frame
points, values = self.inst(self.points)
# check data types
assert isinstance(points, coord.SkyCoord)
assert isinstance(points.frame, self.inst.frame.__class__)
# and on the values
assert isinstance(values, u.Quantity)
assert values.unit == u.kpc ** 2 / u.Myr ** 2
# TODO! test the specific values
# ---------------
# can't pass frame
# test the different inputs
with pytest.raises(TypeError, match="keyword argument 'frame'"):
points, values = self.inst(
self.points,
frame=coord.Galactocentric(),
)
# ---------------
# representation_type
points, values = self.inst(
self.points,
representation_type=coord.CartesianRepresentation,
)
assert points is not self.points
assert isinstance(points, coord.SkyCoord)
assert isinstance(points.frame, self.inst.frame.__class__)
assert isinstance(points.data, coord.CartesianRepresentation)
assert isinstance(values, u.Quantity)
assert values.unit == u.kpc ** 2 / u.Myr ** 2
# TODO! test the specific values
# /def
def test_specific_force(self):
"""Test method ``specific_force``."""
# ---------------
# basic
vf = self.inst.specific_force(self.points)
assert isinstance(vf, vectorfield.BaseVectorField)
assert isinstance(vf.points, coord.CylindricalRepresentation)
assert hasattr(vf, "vf_rho")
assert hasattr(vf, "vf_phi")
assert hasattr(vf, "vf_z")
assert vf.vf_rho.unit == u.kpc / u.Myr ** 2
assert isinstance(vf.frame, coord.Galactocentric)
# TODO! test the specific values
# ---------------
# frame
# test the different inputs
with pytest.raises(TypeError, match="keyword argument 'frame'"):
vf = self.inst.specific_force(
self.points,
frame=coord.Galactocentric(),
)
# TODO! test the specific values
# ---------------
# representation_type
vf = self.inst.specific_force(
self.points,
representation_type=coord.CartesianRepresentation,
)
assert isinstance(vf, vectorfield.BaseVectorField)
assert isinstance(vf.points, coord.CartesianRepresentation)
assert hasattr(vf, "vf_x")
assert hasattr(vf, "vf_y")
assert hasattr(vf, "vf_z")
assert vf.vf_x.unit == u.kpc / u.Myr ** 2
assert isinstance(vf.frame, coord.Galactocentric)
# TODO! test the specific values
# /def
@abstractmethod
def test_acceleration(self):
"""Test method ``acceleration``."""
assert self.subclass.acceleration == self.subclass.specific_force
# /def
# /class
##############################################################################
# END
| 29.018315
| 79
| 0.549293
| 1,567
| 15,844
| 5.459477
| 0.089981
| 0.099123
| 0.077148
| 0.042198
| 0.894681
| 0.890006
| 0.885915
| 0.86277
| 0.838223
| 0.791467
| 0
| 0.006012
| 0.296579
| 15,844
| 545
| 80
| 29.07156
| 0.761597
| 0.173567
| 0
| 0.742308
| 0
| 0
| 0.027203
| 0.004385
| 0
| 0
| 0
| 0.001835
| 0.365385
| 1
| 0.05
| false
| 0
| 0.042308
| 0
| 0.1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0880686de97398765f758c0576849e68ebb58032
| 75,846
|
py
|
Python
|
skforecast/model_selection/model_selection.py
|
JavierEscobarOrtiz/skforecast
|
a3af4a1dd4201c582f159d4e3a1734ed6d29b6c5
|
[
"MIT"
] | 1
|
2021-12-01T09:21:21.000Z
|
2021-12-01T09:21:21.000Z
|
skforecast/model_selection/model_selection.py
|
JavierEscobarOrtiz/skforecast
|
a3af4a1dd4201c582f159d4e3a1734ed6d29b6c5
|
[
"MIT"
] | null | null | null |
skforecast/model_selection/model_selection.py
|
JavierEscobarOrtiz/skforecast
|
a3af4a1dd4201c582f159d4e3a1734ed6d29b6c5
|
[
"MIT"
] | null | null | null |
################################################################################
# skforecast.model_selection #
# #
# This work by Joaquin Amat Rodrigo is licensed under a Creative Commons #
# Attribution 4.0 International License. #
################################################################################
# coding=utf-8
from typing import Union, Tuple, Optional, Any
import numpy as np
import pandas as pd
import warnings
import logging
from copy import deepcopy
from tqdm import tqdm
from sklearn.metrics import mean_squared_error
from sklearn.metrics import mean_absolute_error
from sklearn.metrics import mean_absolute_percentage_error
from sklearn.metrics import mean_squared_log_error
from sklearn.model_selection import ParameterGrid
from sklearn.model_selection import ParameterSampler
import optuna
from optuna.samplers import TPESampler, RandomSampler
optuna.logging.set_verbosity(optuna.logging.WARNING) # disable optuna logs
from skopt.utils import use_named_args
from skopt import gp_minimize
from ..ForecasterAutoreg import ForecasterAutoreg
from ..ForecasterAutoregCustom import ForecasterAutoregCustom
from ..ForecasterAutoregDirect import ForecasterAutoregDirect
from ..ForecasterAutoregMultiOutput import ForecasterAutoregMultiOutput
logging.basicConfig(
format = '%(name)-10s %(levelname)-5s %(message)s',
level = logging.INFO,
)
def time_series_splitter(
y: Union[np.ndarray, pd.Series],
initial_train_size: int,
steps: int,
allow_incomplete_fold: bool=True,
verbose: bool=True
) -> Union[np.ndarray, np.ndarray]:
'''
Split indices of a time series into multiple train-test pairs. The order of
is maintained and the training set increases in each iteration.
Parameters
----------
y : 1d numpy ndarray, pandas Series
Training time series values.
initial_train_size: int
Number of samples in the initial train split.
steps : int
Number of steps to predict.
allow_incomplete_fold : bool, default `True`
The last test set is allowed to be incomplete if it does not reach `steps`
observations. Otherwise, the latest observations are discarded.
verbose : bool, default `True`
Print number of splits created.
Yields
------
train : 1d numpy ndarray
Training indices.
test : 1d numpy ndarray
Test indices.
'''
if not isinstance(y, (np.ndarray, pd.Series)):
raise Exception('`y` must be `1D np.ndarray` o `pd.Series`.')
elif isinstance(y, np.ndarray) and y.ndim != 1:
raise Exception(
f"`y` must be `1D np.ndarray` o `pd.Series`, "
f"got `np.ndarray` with {y.ndim} dimensions."
)
if initial_train_size > len(y):
raise Exception(
'`initial_train_size` must be smaller than length of `y`.'
' Try to reduce `initial_train_size` or `steps`.'
)
if isinstance(y, pd.Series):
y = y.to_numpy().copy()
folds = (len(y) - initial_train_size) // steps + 1
# +1 fold is needed to allow including the remainder in the last iteration.
remainder = (len(y) - initial_train_size) % steps
if verbose:
if folds == 1:
print(f"Number of folds: {folds - 1}")
print("Not enough observations in `y` to create even a complete fold."
" Try to reduce `initial_train_size` or `steps`."
)
elif remainder == 0:
print(f"Number of folds: {folds - 1}")
elif remainder != 0 and allow_incomplete_fold:
print(f"Number of folds: {folds}")
print(
f"Since `allow_incomplete_fold=True`, "
f"last fold only includes {remainder} observations instead of {steps}."
)
print(
'Incomplete folds with few observations could overestimate or ',
'underestimate validation metrics.'
)
elif remainder != 0 and not allow_incomplete_fold:
print(f"Number of folds: {folds - 1}")
print(
f"Since `allow_incomplete_fold=False`, "
f"last {remainder} observations are descarted."
)
if folds == 1:
# There are no observations to create even a complete fold
return []
for i in range(folds):
if i < folds - 1:
train_end = initial_train_size + i * steps
train_indices = range(train_end)
test_indices = range(train_end, train_end + steps)
else:
if remainder != 0 and allow_incomplete_fold:
train_end = initial_train_size + i * steps
train_indices = range(train_end)
test_indices = range(train_end, len(y))
else:
break
yield train_indices, test_indices
def _get_metric(metric:str) -> callable:
'''
Get the corresponding scikitlearn function to calculate the metric.
Parameters
----------
metric : {'mean_squared_error', 'mean_absolute_error',
'mean_absolute_percentage_error', 'mean_squared_log_error'}
Metric used to quantify the goodness of fit of the model.
Returns
-------
metric : callable
scikitlearn function to calculate the desired metric.
'''
if metric not in ['mean_squared_error', 'mean_absolute_error',
'mean_absolute_percentage_error', 'mean_squared_log_error']:
raise Exception(
f"Allowed metrics are: 'mean_squared_error', 'mean_absolute_error', "
f"'mean_absolute_percentage_error' and 'mean_squared_log_error'. Got {metric}."
)
metrics = {
'mean_squared_error': mean_squared_error,
'mean_absolute_error': mean_absolute_error,
'mean_absolute_percentage_error': mean_absolute_percentage_error,
'mean_squared_log_error': mean_squared_log_error
}
metric = metrics[metric]
return metric
def cv_forecaster(
forecaster,
y: pd.Series,
initial_train_size: int,
steps: int,
metric: Union[str, callable],
exog: Optional[Union[pd.Series, pd.DataFrame]]=None,
allow_incomplete_fold: bool=True,
verbose: bool=True
) -> Tuple[np.array, pd.DataFrame]:
'''
Cross-validation of forecaster. The order of data is maintained and the
training set increases in each iteration.
Parameters
----------
forecaster : ForecasterAutoreg, ForecasterAutoregCustom, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput
Forecaster model.
y : pandas Series
Training time series values.
initial_train_size: int
Number of samples in the initial train split.
steps : int
Number of steps to predict.
metric : str, callable
Metric used to quantify the goodness of fit of the model.
If string:
{'mean_squared_error', 'mean_absolute_error', 'mean_absolute_percentage_error'}
It callable:
Function with arguments y_true, y_pred that returns a float.
exog : pandas Series, pandas DataFrame, default `None`
Exogenous variable/s included as predictor/s. Must have the same
number of observations as `y` and should be aligned so that y[i] is
regressed on exog[i].
allow_incomplete_fold : bool, default `True`
The last test partition is allowed to be incomplete if it does not reach `steps`
observations. Otherwise, the latest observations are discarded.
verbose : bool, default `True`
Print number of folds used for cross validation.
Returns
-------
cv_metrics: 1d numpy ndarray
Value of the metric for each fold.
cv_predictions: pandas DataFrame
Predictions.
'''
if initial_train_size > len(y):
raise Exception(
'`initial_train_size` must be smaller than length of `y`.'
)
if initial_train_size is not None and initial_train_size < forecaster.window_size:
raise Exception(
f"`initial_train_size` must be greater than "
f"forecaster's window_size ({forecaster.window_size})."
)
forecaster = deepcopy(forecaster)
if isinstance(metric, str):
metric = _get_metric(metric=metric)
splits = time_series_splitter(
y = y,
initial_train_size = initial_train_size,
steps = steps,
allow_incomplete_fold = allow_incomplete_fold,
verbose = verbose
)
cv_predictions = []
cv_metrics = []
for train_index, test_index in splits:
if exog is None:
forecaster.fit(y=y.iloc[train_index])
pred = forecaster.predict(steps=len(test_index))
else:
forecaster.fit(y=y.iloc[train_index], exog=exog.iloc[train_index,])
pred = forecaster.predict(steps=len(test_index), exog=exog.iloc[test_index])
metric_value = metric(
y_true = y.iloc[test_index],
y_pred = pred
)
cv_predictions.append(pred)
cv_metrics.append(metric_value)
cv_predictions = pd.concat(cv_predictions)
cv_predictions = pd.DataFrame(cv_predictions)
cv_metrics = np.array(cv_metrics)
return cv_metrics, cv_predictions
def _backtesting_forecaster_refit(
forecaster,
y: pd.Series,
steps: int,
metric: Union[str, callable],
initial_train_size: int,
fixed_train_size: bool=True,
exog: Optional[Union[pd.Series, pd.DataFrame]]=None,
interval: Optional[list]=None,
n_boot: int=500,
random_state: int=123,
in_sample_residuals: bool=True,
verbose: bool=False
) -> Tuple[float, pd.DataFrame]:
'''
Backtesting of forecaster model with a re-fitting strategy. A copy of the
original forecaster is created so it is not modified during the process.
In each iteration:
- Fit forecaster with the training set.
- A number of `steps` ahead are predicted.
- The training set increases with `steps` observations.
- The model is re-fitted using the new training set.
In order to apply backtesting with re-fit, an initial training set must be
available, otherwise it would not be possible to increase the training set
after each iteration. `initial_train_size` must be provided.
Parameters
----------
forecaster : ForecasterAutoreg, ForecasterAutoregCustom, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput
Forecaster model.
y : pandas Series
Training time series values.
initial_train_size: int
Number of samples in the initial train split. The backtest forecaster is
trained using the first `initial_train_size` observations.
fixed_train_size: bool, default `True`
If True, train size doesn't increases but moves by `steps` in each iteration.
steps : int
Number of steps to predict.
metric : str, callable
Metric used to quantify the goodness of fit of the model.
If string:
{'mean_squared_error', 'mean_absolute_error', 'mean_absolute_percentage_error'}
If callable:
Function with arguments y_true, y_pred that returns a float.
exog :panda Series, pandas DataFrame, default `None`
Exogenous variable/s included as predictor/s. Must have the same
number of observations as `y` and should be aligned so that y[i] is
regressed on exog[i].
interval: list, default `None`
Confidence of the prediction interval estimated. Sequence of percentiles
to compute, which must be between 0 and 100 inclusive. If `None`, no
intervals are estimated. Only available for forecaster of type ForecasterAutoreg
and ForecasterAutoregCustom.
n_boot: int, default `500`
Number of bootstrapping iterations used to estimate prediction
intervals.
random_state: int, default `123`
Sets a seed to the random generator, so that boot intervals are always
deterministic.
in_sample_residuals: bool, default `True`
If `True`, residuals from the training data are used as proxy of
prediction error to create prediction intervals. If `False`, out_sample_residuals
are used if they are already stored inside the forecaster.
verbose : bool, default `False`
Print number of folds and index of training and validation sets used for backtesting.
Returns
-------
metric_value: float
Value of the metric.
backtest_predictions: pandas Dataframe
Value of predictions and their estimated interval if `interval` is not `None`.
column pred = predictions.
column lower_bound = lower bound of the interval.
column upper_bound = upper bound interval of the interval.
'''
forecaster = deepcopy(forecaster)
if isinstance(metric, str):
metric = _get_metric(metric=metric)
backtest_predictions = []
folds = int(np.ceil((len(y) - initial_train_size) / steps))
remainder = (len(y) - initial_train_size) % steps
if verbose:
print(f"Information of backtesting process")
print(f"----------------------------------")
print(f"Number of observations used for initial training: {initial_train_size}")
print(f"Number of observations used for backtesting: {len(y) - initial_train_size}")
print(f" Number of folds: {folds}")
print(f" Number of steps per fold: {steps}")
if remainder != 0:
print(f" Last fold only includes {remainder} observations.")
print("")
for i in range(folds):
if fixed_train_size:
# The train size doesn't increase but moves by `steps` in each iteration.
train_idx_start = i * steps
train_idx_end = initial_train_size + i * steps
else:
# The train size increases by `steps` in each iteration.
train_idx_start = 0
train_idx_end = initial_train_size + i * steps
print(f"Data partition in fold: {i}")
if i < folds - 1:
print(f" Training: {y.index[train_idx_start]} -- {y.index[train_idx_end - 1]} (n={len(y.index[train_idx_start:train_idx_end])})")
print(f" Validation: {y.index[train_idx_end]} -- {y.index[train_idx_end + steps - 1]} (n={len(y.index[train_idx_end:train_idx_end + steps])})")
else:
print(f" Training: {y.index[train_idx_start]} -- {y.index[train_idx_end - 1]} (n={len(y.index[train_idx_start:train_idx_end])})")
print(f" Validation: {y.index[train_idx_end]} -- {y.index[-1]} (n={len(y.index[train_idx_end:])})")
print("")
if folds > 50:
print(
f"Forecaster will be fit {folds} times. This can take substantial amounts of time. "
f"If not feasible, try with `refit = False`. \n"
)
for i in range(folds):
# In each iteration (except the last one) the model is fitted before making predictions.
if fixed_train_size:
# The train size doesn't increases but moves by `steps` in each iteration.
train_idx_start = i * steps
train_idx_end = initial_train_size + i * steps
else:
# The train size increases by `steps` in each iteration.
train_idx_start = 0
train_idx_end = initial_train_size + i * steps
if exog is not None:
next_window_exog = exog.iloc[train_idx_end:train_idx_end + steps, ]
if interval is None:
if i < folds - 1:
if exog is None:
forecaster.fit(y=y.iloc[train_idx_start:train_idx_end])
pred = forecaster.predict(steps=steps)
else:
forecaster.fit(
y = y.iloc[train_idx_start:train_idx_end],
exog = exog.iloc[train_idx_start:train_idx_end, ]
)
pred = forecaster.predict(steps=steps, exog=next_window_exog)
else:
if remainder == 0:
if exog is None:
forecaster.fit(y=y.iloc[train_idx_start:train_idx_end])
pred = forecaster.predict(steps=steps)
else:
forecaster.fit(
y = y.iloc[train_idx_start:train_idx_end],
exog = exog.iloc[train_idx_start:train_idx_end, ]
)
pred = forecaster.predict(steps=steps, exog=next_window_exog)
else:
# Only the remaining steps need to be predicted
steps = remainder
if exog is None:
forecaster.fit(y=y.iloc[train_idx_start:train_idx_end])
pred = forecaster.predict(steps=steps)
else:
forecaster.fit(
y = y.iloc[train_idx_start:train_idx_end],
exog = exog.iloc[train_idx_start:train_idx_end, ]
)
pred = forecaster.predict(steps=steps, exog=next_window_exog)
else:
if i < folds - 1:
if exog is None:
forecaster.fit(y=y.iloc[train_idx_start:train_idx_end])
pred = forecaster.predict_interval(
steps = steps,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
else:
forecaster.fit(
y = y.iloc[train_idx_start:train_idx_end],
exog = exog.iloc[train_idx_start:train_idx_end, ]
)
pred = forecaster.predict_interval(
steps = steps,
exog = next_window_exog,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
else:
if remainder == 0:
if exog is None:
forecaster.fit(y=y.iloc[train_idx_start:train_idx_end])
pred = forecaster.predict_interval(
steps = steps,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
else:
forecaster.fit(
y = y.iloc[train_idx_start:train_idx_end],
exog = exog.iloc[train_idx_start:train_idx_end, ]
)
pred = forecaster.predict_interval(
steps = steps,
exog = next_window_exog,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
else:
# Only the remaining steps need to be predicted
steps = remainder
if exog is None:
forecaster.fit(y=y.iloc[train_idx_start:train_idx_end])
pred = forecaster.predict_interval(
steps = steps,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
else:
forecaster.fit(
y = y.iloc[train_idx_start:train_idx_end],
exog = exog.iloc[train_idx_start:train_idx_end, ]
)
pred = forecaster.predict_interval(
steps = steps,
exog = next_window_exog,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
backtest_predictions.append(pred)
backtest_predictions = pd.concat(backtest_predictions)
if isinstance(backtest_predictions, pd.Series):
backtest_predictions = pd.DataFrame(backtest_predictions)
metric_value = metric(
y_true = y.iloc[initial_train_size: initial_train_size + len(backtest_predictions)],
y_pred = backtest_predictions['pred']
)
return metric_value, backtest_predictions
def _backtesting_forecaster_no_refit(
forecaster,
y: pd.Series,
steps: int,
metric: Union[str, callable],
initial_train_size: Optional[int]=None,
exog: Optional[Union[pd.Series, pd.DataFrame]]=None,
interval: Optional[list]=None,
n_boot: int=500,
random_state: int=123,
in_sample_residuals: bool=True,
verbose: bool=False
) -> Tuple[float, pd.DataFrame]:
'''
Backtesting of forecaster without iterative re-fitting. In each iteration,
a number of `steps` are predicted. A copy of the original forecaster is
created so it is not modified during the process.
If `forecaster` is already trained and `initial_train_size` is `None`,
no initial train is done and all data is used to evaluate the model.
However, the first `len(forecaster.last_window)` observations are needed
to create the initial predictors, so no predictions are calculated for them.
Parameters
----------
forecaster : ForecasterAutoreg, ForecasterAutoregCustom, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput
Forecaster model.
y : pandas Series
Training time series values.
initial_train_size: int, default `None`
Number of samples in the initial train split. If `None` and `forecaster` is already
trained, no initial train is done and all data is used to evaluate the model. However,
the first `len(forecaster.last_window)` observations are needed to create the
initial predictors, so no predictions are calculated for them.
steps : int, None
Number of steps to predict.
metric : str, callable
Metric used to quantify the goodness of fit of the model.
If string:
{'mean_squared_error', 'mean_absolute_error', 'mean_absolute_percentage_error'}
If callable:
Function with arguments y_true, y_pred that returns a float.
exog :panda Series, pandas DataFrame, default `None`
Exogenous variable/s included as predictor/s. Must have the same
number of observations as `y` and should be aligned so that y[i] is
regressed on exog[i].
interval: list, default `None`
Confidence of the prediction interval estimated. Sequence of percentiles
to compute, which must be between 0 and 100 inclusive. If `None`, no
intervals are estimated. Only available for forecaster of type ForecasterAutoreg
and ForecasterAutoregCustom.
n_boot: int, default `500`
Number of bootstrapping iterations used to estimate prediction
intervals.
random_state: int, default `123`
Sets a seed to the random generator, so that boot intervals are always
deterministic.
in_sample_residuals: bool, default `True`
If `True`, residuals from the training data are used as proxy of
prediction error to create prediction intervals. If `False`, out_sample_residuals
are used if they are already stored inside the forecaster.
verbose : bool, default `False`
Print number of folds and index of training and validation sets used for backtesting.
Returns
-------
metric_value: float
Value of the metric.
backtest_predictions: pandas DataFrame
Value of predictions and their estimated interval if `interval` is not `None`.
column pred = predictions.
column lower_bound = lower bound of the interval.
column upper_bound = upper bound interval of the interval.
'''
forecaster = deepcopy(forecaster)
if isinstance(metric, str):
metric = _get_metric(metric=metric)
backtest_predictions = []
if initial_train_size is not None:
if exog is None:
forecaster.fit(y=y.iloc[:initial_train_size])
else:
forecaster.fit(
y = y.iloc[:initial_train_size],
exog = exog.iloc[:initial_train_size, ]
)
window_size = forecaster.window_size
else:
# Although not used for training, first observations are needed to create
# the initial predictors
window_size = forecaster.window_size
initial_train_size = window_size
folds = int(np.ceil((len(y) - initial_train_size) / steps))
remainder = (len(y) - initial_train_size) % steps
if verbose:
print(f"Information of backtesting process")
print(f"----------------------------------")
print(f"Number of observations used for initial training or as initial window: {initial_train_size}")
print(f"Number of observations used for backtesting: {len(y) - initial_train_size}")
print(f" Number of folds: {folds}")
print(f" Number of steps per fold: {steps}")
if remainder != 0:
print(f" Last fold only includes {remainder} observations")
print("")
for i in range(folds):
last_window_end = initial_train_size + i * steps
print(f"Data partition in fold: {i}")
if i < folds - 1:
print(f" Training: {y.index[0]} -- {y.index[initial_train_size - 1]} (n={len(y.index[:initial_train_size])})")
print(f" Validation: {y.index[last_window_end]} -- {y.index[last_window_end + steps -1]} (n={len(y.index[last_window_end:last_window_end + steps])})")
else:
print(f" Training: {y.index[0]} -- {y.index[initial_train_size - 1]} (n={len(y.index[:initial_train_size])})")
print(f" Validation: {y.index[last_window_end]} -- {y.index[-1]} (n={len(y.index[last_window_end:])})")
print("")
for i in range(folds):
# Since the model is only fitted with the initial_train_size, last_window
# and next_window_exog must be updated to include the data needed to make
# predictions.
last_window_end = initial_train_size + i * steps
last_window_start = last_window_end - window_size
last_window_y = y.iloc[last_window_start:last_window_end]
if exog is not None:
next_window_exog = exog.iloc[last_window_end:last_window_end + steps, ]
if interval is None:
if i < folds - 1:
if exog is None:
pred = forecaster.predict(
steps = steps,
last_window = last_window_y
)
else:
pred = forecaster.predict(
steps = steps,
last_window = last_window_y,
exog = next_window_exog
)
else:
if remainder == 0:
if exog is None:
pred = forecaster.predict(
steps = steps,
last_window = last_window_y
)
else:
pred = forecaster.predict(
steps = steps,
last_window = last_window_y,
exog = next_window_exog
)
else:
# Only the remaining steps need to be predicted
steps = remainder
if exog is None:
pred = forecaster.predict(
steps = steps,
last_window = last_window_y
)
else:
pred = forecaster.predict(
steps = steps,
last_window = last_window_y,
exog = next_window_exog
)
backtest_predictions.append(pred)
else:
if i < folds - 1:
if exog is None:
pred = forecaster.predict_interval(
steps = steps,
last_window = last_window_y,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
else:
pred = forecaster.predict_interval(
steps = steps,
last_window = last_window_y,
exog = next_window_exog,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
else:
if remainder == 0:
if exog is None:
pred = forecaster.predict_interval(
steps = steps,
last_window = last_window_y,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
else:
pred = forecaster.predict_interval(
steps = steps,
last_window = last_window_y,
exog = next_window_exog,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
else:
# Only the remaining steps need to be predicted
steps = remainder
if exog is None:
pred = forecaster.predict_interval(
steps = steps,
last_window = last_window_y,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
else:
pred = forecaster.predict_interval(
steps = steps,
last_window = last_window_y,
exog = next_window_exog,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals
)
backtest_predictions.append(pred)
backtest_predictions = pd.concat(backtest_predictions)
if isinstance(backtest_predictions, pd.Series):
backtest_predictions = pd.DataFrame(backtest_predictions)
metric_value = metric(
y_true = y.iloc[initial_train_size : initial_train_size + len(backtest_predictions)],
y_pred = backtest_predictions['pred']
)
return metric_value, backtest_predictions
def backtesting_forecaster(
forecaster,
y: pd.Series,
steps: int,
metric: Union[str, callable],
initial_train_size: Optional[int],
fixed_train_size: bool=True,
exog: Optional[Union[pd.Series, pd.DataFrame]]=None,
refit: bool=False,
interval: Optional[list]=None,
n_boot: int=500,
random_state: int=123,
in_sample_residuals: bool=True,
verbose: bool=False
) -> Tuple[float, pd.DataFrame]:
'''
Backtesting of forecaster model.
If `refit` is False, the model is trained only once using the `initial_train_size`
first observations. If `refit` is True, the model is trained in each iteration
increasing the training set. A copy of the original forecaster is created so
it is not modified during the process.
Parameters
----------
forecaster : ForecasterAutoreg, ForecasterAutoregCustom, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput
Forecaster model.
y : pandas Series
Training time series values.
initial_train_size: int, default `None`
Number of samples in the initial train split. If `None` and `forecaster` is already
trained, no initial train is done and all data is used to evaluate the model. However,
the first `len(forecaster.last_window)` observations are needed to create the
initial predictors, so no predictions are calculated for them.
`None` is only allowed when `refit` is `False`.
fixed_train_size: bool, default `True`
If True, train size doesn't increases but moves by `steps` in each iteration.
steps : int
Number of steps to predict.
metric : str, callable
Metric used to quantify the goodness of fit of the model.
If string:
{'mean_squared_error', 'mean_absolute_error', 'mean_absolute_percentage_error'}
If callable:
Function with arguments y_true, y_pred that returns a float.
exog :panda Series, pandas DataFrame, default `None`
Exogenous variable/s included as predictor/s. Must have the same
number of observations as `y` and should be aligned so that y[i] is
regressed on exog[i].
refit: bool, default `False`
Whether to re-fit the forecaster in each iteration.
interval: list, default `None`
Confidence of the prediction interval estimated. Sequence of percentiles
to compute, which must be between 0 and 100 inclusive. If `None`, no
intervals are estimated. Only available for forecaster of type ForecasterAutoreg
and ForecasterAutoregCustom.
n_boot: int, default `500`
Number of bootstrapping iterations used to estimate prediction
intervals.
random_state: int, default `123`
Sets a seed to the random generator, so that boot intervals are always
deterministic.
in_sample_residuals: bool, default `True`
If `True`, residuals from the training data are used as proxy of
prediction error to create prediction intervals. If `False`, out_sample_residuals
are used if they are already stored inside the forecaster.
verbose : bool, default `False`
Print number of folds and index of training and validation sets used for backtesting.
Returns
-------
metric_value: float
Value of the metric.
backtest_predictions: pandas DataFrame
Value of predictions and their estimated interval if `interval` is not `None`.
column pred = predictions.
column lower_bound = lower bound of the interval.
column upper_bound = upper bound interval of the interval.
'''
if initial_train_size is not None and initial_train_size > len(y):
raise Exception(
'If used, `initial_train_size` must be smaller than length of `y`.'
)
if initial_train_size is not None and initial_train_size < forecaster.window_size:
raise Exception(
f"`initial_train_size` must be greater than "
f"forecaster's window_size ({forecaster.window_size})."
)
if initial_train_size is None and not forecaster.fitted:
raise Exception(
'`forecaster` must be already trained if no `initial_train_size` is provided.'
)
if not isinstance(refit, bool):
raise Exception(
f'`refit` must be boolean: True, False.'
)
if initial_train_size is None and refit:
raise Exception(
f'`refit` is only allowed when there is a initial_train_size.'
)
if interval is not None and isinstance(forecaster, (ForecasterAutoregDirect,
ForecasterAutoregMultiOutput)):
raise Exception(
('Interval prediction is only available when forecaster is of type '
'ForecasterAutoreg or ForecasterAutoregCustom.')
)
if refit:
metric_value, backtest_predictions = _backtesting_forecaster_refit(
forecaster = forecaster,
y = y,
steps = steps,
metric = metric,
initial_train_size = initial_train_size,
fixed_train_size = fixed_train_size,
exog = exog,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals,
verbose = verbose
)
else:
metric_value, backtest_predictions = _backtesting_forecaster_no_refit(
forecaster = forecaster,
y = y,
steps = steps,
metric = metric,
initial_train_size = initial_train_size,
exog = exog,
interval = interval,
n_boot = n_boot,
random_state = random_state,
in_sample_residuals = in_sample_residuals,
verbose = verbose
)
return metric_value, backtest_predictions
def grid_search_forecaster(
forecaster,
y: pd.Series,
param_grid: dict,
steps: int,
metric: Union[str, callable],
initial_train_size: int,
fixed_train_size: bool=True,
exog: Optional[Union[pd.Series, pd.DataFrame]]=None,
lags_grid: Optional[list]=None,
refit: bool=False,
return_best: bool=True,
verbose: bool=True
) -> pd.DataFrame:
'''
Exhaustive search over specified parameter values for a Forecaster object.
Validation is done using time series backtesting.
Parameters
----------
forecaster : ForecasterAutoreg, ForecasterAutoregCustom, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput
Forcaster model.
y : pandas Series
Training time series values.
param_grid : dict
Dictionary with parameters names (`str`) as keys and lists of parameter
settings to try as values.
steps : int
Number of steps to predict.
metric : str, callable
Metric used to quantify the goodness of fit of the model.
If string:
{'mean_squared_error', 'mean_absolute_error', 'mean_absolute_percentage_error'}
If callable:
Function with arguments y_true, y_pred that returns a float.
initial_train_size: int
Number of samples in the initial train split.
fixed_train_size: bool, default `True`
If True, train size doesn't increases but moves by `steps` in each iteration.
exog : pandas Series, pandas DataFrame, default `None`
Exogenous variable/s included as predictor/s. Must have the same
number of observations as `y` and should be aligned so that y[i] is
regressed on exog[i].
lags_grid : list of int, lists, np.narray or range, default `None`
Lists of `lags` to try. Only used if forecaster is an instance of
`ForecasterAutoreg`, `ForecasterAutoregDirect` or `ForecasterAutoregMultiOutput`.
refit: bool, default `False`
Whether to re-fit the forecaster in each iteration of backtesting.
return_best : bool, default `True`
Refit the `forecaster` using the best found parameters on the whole data.
verbose : bool, default `True`
Print number of folds used for cv or backtesting.
Returns
-------
results: pandas DataFrame
Results for each combination of parameters.
column lags = predictions.
column params = lower bound of the interval.
column metric = metric value estimated for the combination of parameters.
additional n columns with param = value.
'''
param_grid = list(ParameterGrid(param_grid))
results = _evaluate_grid_hyperparameters(
forecaster = forecaster,
y = y,
param_grid = param_grid,
steps = steps,
metric = metric,
initial_train_size = initial_train_size,
fixed_train_size = fixed_train_size,
exog = exog,
lags_grid = lags_grid,
refit = refit,
return_best = return_best,
verbose = verbose
)
return results
def random_search_forecaster(
forecaster,
y: pd.Series,
param_distributions: dict,
steps: int,
metric: Union[str, callable],
initial_train_size: int,
fixed_train_size: bool=True,
exog: Optional[Union[pd.Series, pd.DataFrame]]=None,
lags_grid: Optional[list]=None,
refit: bool=False,
n_iter: int=10,
random_state: int=123,
return_best: bool=True,
verbose: bool=True
) -> pd.DataFrame:
'''
Random search over specified parameter values or distributions for a Forecaster object.
Validation is done using time series backtesting.
Parameters
----------
forecaster : ForecasterAutoreg, ForecasterAutoregCustom, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput
Forcaster model.
y : pandas Series
Training time series values.
param_distributions : dict
Dictionary with parameters names (`str`) as keys and
distributions or lists of parameters to try.
steps : int
Number of steps to predict.
metric : str, callable
Metric used to quantify the goodness of fit of the model.
If string:
{'mean_squared_error', 'mean_absolute_error', 'mean_absolute_percentage_error'}
If callable:
Function with arguments y_true, y_pred that returns a float.
initial_train_size: int
Number of samples in the initial train split.
fixed_train_size: bool, default `True`
If True, train size doesn't increases but moves by `steps` in each iteration.
exog : pandas Series, pandas DataFrame, default `None`
Exogenous variable/s included as predictor/s. Must have the same
number of observations as `y` and should be aligned so that y[i] is
regressed on exog[i].
lags_grid : list of int, lists, np.narray or range, default `None`
Lists of `lags` to try. Only used if forecaster is an instance of
`ForecasterAutoreg`, `ForecasterAutoregDirect` or `ForecasterAutoregMultiOutput`.
refit: bool, default `False`
Whether to re-fit the forecaster in each iteration of backtesting.
n_iter: int, default `10`
Number of parameter settings that are sampled.
n_iter trades off runtime vs quality of the solution.
random_state: int, default `123`
Sets a seed to the random sampling for reproducible output.
return_best : bool, default `True`
Refit the `forecaster` using the best found parameters on the whole data.
verbose : bool, default `True`
Print number of folds used for cv or backtesting.
Returns
-------
results: pandas DataFrame
Results for each combination of parameters.
column lags = predictions.
column params = lower bound of the interval.
column metric = metric value estimated for the combination of parameters.
additional n columns with param = value.
'''
param_grid = list(ParameterSampler(param_distributions, n_iter=n_iter, random_state=random_state))
results = _evaluate_grid_hyperparameters(
forecaster = forecaster,
y = y,
param_grid = param_grid,
steps = steps,
metric = metric,
initial_train_size = initial_train_size,
fixed_train_size = fixed_train_size,
exog = exog,
lags_grid = lags_grid,
refit = refit,
return_best = return_best,
verbose = verbose
)
return results
def _evaluate_grid_hyperparameters(
forecaster,
y: pd.Series,
param_grid: dict,
steps: int,
metric: Union[str, callable],
initial_train_size: int,
fixed_train_size: bool=True,
exog: Optional[Union[pd.Series, pd.DataFrame]]=None,
lags_grid: Optional[list]=None,
refit: bool=False,
return_best: bool=True,
verbose: bool=True
) -> pd.DataFrame:
'''
Evaluate parameter values for a Forecaster object using time series backtesting.
Parameters
----------
forecaster : ForecasterAutoreg, ForecasterAutoregCustom, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput
Forcaster model.
y : pandas Series
Training time series values.
param_grid : dict
Dictionary with parameters names (`str`) as keys and lists of parameter
settings to try as values.
steps : int
Number of steps to predict.
metric : str, callable
Metric used to quantify the goodness of fit of the model.
If string:
{'mean_squared_error', 'mean_absolute_error', 'mean_absolute_percentage_error'}
If callable:
Function with arguments y_true, y_pred that returns a float.
initial_train_size: int
Number of samples in the initial train split.
fixed_train_size: bool, default `True`
If True, train size doesn't increases but moves by `steps` in each iteration.
exog : pandas Series, pandas DataFrame, default `None`
Exogenous variable/s included as predictor/s. Must have the same
number of observations as `y` and should be aligned so that y[i] is
regressed on exog[i].
lags_grid : list of int, lists, np.narray or range, default `None`
Lists of `lags` to try. Only used if forecaster is an instance of
`ForecasterAutoreg`, `ForecasterAutoregDirect` or `ForecasterAutoregMultiOutput`.
refit: bool, default `False`
Whether to re-fit the forecaster in each iteration of backtesting.
return_best : bool, default `True`
Refit the `forecaster` using the best found parameters on the whole data.
verbose : bool, default `True`
Print number of folds used for cv or backtesting.
Returns
-------
results: pandas DataFrame
Results for each combination of parameters.
column lags = predictions.
column params = lower bound of the interval.
column metric = metric value estimated for the combination of parameters.
additional n columns with param = value.
'''
if isinstance(forecaster, ForecasterAutoregCustom):
if lags_grid is not None:
warnings.warn(
'`lags_grid` ignored if forecaster is an instance of `ForecasterAutoregCustom`.'
)
lags_grid = ['custom predictors']
elif lags_grid is None:
lags_grid = [forecaster.lags]
lags_list = []
params_list = []
metric_list = []
print(
f"Number of models compared: {len(param_grid)*len(lags_grid)}."
)
for lags in tqdm(lags_grid, desc='loop lags_grid', position=0, ncols=90):
if isinstance(forecaster, (ForecasterAutoreg, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput)):
forecaster.set_lags(lags)
lags = forecaster.lags.copy()
for params in tqdm(param_grid, desc='loop param_grid', position=1, leave=False, ncols=90):
forecaster.set_params(**params)
metrics = backtesting_forecaster(
forecaster = forecaster,
y = y,
exog = exog,
steps = steps,
metric = metric,
initial_train_size = initial_train_size,
fixed_train_size = fixed_train_size,
refit = refit,
interval = None,
verbose = verbose
)[0]
lags_list.append(lags)
params_list.append(params)
metric_list.append(metrics)
results = pd.DataFrame({
'lags' : lags_list,
'params': params_list,
'metric': metric_list})
results = results.sort_values(by='metric', ascending=True)
results = pd.concat([results, results['params'].apply(pd.Series)], axis=1)
if return_best:
best_lags = results['lags'].iloc[0]
best_params = results['params'].iloc[0]
best_metric = results['metric'].iloc[0]
if isinstance(forecaster, (ForecasterAutoreg, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput)):
forecaster.set_lags(best_lags)
forecaster.set_params(**best_params)
forecaster.fit(y=y, exog=exog)
print(
f"`Forecaster` refitted using the best-found lags and parameters, and the whole data set: \n"
f" Lags: {best_lags} \n"
f" Parameters: {best_params}\n"
f" Backtesting metric: {best_metric}\n"
)
return results
def bayesian_search_forecaster(
forecaster,
y: pd.Series,
search_space: Union[callable, dict],
steps: int,
metric: Union[str, callable],
initial_train_size: int,
fixed_train_size: bool=True,
exog: Optional[Union[pd.Series, pd.DataFrame]]=None,
lags_grid: Optional[list]=None,
refit: bool=False,
n_trials: int=10,
random_state: int=123,
return_best: bool=True,
verbose: bool=True,
engine: str='skopt',
kwargs_create_study: dict={},
kwargs_study_optimize: dict={},
kwargs_gp_minimize: dict={},
) -> Tuple[pd.DataFrame, object]:
'''
Bayesian optimization for a Forecaster object using time series backtesting and
optuna or skopt library.
Parameters
----------
forecaster : ForecasterAutoreg, ForecasterAutoregCustom, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput
Forcaster model.
y : pandas Series
Training time series values.
search_space : callable (optuna), dict (skopt)
If optuna engine: callable
Function with argument `trial` which returns a dictionary with parameters names
(`str`) as keys and Trial object from optuna (trial.suggest_float,
trial.suggest_int, trial.suggest_categorical) as values.
If skopt engine: dict
Dictionary with parameters names (`str`) as keys and Space object from skopt
(Real, Integer, Categorical) as values.
steps : int
Number of steps to predict.
metric : str, callable
Metric used to quantify the goodness of fit of the model.
If string:
{'mean_squared_error', 'mean_absolute_error', 'mean_absolute_percentage_error'}
If callable:
Function with arguments y_true, y_pred that returns a float.
initial_train_size: int
Number of samples in the initial train split.
fixed_train_size: bool, default `True`
If True, train size doesn't increases but moves by `steps` in each iteration.
exog : pandas Series, pandas DataFrame, default `None`
Exogenous variable/s included as predictor/s. Must have the same
number of observations as `y` and should be aligned so that y[i] is
regressed on exog[i].
lags_grid : list of int, lists, np.narray or range, default `None`
Lists of `lags` to try. Only used if forecaster is an instance of
`ForecasterAutoreg`, `ForecasterAutoregDirect` or `ForecasterAutoregMultiOutput`.
refit: bool, default `False`
Whether to re-fit the forecaster in each iteration of backtesting.
n_trials: int, default `10`
Number of parameter settings that are sampled in each lag configuration.
random_state: int, default `123`
Sets a seed to the sampling for reproducible output.
return_best : bool, default `True`
Refit the `forecaster` using the best found parameters on the whole data.
verbose : bool, default `True`
Print number of folds used for cv or backtesting.
engine : str, default `'skopt'`
If 'optuna':
Bayesian optimization runs through the optuna library
If 'skopt':
Bayesian optimization runs through the skopt library
kwargs_create_study : dict, default `{'direction':'minimize', 'sampler':TPESampler(seed=123)}`
Only applies to engine='optuna'.
Keyword arguments (key, value mappings) to pass to optuna.create_study.
kwargs_study_optimize : dict, default `{}`
Only applies to engine='optuna'.
Other keyword arguments (key, value mappings) to pass to study.optimize().
kwargs_gp_minimize : dict, default `{}`
Only applies to engine='skopt'.
Other keyword arguments (key, value mappings) to pass to skopt.gp_minimize().
Returns
-------
results: pandas DataFrame
Results for each combination of parameters.
column lags = predictions.
column params = lower bound of the interval.
column metric = metric value estimated for the combination of parameters.
additional n columns with param = value.
results_opt_best: optuna object (optuna), scipy object (skopt)
If optuna engine:
The best optimization result returned as a FrozenTrial optuna object.
If skopt engine:
The best optimization result returned as a OptimizeResult object.
'''
if engine not in ['optuna', 'skopt']:
raise Exception(
f'''`engine` only allows 'optuna' or 'skopt', got {engine}.'''
)
if engine == 'optuna':
results, results_opt_best = _bayesian_search_optuna(
forecaster = forecaster,
y = y,
exog = exog,
lags_grid = lags_grid,
search_space = search_space,
steps = steps,
metric = metric,
refit = refit,
initial_train_size = initial_train_size,
fixed_train_size = fixed_train_size,
n_trials = n_trials,
random_state = random_state,
return_best = return_best,
verbose = verbose,
kwargs_create_study = kwargs_create_study,
kwargs_study_optimize = kwargs_study_optimize
)
else:
results, results_opt_best = _bayesian_search_skopt(
forecaster = forecaster,
y = y,
exog = exog,
lags_grid = lags_grid,
search_space = search_space,
steps = steps,
metric = metric,
refit = refit,
initial_train_size = initial_train_size,
fixed_train_size = fixed_train_size,
n_trials = n_trials,
random_state = random_state,
return_best = return_best,
verbose = verbose,
kwargs_gp_minimize = kwargs_gp_minimize
)
return results, results_opt_best
def _bayesian_search_optuna(
forecaster,
y: pd.Series,
search_space: callable,
steps: int,
metric: Union[str, callable],
initial_train_size: int,
fixed_train_size: bool=True,
exog: Optional[Union[pd.Series, pd.DataFrame]]=None,
lags_grid: Optional[list]=None,
refit: bool=False,
n_trials: int=10,
random_state: int=123,
return_best: bool=True,
verbose: bool=True,
kwargs_create_study: dict={},
kwargs_study_optimize: dict={}
) -> Tuple[pd.DataFrame, object]:
'''
Bayesian optimization for a Forecaster object using time series backtesting
and optuna library.
Parameters
----------
forecaster : ForecasterAutoreg, ForecasterAutoregCustom, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput
Forcaster model.
y : pandas Series
Training time series values.
search_space : callable
Function with argument `trial` which returns a dictionary with parameters names
(`str`) as keys and Trial object from optuna (trial.suggest_float,
trial.suggest_int, trial.suggest_categorical) as values.
steps : int
Number of steps to predict.
metric : str, callable
Metric used to quantify the goodness of fit of the model.
If string:
{'mean_squared_error', 'mean_absolute_error', 'mean_absolute_percentage_error'}
If callable:
Function with arguments y_true, y_pred that returns a float.
initial_train_size: int
Number of samples in the initial train split.
fixed_train_size: bool, default `True`
If True, train size doesn't increases but moves by `steps` in each iteration.
exog : pandas Series, pandas DataFrame, default `None`
Exogenous variable/s included as predictor/s. Must have the same
number of observations as `y` and should be aligned so that y[i] is
regressed on exog[i].
lags_grid : list of int, lists, np.narray or range, default `None`
Lists of `lags` to try. Only used if forecaster is an instance of
`ForecasterAutoreg`, `ForecasterAutoregDirect` or `ForecasterAutoregMultiOutput`.
refit: bool, default `False`
Whether to re-fit the forecaster in each iteration of backtesting.
n_trials: int, default `10`
Number of parameter settings that are sampled in each lag configuration.
random_state: int, default `123`
Sets a seed to the sampling for reproducible output.
return_best : bool, default `True`
Refit the `forecaster` using the best found parameters on the whole data.
verbose : bool, default `True`
Print number of folds used for cv or backtesting.
kwargs_create_study : dict, default `{'direction':'minimize', 'sampler':TPESampler(seed=123)}`
Keyword arguments (key, value mappings) to pass to optuna.create_study.
kwargs_study_optimize : dict, default `{}`
Other keyword arguments (key, value mappings) to pass to study.optimize().
Returns
-------
results: pandas DataFrame
Results for each combination of parameters.
column lags = predictions.
column params = lower bound of the interval.
column metric = metric value estimated for the combination of parameters.
additional n columns with param = value.
results_opt_best: optuna object
The best optimization result returned as a FrozenTrial optuna object.
'''
if isinstance(forecaster, ForecasterAutoregCustom):
if lags_grid is not None:
warnings.warn(
'`lags_grid` ignored if forecaster is an instance of `ForecasterAutoregCustom`.'
)
lags_grid = ['custom predictors']
elif lags_grid is None:
lags_grid = [forecaster.lags]
lags_list = []
params_list = []
metric_list = []
results_opt_best = None
# Objective function using backtesting_forecaster
def _objective(
trial,
forecaster = forecaster,
y = y,
exog = exog,
initial_train_size = initial_train_size,
fixed_train_size = fixed_train_size,
steps = steps,
metric = metric,
refit = refit,
verbose = verbose,
search_space = search_space,
) -> float:
forecaster.set_params(**search_space(trial))
metric, _ = backtesting_forecaster(
forecaster = forecaster,
y = y,
exog = exog,
steps = steps,
metric = metric,
initial_train_size = initial_train_size,
fixed_train_size = fixed_train_size,
refit = refit,
verbose = verbose
)
return abs(metric)
print(
f'''Number of models compared: {n_trials*len(lags_grid)}, {n_trials} bayesian search in each lag configuration.'''
)
for lags in tqdm(lags_grid, desc='loop lags_grid', position=0, ncols=90):
if isinstance(forecaster, (ForecasterAutoreg, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput)):
forecaster.set_lags(lags)
lags = forecaster.lags.copy()
if 'sampler' in kwargs_create_study.keys():
kwargs_create_study['sampler']._rng = np.random.RandomState(random_state)
kwargs_create_study['sampler']._random_sampler = RandomSampler(seed=random_state)
study = optuna.create_study(**kwargs_create_study)
if 'sampler' not in kwargs_create_study.keys():
study.sampler = TPESampler(seed=random_state)
study.optimize(_objective, n_trials=n_trials, **kwargs_study_optimize)
best_trial = study.best_trial
if search_space(best_trial).keys() != best_trial.params.keys():
raise Exception(
f'''Some of the key values do not match the search_space key names.
Dict keys : {list(search_space(best_trial).keys())}
Trial objects : {list(best_trial.params.keys())}.'''
)
for trial in study.get_trials():
params_list.append(trial.params)
lags_list.append(lags)
metric_list.append(trial.value)
if results_opt_best is None:
results_opt_best = best_trial
else:
if best_trial.value < results_opt_best.value:
results_opt_best = best_trial
results = pd.DataFrame({
'lags' : lags_list,
'params': params_list,
'metric': metric_list})
results = results.sort_values(by='metric', ascending=True)
results = pd.concat([results, results['params'].apply(pd.Series)], axis=1)
if return_best:
best_lags = results['lags'].iloc[0]
best_params = results['params'].iloc[0]
best_metric = results['metric'].iloc[0]
if isinstance(forecaster, (ForecasterAutoreg, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput)):
forecaster.set_lags(best_lags)
forecaster.set_params(**best_params)
forecaster.fit(y=y, exog=exog)
print(
f"`Forecaster` refitted using the best-found lags and parameters, and the whole data set: \n"
f" Lags: {best_lags} \n"
f" Parameters: {best_params}\n"
f" Backtesting metric: {best_metric}\n"
)
return results, results_opt_best
def _bayesian_search_skopt(
forecaster,
y: pd.Series,
search_space: dict,
steps: int,
metric: Union[str, callable],
initial_train_size: int,
fixed_train_size: bool=True,
exog: Optional[Union[pd.Series, pd.DataFrame]]=None,
lags_grid: Optional[list]=None,
refit: bool=False,
n_trials: int=10,
random_state: int=123,
return_best: bool=True,
verbose: bool=True,
kwargs_gp_minimize: dict={}
) -> Tuple[pd.DataFrame, object]:
'''
Bayesian optimization for a Forecaster object using time series backtesting and skopt library.
Parameters
----------
forecaster : ForecasterAutoreg, ForecasterAutoregCustom, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput
Forcaster model.
y : pandas Series
Training time series values.
search_space : dict
Dictionary with parameters names (`str`) as keys and Space object from skopt
(Real, Integer, Categorical) as values.
steps : int
Number of steps to predict.
metric : str, callable
Metric used to quantify the goodness of fit of the model.
If string:
{'mean_squared_error', 'mean_absolute_error', 'mean_absolute_percentage_error'}
It callable:
Function with arguments y_true, y_pred that returns a float.
initial_train_size: int
Number of samples in the initial train split.
fixed_train_size: bool, default `True`
If True, train size doesn't increases but moves by `steps` in each iteration.
exog : pandas Series, pandas DataFrame, default `None`
Exogenous variable/s included as predictor/s. Must have the same
number of observations as `y` and should be aligned so that y[i] is
regressed on exog[i].
lags_grid : list of int, lists, np.narray or range, default `None`
Lists of `lags` to try. Only used if forecaster is an instance of
`ForecasterAutoreg`, `ForecasterAutoregDirect` or `ForecasterAutoregMultiOutput`.
refit: bool, default `False`
Whether to re-fit the forecaster in each iteration of backtesting.
n_trials: int, default `10`
Number of parameter settings that are sampled in each lag configuration.
random_state: int, default `123`
Sets a seed to the sampling for reproducible output.
return_best : bool, default `True`
Refit the `forecaster` using the best found parameters on the whole data.
verbose : bool, default `True`
Print number of folds used for cv or backtesting.
kwargs_gp_minimize : dict, default `{}`
Other keyword arguments (key, value mappings) to pass to skopt.gp_minimize().
Returns
-------
results: pandas DataFrame
Results for each combination of parameters.
column lags = predictions.
column params = lower bound of the interval.
column metric = metric value estimated for the combination of parameters.
additional n columns with param = value.
results_opt_best: scipy object
The best optimization result returned as a OptimizeResult object.
'''
if isinstance(forecaster, ForecasterAutoregCustom):
if lags_grid is not None:
warnings.warn(
'`lags_grid` ignored if forecaster is an instance of `ForecasterAutoregCustom`.'
)
lags_grid = ['custom predictors']
elif lags_grid is None:
lags_grid = [forecaster.lags]
lags_list = []
params_list = []
metric_list = []
results_opt_best = None
for key in search_space.keys():
if key != search_space[key].name:
raise Exception(
f'''Some of the key values do not match the Space object name from skopt.
{key} != {search_space[key].name}.'''
)
search_space = list(search_space.values())
# Objective function using backtesting_forecaster
@use_named_args(search_space)
def _objective(
forecaster = forecaster,
y = y,
exog = exog,
initial_train_size = initial_train_size,
fixed_train_size = fixed_train_size,
steps = steps,
metric = metric,
refit = refit,
verbose = verbose,
**params
) -> float:
forecaster.set_params(**params)
metric, _ = backtesting_forecaster(
forecaster = forecaster,
y = y,
exog = exog,
steps = steps,
metric = metric,
initial_train_size = initial_train_size,
fixed_train_size = fixed_train_size,
refit = refit,
verbose = verbose
)
return abs(metric)
print(
f'''Number of models compared: {n_trials*len(lags_grid)}, {n_trials} bayesian search in each lag configuration.'''
)
for lags in tqdm(lags_grid, desc='loop lags_grid', position=0, ncols=90):
if isinstance(forecaster, (ForecasterAutoreg, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput)):
forecaster.set_lags(lags)
lags = forecaster.lags.copy()
results_opt = gp_minimize(
func = _objective,
dimensions = search_space,
n_calls = n_trials,
random_state = random_state,
**kwargs_gp_minimize
)
for i, x in enumerate(results_opt.x_iters):
params = {}
for j, x in enumerate(search_space):
params[x.name] = results_opt.x_iters[i][j]
params_list.append(params)
lags_list.append(lags)
metric_list.append(results_opt.func_vals[i])
if results_opt_best is None:
results_opt_best = results_opt
else:
if results_opt.fun < results_opt_best.fun:
results_opt_best = results_opt
results = pd.DataFrame({
'lags' : lags_list,
'params': params_list,
'metric': metric_list})
results = results.sort_values(by='metric', ascending=True)
results = pd.concat([results, results['params'].apply(pd.Series)], axis=1)
if return_best:
best_lags = results['lags'].iloc[0]
best_params = results['params'].iloc[0]
best_metric = results['metric'].iloc[0]
if isinstance(forecaster, (ForecasterAutoreg, ForecasterAutoregDirect,
ForecasterAutoregMultiOutput)):
forecaster.set_lags(best_lags)
forecaster.set_params(**best_params)
forecaster.fit(y=y, exog=exog)
print(
f"`Forecaster` refitted using the best-found lags and parameters, and the whole data set: \n"
f" Lags: {best_lags} \n"
f" Parameters: {best_params}\n"
f" Backtesting metric: {best_metric}\n"
)
return results, results_opt_best
| 38.835637
| 170
| 0.566002
| 8,084
| 75,846
| 5.145101
| 0.055418
| 0.032674
| 0.038853
| 0.009136
| 0.863006
| 0.841079
| 0.819248
| 0.80867
| 0.788234
| 0.774193
| 0
| 0.003522
| 0.363684
| 75,846
| 1,953
| 171
| 38.835637
| 0.858294
| 0.36938
| 0
| 0.734964
| 0
| 0.013252
| 0.11571
| 0.029011
| 0
| 0
| 0
| 0
| 0
| 1
| 0.014271
| false
| 0
| 0.021407
| 0
| 0.049949
| 0.043833
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
08b592c8e9a247efee8f940c2e10cffd4147c4c4
| 4,948
|
py
|
Python
|
pizza_cutter/coadding/_lanczos.py
|
beckermr/pizza-cutter
|
04eefd2d4b2a63975fe809c60b5c8e7e3fcf26c6
|
[
"BSD-3-Clause"
] | null | null | null |
pizza_cutter/coadding/_lanczos.py
|
beckermr/pizza-cutter
|
04eefd2d4b2a63975fe809c60b5c8e7e3fcf26c6
|
[
"BSD-3-Clause"
] | 194
|
2018-10-24T23:40:47.000Z
|
2021-11-17T16:02:35.000Z
|
pizza_cutter/coadding/_lanczos.py
|
beckermr/pizza-cutter
|
04eefd2d4b2a63975fe809c60b5c8e7e3fcf26c6
|
[
"BSD-3-Clause"
] | null | null | null |
import numpy as np
from numba import njit
if False:
from ._sinc import sinc
else:
from ._sinc import sinc_pade as sinc
@njit(fastmath=True)
def lanczos_resample(im, rows, cols, a=3):
"""Lanczos resample one image at the input row and column positions.
Parameters
----------
im : np.ndarray
A two-dimensional array with the image values.
rows : np.ndarray
A one-dimensional array of input row/y values. These denote the
location to sample on the first, slowest moving axis of the image.
cols : np.ndarray
A one-dimensional array of input column/x values. These denote the
location to sample on the second, fastest moving axis of the image.
a : int, optional
The size of the Lanczos kernel. The default of 3 is a good choice
for many applications.
Returns
-------
values, edge : np.ndarray
The resampled value for each row, column pair. Points whose
interpolation kernal was truncated because it extended beyond
the input image have edge=True
"""
assert a <= 3, (
"Due to the pade approximate sinc function, Lanczos interpolation "
"can only be done up to order 3."
)
ny, nx = im.shape
outsize = rows.shape[0]
res1 = np.zeros(outsize, dtype=np.float64)
edge = np.zeros(outsize, dtype=np.bool_)
for i in range(rows.shape[0]):
y = rows[i]
x = cols[i]
# get range for kernel
x_s = int(np.floor(x)) - a + 1
x_f = int(np.floor(x)) + a
y_s = int(np.floor(y)) - a + 1
y_f = int(np.floor(y)) + a
out_of_bounds = (
x_f < 0 or
x_s > nx-1 or
y_f < 0 or
y_s > ny-1
)
if out_of_bounds:
edge[i] = True
# now sum over the cells in the kernel
val1 = 0.0
for y_pix in range(y_s, y_f+1):
if y_pix < 0 or y_pix > ny-1:
continue
dy = y - y_pix
sy = sinc(dy) * sinc(dy/a)
for x_pix in range(x_s, x_f+1):
if x_pix < 0 or x_pix > nx-1:
continue
dx = x - x_pix
sx = sinc(dx) * sinc(dx/a)
kernel = sx*sy
val1 += im[y_pix, x_pix] * kernel
res1[i] = val1
return res1, edge
@njit(fastmath=True)
def lanczos_resample_two(im1, im2, rows, cols, a=3):
"""Lanczos resample two images at the input row and column positions.
Unlike lanczos_resample, points whose interpolation kernel would be
truncated because it extends beyond the input image do not get NaN values.
Instead they get edge=True in the output edge boolean array
Parameters
----------
im1 : np.ndarray
A two-dimensional array with the image values.
im2 : np.ndarray
A two-dimensional array with the image values.
rows : np.ndarray
A one-dimensional array of input row/y values. These denote the
location to sample on the first, slowest moving axis of the image.
cols : np.ndarray
A one-dimensional array of input column/x values. These denote the
location to sample on the second, fastest moving axis of the image.
a : int, optional
The size of the Lanczos kernel. The default of 3 is a good choice
for many applications.
Returns
-------
values1, values2, edge : np.ndarray
The resampled value for each row, column pair. Points whose
interpolation kernal was truncated because it extended beyond
the input image have edge=True
"""
ny, nx = im1.shape
outsize = rows.shape[0]
res1 = np.zeros(outsize, dtype=np.float64)
res2 = np.zeros(outsize, dtype=np.float64)
edge = np.zeros(outsize, dtype=np.bool_)
for i in range(rows.shape[0]):
y = rows[i]
x = cols[i]
# get range for kernel
x_s = int(np.floor(x)) - a + 1
x_f = int(np.floor(x)) + a
y_s = int(np.floor(y)) - a + 1
y_f = int(np.floor(y)) + a
out_of_bounds = (
x_f < 0 or
x_s > nx-1 or
y_f < 0 or
y_s > ny-1
)
if out_of_bounds:
edge[i] = True
# now sum over the cells in the kernel
val1 = 0.0
val2 = 0.0
for y_pix in range(y_s, y_f+1):
if y_pix < 0 or y_pix > ny-1:
continue
dy = y - y_pix
sy = sinc(dy) * sinc(dy/a)
for x_pix in range(x_s, x_f+1):
if x_pix < 0 or x_pix > nx-1:
continue
dx = x - x_pix
sx = sinc(dx) * sinc(dx/a)
kernel = sx*sy
val1 += im1[y_pix, x_pix] * kernel
val2 += im2[y_pix, x_pix] * kernel
res1[i] = val1
res2[i] = val2
return res1, res2, edge
| 27.954802
| 78
| 0.556386
| 750
| 4,948
| 3.586667
| 0.188
| 0.016357
| 0.02974
| 0.035316
| 0.815985
| 0.810781
| 0.766915
| 0.743866
| 0.726766
| 0.726766
| 0
| 0.02297
| 0.35772
| 4,948
| 176
| 79
| 28.113636
| 0.823474
| 0.402991
| 0
| 0.72093
| 0
| 0
| 0.034808
| 0
| 0
| 0
| 0
| 0
| 0.011628
| 1
| 0.023256
| false
| 0
| 0.046512
| 0
| 0.093023
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3eceafa0071f796b23c861bcc6fe737d5af19511
| 389,826
|
pyt
|
Python
|
eran/NNet/nnet/ACASXU_run2a_1_9_batch_2000_16bit.pyt
|
pauls658/ReluDiff-ICSE2020-Artifact
|
212854fe04f482183c239e5dfec70106a9a83df8
|
[
"Apache-2.0"
] | 7
|
2020-01-27T21:25:49.000Z
|
2022-01-07T04:37:37.000Z
|
eran/NNet/nnet/ACASXU_run2a_1_9_batch_2000_16bit.pyt
|
yqtianust/ReluDiff-ICSE2020-Artifact
|
149f6efe4799602db749faa576980c36921a07c7
|
[
"Apache-2.0"
] | 1
|
2022-01-25T17:41:54.000Z
|
2022-01-26T02:27:51.000Z
|
eran/NNet/nnet/ACASXU_run2a_1_9_batch_2000_16bit.pyt
|
yqtianust/ReluDiff-ICSE2020-Artifact
|
149f6efe4799602db749faa576980c36921a07c7
|
[
"Apache-2.0"
] | 3
|
2020-03-14T17:12:17.000Z
|
2022-03-16T09:50:46.000Z
|
ReLU
[[-0.0791752, -0.805586, -0.0231979, 0.649247, -0.397765], [0.0831648, -0.00536296, -0.0106399, 0.275283, -1.11862], [-0.0121543, -0.0225282, 0.00307771, 0.173961, -0.989381], [-0.0188319, -0.591901, 0.574422, 0.0133294, 0.157198], [0.00761831, -0.68365, 0.769109, 0.0194096, 0.0625865], [-0.0146541, 0.448687, -0.00930574, 0.0767494, -0.125253], [0.025496, -0.122473, 0.284814, -0.163065, 0.37846], [-0.0175174, -0.688039, -0.752055, 0.150861, 0.0586098], [-0.837946, 0.00508856, 0.00254875, 0.000298656, 0.000478515], [-0.0304969, 0.37302, 0.323848, 0.206257, -0.0738219], [0.0110145, 0.203139, -0.00684705, 0.00534789, -0.177648], [0.183578, -0.159554, -0.0217952, -0.0760196, -0.431161], [-0.601081, -0.374512, 0.12108, 0.111087, 0.0674687], [0.438981, -0.0260015, 0.00487298, 0.00945177, -0.102797], [-0.256736, 0.0414723, 0.025076, 0.0229962, -0.624653], [0.0429594, -0.233959, 0.709691, 0.3906, -0.0460539], [-0.0273826, 0.394765, 0.0318927, -0.130928, 0.0309174], [0.0388179, 0.874781, 0.00888455, 0.179743, -0.422731], [0.00484017, -0.255742, 0.00698719, 0.0155484, 0.00285873], [0.0531157, 0.554462, -1.02182, -0.0742762, 0.513616], [-0.00315907, 0.609536, 0.00132753, -0.0172786, 0.117837], [-0.00825552, 0.040841, 0.262856, -0.0570148, 0.0756399], [-1.73142, -0.00665205, 0.00320557, -0.00454895, 0.000289768], [-0.00251479, 0.0119069, -0.256087, 0.0175635, -0.00834991], [0.108709, 0.134745, 0.0235604, 0.39253, -0.36584], [-0.00408553, -0.0062859, -0.0264389, -0.27997, 0.0833438], [-0.00676018, -0.0171673, -0.0100484, 0.225269, -0.476677], [0.176115, -0.0155748, -0.0590033, -0.248187, -0.0101645], [-0.0084532, 0.00843473, 0.00508809, -0.0635845, -0.069672], [0.0144315, 0.718093, -0.336172, 0.027196, -0.0351015], [0.0517675, 0.0500177, 0.0037371, -0.65472, -0.180086], [0.409603, 0.0249574, 0.0109672, -0.0243713, -0.434406], [0.0337989, 0.0349239, 0.0666955, -0.101738, -0.217292], [-0.0578848, 0.00393485, -0.00269771, 0.100731, 0.106821], [-0.112271, 0.00366513, -0.00315669, -0.14754, 0.299288], [-0.0194027, -0.00515007, -0.78821, 0.00992864, 0.0017351], [-0.0271006, 0.00040114, -0.00589764, 0.00145491, -0.00330244], [0.0116766, 0.536009, -0.0275709, 0.153474, 0.176859], [0.0362883, -0.812828, 0.514242, 0.0168309, -0.10465], [-0.0285223, 0.0292113, -0.463719, 0.0711289, 0.0201273], [-0.00257338, 0.632263, -0.644232, 0.0718871, -0.00480325], [-0.00299355, -0.0614648, -0.156156, -0.0891657, 0.062136], [0.00137855, -0.0527378, 0.0882954, 0.0677458, -0.128976], [0.00369547, -0.593438, 0.00185851, 0.0032748, -0.00715705], [-0.00116468, -0.0768908, -0.146471, 0.129823, -0.0837275], [-0.0296256, 0.759409, -0.777065, 0.0833563, 0.0968516], [0.5291, -0.0275017, 0.00583377, -0.00671252, 0.0601098], [0.00130951, 0.0181797, -0.00362931, 0.00107549, -0.000898949], [0.648364, 0.0113473, 0.0106991, 0.000156587, -0.00243903], [-0.758897, -0.0256498, -0.0794754, 0.0886265, 0.171621], [-0.07916, -0.8057, -0.0232, 0.6494, -0.3977], [0.0832, -0.005363, -0.01064, 0.2754, -1.118], [-0.01215, -0.02252, 0.003078, 0.174, -0.9893], [-0.01883, -0.592, 0.574, 0.01333, 0.1572], [0.007618, -0.6836, 0.769, 0.01941, 0.06256], [-0.014656, 0.4487, -0.00931, 0.0767, -0.1252], [0.0255, -0.1225, 0.285, -0.1631, 0.3784], [-0.01752, -0.688, -0.752, 0.1509, 0.05862], [-0.838, 0.00509, 0.002548, 0.0002987, 0.0004785], [-0.0305, 0.373, 0.3237, 0.2063, -0.0738], [0.01102, 0.2031, -0.006847, 0.00535, -0.1776], [0.1836, -0.1595, -0.02179, -0.07605, -0.4312], [-0.601, -0.3745, 0.1211, 0.1111, 0.06744], [0.439, -0.026, 0.00487, 0.00945, -0.1028], [-0.2568, 0.04147, 0.02507, 0.023, -0.6245], [0.04297, -0.234, 0.7095, 0.3906, -0.04605], [-0.02739, 0.3948, 0.0319, -0.131, 0.03091], [0.03882, 0.875, 0.00889, 0.1797, -0.4229], [0.00484, -0.2559, 0.00699, 0.01555, 0.00286], [0.0531, 0.5547, -1.021, -0.0743, 0.5137], [-0.003159, 0.6094, 0.0013275, -0.01727, 0.11786], [-0.008255, 0.04083, 0.263, -0.057, 0.0756], [-1.731, -0.006653, 0.003206, -0.004547, 0.0002897], [-0.002514, 0.01191, -0.256, 0.01756, -0.00835], [0.1087, 0.1348, 0.02356, 0.3926, -0.3657], [-0.004086, -0.006287, -0.02644, -0.28, 0.0834], [-0.00676, -0.01717, -0.01005, 0.2252, -0.4766], [0.1761, -0.01557, -0.059, -0.2482, -0.01016], [-0.00845, 0.00844, 0.00509, -0.0636, -0.0697], [0.014435, 0.7183, -0.3362, 0.02719, -0.0351], [0.05176, 0.05002, 0.003736, -0.655, -0.18], [0.4097, 0.02496, 0.01096, -0.02437, -0.4343], [0.0338, 0.0349, 0.0667, -0.10175, -0.2173], [-0.0579, 0.003933, -0.002697, 0.1007, 0.1068], [-0.11224, 0.003666, -0.003157, -0.1476, 0.2993], [-0.01941, -0.00515, -0.788, 0.009926, 0.001735], [-0.0271, 0.0004013, -0.005898, 0.001455, -0.003302], [0.01167, 0.536, -0.02757, 0.1534, 0.1769], [0.0363, -0.813, 0.514, 0.01683, -0.1047], [-0.02852, 0.0292, -0.4636, 0.0711, 0.02013], [-0.002573, 0.6323, -0.644, 0.0719, -0.004803], [-0.002993, -0.06146, -0.1561, -0.0892, 0.06213], [0.001379, -0.05273, 0.0883, 0.06775, -0.129], [0.003695, -0.5933, 0.001859, 0.003275, -0.007156], [-0.001164, -0.0769, -0.1465, 0.1299, -0.08374], [-0.02963, 0.7593, -0.777, 0.0834, 0.09686], [0.5293, -0.0275, 0.005833, -0.006714, 0.06012], [0.001309, 0.01817, -0.00363, 0.001076, -0.000899], [0.6484, 0.011345, 0.0107, 0.0001566, -0.00244], [-0.759, -0.02565, -0.07947, 0.0886, 0.1716]]
[0.205448, -0.152932, -0.297323, -0.0700899, -0.230472, 0.0244775, -0.0623234, -0.0104626, -0.23327, -0.0381586, -0.104768, -0.24081, 0.000814816, 0.0571169, -0.308284, 0.103302, -0.0897029, -0.110181, 0.0149063, 0.0765153, 0.0765613, -0.00048103, -0.236244, 0.01771, 0.0496335, 0.0515165, 0.0934228, -0.0831395, -0.0178516, -0.164834, -0.249524, -0.124334, -0.128458, 0.0846317, 0.0463441, -0.00568897, -0.0164534, 0.215437, -0.195483, 0.0681447, -0.258348, -0.00260155, 0.023546, -0.00875714, 0.0578874, -0.102231, -0.0173825, -0.0130097, 0.175094, -0.0730618, 0.2054, -0.153, -0.2974, -0.07007, -0.2305, 0.02448, -0.06232, -0.01046, -0.2333, -0.03815, -0.1048, -0.2408, 0.000815, 0.05713, -0.3083, 0.1033, -0.0897, -0.11017, 0.01491, 0.07654, 0.07654, -0.0004811, -0.2362, 0.01772, 0.04962, 0.0515, 0.09344, -0.0831, -0.01785, -0.1648, -0.2495, -0.1243, -0.1284, 0.08466, 0.04636, -0.005688, -0.01645, 0.2155, -0.1954, 0.0681, -0.2583, -0.002602, 0.02354, -0.00876, 0.0579, -0.10223, -0.01738, -0.01301, 0.175, -0.07306]
ReLU
[[-1.6624, 0.600409, 0.83723, -0.18705, -0.699883, -1.27475, -0.157912, -0.672991, -4.30855, -0.488174, -1.0398, -1.97415, -1.75933, -3.17407, 0.810995, 0.183452, -1.19396, -1.21806, -1.77004, 0.252961, -1.51076, 0.308235, 0.498327, 0.140034, -2.20193, 0.513496, 0.391262, -0.400433, 0.489266, -2.32763, 0.712366, -2.47442, 0.618265, -8.62462, -2.97478, 0.0508015, 0.0440257, -1.77733, -0.94399, 0.0742073, 0.243055, 0.035599, -0.279167, -1.91363, -0.0304686, -0.419245, -0.0511673, 0.0568435, -4.13702, -2.62874, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.317495, 0.199562, 0.444869, 1.03625, 0.461063, 0.10515, 0.596668, -0.23565, -0.935177, -0.621923, -4.35426, -0.287785, -0.0422882, -0.405712, 1.26539, 0.0730596, -3.37458, -0.792229, -1.42437, 0.518574, -1.92499, -0.272892, 0.543537, -0.142288, -0.111066, -0.442604, 0.312953, -0.0766076, 0.0645864, -2.65836, 0.346535, -0.0254293, 0.136547, 0.291948, -0.301918, 0.0501793, 0.0349753, -0.314899, -1.0354, -0.461141, 0.831187, -0.569399, 0.345451, -2.51821, -0.295564, 0.451162, 0.23471, 0.0128539, 0.0554303, 0.0381163, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00748026, -0.0328552, -0.0342654, -0.0346346, 0.0125948, 0.00976269, -0.00946031, -0.00127444, 0.00547382, 0.0426337, -0.0521494, 0.0280824, -0.0480202, -0.0402214, -0.00780358, -0.000529439, 0.014543, 0.0446493, -0.0641004, -0.0392327, -0.0472644, 0.00541049, -0.0034759, -0.0132844, -0.0308557, 0.0272854, 0.0193407, 0.0014767, -0.0418737, -0.00834207, -0.0382358, 0.0355996, -0.033436, -0.0644004, -0.0567421, 0.0184382, 0.00576561, -0.0127343, -0.0192676, -0.0171769, 0.00934191, 0.0356295, -0.0344266, 0.0231784, -0.0183199, -0.040784, -0.0113816, 0.00635617, 0.0151175, 0.0234867, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.131359, 0.065928, -0.125738, -0.51081, -0.0972882, 0.294326, -0.449141, -0.238818, 0.994052, -0.0332319, 0.487655, -0.101623, 0.123259, 0.239346, -0.142019, 0.277803, 0.287765, -0.0226604, 0.290325, -0.363171, 0.422254, -0.199128, -0.152828, 0.767985, -0.617403, 0.146447, 0.0134495, -0.156659, -0.111725, 0.211032, -0.0774859, -0.0100138, 0.53996, -0.389115, 0.267883, 0.490781, -0.00592427, 0.123076, 0.468757, 0.667499, 0.687988, -0.652094, -0.0614384, 0.0370788, 0.0628399, -0.622422, 0.0192683, -0.00537123, -0.026165, -0.0919633, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0428962, -0.0374688, 0.160203, -0.613839, -1.30971, 0.0645085, -0.205575, 0.308859, 2.32308, 0.683642, 0.17798, 0.0598207, 0.0980812, -0.0159498, -1.20185, 0.0407716, -0.263344, -0.0309549, 0.670362, -0.112978, 0.755872, 0.678893, 0.149312, -0.140025, -0.120221, -0.00629808, 0.0270603, 0.159344, -0.26384, 0.820953, -0.143937, -0.0483052, 0.21272, 0.051529, 0.517678, 0.0601272, 0.0340761, -0.109752, -0.393434, 0.224398, 0.236294, -0.603543, 0.0772027, 0.40094, -0.298994, -0.38473, -0.193854, 0.0180793, 0.389601, 0.153588, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.242937, 0.284682, 0.571483, 1.06352, -0.10746, -0.746013, -1.07, 0.111378, -2.7344, 0.671388, -0.624832, 1.11042, -0.360025, -0.42662, -0.313483, -0.567813, 1.03751, -0.0117551, -1.52168, 0.898664, 0.593003, 1.58031, 0.230809, 0.367567, 0.133971, -0.20676, -0.348405, -0.222291, -0.253322, -1.45757, -0.343293, 0.674329, -1.5933, -3.34849, -0.778938, 0.432213, 0.035861, 0.719328, -0.413054, 0.300356, -0.631734, 0.0318712, 0.189709, -2.50005, 0.405961, 1.15353, 0.13758, -0.0212919, -0.527345, 0.641154, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0901192, -0.0277403, -0.215728, -0.256655, 0.0365804, 0.152868, -0.0344422, -0.33277, 3.38156, -0.607363, 0.252805, 0.318996, 0.593318, 0.0997416, 0.0264456, 0.021367, 0.338169, 0.673567, 0.287665, -0.163472, 0.414683, 0.288867, 0.122383, 0.0309409, -0.540839, -0.045961, 0.179197, 0.0569545, 0.0668, -1.44221, 0.130079, 0.610683, 0.345655, -0.0174684, 0.23308, 0.320847, 0.0258956, -0.344914, -0.176125, 0.241886, -0.384039, 0.143661, 0.140337, 0.291645, 0.325744, -0.450265, -0.814438, -0.048594, 0.386798, 0.398691, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.617274, 0.0836032, 0.257566, 0.835769, 0.558022, 0.195488, 0.171709, -0.59861, 1.84493, -0.0150866, -0.210816, -0.114235, -0.0726916, -0.173879, 0.131955, -0.26436, 0.301799, 0.55125, -4.83637, -0.173845, -0.0562038, 0.313451, -0.217004, 0.542255, 0.83524, -0.127746, 0.0445139, 0.0346317, 0.0545435, 0.00909218, -0.141516, 0.18779, 0.649153, 1.33732, -0.818757, 0.361803, 0.0224626, -0.311974, -0.521907, 0.169356, -1.01889, 0.512305, 0.732811, -2.7481, 0.464878, 0.451259, -0.0794774, -0.04079, 0.110733, -0.0259144, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.508689, 0.207009, 0.23968, 0.621339, 0.197571, -0.515262, 0.108949, -0.24253, -1.58707, -0.569359, 0.243078, -0.670762, -0.0534863, -1.65345, 0.498747, 0.674453, -0.59479, 0.161098, -0.831581, 0.0517297, -0.189174, -0.399346, 0.157481, 0.0990085, 0.162709, -0.199559, 0.0326205, 0.0853214, 0.2126, 0.539119, 0.263595, -1.82912, 0.0826771, 0.373244, -0.987038, 0.146236, 0.00525443, 0.0479386, -0.0824678, -0.0454254, -0.489911, -0.299839, 0.00776689, -1.75912, -0.131968, 0.582943, 0.0537947, -0.0229962, -1.28043, -0.0687526, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.237169, -0.0840681, 0.306071, 0.00865128, -0.0968777, -0.451108, -0.182749, 0.137013, 0.0662212, 0.404583, 0.0906806, -0.594727, -0.0836159, -0.0193039, 0.41563, 0.221401, -0.679861, 0.680475, 0.370643, -0.302906, 0.365981, 1.61049, -0.0251486, 0.250384, 0.420394, -0.498333, 0.0386534, 0.205083, -0.224881, -1.23522, -0.231658, 0.0882689, 0.138273, 0.0509715, 0.10526, 0.686242, -0.043011, -0.184423, -0.432849, -0.238156, 0.615297, -0.105496, 0.114361, 0.572884, -0.823324, -0.0529253, 0.0706324, 0.0198409, -0.354945, 0.0172577, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0049506, -0.0262812, -0.0279284, 0.0269358, 0.0402161, 0.0145784, 0.0193529, 0.00307014, -0.0336963, 0.0108218, -0.0201564, 0.0296659, 0.0310158, -0.0526409, 0.0165847, 0.0002375, -0.0054985, 0.00217832, -0.0525973, 0.0198344, -0.0443976, -0.0483561, -0.0331141, 0.00454347, 0.0234686, 0.00348794, -0.0141378, 0.0373484, -0.0525376, -0.0283521, -0.0150559, -0.0401629, 0.0411796, -0.0540754, -0.0192431, 0.0216726, -0.04637, 0.00500731, -0.0402902, 0.0165448, 0.0363628, 0.0229712, -0.0138812, -0.040862, -0.0285646, -0.0021425, -0.0209999, 0.0319677, -0.0222577, -0.05176, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0678221, 0.0875314, 0.0116438, -0.0970798, 0.772936, -0.545624, -0.141051, 0.0744865, 2.70945, -0.0343198, -0.79218, -1.3503, 0.368429, -2.57499, 0.264945, -0.0461333, -0.17764, 0.12185, -0.386161, 0.0920428, 0.0856842, 0.121725, 1.64052, -0.0974691, 0.484034, -0.0325745, -0.101318, -0.428794, -0.316571, -0.362592, 0.223983, -2.50776, -1.15647, -2.01586, -0.192809, 0.104566, -0.0120101, 0.268732, -0.635893, -0.288623, 0.648476, -0.0651778, -0.15095, 0.0113257, -0.495935, -0.0632651, -0.0446597, -0.0364008, -2.24868, 0.711986, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.288463, -0.300355, -0.288328, 0.8553, -0.73342, 0.24928, -0.100062, 0.0401702, -2.65624, -0.610204, 0.67793, 0.802906, 0.15561, -0.00547835, -0.438159, 0.341035, 0.399257, 0.0831196, -0.13367, -0.0435247, 0.247276, -0.0648787, 0.0793357, 0.235545, 0.186269, 0.132027, -0.146395, -0.123951, 0.0261328, -0.111903, 0.455557, -0.0550636, -0.34653, -1.63479, -0.204317, 0.379477, 0.0303098, -0.0477353, 0.199559, 0.042792, -0.243688, 0.355704, 0.464547, 0.0852336, 0.211458, -0.145759, 0.0592002, -0.00430049, -0.154795, -0.962302, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.207249, -0.096789, 0.21778, 0.357217, -0.226889, -0.253511, 0.0486459, 0.113025, 5.2983, 0.130913, -0.506925, -0.795803, -0.135449, -0.44019, 0.261129, 0.360467, 0.0447295, -0.288769, -0.266809, -0.193546, -0.125908, 0.659286, 1.09533, 0.325847, 0.254548, -0.0805392, -0.157186, -0.120299, -0.264154, 0.159796, -0.0945474, -0.160354, -0.0684857, -0.34357, -0.173229, 0.588139, 0.0608326, 0.0146147, -0.124427, -0.298633, -1.04353, 0.353295, 0.243243, -0.560206, -0.245326, 0.22761, 0.334666, 0.00975338, 0.0517962, 0.427006, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0649568, -0.398549, 0.283998, -0.580601, -0.575339, -0.0312978, -0.38095, 0.0782903, -1.41758, 0.0733965, 0.848431, -0.170681, 0.0764858, 0.046825, 0.271587, -0.221287, 0.100044, 0.0135967, 0.348899, -0.212512, -0.070016, 0.700228, -0.113931, 0.223457, -0.299588, 0.257564, -0.183583, 0.115226, 0.338061, -0.768598, 0.30943, -0.0423157, 0.713661, -0.403108, 0.666421, -0.187677, -0.0404267, 0.341893, -0.234687, 0.362793, 1.45169, 0.15626, -0.486023, 0.435563, -0.0781989, -0.488456, -0.108356, -0.0243637, 0.153409, 0.0555718, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.119628, 0.116278, 0.331754, 0.161042, 1.64664, -0.106002, 0.30612, -0.351285, 0.347469, -0.845896, 0.595424, 0.268813, 0.215639, -0.0187109, 0.344899, -0.122601, -1.27669, 0.284055, 0.129381, 0.294156, 0.213309, -0.548314, -0.0447301, 0.395103, -0.231306, -0.87853, 0.431788, -0.275227, -0.255797, 1.21375, -0.28512, 0.09717, -0.0849007, -0.137748, -0.195797, 0.410469, -0.0128422, -0.211068, 0.445219, 0.357826, 1.34862, -0.486272, 0.370893, 0.571927, 0.425748, 0.373677, 0.0992524, 0.0439027, -0.0570875, -0.174904, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.11286, -0.0293449, -0.0621066, -0.515425, 5.22321e-05, -0.0384339, 0.118708, -0.222847, 0.359226, -0.27801, 0.629255, 0.0728469, 0.113217, 0.0988369, 0.253395, -0.273629, 0.316258, -0.130029, 0.156869, -0.210085, -0.105867, 0.1583, -0.166534, 0.127633, -0.20876, 0.0201812, -0.051053, -0.0654119, 0.0835238, -0.663669, 0.147577, -0.0287702, -0.0249459, 0.267001, 0.166689, 0.221483, -0.0483156, 0.135355, -0.0568225, 0.216876, -0.596602, 0.0279521, 0.00625357, 0.186286, -0.158872, -0.162796, -0.0485343, 0.0232645, 0.339006, -0.158769, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0039056, 0.00288782, 0.013372, -0.0408285, 0.00655618, -0.0537703, 0.014583, -0.0550954, -0.00999849, 0.0240699, 0.0209653, -0.00139502, -0.0368613, 0.0130199, 0.036012, -0.0405892, -0.00558499, -0.0173896, -0.030071, -0.0393414, 0.0288826, -0.00436332, -0.0435909, 0.0295683, -0.0318165, 0.00937534, 0.00577356, -0.0386423, 0.0321255, 0.034578, -0.00686259, 0.0244421, -0.0185031, -0.0427987, 0.00443616, -0.0178007, -0.0145995, -0.0177453, -0.00231744, -0.056321, 0.0421168, 0.0247125, -0.0332195, 0.0324101, 0.00313089, 0.0404586, -0.0436072, 0.0249205, -0.0427439, -0.0153902, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.276158, 0.514833, 0.525638, 0.511742, 1.17405, -0.320903, 0.53325, 0.230865, -5.52951, -0.565514, -1.09832, 1.60749, -1.01756, 0.787661, 0.717483, 0.469818, -1.06431, -0.0284677, -0.0383786, 0.526844, 0.0855487, -0.449712, -0.784328, 0.237544, 0.346055, -0.113568, 0.6419, 0.606661, 0.301733, 0.334638, 0.808438, 0.440717, 1.0643, 0.307139, -1.11995, 0.138273, -0.0138277, -0.334468, 0.440023, -0.0291714, 1.40602, -0.348178, 1.10972, -0.311574, 0.252014, 0.253455, -0.753681, -0.0144338, 0.530189, -0.274792, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00372012, 0.180531, 0.52974, -0.0682669, -0.298344, 0.0235376, 0.0977713, -0.13317, 1.9081, -0.42218, 0.302864, 0.0368479, 0.119289, -0.0469983, 0.405282, 0.0585585, -0.060205, 0.25505, 0.482761, 0.0832428, 0.441406, 0.0935278, -0.180612, -0.0160449, -0.0613045, -0.0231904, 0.0630266, 0.0744425, 0.0269271, -0.265231, -0.0291742, -0.0535636, -0.0162938, -0.581097, -0.818759, 0.209985, 0.0397716, -0.0659838, 0.114018, -0.32354, -0.00782579, 0.269473, 0.13882, 0.51854, 0.0758185, 0.096417, -0.349074, 0.00619766, 0.299048, -0.289851, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00132726, -0.0274749, -0.049429, -0.0260085, 0.0126392, -0.0507136, -0.000750487, 0.0269326, -0.0167722, -0.0246316, -0.0137325, -0.00252923, -0.00496046, 0.025772, 0.0393321, -0.0101105, 0.00174254, 0.00343147, -0.0303036, -0.00899383, -0.0382894, 0.0331632, -0.00819188, 0.0333315, -0.0138525, -0.00969726, -0.0478274, -0.00480398, -0.03489, 0.0136535, 0.0375721, -0.0177501, 0.0407428, -0.00923988, -0.0434969, -0.0225774, -0.00563138, -0.0490947, -0.0479704, 0.012816, 0.0283796, -0.000571774, -0.0345308, -0.00779596, -0.0543503, -0.042159, 0.00286811, 0.0137756, 0.0292642, 0.0110485, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0214051, 0.0711848, 0.0441676, 0.423984, 0.524544, 0.159603, 0.0480203, -0.300236, 1.74893, 0.0111433, 0.197014, 0.923543, -0.0608398, 0.0638251, 0.721173, -0.0727212, -0.0312495, 0.0558343, -0.0980138, 0.286964, -0.309031, 0.286704, 0.805276, 0.0455501, 0.133872, 0.153573, 0.0170853, -0.195601, 0.201314, -0.243211, 0.102009, -0.450034, -0.430391, 0.190981, -0.171647, 0.137376, -0.0145371, 0.197769, 0.0880365, 0.0180877, -0.0034428, 0.171449, 0.310189, -0.337586, 0.17872, -0.0614445, -0.145323, 0.00280074, -0.372021, 0.0531983, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.221524, 0.706378, 0.839521, 0.215812, 0.531657, -0.0433689, -0.198945, 0.965842, 2.23924, 0.74004, 1.08999, 1.77085, -0.156053, 0.0574351, 1.11044, 0.398294, -0.0358516, 0.483472, 0.763619, -0.267262, -0.062407, 0.163306, 1.17859, 0.009573, -0.411388, 0.265255, 0.909279, -0.400867, 0.308405, -0.0783983, 0.250622, 0.149366, 0.900177, 3.23234, 0.00270751, -0.477991, 0.0286257, 0.207449, 0.0626681, 0.290669, 1.37814, 0.788173, 0.706977, -0.0862723, 0.552498, -0.144532, 0.189113, 0.0149021, 0.258981, 0.832026, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.224947, -0.0330178, 0.805607, 0.276098, 0.433855, -0.598374, 0.339054, 0.0357108, -1.74363, 0.237512, 0.426961, 0.216654, 0.0984003, 0.131158, 0.0522431, -0.0841855, 1.50122, -0.551317, -0.29378, -0.407217, 0.69821, 0.289451, -0.109801, -0.525458, 0.326885, 0.159637, -0.129183, 0.472868, 0.172998, 0.53508, 0.0120634, 0.179581, -0.548574, -0.465444, -0.213767, 0.137041, 0.0066005, 0.0332073, 0.323161, -0.406661, -2.02495, -0.089203, 0.358881, 0.133903, 0.752073, -0.568433, -0.338208, -0.010328, -0.0401752, -0.441022, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.162657, 0.0269416, -0.00592071, 0.040409, -0.0632487, 0.211012, -0.00570551, 0.0617079, -0.148062, 0.000321632, -0.0567887, -0.213911, -0.1192, 0.171615, 0.188656, 0.169172, -0.410003, 0.238174, -0.144307, -0.285625, 0.389913, -0.0768084, -0.0071431, 0.0297661, -0.0146486, 0.106559, 0.092265, 0.181322, -0.047972, -0.256024, 0.140112, -0.0879543, -0.65866, 0.0709482, 0.196539, -0.0698451, 0.0214678, 0.344419, 0.391766, -0.16591, -0.688283, -0.0964599, -0.439058, -0.056701, 0.256541, -0.448255, -0.089867, -0.0101746, 0.00468667, 0.0481961, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.562069, -0.652562, -0.906447, 0.641671, 0.289012, 0.144193, -0.549795, -0.103256, -1.74927, -0.686339, 0.0104203, 0.0334146, -0.248568, -0.520704, -0.437044, 0.440648, -0.267214, -0.297446, 0.254247, -0.12747, 0.300272, 0.588962, 0.56172, 0.389754, 0.849413, 0.442166, -0.867254, 0.0073172, -0.289582, 0.623072, 0.299294, -0.616331, 0.584085, -0.742654, -0.177569, 0.180501, 0.00163131, 0.103265, 0.079112, 0.249087, -1.68705, 0.389685, -0.558422, 0.692871, 0.16535, 0.804991, 0.331574, 0.0306042, -0.638799, 0.0824105, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0522923, 0.00184861, -0.0155445, -0.00888211, -0.0423245, -0.0354298, -0.036179, -0.0333245, -0.0243396, -0.014007, -0.00605677, -0.0324102, -0.0302088, -0.0153718, 0.033828, 0.0235742, 0.0400973, -0.0543651, -0.0332964, -0.0213359, 0.0433305, -0.010349, -0.0192177, 0.0177799, 0.0127845, -0.00276736, 0.0207512, -0.0448035, -0.00982918, 0.00422103, -0.0358527, -0.00634719, 0.0161987, 0.00595428, -0.0459544, 0.00264702, -0.0254746, 0.00257615, -0.00155733, -0.010402, 0.0331584, -0.0266543, 0.0267417, -0.04963, -0.00697034, 0.0029863, 0.000606807, -0.00277472, -0.0149881, -0.00182209, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.183028, 0.118754, -0.138305, -0.141058, 1.82684, 0.236145, 0.249538, -0.4378, 1.81883, -0.971854, 0.394383, 0.623449, 0.142075, -0.188415, -1.31141, 0.274824, -0.136506, -0.0660491, -0.60289, 0.0616666, -0.219002, -0.00207481, -0.312195, 0.703688, -0.0521945, -0.337182, 0.0802589, 0.652171, -0.616087, 0.764552, -0.00121925, -0.014165, -0.280418, -0.685832, 0.210972, 0.394419, 0.0413575, 0.260205, 0.809888, 0.14749, 2.77715, -0.0356566, 0.316925, -0.443612, 0.193395, -0.510113, 0.358713, 0.0434483, -0.3624, -0.0275692, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0326766, 0.0981174, 0.0100184, -0.215124, 0.208781, -0.929685, 0.376257, 0.00890347, -0.101916, 0.181842, -1.58191, -0.145149, -0.184735, 0.23082, 0.0898909, -0.140125, -0.101809, -0.697009, 0.407042, 0.109476, -0.317421, 0.0420133, -0.0878543, 0.0604008, -0.0201643, -0.0769754, 0.225562, -0.0324858, -0.0582055, -1.65773, 0.0408354, 0.0289451, 0.16221, 0.784222, -0.270099, -0.0798351, -0.0114031, -0.161752, 0.35547, 0.241391, -1.09894, -0.245116, 0.0749781, 0.218563, 0.48369, -0.151712, -0.213852, 0.0320677, 0.114353, 0.00216201, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.320516, -0.140274, -0.614656, 1.40349, -1.08187, 0.532751, -0.338517, 0.241094, -0.215155, 0.248939, 0.682228, -0.0728491, 0.196975, 0.183376, -0.905355, -0.433116, 0.380616, -0.122699, 0.0458576, -0.136272, 0.285372, 0.47379, -0.00496563, 0.133058, -0.206585, 0.584705, -0.253092, 0.0388551, 0.489511, -1.38452, 0.0767565, -0.16121, 0.652601, -0.750351, 0.215861, -0.39648, 0.0237346, 0.105002, 0.105678, -0.0254853, -1.93761, 0.200335, -0.0818364, 0.0646253, 0.318121, 1.35373, 0.141369, -0.034768, -0.0347533, -0.143595, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.211399, 0.0690854, 0.237797, 0.261459, 0.497464, -0.57487, 0.0519737, 0.00121272, 3.69249, -0.441898, 2.78505, 0.383336, -0.0530825, 0.00509947, 0.495998, -0.04163, -0.323304, -0.417429, -0.109399, 0.144584, -0.049255, -0.222124, 0.0285879, 0.289997, -0.172794, 0.0722204, 0.206634, -0.207947, -0.00547226, 1.02206, 0.00877704, 0.00848922, 0.501614, 1.03058, -0.152777, 0.380129, 0.0397173, -0.496618, 0.655509, 0.00838904, -1.66834, -0.208665, 0.35529, -0.313177, 0.287379, -0.221793, -0.052691, 0.0197572, 0.116074, -0.0757014, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0202978, -0.0454639, 0.0201889, 0.0309532, -0.0312355, -0.0203498, -0.0037927, -0.0448247, -0.0402365, -0.0445042, 0.0186899, 0.00391422, -0.0313823, 0.0326569, 0.0353074, -0.015512, -0.0011952, 0.0183358, -0.0405123, -0.0115252, -0.0138372, 0.0301999, -0.00455052, 0.0428189, -0.0505259, 0.00541553, -0.0119807, 0.036248, -0.00129183, -0.0381496, -0.0456021, -0.0129904, -0.0296187, 0.036516, -0.0172417, 0.0148345, -0.0320484, -0.0346021, 0.0179681, -0.00923148, -0.0190496, -0.0440467, -0.0284443, -0.0302567, 0.000599613, 0.0121688, -0.0239802, -0.00325375, -0.00440831, -0.00992748, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0491417, 0.0372621, 0.0295431, 0.0242808, -0.0353743, -0.0520351, -0.00803418, 0.0223633, -0.0378554, -0.0248534, 0.0197947, -0.00978103, 0.00463354, -0.0289331, -0.0151073, 0.00621627, -0.0595264, 0.0284874, 0.00146498, -0.0151124, 0.0215691, -0.0262976, -0.0513857, 0.0514284, -0.0510876, -0.0687426, -0.0159464, -0.0413595, -0.0806595, -0.0458655, 0.0244551, 0.0269717, -0.063732, -0.114445, -0.0413687, 0.0273868, 0.029383, 0.00273765, -0.0286849, -0.0395066, 0.0288952, -0.0656248, -0.0131013, 0.0260297, 0.00216205, -0.00498101, 0.00289325, -0.018248, -0.0381718, -0.0391231, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.121496, -0.704567, -0.784994, 0.683079, 0.983359, 0.346885, 0.060924, 0.180059, -2.28088, 0.213689, 0.00732961, -0.591522, 0.0417499, 0.174534, -0.939632, -0.0166417, -1.4128, 1.18616, 0.386544, -0.453959, -0.681728, -0.406766, 0.412417, -3.45506, 0.877222, -0.0511218, -0.729485, 0.0615302, 0.0805479, -0.157378, 0.555481, -0.404776, -0.336274, -1.83381, 0.462879, -2.41848, -0.00303985, 0.352423, 0.904489, -0.502513, -0.0213078, -0.463184, 0.187472, 0.40856, -0.243005, -0.0376614, -0.252042, 0.0136387, 0.000876136, 0.0753425, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.131718, -0.0627861, 0.0886234, -0.215681, 0.240793, -0.298192, -0.72823, 0.322354, 0.115271, 0.403677, 0.783359, 0.072729, -0.11161, 0.127228, -0.71187, -0.302578, 0.727903, 0.104456, -0.230683, -0.0907753, -0.321483, 0.951222, -0.0147601, 0.101256, 0.44714, 1.28568, -0.851974, -0.201114, 0.209145, -0.423355, -0.0242058, 0.118738, 0.381767, 0.994036, 0.200813, 0.69214, -0.0161488, 0.183875, 0.195336, -0.487298, 0.884076, 0.495284, -1.07293, -0.482513, -0.082629, -0.626833, 0.0488731, 0.00386628, -0.0852957, 0.0160101, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.118726, 0.0557777, -0.0465031, 0.520922, 0.504208, -0.0121123, 0.510061, -0.304661, -0.0788149, -0.322081, -0.0627695, -0.0547663, -0.0318706, -0.0928886, 0.279786, -0.191649, 0.223783, -0.0109191, -0.36738, 0.138425, 0.0838745, -0.577839, -0.0451322, 0.504246, -0.349297, -1.13162, 0.718398, -0.0976719, -0.571769, 0.160479, -0.682647, -0.0752519, -0.328195, 0.182541, -0.390638, 0.461333, 0.0153698, -0.08693, 0.0907199, 0.105762, -0.137384, -0.11503, 0.963776, -0.419162, 0.0295742, -0.0841584, 0.0621019, 0.0213939, 0.0487238, 0.0173752, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0742649, -0.527562, 0.929224, 0.884514, 0.579743, 0.365185, 0.0970159, -0.22851, -0.642014, 0.00950863, -0.340641, -0.786525, 0.216272, 0.129639, 0.920945, -0.428847, 0.129382, 0.139804, 1.25719, -0.692286, 0.127217, -0.264513, -0.0942851, -1.49945, -0.510347, -0.0746417, -0.17645, 0.015984, -0.0157018, -0.932162, 0.448181, -0.182768, 0.0400141, 0.448987, -0.0978104, -1.14905, -0.0286098, 1.675, 0.306963, -0.256696, -2.34413, 0.0337146, 0.261494, 0.334413, -0.337273, 0.141771, -0.00165944, -0.015304, -0.00200601, 0.0113477, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.202357, 0.0527575, 0.460887, 0.154272, -0.448886, -0.151226, -0.162182, 0.0329984, 0.201192, -0.0553344, 0.677937, -0.605672, 0.0439346, 0.228644, 0.285718, 0.112715, 0.184876, 0.0129289, 0.00171671, -0.00732973, 0.089982, 0.110873, 0.00552613, 0.112555, -1.2602, 0.121457, -0.0938216, -0.0138127, -0.0548336, 0.0778855, 0.725923, -0.335075, -0.152917, -0.767727, -0.533902, 0.0666613, 0.00467659, -0.118981, 0.316473, -0.123364, -0.883034, -0.0934581, 0.0547123, 0.0739057, -0.132754, 0.251855, -0.0807286, -0.00985845, 0.0042193, 0.424092, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0233831, 0.0266105, 0.0265018, 0.0100612, 0.0223637, -0.00748476, -0.0157573, -0.017922, -0.0127971, 0.0425681, -0.0422378, -0.00843786, -0.0275693, -0.039618, 0.0350924, -0.0171464, -0.0376275, -0.0317645, -0.0432646, -0.00911338, -0.0359589, -0.0252534, 0.0110859, 0.0413248, -0.0518821, 0.027189, 0.00552034, 0.0387946, -0.0238713, 0.036137, 0.0123311, -0.0386112, -0.0308397, -0.0152322, -0.00908487, -0.030028, 0.0275658, -0.0353255, 0.0122659, -0.0108852, 0.026277, 0.0231654, -0.00191745, -0.0301709, -0.0291726, -0.0090879, 0.0368843, -0.00378145, -0.0184604, -0.0338699, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0921919, -0.14797, 0.175865, -0.213415, -0.248086, 0.494536, 0.155678, 0.176972, 0.154189, -0.03703, 0.164632, -0.589771, -0.191835, 0.340916, 0.105349, -0.0557027, -0.214308, -0.336576, -0.93992, -0.179785, 0.0951914, 0.407241, -0.0467055, -0.407537, -0.124711, -0.0229503, 0.197648, -0.277951, 0.0350711, 0.415963, 0.20446, -0.0941932, 0.311563, 1.07625, -0.218759, -1.13176, 0.0124263, -0.160523, -0.256812, -0.635574, -0.308739, 0.132273, 0.30812, -1.82546, -0.0155223, 0.144955, 0.171497, -0.00197202, -0.0663148, 0.0484112, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0079635, -0.0308895, -0.0459753, -0.0286251, 0.026532, 0.0151648, 0.0323985, -0.0331053, 0.0317018, -0.0470702, -0.0364772, 0.018317, -0.0303275, -0.0481791, -0.0330014, -0.0526128, 0.0405709, -0.0558165, -0.00492793, -0.000112245, -0.0245305, -0.0211412, -0.0139768, -0.0359785, -0.0116347, -0.00471607, 0.0027392, 0.0156032, -0.040774, -0.0370695, -0.0262075, -0.0385525, -0.0465704, -0.0292345, 0.0184076, -0.0453868, 0.0107846, 0.0112894, 0.0231499, -0.0386149, 0.0338632, 0.0165135, -0.0397115, 0.026994, 0.0391351, -0.0515499, -0.0248172, 0.0416515, -0.0154765, 0.00597119, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0172232, -0.0698065, -0.526405, -0.539518, 0.57868, 0.078549, 0.0669394, 0.122971, -0.198043, 0.391094, -0.205912, 0.108125, -0.0379269, -0.0195867, -0.0497366, -0.100151, -0.0138612, 0.147412, -0.425743, -0.0436501, -0.011598, -0.124386, 0.0129832, -1.9736, 0.102623, -0.127622, 0.115393, -0.0508944, -0.0469314, 0.15095, -0.248714, 0.00986571, 0.0999423, 1.20171, -0.125212, -0.399059, 0.0401261, 0.0650811, -0.180443, 0.110304, 0.282302, 1.0765, 0.229965, -0.390405, -0.841558, -0.582603, 0.0512247, -0.0216785, 0.0123177, 0.118768, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.163115, 0.340728, -0.0105622, 0.00263251, -0.185762, -0.0930189, -0.216982, -0.038434, -0.179728, -0.00360857, -0.114609, -0.509087, 0.0678658, 0.0401867, -0.467311, 0.18933, 0.231526, 0.101716, 0.0215964, -0.199866, -0.0821424, 0.239491, 0.140773, -1.42446, -0.263001, -0.0281122, 0.153804, -0.112614, -0.139501, -0.0395304, -0.349384, -0.127322, 0.261229, 0.577899, 0.178655, -0.15752, -0.0287357, 0.12372, -0.0530046, -1.02932, -1.01645, -0.868809, 0.139252, -0.293072, -0.0999208, 0.235218, 0.0910177, 0.0144014, 0.0232313, -0.144744, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0190028, -0.0201269, 0.0436591, 0.0200741, -0.0224424, 0.00658919, -0.0408961, -0.0290105, -0.0350561, 0.00586366, 0.0297205, -0.0397887, -0.0342188, -0.0514203, -0.0454355, 0.0458263, -0.0379616, 0.00214433, 0.000550025, 0.0123461, -0.00835529, -0.0020789, -0.0336117, -0.0136546, -0.0325466, -0.0428492, -0.0425204, 0.00114395, -0.0340992, 0.0302936, -0.0517288, 0.00907139, 0.0374807, -0.0522613, -0.0447654, 0.0274122, -0.0213943, -0.0275108, 0.025179, -0.0410131, -0.0166919, -0.0019868, -0.0520336, 0.00351316, -0.0340331, 0.0153714, 0.0433568, 0.0384234, -0.00728094, 0.0109747, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.850679, 0.402001, 1.09943, -0.247619, 0.265782, 0.151748, -1.37013, 0.140174, -1.35113, 0.391853, -0.55326, -0.303108, -0.0504397, 0.430349, 0.268073, 0.00300276, -0.192202, 0.408268, -1.7647, -0.0972029, -0.324217, 0.38294, -0.390775, 0.0377556, -2.45518, 0.108263, 0.294577, -0.16327, -0.172342, 0.578341, 0.552614, 0.350545, -0.0741933, -0.315432, -0.454022, 0.0322751, 0.0153834, -0.392487, -0.290087, 0.207886, 0.12545, -0.997849, -0.470353, -4.61079, -0.301206, -0.176614, -0.344975, -0.0194357, 0.303344, 0.25114, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0872491, 0.00801766, -0.125714, -0.15997, -0.367815, -0.142764, -0.100903, 0.102022, 0.295183, -0.0839929, 0.188544, 0.283873, -0.047236, 0.00806049, -0.0955454, -0.0705182, 0.0930758, -0.0403115, 0.020005, -0.133084, -0.0346169, -0.0157022, -0.0424768, -0.0487894, 0.0157557, 0.17854, -0.077986, -0.0822448, 0.0483291, 0.0624417, 0.16213, 0.0695881, 0.216506, 0.349753, 0.105429, -0.00523228, -0.0122715, 0.0293489, -0.179653, -0.279787, -0.87241, 0.408243, 0.0674201, -0.153822, -0.11082, -0.129318, -0.0702345, 0.000226285, 0.0968054, 0.0225748, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.190439, 0.15082, 0.386733, 0.531958, 0.314902, -0.0784747, 0.879735, -0.883966, 0.972408, 0.00574481, 0.225921, -0.375314, -0.637905, 0.236854, 0.645161, 0.592802, 0.100854, 0.131732, -4.02082, -0.0181742, -0.162546, 0.57556, 0.267652, 0.561673, -0.393579, -0.21253, 0.0425627, -0.505397, -0.0926365, 0.58012, 0.203136, -0.565826, 1.05723, -1.55528, -0.391513, 0.409773, -0.0335211, -0.270469, -1.49385, 0.570717, -0.365832, -0.0543463, 0.870878, -1.19037, 0.889449, 0.43853, -1.09693, -0.0108596, 0.00583024, 0.0488181, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.170495, -0.29505, -0.712324, 0.00252228, 0.0287553, 0.348561, -0.0425441, -0.258961, 0.289163, -0.0693566, -0.0591285, 1.43617, 0.457084, -0.112324, 0.214804, -0.856008, -0.388732, -0.0169601, -0.931433, 0.398195, 0.2561, 0.126263, 0.0376745, 0.202281, 0.800689, 0.610493, -0.715969, 0.860661, -0.0898541, 0.46106, 0.201046, -0.200722, -0.150779, -1.77806, -0.710033, 0.528255, -0.036294, 0.24623, -0.0823783, -0.165019, 0.508165, 0.537641, -0.221736, 0.19054, -0.114307, 1.22094, -0.279002, 0.00819996, -0.0637884, -0.142848, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0395729, -0.0178856, -1.2444, 0.0120912, 0.132369, 0.151044, -0.118606, 0.0446959, -1.21777, 0.412088, -0.265231, 0.0866573, -0.170522, -0.232516, -1.22388, 0.359927, -0.158276, -0.24126, 0.0329468, 0.0672447, -0.0305954, 0.143139, -0.697394, 0.147067, 0.202604, 0.592432, -0.240298, 0.263507, -0.0215858, 0.322796, -0.285573, -0.275818, -1.1273, 1.30294, -0.0257434, 0.329444, 0.0012372, 0.237921, 0.180692, 0.207421, 0.814665, 0.170121, -0.379903, -0.56931, -0.262911, -0.684016, -0.187478, 0.0482392, 0.440305, -0.0132303, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0212341, -0.0800508, -0.25753, 0.117046, -0.013013, -0.175259, -0.0581474, -0.0579808, -1.5335, -0.143032, 0.248419, 0.0773075, -0.0124135, -0.120421, 0.0145677, -0.00476586, -0.345544, -0.134876, 0.022851, -0.0259735, -0.0341165, 0.35566, 0.174245, 0.338198, 0.175189, 0.0969881, -0.162425, 0.260334, -0.114348, -0.459504, -0.0773729, -0.0368554, -0.439612, -0.659227, 0.113425, 0.395001, 0.0191525, 0.244851, -0.0598632, 0.122356, -0.643888, 0.0870369, 0.247718, -0.328921, 0.291406, -0.133286, -0.015552, -0.0313212, -0.010852, -0.148571, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.662, 0.6006, 0.8374, -0.187, -0.6997, -1.274, -0.158, -0.673, -4.31, -0.4883, -1.04, -1.975, -1.76, -3.174, 0.811, 0.1835, -1.194, -1.218, -1.7705, 0.253, -1.511, 0.3083, 0.4983, 0.14, -2.201, 0.5137, 0.3914, -0.4004, 0.4893, -2.328, 0.7124, -2.475, 0.618, -8.625, -2.975, 0.0508, 0.04404, -1.777, -0.944, 0.0742, 0.243, 0.0356, -0.279, -1.914, -0.03047, -0.4192, -0.05118, 0.05685, -4.137, -2.629], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3174, 0.1996, 0.4448, 1.036, 0.4612, 0.10516, 0.5967, -0.2356, -0.935, -0.622, -4.355, -0.2878, -0.0423, -0.4058, 1.266, 0.07306, -3.375, -0.792, -1.425, 0.5186, -1.925, -0.273, 0.5435, -0.1423, -0.1111, -0.4426, 0.313, -0.0766, 0.0646, -2.658, 0.3464, -0.02544, 0.1366, 0.292, -0.302, 0.05017, 0.03497, -0.315, -1.035, -0.4612, 0.831, -0.5693, 0.3455, -2.518, -0.2957, 0.4512, 0.2347, 0.012856, 0.05542, 0.03812], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.00748, -0.03287, -0.03427, -0.03464, 0.012596, 0.009766, -0.00946, -0.001274, 0.005474, 0.04263, -0.05215, 0.02808, -0.04803, -0.04022, -0.007805, -0.0005293, 0.01454, 0.04465, -0.0641, -0.03925, -0.04727, 0.00541, -0.003475, -0.01328, -0.03085, 0.02728, 0.01935, 0.001476, -0.04187, -0.00834, -0.03824, 0.0356, -0.03345, -0.0644, -0.05673, 0.01843, 0.005764, -0.01273, -0.01927, -0.01718, 0.00934, 0.03564, -0.03442, 0.02318, -0.01833, -0.04077, -0.01138, 0.006355, 0.015114, 0.02348], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1313, 0.0659, -0.1257, -0.5107, -0.0973, 0.2944, -0.4492, -0.2388, 0.994, -0.03323, 0.4875, -0.1016, 0.1232, 0.2394, -0.142, 0.2778, 0.2878, -0.02266, 0.2903, -0.3633, 0.4224, -0.1991, -0.1528, 0.768, -0.617, 0.1465, 0.01345, -0.1566, -0.11176, 0.211, -0.0775, -0.01002, 0.54, -0.3892, 0.2678, 0.4907, -0.005924, 0.12305, 0.4688, 0.6675, 0.688, -0.652, -0.06143, 0.03708, 0.06287, -0.6226, 0.01927, -0.00537, -0.02617, -0.092], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0429, -0.03748, 0.1602, -0.614, -1.31, 0.0645, -0.2056, 0.3088, 2.322, 0.6836, 0.178, 0.0598, 0.0981, -0.01595, -1.202, 0.04077, -0.2634, -0.03096, 0.6704, -0.113, 0.756, 0.6787, 0.1493, -0.14, -0.12024, -0.006298, 0.02705, 0.1593, -0.264, 0.821, -0.1439, -0.0483, 0.2128, 0.05154, 0.5176, 0.06012, 0.0341, -0.10974, -0.3936, 0.2244, 0.2363, -0.6035, 0.0772, 0.401, -0.299, -0.3848, -0.1938, 0.01808, 0.3896, 0.1536], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2429, 0.2847, 0.5713, 1.063, -0.1075, -0.746, -1.07, 0.1114, -2.734, 0.6714, -0.625, 1.11, -0.36, -0.4265, -0.3135, -0.568, 1.037, -0.01176, -1.521, 0.8984, 0.593, 1.58, 0.2308, 0.3677, 0.1339, -0.2068, -0.3484, -0.2223, -0.2534, -1.458, -0.3433, 0.6743, -1.594, -3.348, -0.779, 0.4321, 0.03586, 0.719, -0.413, 0.3003, -0.632, 0.03186, 0.1897, -2.5, 0.406, 1.153, 0.1376, -0.02129, -0.5273, 0.641], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.09015, -0.02774, -0.2157, -0.2566, 0.0366, 0.1528, -0.03445, -0.3328, 3.38, -0.6074, 0.2527, 0.319, 0.5933, 0.09973, 0.02644, 0.02136, 0.3381, 0.6733, 0.2876, -0.1635, 0.4148, 0.2888, 0.1224, 0.03094, -0.541, -0.04596, 0.1792, 0.05695, 0.0668, -1.442, 0.1301, 0.611, 0.3457, -0.01747, 0.233, 0.3208, 0.0259, -0.345, -0.1761, 0.242, -0.384, 0.1437, 0.1404, 0.2917, 0.3257, -0.4502, -0.8145, -0.04858, 0.3867, 0.3987], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.617, 0.0836, 0.2576, 0.836, 0.558, 0.1954, 0.1718, -0.5986, 1.845, -0.01508, -0.2108, -0.11426, -0.0727, -0.1738, 0.132, -0.2644, 0.3018, 0.5513, -4.836, -0.1738, -0.0562, 0.3135, -0.217, 0.5425, 0.8354, -0.1277, 0.04453, 0.03464, 0.05453, 0.009094, -0.1415, 0.1877, 0.649, 1.337, -0.819, 0.3618, 0.02246, -0.312, -0.522, 0.1693, -1.019, 0.512, 0.733, -2.748, 0.4648, 0.4512, -0.07947, -0.0408, 0.1107, -0.02591], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.509, 0.207, 0.2396, 0.6216, 0.1976, -0.515, 0.10895, -0.2426, -1.587, -0.5693, 0.243, -0.671, -0.0535, -1.653, 0.4988, 0.6743, -0.5947, 0.1611, -0.8315, 0.05173, -0.1892, -0.3994, 0.1575, 0.099, 0.1627, -0.1996, 0.03262, 0.0853, 0.2126, 0.539, 0.2637, -1.829, 0.0827, 0.3733, -0.987, 0.1462, 0.005253, 0.04794, -0.08246, -0.0454, -0.49, -0.2998, 0.007767, -1.759, -0.132, 0.583, 0.0538, -0.023, -1.28, -0.0687], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2372, -0.08405, 0.3062, 0.00865, -0.09686, -0.4512, -0.1827, 0.137, 0.0662, 0.4045, 0.0907, -0.5947, -0.0836, -0.0193, 0.4155, 0.2214, -0.6797, 0.6807, 0.3706, -0.303, 0.366, 1.61, -0.02515, 0.2505, 0.4204, -0.4983, 0.03867, 0.2051, -0.2249, -1.235, -0.2317, 0.08826, 0.1383, 0.05096, 0.1053, 0.686, -0.043, -0.1844, -0.4329, -0.2382, 0.615, -0.10547, 0.1144, 0.5728, -0.823, -0.05292, 0.0706, 0.01984, -0.355, 0.01726], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.00495, -0.02628, -0.02792, 0.02693, 0.04022, 0.01458, 0.01935, 0.00307, -0.0337, 0.01082, -0.02016, 0.02966, 0.03102, -0.05264, 0.01659, 0.0002375, -0.005497, 0.002178, -0.0526, 0.01984, -0.0444, -0.04837, -0.0331, 0.004543, 0.02347, 0.003489, -0.01414, 0.03735, -0.05255, -0.02835, -0.01505, -0.04016, 0.04117, -0.05408, -0.01924, 0.02167, -0.04636, 0.00501, -0.04028, 0.01654, 0.03638, 0.02296, -0.01388, -0.04086, -0.02856, -0.002142, -0.021, 0.03198, -0.02226, -0.05176], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0678, 0.0875, 0.01164, -0.0971, 0.773, -0.5454, -0.141, 0.07446, 2.709, -0.03433, -0.792, -1.351, 0.3684, -2.574, 0.265, -0.04614, -0.1776, 0.1218, -0.3862, 0.09204, 0.0857, 0.1217, 1.641, -0.0975, 0.4841, -0.03256, -0.1013, -0.4287, -0.3167, -0.3625, 0.224, -2.508, -1.156, -2.016, -0.1927, 0.10455, -0.01201, 0.2688, -0.6357, -0.2886, 0.6484, -0.0652, -0.151, 0.01132, -0.4958, -0.0633, -0.04465, -0.0364, -2.248, 0.712], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2886, -0.3003, -0.2883, 0.8555, -0.7334, 0.2493, -0.10004, 0.04016, -2.656, -0.6104, 0.6777, 0.8027, 0.1556, -0.005478, -0.4382, 0.341, 0.3992, 0.0831, -0.1337, -0.04352, 0.2473, -0.0649, 0.07935, 0.2356, 0.1863, 0.1321, -0.1464, -0.12396, 0.02614, -0.1119, 0.4556, -0.05505, -0.3464, -1.635, -0.2043, 0.3794, 0.0303, -0.04773, 0.1996, 0.0428, -0.2437, 0.3557, 0.4646, 0.0852, 0.2114, -0.1458, 0.0592, -0.0043, -0.1548, -0.9624], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2073, -0.0968, 0.2178, 0.3572, -0.2269, -0.2534, 0.04865, 0.11304, 5.297, 0.1309, -0.507, -0.796, -0.1355, -0.4402, 0.2612, 0.3604, 0.04474, -0.2888, -0.2668, -0.1936, -0.1259, 0.659, 1.096, 0.326, 0.2546, -0.08057, -0.1572, -0.1203, -0.2642, 0.1598, -0.09454, -0.1604, -0.0685, -0.3435, -0.1732, 0.5884, 0.06082, 0.01462, -0.12445, -0.2986, -1.044, 0.3533, 0.2433, -0.56, -0.2454, 0.2277, 0.3347, 0.00975, 0.0518, 0.427], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.06494, -0.3984, 0.284, -0.5806, -0.575, -0.0313, -0.3809, 0.0783, -1.418, 0.0734, 0.8486, -0.1707, 0.0765, 0.0468, 0.2715, -0.2213, 0.10004, 0.013596, 0.3489, -0.2125, -0.07, 0.7, -0.11395, 0.2235, -0.2996, 0.2576, -0.1836, 0.11523, 0.3381, -0.7686, 0.3093, -0.04233, 0.714, -0.403, 0.6665, -0.1876, -0.04044, 0.3418, -0.2347, 0.3628, 1.452, 0.1562, -0.486, 0.4355, -0.0782, -0.4885, -0.10834, -0.02437, 0.1534, 0.05557], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1196, 0.1163, 0.3318, 0.161, 1.646, -0.106, 0.3062, -0.3513, 0.3474, -0.8457, 0.595, 0.2688, 0.2157, -0.0187, 0.345, -0.1226, -1.276, 0.284, 0.1294, 0.2942, 0.2133, -0.5483, -0.04474, 0.395, -0.2313, -0.8784, 0.432, -0.2751, -0.2559, 1.214, -0.2852, 0.09717, -0.0849, -0.1377, -0.1958, 0.4104, -0.01284, -0.211, 0.4453, 0.358, 1.349, -0.4863, 0.3708, 0.572, 0.4258, 0.3738, 0.09924, 0.0439, -0.0571, -0.1749], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.11285, -0.02934, -0.0621, -0.5156, 5.22e-05, -0.03842, 0.1187, -0.2229, 0.3591, -0.278, 0.6294, 0.0729, 0.1132, 0.0988, 0.2534, -0.2737, 0.3162, -0.13, 0.1569, -0.2101, -0.1059, 0.1583, -0.1665, 0.1277, -0.2087, 0.02019, -0.05106, -0.0654, 0.0835, -0.6636, 0.1476, -0.02876, -0.02495, 0.267, 0.1667, 0.2214, -0.0483, 0.1354, -0.05682, 0.2169, -0.5967, 0.02795, 0.006252, 0.1863, -0.1588, -0.1628, -0.04852, 0.02327, 0.339, -0.1588], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.003906, 0.002888, 0.013374, -0.04083, 0.006557, -0.05377, 0.01458, -0.05508, -0.01, 0.02406, 0.02097, -0.001395, -0.03687, 0.01302, 0.036, -0.0406, -0.005585, -0.0174, -0.03008, -0.03934, 0.02888, -0.004364, -0.04358, 0.02957, -0.03183, 0.00938, 0.005775, -0.03864, 0.03214, 0.03458, -0.006863, 0.02444, -0.01851, -0.0428, 0.004436, -0.0178, -0.0146, -0.01775, -0.002317, -0.05634, 0.0421, 0.02472, -0.03323, 0.0324, 0.00313, 0.04047, -0.0436, 0.02492, -0.04276, -0.01539], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2761, 0.5146, 0.526, 0.5117, 1.174, -0.3208, 0.533, 0.2308, -5.53, -0.5654, -1.099, 1.607, -1.018, 0.7876, 0.7173, 0.4697, -1.064, -0.02847, -0.0384, 0.527, 0.0856, -0.4497, -0.784, 0.2375, 0.346, -0.1136, 0.642, 0.6064, 0.3018, 0.3347, 0.8086, 0.4407, 1.064, 0.3071, -1.12, 0.1383, -0.013824, -0.3345, 0.44, -0.02917, 1.406, -0.3481, 1.109, -0.3115, 0.252, 0.2534, -0.754, -0.014435, 0.5303, -0.275], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.00372, 0.1805, 0.53, -0.06824, -0.2983, 0.02354, 0.0978, -0.1332, 1.908, -0.422, 0.303, 0.03683, 0.11926, -0.047, 0.4053, 0.05856, -0.0602, 0.2551, 0.4827, 0.08325, 0.4414, 0.0935, -0.1807, -0.01605, -0.0613, -0.0232, 0.06305, 0.07446, 0.02693, -0.2651, -0.02917, -0.05356, -0.0163, -0.581, -0.819, 0.21, 0.03976, -0.066, 0.114, -0.3235, -0.00783, 0.2695, 0.1388, 0.5186, 0.0758, 0.09644, -0.349, 0.0062, 0.299, -0.2898], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0013275, -0.02748, -0.04944, -0.026, 0.01264, -0.05072, -0.0007505, 0.02693, -0.01677, -0.02463, -0.01373, -0.00253, -0.00496, 0.02577, 0.03934, -0.01011, 0.001742, 0.003431, -0.0303, -0.008995, -0.0383, 0.03317, -0.008194, 0.03333, -0.013855, -0.0097, -0.04782, -0.004803, -0.03488, 0.01366, 0.03757, -0.01775, 0.04074, -0.00924, -0.0435, -0.02258, -0.00563, -0.0491, -0.04797, 0.01282, 0.02838, -0.0005717, -0.03455, -0.007797, -0.05435, -0.04214, 0.002869, 0.01378, 0.02927, 0.01105], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.02141, 0.07117, 0.04416, 0.424, 0.5244, 0.1595, 0.04803, -0.3003, 1.749, 0.01115, 0.197, 0.9233, -0.06085, 0.06384, 0.721, -0.0727, -0.03125, 0.05585, -0.098, 0.2869, -0.309, 0.2866, 0.805, 0.04556, 0.1339, 0.1536, 0.01709, -0.1956, 0.2013, -0.2432, 0.102, -0.45, -0.4304, 0.191, -0.1716, 0.1373, -0.014534, 0.1978, 0.088, 0.01808, -0.003443, 0.1715, 0.3103, -0.3376, 0.1787, -0.06143, -0.1453, 0.0028, -0.372, 0.0532], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2216, 0.7065, 0.8394, 0.2158, 0.5317, -0.04337, -0.199, 0.966, 2.238, 0.74, 1.09, 1.7705, -0.156, 0.05743, 1.11, 0.3982, -0.03586, 0.4834, 0.7637, -0.2673, -0.0624, 0.1633, 1.179, 0.009575, -0.4114, 0.2651, 0.909, -0.401, 0.3083, -0.07837, 0.2507, 0.1494, 0.9004, 3.232, 0.002708, -0.478, 0.02863, 0.2074, 0.0627, 0.2908, 1.378, 0.788, 0.707, -0.08624, 0.5527, -0.1445, 0.1891, 0.0149, 0.259, 0.832], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.225, -0.03302, 0.8057, 0.2761, 0.4338, -0.598, 0.339, 0.0357, -1.743, 0.2375, 0.427, 0.2167, 0.0984, 0.1311, 0.05225, -0.08417, 1.501, -0.5513, -0.2937, -0.4072, 0.698, 0.2896, -0.1098, -0.5254, 0.327, 0.1597, -0.1292, 0.473, 0.173, 0.535, 0.01206, 0.1796, -0.5483, -0.4653, -0.2137, 0.1371, 0.0066, 0.0332, 0.3232, -0.4067, -2.025, -0.08923, 0.359, 0.1339, 0.752, -0.5684, -0.3381, -0.01033, -0.04016, -0.441], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1626, 0.02695, -0.00592, 0.0404, -0.06323, 0.211, -0.005707, 0.0617, -0.1481, 0.0003216, -0.0568, -0.2139, -0.1192, 0.1716, 0.1886, 0.1692, -0.41, 0.2382, -0.1443, -0.2856, 0.39, -0.0768, -0.007145, 0.02977, -0.01465, 0.10657, 0.0923, 0.1813, -0.04797, -0.256, 0.1401, -0.08795, -0.6587, 0.0709, 0.1965, -0.0698, 0.02147, 0.3445, 0.3918, -0.1659, -0.6885, -0.09644, -0.439, -0.0567, 0.2566, -0.4482, -0.08984, -0.01018, 0.00469, 0.0482], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.562, -0.6523, -0.9062, 0.6416, 0.289, 0.1442, -0.55, -0.1033, -1.749, -0.6865, 0.01042, 0.03342, -0.2485, -0.5205, -0.437, 0.4407, -0.2673, -0.2974, 0.2542, -0.1274, 0.3003, 0.589, 0.5615, 0.3896, 0.8496, 0.4421, -0.867, 0.007317, -0.2896, 0.623, 0.2993, -0.616, 0.584, -0.7427, -0.1776, 0.1805, 0.001632, 0.1033, 0.0791, 0.2491, -1.6875, 0.3896, -0.5586, 0.693, 0.1654, 0.805, 0.3315, 0.03061, -0.6387, 0.0824], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0523, 0.001848, -0.01554, -0.00888, -0.04233, -0.03543, -0.0362, -0.03333, -0.02434, -0.01401, -0.006058, -0.0324, -0.03021, -0.01537, 0.0338, 0.02357, 0.0401, -0.05435, -0.0333, -0.02133, 0.04333, -0.010345, -0.01921, 0.01778, 0.01279, -0.002768, 0.02075, -0.0448, -0.00983, 0.004223, -0.03586, -0.006348, 0.0162, 0.005955, -0.04596, 0.002647, -0.02548, 0.002577, -0.001557, -0.0104, 0.03317, -0.02666, 0.02675, -0.04962, -0.00697, 0.002987, 0.000607, -0.002775, -0.01499, -0.001822], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.183, 0.1188, -0.1383, -0.1411, 1.827, 0.2361, 0.2495, -0.4377, 1.818, -0.9717, 0.3943, 0.6235, 0.1421, -0.1884, -1.312, 0.275, -0.1365, -0.06604, -0.603, 0.06168, -0.219, -0.002075, -0.3123, 0.7036, -0.0522, -0.3372, 0.08026, 0.6523, -0.616, 0.7646, -0.001219, -0.01417, -0.2805, -0.686, 0.2109, 0.3945, 0.04135, 0.2603, 0.81, 0.1475, 2.777, -0.03564, 0.317, -0.4436, 0.1934, -0.5103, 0.3586, 0.04346, -0.3623, -0.02757], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03268, 0.09814, 0.01002, -0.2151, 0.2087, -0.9297, 0.3762, 0.0089, -0.1019, 0.1819, -1.582, -0.1451, -0.1847, 0.2308, 0.0899, -0.1401, -0.1018, -0.697, 0.407, 0.1095, -0.3174, 0.04202, -0.0878, 0.0604, -0.02016, -0.07697, 0.2256, -0.03247, -0.0582, -1.658, 0.04083, 0.02895, 0.1622, 0.784, -0.27, -0.07983, -0.011406, -0.1617, 0.3555, 0.2413, -1.099, -0.2451, 0.07495, 0.2185, 0.4836, -0.1517, -0.2139, 0.03207, 0.1144, 0.002163], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3206, -0.1403, -0.6147, 1.403, -1.082, 0.5327, -0.3386, 0.2411, -0.2152, 0.2489, 0.682, -0.0729, 0.197, 0.1833, -0.9053, -0.433, 0.3806, -0.1227, 0.04587, -0.1362, 0.2854, 0.4739, -0.004967, 0.133, -0.2065, 0.5845, -0.2532, 0.03885, 0.4895, -1.385, 0.0768, -0.1613, 0.653, -0.7505, 0.2158, -0.3965, 0.02373, 0.105, 0.10565, -0.02548, -1.9375, 0.2003, -0.08185, 0.06464, 0.318, 1.354, 0.1414, -0.03476, -0.03476, -0.1436], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2114, 0.0691, 0.2378, 0.2615, 0.4976, -0.5747, 0.05197, 0.001213, 3.693, -0.442, 2.785, 0.3833, -0.05307, 0.0051, 0.496, -0.04163, -0.3232, -0.4175, -0.1094, 0.1445, -0.04926, -0.2222, 0.0286, 0.29, -0.1729, 0.0722, 0.2067, -0.208, -0.005474, 1.022, 0.00877, 0.00849, 0.5015, 1.03, -0.1528, 0.3801, 0.0397, -0.4966, 0.6553, 0.00839, -1.668, -0.2086, 0.3552, -0.3132, 0.2874, -0.2218, -0.0527, 0.01976, 0.1161, -0.0757], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0203, -0.04547, 0.02019, 0.03096, -0.03123, -0.02036, -0.003792, -0.04483, -0.04022, -0.0445, 0.01869, 0.003914, -0.03137, 0.03265, 0.0353, -0.01551, -0.001195, 0.01834, -0.04053, -0.01153, -0.01384, 0.0302, -0.00455, 0.04282, -0.05054, 0.005417, -0.01198, 0.03625, -0.001292, -0.03815, -0.0456, -0.01299, -0.02962, 0.03653, -0.01724, 0.01483, -0.03204, -0.0346, 0.01797, -0.00923, -0.01904, -0.04404, -0.02844, -0.03026, 0.0005994, 0.01217, -0.02399, -0.003254, -0.00441, -0.009926], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.04913, 0.03726, 0.02954, 0.02428, -0.03537, -0.05203, -0.00803, 0.02237, -0.03784, -0.02486, 0.01979, -0.00978, 0.004635, -0.02893, -0.01511, 0.006218, -0.05954, 0.02849, 0.001465, -0.015114, 0.02158, -0.02629, -0.0514, 0.05142, -0.0511, -0.0687, -0.01595, -0.04135, -0.0807, -0.04587, 0.02446, 0.02698, -0.0637, -0.11444, -0.04138, 0.02739, 0.02939, 0.002737, -0.02869, -0.03952, 0.0289, -0.0656, -0.0131, 0.02603, 0.002163, -0.004982, 0.002893, -0.01825, -0.03818, -0.03912], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1215, -0.7046, -0.785, 0.683, 0.9834, 0.347, 0.0609, 0.18, -2.281, 0.2137, 0.007328, -0.5913, 0.04175, 0.1746, -0.9395, -0.01665, -1.413, 1.187, 0.3865, -0.4539, -0.6816, -0.4067, 0.4124, -3.455, 0.8774, -0.05112, -0.7295, 0.06152, 0.08057, -0.1573, 0.5557, -0.4048, -0.3362, -1.834, 0.463, -2.418, -0.00304, 0.3525, 0.9043, -0.5024, -0.0213, -0.4631, 0.1875, 0.4084, -0.243, -0.03766, -0.252, 0.01364, 0.000876, 0.0753], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1317, -0.0628, 0.0886, -0.2157, 0.2408, -0.298, -0.728, 0.3223, 0.1153, 0.4036, 0.783, 0.07275, -0.11163, 0.1272, -0.712, -0.3025, 0.728, 0.10443, -0.2307, -0.09076, -0.3215, 0.951, -0.01476, 0.10126, 0.447, 1.286, -0.852, -0.2012, 0.2091, -0.4233, -0.0242, 0.1187, 0.3818, 0.994, 0.2008, 0.6924, -0.01614, 0.1838, 0.1953, -0.4873, 0.8843, 0.4954, -1.073, -0.4824, -0.08264, -0.627, 0.04886, 0.003866, -0.08527, 0.016], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1187, 0.0558, -0.0465, 0.521, 0.5044, -0.012115, 0.5103, -0.3047, -0.0788, -0.322, -0.06274, -0.05478, -0.03186, -0.0929, 0.2798, -0.1917, 0.2238, -0.01092, -0.3674, 0.1384, 0.08386, -0.5776, -0.04514, 0.5044, -0.3494, -1.132, 0.7183, -0.09766, -0.572, 0.1605, -0.6826, -0.07526, -0.3281, 0.1825, -0.3906, 0.4614, 0.01537, -0.0869, 0.0907, 0.1058, -0.1373, -0.11505, 0.964, -0.4192, 0.02957, -0.08417, 0.0621, 0.0214, 0.04874, 0.01738], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0743, -0.5273, 0.929, 0.8843, 0.5796, 0.3652, 0.09705, -0.2285, -0.642, 0.00951, -0.3406, -0.7866, 0.2163, 0.1296, 0.921, -0.429, 0.1294, 0.1398, 1.257, -0.6924, 0.1272, -0.2644, -0.0943, -1.499, -0.5103, -0.07465, -0.1764, 0.01599, -0.0157, -0.932, 0.4482, -0.1827, 0.04, 0.449, -0.09784, -1.149, -0.02861, 1.675, 0.307, -0.2566, -2.344, 0.03372, 0.2615, 0.3345, -0.3372, 0.1417, -0.001659, -0.015305, -0.002007, 0.011345], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2024, 0.05276, 0.461, 0.1543, -0.449, -0.1512, -0.1622, 0.033, 0.2012, -0.05533, 0.6777, -0.6055, 0.04395, 0.2286, 0.2856, 0.11273, 0.1849, 0.01293, 0.001717, -0.007328, 0.08997, 0.1109, 0.005527, 0.11255, -1.26, 0.12146, -0.0938, -0.01381, -0.05484, 0.0779, 0.726, -0.335, -0.153, -0.7676, -0.5337, 0.06665, 0.004677, -0.11896, 0.3164, -0.12335, -0.883, -0.09344, 0.05472, 0.0739, -0.1328, 0.252, -0.08075, -0.00986, 0.00422, 0.424], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.02338, 0.02661, 0.0265, 0.01006, 0.02237, -0.007484, -0.01576, -0.01793, -0.012794, 0.04257, -0.04224, -0.00844, -0.02757, -0.0396, 0.0351, -0.01715, -0.03763, -0.03177, -0.04327, -0.00912, -0.03595, -0.02525, 0.011086, 0.04132, -0.05188, 0.02719, 0.00552, 0.0388, -0.02386, 0.03613, 0.01233, -0.0386, -0.03084, -0.015236, -0.00909, -0.03003, 0.02757, -0.03534, 0.01227, -0.01089, 0.02628, 0.02316, -0.001918, -0.03017, -0.02917, -0.00909, 0.0369, -0.003782, -0.01846, -0.03387], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.09216, -0.148, 0.1759, -0.2134, -0.248, 0.4946, 0.1556, 0.177, 0.1542, -0.03702, 0.1647, -0.59, -0.1919, 0.3408, 0.10535, -0.0557, -0.2144, -0.3367, -0.94, -0.1798, 0.0952, 0.4072, -0.0467, -0.4075, -0.1247, -0.02295, 0.1976, -0.2778, 0.03506, 0.416, 0.2045, -0.0942, 0.3115, 1.076, -0.2188, -1.132, 0.01243, -0.1605, -0.2568, -0.6357, -0.3088, 0.1323, 0.308, -1.825, -0.015526, 0.1449, 0.1715, -0.001972, -0.06635, 0.0484], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.007965, -0.03088, -0.046, -0.02863, 0.02654, 0.01517, 0.0324, -0.0331, 0.0317, -0.04706, -0.03647, 0.01831, -0.03033, -0.0482, -0.033, -0.0526, 0.04056, -0.05582, -0.00493, -0.00011224, -0.02454, -0.02115, -0.01398, -0.03598, -0.011635, -0.004715, 0.002739, 0.0156, -0.04077, -0.03708, -0.02621, -0.03854, -0.04657, -0.02924, 0.0184, -0.04538, 0.01079, 0.01129, 0.02315, -0.0386, 0.03387, 0.01651, -0.0397, 0.027, 0.03912, -0.05154, -0.02481, 0.04166, -0.01548, 0.00597], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.01723, -0.0698, -0.5264, -0.5396, 0.5786, 0.07855, 0.06696, 0.123, -0.198, 0.391, -0.2059, 0.10815, -0.03793, -0.01959, -0.04974, -0.10016, -0.01386, 0.1475, -0.4258, -0.04364, -0.0116, -0.1244, 0.012985, -1.974, 0.1026, -0.1276, 0.1154, -0.0509, -0.04694, 0.151, -0.2487, 0.009865, 0.0999, 1.202, -0.1252, -0.3992, 0.04013, 0.06506, -0.1804, 0.1103, 0.2822, 1.076, 0.23, -0.3904, -0.842, -0.5825, 0.05124, -0.02168, 0.01232, 0.1188], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1631, 0.3408, -0.01056, 0.002632, -0.1858, -0.093, -0.217, -0.03842, -0.1797, -0.003609, -0.1146, -0.5093, 0.0679, 0.0402, -0.4673, 0.1893, 0.2316, 0.10175, 0.02159, -0.1998, -0.08215, 0.2395, 0.1407, -1.425, -0.263, -0.0281, 0.1538, -0.1126, -0.1395, -0.03952, -0.3494, -0.1273, 0.2612, 0.578, 0.1787, -0.1575, -0.02873, 0.1237, -0.053, -1.029, -1.017, -0.8687, 0.1393, -0.293, -0.0999, 0.2352, 0.091, 0.014404, 0.02322, -0.1448], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.019, -0.02013, 0.04367, 0.02008, -0.02245, 0.006588, -0.0409, -0.029, -0.03506, 0.005863, 0.02972, -0.0398, -0.0342, -0.05142, -0.04544, 0.04584, -0.03796, 0.002144, 0.00055, 0.012344, -0.008354, -0.002079, -0.0336, -0.01366, -0.03253, -0.04285, -0.0425, 0.001144, -0.0341, 0.03029, -0.05173, 0.00907, 0.03748, -0.05225, -0.04477, 0.0274, -0.0214, -0.02751, 0.02518, -0.04102, -0.0167, -0.001987, -0.05203, 0.003513, -0.03403, 0.01537, 0.04337, 0.03842, -0.007282, 0.01097], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.8506, 0.402, 1.1, -0.2476, 0.2659, 0.1517, -1.37, 0.1401, -1.352, 0.3918, -0.553, -0.3032, -0.05045, 0.4304, 0.268, 0.003002, -0.1923, 0.4082, -1.765, -0.0972, -0.3242, 0.383, -0.3909, 0.03775, -2.455, 0.1083, 0.2947, -0.1633, -0.1724, 0.578, 0.5527, 0.3506, -0.0742, -0.3154, -0.454, 0.0323, 0.01538, -0.3926, -0.29, 0.2079, 0.1255, -0.998, -0.4705, -4.61, -0.3013, -0.1766, -0.345, -0.01944, 0.3032, 0.2512], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0872, 0.00802, -0.1257, -0.1599, -0.368, -0.1428, -0.1009, 0.10205, 0.2952, -0.084, 0.1886, 0.284, -0.04724, 0.008064, -0.0955, -0.0705, 0.0931, -0.0403, 0.02, -0.133, -0.0346, -0.0157, -0.04248, -0.0488, 0.01576, 0.1786, -0.078, -0.0822, 0.04834, 0.06244, 0.1621, 0.0696, 0.2166, 0.3499, 0.1054, -0.005234, -0.01227, 0.02934, -0.1797, -0.2798, -0.8726, 0.4082, 0.06744, -0.1538, -0.11084, -0.1293, -0.07025, 0.0002263, 0.0968, 0.02257], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1904, 0.1509, 0.3867, 0.5317, 0.315, -0.0785, 0.88, -0.884, 0.972, 0.005745, 0.226, -0.3752, -0.6377, 0.2368, 0.645, 0.593, 0.1008, 0.1317, -4.02, -0.01817, -0.1626, 0.5757, 0.2676, 0.5615, -0.3936, -0.2125, 0.04257, -0.5054, -0.09265, 0.58, 0.2031, -0.566, 1.058, -1.556, -0.3916, 0.4097, -0.0335, -0.2705, -1.494, 0.571, -0.3657, -0.05435, 0.871, -1.19, 0.8896, 0.4385, -1.097, -0.01086, 0.00583, 0.04883], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1705, -0.2952, -0.7124, 0.002522, 0.02876, 0.3486, -0.04254, -0.259, 0.289, -0.06934, -0.05914, 1.437, 0.457, -0.1123, 0.2148, -0.856, -0.3887, -0.01695, -0.9316, 0.3982, 0.256, 0.1262, 0.0377, 0.2023, 0.801, 0.6104, -0.716, 0.861, -0.08984, 0.4612, 0.201, -0.2007, -0.1508, -1.778, -0.71, 0.5283, -0.0363, 0.2462, -0.0824, -0.165, 0.5083, 0.5376, -0.2217, 0.1906, -0.1143, 1.221, -0.279, 0.0082, -0.0638, -0.1428], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03958, -0.01788, -1.244, 0.01209, 0.1323, 0.151, -0.1186, 0.0447, -1.218, 0.412, -0.2651, 0.0867, -0.1705, -0.2325, -1.224, 0.3599, -0.1583, -0.2412, 0.03296, 0.06726, -0.0306, 0.1432, -0.6973, 0.1471, 0.2026, 0.5923, -0.2404, 0.2634, -0.02159, 0.3228, -0.2856, -0.276, -1.127, 1.303, -0.02574, 0.3293, 0.001237, 0.2379, 0.1807, 0.2074, 0.8145, 0.1702, -0.38, -0.5693, -0.263, -0.684, -0.1875, 0.04825, 0.4402, -0.01323], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02124, -0.0801, -0.2576, 0.11707, -0.013016, -0.1753, -0.05814, -0.05798, -1.533, -0.1431, 0.2484, 0.07733, -0.01241, -0.1204, 0.014565, -0.004765, -0.3455, -0.1349, 0.02286, -0.02597, -0.03412, 0.3557, 0.1742, 0.3381, 0.1752, 0.097, -0.1625, 0.2603, -0.1143, -0.4595, -0.0774, -0.03687, -0.4397, -0.659, 0.1134, 0.395, 0.01915, 0.2449, -0.05988, 0.1224, -0.644, 0.08704, 0.2477, -0.3289, 0.2915, -0.1333, -0.01555, -0.0313, -0.01085, -0.1486]]
[0.418217, 0.108164, 0.000428471, -0.0734899, 0.00581334, -0.559228, -0.212099, -0.154947, 0.0364135, 0.140984, -0.0218594, -0.0642797, -0.0609079, -0.0275522, -0.0192413, -0.093682, 0.0063351, -0.0140007, 0.320783, -0.178735, -0.0209368, -0.0282835, 1.04353, -0.0642598, -0.0253698, 0.0216662, -0.00446305, -0.061782, -0.00832066, -0.162173, -0.141039, -0.0164645, 0.0053231, -0.084059, 0.0265669, 0.0786691, -0.49085, -0.0289568, -0.0150531, -0.00744966, -0.00595521, 0.0944564, 0.0443348, -0.00318921, -0.0763256, 0.048537, -0.316175, -0.365957, 0.34588, 0.0576997, 0.4182, 0.10815, 0.0004284, -0.0735, 0.005814, -0.559, -0.2122, -0.1549, 0.0364, 0.141, -0.02187, -0.0643, -0.0609, -0.02756, -0.01924, -0.0937, 0.006336, -0.014, 0.3208, -0.1787, -0.02094, -0.02829, 1.044, -0.0643, -0.02538, 0.02167, -0.004463, -0.06177, -0.00832, -0.1622, -0.141, -0.01646, 0.00532, -0.08405, 0.02657, 0.0787, -0.491, -0.02896, -0.01505, -0.00745, -0.005955, 0.0945, 0.04434, -0.00319, -0.07635, 0.04852, -0.3162, -0.366, 0.346, 0.0577]
ReLU
[[-0.187278, 0.116281, 0.0435397, 0.12071, 0.193271, 0.111092, 0.361231, -0.302672, -0.349736, 0.33776, -0.0198538, 0.265706, -0.152398, -0.356894, -0.305986, -0.0309373, 0.500818, 0.0435676, -0.0819309, -0.0574944, -0.0197085, -0.0637003, -0.274364, -0.382296, 0.313436, 0.22493, -0.0382664, 0.202494, 0.189043, -0.281928, -0.27211, 0.0047469, -0.0200122, -0.0301503, 0.0978749, 0.142937, -0.057779, 0.0811247, 0.0211237, -1.34003, -0.0332875, -0.68996, 0.07608, -0.037031, -0.218408, 0.491543, 0.0590963, -0.413225, -0.0461527, 0.0816437, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.872142, -1.18264, -0.00112162, -0.23148, 0.59905, -0.329921, 0.231345, -0.0107674, -0.290647, -0.331522, -0.0242436, -0.178508, -0.0758613, 0.278257, -0.242796, -0.217881, -0.0929817, -0.0145605, 0.167221, -0.616631, -0.0311897, -0.224535, -0.125433, -1.1366, 0.0502205, -0.0898015, -0.0408841, -0.402884, 0.238054, 0.382998, -0.200839, -0.00847049, -0.009656, -0.28865, -0.0234121, -0.846478, -0.413153, 0.281826, 0.0437489, -0.135777, 0.00142933, 0.630052, -1.83783, 0.0123506, 0.139556, 0.250847, 1.35074, -0.0105606, 0.0330151, 0.2974, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.42361, 1.04958, 0.0272702, -0.203579, 0.058, 0.0931815, 0.176653, 1.30214, -0.270495, 0.351718, 0.0412841, -0.439099, -0.277367, 0.091096, 0.1127, 0.549864, -0.173578, -0.0188293, 0.176214, 0.116334, -0.0389889, 0.265245, 0.0348982, -0.43135, 0.716892, -0.405465, -0.0179023, -0.0240304, -1.21526, 0.0115171, 0.398775, 0.0314417, 0.00315355, -0.17846, 0.080051, 0.419339, 0.257284, -0.45673, -0.0494879, 0.0626787, 0.00350875, -0.116355, -0.162787, -0.0161994, 0.591407, -0.874913, -0.47885, -0.269244, -0.288369, 0.596688, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0475976, 0.0045679, 0.0415457, 0.0295863, -0.031253, -0.00345496, -0.0213249, -0.0159068, -0.0231246, -0.0523629, 0.00168748, -0.0249123, -0.0113336, 0.0247321, 0.0029744, -0.0197627, -0.0354912, 0.0427155, 0.0119854, -0.038282, 0.0301031, -0.00185834, -0.0244445, -0.0165744, -0.0455389, -0.0488853, -0.0387636, -0.0167957, -0.0530933, -0.0450497, 0.0525395, -0.00175777, -0.0436929, 0.0383113, -0.000457809, -0.00427792, 0.0335721, 0.0200247, 0.0506677, 0.0252355, 0.035299, 0.00504125, -0.044217, 0.0456574, -0.0523055, -0.0328147, -0.0153036, 0.0268258, -0.0355581, -0.0316396, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.839919, 0.38053, -0.0179004, -0.13253, -0.464274, 0.425688, -0.593936, 0.224506, 0.131894, 0.543018, -0.0190999, -0.260828, -0.577844, -0.0218456, -1.17719, 0.103807, 0.701557, 0.0215199, 0.192866, 2.50327, 0.0370804, -0.12626, 0.00122137, -0.886652, -0.514184, 0.0821039, 0.029832, 0.227645, 0.0186612, -0.459959, -0.0361565, -0.0372, 0.00107831, 0.53172, 0.554569, 0.42685, -1.08721, -1.78885, 0.0505983, -0.0220182, -0.0274596, 0.459157, -0.416523, 0.0161188, -0.201463, -1.08366, -1.82173, -0.0417472, -0.429216, 0.125273, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.146995, -0.226735, -0.0251284, -0.676102, -1.00276, 0.604184, -0.219257, -0.598509, 0.292155, -0.122314, -0.0299037, 0.385116, -0.437973, 1.44306, -0.332702, 1.15306, 0.699711, -0.00139995, 0.274437, 0.810089, -0.0437945, -0.344657, 0.336177, 0.322318, -1.31902, -0.295157, 0.0206091, 0.0592629, 0.372963, -0.549489, -0.472564, -0.0361557, 0.0167464, 0.224547, 0.321936, 0.969708, 1.00321, 0.283963, 0.0138261, 0.544994, 0.033013, 1.79172, 0.0859777, 0.0206275, 0.537085, 0.464958, 0.0776339, 0.313247, -0.899583, 0.451397, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.115389, 0.101288, 0.0185854, 0.0056592, -0.0228994, -0.0554867, -0.229294, -0.0821029, -0.42626, -0.138998, 0.0334644, 0.0153484, 0.264511, 0.0216226, -0.270705, -0.0794414, 0.219514, 0.00989363, -0.0538873, 0.168878, -0.0345883, -0.0629073, -0.0348974, 0.25492, -0.149577, -0.093256, 0.025015, -0.439027, -0.162416, -0.408659, 0.453204, 0.0364088, 0.00819358, -0.183686, 0.207117, 0.00571034, 0.0337163, 0.0863599, -0.0380073, 0.2855, 0.00193928, 0.0936781, 0.0402413, -0.0118564, 0.11435, 0.357322, 0.162455, -0.110919, 0.14741, 0.509974, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.361605, -0.100055, 0.0421374, 0.489788, 0.198918, 0.123553, -0.417429, -0.505778, 0.569842, 0.29605, -0.0324188, -0.147378, 0.558108, -0.374896, 0.243182, -0.133721, 0.054212, -0.0343943, 0.0872621, -0.49297, -0.0188046, 0.0733824, -0.251017, -0.211868, 0.521304, -0.106293, -0.00122399, 0.632224, 0.0211504, 0.110015, -0.134968, 0.0157455, 0.0404483, -0.511782, 0.0876954, -0.225739, -0.923218, 0.283459, -0.0119796, -1.02952, -0.0163548, 0.489363, 0.0412197, -0.00339595, -0.0911907, 0.871994, 0.420825, -0.437884, -0.216382, 0.227117, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0821645, 0.0056582, 0.00676701, 0.108413, 0.0510379, -0.0283643, 0.258738, 0.279315, 0.0992325, -0.0713252, -0.0408049, 0.0121488, -0.0911685, -0.164932, -0.0819697, -0.209902, 0.420546, 0.0460938, -0.0142405, 0.00624973, 0.0408017, -0.356582, 0.0579642, -0.0493197, 0.0252293, -0.137882, 0.00328443, -0.206224, 0.369722, 0.0547509, -0.00427899, 0.0334428, -0.00108948, 0.015774, -0.0613266, -0.384614, -0.0325183, -0.194009, -0.00299876, 0.403759, 0.0119912, 0.0533675, -0.336259, -0.0487538, 0.00780103, 0.545924, -0.404957, -0.118832, -0.0291155, 0.423123, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.12911, 0.271581, 0.0241069, 0.0708031, -0.803399, -0.496937, 0.345583, 0.282615, 0.111476, 0.841313, 0.00792804, 0.179472, 0.596458, -0.536282, 0.419235, 0.282737, 1.06508, 0.0269355, -0.0627576, 1.15542, 0.00958541, 0.678308, -0.276385, -2.39074, 1.23346, 0.328273, 0.0170455, -0.199903, 0.130455, -0.106484, 0.230345, -0.0194832, 0.00760894, -2.35424, -0.307985, -0.466971, -0.0931608, 0.231229, -0.0367593, -0.260536, -0.0202617, 0.00871902, -1.21679, 0.026014, 0.393074, -0.211091, 0.00166031, -0.216546, 0.794761, 0.359545, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.18636, 0.509501, 0.00568519, 0.0053097, 0.0594627, -0.448484, -0.0948074, -1.26652, -1.15897, -0.930537, 0.0144163, 0.15283, 0.166887, 0.00864958, 0.257572, 0.270935, -0.648834, -0.0274679, 0.01677, -0.297446, 0.0360814, -0.354501, 0.0664459, 0.42272, -0.124397, 0.715659, -0.0134638, -0.991247, -0.0769266, 0.72392, -0.299143, -0.0189472, 0.0292376, -0.0768553, 0.598394, -0.80674, -0.580669, -0.0628254, -0.0275209, 0.216066, -0.0475687, 0.107263, -0.86346, 0.0493195, -0.394287, -0.106183, 0.0856533, 0.595366, -0.527903, -1.19584, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.15138, -0.00300622, 0.000190961, -0.416345, 0.265083, 0.244596, 0.00712828, 0.449013, -0.080832, -0.0137551, -0.00856958, 0.55967, -0.0389246, 0.419163, -0.480715, 0.220797, -0.00251777, -0.0343081, 0.0829918, -1.61744, -0.0364641, 0.401627, 0.144868, -0.385912, 2.17414, -0.18911, -0.0285889, 0.00773767, -1.19544, -0.178128, 0.116831, 0.0203347, -0.0304023, -0.490665, -0.436029, 0.240049, -0.0886297, -0.0163721, -0.00739083, -0.321998, -0.0389199, 0.0407838, 0.29854, -0.0371369, 0.336538, 0.539446, 0.263484, -0.187487, 0.168552, 0.184776, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.06658, -0.836742, 0.0483793, 0.161066, 0.0309366, 0.217203, -0.0648541, 0.948646, -0.254091, 0.319142, 0.0474072, -0.312346, 0.0953567, -0.48398, 0.904116, -0.107767, -0.50425, -0.00620473, 0.0664635, 0.00345975, 0.0242363, 0.24279, -0.270843, -0.0670451, 1.25709, -0.282671, 0.0394466, 0.847568, 0.704254, 0.121934, 0.637276, 0.047653, -0.0238629, 0.351796, -0.584221, 0.162328, 0.00513181, 0.412365, 0.0016827, 0.293381, 0.0132136, -0.237186, 1.06216, -0.0408976, 0.432709, 1.02987, 0.081598, 0.285879, 0.0843774, 0.124273, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.355245, -0.478193, -0.0465542, -0.0807457, -0.909792, 0.498545, 0.451491, -0.297511, 0.218238, 0.738629, 0.00790383, 0.200477, -0.739306, 0.326409, 1.63198, 0.109601, -0.333199, -0.024769, -0.233954, 0.635371, 0.0187581, 0.689755, -0.138078, 0.121959, -0.139213, 0.948385, -0.0287527, -0.0551585, -0.230524, 0.334695, 0.0225226, 0.00794025, 0.00994336, 0.0763662, 0.501518, -0.0526175, -0.63494, 0.0569564, 0.00588988, 0.308126, 0.0485151, -1.39695, 0.433546, -0.00999223, -0.539658, -1.46525, 0.237261, 0.347896, 0.675478, 0.459304, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.378111, 0.611097, 0.0425015, 1.04014, 0.143355, -0.238033, 0.824071, 1.0087, 0.225887, 0.244887, -0.0423307, 0.345568, 0.588118, 0.0300617, 0.531754, -0.252886, 0.273687, 0.0197149, -0.243809, 0.891978, 0.0341416, -0.00597262, -0.149848, 0.256025, -0.0478358, 0.113426, 0.0123159, 0.187819, 0.937988, -0.120507, -0.384004, -0.0375556, 0.00362341, 0.441501, -0.768923, -0.359449, -1.0103, 0.580002, 0.00693444, -2.75289, -0.00363409, -0.440742, -0.66872, 0.0143354, -0.18958, -0.673056, 0.792223, 0.286937, 0.419078, 0.280863, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.396085, -0.659903, 0.0435722, 1.52843, 1.30267, -0.525418, 0.800799, -0.0223106, 0.289328, 0.307476, -0.0235911, -2.21654, 0.794117, -0.385588, 1.79777, 1.61105, -0.166172, 0.00247594, -0.208763, -0.785875, -0.0189387, -0.0879302, -0.471569, 0.42263, -0.61148, 0.223761, -0.041559, 0.461428, 0.818207, -0.906231, 1.36029, 0.0096464, -0.0138225, 0.510276, 0.80217, -0.0899359, 0.0894771, 0.768566, 0.0287612, 0.908344, 0.0420804, 0.784794, 1.48051, -0.0362697, 0.270115, 5.11956, 2.993, -0.822644, 0.926924, 0.47273, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0881128, 0.258282, 0.0282406, 0.214855, -0.0325943, 0.395274, -0.521658, 0.583127, -0.125094, 0.659003, -0.0131989, -0.188016, -0.270834, 0.698826, 0.622574, 0.449055, -0.0383804, 0.0274118, 0.0592544, 0.202376, 0.0292874, 0.217103, -0.277757, -0.0754331, 0.786662, -0.0483726, 0.029898, 0.142022, 0.277538, -0.174891, 0.994962, 0.0230357, -0.0115255, 0.286698, 0.187521, -0.132957, 0.109272, 0.0812752, 0.0180847, -0.293462, 0.0178076, 0.418433, 1.30335, 0.0111612, -0.414882, -0.152325, 0.295649, 0.201961, 0.0582516, -0.19424, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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.80232, -0.876096, 0.0260735, -0.598361, -0.659305, 0.112602, -0.784211, -1.52572, 0.824579, -0.89088, 0.00618072, -0.855795, -0.346165, 0.0484303, -2.34833, -0.738528, -0.966897, 0.0279607, -0.0393198, -0.764036, 0.00669731, -0.198669, 0.182187, 0.708868, -0.887895, 0.521462, -0.00683339, 0.00463538, 0.481463, -0.73495, -0.743883, 0.041128, 0.0397822, 0.0672432, -1.30557, -1.16594, 0.260838, -0.280756, 0.00546198, -1.77666, 0.0230684, -0.144621, 0.436192, -0.0325381, -0.687353, -1.6881, -0.107797, -0.563051, 0.286101, -0.0138666, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.162011, 0.119356, -0.0285967, 0.00575868, 0.216107, -0.0441959, 0.333162, 0.540274, 0.469511, -0.27943, 0.0426678, 0.0242958, 0.10161, -0.131291, 0.547385, -0.0850752, 0.270301, 0.0295432, -0.151047, 0.865125, -0.0294251, 0.0139604, -0.0445099, -0.647247, -0.204616, -0.0625121, 0.047633, 0.238915, 0.565189, -0.239051, -0.253524, -0.0514086, -0.01235, -0.0583558, 0.459929, -0.132006, -0.23137, 0.13613, -0.0471757, 0.230857, -0.0295796, -0.172021, -0.315055, -0.0483507, 0.180985, 1.3036, 0.301049, -0.400972, 0.0324417, 0.226866, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0600769, 0.24112, 0.0206289, -0.0710446, -0.100623, -0.0922252, 0.0251999, 0.521899, 0.195514, 0.221145, -0.00685672, -0.278007, 0.190403, -0.430033, 1.74023, -0.0320453, 0.442593, 0.0340836, -0.166929, 0.319743, 0.0327128, 0.343432, -0.0175982, -0.258067, 0.825409, 0.0997513, 0.05516, 0.093354, 0.54764, -0.252489, 0.035738, -0.0299856, 0.0239137, -0.142821, 0.0941802, 0.673593, -0.337755, -0.874056, -0.0100055, 0.583389, 0.0457668, -0.170584, -0.0372486, -0.0174075, -0.174094, 0.978855, 0.5348, 0.181753, 0.0224429, -0.091074, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.290228, 1.07294, 0.0182315, 0.684839, 0.911446, 0.276443, 0.0106527, 0.0411482, 0.0734863, -0.138936, 0.0130948, -0.0199744, 0.323399, 0.137861, -0.26284, -0.249026, -1.14106, 0.0469822, 0.226081, -0.538166, -0.0360651, -0.569099, -0.107118, 0.24958, 0.0778009, 0.224645, 0.0510857, 0.481212, -0.417387, -0.235742, 0.651375, 0.0298977, -0.0415421, 1.13126, 0.151679, 0.213283, 0.222838, -0.49175, 0.0160725, 0.189471, -0.0272858, -1.25502, -0.506515, 0.0422895, 0.529076, 2.33449, 0.12003, 0.479918, 0.590393, 0.755733, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.421814, -0.521596, -0.0571335, -0.176531, 1.10586, -0.42664, -0.414159, 0.856587, 0.229944, 0.316516, 0.0120647, -1.07727, -0.344372, -0.396947, 1.5564, 0.482114, -0.125631, 0.0198699, 0.65014, 0.176755, -0.0444977, -0.597367, -0.0116637, -0.0349558, 1.64628, -0.372308, -0.00568208, -0.303083, 0.736044, -1.15618, 0.966829, 0.01097, 0.00859056, -0.260797, 0.367751, -0.566845, 0.322499, 0.547024, 0.0121523, 1.09563, 0.042495, -0.426201, -0.800073, 0.00769538, 0.224845, 0.966214, 1.72307, -0.501399, 0.253917, -0.673565, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0478984, -0.333319, 0.0403069, 0.0237512, -0.758992, -0.253654, 0.282705, -0.573397, 0.636371, -0.161207, -0.0358279, 0.192209, 0.312004, -0.388657, -1.35716, -1.08741, 0.216671, 0.00122401, -0.25809, -0.0193508, -0.0398746, -0.208361, 0.101281, 0.839058, -0.440909, -0.180756, 0.0458214, -0.364257, 0.543733, 0.202515, 0.613891, -0.0474021, -0.039869, 0.563843, -0.854336, -1.73824, 0.184483, -0.242188, 0.011656, 1.07654, 0.0385796, -0.337008, 0.845417, -0.0312475, -0.311732, -0.216317, 0.116025, 0.412739, 0.448784, -0.478387, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.101327, 0.0317163, -0.00828235, -0.0400897, -0.0495965, 0.158123, -0.191965, 0.0122641, -0.590107, -0.0931195, 0.046047, 0.671717, 0.582709, -0.797913, 0.511574, -0.610461, -0.255783, 0.0197705, -0.29223, 0.780165, 0.0113823, 0.0113945, 0.00730789, 0.105413, 0.824371, 0.103293, -0.00635092, -0.103115, -0.00157773, 0.266472, 0.409974, 0.0277954, -0.00995713, 0.00403572, -0.011491, -0.0803955, -1.19572, 0.149341, -0.0425295, 0.690159, 0.00878739, -0.230643, 0.681192, -0.00844783, 0.0488062, 1.12198, 0.649268, 0.124835, -0.130302, -0.372809, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.3116, 0.393616, 0.0185886, 0.0319767, 0.626807, -1.11741, 0.781194, 0.641832, -0.415504, 0.630241, -0.031198, -2.90986, -0.791915, 0.722234, 1.97349, 0.401297, 2.92713, 0.0424519, -0.0918648, 1.688, -0.0192926, 0.358331, -0.365595, 0.38473, 1.62728, 0.145277, 0.0210562, 0.365444, 1.30893, 1.64231, 1.26645, 0.0218619, 0.0207591, -0.374773, 0.374521, 0.173386, -1.82829, 1.04845, -0.0284587, 2.0653, -0.00260604, 1.11894, 0.8724, 0.0040331, -0.670665, 2.24768, 1.59412, 0.924937, -1.21784, 1.05228, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.490025, -0.0753959, -0.0098349, -0.187733, -0.14673, -0.296507, 0.199411, 0.395109, -0.156548, 0.0770613, -0.00681111, -0.131926, 0.0840797, 0.0040875, 1.0387, 0.155956, 0.176583, 0.0555136, 0.0476182, 1.30348, -0.0314599, -0.322077, 0.269482, 0.0264708, 0.464463, 0.0774557, -0.0388121, 0.192453, 0.173989, 0.367372, 0.638982, 0.0203869, -0.0266969, -0.504345, 0.185925, -0.261247, 0.123487, -0.266463, -0.0428927, -0.373981, -0.00756878, 0.24491, -0.281221, -0.0427338, -0.102844, 1.15489, 0.175011, 0.300598, 0.237807, -0.102272, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0263316, 0.0889921, -0.00218697, 0.0555978, 0.0073445, 0.0415682, 0.106336, 0.174942, 0.123685, -0.512502, -0.0224647, 0.140755, -0.322229, -0.322317, -0.159532, 0.100415, 0.00211296, -0.0480635, -0.0994302, 0.516151, 0.0429486, -0.0964809, 0.0305357, -0.360489, 0.290942, -0.0744655, 0.033804, -0.443825, 0.0865395, 0.112201, 0.174896, -0.0135936, 0.0305274, 0.181859, -0.49947, -0.815341, -0.341642, -0.0957148, 0.0018169, 0.0525679, 0.0215749, 0.248959, -0.126838, -0.0475731, -0.172525, -0.177705, -0.309622, 0.0135128, 0.135739, 0.222355, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.424623, -0.320011, 0.0223435, -0.301717, -0.301466, -0.196723, 0.536358, 0.36129, -0.0761559, 0.0816841, -0.0491842, -0.259442, -0.198584, -0.11494, 0.329777, 0.934712, -0.493087, -0.0225445, 0.132968, -0.0141839, -0.0373448, 0.236723, -0.201396, -0.0506223, 0.738247, -0.101034, -0.00874326, -0.626211, -0.583182, -0.0248168, -0.0183653, -0.0226658, 0.0112024, 0.123905, -0.397558, -0.332145, -0.109709, 0.172712, 0.00395678, 0.208021, 0.0127096, 0.775001, 0.43186, -0.0274774, 0.322641, 2.05188, -0.0489196, 0.296031, 0.190906, -0.459145, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.574284, -0.0232163, -0.023916, -0.281645, -0.407729, 0.291602, -0.273218, -1.89796, 0.464723, 0.740528, 0.00768308, 0.141488, -0.429606, 0.292455, 0.0570502, -0.401914, -0.497445, -0.0414559, 0.276976, -1.16201, 0.0272214, -0.0922782, 0.38673, 0.308285, -1.26951, -0.0296724, 0.0268768, 0.217497, 0.0238028, -0.418385, 0.0661433, 0.0405394, -0.0349376, -0.188685, 0.139034, 0.782578, 1.09944, -0.512838, 0.0119828, -0.331718, 0.0410919, -1.29223, 0.417552, 0.0222546, 0.221928, -0.66556, 1.11382, -0.529842, -0.138743, 0.038216, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0397921, 0.12059, -0.014828, 0.516546, 0.0785032, 0.0166356, 0.0462616, -0.299385, -0.107824, 0.508238, -0.00397818, 0.186066, 0.0176483, -0.289676, -0.404812, -0.0541325, 0.131135, -0.0328881, 0.0154584, -0.0967672, 0.0090334, 0.254072, -0.134834, 0.209141, -0.250367, -0.021906, -0.021226, 0.16047, 0.425426, 0.0217369, -0.0348048, 0.00483544, 0.035132, -0.145074, 0.35941, 0.102558, -0.148449, 0.231263, -0.0237708, -0.228471, -0.0251725, 0.299991, 0.14379, -0.0117118, -0.228657, 0.478865, -0.0704381, 0.0395739, -0.159811, 0.50811, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.274409, 0.463351, -0.0470806, 0.128911, -0.144916, -0.0856557, 0.515178, -0.699971, 0.0746368, 0.868181, 0.0159366, 0.16448, 0.238266, -0.057454, 0.030502, 0.324129, -0.24016, -0.0333003, -0.0530387, -0.749661, -0.0231247, 0.553266, -0.137401, -1.23399, 0.964366, 0.616808, 0.0216528, -0.513721, -0.479581, 0.472031, -0.21896, -0.0381193, -0.0360883, 0.140505, -0.0560549, 0.274914, -0.284318, -0.243096, -0.0205258, 0.537068, 0.0335612, -0.777289, -0.302311, 0.026453, 0.290876, 0.471324, -0.267278, -0.25272, 0.1342, -0.363981, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.756856, 0.365532, -0.0420807, 0.480319, 0.844523, 0.793005, 0.146889, -1.80466, -0.525574, 0.220474, 0.00439559, 0.27733, 0.730001, -0.763304, 0.370648, -0.0987596, 1.24398, 0.0179436, 0.00433439, 2.14108, -0.00891237, -0.118128, -0.276711, 0.790304, -1.08544, -0.674611, -0.0219582, 0.411309, 0.495989, 0.331075, -0.139129, 0.027439, 0.0624776, 0.341453, 0.739685, 0.414413, 0.44765, 0.750853, -0.00234047, -1.19312, 0.0436324, -1.54733, 1.21876, -0.0255455, 0.0214509, 1.46724, 0.0687853, -0.615873, -0.56536, 0.238143, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0993888, -0.690693, 0.0537862, 0.187918, -0.170154, 0.0483399, -0.152597, 1.01237, -0.593564, 0.0472392, -0.0330707, 0.261976, -0.47531, 0.200045, -0.868824, 0.281392, -0.380412, 0.00899215, 0.0747211, 0.171445, -0.013333, -0.114276, 0.204844, 0.0835992, 0.424866, -0.0603838, -0.0294731, 0.227951, -0.11653, -0.0427633, 0.553822, 0.0376816, -0.0269061, -0.00198851, -0.0409549, -0.00744732, 0.548455, -0.429774, 0.0400415, 0.0376335, 0.00850705, -0.166883, 0.305322, 0.0455822, 0.133703, -0.780292, -0.303744, 0.459752, 0.00603472, -0.688707, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.168361, 0.0313327, 0.0223799, 0.69579, -0.0907125, -0.115291, 0.306009, 0.0115371, 0.393079, 0.118961, 0.00059598, 0.393067, -0.281231, -0.0318313, 0.276217, 0.131021, -0.506706, 0.00684557, 0.10093, 1.21939, 0.0106005, 0.252167, -0.325911, -0.0201614, 0.0220308, -0.00170863, -0.0097143, -0.11851, 0.452242, 0.215427, 0.127746, 0.00949473, 0.0243308, 0.100506, -0.0209121, -0.104851, -0.306801, 0.0027945, 0.0245131, -0.244639, -0.0226559, 0.25656, 0.314769, -0.0188838, 0.0162539, 0.162986, 0.555891, 0.0637123, -0.155455, 0.499833, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.360322, 0.0907084, -0.0255634, -0.242107, 0.194347, 0.304514, 0.209536, 0.274103, 0.372456, 0.0714915, 0.00500219, -0.0159489, 0.447964, -0.258497, 0.717239, -0.230081, 0.374672, -0.0382714, -0.0509157, 0.00815196, -0.00280324, -0.0321215, -0.129933, 0.0611414, 0.842124, -0.0700469, 0.0401511, -0.423399, -0.22223, 0.246703, 0.766103, 0.0494393, -0.0125331, -0.417714, 0.0512688, 0.0758133, -0.338551, -0.325454, -0.0483105, 0.167148, 0.0156196, 1.05771, 0.39686, 0.0106859, 0.0277442, 1.28643, 1.88345, -0.536696, -0.242043, 0.405648, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.489235, 0.492183, -0.02155, 0.873484, -0.158555, -0.61389, -0.0221769, 0.620699, -0.776978, -0.479259, -0.0179044, 0.61073, 0.230125, -1.07412, -1.56101, -0.391848, 0.741185, 0.0165559, -0.236653, 0.118084, 0.0516787, 0.437077, -0.0851793, -0.478103, 0.282872, -0.743092, 0.0239955, -0.560243, -0.194735, 0.426587, 0.208558, 0.0480263, 0.0183432, 0.139112, -0.623192, 0.127999, 0.12867, 1.12743, -0.00776148, -0.27064, 0.000147875, -0.670143, 0.65628, 0.0117327, 0.514171, 0.263505, 0.475629, 0.765216, 0.206809, -0.00728193, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0180872, -0.0295853, -0.0215418, 0.000950155, -0.0433683, 0.0177668, 0.0140818, 0.00822458, -0.0346455, -0.0273581, -0.0119664, 0.0225097, 0.0126145, 0.0211643, -0.00401365, 0.011309, -0.00855644, 0.0169639, -0.0483721, -0.0445034, -0.0132594, -0.0155436, -0.0382024, 0.0130677, -0.0101736, 0.0123768, -0.0377619, -0.0345829, 0.0370712, -0.0334433, -0.00180129, 0.0388441, 0.0139155, -0.0467388, -0.0351706, -0.0408881, -0.00894169, 0.0438172, -0.0351746, 0.0377768, 0.0404014, -0.00562357, 0.00540724, 0.0461209, -0.0421067, 0.0377881, -0.0131723, 0.0136448, 0.00732754, -0.0198466, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.252575, 0.206083, -0.00305557, 0.134807, 0.140095, 0.0863721, 0.0327311, -0.896246, 0.584541, -0.333641, -0.0384007, 0.565392, -0.470395, 0.154786, -0.601904, -0.366641, 0.781655, 0.0420946, -0.0564187, 0.0743439, -0.0156896, -0.341608, 0.144763, -0.169978, -0.0282814, 0.513818, 0.0138507, -0.585359, -0.183526, 0.135959, -0.181763, -0.0235469, -0.0193666, -0.335633, 0.0637011, 0.840141, -0.213663, -0.798516, 0.00697574, -0.331819, -0.0412789, 0.408845, -0.459648, 0.00314789, 0.591118, 0.57669, 0.135728, -0.582535, -0.00134965, 0.370539, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.519848, 0.0779803, 0.0210347, -0.0423296, -0.549688, 0.96362, -0.339317, 0.274671, -0.032934, 0.594573, 0.00176692, -1.14756, -0.503035, -0.0724955, -0.229952, 0.0301438, -0.30632, -0.0148421, 0.834669, -0.523276, -0.0500283, -0.667065, 0.211021, 0.223261, 0.287978, -0.066128, 0.0240803, 0.159958, -1.36189, -0.473349, -0.183831, -0.0445602, -0.0449348, -0.136337, 0.336715, 0.653084, 0.696909, 0.344806, 0.0112311, 0.800574, -0.0382705, -0.410134, -0.0131622, 0.0417334, 0.971007, 1.46163, -0.436793, -0.210101, 0.249446, -0.0208806, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.714223, 0.176688, -0.011208, 0.32152, -0.00790731, 0.493507, 0.875106, 1.07489, 0.386333, -0.0384985, -0.0371105, -0.795978, 0.682761, -0.726462, 0.600999, 0.148579, 1.13678, 0.0579511, -0.154314, -0.712581, -0.035004, -0.111008, -0.194655, 0.196092, 1.37169, -2.67997, 0.0401788, 0.346685, 1.21332, 0.422846, -0.0723257, -0.022779, 0.0131683, 0.00298188, -0.108496, 0.330066, -1.30376, 0.802094, 0.00661094, 1.37229, -0.00953078, -0.475288, 1.13388, -0.0189682, 0.284384, -0.608969, 0.707768, -0.0433879, -0.24869, 0.748977, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.05706, 0.460784, 0.0127942, -0.074654, -0.011862, -0.101749, -0.0953598, -1.50627, 0.469779, -0.41584, -2.66473e-05, 0.0463886, 0.608111, 0.409479, 0.892614, -0.373022, 1.54391, -0.00651408, -0.355972, 0.0340063, -0.00430811, 0.253847, -0.266682, -0.165798, 0.0518734, 0.0258475, -0.0252221, 0.684785, -0.290255, 0.124364, 0.739429, 0.0138257, 0.0393057, 0.277256, 0.865175, -1.10498, -0.346865, 0.738125, 0.0341368, 0.958134, -0.02223, -0.845954, -0.156021, 0.0434101, -0.104062, 2.7099, 1.98753, -0.0172641, 0.486634, 0.113024, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0526946, -0.0643734, 0.021706, -0.435255, 0.200191, 0.0300231, 0.0571307, 0.0679969, 0.0119361, 0.276909, 0.00557254, 0.00981919, -0.441095, 0.157838, -0.0644525, 0.133004, -0.0219982, -0.00716114, -0.0458668, 0.0476956, -0.00458019, -0.0404005, -0.0412017, -0.173889, 0.341177, 0.077487, -0.027513, -0.0405853, -0.00860293, -0.0791272, 0.00810078, 0.0100865, 0.0449805, -0.0641995, 0.280349, 0.306802, -0.106838, -0.682412, -0.0259847, -0.19909, 0.00720687, 0.124543, 0.131074, -0.0135232, -0.0662234, -0.439699, -0.122344, -0.0409716, 0.0596024, -0.0419709, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0798785, 0.159134, 0.0130725, -0.0361349, 0.210999, -0.0698663, 0.0280301, -0.579215, 0.227297, 0.707948, -0.00917556, -0.302566, 0.628528, 0.113209, -0.317957, 1.01396, -1.18655, 0.0142584, -0.310023, 1.09738, -0.029717, 0.430368, -0.0277291, -0.286425, -0.591137, 0.0115115, 0.000917376, 0.246051, 0.417561, -0.256428, -0.0358712, -0.0204743, -0.00914485, 0.680017, 0.939567, 0.744948, 0.300035, 0.0288509, -0.0191997, 0.848732, -0.0396136, -0.721595, 0.574841, -0.00970394, 0.0227253, -0.36739, -0.00668486, 0.0375323, 0.346728, 0.309416, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00780872, 0.1423, 0.0463889, 1.06851, -0.136242, 0.367345, 0.663896, 1.15549, -0.403128, 0.281026, 0.00373112, 0.56512, 0.459557, -0.240749, 1.40952, 0.0385307, -0.61436, 0.00431222, 0.0750812, 0.552773, 0.0181074, 0.37143, -0.46585, 0.808124, 0.213981, 0.409467, -0.0503183, -0.739104, 0.677047, -0.241824, 0.733975, -0.0191107, 0.0179235, -0.123807, -0.871987, -0.199932, 0.0470095, 1.3032, -0.0390859, -0.315959, 0.02412, 0.952484, 0.989811, 0.00459859, -0.0911036, 1.72749, 0.809738, 0.838962, -0.731113, -0.17153, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0993431, 0.0582215, 0.0396544, -0.0429628, 0.0204609, 0.388468, -0.642823, -0.581239, 0.0315858, -0.629816, -0.00776072, -0.106378, -0.554558, -0.0603769, 0.277643, 0.140065, -0.173249, 0.0142509, 0.0454887, 0.092724, 0.0453021, -0.241954, 0.260316, 0.439206, -0.0562996, 0.365157, 0.000174872, 0.0494753, 1.10209, -0.578004, 1.12983, 0.0437527, 0.00451228, -0.346806, -0.777184, 0.00589699, 0.988932, -0.298313, 0.0175452, -0.794481, 0.044706, -1.33107, -0.278978, -0.0132536, -0.269523, -0.377068, -0.725807, 0.368444, -0.235986, -0.714673, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.651052, 0.221837, -0.030097, 0.116397, -0.32907, -0.00116575, 0.703535, -0.243902, 0.300084, -0.342025, 0.00215404, 0.250293, 0.232989, 0.926752, 0.304441, 0.282606, -0.798114, -0.0408157, 0.300093, -0.210761, 0.0224777, 0.249166, -0.21269, 1.15336, -0.603767, -0.187808, -0.042593, -0.236205, -1.14041, -0.085805, 0.0370887, -0.0350228, 0.0234192, -0.472537, 0.258388, 0.17353, -0.461561, 0.83775, 0.0289167, -0.32621, -0.0205372, -0.00862873, 0.493257, 0.0447373, -0.137078, -2.06924, -0.43784, 0.257459, 0.381534, 0.337763, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.148643, -0.29171, -0.0170278, -0.0597828, 0.997127, 0.3866, -0.0586692, -0.0665437, 0.0418971, -0.11135, -0.0285629, -0.229698, -0.135859, 0.78749, -0.0635899, -0.075154, -0.568857, 0.00290608, 0.0931211, -0.239899, 0.0238067, 0.0139448, 0.110191, -0.383054, 0.426226, -0.629243, -0.0179625, 0.471143, 0.0938645, -0.26108, 0.653065, 0.0164668, 0.00249951, 0.00896962, 0.710717, -0.961136, 0.163988, -0.35482, 0.0386114, -0.00617273, 0.0138757, -1.42477, -0.847276, 0.031428, 0.614613, -0.0237315, -0.425228, 0.103478, -0.0348023, -0.471271, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.558511, 0.44519, 0.0108959, -0.180428, 0.748029, -0.0523072, 0.229551, -0.497232, 0.105064, -0.30924, -0.013416, 0.640955, 0.715906, 0.480462, 1.39249, 0.142049, 0.299899, -0.0186682, -0.198896, 0.890931, 0.0292981, 0.391342, 0.00899016, -0.236169, 0.00675908, -0.607404, -0.0205274, 0.0321726, 0.323405, 0.0975439, -0.961419, 0.00691347, 0.0204408, -0.142683, 0.976974, 0.523505, 0.0597503, -0.357621, -0.0193948, 1.5888, -0.0283772, -0.630325, -0.289842, 0.041135, -0.0784309, 2.76803, 0.787634, -0.789782, 0.369581, 0.117662, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.586829, -0.0862449, 0.00412092, 0.284825, 0.0869037, 0.232304, -0.0241979, 0.515522, -0.42605, -0.655961, -0.025695, 0.387722, -0.152595, 0.726751, 0.719707, 0.718321, 0.58308, 0.038366, -0.0814205, 2.28791, 0.0216648, 0.0505269, 0.208434, 0.343313, 0.0588945, 0.032476, -0.032848, 0.939227, -0.463915, -0.303201, 1.00419, -0.00905125, 0.0182818, 0.403101, -0.741051, 0.472203, 0.141649, -0.867238, -0.00366466, 0.50144, 0.0364143, 0.504094, 0.933454, -0.0259492, -0.706006, -0.036429, -0.947114, 0.520903, -0.440598, -0.888901, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.530349, 0.333162, -0.0349193, 0.77947, 0.262024, 0.286209, -0.399092, 0.650128, -0.766886, -0.419233, 0.0123917, -0.262495, 0.260564, 0.0373124, -0.542451, -0.275129, 0.132761, 0.0149033, 0.067992, -0.201222, 0.0175145, 0.241119, -0.0787562, -0.153713, 0.609902, -0.0977391, 0.0271771, -1.51688, 0.608528, 0.298215, 0.303014, 0.00024838, -0.0156917, 0.12765, 0.57165, -0.799535, 0.00428646, 0.182839, 0.0298731, 1.00739, -0.0512409, 0.839495, -0.573017, -0.0329235, 0.240838, 0.501984, 0.00771891, 0.269783, -0.176643, -0.426337, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1873, 0.1163, 0.04355, 0.1207, 0.1932, 0.1111, 0.3613, -0.3027, -0.3499, 0.3376, -0.01985, 0.2656, -0.1523, -0.357, -0.306, -0.03094, 0.501, 0.04358, -0.0819, -0.0575, -0.01971, -0.0637, -0.2744, -0.3823, 0.3135, 0.225, -0.03827, 0.2025, 0.1891, -0.282, -0.2722, 0.004745, -0.02002, -0.03015, 0.0979, 0.143, -0.05777, 0.0811, 0.02112, -1.34, -0.0333, -0.69, 0.07605, -0.03702, -0.2184, 0.4915, 0.05908, -0.4133, -0.04614, 0.08167], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.872, -1.183, -0.0011215, -0.2314, 0.599, -0.3298, 0.2313, -0.010765, -0.2905, -0.3315, -0.02425, -0.1785, -0.07587, 0.2783, -0.2428, -0.2179, -0.09296, -0.01456, 0.1672, -0.6167, -0.03119, -0.2245, -0.1255, -1.137, 0.05023, -0.0898, -0.0409, -0.4028, 0.238, 0.383, -0.2008, -0.00847, -0.00966, -0.2886, -0.0234, -0.8467, -0.413, 0.2817, 0.04376, -0.1357, 0.00143, 0.63, -1.838, 0.01235, 0.1395, 0.2507, 1.351, -0.01056, 0.03302, 0.2974], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4236, 1.05, 0.02727, -0.2036, 0.058, 0.0932, 0.1766, 1.302, -0.2705, 0.3518, 0.0413, -0.4392, -0.2773, 0.0911, 0.1127, 0.55, -0.1736, -0.01883, 0.1763, 0.11633, -0.039, 0.2651, 0.0349, -0.4314, 0.717, -0.4055, -0.0179, -0.02403, -1.215, 0.01152, 0.3987, 0.03143, 0.003153, -0.1785, 0.0801, 0.4194, 0.2573, -0.4568, -0.0495, 0.0627, 0.00351, -0.11633, -0.1628, -0.0162, 0.5913, -0.875, -0.4788, -0.2693, -0.2883, 0.5967], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0476, 0.004566, 0.04153, 0.02959, -0.03125, -0.003454, -0.02133, -0.0159, -0.02312, -0.05237, 0.001687, -0.02492, -0.01134, 0.02473, 0.002974, -0.01976, -0.0355, 0.04272, 0.011986, -0.03827, 0.0301, -0.001859, -0.02444, -0.01657, -0.04553, -0.0489, -0.03876, -0.0168, -0.0531, -0.04504, 0.05255, -0.001758, -0.0437, 0.0383, -0.0004578, -0.004276, 0.03357, 0.02002, 0.05066, 0.02524, 0.0353, 0.005043, -0.04422, 0.04565, -0.0523, -0.0328, -0.015305, 0.02682, -0.03555, -0.03165], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.84, 0.3806, -0.0179, -0.1326, -0.4644, 0.4258, -0.5938, 0.2245, 0.1318, 0.543, -0.0191, -0.2607, -0.5776, -0.02185, -1.177, 0.1038, 0.7017, 0.02151, 0.1929, 2.504, 0.03708, -0.1262, 0.001222, -0.8867, -0.514, 0.0821, 0.02983, 0.2277, 0.01866, -0.46, -0.03616, -0.0372, 0.001079, 0.5317, 0.5547, 0.4268, -1.087, -1.789, 0.0506, -0.02202, -0.02747, 0.4592, -0.4165, 0.01611, -0.2014, -1.084, -1.821, -0.04175, -0.4292, 0.1252], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.147, -0.2267, -0.02513, -0.6763, -1.003, 0.604, -0.2192, -0.5986, 0.2922, -0.1223, -0.0299, 0.385, -0.438, 1.443, -0.3328, 1.153, 0.6997, -0.0014, 0.2744, 0.81, -0.0438, -0.3447, 0.3362, 0.3223, -1.319, -0.2952, 0.02061, 0.05927, 0.373, -0.5493, -0.4727, -0.03616, 0.01674, 0.2245, 0.322, 0.9697, 1.003, 0.284, 0.013824, 0.545, 0.03302, 1.792, 0.086, 0.02063, 0.537, 0.4648, 0.07764, 0.3132, -0.8994, 0.4514], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1154, 0.1013, 0.01859, 0.00566, -0.0229, -0.05548, -0.2292, -0.0821, -0.4263, -0.139, 0.03348, 0.01535, 0.2644, 0.02162, -0.2708, -0.07947, 0.2195, 0.009895, -0.0539, 0.1688, -0.03458, -0.0629, -0.0349, 0.255, -0.1495, -0.09326, 0.02501, -0.439, -0.1625, -0.4087, 0.4531, 0.0364, 0.008194, -0.1837, 0.2072, 0.00571, 0.03372, 0.08636, -0.038, 0.2854, 0.001939, 0.0937, 0.04025, -0.011856, 0.1144, 0.3574, 0.1625, -0.1109, 0.1475, 0.51], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3616, -0.10004, 0.04214, 0.4897, 0.199, 0.12354, -0.4175, -0.506, 0.57, 0.2961, -0.0324, -0.1473, 0.558, -0.375, 0.2432, -0.1337, 0.0542, -0.0344, 0.0873, -0.493, -0.0188, 0.07336, -0.251, -0.2119, 0.5215, -0.1063, -0.001224, 0.6323, 0.02115, 0.11, -0.135, 0.01575, 0.04044, -0.5117, 0.0877, -0.2257, -0.9233, 0.2834, -0.01198, -1.029, -0.01636, 0.4893, 0.04123, -0.003395, -0.0912, 0.872, 0.421, -0.438, -0.2164, 0.2272], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.08215, 0.005657, 0.006767, 0.1084, 0.05103, -0.02837, 0.2588, 0.2793, 0.09924, -0.07135, -0.0408, 0.012146, -0.0912, -0.1649, -0.082, -0.21, 0.4207, 0.04608, -0.014244, 0.00625, 0.0408, -0.3567, 0.05795, -0.04932, 0.02522, -0.138, 0.003284, -0.2062, 0.3696, 0.05475, -0.00428, 0.03345, -0.001089, 0.01578, -0.06134, -0.3845, -0.03253, -0.194, -0.002998, 0.4038, 0.01199, 0.05338, -0.3362, -0.04877, 0.0078, 0.546, -0.405, -0.11884, -0.02911, 0.423], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1292, 0.2715, 0.02411, 0.0708, -0.803, -0.4968, 0.3457, 0.2827, 0.11145, 0.8413, 0.00793, 0.1794, 0.5967, -0.536, 0.4192, 0.2827, 1.065, 0.02693, -0.06274, 1.155, 0.00958, 0.678, -0.2764, -2.39, 1.233, 0.3284, 0.01704, -0.2, 0.1305, -0.1065, 0.2303, -0.01949, 0.00761, -2.354, -0.308, -0.467, -0.09314, 0.2312, -0.03677, -0.2605, -0.02026, 0.00872, -1.217, 0.02602, 0.393, -0.211, 0.00166, -0.2166, 0.795, 0.3596], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1864, 0.5093, 0.005684, 0.00531, 0.05945, -0.4485, -0.0948, -1.267, -1.159, -0.9307, 0.01442, 0.1528, 0.1669, 0.00865, 0.2576, 0.271, -0.649, -0.02747, 0.01677, -0.2974, 0.03607, -0.3545, 0.06647, 0.4226, -0.1244, 0.716, -0.013466, -0.991, -0.0769, 0.724, -0.299, -0.01895, 0.02924, -0.07684, 0.5986, -0.8066, -0.5806, -0.0628, -0.02753, 0.2161, -0.04758, 0.10724, -0.8633, 0.04932, -0.3943, -0.1062, 0.08563, 0.595, -0.528, -1.196], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.151, -0.003006, 0.000191, -0.4163, 0.2651, 0.2446, 0.00713, 0.449, -0.0808, -0.013756, -0.00857, 0.5596, -0.0389, 0.4192, -0.4807, 0.2208, -0.002518, -0.0343, 0.083, -1.617, -0.03647, 0.4016, 0.1449, -0.386, 2.174, -0.1891, -0.0286, 0.007736, -1.195, -0.1781, 0.1168, 0.02034, -0.0304, -0.4907, -0.436, 0.24, -0.0886, -0.01637, -0.00739, -0.322, -0.0389, 0.04077, 0.2986, -0.03714, 0.3364, 0.5396, 0.2634, -0.1875, 0.1686, 0.1848], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.066, -0.837, 0.04837, 0.161, 0.03093, 0.2172, -0.0649, 0.9487, -0.2542, 0.319, 0.0474, -0.3123, 0.09534, -0.484, 0.9043, -0.1078, -0.5044, -0.006207, 0.06647, 0.00346, 0.02423, 0.2428, -0.2708, -0.067, 1.257, -0.2827, 0.03946, 0.8477, 0.704, 0.12195, 0.637, 0.04764, -0.02386, 0.3518, -0.584, 0.1624, 0.00513, 0.4124, 0.001682, 0.2935, 0.013214, -0.2372, 1.0625, -0.0409, 0.4326, 1.03, 0.0816, 0.286, 0.08435, 0.12427], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3552, -0.4783, -0.04654, -0.08075, -0.9097, 0.4985, 0.4514, -0.2976, 0.2183, 0.739, 0.007904, 0.2004, -0.7393, 0.3264, 1.632, 0.1096, -0.3333, -0.02477, -0.234, 0.6353, 0.01875, 0.69, -0.1381, 0.12195, -0.1392, 0.948, -0.02875, -0.05515, -0.2305, 0.3347, 0.02252, 0.00794, 0.00994, 0.07635, 0.5015, -0.0526, -0.635, 0.05695, 0.00589, 0.308, 0.04852, -1.396, 0.4336, -0.009995, -0.5396, -1.465, 0.2373, 0.348, 0.6753, 0.4592], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3782, 0.6113, 0.0425, 1.04, 0.1433, -0.238, 0.824, 1.009, 0.2258, 0.2449, -0.04233, 0.3455, 0.588, 0.03006, 0.5317, -0.253, 0.2737, 0.01971, -0.2438, 0.892, 0.03415, -0.005974, -0.1499, 0.256, -0.04782, 0.1134, 0.012314, 0.1879, 0.938, -0.1205, -0.384, -0.03757, 0.003624, 0.4414, -0.769, -0.3594, -1.011, 0.58, 0.006935, -2.752, -0.003633, -0.4407, -0.669, 0.014336, -0.1896, -0.673, 0.792, 0.2869, 0.4192, 0.2808], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.396, -0.6597, 0.04358, 1.528, 1.303, -0.5254, 0.801, -0.02231, 0.2893, 0.3074, -0.02359, -2.217, 0.794, -0.3855, 1.798, 1.611, -0.1661, 0.002476, -0.2087, -0.7856, -0.01894, -0.08795, -0.4717, 0.4226, -0.6113, 0.2238, -0.04156, 0.4614, 0.8184, -0.9062, 1.36, 0.00964, -0.013824, 0.5103, 0.8022, -0.08997, 0.0895, 0.7686, 0.02876, 0.908, 0.04208, 0.7847, 1.48, -0.03625, 0.27, 5.12, 2.992, -0.8228, 0.927, 0.4727], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.08813, 0.2583, 0.02824, 0.2148, -0.0326, 0.3953, -0.5215, 0.583, -0.1251, 0.659, -0.0132, -0.188, -0.2708, 0.6987, 0.6226, 0.449, -0.0384, 0.0274, 0.05927, 0.2024, 0.02928, 0.2172, -0.2778, -0.07544, 0.7866, -0.04837, 0.02989, 0.142, 0.2776, -0.1749, 0.995, 0.02304, -0.01153, 0.2866, 0.1875, -0.1329, 0.10925, 0.0813, 0.01808, -0.2935, 0.0178, 0.4185, 1.304, 0.01116, -0.4148, -0.1523, 0.2957, 0.2019, 0.05826, -0.1942], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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.803, -0.876, 0.02608, -0.598, -0.659, 0.1126, -0.784, -1.525, 0.8247, -0.891, 0.00618, -0.856, -0.3462, 0.04843, -2.348, -0.739, -0.967, 0.02795, -0.0393, -0.764, 0.0067, -0.1986, 0.1821, 0.709, -0.8877, 0.5215, -0.006832, 0.004635, 0.4814, -0.735, -0.7437, 0.04114, 0.0398, 0.06726, -1.306, -1.166, 0.2607, -0.2808, 0.005463, -1.776, 0.02307, -0.1447, 0.4363, -0.03253, -0.6875, -1.688, -0.1078, -0.563, 0.2861, -0.01387], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.162, 0.1194, -0.0286, 0.00576, 0.2161, -0.0442, 0.3333, 0.54, 0.4695, -0.2795, 0.04266, 0.02429, 0.1016, -0.1313, 0.5474, -0.0851, 0.2703, 0.02954, -0.151, 0.865, -0.02942, 0.01396, -0.04453, -0.6475, -0.2046, -0.0625, 0.04764, 0.2389, 0.5654, -0.239, -0.2534, -0.05142, -0.01235, -0.05835, 0.46, -0.132, -0.2313, 0.1361, -0.04718, 0.2308, -0.02959, -0.172, -0.315, -0.04834, 0.181, 1.304, 0.301, -0.401, 0.03244, 0.2268], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0601, 0.2411, 0.02063, -0.07104, -0.10065, -0.0922, 0.0252, 0.522, 0.1956, 0.2212, -0.006855, -0.278, 0.1904, -0.43, 1.74, -0.03204, 0.4426, 0.0341, -0.1669, 0.3198, 0.0327, 0.3435, -0.0176, -0.258, 0.825, 0.09973, 0.05515, 0.0934, 0.548, -0.2524, 0.03574, -0.02998, 0.02391, -0.1428, 0.0942, 0.674, -0.3376, -0.874, -0.01, 0.5835, 0.04578, -0.1705, -0.03726, -0.01741, -0.1741, 0.979, 0.5347, 0.1818, 0.02245, -0.09106], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2903, 1.073, 0.01823, 0.685, 0.9116, 0.2764, 0.01065, 0.04114, 0.0735, -0.1389, 0.01309, -0.01997, 0.3235, 0.1378, -0.263, -0.249, -1.141, 0.047, 0.2261, -0.538, -0.03607, -0.5693, -0.1071, 0.2496, 0.0778, 0.2246, 0.0511, 0.4812, -0.4175, -0.2357, 0.6514, 0.02989, -0.04153, 1.131, 0.1517, 0.2133, 0.2228, -0.4917, 0.01607, 0.1895, -0.02728, -1.255, -0.5063, 0.0423, 0.5293, 2.334, 0.12006, 0.48, 0.5903, 0.756], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4219, -0.5215, -0.05713, -0.1765, 1.105, -0.4268, -0.414, 0.8564, 0.23, 0.3164, 0.01206, -1.077, -0.3445, -0.397, 1.557, 0.4822, -0.1256, 0.01987, 0.65, 0.1768, -0.0445, -0.597, -0.011665, -0.03494, 1.646, -0.3723, -0.005684, -0.303, 0.736, -1.156, 0.967, 0.01097, 0.00859, -0.2607, 0.3677, -0.567, 0.3225, 0.547, 0.01215, 1.096, 0.04248, -0.4263, -0.8003, 0.007694, 0.2249, 0.9663, 1.723, -0.5015, 0.254, -0.6733], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0479, -0.3333, 0.0403, 0.02376, -0.759, -0.2537, 0.2827, -0.573, 0.636, -0.1613, -0.03583, 0.1923, 0.312, -0.3887, -1.357, -1.088, 0.2167, 0.001224, -0.258, -0.01935, -0.0399, -0.2084, 0.10126, 0.839, -0.441, -0.1808, 0.0458, -0.3643, 0.544, 0.2025, 0.614, -0.0474, -0.03986, 0.564, -0.8545, -1.738, 0.1844, -0.2422, 0.01166, 1.076, 0.03857, -0.337, 0.845, -0.03125, -0.3118, -0.2163, 0.116, 0.4128, 0.4487, -0.4783], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1013, 0.0317, -0.008286, -0.0401, -0.0496, 0.1581, -0.192, 0.01226, -0.5903, -0.09314, 0.04605, 0.672, 0.5825, -0.798, 0.5117, -0.6104, -0.2559, 0.01978, -0.2922, 0.7803, 0.01138, 0.01139, 0.00731, 0.1054, 0.824, 0.1033, -0.00635, -0.1031, -0.001577, 0.2664, 0.41, 0.0278, -0.00996, 0.004036, -0.01149, -0.0804, -1.195, 0.1493, -0.04254, 0.69, 0.00879, -0.2306, 0.681, -0.008446, 0.0488, 1.122, 0.6494, 0.1248, -0.1302, -0.3728], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.312, 0.3936, 0.01859, 0.03198, 0.627, -1.117, 0.7812, 0.6416, -0.4155, 0.6304, -0.0312, -2.91, -0.792, 0.722, 1.974, 0.4014, 2.928, 0.04245, -0.09186, 1.688, -0.01929, 0.3584, -0.3655, 0.3848, 1.627, 0.1453, 0.02106, 0.3655, 1.309, 1.643, 1.267, 0.02187, 0.02075, -0.3748, 0.3745, 0.1733, -1.828, 1.049, -0.02846, 2.064, -0.002605, 1.119, 0.8726, 0.004032, -0.671, 2.248, 1.594, 0.925, -1.218, 1.053], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.49, -0.0754, -0.009834, -0.1877, -0.1467, -0.2964, 0.1995, 0.395, -0.1565, 0.0771, -0.00681, -0.132, 0.0841, 0.00409, 1.039, 0.156, 0.1766, 0.0555, 0.0476, 1.304, -0.03146, -0.322, 0.2695, 0.02647, 0.4644, 0.07745, -0.03882, 0.1925, 0.174, 0.3674, 0.639, 0.02039, -0.0267, -0.5044, 0.1859, -0.2612, 0.1235, -0.2664, -0.0429, -0.374, -0.00757, 0.2449, -0.2812, -0.04272, -0.10284, 1.155, 0.175, 0.3005, 0.2378, -0.1023], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.02634, 0.089, -0.002188, 0.0556, 0.007343, 0.04156, 0.1063, 0.1749, 0.12366, -0.5127, -0.02246, 0.1407, -0.3223, -0.3223, -0.1595, 0.1004, 0.002113, -0.04807, -0.0994, 0.516, 0.04294, -0.0965, 0.03053, -0.3606, 0.291, -0.07446, 0.0338, -0.4438, 0.08655, 0.1122, 0.1749, -0.013596, 0.03053, 0.1819, -0.4995, -0.8154, -0.3416, -0.0957, 0.001817, 0.05258, 0.02158, 0.2489, -0.1268, -0.04758, -0.1725, -0.1777, -0.3096, 0.01351, 0.1357, 0.2224], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4246, -0.32, 0.02234, -0.3018, -0.3015, -0.1968, 0.536, 0.3613, -0.0762, 0.08167, -0.0492, -0.2595, -0.1986, -0.1149, 0.3298, 0.9346, -0.4932, -0.02254, 0.1329, -0.01418, -0.03735, 0.2367, -0.2014, -0.05063, 0.7383, -0.101, -0.00874, -0.626, -0.583, -0.02481, -0.01837, -0.02266, 0.0112, 0.1239, -0.3975, -0.332, -0.1097, 0.1727, 0.003956, 0.208, 0.01271, 0.775, 0.432, -0.02748, 0.3228, 2.053, -0.04892, 0.2961, 0.1909, -0.4592], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.574, -0.02322, -0.02391, -0.2817, -0.4077, 0.2915, -0.2732, -1.898, 0.4648, 0.7407, 0.007683, 0.1415, -0.4297, 0.2925, 0.05704, -0.4019, -0.4976, -0.04144, 0.2769, -1.162, 0.02722, -0.0923, 0.3867, 0.3083, -1.27, -0.02968, 0.02687, 0.2175, 0.0238, -0.4185, 0.06616, 0.04053, -0.03494, -0.1887, 0.139, 0.7827, 1.1, -0.5127, 0.011986, -0.3318, 0.04108, -1.292, 0.4175, 0.02225, 0.2219, -0.6655, 1.114, -0.53, -0.1388, 0.0382], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0398, 0.1206, -0.01483, 0.5166, 0.0785, 0.01663, 0.04626, -0.2993, -0.10785, 0.5083, -0.00398, 0.186, 0.01765, -0.2898, -0.4048, -0.05414, 0.1311, -0.0329, 0.01546, -0.09674, 0.00903, 0.2542, -0.1349, 0.2091, -0.2505, -0.02191, -0.02122, 0.1605, 0.4255, 0.02174, -0.0348, 0.004837, 0.03513, -0.145, 0.3594, 0.10254, -0.1484, 0.2313, -0.02377, -0.2285, -0.02518, 0.3, 0.1438, -0.01171, -0.2286, 0.4788, -0.07043, 0.03958, -0.1598, 0.5083], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2744, 0.4634, -0.0471, 0.1289, -0.1449, -0.08563, 0.515, -0.7, 0.07465, 0.868, 0.01593, 0.1644, 0.2383, -0.05746, 0.0305, 0.3242, -0.2401, -0.0333, -0.05304, -0.7495, -0.02313, 0.553, -0.1375, -1.234, 0.9644, 0.6167, 0.02165, -0.5137, -0.4795, 0.472, -0.219, -0.03812, -0.0361, 0.1405, -0.05606, 0.275, -0.2844, -0.243, -0.02052, 0.537, 0.03357, -0.7773, -0.3022, 0.02646, 0.2908, 0.4714, -0.2673, -0.2527, 0.1342, -0.364], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.757, 0.3655, -0.04208, 0.4802, 0.8447, 0.793, 0.1469, -1.805, -0.5254, 0.2205, 0.004395, 0.2773, 0.73, -0.763, 0.3706, -0.09875, 1.244, 0.01794, 0.004333, 2.14, -0.00891, -0.1181, -0.2766, 0.7905, -1.085, -0.675, -0.02196, 0.4114, 0.496, 0.331, -0.1392, 0.02744, 0.06247, 0.3416, 0.7397, 0.4143, 0.4478, 0.751, -0.00234, -1.193, 0.04364, -1.547, 1.219, -0.02554, 0.02145, 1.467, 0.0688, -0.6157, -0.5654, 0.2382], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.09937, -0.691, 0.05377, 0.1879, -0.1702, 0.04834, -0.1526, 1.013, -0.5938, 0.04724, -0.03308, 0.262, -0.4753, 0.2001, -0.8687, 0.2815, -0.3804, 0.008995, 0.0747, 0.1714, -0.013336, -0.11426, 0.2048, 0.0836, 0.4248, -0.0604, -0.02948, 0.2279, -0.1165, -0.04276, 0.5537, 0.0377, -0.0269, -0.00199, -0.04095, -0.007446, 0.5483, -0.4297, 0.04004, 0.03763, 0.00851, -0.1669, 0.3054, 0.0456, 0.1337, -0.7803, -0.3037, 0.4597, 0.006035, -0.6885], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1683, 0.03134, 0.02238, 0.696, -0.0907, -0.1153, 0.306, 0.011536, 0.393, 0.11896, 0.000596, 0.393, -0.2812, -0.03183, 0.2761, 0.131, -0.507, 0.006847, 0.10095, 1.22, 0.0106, 0.2522, -0.326, -0.02016, 0.02203, -0.001709, -0.00971, -0.1185, 0.4521, 0.2155, 0.1277, 0.00949, 0.02434, 0.1005, -0.0209, -0.10486, -0.307, 0.002794, 0.0245, -0.2446, -0.02266, 0.2566, 0.3147, -0.01889, 0.01625, 0.163, 0.5557, 0.0637, -0.1554, 0.4998], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3604, 0.0907, -0.02556, -0.2421, 0.1943, 0.3044, 0.2096, 0.2742, 0.3726, 0.0715, 0.005, -0.01595, 0.448, -0.2585, 0.7173, -0.2301, 0.3748, -0.03827, -0.0509, 0.00815, -0.002804, -0.03214, -0.1299, 0.06113, 0.8423, -0.07007, 0.04016, -0.4233, -0.2223, 0.2467, 0.766, 0.04944, -0.012535, -0.4177, 0.05127, 0.0758, -0.3386, -0.3254, -0.0483, 0.1671, 0.01562, 1.058, 0.397, 0.01069, 0.02774, 1.286, 1.884, -0.5366, -0.2421, 0.4058], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4893, 0.4922, -0.02155, 0.8735, -0.1586, -0.614, -0.02217, 0.6206, -0.777, -0.4792, -0.0179, 0.611, 0.2301, -1.074, -1.561, -0.3918, 0.741, 0.01656, -0.2367, 0.1181, 0.05167, 0.437, -0.0852, -0.478, 0.283, -0.743, 0.024, -0.56, -0.1947, 0.4265, 0.2086, 0.04803, 0.01834, 0.1392, -0.623, 0.128, 0.1287, 1.127, -0.007763, -0.2708, 0.0001478, -0.67, 0.6562, 0.011734, 0.514, 0.2634, 0.4756, 0.765, 0.2068, -0.007282], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.01808, -0.02959, -0.02155, 0.0009503, -0.04337, 0.01776, 0.014084, 0.008224, -0.03464, -0.02736, -0.01196, 0.0225, 0.01261, 0.02116, -0.004013, 0.01131, -0.00856, 0.01697, -0.04837, -0.0445, -0.01326, -0.01554, -0.0382, 0.01307, -0.01017, 0.012375, -0.03775, -0.03458, 0.03708, -0.03345, -0.0018015, 0.03885, 0.013916, -0.04675, -0.03516, -0.0409, -0.00894, 0.04382, -0.0352, 0.03778, 0.0404, -0.005623, 0.005405, 0.0461, -0.0421, 0.03778, -0.013176, 0.01364, 0.007328, -0.01985], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2527, 0.206, -0.003056, 0.1348, 0.1401, 0.08636, 0.03275, -0.8965, 0.5845, -0.3337, -0.0384, 0.5654, -0.4705, 0.1548, -0.602, -0.3667, 0.7817, 0.04208, -0.05643, 0.07434, -0.01569, -0.3416, 0.1448, -0.1699, -0.02827, 0.5137, 0.01385, -0.5854, -0.1835, 0.136, -0.1818, -0.02354, -0.01936, -0.3357, 0.0637, 0.8403, -0.2136, -0.7983, 0.006977, -0.3318, -0.0413, 0.409, -0.4597, 0.003147, 0.5913, 0.5767, 0.1357, -0.5825, -0.001349, 0.3706], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.52, 0.078, 0.02104, -0.04233, -0.55, 0.9634, -0.3394, 0.2747, -0.03293, 0.5947, 0.001767, -1.147, -0.503, -0.0725, -0.23, 0.03015, -0.3064, -0.01484, 0.8345, -0.5234, -0.05002, -0.667, 0.211, 0.2233, 0.288, -0.0661, 0.02408, 0.1599, -1.362, -0.4734, -0.1838, -0.04456, -0.04492, -0.1364, 0.3367, 0.6533, 0.697, 0.3447, 0.01123, 0.801, -0.03827, -0.4102, -0.01316, 0.04175, 0.971, 1.462, -0.4368, -0.2101, 0.2494, -0.02087], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.7144, 0.1766, -0.01121, 0.3215, -0.007904, 0.4934, 0.875, 1.075, 0.3862, -0.0385, -0.0371, -0.796, 0.6826, -0.7266, 0.601, 0.1486, 1.137, 0.05795, -0.1543, -0.7124, -0.035, -0.111, -0.1947, 0.196, 1.372, -2.68, 0.0402, 0.3467, 1.213, 0.4229, -0.0723, -0.02278, 0.01317, 0.002981, -0.1085, 0.33, -1.304, 0.8022, 0.00661, 1.372, -0.00953, -0.4753, 1.134, -0.01897, 0.2844, -0.609, 0.708, -0.0434, -0.2487, 0.749], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.057, 0.4607, 0.012794, -0.07465, -0.01186, -0.10175, -0.09534, -1.506, 0.4697, -0.4158, -2.664e-05, 0.0464, 0.608, 0.4094, 0.8926, -0.373, 1.544, -0.006516, -0.356, 0.034, -0.004307, 0.254, -0.2666, -0.1658, 0.05188, 0.02585, -0.02522, 0.6846, -0.2903, 0.1244, 0.7393, 0.013824, 0.0393, 0.2773, 0.865, -1.1045, -0.347, 0.7383, 0.03415, 0.958, -0.02223, -0.846, -0.156, 0.0434, -0.10406, 2.709, 1.987, -0.01726, 0.4866, 0.11304], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0527, -0.0644, 0.02171, -0.4353, 0.2002, 0.03003, 0.05713, 0.068, 0.01193, 0.2769, 0.005573, 0.00982, -0.4412, 0.1578, -0.06445, 0.133, -0.022, -0.00716, -0.04587, 0.0477, -0.00458, -0.0404, -0.0412, -0.1738, 0.341, 0.0775, -0.02751, -0.0406, -0.008606, -0.0791, 0.0081, 0.010086, 0.04498, -0.0642, 0.2803, 0.307, -0.1068, -0.6826, -0.02599, -0.1991, 0.007206, 0.1246, 0.1311, -0.01353, -0.0662, -0.4397, -0.1223, -0.041, 0.0596, -0.04196], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0799, 0.1592, 0.01307, -0.03613, 0.211, -0.0699, 0.02803, -0.579, 0.2273, 0.708, -0.00918, -0.3025, 0.6284, 0.1132, -0.3179, 1.014, -1.187, 0.01426, -0.31, 1.098, -0.02972, 0.4304, -0.02773, -0.2864, -0.5913, 0.01151, 0.0009174, 0.2461, 0.4175, -0.2563, -0.03586, -0.02048, -0.00915, 0.68, 0.9395, 0.745, 0.3, 0.02885, -0.0192, 0.8486, -0.0396, -0.7217, 0.5747, -0.009705, 0.02272, -0.3674, -0.006683, 0.03754, 0.3467, 0.3093], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.00781, 0.1423, 0.0464, 1.068, -0.1362, 0.3674, 0.664, 1.155, -0.403, 0.281, 0.00373, 0.565, 0.4595, -0.2407, 1.409, 0.03854, -0.6143, 0.00431, 0.0751, 0.5527, 0.01811, 0.3713, -0.4658, 0.808, 0.214, 0.4094, -0.05032, -0.7393, 0.6772, -0.2418, 0.734, -0.0191, 0.01793, -0.1238, -0.872, -0.2, 0.047, 1.303, -0.0391, -0.316, 0.02412, 0.9526, 0.9897, 0.004597, -0.0911, 1.728, 0.8096, 0.839, -0.731, -0.1715], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.09937, 0.05823, 0.03964, -0.04297, 0.02046, 0.3884, -0.643, -0.581, 0.0316, -0.63, -0.00776, -0.1064, -0.5547, -0.06036, 0.2776, 0.14, -0.1732, 0.01425, 0.0455, 0.0927, 0.0453, -0.242, 0.2603, 0.4392, -0.0563, 0.3652, 0.0001749, 0.04947, 1.103, -0.578, 1.13, 0.04376, 0.004513, -0.347, -0.7773, 0.005898, 0.989, -0.2983, 0.01755, -0.7944, 0.0447, -1.331, -0.279, -0.01325, -0.2695, -0.377, -0.7256, 0.3684, -0.236, -0.715], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.651, 0.2218, -0.03009, 0.1164, -0.329, -0.001165, 0.7036, -0.2439, 0.3, -0.342, 0.002153, 0.2502, 0.233, 0.927, 0.3044, 0.2827, -0.7983, -0.0408, 0.3, -0.2108, 0.02248, 0.2491, -0.2126, 1.153, -0.604, -0.1879, -0.0426, -0.2362, -1.141, -0.0858, 0.03708, -0.03503, 0.02342, -0.4727, 0.2583, 0.1736, -0.4617, 0.838, 0.02892, -0.3262, -0.02054, -0.00863, 0.4932, 0.04474, -0.1371, -2.068, -0.4377, 0.2576, 0.3816, 0.3376], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1487, -0.2917, -0.01703, -0.05978, 0.997, 0.3867, -0.05865, -0.0665, 0.0419, -0.1113, -0.02856, -0.2297, -0.1359, 0.7876, -0.0636, -0.07513, -0.569, 0.002907, 0.09314, -0.2399, 0.0238, 0.01395, 0.11017, -0.383, 0.4263, -0.6294, -0.01796, 0.4712, 0.0939, -0.261, 0.653, 0.01646, 0.002499, 0.00897, 0.711, -0.961, 0.164, -0.3547, 0.0386, -0.006172, 0.01388, -1.425, -0.847, 0.03143, 0.6147, -0.02373, -0.4253, 0.10345, -0.0348, -0.4712], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5586, 0.445, 0.010895, -0.1804, 0.748, -0.0523, 0.2295, -0.4973, 0.10504, -0.3093, -0.01341, 0.641, 0.716, 0.4805, 1.393, 0.1421, 0.2998, -0.01866, -0.1989, 0.891, 0.0293, 0.3914, 0.00899, -0.2362, 0.00676, -0.6074, -0.02052, 0.03217, 0.3235, 0.09753, -0.9614, 0.006912, 0.02045, -0.1427, 0.977, 0.5234, 0.05975, -0.3577, -0.0194, 1.589, -0.02838, -0.6304, -0.2898, 0.04114, -0.0784, 2.768, 0.7876, -0.7896, 0.3696, 0.1177], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.587, -0.08624, 0.00412, 0.285, 0.0869, 0.2323, -0.0242, 0.5156, -0.426, -0.656, -0.0257, 0.3877, -0.1526, 0.7266, 0.7197, 0.7183, 0.583, 0.03836, -0.0814, 2.287, 0.02167, 0.05054, 0.2084, 0.3433, 0.0589, 0.03247, -0.03284, 0.9395, -0.4639, -0.3032, 1.004, -0.00905, 0.01828, 0.403, -0.741, 0.4722, 0.1416, -0.867, -0.003664, 0.5015, 0.0364, 0.504, 0.9336, -0.02596, -0.706, -0.03644, -0.9473, 0.521, -0.4407, -0.8887], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5303, 0.3333, -0.0349, 0.7793, 0.262, 0.2861, -0.3992, 0.65, -0.767, -0.4192, 0.01239, -0.2625, 0.2605, 0.03732, -0.5425, -0.2751, 0.1328, 0.0149, 0.068, -0.2012, 0.01752, 0.2411, -0.07874, -0.1537, 0.61, -0.0977, 0.02718, -1.517, 0.6084, 0.298, 0.303, 0.0002484, -0.01569, 0.1277, 0.572, -0.7993, 0.004288, 0.1829, 0.02988, 1.008, -0.05124, 0.8394, -0.573, -0.03293, 0.2408, 0.502, 0.007717, 0.2698, -0.1766, -0.4263]]
[0.579304, 0.128103, -0.174801, -0.00297032, -0.0572326, -0.257136, -0.0175343, 0.234544, -0.000781701, -0.00547455, -0.0452027, -0.25837, -0.0831357, 0.0699296, -0.0458862, -0.162263, 0.000353694, 0.217604, 0.118055, 0.0448578, -0.652601, 0.437063, 0.0694955, -0.0563135, -0.200569, -0.619008, 0.0757925, 0.164618, -0.635327, 0.0186143, 0.181311, 0.0472835, -0.340189, 0.439072, 0.263168, 0.0179799, -0.00601458, 0.0839292, 0.599211, 0.102203, 0.303765, 0.163653, -0.0298705, 0.19064, 0.0154844, -0.25051, -0.178098, -0.226413, -0.0488983, -0.121596, 0.579, 0.128, -0.1748, -0.00297, -0.05722, -0.257, -0.01753, 0.2345, -0.0007815, -0.005474, -0.0452, -0.2583, -0.0831, 0.06995, -0.0459, -0.1622, 0.0003538, 0.2177, 0.11804, 0.04486, -0.653, 0.437, 0.0695, -0.0563, -0.2006, -0.619, 0.0758, 0.1647, -0.6353, 0.01862, 0.1813, 0.04727, -0.34, 0.439, 0.2632, 0.01797, -0.006016, 0.0839, 0.599, 0.1022, 0.3037, 0.1637, -0.02988, 0.1907, 0.01549, -0.2505, -0.1781, -0.2264, -0.0489, -0.1216]
ReLU
[[-0.24937, 0.0432026, -0.459267, -0.0177396, 0.200052, -0.202746, 0.498841, -0.334277, -0.419623, -0.297426, -0.417993, -0.40067, -0.269544, -0.130716, -0.607304, 0.110137, 0.206162, -0.5862, 0.521508, 0.660391, 0.46351, 0.327423, -0.311284, -0.0342814, 0.624057, -0.113293, 0.00731261, 0.623904, -0.345374, 0.0654344, 0.010027, 0.24264, 0.552714, -0.363172, 0.270513, 0.684133, 0.0322839, -0.130449, -0.0497572, -0.188175, 0.385101, 1.13273, 0.0811336, 0.548483, 0.295917, -0.24401, -0.179873, 0.118962, 0.153256, -0.28476, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.678196, 0.662644, 0.113652, -0.00686942, 0.229367, 0.0192535, 2.10784, 1.08936, 1.26683, 0.474004, -0.210135, 0.0517202, 0.91832, -0.123176, -0.1204, -0.060603, 0.0436644, -0.431703, 0.69311, 0.421966, -0.639243, -0.707467, 0.608303, 0.334963, -0.170069, 0.0961775, 0.693277, 0.673441, -0.744045, 0.286933, 0.091355, -0.266238, 0.368195, 0.501763, -0.301769, -0.357288, -0.014466, -0.0548268, 0.434522, -0.218188, -0.158489, 0.627268, -0.265484, 1.28928, 0.122789, 0.48619, -0.30653, 0.193711, -0.621046, -0.289037, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.544761, 0.103269, 1.31619, -0.0467495, -1.93879, 0.616085, -0.234804, 0.576078, 1.18398, -0.462646, -0.11934, 0.618478, -0.0189167, -0.283959, -0.275042, -0.0152707, -0.927934, 0.0279397, 0.510802, 0.172563, -1.1467, -0.451267, 0.664681, -1.14645, -0.347037, -0.709084, 0.424276, 1.60735, -0.285438, 0.512908, 0.647304, 0.409966, -0.215487, 1.04619, 1.57516, 0.752559, 0.0160264, 0.22277, 0.99686, 1.03406, 0.234243, -0.991934, -0.0903271, -0.101389, -0.423876, 0.631011, 0.805159, -1.09485, -0.14243, 0.950564, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.145892, -0.234607, -0.010769, 0.0338388, 0.251857, -0.185297, -0.536314, 0.18513, -0.32432, 0.163313, 0.121377, 0.0548659, 0.0832212, -0.305876, 0.174582, 0.314668, -0.0457068, 0.120926, 0.768401, 0.12994, -0.0603852, -0.062003, -0.211189, -0.454864, 0.0490576, -0.3137, 0.500369, 0.00324689, -0.229849, -0.0694843, 0.205743, -0.181073, 0.31515, 0.161771, 0.0987485, 0.214122, -0.00146473, 0.171724, 0.216612, -0.128195, 0.339437, 0.263314, -0.276108, 0.415865, 0.0977774, -0.424139, 0.0236617, 0.0220994, -0.0671115, -0.738517, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.503249, -0.414205, -0.404102, -0.00380474, 0.440203, -0.0464649, 1.55708, -0.212163, 0.477638, 0.551045, -0.164251, 0.253878, -0.639683, -0.157728, 0.718769, 0.0283431, 0.0309073, 0.49231, 1.06178, 0.821628, 0.160935, -0.0546697, -0.586481, 0.0329562, 0.0677677, -0.916166, 0.921849, 0.787201, 0.0114602, 1.12866, 0.0610111, 0.139459, 0.445805, 0.782675, -1.3769, -0.502764, 0.00237044, -0.0175572, -0.0782381, 0.380972, -0.195264, 0.538871, -0.142943, -1.00179, 0.27947, 0.229664, -0.410421, 0.0651555, -0.208381, -0.565376, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.686423, 0.140302, 0.167564, 0.0285923, 0.467392, -0.102875, 0.785952, -1.4631, 1.32858, 0.570002, 0.187731, -0.314326, -0.296134, 0.044729, -0.0679479, -0.798802, -0.723108, -0.466951, 1.07285, 0.0895213, 0.681691, -0.0762104, -0.00494851, -0.0295596, 0.110223, 0.823367, 0.221057, -0.553326, 0.643059, 0.245573, -0.655675, 0.266772, -0.564169, -0.226511, -1.59078, 0.599364, -0.015948, 0.755213, -0.0906535, 0.468255, -0.0652577, -0.697531, -0.182622, -0.143671, -0.506959, -0.187335, -0.192107, -1.13689, -0.0956293, 0.150694, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.929889, 1.06221, 0.181003, 0.0130958, -0.471411, 0.0167656, 1.27626, 0.378684, 0.584899, 1.00161, -0.914431, 0.325048, 1.37168, -0.453069, -0.247981, 0.287439, 0.0816455, 0.814211, 0.438956, 1.90479, -0.134739, -0.0363998, 0.539264, -0.880732, 0.769102, -0.286648, 0.595847, 0.508559, -0.721247, 0.327534, 0.584022, 0.330143, 0.581155, -0.0630916, 0.43636, 1.2669, 0.00474707, 0.107706, -0.206924, 0.699541, -0.599917, -1.85593, 0.384211, -0.495782, 0.0375291, 0.326442, 0.88628, -2.23623, -0.701484, -1.79917, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.202887, 1.69831, -1.26599, 0.0224392, 0.600148, -0.0349675, -0.738805, -0.696142, -1.22813, 0.98686, 0.312249, -0.444008, 0.707901, 0.237149, 0.481712, -0.163975, -0.379494, 0.538476, 0.58318, -0.268993, -0.0994465, 0.0116755, -0.247397, 0.269585, 0.424562, -0.0720306, -0.194602, -1.45538, 0.228042, 0.73946, 0.318435, -0.773989, 0.273601, -0.675442, 0.145994, -0.474495, 0.00165794, 0.0662915, -0.218566, -0.303953, 0.537209, 0.716361, 0.217312, 0.418906, 0.128153, 0.931968, -0.200488, 0.0170046, 0.142455, 0.233401, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.257535, -0.360279, 0.0415205, -0.00559051, -0.711151, -0.0910616, 1.73176, 1.21082, 0.234203, -0.0972706, 0.00364558, 0.0793167, -0.691746, 0.0870694, 0.62576, -0.353477, -0.500725, 0.245161, 0.0160634, -0.51137, -0.167825, -0.131326, 0.177651, -0.0937794, 0.0973588, 0.419422, 0.0600658, 0.275393, 0.233359, 0.287593, -0.0767844, -0.706451, -0.868389, -0.0509453, 0.262069, -0.165273, -0.0174326, -0.576411, 0.231468, -0.0127862, -0.0919463, 1.11257, -0.220021, 0.116229, -0.264848, -0.553984, -0.574198, 0.251355, 0.358057, 0.90222, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.388774, -0.448337, -0.232542, -0.000918741, -0.272272, 0.055676, 0.509513, 0.528259, -0.343334, -0.379296, -0.148027, -0.648721, 0.353663, -0.0815115, 0.286104, 0.0270031, -0.0222871, -0.30372, 0.214933, 0.254026, 0.104642, 0.0869798, 0.285829, -0.00650717, 0.495031, -0.174892, 0.24078, 0.749736, -0.211954, -0.209489, -0.264216, 0.453287, 0.179355, 0.0122723, 0.130171, 0.37537, 0.0190259, -0.0213686, 0.173558, -0.0567835, 0.121048, 1.66276, -0.227924, 0.329243, 0.255414, -0.242491, -0.119941, 0.119103, 0.153925, -0.443828, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.368322, -0.560772, -0.633607, 0.0373617, 0.0653804, -0.380119, 2.00029, 0.909089, -0.386649, -0.582088, -0.614606, -0.613509, 0.2251, -0.354216, -0.109572, 0.659313, 0.328115, -0.607999, 0.530476, 0.0296456, 0.890069, 0.676692, -0.521764, -0.368659, 0.432448, 0.0344481, 0.569091, 1.58801, -0.520779, 1.22368, -0.255703, 0.938859, 0.922004, 0.239479, 1.04367, 0.130596, -0.0274512, -0.316117, -0.119587, 0.0793007, 0.254086, 0.65396, -0.334691, 0.285951, 0.830319, -0.264024, -0.398371, 0.457809, 0.35406, -1.04965, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.125589, -2.03835, -0.462735, 0.0317867, 0.248376, 0.091584, 1.77806, -0.748797, -0.023769, -0.411716, 0.0828703, -0.541715, 0.725848, 0.0845695, 0.482231, 0.00985924, 0.00703532, -0.173244, -0.290457, 0.0211795, 0.209244, 0.174989, -0.109725, -0.0738735, 0.115559, -0.226224, 0.123354, 0.083069, 0.108987, 0.03843, -0.756152, 0.18617, -0.0151872, 0.192014, -0.0836965, -0.844544, -0.0342026, -0.451618, -0.361219, 0.0998418, 0.403356, 0.957802, 0.0304119, -0.432452, 0.672278, -0.274855, -0.450376, 0.604884, 0.104444, 0.656278, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00895973, 0.223052, -0.157534, -0.00311849, -0.389211, 0.0478222, -0.179054, -0.331609, 1.35169, -0.0751479, -0.380821, 0.0579327, 0.286886, 0.0590241, 0.498017, -0.049656, 0.0153266, 0.114501, -0.43228, 0.416021, -0.170723, 0.133794, -0.682919, -0.36687, 0.0353668, 0.0602006, 0.794575, 0.10423, 0.228372, 0.0870897, -0.36672, 0.169958, -0.0309874, -1.16613, -0.123441, 0.0676957, -0.0373874, 0.641077, 0.0368144, 0.036073, -0.44589, 0.510983, 0.288431, 1.0341, -0.108306, -0.432813, 0.393232, 0.0215891, 0.38277, -0.693248, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.279515, -0.0998238, -0.331869, -0.0474027, -0.292361, 0.223367, 0.282371, -0.991951, 0.19433, 1.31957, 0.561684, 0.330869, -0.317977, 0.272264, 0.121066, -0.0389529, -0.429159, 0.644795, 1.00873, 0.77805, -0.166281, -0.269437, 0.483532, 0.553005, 0.334027, 0.207286, 0.875068, 0.633871, 0.193038, -0.521391, 0.0401837, 0.643742, 0.254902, -0.790681, 0.373192, 0.713081, -0.0317037, -0.0633741, -0.320275, -0.399528, 0.0369965, 0.0544196, 0.303457, 0.993747, -0.0854972, -0.939404, 0.393501, 0.317359, 0.461116, 0.256282, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0114511, 0.659246, -0.373261, -0.0443628, -0.341647, 0.133756, -0.36651, -0.533251, 0.49957, 0.69671, 0.462331, -0.193291, -0.534376, 0.268831, 0.267265, 0.0126894, -1.65521, 0.282181, 0.619138, -0.0491527, -0.0367344, -0.0365807, 0.159929, -0.402387, 0.114582, 0.0343963, 0.956347, -0.391298, 0.812953, 0.102702, -0.579606, 0.458001, -1.09745, -0.168823, 0.371635, 0.41245, -0.0465844, -0.699071, -0.0752359, 0.366159, 0.150518, 0.177558, -0.404627, -2.15053, -0.0272493, 0.35399, -0.33691, 0.253205, 0.17925, -0.620628, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.141856, -0.248266, -0.120616, 0.0464978, 0.0567705, -0.0539897, 1.48781, -0.200689, -0.265477, 0.116605, -0.335663, 0.107458, -0.162253, -0.257967, -0.743014, 0.197918, -0.0402847, -0.0613337, 0.439527, 0.146284, 0.0266629, 0.376604, -0.0401599, -0.686637, -0.132398, -0.739727, -0.479952, 1.11228, -0.416554, 0.391607, 0.351044, 0.670738, 0.747435, 0.171351, 0.280781, 0.679187, 0.0454586, 0.0529518, -0.330557, -0.654236, 0.519218, 1.11342, -0.236293, 0.381853, 0.0877145, 0.792479, 0.0220966, 0.277917, 0.328493, -0.409682, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.427541, -0.0469516, -0.359873, -0.0189472, -0.0379152, -0.238003, -1.55482, -0.921955, -0.0674426, -0.0752268, 0.433269, 0.440288, -0.238748, 0.0661338, -0.165879, 0.128398, -0.243774, -0.94552, 1.33603, -0.273973, 0.517054, 0.349765, -0.283429, -0.476652, 0.231281, 1.17708, 1.66622, -0.0552129, -0.254856, -1.23481, 0.0360153, 0.234108, -0.0738123, -2.756, -0.509622, 1.32506, 0.0128291, -0.0569401, 0.0924194, 0.216781, -0.340321, 0.115993, 0.532089, 0.928866, -0.135843, -0.741506, -0.304116, 0.0348185, 0.16646, -0.704188, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0454586, 0.437783, 0.391983, -0.0114398, -0.0217449, -0.32225, -0.26183, 0.935833, 0.0394197, 0.766177, 0.51402, -0.0655424, -0.870623, 0.254824, 0.371151, -0.304844, 0.00786034, 0.0520904, -1.60815, 0.17041, -0.36895, -0.190966, 0.131268, 0.231822, 0.0478439, 0.373648, 0.121337, -0.166052, 0.0738397, 0.135583, -0.1285, 0.566492, -0.959022, -0.0541073, -0.424106, -0.152657, 0.0442873, 0.277466, 0.232815, -0.448273, 0.219792, -0.132399, 0.554592, 0.622948, -0.151449, 0.374045, -0.408483, 0.0305587, 0.0943859, 0.309281, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.10745, -0.0727049, 0.595708, 0.000488532, -0.21443, 0.199711, -0.017622, -1.0543, -0.173829, 0.507356, -0.473308, 0.160684, -0.782984, -0.314935, -0.546154, 0.00859736, 0.403463, -0.0128508, -0.35874, 0.245086, -0.190212, 0.207894, 0.274654, -0.702567, -0.0181741, -0.483116, 0.532144, -0.451538, -0.0661667, 0.705328, -0.663122, 0.696574, -0.639347, -0.169899, -0.784856, 0.209327, -0.0380039, -0.524668, -0.123151, -0.117177, -0.0117169, -0.89772, -0.356377, -0.750273, -0.0622016, 0.539401, 0.306703, 0.253235, -0.526409, 0.461801, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00169131, -0.0248215, 0.000305026, -0.0033014, 0.00649349, 0.0165239, 0.011453, 0.046955, -0.00909585, 0.00271373, 0.000231363, 0.00890883, 0.0242375, -0.0280662, 0.0155524, 0.042003, 0.0236561, -0.0488389, -0.0217026, -0.049179, 0.0180479, -0.00956421, -0.0134408, -0.0129553, -0.0483949, -0.0175948, 0.0137551, -0.0176949, 0.00857606, -0.0471592, -0.0111024, 0.011757, 0.0160892, -0.0533253, -0.0380681, 0.0282616, -0.0389104, -0.0482671, -0.00164285, -0.0173514, 0.0294489, -0.0518655, -0.0219534, 0.0171589, -0.0283476, -0.0174449, -0.0395546, -0.0443206, -0.037841, 0.0395147, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.44252, 0.0850963, -0.425745, -0.00312771, 0.541179, -0.104958, 1.36758, -0.214392, -0.0496947, -0.329546, -0.357353, -0.311064, -0.000706021, -0.501824, 1.37924, 0.524431, -0.0573254, 0.44927, -0.381833, -0.664173, -0.351798, -0.178433, 0.390949, 0.140309, -0.0558925, 0.00461201, 0.492245, -0.120916, 0.286783, 0.312411, 0.101559, -0.513913, 0.184047, 0.157705, 1.28862, -0.600008, -0.0387152, -0.181995, 0.217153, -0.13318, 0.120223, 0.289939, 0.120301, 0.128121, 0.0023478, 0.584134, 0.208808, 0.0246956, 0.0421831, 0.0835962, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.236247, 0.388372, 0.0853066, 0.0398838, 0.573054, 0.3118, -0.725336, 0.421959, -0.321755, 0.0888571, 0.247563, 0.0500399, 1.23777, -0.208797, -0.590403, -0.133128, -0.364908, 0.152761, 0.773006, -0.433773, -1.1392, 0.0580431, 0.395208, 0.0210274, 0.0696787, 0.497815, 0.651328, -0.817646, -0.120393, -0.597596, 0.075811, -0.0317713, -0.546468, 0.409803, 0.175314, -0.0761176, -0.0337364, -0.161519, -0.0237192, -0.178728, 0.146149, 1.53113, -0.399808, -0.241591, -0.814051, 0.151364, 0.0835807, 0.126979, -0.171269, -0.326918, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.260743, -0.909768, -0.58083, 0.047698, 0.178306, -0.359588, 2.8154, -0.438074, -0.478529, 0.0496424, -0.515093, -1.27729, 0.676711, -0.682965, 0.0938346, 0.375366, 0.64363, -0.165396, 0.577659, 0.147816, 1.02498, 0.6167, -0.342389, 0.165792, 0.674878, -0.0754586, 0.860547, 1.16314, -0.609724, -0.895291, 0.241253, 1.08726, 1.45952, -0.825067, 0.898254, -0.180437, 0.0426407, 0.196075, -0.0110658, -0.100356, 0.345677, 1.77437, -0.782318, -0.885929, 0.571125, 0.432563, -0.31814, 0.95334, 0.418012, -1.14025, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0203797, 0.0377457, -0.0426919, 0.0260576, -0.00269997, -0.0148431, -0.0222991, 0.0358022, -0.0239594, -0.0181414, -0.0338065, 0.0281941, -0.0510922, 0.00871913, -0.044631, -0.0308392, -0.0247757, -0.00856986, 0.027891, -0.0306574, -0.00332116, -0.0476072, 0.004957, 0.0180256, -0.0440888, -0.0461514, -0.0244463, -0.0333755, -0.0121739, 0.0353615, -0.0457813, -0.0210368, -0.0101115, -0.0530714, -0.0108448, 0.0289577, 0.0243094, -0.0577745, 0.00851066, -0.00653244, -0.0196244, 0.01794, 0.019629, -0.0492127, -0.0443216, -0.0021108, 0.0142734, 0.00403853, -0.0463009, -0.0230474, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.497565, 0.616181, 0.208276, 0.00880707, 0.237379, 0.118872, 0.0228989, 0.267645, -0.546536, 0.738434, 0.973466, 0.44721, 1.16898, -0.244406, 0.0452008, -0.841022, -0.126071, 0.148588, -0.188101, -2.29087, -0.0134668, -0.160734, 1.29354, -1.2087, 0.535986, 1.03616, 1.4995, -0.568369, 0.925699, -0.48615, -0.752771, 1.16639, -1.91352, 0.759561, -1.50148, 1.49579, 0.0404638, 0.101721, 1.03083, 0.532308, 0.350809, -2.99821, -0.457011, -0.110112, -0.237243, 0.0802689, -0.294331, -0.502856, -0.724437, 1.55703, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.208558, 0.504415, -0.0809145, -0.00824335, -0.190963, 0.057108, -0.00570586, 0.013116, 1.60567, 1.21632, 0.283481, -0.395541, 0.202201, 0.146466, 0.855985, -0.456229, 0.214083, 0.130093, 0.451687, 0.609969, -0.138494, 0.0111231, -0.314352, -0.842978, -0.735681, -0.229474, -0.139355, -0.593901, 0.54017, -1.34761, -0.374913, 0.175185, -0.0350002, -0.0673682, -0.325853, -0.282797, -0.0372956, 0.112306, -0.105918, 0.23337, 0.0492078, 0.840046, 0.297547, -0.546556, 0.0300714, -0.250514, -0.0344505, 0.209471, -0.0259306, -0.0556973, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.234962, 0.397967, 0.0119761, -0.0204314, -0.280555, -0.00360781, -0.993181, -0.978615, 0.113333, -0.124216, -0.0497097, -0.406574, -0.404921, -0.411782, -0.352443, -0.141485, -0.181829, -0.051806, -0.722527, -0.222191, 0.104398, -0.00997688, -0.0467553, -0.103933, -0.0746578, 0.0520061, -0.0506541, -0.270079, -0.147545, -0.0632361, 0.249383, 0.546138, -0.181696, 0.146668, 0.183965, 0.422172, -0.0425273, -0.742776, 0.0679984, 0.118999, -0.117338, 0.847243, -0.273521, 0.0554174, -0.0698943, -0.097401, -0.0859578, 0.225558, 0.0183307, 0.161315, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00885922, 0.069082, -0.1764, -0.0376863, 0.032647, -0.0575588, 0.424779, 0.74442, -0.601721, -0.42583, 0.219374, 0.319416, 0.246922, 0.317567, 0.331195, 0.438586, -0.445992, -0.117125, 0.563177, -0.372209, -0.291744, 0.0554533, 0.467483, 0.602047, -0.465954, -0.0589255, -0.801416, 0.551446, -0.172187, 0.546708, -0.00310478, -0.140711, -0.0757977, -0.30046, 0.517347, 0.0319109, -0.0209331, -0.0917035, 0.102264, 0.266203, 0.313692, 0.734399, 0.491978, -0.0250684, -0.0920375, -0.519669, -0.0877932, -0.233976, 0.0447923, 0.0390739, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.241739, -0.123808, -0.168652, 0.0277807, 0.155276, 0.0383259, -0.31411, 0.917019, -0.222417, 0.0826831, 0.0688428, 0.288844, 0.245424, 0.156802, 0.089433, 0.0201978, -0.264569, -0.00910946, -0.356942, 0.0699951, -0.102104, -0.00997171, 0.0593217, 0.128416, 0.217356, 0.156676, 0.567693, 0.187575, 0.162892, 0.874903, -0.195701, -0.0767867, -0.226676, 0.135508, 0.0593238, 0.0192025, -0.0434133, -0.174488, -0.0245925, -0.139937, -0.27589, -0.620531, 0.121426, 0.602391, -0.151436, -0.30871, 0.141137, -0.061326, -0.0525397, -0.146307, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0119379, -0.0405108, -0.0461737, 0.0408235, 0.0424984, -0.0193057, 0.0192759, -0.0598588, -0.0144414, 0.0135301, -0.00541522, -0.00913579, -0.00568358, 0.00453284, -0.0194027, -0.0444434, -0.0212121, 0.0378633, 0.006354, -0.0188028, 0.0335759, -0.0116581, -0.0417801, -0.0446457, 0.0148335, 0.0133925, -0.00999068, -0.0338377, -0.0321067, -0.0144909, -0.0192288, -0.0292686, -0.0219077, -0.0420035, -0.0140561, -0.0381464, 0.0354332, 0.0263848, -0.006606, 0.035998, 0.0205651, 0.00457365, -0.0559312, -0.00530221, -0.0411624, 0.023669, 0.0377378, -0.0365861, 0.0202161, 0.0440453, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0341064, -0.285946, 0.0121492, -0.0345904, 0.0833693, -0.226569, 1.019, 0.298449, 0.804703, 0.119876, 0.141528, -0.0461669, -0.0035597, 0.0091704, 1.0653, 0.203994, 0.446882, -0.183694, -0.625457, -0.150411, 0.209347, 0.0606347, 0.121887, 0.665188, -0.0135734, 0.0961429, -0.350701, 0.487007, -0.215069, 0.544153, -0.0552882, 0.269117, -0.0692486, -0.621168, 0.613107, -0.248782, -0.00573577, -0.134232, 0.212044, -0.0274169, -0.0492615, -0.0916743, -0.336614, 0.478524, 0.520479, 0.0224929, 0.320159, -0.0751762, -0.0765507, -0.246047, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.341143, 1.12242, 0.952786, -0.0206722, -1.24691, -0.126383, -1.97368, 2.31189, 0.6742, 0.387305, -0.606111, -0.391995, 0.429247, 0.184743, 0.102235, 0.272487, -0.37402, 0.10505, 0.794944, 0.466877, 0.866944, -0.135941, 1.50959, 0.559766, 0.591754, 0.760827, 1.07374, 0.686874, -0.479421, 0.53477, 0.705934, 0.600184, -0.987659, -0.439716, 0.366941, -0.350101, 0.0428339, 0.0357632, 0.24001, 0.318645, -0.778022, 0.564639, -0.494566, 0.419327, 0.344198, -0.54459, 0.720501, -0.0668448, 0.279995, -0.294944, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.332612, 0.131308, 0.0379739, -0.00385074, -0.430791, 0.00175223, 0.0780426, 0.286861, -1.12067, 0.220032, -0.3442, -0.0421346, -0.0907346, 0.00176468, -0.0157868, -0.00196375, -0.167042, 0.177911, -0.0886931, 0.0313661, 0.162165, -0.00411071, 0.0889936, -0.413378, 0.154999, 0.0645285, -0.688452, -0.289175, -0.105442, 0.542029, 0.21799, 0.174148, -0.21301, 0.278535, -0.171281, -0.0437264, -0.0442849, -0.00841567, 0.0599474, -0.0119518, 0.0373663, -0.590286, -0.20608, -0.233817, -0.0730408, -0.145982, -0.250531, 0.0198361, 0.0289969, 0.711598, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.750042, 0.135125, 0.151864, -0.0454445, -0.372218, -0.0764027, 0.514572, 0.95251, 1.64332, 0.572147, -1.0247, 0.0900398, 0.694625, -0.281831, 0.429622, -0.131173, 0.181398, 0.513785, 1.09175, -0.298041, -0.0863215, 0.0961986, -0.472509, 0.298923, 0.395955, -0.355718, -0.707838, 0.281882, -0.917845, 0.059783, 0.508467, -0.668334, 1.01688, 0.291202, 0.396048, -0.140895, -0.0351468, -0.243744, -0.141542, 0.623242, -0.0941275, 2.2428, -0.0797693, 0.842987, 0.494238, 0.0942439, 0.220709, 0.0017859, 0.0857169, -0.341106, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0210279, -0.0445547, -0.0469292, -0.0405358, 0.0294662, -0.0390211, 0.00945909, -0.00338256, 0.00504315, -0.0395551, -0.0272649, -0.0360474, -0.049682, 0.00216628, 0.00711211, -0.00422217, -0.00912231, -0.0470887, -0.0356051, -0.0394605, -0.0206584, -0.0257951, -0.031347, -0.0181559, 0.0318398, 0.0419911, -0.0315756, 0.0322988, -0.0456339, 0.0423268, 0.00448569, -0.0452773, 0.00574, -0.00380172, -0.0117492, 0.0254341, 0.00378047, -0.00311447, -0.0401544, -0.018928, 0.0192058, 0.0332924, 0.0102114, 0.00934696, 0.0159034, -0.0325947, -0.0392639, -0.0513301, -0.0167438, -0.00702206, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.195162, 0.0527051, 0.296053, 0.0429807, -0.112682, -0.0218679, -0.762149, 0.522917, -0.500787, 0.124648, 0.471258, -0.0885883, 0.344368, 0.44709, 0.364681, -0.230859, -0.280214, 0.0982598, -0.307924, 0.716517, -0.104276, -0.217405, 0.211716, 0.0424581, 0.218843, -0.274205, -1.10718, 0.296789, -0.0299602, 0.377872, -0.0884113, 0.143922, 0.300797, 0.476137, 0.265502, -0.0447619, -0.044355, 0.0234095, -0.124739, -0.2538, -0.126964, 0.685373, 0.318135, 0.731819, -0.0687692, -0.407359, -0.352283, 0.167134, -0.0299146, 0.334273, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.315569, -0.177849, -0.0398839, 0.00602233, 0.240583, -0.0102897, -0.608487, 0.364426, -0.503212, 0.436315, 0.038807, 0.233759, -0.0065769, 0.184439, 0.478642, -0.104209, -0.0651173, -0.239855, -0.539887, 0.259904, -0.200973, -0.407342, 0.588945, 0.480494, 0.0481202, -0.0798484, 0.122666, 0.147437, -0.11042, -0.425875, -0.0419479, -0.725495, 0.125635, -0.276036, 0.295882, -0.481392, 0.000238333, 0.139756, 0.311982, -0.232259, -0.165785, -0.551429, 0.037542, 0.940706, 0.0369976, 0.0545223, 0.212672, -0.123919, -0.279038, 0.462538, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.0864, -0.0784054, -0.25442, -0.049984, -0.373418, 0.367413, -0.591459, -0.326764, 1.10849, 0.305056, 0.491883, -0.233289, -1.4251, 0.204156, 0.824411, -0.0901416, -0.189995, 0.773868, 1.2019, -0.114976, 1.08748, -0.229603, -0.265835, -1.84903, 0.495286, 0.166181, 1.08969, 1.25109, 0.569505, 1.47221, -0.310371, -0.0398421, 0.212113, -0.623489, 0.168534, 0.410829, 0.00591197, -0.089942, -0.0982845, 0.177599, -0.175808, -0.60472, -0.256535, -0.510616, 0.119544, 0.398529, 0.216394, -0.00951875, -0.248991, -0.940649, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.204449, 0.648787, -0.0474029, -0.00316606, -0.104321, -0.0113393, 2.20422, 0.25474, 0.444143, 0.400469, 0.38088, 0.314796, -0.820625, -0.0182998, -0.0848051, -0.155709, -0.269929, -0.0217529, 0.254474, -0.372354, 0.243129, -0.176882, -0.042427, 1.03912, 0.156123, 0.784291, 1.19329, -0.512612, -0.0311169, -0.612295, -0.00363206, 0.0365334, -0.292462, -0.742868, -0.162749, -0.850426, 0.0217845, -0.351659, -0.0620096, 0.194418, 0.0844593, 0.597501, 0.170611, 1.2752, 0.231114, -0.338482, -0.237909, 0.392076, -0.481003, 0.266529, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.223138, 0.432062, 0.0674931, -0.0196263, -0.296647, -0.320112, -0.580394, -0.469803, 0.143203, -0.230731, 0.13051, 0.332688, 0.0629946, -0.323726, 0.137516, -1.12876, -0.658664, 0.355592, 0.841349, -0.782228, -0.30147, 0.20064, 0.321542, -0.262356, -0.0939747, -1.22859, 0.266007, 0.237195, 0.168086, 0.159848, 0.617223, 1.35927, -1.55471, -0.105619, -0.145317, 0.130291, -0.000856923, -0.0624121, 0.0624458, 0.34146, -0.189713, -0.576755, 0.412456, -0.79264, -0.480707, 0.226278, -0.0860806, -0.0564998, 0.433783, -0.14192, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.115307, -0.241603, -0.045152, -0.000776747, -0.0330265, -0.176568, -0.743238, 0.651358, -1.07862, 0.523799, 0.289729, -0.0607406, 0.428905, -0.10417, 0.0355129, -0.10922, -0.576706, -0.105216, -0.0568547, 0.354432, 0.375887, 0.057091, -0.216482, -0.126966, 0.399869, -0.0185103, 0.564743, -0.230025, -0.128221, -0.00812061, -0.191654, -0.334555, -0.0680665, -0.228705, 0.0194161, 0.171632, -0.0445392, 0.17731, -0.145301, 0.119926, -0.198262, -0.345933, -0.262755, -0.175259, -0.206939, 0.363314, -0.197254, 0.107758, 0.16048, -0.509152, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.135999, -0.0795731, -0.039964, 0.0299377, 0.133829, -0.0729335, 0.468621, -0.530359, 0.0990331, 0.176688, 0.0491409, -0.0833723, 0.231572, -0.0387017, 0.126, -0.00839279, 0.16135, -0.00954044, 0.327719, -0.048522, 0.0557172, -0.0131938, -0.166819, -0.258623, 0.00815231, -0.0509135, -0.199293, -0.17399, 0.0627476, -0.0953022, -0.0258202, 0.0501937, 0.0583939, 0.0139331, -0.141532, 0.00681367, 0.045165, 0.0756266, -0.0545398, 0.0785408, 0.0210603, -0.0860305, 0.0250507, 0.213149, 0.135293, 0.0357069, 0.0155279, -0.0239753, -0.0257288, -0.055047, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.218526, -0.161645, 0.00397928, -0.0352265, -1.03216, 0.104851, 2.48923, 1.04412, 1.1517, 0.0808445, -0.537766, -0.361621, 1.48725, -1.02184, -1.06356, 0.179701, 0.281882, 0.143286, -0.269111, 0.580615, 0.127008, -0.488674, 0.470333, -1.63066, 0.830305, -0.162999, 0.224126, 2.07419, 0.120228, 1.3003, -0.24073, 1.30654, 0.359465, 0.675829, 0.870785, 1.39067, -0.0259255, 0.27973, -0.0888029, -0.131922, -0.231589, -0.595354, -0.0848234, -0.332972, 0.092928, 0.406822, 0.435992, -2.00956, -0.346892, -0.683033, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [1.33589, 0.584053, 0.874222, -0.0395852, -0.290229, -0.0843604, 2.98777, 0.527355, 0.747406, 1.9913, 0.747451, 0.850181, 1.19596, 0.630281, -0.275924, -0.330046, -0.969704, 1.45838, 0.0620811, 1.11288, -0.357025, -0.383496, 0.811972, 0.0758305, 0.167729, -0.779426, 0.546379, 0.835324, -0.203522, 0.341366, 0.155542, -0.415283, -0.0550409, 0.0952625, 0.281171, 0.200509, -0.0470076, -0.426199, -0.275333, -0.0700723, -0.88637, -2.35746, 0.102128, -0.943837, 0.515679, -1.3553, 0.280146, 0.349079, -0.922005, 0.679464, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.935078, 0.274921, -0.829167, 0.0197176, -0.308929, -0.140558, -1.40743, -2.01394, 0.480773, -0.6276, -0.767156, 0.523254, 0.553255, -0.0967071, -0.601049, -0.747258, -2.14498, 0.839542, 0.831887, 0.890239, 0.46688, -0.206785, 0.268334, -1.24841, -0.749551, -0.521631, 0.48625, 0.649642, 0.415161, 0.424137, 0.242168, -0.0789351, 0.296808, 0.32833, 0.395197, -0.580655, -0.0161968, -0.333287, -0.0416723, -0.0453187, -0.254127, -1.1974, -1.59063, -0.493503, -0.868031, 0.862567, 0.0314251, 0.543225, -0.102126, -0.713025, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.203111, -0.295264, 0.254254, 0.0529871, -0.420006, 0.0106524, -0.737298, -0.623416, -1.23274, -0.475445, -0.0790546, -0.349832, 0.102292, -0.107802, 0.143624, 0.165119, -0.362397, 0.0206972, -0.757085, -0.0707342, 0.0480367, 0.0779787, 0.417525, -0.288193, 0.0876521, -0.157225, -0.481184, 0.778777, -0.187008, 0.16596, 0.11265, 0.395496, 0.367642, 0.159222, 0.423533, 0.10084, -0.0108368, 0.101585, 0.045607, -0.114625, 0.191281, 0.615942, -0.0837196, 0.0756378, -0.0485391, 0.190129, -0.276046, 0.193993, 0.200366, 0.423455, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0646395, 0.291115, 0.221402, -0.0342299, -1.07526, -0.0506495, 0.375747, -0.53686, -1.03747, 1.11777, -0.520154, -0.165744, 0.117281, -0.0638641, 0.647535, -0.228662, -0.472703, 0.313315, 0.0448449, 0.699538, -0.0400716, 0.0995316, 0.638309, 0.134732, -0.479725, -0.141417, -0.0963754, 0.539756, 0.154604, 0.00252525, 0.521141, 0.861746, -0.462275, 0.0050059, -0.0979518, 0.497848, -0.0245918, -0.38581, -0.132001, 0.248188, -0.247124, 0.719144, -0.339928, -0.326514, 0.156396, 0.543736, 0.0636577, 0.169128, 0.287881, -0.512919, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0209826, 0.0405758, -0.0373101, 0.0121668, 0.019317, -0.00111857, -0.0114047, -0.01169, -0.0393189, 0.0317931, -0.0373302, -0.0118318, 0.0341842, 0.0199885, -0.0171402, -0.0476033, 0.000509987, 0.0123916, -0.0136344, -0.0387353, -0.0280574, 0.0119866, -0.0334767, -0.0112853, -0.017132, -0.000755387, -0.0198035, -0.0147582, -0.0301202, 0.0195868, -0.0300615, -0.0152424, -0.0126866, -0.00382632, -0.0189064, 0.0257291, 0.000352735, -0.0153848, -0.0232242, -0.000322762, 0.00395238, -0.0521874, -0.0261391, 0.0312946, -0.0350596, -0.0241762, -0.0176734, 0.022649, 0.0287076, 0.00696302, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.558216, 0.116161, -0.777368, -0.0431353, -0.158837, 0.182883, -0.407228, 0.396947, -0.245559, 0.039451, 0.359285, -0.305317, -0.0101412, -0.263634, 0.292462, -0.999094, -0.72366, -0.166816, -1.62289, -0.882781, -0.267233, -0.00368717, 0.64211, 2.12793, 0.657436, -0.127967, 1.65491, -0.127071, 0.146342, -0.254616, -0.523811, 0.0573537, -1.33216, 1.05534, -1.04557, 0.373659, 0.0255687, -0.685669, 0.297432, 0.169158, 0.0677184, -1.04244, -0.127481, -0.17788, -0.0924755, 0.472213, 0.0432632, -0.0375094, -0.855426, -0.168793, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.275015, -0.0734672, 0.184426, 0.00536255, -0.286094, 0.00705654, 0.65628, -0.164677, 0.642022, 0.145668, -0.117872, -0.217659, 0.155332, -0.0255605, 0.41829, -0.0232033, 0.268302, 0.364908, 0.156612, -0.278659, 0.172354, -0.000972744, -0.0960905, -0.4144, -0.097778, -0.161292, -0.426712, -0.110472, -0.20446, 0.168382, 0.349991, 0.0504478, 0.2954, -0.136092, 0.203739, 0.211552, 0.0244646, 0.269487, -0.0341465, 0.460354, 0.17, 0.209967, -0.261244, 0.534654, 0.245165, 0.0774151, 0.167459, -0.0758003, 0.075805, -0.15241, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2494, 0.0432, -0.4592, -0.01775, 0.2001, -0.2028, 0.4988, -0.3342, -0.4197, -0.2974, -0.418, -0.4006, -0.2695, -0.1307, -0.6074, 0.1101, 0.2062, -0.5864, 0.5215, 0.66, 0.4636, 0.3274, -0.3113, -0.03427, 0.624, -0.1133, 0.007313, 0.624, -0.3455, 0.0654, 0.010025, 0.2427, 0.5527, -0.3633, 0.2705, 0.684, 0.0323, -0.1305, -0.04974, -0.1882, 0.385, 1.133, 0.0811, 0.5483, 0.296, -0.244, -0.1799, 0.11896, 0.1532, -0.2847], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.678, 0.6626, 0.11365, -0.00687, 0.2294, 0.01926, 2.107, 1.09, 1.267, 0.474, -0.2101, 0.05173, 0.9185, -0.12317, -0.1204, -0.0606, 0.04367, -0.4316, 0.693, 0.4219, -0.639, -0.7075, 0.6084, 0.335, -0.17, 0.0962, 0.6934, 0.6733, -0.744, 0.2869, 0.0914, -0.2664, 0.3682, 0.502, -0.3018, -0.3572, -0.014465, -0.05484, 0.4346, -0.2181, -0.1584, 0.6274, -0.2654, 1.289, 0.1228, 0.486, -0.3066, 0.1937, -0.621, -0.289], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.545, 0.1033, 1.316, -0.04675, -1.938, 0.616, -0.2349, 0.576, 1.184, -0.4626, -0.1193, 0.6187, -0.01892, -0.284, -0.2751, -0.015274, -0.9277, 0.02794, 0.5107, 0.1726, -1.146, -0.4512, 0.6646, -1.146, -0.347, -0.709, 0.4243, 1.607, -0.2854, 0.5127, 0.6475, 0.41, -0.2155, 1.046, 1.575, 0.7524, 0.01602, 0.2228, 0.997, 1.034, 0.2343, -0.9917, -0.09033, -0.1014, -0.4238, 0.631, 0.805, -1.095, -0.1425, 0.9507], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1459, -0.2346, -0.01077, 0.03384, 0.252, -0.1853, -0.536, 0.1852, -0.3242, 0.1633, 0.1214, 0.05487, 0.0832, -0.306, 0.1746, 0.3147, -0.04572, 0.1209, 0.7686, 0.1299, -0.0604, -0.062, -0.2112, -0.4548, 0.04907, -0.3137, 0.5005, 0.003246, -0.2299, -0.06946, 0.2057, -0.181, 0.3152, 0.1617, 0.09875, 0.2141, -0.001465, 0.1718, 0.2166, -0.1282, 0.3394, 0.2634, -0.2761, 0.4158, 0.0978, -0.424, 0.02367, 0.0221, -0.06714, -0.7383], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5034, -0.4143, -0.404, -0.003805, 0.4402, -0.04648, 1.557, -0.2122, 0.4775, 0.5513, -0.1643, 0.254, -0.6396, -0.1577, 0.7188, 0.02834, 0.03091, 0.4924, 1.062, 0.822, 0.1609, -0.05466, -0.5864, 0.03296, 0.06775, -0.916, 0.922, 0.787, 0.01146, 1.129, 0.061, 0.1394, 0.4458, 0.7827, -1.377, -0.503, 0.00237, -0.01756, -0.07825, 0.3809, -0.1953, 0.539, -0.143, -1.002, 0.2795, 0.2296, -0.4104, 0.0652, -0.2084, -0.5654], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.6865, 0.1403, 0.1676, 0.0286, 0.4673, -0.1029, 0.786, -1.463, 1.328, 0.57, 0.1877, -0.3142, -0.2961, 0.04474, -0.06793, -0.799, -0.723, -0.467, 1.073, 0.08954, 0.6816, -0.07623, -0.004948, -0.02956, 0.1102, 0.823, 0.2211, -0.553, 0.643, 0.2456, -0.656, 0.2668, -0.564, -0.2266, -1.591, 0.599, -0.01595, 0.7554, -0.09064, 0.4683, -0.06525, -0.6978, -0.1826, -0.1437, -0.507, -0.1874, -0.1921, -1.137, -0.09564, 0.1506], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.9297, 1.0625, 0.181, 0.01309, -0.4714, 0.01677, 1.276, 0.3787, 0.585, 1.002, -0.9146, 0.325, 1.372, -0.4531, -0.2479, 0.2874, 0.08167, 0.8145, 0.439, 1.905, -0.1348, -0.0364, 0.539, -0.881, 0.769, -0.2866, 0.5957, 0.509, -0.721, 0.3276, 0.584, 0.33, 0.581, -0.0631, 0.4363, 1.267, 0.004745, 0.1077, -0.2069, 0.6997, -0.6, -1.855, 0.3843, -0.4958, 0.03754, 0.3264, 0.886, -2.236, -0.7017, -1.799], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2029, 1.698, -1.266, 0.02245, 0.6, -0.03497, -0.739, -0.6963, -1.229, 0.987, 0.3123, -0.444, 0.708, 0.2372, 0.4817, -0.164, -0.3794, 0.5386, 0.583, -0.269, -0.0994, 0.01167, -0.2474, 0.2695, 0.4246, -0.072, -0.1946, -1.455, 0.228, 0.7393, 0.3184, -0.774, 0.2737, -0.6753, 0.146, -0.4746, 0.0016575, 0.0663, -0.2185, -0.304, 0.537, 0.7163, 0.2173, 0.419, 0.1282, 0.932, -0.2004, 0.017, 0.1425, 0.2334], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2576, -0.3604, 0.04153, -0.005592, -0.711, -0.09106, 1.731, 1.211, 0.2343, -0.0973, 0.003645, 0.07935, -0.692, 0.0871, 0.626, -0.3535, -0.5005, 0.2451, 0.01607, -0.511, -0.1678, -0.1313, 0.1776, -0.09375, 0.09735, 0.4194, 0.06006, 0.2754, 0.2334, 0.2876, -0.0768, -0.7065, -0.868, -0.05093, 0.262, -0.1653, -0.01743, -0.576, 0.2314, -0.01279, -0.0919, 1.112, -0.22, 0.1162, -0.265, -0.554, -0.574, 0.2515, 0.3582, 0.9023], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3887, -0.4482, -0.2325, -0.000919, -0.2722, 0.05566, 0.5093, 0.5283, -0.3433, -0.3794, -0.1481, -0.649, 0.3538, -0.0815, 0.2861, 0.02701, -0.0223, -0.3037, 0.215, 0.254, 0.1046, 0.087, 0.286, -0.006508, 0.495, -0.1749, 0.2407, 0.7495, -0.2119, -0.2095, -0.2642, 0.4534, 0.1793, 0.012276, 0.1301, 0.3755, 0.01903, -0.02136, 0.1736, -0.0568, 0.12103, 1.663, -0.2279, 0.3293, 0.2554, -0.2424, -0.11993, 0.1191, 0.1539, -0.4438], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3684, -0.5605, -0.634, 0.03735, 0.06537, -0.3801, 2.0, 0.909, -0.3867, -0.582, -0.6147, -0.6133, 0.2251, -0.3542, -0.10956, 0.659, 0.3281, -0.608, 0.5303, 0.02965, 0.89, 0.677, -0.522, -0.3687, 0.4324, 0.03445, 0.569, 1.588, -0.521, 1.224, -0.2556, 0.939, 0.922, 0.2395, 1.044, 0.1306, -0.02745, -0.3162, -0.11957, 0.0793, 0.2542, 0.654, -0.3347, 0.286, 0.83, -0.264, -0.3984, 0.4578, 0.354, -1.05], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1256, -2.04, -0.4626, 0.0318, 0.2484, 0.0916, 1.778, -0.749, -0.02377, -0.4116, 0.0829, -0.5415, 0.726, 0.0846, 0.4822, 0.00986, 0.007034, -0.1732, -0.2905, 0.02118, 0.2092, 0.175, -0.10974, -0.07385, 0.11554, -0.2262, 0.12335, 0.08307, 0.109, 0.03842, -0.7563, 0.1862, -0.01519, 0.192, -0.0837, -0.8447, -0.0342, -0.4517, -0.3613, 0.09985, 0.4033, 0.958, 0.03041, -0.4324, 0.6724, -0.275, -0.4504, 0.605, 0.10443, 0.6562], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.00896, 0.223, -0.1576, -0.003119, -0.3892, 0.04782, -0.1791, -0.3315, 1.352, -0.07513, -0.3809, 0.05792, 0.2869, 0.05902, 0.498, -0.04965, 0.01533, 0.1145, -0.4324, 0.416, -0.1708, 0.1338, -0.683, -0.367, 0.03537, 0.0602, 0.7944, 0.10425, 0.2284, 0.0871, -0.3667, 0.1699, -0.03099, -1.166, -0.1234, 0.0677, -0.03738, 0.641, 0.0368, 0.03607, -0.4458, 0.5107, 0.2883, 1.034, -0.1083, -0.4329, 0.3933, 0.02159, 0.3828, -0.6934], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2795, -0.09985, -0.3318, -0.0474, -0.2925, 0.2234, 0.2825, -0.992, 0.1943, 1.319, 0.5615, 0.3308, -0.3179, 0.2722, 0.1211, -0.03894, -0.4292, 0.645, 1.009, 0.778, -0.1663, -0.2695, 0.4836, 0.553, 0.334, 0.2073, 0.875, 0.634, 0.193, -0.5215, 0.0402, 0.6436, 0.255, -0.7905, 0.3733, 0.713, -0.0317, -0.06335, -0.3203, -0.3994, 0.037, 0.0544, 0.3035, 0.9937, -0.0855, -0.9395, 0.3936, 0.3174, 0.4612, 0.2563], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.01145, 0.659, -0.3733, -0.04437, -0.3416, 0.1338, -0.3665, -0.533, 0.4995, 0.697, 0.4624, -0.1932, -0.534, 0.2688, 0.2673, 0.01269, -1.655, 0.2822, 0.619, -0.04916, -0.03674, -0.0366, 0.1599, -0.4023, 0.11456, 0.0344, 0.9565, -0.3914, 0.813, 0.1027, -0.5796, 0.458, -1.098, -0.1688, 0.3716, 0.4124, -0.04657, -0.699, -0.07526, 0.3662, 0.1505, 0.1776, -0.4045, -2.15, -0.02725, 0.354, -0.337, 0.2532, 0.1792, -0.6206], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1418, -0.2483, -0.1206, 0.0465, 0.05676, -0.054, 1.488, -0.2007, -0.2654, 0.1166, -0.3357, 0.1075, -0.1622, -0.258, -0.743, 0.1979, -0.04028, -0.06134, 0.4395, 0.1462, 0.02666, 0.3767, -0.04016, -0.6865, -0.1324, -0.7397, -0.48, 1.112, -0.4165, 0.3916, 0.351, 0.671, 0.7476, 0.1714, 0.2808, 0.679, 0.04547, 0.05295, -0.3306, -0.6543, 0.519, 1.113, -0.2363, 0.3818, 0.0877, 0.7925, 0.0221, 0.2778, 0.3286, -0.4097], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4275, -0.04697, -0.3599, -0.01895, -0.0379, -0.238, -1.555, -0.922, -0.06744, -0.07526, 0.4333, 0.4402, -0.2388, 0.06616, -0.1659, 0.1284, -0.2438, -0.9453, 1.336, -0.274, 0.517, 0.3499, -0.2834, -0.4766, 0.2313, 1.177, 1.666, -0.0552, -0.255, -1.234, 0.036, 0.2341, -0.0738, -2.756, -0.51, 1.325, 0.01283, -0.05695, 0.0924, 0.2168, -0.3403, 0.11597, 0.532, 0.9287, -0.1359, -0.7417, -0.3042, 0.03482, 0.1665, -0.704], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.04547, 0.4377, 0.392, -0.01144, -0.02174, -0.3223, -0.2617, 0.936, 0.03943, 0.766, 0.514, -0.06555, -0.8706, 0.255, 0.371, -0.305, 0.00786, 0.0521, -1.608, 0.1704, -0.369, -0.1909, 0.1312, 0.2318, 0.04785, 0.3735, 0.12134, -0.166, 0.07385, 0.1356, -0.1285, 0.5664, -0.959, -0.0541, -0.424, -0.1527, 0.04428, 0.2776, 0.2328, -0.4482, 0.2198, -0.1324, 0.5547, 0.623, -0.1515, 0.374, -0.4084, 0.03056, 0.09436, 0.3093], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1074, -0.0727, 0.5957, 0.0004888, -0.2145, 0.1997, -0.01762, -1.055, -0.1738, 0.5073, -0.4734, 0.1606, -0.783, -0.315, -0.5464, 0.0086, 0.4036, -0.01285, -0.3586, 0.2451, -0.1902, 0.2079, 0.2747, -0.7026, -0.01817, -0.4832, 0.532, -0.4514, -0.06616, 0.7056, -0.663, 0.697, -0.639, -0.1699, -0.7847, 0.2094, -0.038, -0.525, -0.12317, -0.1172, -0.01172, -0.898, -0.3564, -0.7505, -0.0622, 0.5396, 0.3066, 0.2532, -0.5264, 0.462], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.001691, -0.02483, 0.000305, -0.003302, 0.006493, 0.01653, 0.01145, 0.04697, -0.009094, 0.002714, 0.0002314, 0.00891, 0.02423, -0.02806, 0.01555, 0.042, 0.02365, -0.04883, -0.0217, -0.04916, 0.01805, -0.00957, -0.01344, -0.012955, -0.0484, -0.0176, 0.013756, -0.0177, 0.008575, -0.04715, -0.0111, 0.01176, 0.01608, -0.0533, -0.03806, 0.02826, -0.0389, -0.04828, -0.001643, -0.01735, 0.02945, -0.05188, -0.02196, 0.01717, -0.02835, -0.01744, -0.03955, -0.0443, -0.03784, 0.03952], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4426, 0.0851, -0.4258, -0.003128, 0.541, -0.105, 1.367, -0.2144, -0.04968, -0.3296, -0.3574, -0.311, -0.000706, -0.502, 1.379, 0.5244, -0.0573, 0.4492, -0.3818, -0.664, -0.3518, -0.1785, 0.3909, 0.1403, -0.05588, 0.004612, 0.4922, -0.1209, 0.2869, 0.3125, 0.10156, -0.5137, 0.1841, 0.1577, 1.289, -0.6, -0.03873, -0.182, 0.2172, -0.1332, 0.12024, 0.29, 0.1203, 0.1282, 0.002348, 0.584, 0.2089, 0.02469, 0.04218, 0.0836], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2362, 0.3884, 0.0853, 0.0399, 0.573, 0.3118, -0.725, 0.4219, -0.3218, 0.08887, 0.2476, 0.05005, 1.237, -0.2087, -0.5903, -0.1332, -0.365, 0.1527, 0.773, -0.4338, -1.14, 0.05804, 0.3953, 0.02103, 0.0697, 0.4978, 0.6514, -0.818, -0.1204, -0.5977, 0.0758, -0.03177, -0.5464, 0.41, 0.1753, -0.0761, -0.03372, -0.1615, -0.02371, -0.1787, 0.1461, 1.531, -0.4, -0.2416, -0.814, 0.1514, 0.08356, 0.127, -0.1713, -0.327], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2607, -0.9097, -0.581, 0.0477, 0.1783, -0.3596, 2.814, -0.438, -0.4785, 0.04965, -0.515, -1.277, 0.677, -0.683, 0.0938, 0.3752, 0.6436, -0.1654, 0.5776, 0.1478, 1.025, 0.6167, -0.3423, 0.1658, 0.675, -0.07544, 0.8604, 1.163, -0.61, -0.8955, 0.2412, 1.087, 1.46, -0.825, 0.8984, -0.1804, 0.04263, 0.196, -0.01106, -0.10034, 0.3457, 1.774, -0.782, -0.8857, 0.5713, 0.4326, -0.318, 0.953, 0.418, -1.141], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02039, 0.03775, -0.0427, 0.02606, -0.0027, -0.01485, -0.0223, 0.0358, -0.02396, -0.01814, -0.0338, 0.0282, -0.0511, 0.00872, -0.04462, -0.03084, -0.02478, -0.00857, 0.0279, -0.03065, -0.00332, -0.0476, 0.004955, 0.01802, -0.0441, -0.04614, -0.02444, -0.0334, -0.01218, 0.03537, -0.04578, -0.02104, -0.01011, -0.05307, -0.01084, 0.02896, 0.0243, -0.05777, 0.008514, -0.00653, -0.01962, 0.01794, 0.01962, -0.04922, -0.0443, -0.002111, 0.014275, 0.00404, -0.0463, -0.02304], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4976, 0.616, 0.2083, 0.008804, 0.2374, 0.1189, 0.0229, 0.2676, -0.5464, 0.7383, 0.9736, 0.4473, 1.169, -0.2444, 0.0452, -0.841, -0.1261, 0.1486, -0.1881, -2.291, -0.013466, -0.1608, 1.294, -1.209, 0.536, 1.036, 1.499, -0.5684, 0.926, -0.486, -0.753, 1.166, -1.913, 0.76, -1.502, 1.496, 0.04047, 0.10175, 1.031, 0.532, 0.3508, -2.998, -0.457, -0.1101, -0.2372, 0.08026, -0.2944, -0.503, -0.7246, 1.557], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2086, 0.5044, -0.08093, -0.00824, -0.1909, 0.0571, -0.005707, 0.013115, 1.605, 1.217, 0.2834, -0.3955, 0.2021, 0.1465, 0.856, -0.4563, 0.2141, 0.1301, 0.4517, 0.61, -0.1385, 0.01112, -0.3145, -0.843, -0.736, -0.2295, -0.1394, -0.5938, 0.54, -1.348, -0.375, 0.1752, -0.035, -0.0674, -0.326, -0.2827, -0.0373, 0.1123, -0.1059, 0.2334, 0.0492, 0.84, 0.2976, -0.5464, 0.03008, -0.2505, -0.03445, 0.2095, -0.02592, -0.0557], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.235, 0.398, 0.01198, -0.02043, -0.2805, -0.003609, -0.993, -0.9785, 0.11334, -0.1242, -0.0497, -0.4065, -0.405, -0.4119, -0.3525, -0.1415, -0.1819, -0.05182, -0.7227, -0.2222, 0.1044, -0.00998, -0.04675, -0.10394, -0.07465, 0.052, -0.05066, -0.27, -0.1476, -0.06323, 0.2494, 0.546, -0.1816, 0.1467, 0.184, 0.422, -0.04254, -0.7427, 0.068, 0.119, -0.1173, 0.847, -0.2734, 0.05542, -0.0699, -0.0974, -0.08594, 0.2256, 0.01833, 0.1613], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.00886, 0.0691, -0.1764, -0.0377, 0.03265, -0.05756, 0.4248, 0.7446, -0.6016, -0.4258, 0.2194, 0.3193, 0.247, 0.3176, 0.3313, 0.4385, -0.446, -0.1171, 0.563, -0.3723, -0.2917, 0.05545, 0.4675, 0.602, -0.466, -0.05893, -0.8013, 0.5513, -0.1722, 0.547, -0.003105, -0.1407, -0.0758, -0.3005, 0.5176, 0.03192, -0.02094, -0.0917, 0.10223, 0.266, 0.3137, 0.7344, 0.492, -0.02507, -0.09204, -0.5195, -0.08777, -0.234, 0.0448, 0.03906], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2417, -0.1238, -0.1687, 0.02779, 0.1553, 0.03833, -0.3142, 0.917, -0.2224, 0.0827, 0.06885, 0.2888, 0.2455, 0.1569, 0.0894, 0.0202, -0.2646, -0.00911, -0.357, 0.07, -0.1021, -0.00997, 0.05933, 0.1284, 0.2174, 0.1566, 0.568, 0.1876, 0.1628, 0.875, -0.1957, -0.0768, -0.2267, 0.1355, 0.05933, 0.0192, -0.04343, -0.1744, -0.0246, -0.1399, -0.276, -0.6206, 0.1214, 0.6025, -0.1515, -0.3086, 0.1411, -0.06134, -0.05255, -0.1464], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01194, -0.0405, -0.04617, 0.04083, 0.0425, -0.0193, 0.01927, -0.05984, -0.01444, 0.01353, -0.005417, -0.00913, -0.005684, 0.00453, -0.01941, -0.04443, -0.02121, 0.03787, 0.006355, -0.0188, 0.03357, -0.01166, -0.04178, -0.04465, 0.01483, 0.01339, -0.00999, -0.03384, -0.0321, -0.01449, -0.01923, -0.02927, -0.02191, -0.042, -0.01405, -0.03815, 0.03543, 0.02638, -0.006607, 0.036, 0.02057, 0.004574, -0.05594, -0.005302, -0.04117, 0.02367, 0.03775, -0.0366, 0.02022, 0.04404], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.03412, -0.286, 0.012146, -0.03458, 0.0834, -0.2266, 1.019, 0.2983, 0.8047, 0.1199, 0.1415, -0.04617, -0.00356, 0.00917, 1.065, 0.204, 0.4468, -0.1837, -0.6255, -0.1504, 0.2094, 0.06064, 0.1219, 0.665, -0.01357, 0.0961, -0.3506, 0.487, -0.2151, 0.544, -0.0553, 0.269, -0.0693, -0.621, 0.6133, -0.2488, -0.005737, -0.1343, 0.212, -0.02742, -0.04926, -0.0917, -0.3367, 0.4785, 0.5205, 0.02249, 0.32, -0.0752, -0.07654, -0.2461], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.341, 1.122, 0.9526, -0.02068, -1.247, -0.1263, -1.974, 2.312, 0.6743, 0.3872, -0.606, -0.392, 0.4292, 0.1847, 0.10223, 0.2725, -0.374, 0.10504, 0.795, 0.4668, 0.867, -0.136, 1.51, 0.5596, 0.592, 0.7607, 1.074, 0.687, -0.4795, 0.5347, 0.706, 0.6, -0.988, -0.4397, 0.367, -0.35, 0.04285, 0.03577, 0.24, 0.3186, -0.778, 0.5645, -0.4946, 0.4194, 0.3442, -0.5444, 0.7207, -0.06683, 0.28, -0.295], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3325, 0.1313, 0.03796, -0.00385, -0.431, 0.001752, 0.07806, 0.2869, -1.121, 0.2201, -0.3442, -0.04214, -0.09076, 0.001764, -0.0158, -0.001965, -0.167, 0.1779, -0.0887, 0.03137, 0.1621, -0.004112, 0.089, -0.4133, 0.155, 0.0645, -0.6885, -0.289, -0.10547, 0.542, 0.218, 0.1742, -0.213, 0.2786, -0.1713, -0.04373, -0.04428, -0.008415, 0.05994, -0.011955, 0.03735, -0.5903, -0.206, -0.2338, -0.07306, -0.146, -0.2505, 0.01984, 0.02899, 0.7114], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.75, 0.1351, 0.1519, -0.04544, -0.3723, -0.0764, 0.5146, 0.9526, 1.644, 0.5723, -1.024, 0.09, 0.695, -0.2817, 0.4297, -0.1312, 0.1814, 0.5137, 1.092, -0.298, -0.0863, 0.0962, -0.4724, 0.2988, 0.396, -0.3557, -0.708, 0.282, -0.918, 0.05978, 0.5083, -0.6685, 1.017, 0.2913, 0.396, -0.1409, -0.03516, -0.2438, -0.1416, 0.623, -0.0941, 2.242, -0.0798, 0.843, 0.4941, 0.09424, 0.2207, 0.001786, 0.0857, -0.341], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.02103, -0.04456, -0.04694, -0.04053, 0.02946, -0.03903, 0.00946, -0.003382, 0.005043, -0.03955, -0.02727, -0.03604, -0.04968, 0.002167, 0.00711, -0.004223, -0.009125, -0.0471, -0.0356, -0.03946, -0.02066, -0.0258, -0.03134, -0.01816, 0.03183, 0.042, -0.0316, 0.0323, -0.04562, 0.04233, 0.004486, -0.0453, 0.00574, -0.003801, -0.01175, 0.02544, 0.00378, -0.003115, -0.04016, -0.01892, 0.01921, 0.0333, 0.01021, 0.009346, 0.0159, -0.0326, -0.03928, -0.05133, -0.01674, -0.007023], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1952, 0.0527, 0.2961, 0.04297, -0.1127, -0.02187, -0.762, 0.523, -0.501, 0.12463, 0.4712, -0.08856, 0.3445, 0.447, 0.3647, -0.2308, -0.2803, 0.09827, -0.3079, 0.7163, -0.10425, -0.2174, 0.2117, 0.04245, 0.2189, -0.2742, -1.107, 0.2969, -0.02995, 0.378, -0.08844, 0.1439, 0.3008, 0.476, 0.2654, -0.04477, -0.04434, 0.0234, -0.12476, -0.254, -0.127, 0.6855, 0.318, 0.732, -0.0688, -0.4075, -0.3523, 0.1671, -0.0299, 0.3342], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3157, -0.1779, -0.0399, 0.006023, 0.2406, -0.01029, -0.6084, 0.3645, -0.5034, 0.4363, 0.03882, 0.2338, -0.006577, 0.1844, 0.4788, -0.1042, -0.0651, -0.2399, -0.54, 0.26, -0.2009, -0.4072, 0.589, 0.4805, 0.04813, -0.07983, 0.1227, 0.1475, -0.1104, -0.4258, -0.04196, -0.7256, 0.1256, -0.2761, 0.296, -0.4814, 0.0002383, 0.1398, 0.312, -0.2323, -0.1658, -0.5513, 0.03754, 0.941, 0.037, 0.05453, 0.2126, -0.1239, -0.279, 0.4626], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.086, -0.0784, -0.2544, -0.05, -0.3735, 0.3674, -0.5913, -0.3267, 1.108, 0.3052, 0.492, -0.2333, -1.425, 0.2041, 0.824, -0.09015, -0.19, 0.774, 1.202, -0.115, 1.088, -0.2296, -0.2659, -1.849, 0.4954, 0.1661, 1.09, 1.251, 0.5693, 1.473, -0.3103, -0.03986, 0.2122, -0.6235, 0.1686, 0.411, 0.005913, -0.08997, -0.09827, 0.1776, -0.1758, -0.6045, -0.2566, -0.5107, 0.11957, 0.3984, 0.2164, -0.00952, -0.249, -0.9404], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2045, 0.649, -0.0474, -0.003166, -0.1043, -0.01134, 2.205, 0.2546, 0.444, 0.4004, 0.3809, 0.3147, -0.821, -0.0183, -0.0848, -0.1558, -0.27, -0.02176, 0.2544, -0.3723, 0.2432, -0.1769, -0.04242, 1.039, 0.1561, 0.784, 1.193, -0.5127, -0.03111, -0.6123, -0.003632, 0.03653, -0.2925, -0.7427, -0.1627, -0.8506, 0.02179, -0.3516, -0.062, 0.1945, 0.0845, 0.5977, 0.1707, 1.275, 0.2311, -0.3384, -0.2379, 0.392, -0.481, 0.2666], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2231, 0.4321, 0.0675, -0.01962, -0.2966, -0.32, -0.5806, -0.4697, 0.1432, -0.2307, 0.1305, 0.3328, 0.063, -0.3237, 0.1376, -1.129, -0.6587, 0.3557, 0.8413, -0.782, -0.3015, 0.2007, 0.3215, -0.2625, -0.094, -1.229, 0.266, 0.2372, 0.1681, 0.1598, 0.617, 1.359, -1.555, -0.1056, -0.1453, 0.1302, -0.000857, -0.0624, 0.06244, 0.3416, -0.1897, -0.5767, 0.4124, -0.7925, -0.4807, 0.2263, -0.08606, -0.0565, 0.4338, -0.142], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1153, -0.2416, -0.04517, -0.000777, -0.03302, -0.1765, -0.743, 0.6514, -1.079, 0.524, 0.2898, -0.06073, 0.429, -0.1042, 0.03552, -0.1092, -0.5767, -0.1052, -0.05685, 0.3545, 0.376, 0.0571, -0.2164, -0.127, 0.4, -0.01851, 0.565, -0.23, -0.1282, -0.00812, -0.1917, -0.3345, -0.06805, -0.2288, 0.01941, 0.1716, -0.04453, 0.1774, -0.1453, 0.11993, -0.1982, -0.346, -0.2627, -0.1753, -0.2069, 0.3633, -0.1973, 0.1078, 0.1605, -0.5093], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.136, -0.0796, -0.03998, 0.02994, 0.1338, -0.07294, 0.4685, -0.5303, 0.09906, 0.1766, 0.04913, -0.0834, 0.2316, -0.0387, 0.126, -0.00839, 0.1614, -0.00954, 0.3276, -0.04852, 0.05573, -0.01319, -0.1669, -0.2585, 0.008156, -0.0509, -0.1993, -0.174, 0.06274, -0.0953, -0.02582, 0.0502, 0.05838, 0.01393, -0.1415, 0.006813, 0.04517, 0.0756, -0.05453, 0.07855, 0.02106, -0.08606, 0.02505, 0.2131, 0.1353, 0.0357, 0.015526, -0.02397, -0.02573, -0.05505], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2185, -0.1616, 0.00398, -0.03522, -1.032, 0.10486, 2.488, 1.044, 1.151, 0.0809, -0.5376, -0.3616, 1.487, -1.021, -1.063, 0.1797, 0.282, 0.1433, -0.269, 0.5806, 0.127, -0.4888, 0.4702, -1.631, 0.83, -0.163, 0.2241, 2.074, 0.12024, 1.301, -0.2407, 1.307, 0.3594, 0.676, 0.8706, 1.391, -0.02592, 0.2798, -0.0888, -0.132, -0.2316, -0.595, -0.08484, -0.333, 0.09296, 0.4067, 0.436, -2.01, -0.347, -0.683], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.336, 0.584, 0.874, -0.03958, -0.2903, -0.08435, 2.988, 0.5273, 0.7476, 1.991, 0.7476, 0.85, 1.196, 0.6304, -0.276, -0.33, -0.9697, 1.458, 0.06207, 1.113, -0.357, -0.3835, 0.812, 0.0758, 0.1677, -0.7793, 0.5464, 0.8354, -0.2035, 0.3413, 0.1555, -0.4153, -0.05505, 0.0953, 0.2812, 0.2006, -0.047, -0.4263, -0.2754, -0.07007, -0.886, -2.357, 0.1021, -0.944, 0.5156, -1.355, 0.28, 0.349, -0.922, 0.6797], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.935, 0.275, -0.829, 0.01971, -0.3088, -0.1405, -1.407, -2.014, 0.4807, -0.6274, -0.767, 0.5234, 0.553, -0.0967, -0.601, -0.747, -2.145, 0.8394, 0.832, 0.89, 0.4668, -0.2068, 0.2683, -1.248, -0.7495, -0.5215, 0.4863, 0.6494, 0.415, 0.424, 0.2422, -0.0789, 0.2969, 0.3284, 0.3953, -0.5806, -0.01619, -0.3333, -0.0417, -0.04532, -0.2542, -1.197, -1.591, -0.4934, -0.868, 0.863, 0.03143, 0.5435, -0.1021, -0.713], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2031, -0.2952, 0.2542, 0.05298, -0.42, 0.01065, -0.7373, -0.6235, -1.232, -0.4753, -0.07904, -0.3499, 0.1023, -0.1078, 0.1437, 0.1652, -0.3623, 0.02069, -0.7573, -0.07074, 0.04803, 0.078, 0.4175, -0.288, 0.08765, -0.1572, -0.4812, 0.779, -0.187, 0.166, 0.1127, 0.3955, 0.3677, 0.1592, 0.4236, 0.1008, -0.01083, 0.10156, 0.0456, -0.1146, 0.1913, 0.6157, -0.08374, 0.0756, -0.04855, 0.1902, -0.2761, 0.194, 0.2003, 0.4233], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.06464, 0.291, 0.2214, -0.03424, -1.075, -0.05066, 0.3757, -0.5366, -1.037, 1.118, -0.52, -0.1658, 0.1173, -0.06384, 0.6475, -0.2286, -0.4727, 0.3132, 0.04483, 0.6997, -0.04007, 0.09955, 0.638, 0.1348, -0.4797, -0.1414, -0.0964, 0.5396, 0.1547, 0.002525, 0.521, 0.862, -0.4622, 0.005005, -0.09796, 0.4978, -0.0246, -0.3857, -0.132, 0.2482, -0.2471, 0.719, -0.3398, -0.3264, 0.1564, 0.544, 0.06366, 0.1691, 0.2878, -0.5127], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02098, 0.0406, -0.03732, 0.01217, 0.01932, -0.001119, -0.011406, -0.01169, -0.0393, 0.0318, -0.03732, -0.01183, 0.03418, 0.01999, -0.01714, -0.0476, 0.00051, 0.01239, -0.01363, -0.03873, -0.02806, 0.011986, -0.03348, -0.011284, -0.01714, -0.0007553, -0.0198, -0.014755, -0.03012, 0.01959, -0.03006, -0.01524, -0.01269, -0.003826, -0.0189, 0.02573, 0.0003526, -0.01539, -0.02322, -0.0003228, 0.003952, -0.0522, -0.02614, 0.03128, -0.03506, -0.02417, -0.01767, 0.02264, 0.0287, 0.00696], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.558, 0.11615, -0.7773, -0.04312, -0.1588, 0.1829, -0.4072, 0.397, -0.2456, 0.03946, 0.3594, -0.3054, -0.01014, -0.2637, 0.2925, -0.999, -0.7236, -0.1669, -1.623, -0.883, -0.2673, -0.003687, 0.642, 2.129, 0.657, -0.1279, 1.655, -0.1271, 0.1464, -0.2546, -0.524, 0.05734, -1.332, 1.056, -1.046, 0.3738, 0.02557, -0.6855, 0.2974, 0.1692, 0.0677, -1.042, -0.1274, -0.1779, -0.09247, 0.4722, 0.04327, -0.0375, -0.8555, -0.1688], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.275, -0.0735, 0.1844, 0.005363, -0.2861, 0.007057, 0.6562, -0.1647, 0.642, 0.1456, -0.11786, -0.2177, 0.1553, -0.02556, 0.4182, -0.02321, 0.2683, 0.365, 0.1566, -0.2786, 0.1724, -0.0009727, -0.09607, -0.4143, -0.0978, -0.1613, -0.4268, -0.1105, -0.2045, 0.1683, 0.35, 0.05045, 0.2954, -0.1361, 0.2037, 0.2115, 0.02446, 0.2695, -0.03415, 0.4604, 0.17, 0.21, -0.2612, 0.5347, 0.2451, 0.0774, 0.1675, -0.0758, 0.0758, -0.1525]]
[0.00952038, -0.343938, 1.17782, -0.228142, -0.294988, -0.0357871, -0.257523, -0.255493, -0.280859, -0.244372, -0.186254, -0.0871022, -0.0505961, -0.0454913, -0.11459, -0.109015, -0.818204, -0.252141, 0.437121, -0.0166663, -0.317574, -0.0649419, -0.884762, -0.0253047, 0.0796853, -0.200398, 0.320223, -0.333703, 0.167162, -0.0141451, -0.375398, -0.904706, 0.0501437, -0.257812, -0.00607064, 0.344036, -0.0242754, -0.295009, -0.162679, -0.325609, 0.458604, 0.151007, -0.013113, -0.380357, 0.0221107, -0.109826, -0.150334, -0.0132851, -0.0488059, -0.0466392, 0.00952, -0.344, 1.178, -0.2281, -0.295, -0.0358, -0.2576, -0.2554, -0.2808, -0.2444, -0.1863, -0.0871, -0.0506, -0.0455, -0.11456, -0.109, -0.8184, -0.2522, 0.437, -0.01666, -0.3176, -0.06494, -0.885, -0.0253, 0.0797, -0.2004, 0.3203, -0.3337, 0.1671, -0.014145, -0.3755, -0.905, 0.05014, -0.2578, -0.00607, 0.344, -0.02428, -0.295, -0.1627, -0.3257, 0.4585, 0.151, -0.013115, -0.3804, 0.02211, -0.1098, -0.1504, -0.01328, -0.0488, -0.04663]
ReLU
[[-0.294158, 0.3658, -0.0595503, -0.221873, 0.697946, -0.823322, -0.616655, -0.259051, 0.186166, 0.0501556, 0.307773, -0.353678, 0.0930832, 0.266316, -0.144729, 0.0253151, -0.321334, 0.125162, 0.362837, -0.03523, -0.145693, 0.152175, -0.183882, -0.0319263, 0.0901459, 0.200084, 0.0955784, 0.291306, -0.211214, 0.0129865, -1.33985, 0.212427, 0.568149, 0.0149256, -0.0446768, -0.320361, 0.297036, -0.703088, -0.0405004, -0.821231, 0.549139, -1.49309, -0.780323, -0.240042, -0.164451, -0.561937, -0.126957, 0.0204219, 0.0971678, 0.366264, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.401278, 0.492723, -0.0685391, 0.666552, -0.159929, 0.203403, 0.369361, -0.0187633, 0.45044, 0.228939, 0.115609, -0.44343, -0.0412215, 0.0634824, 0.12793, -0.10613, -0.124179, -0.100929, 0.34547, -0.000909465, 0.0574172, 0.317383, -0.252723, -0.0111242, 0.0234174, 0.263653, 0.436609, -0.020056, 0.0161878, -0.00733522, 0.507406, -0.0766342, 0.249563, 0.140473, -0.0206429, -0.335041, -0.238194, 0.0591357, -0.452162, -0.237191, -0.16515, 0.585017, 0.196894, 0.515482, 0.116165, 0.353756, -0.119508, -0.0400142, -0.292798, -0.141486, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.137036, -0.00267761, -0.0388281, 0.137596, 0.117263, -0.160156, 0.214394, -0.0157751, 0.14994, -0.0353251, 0.0785493, -0.183443, 0.0893678, -0.0135359, 0.106719, 0.0952916, -0.163675, -0.150192, -0.138014, -0.00130442, 0.00753351, 0.201425, -0.0571462, 0.00857005, -0.0177371, 0.146495, -0.162084, 0.0817538, -0.268299, 0.00124688, 0.146515, 0.0389064, -0.0424228, 0.0591649, -0.0245997, 0.0608133, 0.000622796, 0.142467, 0.0186987, -0.100759, -0.26657, 0.713854, -0.048971, 0.521204, -0.182956, 0.131828, -0.126988, 0.0399621, -0.000329595, -0.126711, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.19101, -0.361367, -0.0289326, 0.173753, 0.41913, -0.631787, 0.371578, -1.38222, -0.0449167, -0.276592, 0.480382, 0.0253318, 0.0209835, 0.0437708, 0.423065, -0.114735, -0.979254, 0.349524, 0.336524, 0.0316628, -0.711319, -0.0443378, 0.0369917, 0.0109477, -0.0151094, -0.975575, -0.699484, 0.192155, 0.336307, 0.0480887, -1.21012, 0.403926, 1.31718, -0.337522, 0.0042054, -0.0904776, -0.221179, -0.39157, -0.288748, -0.264423, 0.280555, 1.55671, -0.127874, -0.0819555, 0.489052, 0.10846, -0.11712, -0.0224882, 0.225981, 0.735322, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.554774, 2.40253, -0.410754, -0.838814, 2.05557, -0.166195, -1.14077, -0.410897, -0.0767037, 1.76761, 1.31082, -1.73781, -0.333373, -0.566909, 2.58422, -1.15495, -0.456696, -0.860705, 1.19532, -0.0205491, 0.533186, -0.571965, -1.25634, -0.0344481, -0.0657446, 2.01428, 0.344933, 0.108864, 0.968642, 5.10708e-05, 0.627546, -1.06348, 0.662163, 0.239345, 0.0332261, -0.401249, -0.234175, 1.62645, 1.15429, 2.4496, 0.136122, 1.76247, 1.70247, 0.571213, 1.16717, 1.15992, 1.80055, -0.0030509, -0.816677, 0.580633, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.24901, 0.454585, 0.00892372, 0.586039, 0.591674, 1.305, 2.21348, -0.440935, 1.2466, -0.489235, -0.163889, 1.19398, -0.299129, 0.508615, 0.883444, 0.587447, -0.879611, 1.43422, 1.20015, -0.0180889, 0.40911, 0.178626, -0.829862, -0.0399247, -0.334171, 0.239487, -0.715458, -0.485822, 0.506093, 0.0173196, 1.35381, 0.0595247, -0.294994, 0.679832, 0.0457752, -0.830376, 0.820818, 1.05817, 0.634439, 0.890063, -0.756026, 3.34279, 0.0366707, 2.36895, -0.117547, 0.579781, 0.479851, 0.0150071, -0.909444, -0.15429, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00363872, -0.0420286, -0.0519906, -0.00632406, 0.0294975, -0.0310583, 0.0159319, -0.0450209, 0.00461731, 0.0247832, 0.000336226, 0.00256498, -0.000764501, 0.00576738, -0.0211355, -0.00938314, -0.0473173, -0.00836817, 0.0218885, 0.0356063, -0.046853, -0.0369004, -0.0426234, -0.0232573, 0.0235024, -0.0460155, -0.0439712, -0.051744, -0.0501546, 0.0421547, 0.0061008, 0.00420509, 0.00461602, 0.0338004, 0.0169618, -0.0537429, -0.0531208, -0.0342919, 0.013909, -0.02618, -0.0115576, -0.0182435, -0.0380744, -0.0252096, 0.031985, 0.00434645, 0.0196626, -0.0416988, 0.0368937, -0.00685657, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0491174, 0.0475879, -0.0971433, -0.447317, 0.231105, -0.0815981, -0.178682, -0.00125724, -0.0376709, -0.125951, -0.0138239, -0.41454, -0.0102617, -0.0578479, 0.105408, 0.126929, -0.0443694, -0.061847, 0.109328, 0.0148385, -0.161173, -0.359889, 0.025747, -0.0200663, 0.0724335, 0.0835094, 0.0484963, -0.128971, -0.183035, 0.0472737, 0.0551159, -0.0636798, 0.205783, -0.19108, 0.022049, 0.0225824, 0.138752, -0.214753, 0.0225713, -0.126874, -0.0220119, -1.30918, -0.922742, -0.655738, -0.201121, 0.0568005, 0.0282448, 0.0212533, -0.167681, 0.313861, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.798256, -0.951814, 0.175637, 0.0498855, -0.321505, -0.0950185, -0.00414819, 0.74158, 0.226665, -0.0934678, 0.510545, 0.3206, 0.024985, 0.00749085, 0.263074, 0.188749, -1.22371, -0.340365, -0.622164, -0.0508037, 0.372794, 1.44655, 0.26561, 0.017485, -0.631777, 0.641714, -0.340291, -0.76813, -0.55324, -0.0505504, 0.611297, 0.824797, -0.0868975, 0.348164, 0.0448454, -0.712209, 0.549987, 0.635926, -0.128987, -0.000563339, -0.762919, 0.27861, 0.757528, -0.333678, 0.656491, 0.989996, 0.317891, 0.00558848, 0.304231, 0.0667041, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00564617, -0.0032898, 0.00721225, 0.257373, 0.238021, -0.133604, 0.122822, -0.222996, -0.10822, -0.00642621, 0.292659, -0.169641, -0.229329, -0.0508594, -0.144942, 0.196367, 0.0149154, -0.0594734, -0.090273, 0.0351511, 0.133498, -0.0288134, -0.36972, 0.00365998, -0.00420396, 0.105693, -0.0509866, -0.316103, -0.232089, -0.026021, -0.14405, -0.150237, 0.113736, 0.119332, 0.0418202, -0.0633554, -0.0374437, 0.0271734, 0.283701, -0.486417, 0.131425, 0.6536, -0.374174, 0.644583, -0.26789, -0.144834, 0.0968347, 0.012138, 0.175722, -0.0867758, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.175795, 0.893743, -0.206649, 0.41219, -0.394202, -0.510822, -0.184899, -0.33254, -1.45053, 1.08571, 0.0112113, -0.315843, 0.0772562, -0.513307, 2.32889, 0.261731, -0.0776588, -0.727034, 0.389699, -0.0389152, 0.772795, -1.07565, -0.826375, 0.0429564, 0.00243836, 0.555024, 0.590945, 0.295331, 0.560231, 0.0325253, 0.345045, -0.318119, 0.0962461, -0.34119, 0.00516618, 0.50019, -0.944466, 1.97699, 0.176479, 1.74064, 0.44199, 1.184, 1.70785, -2.01058, -0.101066, 0.452118, 1.62906, -0.0119157, -0.777139, -0.352575, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.486046, 1.16879, -0.359942, -0.0510128, 0.976069, -0.482427, 0.378648, -0.190966, 1.93521, 0.972949, 0.305067, -0.661067, 0.135745, -0.562407, 0.480998, -0.420014, -0.121515, 0.272635, 0.64958, -0.0169567, -0.45439, 0.212036, -1.11997, -0.0232078, 0.0660252, 0.878887, -1.62648, 0.656639, 0.705298, 0.042688, 0.648821, -0.102706, 0.672089, 0.223402, 0.0115739, -0.640271, -1.77444, 1.02088, 0.135766, 0.846147, 0.336226, 2.47456, 0.703141, 0.311595, 1.38007, -0.693618, 0.0155127, 0.0192478, -0.0826527, -0.242248, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.14904, -0.294055, -0.125022, -2.77399, -2.38262, -1.72739, -1.77997, 0.0100857, -1.18773, -0.704623, 0.0435157, 0.379589, -0.041383, 0.125104, -1.63781, -3.03082, -0.0976734, -0.516882, -0.685338, 0.0429303, -0.635136, -2.10747, 0.0327751, 0.0156083, 0.247611, -0.842433, -0.271171, -2.06691, 0.365687, -0.0385067, -2.08117, -0.143705, 0.305686, 0.201704, -0.0359506, -0.388881, 0.0460784, -1.36469, -0.728324, -1.57393, -0.0700426, 0.0497432, -1.40088, -0.656281, -0.132342, -1.24423, -0.669132, -0.00331704, 0.330212, -0.149127, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.412683, 0.266735, 0.0910874, 0.120863, 0.0929643, 0.181726, 0.204626, -0.00495866, 0.707937, 0.230199, 0.06163, -0.489363, -0.200745, -0.321723, 0.6826, -0.115904, 0.102254, -0.336575, 0.164788, 0.0527658, 0.423069, 0.299327, -0.715546, -0.0393109, -0.175185, 0.0382208, -0.189552, 0.11425, -0.0744245, -0.0337129, 0.217082, 0.238591, 1.30328, 0.145672, -0.000643969, -0.102716, -0.10085, 0.520246, 0.061099, 0.263645, 0.20426, 2.22689, 0.209813, 0.654422, 0.0452619, 0.382952, 0.778555, -0.00862395, 0.0101878, -0.531904, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.195649, -0.0406459, -0.00240926, 0.358797, -0.091888, -0.196418, 0.090104, 0.00151325, -0.229405, 0.345795, 0.00768388, 0.178357, -0.220225, 0.261289, -0.0162419, -0.116836, 0.21211, -0.130763, 0.109269, -0.0387561, -0.0539643, -0.161322, -0.238898, 0.011755, 0.0836986, -0.0847837, 0.398742, -0.286266, -0.163057, 0.0450308, -0.0447026, -0.096152, 1.13966, 0.0759283, 0.0144985, -0.409444, -0.0476635, -0.330734, -0.254515, -0.0349253, 0.493289, -0.873412, -0.275245, 0.0634623, 0.0683256, -0.169801, 0.0523143, -0.00798018, 0.626221, -0.0924154, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0550053, -0.106137, -0.0613765, 0.0966897, 0.122182, 0.181264, -0.142255, -0.0800128, 0.00440273, 0.235297, -0.174623, 0.256804, -0.227021, -0.0626522, -0.719601, -0.0237982, -0.016926, 0.148976, 0.06918, -0.0263704, -0.194634, 0.0199895, -0.0122471, 0.0292886, -0.0364996, -0.0683549, 0.231983, -0.1624, 0.142427, 0.0342755, -0.151257, -0.295885, 0.593349, 0.0798825, -0.0245572, -0.0610403, 0.178224, -0.529808, 0.191279, 0.334856, -0.00131395, 0.235838, -0.18832, 0.649311, -0.0262245, 0.00988955, 0.316261, 0.0245293, -0.169974, -0.230428, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.238605, 0.310571, -0.139885, -0.583583, -0.927078, -0.646688, -0.242378, -0.708742, -2.00947, -0.362301, -0.120093, -0.270274, -0.195537, 0.0326319, 0.235887, -0.431165, -0.0174149, -0.062105, 0.452427, 0.0350282, -0.211034, -0.558581, 0.177988, -0.0132199, 0.0459252, 0.0567469, -0.449988, -0.879091, 0.656288, -0.0308213, 0.00152088, 0.215457, -0.389841, -0.485439, -0.0120568, -0.477525, -0.543496, -0.327357, -0.540327, -0.124337, -0.0659687, 1.55854, 0.536555, -0.671321, 0.0653462, -1.32762, 0.394641, -0.00227714, -0.0114378, 0.579518, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0935374, 0.199233, 0.0365551, 0.369244, 0.369491, -0.138845, 0.207446, -0.0830852, 0.0810962, 0.376982, 0.102258, -0.0849648, -0.051293, -0.165114, -0.240925, 0.00159564, -0.114845, -0.266401, -0.0408982, 0.0330087, 0.289595, -0.121883, -0.173417, -0.0379138, 0.0143418, -0.0836422, 0.176902, -0.429632, -0.442894, -0.0288654, -0.0227451, 0.00565858, -0.402888, -0.229028, 0.0412125, -0.242518, -0.343134, -0.287255, 0.0744772, -0.00199194, 0.264592, -0.91577, -0.173839, 0.369147, -0.143176, -0.00607362, 0.480326, 0.0262478, 0.108131, -0.0445427, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0503188, -0.0165261, -0.0148694, 0.00862048, 0.0136533, 0.0414692, -0.00710531, -0.0306849, 0.0383864, -0.0458574, -0.0250729, 0.0046949, 0.0122458, -0.0462795, 0.0443678, -0.00484317, -0.00424542, 0.0416854, 0.00231097, -0.000816879, 0.00613529, -0.0411453, 0.0143996, -0.0088321, -0.00328633, -0.0079386, -0.0403912, -0.0115319, -0.00502518, 0.023383, -0.0119979, 0.0193436, 0.00434515, 0.00367738, -0.0195499, 0.0333621, -0.0547645, -0.0255267, -0.0331603, 0.0284509, -0.0418723, -0.00238138, -0.0208328, -0.0361785, -0.010052, -0.0356933, 0.0247689, -0.0442733, -0.0325109, -0.00152496, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.215211, 0.0178891, -0.110171, 0.590646, 2.65175, -0.328825, 1.629, -1.57001, 0.825863, 0.184488, -0.284918, 0.239877, -0.0750754, 0.341888, 1.88166, -0.123671, -0.240189, 0.533766, -0.407749, 0.00770341, 0.421782, -0.0964989, -1.65715, 0.02453, 0.0977045, -1.22546, 1.07458, -0.285927, 0.0125006, 0.0367852, 0.538434, 0.528475, 2.69709, -0.562963, -0.0432258, 0.275402, 0.63569, 2.42418, 0.541487, 0.767884, 1.20344, 2.08761, -1.03922, 1.64833, 0.24628, 0.557703, 0.248218, 0.0103114, -0.0265289, 0.91871, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.319171, -0.308523, -0.00892596, 0.0519462, -0.895862, -1.00464, 0.0648808, 0.0714137, 0.60686, 0.102941, 0.235802, 0.256076, -0.06882, 0.19394, -0.362827, -1.38295, -0.00873683, -0.264852, 0.105169, 0.0224616, -0.0920854, -0.224749, -0.698388, -0.0112684, -0.000793986, -0.753284, 0.16897, -0.47523, -0.0383934, -0.0124735, -0.165318, -0.340305, -0.160807, -0.821916, 0.00138892, -0.159861, 0.314192, -1.15556, 0.332182, 0.065982, -0.10832, 1.40958, 0.193717, -0.417748, 0.0922666, 0.452409, -1.9009, -0.0389955, 0.204681, -0.15347, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.926335, -0.0869146, 0.18512, 0.553353, 0.902249, -0.00712091, -0.0806507, 0.460276, 1.8167, 0.688394, 0.0476638, -1.58468, -0.617102, -0.460978, 0.329285, 0.347648, -0.125944, -1.23677, -0.328919, 0.033564, 0.726024, 0.70496, -1.05696, -0.00405872, -0.247839, 1.3153, -0.642592, 0.206905, -0.0648494, -0.0228386, 0.999227, 0.311332, 1.60706, 0.527227, 0.000572347, -0.477806, -0.387899, -0.18051, -0.562166, 0.362797, 0.729337, 4.67184, 1.25793, 1.23819, -0.793078, 1.11577, 0.139366, -0.0346502, 0.434224, -0.652543, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.56427, -0.309197, -0.0469657, 0.384718, 0.293511, -0.141554, 1.1067, -0.143842, 0.388701, -0.257088, 0.181657, 0.0958705, -0.233342, 0.293877, -0.772938, -0.0787526, -0.320684, 0.00976339, 1.14593, -0.0179924, -0.185059, 0.651376, -0.198937, -0.0131295, -0.00532257, 0.502287, -1.57923, -0.0656307, 0.389789, -0.0315037, -0.387836, 0.0935377, -0.00116593, 0.656545, 0.0274043, -0.725527, -0.147076, 0.164629, -0.244306, 1.08753, 0.0266583, 0.912844, 0.863669, 0.690099, -0.202653, 0.205531, 0.23041, 0.042382, -0.473421, -0.244101, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0897806, 0.116745, -0.00100861, 0.257787, -0.306814, 0.102916, 0.21257, 0.0356898, 0.199641, 0.0514214, -0.0491762, 0.0925771, 0.0440812, 0.101509, 0.565513, -0.0360488, 0.0577778, -0.161369, -0.00989946, -0.0229888, -0.0584547, 0.100768, -0.119266, 0.028047, -0.0111912, -0.290517, 0.24693, 0.0499733, -0.24277, 0.055666, 0.224994, -0.288233, -0.174607, -0.0980754, -0.0109758, -0.224824, 0.271359, -0.430535, -0.222354, 0.0854407, -0.146984, 0.447766, -0.0529052, 0.244518, 0.118756, 0.188165, 0.0696707, -0.00307694, -0.170838, 0.164746, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.314406, 0.168334, -0.0248605, 0.205113, 0.0583431, 0.170922, -0.323448, -0.0668978, -0.390701, 0.291906, 0.0317087, -1.26429, 0.0450977, -0.223014, -1.02507, 0.221674, 0.225166, 0.00322387, 0.125995, 0.042211, 0.24487, 0.0411632, -0.412532, -0.00447512, -0.0888974, -0.422461, 0.266027, -0.268934, -0.0925747, -0.0404661, -0.174349, 0.187334, 0.147523, 0.0139482, 0.0275913, -0.0311759, 0.136286, 0.371826, -0.703589, -0.178706, 0.401302, 0.759031, -0.0824765, 0.340961, -0.399036, -0.743571, 0.110159, -0.0147263, 0.0345227, -0.0396631, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0268583, 0.244392, -0.0370849, -0.43556, 0.0303812, -0.0446768, 0.136018, -0.0994839, -0.176368, 0.212157, -0.142949, -0.304106, 0.0643807, -0.0568079, 0.0482607, -0.0311893, 0.0748282, -0.0638331, 0.0625998, -0.0329518, -0.102593, -0.0947032, 0.0920589, -0.0322526, 0.0369063, -0.0637839, -0.184807, -0.0151228, 0.315203, 0.0119604, -0.1377, -0.0773357, 0.281, -0.0260211, 0.0348897, -0.229342, -0.226935, 0.207506, 0.0310451, -0.0563612, 0.18936, 0.652005, 0.0386714, 0.416452, -0.133397, -0.00552395, 0.193245, 0.0207381, -0.267377, 0.145816, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0411772, -0.545619, 0.14466, -0.0840218, -1.43479, 0.26961, 0.018905, -0.788748, -0.281857, 0.182801, -0.440983, 0.162402, -0.187265, 0.196067, -1.98835, 0.258287, -0.391522, -0.5663, -0.0410963, 0.00977948, -0.429652, -0.392404, 0.199703, 0.0449306, 0.0396278, -0.0699429, 0.304918, -0.42246, 0.333768, -0.0196489, 0.147745, -0.311157, -0.126185, 0.259015, -0.00681255, -1.20936, -0.0284109, -0.559568, 0.568513, -0.088412, 0.750411, -3.51891, -0.067412, 0.0362858, 0.362507, -0.412265, 0.155924, 0.0434806, 0.174919, -0.544635, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-1.00025, 0.0711288, -0.196771, -0.0868032, 1.1595, 0.25254, -0.711094, -1.60201, -0.305176, 0.0161772, 0.283762, 0.242612, 0.110915, 0.0142828, -0.566318, -0.312902, 0.446378, 0.542646, 0.268877, -0.0458759, 0.169864, -0.606193, 0.359715, 0.0428258, 0.255146, -0.22592, 0.063125, -1.21372, -0.367262, 0.0363748, -0.311189, 0.0410432, 1.35552, 0.904031, -0.00216631, 0.0907643, -0.460634, -0.274533, 0.3553, -0.454769, 0.330593, 0.0834341, -0.405168, -0.0315618, 0.473905, -0.780927, 0.225179, -0.0447831, 0.194242, 0.116383, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0992341, -0.0612063, 0.00255129, -0.279914, -0.124943, 0.0571696, -0.0821332, -0.0545476, -0.304204, 0.375741, -0.319517, 0.428639, 0.162512, 0.101918, -0.629712, -0.242751, 0.194255, 0.138809, -0.124887, -0.035203, -0.00132804, -0.238764, 0.127934, 0.0535726, 0.0915187, -0.445864, 0.0352202, -0.228899, 0.0523324, 0.0375989, -0.360005, 0.00792081, -0.776102, -0.108885, -0.00311102, -0.333783, 0.010877, 0.135726, -0.0577287, 0.0828109, 0.70879, -0.684649, 0.08644, 0.0032496, 0.324552, -0.120013, -0.00371709, -0.0256037, -0.215583, 0.119161, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0304587, 0.0135291, -0.0469808, 0.00560595, 0.0266815, -0.0304469, -0.0358826, 0.0376213, 0.0317628, -0.0157547, -0.00906897, 0.0332249, -0.014672, 0.00123774, -0.0270465, -0.00807211, -0.0185217, 0.0332872, 0.0344732, 0.0114024, -0.0169581, -0.0200791, -0.0147245, -0.0108084, -0.0125913, -0.032606, -0.0290522, 0.00719162, -0.0233273, -0.00963789, -0.0192463, 0.00560002, 0.00197436, 0.00871776, 0.0176027, -0.0487159, 0.0230798, -0.00745798, -0.0268634, 0.0287159, 0.0223944, -0.0170356, 0.00947331, -0.0133442, 0.00283069, 0.0181413, -0.0480324, 0.016716, -0.0205823, -0.0279246, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.21495, 0.044528, -0.0842802, 0.0962859, -0.138594, -0.178537, 0.0680797, -0.262882, -0.182981, 0.425786, 0.0913017, -0.0353054, 0.00830066, 0.136769, -0.0701472, -0.0634402, -0.254389, 0.113468, 0.0899004, 0.0298542, -0.000197034, 0.100089, -0.161786, -0.0503133, -0.00395751, -0.0234042, 0.402827, -0.183198, 0.27544, 0.0414095, -0.0172892, -0.00434673, 0.0252949, 0.0385646, -0.0254159, -0.232896, 0.386454, -0.0376757, 0.214539, 0.150802, 0.17069, -0.035437, -0.0477005, -0.294657, 0.0910079, -0.20239, 0.13797, 0.0268218, -0.465783, -0.118277, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0428751, -0.0154559, 0.00751589, -0.289986, -0.0770349, 0.0992992, -0.0660525, 0.167174, -0.296555, -0.116101, -0.203734, 0.137948, 0.0646115, -0.0473914, -0.0250432, -0.123743, 0.0331281, -0.0693682, -0.147014, -0.0426645, -0.0725842, 0.0245622, 0.192398, 0.00887952, -0.0105072, -0.187984, -0.0550893, -0.113138, 0.594488, 0.0512102, -0.0255643, 0.149451, -0.120845, -0.0483213, 0.0405806, -0.098505, -0.0694172, 0.0049165, -0.534413, 0.273653, -0.0164825, -0.00241728, 0.104248, -0.0125583, 0.0513421, 0.124899, 0.379261, 0.0222091, -0.121513, -0.18609, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.218732, -0.0924774, 0.0176737, -0.0922951, 0.105304, 0.120085, 0.47058, 0.0124933, -0.25983, -0.244001, -0.0662536, 0.517895, 0.0651424, -0.00991319, -0.427704, -0.162099, 0.140536, 0.289465, -0.17563, 0.0156374, 0.0956245, -0.269918, -0.140303, -0.00848454, -0.128941, -0.223463, 0.0507286, -0.0209533, 0.10841, 0.0332622, -0.8263, -0.327261, 0.53255, -0.00333343, 0.0421798, 0.187114, 0.140067, -0.151717, 0.263848, 1.00469, -0.024473, -1.11828, -0.00351142, -0.0411916, 0.367226, -0.181603, 0.163582, -0.0362844, -0.0652236, 0.00931903, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.102096, 0.76122, 0.00260804, -0.728148, 0.0649532, -0.28203, -0.456703, -0.0263808, -0.583908, 0.0555964, -0.522199, 0.0660963, 0.116794, -0.0303651, 1.19934, -0.315742, 0.171796, 0.103679, 0.31591, -0.00938197, -0.225619, -0.337637, 0.177879, -0.0389958, 0.131129, -0.359637, -0.293019, -0.00738918, 0.228715, 0.0123757, -0.101853, 0.322847, -0.289919, -0.155377, -0.0437111, 0.10258, -0.514375, -0.393482, -0.0926693, 0.193256, 0.475978, 1.73335, 0.692094, 0.00618275, 0.38748, -0.219108, 0.0646272, 0.0645698, -0.0842743, 0.399258, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.182754, -0.173278, 0.106408, 0.90148, 0.418883, 0.233907, 0.52511, -0.18154, 0.639292, 0.631701, 0.0326409, 0.122513, -0.641803, -0.13343, 0.316925, 0.196675, -0.123297, 0.237264, 0.396824, 0.0316376, 0.2416, 0.65299, -0.489372, 0.0396913, -0.210048, 0.695024, 0.336392, -0.130381, -0.108781, 0.00409477, 0.675092, 0.13099, 1.63766, 0.25917, -0.0391049, -0.390731, -0.0921775, 0.269011, 0.195185, -0.545608, -0.356743, 0.318371, 0.350255, 0.00752271, 0.129578, 0.264619, -0.508773, -0.0418447, -0.659308, -0.337514, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.106656, 0.0231662, -0.0133504, 0.00302773, 0.258615, 0.213181, -0.145219, -0.105781, 0.108913, 0.305233, 0.0383637, -0.619581, -0.0636712, 0.0103416, -0.588041, -0.470087, 0.0476889, 0.265867, -0.0740843, -0.00671011, 0.126866, -0.0340207, -0.409428, 0.0134829, -0.0493205, 0.105696, -0.00119445, 0.0452354, -0.160708, 0.0439706, -0.198272, -0.11029, 0.0315881, 0.0742292, 0.0166336, -0.242115, -0.136216, -0.336106, 0.231508, 0.384711, 0.339905, -1.52121, 1.02469, -0.0792018, 0.599792, -0.0345946, 0.0358862, -0.0383255, 0.0425473, -0.416306, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0268142, -0.230497, -0.023351, -0.0343509, -0.471548, -0.0274839, -0.101979, 0.0252094, 0.0353375, -0.141458, -0.145848, -1.01132, -0.0825612, -0.102293, -0.72572, -0.179589, -0.100803, -0.0448593, -0.0478456, 0.00600667, 0.32269, -0.0363038, 0.0521488, -0.022939, -0.0528045, -0.0313225, -0.113184, -0.068658, -0.00185099, 0.0583421, -0.0701493, 0.0946028, 0.635924, -0.11533, -0.0336092, 0.0693073, 0.127985, -0.0403488, 0.0755154, -0.409864, -0.0289129, 0.702261, -0.13613, -1.08064, -0.399127, 0.213449, -0.408839, 0.0621831, 0.24829, -0.152879, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.383655, 0.930675, 0.012068, -0.113921, 1.32464, -0.267016, 0.272236, -0.578376, 0.718184, -0.591407, -0.71803, 0.742188, 0.150191, 0.016258, 0.00856041, 0.223471, 0.590602, -0.2311, 0.451187, -0.00181072, -0.453114, 1.17205, -0.343379, -0.00473564, -0.294418, -0.9796, 0.612716, 0.714958, 0.568074, 0.00991886, 0.126063, -0.0969892, 1.72854, -0.789443, -0.018265, 0.305909, 0.43556, 1.73617, 0.226658, 0.402744, -1.14109, 3.64918, 0.250135, 1.22534, -0.165907, 0.5968, 0.372377, -0.0495461, -0.0327404, 0.61589, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.018063, -0.0188688, 0.0430521, -0.122324, -0.120272, 0.20023, -0.045079, -0.177333, -0.223405, 0.0427114, -0.171865, 0.221201, -0.195436, 0.0656524, -0.192175, 0.0498775, -0.0650849, -0.0635754, 0.0840117, -0.00385855, 0.0543038, -0.167373, 0.0790159, 0.0198352, 0.0406456, -0.126573, 0.166979, -0.202979, 0.484648, -0.0224731, -0.0905053, -0.178306, 0.0321119, 0.0010528, -0.0192428, -0.228747, -0.0345618, 0.0117154, 0.154646, -0.0140181, 0.0504062, -0.217296, 0.0543112, 0.170382, 0.157811, -0.161777, -0.0439961, 0.0152325, 0.0100112, 0.0856424, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.632762, 0.286013, -0.21689, 0.185222, 0.17993, -0.0084628, -0.177321, 0.159494, -0.179294, -0.551323, 0.192, -0.100406, -0.178917, 0.765385, 0.239417, 0.429981, -0.0684362, 0.0368117, -0.0065542, -0.0544179, -0.258676, 0.344494, -0.20941, -0.0490688, -0.0223307, 0.125973, 0.143355, -0.584765, -0.47755, 0.00364097, 0.103591, -0.317432, 0.00209686, 0.380912, 0.0475476, -0.235571, -0.45607, 0.0694787, -0.507979, -0.0234694, -0.0467944, 0.169369, 0.405954, 0.0351513, -0.0156734, 0.364341, -0.370851, -0.021752, 0.0428222, 0.403786, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.212059, -0.247252, 0.0505143, -0.821781, 0.26615, 0.617985, -0.216775, -2.68317, -0.104882, -0.271101, 0.0896709, 0.774163, -0.399563, 0.308987, 1.14307, 0.464905, -0.053906, -0.141716, 0.431904, 0.029822, 0.190956, 0.709225, -0.474632, 0.0326302, 0.0146491, -0.640687, -0.311962, 0.459585, 0.452656, 0.0095699, 0.100882, 0.208102, 0.84968, -0.460139, -0.0196067, -0.0218031, 0.96466, 1.44255, -0.0287266, 0.556993, 0.846127, 1.83761, 0.148785, 0.289303, -0.191406, 0.63952, 0.570086, 0.00534331, -0.192092, -0.0712943, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.362243, -0.704879, 0.0998316, 0.25105, -0.325986, 0.309454, 0.0172912, -0.261802, -0.69054, -0.161483, -0.225398, 0.0559868, -0.0163456, -0.494057, 0.622373, -0.11548, -0.0359259, -0.181797, -0.0786581, -0.0383839, -0.328229, -0.141237, -0.298124, -0.0070113, -0.140418, -0.554879, 0.801401, -0.0111989, 0.796352, -0.0408262, 0.111675, -0.768121, 0.262334, -2.45455, -0.0054054, -0.314293, 0.322316, 0.280676, 0.00458668, 0.329886, -0.687306, 0.0706676, 0.145898, -0.433017, -0.520168, -0.415029, 0.336782, 0.00154322, 0.00890512, -0.379097, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.256007, -0.111027, 0.0363602, 0.266796, 0.44129, 0.391222, 0.654197, -0.0410827, -0.127207, 0.402817, -0.204072, 0.372804, 0.0258697, 0.0774616, 0.426783, 0.148513, -0.0290407, 0.303065, -0.49289, -0.00593226, -0.0333911, 0.0203261, -0.741651, -0.0366718, 0.0310318, -0.257658, 0.484382, -0.0684153, -0.243986, -0.0144113, -0.265388, 0.186633, -0.392249, -0.140814, -0.0399592, 0.214992, 0.205237, -0.174199, -0.193352, -0.0626482, 0.121611, -0.154758, -0.540373, 0.143905, 0.383135, -0.477418, 0.261962, 0.0403539, 0.271631, -0.0883529, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0266625, -0.0190092, -0.0652994, -0.0296127, 0.0319519, 0.00654537, -0.0407266, 0.035572, 0.0375537, 0.0160895, -0.00975618, -0.0295761, 0.0122847, -0.0127348, 0.0327068, -0.0455852, -0.00810781, -0.00539368, 0.0226304, 0.0274573, 0.0358671, -0.0444264, 0.00876179, 0.00531799, -0.0145857, -0.00192925, 0.0376677, -0.0249324, 0.00484475, -0.00349898, -0.0149749, 0.0134947, 0.0135416, -0.0295477, -0.0319829, -0.00498546, 0.00580198, 0.0231465, 0.0212974, 0.039393, -0.0477417, -0.0476964, 0.0114306, -0.0159643, 0.0437861, -0.03869, 0.0232759, -0.037074, -0.000190269, -0.0538177, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.167065, 0.145399, 0.0814511, 0.0688589, 0.241749, 0.195743, 0.0206823, 0.206245, 0.106316, 0.288157, -0.428841, -0.11617, 0.00109893, -0.264841, -0.280177, 0.254282, 0.0673654, -0.0905028, 0.0396089, -0.0444984, 0.130271, -0.0152141, 0.00659582, 0.0215212, 0.0182184, -0.21459, -0.225342, 0.0591716, 0.355262, -0.0270361, 0.0392799, 0.0834429, -0.0402271, -0.0371691, 0.0440848, -0.225429, -0.331234, -0.114901, 0.0898619, -0.143467, 0.644516, -1.11203, 0.240747, 0.887234, -0.0977583, 0.0632653, -0.113368, 0.0015369, -0.0418923, 0.244657, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.405973, 0.597637, 0.0581732, -0.280169, 0.411709, -0.0478926, 0.0730388, -0.068706, 0.345557, 0.521352, -0.404808, 0.748966, -0.265855, 0.412421, 0.174624, 0.132461, 0.319714, -0.654744, -0.300844, -0.0484099, 0.0534532, -0.709361, -0.157476, 0.0370811, 0.11461, -0.612503, 0.382858, -0.432709, -0.318999, -0.034735, -0.163407, -0.306713, 0.560115, -0.513254, 0.0477594, -1.16549, -0.256745, -0.576286, -0.540561, -0.413072, 0.829813, -1.37347, -0.0367747, 0.792329, -0.144182, -0.608494, -0.654557, 0.0365405, 0.308439, -0.556967, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.402652, -0.235355, -0.378305, -0.550333, -0.579424, 0.0785301, 0.0464621, 0.0266118, -0.0828158, -0.39503, 0.14074, -0.297106, 0.0217634, 1.04338, -0.534119, 0.480679, -0.546521, -0.483173, 0.0362457, -0.00864395, -0.0694421, 0.303326, -0.161984, -0.0197382, -0.0385746, 0.185681, 0.0205643, -0.372396, -0.909246, 0.0467201, -0.212464, -0.19587, 0.00523215, 0.55953, 0.0174775, -0.582072, -0.578922, -0.0158919, -0.157328, -0.122222, -1.03089, 0.0237879, -0.215196, -0.0238084, 0.0979879, 0.245074, -1.02161, -0.0316064, -0.0982245, 0.336836, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0872495, 0.217632, 0.0679606, -0.28345, -0.788815, 0.352647, -0.0157498, -0.0108573, -0.319065, -0.0747498, -0.810484, 0.671142, 0.177148, 0.00209614, 1.13312, -0.224972, 0.058403, 0.0962211, 0.125152, 0.0334122, 0.276203, 0.00921654, -0.476663, -0.0283786, -0.0664494, -0.563168, 0.034627, 0.00505084, 0.0375114, -0.0159455, 0.727176, 0.721233, 0.600893, -0.359477, -0.0408295, 0.474833, -0.135123, 0.0408034, -0.135758, 0.943434, 0.459586, 1.6102, 0.200597, -0.782533, -0.112042, -0.0756627, 0.398762, 0.0306558, -0.982738, 0.228453, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.622773, -0.174582, 0.0587423, 0.280381, 0.0551776, -0.029538, -0.815602, -0.177958, 0.0345794, 0.113393, -0.0338753, -0.128951, -0.0398014, 0.192703, -0.116737, -0.468426, 0.343137, -0.417876, 0.0048696, -0.0514056, -0.196236, -1.0382, 0.153426, 0.00696664, 0.0587793, -0.296495, -0.696987, -0.775176, -0.602095, -0.01084, 0.069641, -0.128292, -0.451725, -0.0951998, -0.0211334, -0.99332, -0.00654291, 0.0388621, 0.29453, -0.860156, -0.245199, 0.0405506, -0.00578996, 0.172282, -0.106631, -0.135712, -0.0878625, 0.00118154, 0.442267, -0.738292, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.201682, 1.0058, -0.236794, -0.441854, 0.293492, -0.629462, -0.0793124, -0.588572, -0.919475, 0.451075, 0.0607055, -1.26106, 0.134327, -0.252481, 0.775888, 0.297703, -0.0188455, -0.212466, 0.236321, 0.00931371, -0.0180789, -0.185264, -0.256228, -0.0149686, 0.00121711, 0.334352, 0.0507463, 0.108049, 0.23018, -0.0151422, 0.465449, -0.319849, 0.476011, -0.145454, 0.00296347, -0.230328, -0.393164, 0.205245, 0.491569, 0.859738, -0.189249, 1.64672, -0.33007, 0.37292, 0.881257, 0.0197256, 0.455004, 0.012733, 0.224318, 0.990679, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2942, 0.3657, -0.05954, -0.2219, 0.6978, -0.823, -0.6167, -0.259, 0.1862, 0.05014, 0.3079, -0.3538, 0.0931, 0.2664, -0.1448, 0.02531, -0.3213, 0.1251, 0.3628, -0.03522, -0.1458, 0.1522, -0.1838, -0.03192, 0.09015, 0.2001, 0.0956, 0.2913, -0.2112, 0.012985, -1.34, 0.2124, 0.5684, 0.01492, -0.04468, -0.3203, 0.297, -0.703, -0.0405, -0.8213, 0.5493, -1.493, -0.7803, -0.24, -0.1644, -0.562, -0.127, 0.02042, 0.09717, 0.3662], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4014, 0.4927, -0.06854, 0.6665, -0.1599, 0.2034, 0.3694, -0.01877, 0.4504, 0.2289, 0.1156, -0.4434, -0.04123, 0.0635, 0.1279, -0.10614, -0.1242, -0.10095, 0.3455, -0.0009093, 0.0574, 0.3174, -0.2527, -0.01112, 0.02342, 0.2637, 0.4365, -0.02005, 0.01619, -0.007336, 0.5073, -0.07666, 0.2495, 0.1405, -0.02065, -0.335, -0.2382, 0.05914, -0.4521, -0.2372, -0.1652, 0.585, 0.1969, 0.5156, 0.11615, 0.3538, -0.1195, -0.04, -0.2927, -0.1415], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1371, -0.002678, -0.03882, 0.1376, 0.11725, -0.1602, 0.2144, -0.01578, 0.1499, -0.03534, 0.07855, -0.1835, 0.08936, -0.013535, 0.1067, 0.0953, -0.1637, -0.1501, -0.1381, -0.001305, 0.007534, 0.2014, -0.05716, 0.00857, -0.01773, 0.1465, -0.1621, 0.0817, -0.2683, 0.001246, 0.1465, 0.0389, -0.04242, 0.05917, -0.0246, 0.06082, 0.0006227, 0.1425, 0.01869, -0.10077, -0.2666, 0.714, -0.04898, 0.521, -0.183, 0.1318, -0.127, 0.03995, -0.0003295, -0.1267], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.191, -0.3613, -0.02893, 0.1737, 0.4192, -0.632, 0.3716, -1.382, -0.04492, -0.2766, 0.4805, 0.02533, 0.02098, 0.04376, 0.423, -0.11475, -0.9795, 0.3496, 0.3364, 0.03168, -0.7114, -0.04434, 0.037, 0.01095, -0.01511, -0.9756, -0.6997, 0.1921, 0.3364, 0.0481, -1.21, 0.4038, 1.317, -0.3374, 0.004204, -0.09045, -0.2212, -0.3916, -0.2888, -0.2644, 0.2805, 1.557, -0.1279, -0.082, 0.489, 0.10846, -0.1171, -0.02249, 0.226, 0.7354], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5547, 2.402, -0.4106, -0.839, 2.055, -0.1661, -1.141, -0.411, -0.0767, 1.768, 1.311, -1.738, -0.3333, -0.567, 2.584, -1.155, -0.4568, -0.861, 1.195, -0.02055, 0.533, -0.572, -1.256, -0.03445, -0.06573, 2.014, 0.345, 0.1089, 0.9688, 5.11e-05, 0.6274, -1.063, 0.662, 0.2394, 0.03323, -0.4014, -0.2341, 1.626, 1.154, 2.45, 0.1361, 1.763, 1.702, 0.5713, 1.167, 1.16, 1.801, -0.003052, -0.817, 0.5806], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.249, 0.4546, 0.00893, 0.586, 0.592, 1.305, 2.213, -0.441, 1.247, -0.4893, -0.164, 1.194, -0.299, 0.509, 0.8833, 0.5874, -0.8794, 1.435, 1.2, -0.01808, 0.4092, 0.1786, -0.83, -0.03992, -0.3342, 0.2395, -0.7153, -0.4858, 0.506, 0.01732, 1.354, 0.05954, -0.295, 0.6797, 0.04578, -0.8306, 0.821, 1.059, 0.6343, 0.89, -0.756, 3.344, 0.03668, 2.37, -0.11755, 0.5796, 0.4797, 0.01501, -0.9097, -0.1543], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.00364, -0.04202, -0.052, -0.006325, 0.0295, -0.03105, 0.01593, -0.045, 0.004616, 0.02478, 0.0003362, 0.002565, -0.0007644, 0.005768, -0.02113, -0.009384, -0.0473, -0.00837, 0.02188, 0.0356, -0.04684, -0.0369, -0.04263, -0.02325, 0.0235, -0.04602, -0.04398, -0.05176, -0.05014, 0.04214, 0.0061, 0.004204, 0.004616, 0.0338, 0.01697, -0.05374, -0.05313, -0.0343, 0.01391, -0.02618, -0.01156, -0.01825, -0.0381, -0.0252, 0.03198, 0.004345, 0.01967, -0.0417, 0.0369, -0.006855], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0491, 0.04758, -0.09717, -0.4473, 0.2311, -0.0816, -0.1787, -0.001257, -0.03766, -0.126, -0.013824, -0.4146, -0.01026, -0.05786, 0.1054, 0.127, -0.04437, -0.06186, 0.1093, 0.01484, -0.1611, -0.3599, 0.02574, -0.02007, 0.07245, 0.0835, 0.0485, -0.129, -0.183, 0.04727, 0.0551, -0.06366, 0.2058, -0.191, 0.02205, 0.02258, 0.1388, -0.2147, 0.02257, -0.1268, -0.02202, -1.31, -0.923, -0.656, -0.2012, 0.0568, 0.02824, 0.02126, -0.1677, 0.314], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.7983, -0.9517, 0.1757, 0.0499, -0.3215, -0.09503, -0.004147, 0.7417, 0.2267, -0.09344, 0.5107, 0.3206, 0.02498, 0.007492, 0.2632, 0.1887, -1.224, -0.3403, -0.622, -0.0508, 0.3728, 1.446, 0.2656, 0.01749, -0.632, 0.6416, -0.3403, -0.768, -0.553, -0.05054, 0.6113, 0.8247, -0.0869, 0.3481, 0.04483, -0.7124, 0.55, 0.6357, -0.129, -0.000563, -0.7627, 0.2786, 0.7573, -0.3337, 0.6562, 0.99, 0.3179, 0.00559, 0.3042, 0.0667], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.005646, -0.00329, 0.007214, 0.2573, 0.238, -0.1335, 0.1228, -0.223, -0.1082, -0.006428, 0.2927, -0.1697, -0.2294, -0.05087, -0.1449, 0.1964, 0.014915, -0.05948, -0.0903, 0.03516, 0.1335, -0.02881, -0.3696, 0.00366, -0.004204, 0.1057, -0.051, -0.3162, -0.232, -0.02602, -0.144, -0.1503, 0.1137, 0.1193, 0.0418, -0.06335, -0.03745, 0.02718, 0.2837, -0.4863, 0.1315, 0.654, -0.3743, 0.6445, -0.2678, -0.1448, 0.09686, 0.01214, 0.1758, -0.0868], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1758, 0.8936, -0.2067, 0.412, -0.3943, -0.5107, -0.1849, -0.3325, -1.45, 1.086, 0.01121, -0.316, 0.0773, -0.513, 2.328, 0.2617, -0.07764, -0.727, 0.3896, -0.0389, 0.773, -1.075, -0.826, 0.04297, 0.002438, 0.555, 0.591, 0.2954, 0.56, 0.03253, 0.345, -0.318, 0.09625, -0.3413, 0.005165, 0.5, -0.9443, 1.977, 0.1765, 1.74, 0.442, 1.184, 1.708, -2.01, -0.1011, 0.4521, 1.629, -0.01192, -0.7773, -0.3525], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.486, 1.169, -0.3599, -0.05103, 0.976, -0.4824, 0.3787, -0.1909, 1.936, 0.973, 0.3052, -0.661, 0.1357, -0.5625, 0.481, -0.42, -0.1215, 0.2727, 0.6494, -0.01695, -0.4543, 0.212, -1.12, -0.02321, 0.06604, 0.879, -1.627, 0.6567, 0.705, 0.0427, 0.649, -0.1027, 0.672, 0.2234, 0.01157, -0.64, -1.774, 1.0205, 0.1357, 0.846, 0.3362, 2.475, 0.703, 0.3115, 1.38, -0.694, 0.01551, 0.01924, -0.08264, -0.2422], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.149, -0.294, -0.125, -2.773, -2.383, -1.728, -1.78, 0.010086, -1.1875, -0.7046, 0.04352, 0.3796, -0.04138, 0.1251, -1.638, -3.031, -0.09766, -0.517, -0.6855, 0.04294, -0.6353, -2.107, 0.03278, 0.01561, 0.2476, -0.8423, -0.2712, -2.066, 0.3657, -0.0385, -2.082, -0.1437, 0.3057, 0.2017, -0.03595, -0.389, 0.04608, -1.364, -0.7285, -1.574, -0.07007, 0.04974, -1.401, -0.6562, -0.1323, -1.244, -0.669, -0.003317, 0.3303, -0.1492], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4126, 0.2668, 0.09106, 0.12085, 0.09296, 0.1818, 0.2046, -0.00496, 0.708, 0.2302, 0.0616, -0.4893, -0.2008, -0.3218, 0.6826, -0.1159, 0.10223, -0.3367, 0.1648, 0.05276, 0.423, 0.2993, -0.7153, -0.0393, -0.1752, 0.0382, -0.1896, 0.11426, -0.0744, -0.03372, 0.217, 0.2386, 1.304, 0.1456, -0.000644, -0.1027, -0.1008, 0.52, 0.0611, 0.2637, 0.2042, 2.227, 0.2098, 0.6543, 0.04526, 0.383, 0.7783, -0.00862, 0.010185, -0.5317], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1957, -0.04065, -0.002409, 0.359, -0.09186, -0.1964, 0.0901, 0.0015135, -0.2294, 0.3457, 0.007683, 0.1783, -0.2202, 0.2612, -0.01624, -0.1168, 0.2122, -0.1307, 0.10925, -0.03876, -0.05396, -0.1614, -0.2389, 0.01176, 0.0837, -0.0848, 0.3987, -0.2864, -0.1631, 0.04504, -0.0447, -0.0961, 1.14, 0.0759, 0.014496, -0.4094, -0.04767, -0.3308, -0.2544, -0.0349, 0.4934, -0.8735, -0.2751, 0.0635, 0.0683, -0.1698, 0.0523, -0.00798, 0.6265, -0.0924], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.055, -0.10614, -0.06137, 0.0967, 0.1222, 0.1813, -0.1422, -0.08, 0.004402, 0.2354, -0.1747, 0.2568, -0.227, -0.0626, -0.7197, -0.0238, -0.01692, 0.1489, 0.06915, -0.02637, -0.1946, 0.01999, -0.012245, 0.02928, -0.0365, -0.06836, 0.2319, -0.1624, 0.1425, 0.03427, -0.1512, -0.296, 0.5933, 0.0799, -0.02455, -0.06104, 0.1782, -0.53, 0.1913, 0.335, -0.001314, 0.2358, -0.1884, 0.6494, -0.02623, 0.00989, 0.3162, 0.02454, -0.1699, -0.2305], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2386, 0.3105, -0.1399, -0.5835, -0.9272, -0.6465, -0.2424, -0.709, -2.01, -0.3623, -0.1201, -0.2703, -0.1956, 0.03262, 0.2358, -0.4312, -0.01741, -0.0621, 0.4524, 0.03503, -0.211, -0.5586, 0.178, -0.01322, 0.04593, 0.05673, -0.45, -0.879, 0.6562, -0.03082, 0.001521, 0.2155, -0.39, -0.4854, -0.012054, -0.4775, -0.5435, -0.3274, -0.5405, -0.1243, -0.066, 1.559, 0.5366, -0.6714, 0.06537, -1.327, 0.3945, -0.002277, -0.01144, 0.5796], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.09357, 0.1992, 0.03656, 0.3691, 0.3694, -0.1388, 0.2074, -0.08307, 0.0811, 0.377, 0.10223, -0.08496, -0.0513, -0.1652, -0.241, 0.0015955, -0.11487, -0.2664, -0.0409, 0.03302, 0.2896, -0.1219, -0.1735, -0.0379, 0.01434, -0.0836, 0.1769, -0.4297, -0.4429, -0.02887, -0.02275, 0.005657, -0.4028, -0.229, 0.0412, -0.2426, -0.343, -0.2874, 0.07446, -0.001991, 0.2646, -0.9155, -0.1738, 0.3691, -0.1432, -0.006073, 0.4802, 0.02625, 0.10815, -0.04456], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.05032, -0.01653, -0.01487, 0.00862, 0.01366, 0.04147, -0.007107, -0.03069, 0.0384, -0.04587, -0.02507, 0.004696, 0.012245, -0.04626, 0.04437, -0.004845, -0.004246, 0.0417, 0.002312, -0.000817, 0.006134, -0.04114, 0.0144, -0.008835, -0.003286, -0.00794, -0.0404, -0.011536, -0.005024, 0.02338, -0.012, 0.01935, 0.004345, 0.003677, -0.01955, 0.03336, -0.05478, -0.02553, -0.03317, 0.02846, -0.04187, -0.002382, -0.02083, -0.03616, -0.010056, -0.0357, 0.02477, -0.04428, -0.0325, -0.001525], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2152, 0.01788, -0.11017, 0.591, 2.652, -0.3289, 1.629, -1.57, 0.8257, 0.1844, -0.285, 0.2399, -0.0751, 0.3418, 1.882, -0.12366, -0.2402, 0.5337, -0.4077, 0.0077, 0.4219, -0.0965, -1.657, 0.02454, 0.0977, -1.226, 1.074, -0.286, 0.0125, 0.03677, 0.5386, 0.5283, 2.697, -0.563, -0.0432, 0.2754, 0.6357, 2.424, 0.5415, 0.768, 1.203, 2.088, -1.039, 1.648, 0.2463, 0.5576, 0.2482, 0.010315, -0.02654, 0.919], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.319, -0.3086, -0.00893, 0.05194, -0.896, -1.005, 0.0649, 0.0714, 0.607, 0.10297, 0.2358, 0.256, -0.06885, 0.194, -0.3628, -1.383, -0.008736, -0.265, 0.10516, 0.02246, -0.0921, -0.2247, -0.698, -0.01127, -0.000794, -0.7534, 0.169, -0.4753, -0.0384, -0.012474, -0.1653, -0.3403, -0.1608, -0.822, 0.001389, -0.1599, 0.3142, -1.155, 0.3323, 0.066, -0.10834, 1.409, 0.1937, -0.4177, 0.0923, 0.4524, -1.901, -0.039, 0.2047, -0.1534], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.9263, -0.0869, 0.1852, 0.553, 0.9023, -0.007122, -0.0806, 0.4602, 1.816, 0.6885, 0.04767, -1.585, -0.617, -0.461, 0.3293, 0.3477, -0.126, -1.236, -0.3289, 0.03357, 0.726, 0.705, -1.057, -0.00406, -0.2478, 1.315, -0.6426, 0.2069, -0.0648, -0.02284, 0.999, 0.3113, 1.607, 0.5273, 0.000572, -0.4778, -0.388, -0.1805, -0.562, 0.3628, 0.7295, 4.67, 1.258, 1.238, -0.793, 1.116, 0.1394, -0.03464, 0.4343, -0.6523], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5645, -0.309, -0.04697, 0.3848, 0.2935, -0.1416, 1.106, -0.1438, 0.3887, -0.257, 0.1816, 0.0959, -0.2334, 0.294, -0.773, -0.07874, -0.3208, 0.009766, 1.1455, -0.01799, -0.185, 0.6514, -0.199, -0.01313, -0.00532, 0.5024, -1.579, -0.0656, 0.39, -0.0315, -0.388, 0.09357, -0.001166, 0.6567, 0.0274, -0.7256, -0.1471, 0.1647, -0.2443, 1.088, 0.02666, 0.913, 0.864, 0.69, -0.2026, 0.2056, 0.2305, 0.0424, -0.4734, -0.2441], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0898, 0.11676, -0.001009, 0.2578, -0.307, 0.1029, 0.2125, 0.03568, 0.1996, 0.05142, -0.04916, 0.0926, 0.04407, 0.1015, 0.5654, -0.03604, 0.05777, -0.1614, -0.0099, -0.023, -0.05844, 0.10077, -0.11926, 0.02805, -0.01119, -0.2905, 0.247, 0.05, -0.2428, 0.05566, 0.225, -0.2883, -0.1746, -0.0981, -0.01098, -0.2249, 0.2712, -0.4304, -0.2224, 0.08545, -0.147, 0.4478, -0.05292, 0.2445, 0.1188, 0.1881, 0.06964, -0.003077, -0.1709, 0.1648], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3145, 0.1683, -0.02486, 0.2051, 0.05835, 0.1709, -0.3235, -0.0669, -0.3906, 0.292, 0.0317, -1.265, 0.0451, -0.223, -1.025, 0.2217, 0.2252, 0.003223, 0.126, 0.0422, 0.2449, 0.04117, -0.4126, -0.004475, -0.08887, -0.4224, 0.266, -0.269, -0.0926, -0.04047, -0.1743, 0.1874, 0.1476, 0.01395, 0.02759, -0.03117, 0.1362, 0.3718, -0.7036, -0.1787, 0.4014, 0.759, -0.08246, 0.341, -0.399, -0.7437, 0.11017, -0.014725, 0.03452, -0.03967], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02686, 0.2444, -0.03708, -0.4355, 0.03038, -0.04468, 0.136, -0.0995, -0.1764, 0.2122, -0.143, -0.3042, 0.0644, -0.0568, 0.04825, -0.03119, 0.0748, -0.06384, 0.0626, -0.03296, -0.1026, -0.0947, 0.09204, -0.03226, 0.0369, -0.0638, -0.1848, -0.01512, 0.3152, 0.01196, -0.1377, -0.07733, 0.281, -0.02602, 0.03488, -0.2294, -0.2269, 0.2075, 0.03105, -0.05637, 0.1893, 0.652, 0.03867, 0.4165, -0.1334, -0.005524, 0.1932, 0.02074, -0.2673, 0.1459], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.04117, -0.5454, 0.1447, -0.08405, -1.435, 0.2695, 0.0189, -0.7886, -0.2817, 0.1829, -0.441, 0.1624, -0.1873, 0.196, -1.988, 0.2583, -0.3916, -0.5664, -0.0411, 0.00978, -0.4297, -0.3923, 0.1997, 0.04492, 0.03964, -0.06995, 0.305, -0.4224, 0.3337, -0.01965, 0.1477, -0.311, -0.1262, 0.259, -0.006813, -1.209, -0.02841, -0.5596, 0.5684, -0.08844, 0.7505, -3.52, -0.0674, 0.0363, 0.3625, -0.4124, 0.1559, 0.0435, 0.1749, -0.5444], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0711, -0.1968, -0.0868, 1.159, 0.2524, -0.711, -1.602, -0.3052, 0.01617, 0.2837, 0.2426, 0.1109, 0.01428, -0.5664, -0.313, 0.4463, 0.5425, 0.2688, -0.04587, 0.1699, -0.606, 0.3596, 0.04282, 0.2551, -0.226, 0.0631, -1.214, -0.3672, 0.03638, -0.3113, 0.04105, 1.355, 0.904, -0.002167, 0.09076, -0.4607, -0.2744, 0.3552, -0.4548, 0.3306, 0.08344, -0.4053, -0.03156, 0.4739, -0.781, 0.2252, -0.04477, 0.1942, 0.1164], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.09924, -0.06122, 0.002552, -0.28, -0.12494, 0.05716, -0.08215, -0.05453, -0.3042, 0.3757, -0.3196, 0.4287, 0.1625, 0.1019, -0.63, -0.2428, 0.1942, 0.1388, -0.1249, -0.03522, -0.001328, -0.2388, 0.1279, 0.05356, 0.0915, -0.4458, 0.03522, -0.2289, 0.05234, 0.0376, -0.36, 0.00792, -0.776, -0.1089, -0.00311, -0.3337, 0.01088, 0.1357, -0.05774, 0.0828, 0.709, -0.6846, 0.0864, 0.00325, 0.3245, -0.12, -0.003717, -0.0256, -0.2156, 0.11914], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.03046, 0.01353, -0.04697, 0.005608, 0.02669, -0.03044, -0.0359, 0.03763, 0.03177, -0.01576, -0.00907, 0.03323, -0.01467, 0.001238, -0.02705, -0.00807, -0.01852, 0.0333, 0.0345, 0.011406, -0.01695, -0.02008, -0.014725, -0.01081, -0.01259, -0.0326, -0.02905, 0.00719, -0.02333, -0.009636, -0.01924, 0.0056, 0.001974, 0.00872, 0.01761, -0.0487, 0.02309, -0.007458, -0.02687, 0.02872, 0.0224, -0.01703, 0.009476, -0.01334, 0.00283, 0.01814, -0.04803, 0.01671, -0.02058, -0.02792], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.215, 0.04453, -0.0843, 0.0963, -0.1385, -0.1786, 0.06805, -0.263, -0.183, 0.4258, 0.0913, -0.0353, 0.0083, 0.1367, -0.0701, -0.0634, -0.2544, 0.11346, 0.0899, 0.02986, -0.000197, 0.1001, -0.1617, -0.05032, -0.003956, -0.0234, 0.4028, -0.1832, 0.2754, 0.0414, -0.01729, -0.004345, 0.0253, 0.03857, -0.02542, -0.2329, 0.3865, -0.0377, 0.2146, 0.1508, 0.1707, -0.03543, -0.0477, -0.2947, 0.091, -0.2024, 0.138, 0.02682, -0.4658, -0.1183], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.04288, -0.01546, 0.007515, -0.29, -0.077, 0.0993, -0.06604, 0.1671, -0.2966, -0.1161, -0.2037, 0.138, 0.06464, -0.0474, -0.02504, -0.1237, 0.03314, -0.0694, -0.147, -0.04266, -0.0726, 0.02457, 0.1924, 0.00888, -0.010506, -0.188, -0.05508, -0.11316, 0.5947, 0.0512, -0.02556, 0.1494, -0.12085, -0.0483, 0.0406, -0.0985, -0.0694, 0.004917, -0.534, 0.2737, -0.01648, -0.002417, 0.10425, -0.01256, 0.05133, 0.1249, 0.3792, 0.0222, -0.1215, -0.186], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.2188, -0.09247, 0.01767, -0.0923, 0.1053, 0.12006, 0.4705, 0.0125, -0.2598, -0.244, -0.0662, 0.518, 0.0651, -0.00991, -0.4277, -0.1621, 0.1405, 0.2896, -0.1757, 0.01564, 0.09564, -0.27, -0.1403, -0.008484, -0.1289, -0.2235, 0.05072, -0.02095, 0.1084, 0.03326, -0.826, -0.3271, 0.5327, -0.003334, 0.04218, 0.1871, 0.14, -0.1517, 0.264, 1.005, -0.02448, -1.118, -0.003511, -0.0412, 0.3672, -0.1816, 0.1636, -0.0363, -0.06525, 0.009315], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1021, 0.761, 0.002607, -0.728, 0.06494, -0.282, -0.4568, -0.02638, -0.584, 0.0556, -0.522, 0.0661, 0.1168, -0.03036, 1.199, -0.3157, 0.1718, 0.1037, 0.316, -0.009384, -0.2256, -0.3376, 0.1779, -0.039, 0.1311, -0.3596, -0.293, -0.00739, 0.2288, 0.012375, -0.10187, 0.3228, -0.29, -0.1554, -0.0437, 0.1026, -0.514, -0.3936, -0.09265, 0.1932, 0.476, 1.733, 0.692, 0.006184, 0.3875, -0.2191, 0.06464, 0.0646, -0.0843, 0.3992], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1827, -0.1732, 0.1064, 0.9014, 0.419, 0.2339, 0.525, -0.1815, 0.639, 0.632, 0.03265, 0.1225, -0.6416, -0.1334, 0.317, 0.1967, -0.1233, 0.2373, 0.3967, 0.03165, 0.2416, 0.653, -0.4893, 0.0397, -0.2101, 0.695, 0.3364, -0.1304, -0.10876, 0.004093, 0.6753, 0.131, 1.638, 0.2593, -0.0391, -0.3906, -0.09216, 0.269, 0.1952, -0.5454, -0.3567, 0.3184, 0.3503, 0.007523, 0.1296, 0.2646, -0.509, -0.04184, -0.659, -0.3374], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1066, 0.02316, -0.01335, 0.003027, 0.2585, 0.2131, -0.1453, -0.1058, 0.1089, 0.3052, 0.03836, -0.6196, -0.06366, 0.01034, -0.588, -0.47, 0.0477, 0.2659, -0.0741, -0.00671, 0.1268, -0.03403, -0.4094, 0.01348, -0.04932, 0.1057, -0.001194, 0.04523, -0.1608, 0.04398, -0.1982, -0.1103, 0.0316, 0.0742, 0.01663, -0.2421, -0.1362, -0.3362, 0.2316, 0.3848, 0.3398, -1.521, 1.024, -0.0792, 0.5996, -0.0346, 0.0359, -0.03833, 0.04254, -0.4163], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02681, -0.2305, -0.02335, -0.03436, -0.4714, -0.02748, -0.102, 0.0252, 0.03534, -0.1415, -0.1459, -1.012, -0.0826, -0.1023, -0.7256, -0.1796, -0.1008, -0.04486, -0.04785, 0.00601, 0.3228, -0.03632, 0.05215, -0.02293, -0.0528, -0.0313, -0.11316, -0.06866, -0.001851, 0.05835, -0.0701, 0.0946, 0.6357, -0.11536, -0.0336, 0.06934, 0.1279, -0.04034, 0.0755, -0.41, -0.02892, 0.702, -0.1361, -1.081, -0.3992, 0.2135, -0.409, 0.0622, 0.2483, -0.1528], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3835, 0.9307, 0.01207, -0.1139, 1.324, -0.267, 0.2722, -0.5786, 0.7183, -0.5913, -0.7183, 0.742, 0.1501, 0.01625, 0.00856, 0.2235, 0.591, -0.2311, 0.4512, -0.001811, -0.4531, 1.172, -0.3433, -0.004734, -0.2944, -0.9795, 0.613, 0.715, 0.568, 0.00992, 0.1261, -0.097, 1.729, -0.7896, -0.01826, 0.306, 0.4355, 1.736, 0.2267, 0.4028, -1.141, 3.648, 0.2502, 1.226, -0.1659, 0.5967, 0.3723, -0.04956, -0.03275, 0.6157], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01807, -0.01888, 0.04306, -0.1223, -0.1203, 0.2002, -0.04507, -0.1774, -0.2234, 0.04272, -0.1719, 0.2212, -0.1954, 0.0657, -0.1921, 0.04987, -0.06506, -0.0636, 0.084, -0.003859, 0.0543, -0.1674, 0.07904, 0.01984, 0.04065, -0.1266, 0.167, -0.203, 0.4846, -0.02248, -0.0905, -0.1783, 0.0321, 0.001053, -0.01924, -0.2288, -0.03458, 0.01172, 0.1547, -0.014015, 0.0504, -0.2173, 0.05432, 0.1704, 0.1578, -0.1617, -0.044, 0.015236, 0.01001, 0.08563], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.633, 0.2861, -0.2169, 0.1852, 0.1799, -0.00846, -0.1774, 0.1595, -0.1793, -0.5513, 0.192, -0.1004, -0.179, 0.7656, 0.2394, 0.43, -0.0684, 0.0368, -0.006554, -0.0544, -0.2588, 0.3445, -0.2094, -0.04907, -0.02232, 0.126, 0.1433, -0.585, -0.4775, 0.003641, 0.1036, -0.3174, 0.002096, 0.3809, 0.04755, -0.2356, -0.456, 0.06946, -0.508, -0.02347, -0.04678, 0.1693, 0.406, 0.03516, -0.01567, 0.3643, -0.3708, -0.02176, 0.04282, 0.4038], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.212, -0.2472, 0.0505, -0.822, 0.266, 0.618, -0.2168, -2.684, -0.10486, -0.271, 0.08966, 0.774, -0.3997, 0.309, 1.144, 0.4648, -0.0539, -0.1417, 0.432, 0.02982, 0.1909, 0.709, -0.4746, 0.03262, 0.01465, -0.6406, -0.312, 0.4595, 0.4526, 0.00957, 0.1009, 0.2081, 0.8496, -0.4602, -0.0196, -0.0218, 0.965, 1.442, -0.02873, 0.557, 0.846, 1.838, 0.1488, 0.2893, -0.1914, 0.6396, 0.5703, 0.005344, -0.1921, -0.0713], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.3623, -0.705, 0.09985, 0.251, -0.326, 0.3096, 0.01729, -0.2617, -0.6904, -0.1615, -0.2253, 0.056, -0.01634, -0.4941, 0.6226, -0.1155, -0.03592, -0.1818, -0.0787, -0.0384, -0.3281, -0.1412, -0.298, -0.00701, -0.1404, -0.5547, 0.8013, -0.0112, 0.7964, -0.04083, 0.1117, -0.768, 0.2625, -2.455, -0.005405, -0.3142, 0.3223, 0.2808, 0.004585, 0.3298, -0.6875, 0.0707, 0.1459, -0.433, -0.52, -0.415, 0.3367, 0.001543, 0.0089, -0.3792], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.256, -0.111, 0.03635, 0.2668, 0.4414, 0.391, 0.6543, -0.04108, -0.1272, 0.4028, -0.2041, 0.3728, 0.02586, 0.07745, 0.4268, 0.1486, -0.02904, 0.303, -0.493, -0.00593, -0.0334, 0.02032, -0.7417, -0.03668, 0.03104, -0.2576, 0.4844, -0.0684, -0.244, -0.01441, -0.2654, 0.1866, -0.3923, -0.1409, -0.03995, 0.215, 0.2052, -0.1742, -0.1934, -0.0626, 0.1216, -0.1548, -0.5405, 0.1439, 0.383, -0.4775, 0.262, 0.04034, 0.2717, -0.0884], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02666, -0.01901, -0.0653, -0.02962, 0.03195, 0.006546, -0.04074, 0.03558, 0.03757, 0.01608, -0.00976, -0.02957, 0.01228, -0.01273, 0.0327, -0.0456, -0.00811, -0.005394, 0.02263, 0.02745, 0.03586, -0.04443, 0.00876, 0.005318, -0.01459, -0.001929, 0.03766, -0.02493, 0.004845, -0.003498, -0.01498, 0.0135, 0.01354, -0.02954, -0.03198, -0.004986, 0.005802, 0.02315, 0.0213, 0.0394, -0.04773, -0.0477, 0.01143, -0.01596, 0.0438, -0.0387, 0.02327, -0.03708, -0.0001903, -0.0538], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1671, 0.1454, 0.0814, 0.06885, 0.2417, 0.1958, 0.02068, 0.2063, 0.1063, 0.288, -0.429, -0.11615, 0.001099, -0.265, -0.2803, 0.2544, 0.0674, -0.0905, 0.0396, -0.0445, 0.1302, -0.01521, 0.006596, 0.02151, 0.01822, -0.2146, -0.2253, 0.05917, 0.3552, -0.02704, 0.03928, 0.08344, -0.04022, -0.03717, 0.0441, -0.2255, -0.3313, -0.1149, 0.08984, -0.1434, 0.6445, -1.112, 0.2407, 0.887, -0.0978, 0.0633, -0.11334, 0.001537, -0.0419, 0.2446], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.406, 0.5977, 0.05817, -0.2803, 0.4116, -0.04788, 0.07306, -0.0687, 0.3455, 0.5215, -0.4048, 0.749, -0.2659, 0.4124, 0.1747, 0.1324, 0.3198, -0.655, -0.3008, -0.0484, 0.05347, -0.7095, -0.1575, 0.03708, 0.1146, -0.6123, 0.3828, -0.4326, -0.319, -0.03473, -0.1635, -0.3066, 0.56, -0.513, 0.04776, -1.165, -0.2568, -0.576, -0.5405, -0.413, 0.8296, -1.373, -0.03677, 0.7925, -0.1442, -0.6084, -0.655, 0.03653, 0.3083, -0.557], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4026, -0.2354, -0.3784, -0.5503, -0.5796, 0.07855, 0.04645, 0.02661, -0.0828, -0.395, 0.1407, -0.297, 0.02176, 1.043, -0.534, 0.4807, -0.5464, -0.4832, 0.03625, -0.008644, -0.06946, 0.3032, -0.162, -0.01974, -0.03857, 0.1857, 0.02057, -0.3723, -0.909, 0.04672, -0.2125, -0.1959, 0.005234, 0.5596, 0.01747, -0.582, -0.579, -0.01588, -0.1573, -0.1222, -1.031, 0.02379, -0.2152, -0.0238, 0.09796, 0.2451, -1.021, -0.03162, -0.0982, 0.337], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0872, 0.2177, 0.06793, -0.2834, -0.7886, 0.3525, -0.01575, -0.01086, -0.319, -0.07477, -0.8105, 0.671, 0.1771, 0.002096, 1.133, -0.225, 0.0584, 0.0962, 0.1251, 0.03342, 0.2761, 0.00922, -0.4766, -0.02838, -0.06647, -0.563, 0.03464, 0.00505, 0.0375, -0.01595, 0.727, 0.721, 0.601, -0.3594, -0.04083, 0.4749, -0.1351, 0.0408, -0.1357, 0.9434, 0.4595, 1.61, 0.2006, -0.7827, -0.11206, -0.0757, 0.3987, 0.03065, -0.983, 0.2284], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.6226, -0.1746, 0.05875, 0.2803, 0.05518, -0.02954, -0.8154, -0.178, 0.03458, 0.1134, -0.03387, -0.1289, -0.0398, 0.1927, -0.11676, -0.4685, 0.343, -0.418, 0.00487, -0.0514, -0.1963, -1.038, 0.1534, 0.006966, 0.05878, -0.2964, -0.697, -0.7754, -0.602, -0.01084, 0.06964, -0.1283, -0.4517, -0.0952, -0.02113, -0.993, -0.006542, 0.03885, 0.2944, -0.8604, -0.2452, 0.04056, -0.00579, 0.1722, -0.1066, -0.1357, -0.0879, 0.001182, 0.4424, -0.7383], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2017, 1.006, -0.2368, -0.442, 0.2935, -0.6294, -0.0793, -0.5884, -0.9194, 0.4512, 0.0607, -1.261, 0.1343, -0.2524, 0.776, 0.2976, -0.01884, -0.2125, 0.2363, 0.009315, -0.01808, -0.1853, -0.2563, -0.01497, 0.001217, 0.3345, 0.05075, 0.10803, 0.2302, -0.015144, 0.4653, -0.3198, 0.476, -0.1455, 0.002964, -0.2303, -0.393, 0.2052, 0.4915, 0.86, -0.1892, 1.646, -0.33, 0.3728, 0.8813, 0.01973, 0.455, 0.01273, 0.2244, 0.9907]]
[-0.290724, 0.0272886, 0.179373, -0.0717365, -0.234844, -0.857857, -0.00822292, 0.265643, -1.32974, 0.135066, -0.14859, 0.0802448, 0.269092, -0.28526, 0.195597, 0.324902, 0.494925, -0.0636037, -0.0144713, -0.30288, -0.137161, -1.13104, -0.440623, 0.0364376, 0.191464, 0.177774, -0.449447, -0.129933, -0.0183973, -0.0193124, 0.107476, 0.169125, -0.0444545, 0.250554, -0.331933, 0.141489, 0.196925, -0.768087, 0.0601723, -1.23605, -0.936134, -0.164106, -0.217586, -0.0254947, -0.174792, -0.163857, -2.1445, -0.459907, -0.0957012, 0.132589, -0.2908, 0.02728, 0.1793, -0.0717, -0.2349, -0.858, -0.008224, 0.2656, -1.33, 0.135, -0.1486, 0.08026, 0.269, -0.2852, 0.1956, 0.325, 0.4949, -0.0636, -0.01447, -0.303, -0.1372, -1.131, -0.4407, 0.03644, 0.1914, 0.1777, -0.4495, -0.1299, -0.0184, -0.01932, 0.1075, 0.1691, -0.04446, 0.2505, -0.332, 0.1415, 0.1969, -0.768, 0.06018, -1.236, -0.936, -0.1641, -0.2175, -0.0255, -0.1748, -0.1638, -2.145, -0.46, -0.0957, 0.1326]
ReLU
[[0.057704, -0.00738265, -0.134334, -0.103858, -0.0432697, -0.0459085, -0.0370416, 0.0277299, 0.0128106, -0.152613, -0.0781902, -0.0590907, -0.570008, 0.0830571, 0.0325387, -0.0144731, -0.0797519, 0.0170731, -0.00749652, 0.016011, 0.0385378, -0.177202, -0.0393454, 0.0329516, 0.0298125, 0.0540447, -0.036531, -0.0155163, -0.116228, -0.0258216, 0.0453148, 0.0556529, -0.0486794, -0.057908, -0.156776, 0.0204766, -0.00642102, -0.01938, -0.0614138, 0.0497325, 0.0381852, 0.0356512, -0.0555967, 0.0100725, 0.116595, -0.0555249, -0.0836394, 0.00305457, -0.0190369, -0.120592, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0215492, -0.043419, -0.0328821, -0.0447627, 0.015075, -0.03406, -0.0385561, 0.0201959, -0.0394183, -0.0160566, -0.0166179, 0.0365967, 0.0324909, 0.00471597, -0.00734916, -0.000762352, 0.000160264, 0.00777083, 0.0218236, -0.0425232, 0.0357868, -0.0153539, -0.0393239, -0.0336032, -0.00260775, -0.00750755, -0.0155861, -0.0391034, -0.0229576, 0.0440619, -0.0502013, -0.0512596, 0.0371178, -0.051858, -2.83971e-05, 0.04254, 0.0186403, 0.0162873, 0.0258766, 0.0395296, 0.0245961, -0.0350494, -0.0471259, -0.040675, 0.00392393, -0.0352558, -0.050456, -0.0326145, -0.0516823, -0.0451643, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.67513, 0.218095, -0.535804, 0.0588775, -0.0330385, 0.0894796, -0.0396137, 0.610899, -0.293328, 0.291973, 0.177282, -0.355092, 0.248478, -0.00222158, -0.0461047, 0.827518, 0.179986, -0.363338, -0.0235678, -0.063273, 0.838524, -0.227187, -0.0940113, 0.0225331, -0.142747, 0.241076, -0.933812, -0.127659, 0.119703, -0.0305801, -0.249875, 0.650629, -0.38824, -0.0968402, 0.560911, 0.309288, 0.256747, -0.399008, 0.447427, -0.116244, 0.0420344, -0.35053, 0.326117, 0.0263226, -0.135598, -0.214734, 0.0104887, 0.040079, -0.75493, 0.165948, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0158093, -0.0504423, 0.000997151, 0.00689919, -0.0188386, 0.0116822, -0.0462983, 0.03796, -0.0531216, -0.034292, -0.0280527, -0.0318711, 0.0441009, 0.0250568, -0.0516086, 0.00080004, -0.00951283, -0.0373143, 0.0462133, -0.0126806, -0.00501927, 0.00989146, -0.00946101, -0.0459333, 0.00415126, 0.0334176, -0.0152521, 0.0155555, 0.0104837, -0.0398539, -0.00379138, -0.0486685, 0.0335981, -0.0401521, 0.0201816, -0.00787586, 0.0261169, -0.00183683, -0.0449791, 0.0273995, -0.0212983, -0.0228279, -0.0472404, 0.00567844, 0.0205665, 0.023099, -0.00683708, 0.0283385, 0.0450104, -0.00219752, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0342949, 0.343442, 0.835675, 0.202552, -0.444927, -0.235089, 0.0336746, 0.0295101, -0.166167, 0.445397, -0.260172, 0.145435, 1.52077, -0.438982, 0.128574, -0.0297217, 0.821573, 0.0898873, -0.0463093, 0.111457, 0.897939, -0.778127, -0.572092, 0.167175, 0.274227, 0.296332, -0.0277124, 0.124751, 0.707115, 0.00353666, 0.245897, 0.168893, -0.097649, -0.0160598, -0.23024, 0.143372, 0.754203, 0.0441639, -0.190659, -0.0214446, 0.447242, 0.164809, 0.527385, -0.0392592, 0.0233504, 0.233251, -0.00573709, 0.268809, 0.782563, 0.253272, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0499038, -0.127518, 0.183533, 0.111616, -0.126155, -0.0813031, 0.0396419, 0.00849576, -0.0377499, -0.0800296, 0.192569, 0.199449, 0.344582, -0.167543, 0.145467, 0.198176, 0.0873307, -0.110591, 0.0184326, 0.0666761, 0.302395, -0.401374, -0.286941, -0.226308, 0.0976706, -0.138127, -0.0407761, -0.0443311, 0.190162, 0.0275261, 0.0389396, -0.132991, 0.0444065, -0.0310783, -0.0357617, 0.26718, 0.172606, -0.174382, -0.0888596, 0.0199845, 0.121199, 0.0335067, 0.260672, 0.0218485, -0.076542, -0.0383199, 0.0192945, 0.101917, -0.0444034, 0.240348, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.536202, 0.516651, -0.245413, 0.475249, -0.74526, -0.423323, -0.0440459, 0.716286, -0.089164, 0.0659656, -0.0345448, 0.111697, 2.21222, 0.0406903, -0.0988658, 0.676444, 0.944971, 1.1448, -0.00953394, 0.463978, 0.531582, -0.438595, 0.0538484, 0.168447, 0.0522012, -0.929836, -0.877139, -0.118615, -0.134724, -0.0541523, -0.16884, -0.857505, 0.0106062, -0.116493, -0.171848, 0.34888, 0.088955, -0.0668427, 0.0461445, -0.0718594, 0.0711247, 0.949566, -0.571303, -0.00828786, -0.098688, 1.19664, -0.0301504, 1.18453, 1.53561, 0.658513, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.123219, 0.00744427, -0.0911562, -0.956407, -0.00381637, -0.00351472, -0.0125591, -0.1624, -0.0106729, 0.0162049, -0.02193, -0.0183598, 0.734362, -0.0278433, -0.0414357, -0.113024, -1.08796, 0.0709054, 0.00994097, 0.0122167, -0.438254, -0.00223027, 0.00308641, 0.0124166, -0.00677773, -0.123288, -0.201145, -0.0310673, -0.252581, 0.0283426, 0.0408125, 0.036614, -0.131653, -0.0390508, 0.0141469, 0.0297554, 0.034878, -0.0696614, 0.177662, 0.0133412, -0.0484351, 0.023635, -0.0710634, 0.051486, 0.0135478, -0.171847, -0.0143929, -0.164621, -0.111811, -0.0765225, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.138529, 0.0205275, -0.12198, -0.0096599, -0.102692, -0.0254839, 0.00143876, -0.282595, 0.0240113, -0.0435168, 0.030921, -0.070397, -0.78615, 0.0645795, -0.00108839, -0.114021, 0.010145, 0.0513695, 0.0385039, -0.0178778, -0.812368, -0.156354, -0.573363, -0.0251776, 0.0366, 0.459925, -0.649068, -0.113186, -0.261325, 0.0139858, -0.175549, -0.0982225, -0.241038, 0.0154777, -0.250518, -0.0143417, 0.119856, -0.0390677, 0.000188252, 0.147103, -0.752448, -1.86168, -0.143075, -0.0117586, -0.0653783, -0.260006, -0.0545656, -0.227444, -0.672761, -0.127553, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.773817, -3.41059, -2.61029, -1.2059, -0.317409, -1.30114, 0.0342351, -1.52705, 0.0477174, -0.80483, -0.469786, -0.511921, -0.164889, -0.326933, 0.363185, 0.82919, -0.226423, -1.60496, 0.0233049, 0.135431, -2.43374, -0.942687, -0.584107, 0.528728, -1.15957, -0.894045, -2.17815, -0.0250293, -1.34979, -0.00838032, -2.60368, 1.1947, -0.483005, -1.79399, -1.99584, -3.04417, -0.571812, -0.773488, 0.234565, -0.07716, -0.143571, -2.55828, -2.25033, 0.0496247, -1.04017, -0.578337, -0.010356, -0.144731, 0.484123, -0.00396032, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0395971, -0.0411398, -0.0370298, -0.0362776, -0.00685759, 0.020265, -0.0110091, -0.0327868, 0.0146893, -0.0268576, 0.0103281, -0.0395705, 0.00900773, 0.0223223, -0.00908869, 0.00713467, 0.0446219, 0.00118045, 0.0237508, -0.047306, -0.00220994, -0.0376958, -0.0114536, 0.0302743, -0.00845634, -0.026528, 0.0124248, -0.0226687, 0.00116316, 0.0360352, 0.0343039, 0.0126165, 0.0410567, -0.0285903, 0.0285594, -0.0447593, 0.012461, 0.0182099, -0.0130769, -0.0113656, -0.0169945, -0.0447975, -0.0419649, 0.0119111, -0.0342214, -0.0352668, -0.0455716, 0.0412009, 0.0306167, -0.00774578, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.345382, 0.154981, -0.247089, 0.0599567, -0.19627, 0.133165, 0.0417153, -0.253226, -0.127963, -0.0561478, 0.308029, -0.0797246, 0.431032, -0.333376, 0.127053, 0.398741, 0.474884, 0.0922377, 0.0213835, -0.0201384, 0.20899, -0.231469, -0.560165, 0.443627, 0.258666, -0.298017, -0.0192448, -0.232619, 0.0736587, 0.0312017, 0.366606, -0.0168158, -0.102617, 0.0800761, -0.217755, 0.00353901, 0.129522, 0.234754, 0.411662, -0.321278, 0.282969, 0.186275, 0.4049, -0.00924694, 0.00278997, 0.0724721, 0.00988148, -0.160681, -0.134469, 0.219797, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00256582, -0.0255078, -0.0188949, -0.00776885, -0.0130308, 0.0208679, 0.00743162, 0.0192896, 0.0191146, -0.036335, -0.00298095, 0.0325135, 0.0396749, -0.0361056, -0.0487983, 0.00144045, 0.0349846, 0.0368883, 0.0225398, -0.0469804, 0.0276495, -0.0021065, -0.0249894, -0.0449258, -0.04764, 0.0192374, -0.0327944, 0.0155446, -0.0423606, -0.0243988, -0.0189038, -0.0331649, -0.0421398, -0.0392002, -0.000695019, -0.0378513, 0.0174035, -0.0119456, -0.0336818, -0.0283671, 0.0233694, -2.21493e-05, -0.0194853, -0.0377087, 0.00739562, 0.0125219, 0.0187896, -0.0472477, 0.0292288, 0.0127243, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.499916, 0.160734, 0.428087, 0.405879, -0.907737, -1.10306, -0.0358093, 0.0807007, -0.025605, 0.334292, 0.311894, -0.0444303, 0.729932, -0.50415, 0.110518, 0.624727, 0.324054, -1.94944, 0.0220236, -0.409966, 1.14291, -0.118992, -0.958104, 0.611716, 0.614554, 0.589913, -0.647367, -0.438453, -0.00422211, 0.00172671, -0.288556, 0.269409, -0.12652, -0.0517679, -1.28026, -0.773247, 0.555567, -1.41996, -0.12707, -0.00821465, -0.193858, 1.1854, -1.01738, 0.027381, -1.94339, -0.147694, -0.0117035, -0.0847268, -0.147462, 0.167302, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.784638, -1.87841, -2.96303, -0.0497611, -2.05039, -0.674472, -0.0438481, -0.450023, 0.0033034, -0.0695502, -1.95031, -1.11857, 0.679992, -1.41035, -0.295721, -1.82652, 0.743397, -0.451159, 0.0484305, -1.98484, 0.616191, -0.191884, -0.553969, -0.533856, -0.248447, 0.837569, 0.293028, -0.964207, -0.607696, 0.000249069, -0.228309, 0.683576, -0.685672, 0.359094, -1.4244, 0.376808, 0.115027, -4.45386, 0.125835, -0.0323629, -0.655834, -0.678972, -2.456, 0.0107741, -1.18667, 0.907631, -0.0292209, 0.0476639, -0.292541, -0.68815, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0497695, -0.0166771, 0.0138294, 0.0425462, -0.0118771, -0.00542745, -0.0221189, -0.0382205, 0.00556357, -0.0188027, -0.00956923, 0.0106746, 0.0202484, 0.0155588, 0.0361142, -0.0420337, -0.00378521, -0.014998, 0.042777, -0.031005, 0.0102004, -0.0100191, -0.0286963, -0.0395773, -0.0164481, 0.0248682, 0.00603367, 0.020341, 0.009567, 0.033867, 0.0181431, 0.00561413, -0.00339377, -0.0206935, 0.0317489, -0.0303186, 0.00380692, -0.0474671, -0.00984764, 0.00894987, 0.0234466, -0.0364419, -0.00152978, 0.0411309, -0.0300479, 0.00899618, 0.00499138, 0.0200481, 0.0398135, -0.0366983, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.183771, -1.08117, -4.85985, -0.542164, -0.112698, -1.88447, -0.0107272, 0.0313103, -0.00982969, -0.737077, -0.247426, -0.619475, 0.191119, -2.15902, 0.013099, -0.594898, -0.13856, -0.381812, -0.0106306, -1.42756, -1.00877, -0.0640664, -0.0938432, -0.182269, -0.235803, 0.0384997, -0.484118, -0.00605093, -0.840856, -0.0464401, -0.464536, 0.404099, -0.262479, -0.960364, -1.12888, 0.120581, -0.692094, -0.787621, 0.194178, 0.00458971, -1.33895, -0.186052, -1.7001, -0.0151619, 0.142497, 0.379811, -0.0156151, -1.3629, -0.322818, 0.175147, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0249733, -0.0288294, -0.020915, -0.0358355, -0.0012489, 0.0250816, -0.0490935, 0.0462303, -0.000329209, 0.00645814, -0.0489423, -0.0102217, -0.0243625, -0.0281872, 0.0106215, -0.0126671, 0.0221657, 0.00904803, -0.0398161, -0.0477378, 0.0312956, 0.0114817, -0.00352169, -0.0213973, -0.0444293, -0.0401198, 0.0220759, 0.0172773, -0.0517863, 0.0440777, 0.0164107, 0.00917274, 0.0225815, -0.0229145, -0.0178026, -0.00551443, -0.0266206, -0.0510606, 0.0378272, -0.0426683, -0.0105731, 0.0190314, 0.0325959, -0.0533584, 0.0142581, 0.0174491, 0.00131505, 0.0410742, 0.00468837, 0.0403554, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.115097, -0.0666945, -0.105955, 0.243748, -1.55073, -0.0880685, -0.0430428, -0.176025, -0.739435, -0.0217922, -0.0289257, -0.0846071, 1.56827, 0.0268447, -0.178166, 0.011915, 0.420185, 0.0852535, 0.00782592, 0.0320835, -0.206274, -0.31257, 0.0393124, 0.0517698, 0.180471, 0.141789, -0.142529, -0.212637, -0.18318, 0.0505303, 0.00863534, 0.0528098, -0.04732, 0.101226, 0.101833, 0.0440882, 0.0391773, -0.0416891, 0.0757191, 0.0727524, 0.00247853, 0.131913, -0.0258641, -0.00900842, -0.141944, 0.316805, -0.36488, -0.0948861, 0.172481, -0.284254, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.481071, -0.469072, -0.0211083, 0.100431, -0.0705937, -0.291295, -0.00532356, 0.725562, -0.141333, 0.335879, 0.0568255, -0.0269906, 0.379893, -0.160033, 0.276927, 0.467204, -0.948004, 0.168342, -0.00525826, -0.152441, -0.0232953, -0.0960236, -0.0514204, 0.299989, 0.0260169, 0.38872, -0.543491, -0.20998, 0.120734, 0.0482477, 0.447578, 0.264847, -0.0322128, -0.0172175, 0.0882974, 0.460813, 0.0374416, 0.0471373, -0.16517, -0.0847862, -0.0541183, 0.22284, -0.0868301, -0.010491, -0.111524, -0.214452, -0.0472552, 0.098814, 0.0807744, 0.00934503, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.466949, 0.82933, -0.989552, 0.365202, -0.249902, 0.521787, -0.042695, 0.024025, -0.0440122, -0.20279, 0.133779, 0.0800613, -0.00810634, -0.585142, -0.0722641, 0.460941, -0.122941, 0.470264, -0.0280492, -0.293156, 0.00190182, -0.390056, -0.590644, -0.774652, 0.0234333, -0.525617, 0.631467, 0.0178692, 0.249135, 0.0136536, -0.0099927, 0.682518, -0.142443, -0.0756731, 0.347577, -0.268642, 0.73026, 0.432415, 0.240105, -0.133782, 0.255591, 0.813593, 0.737079, 0.0348765, 0.459059, -0.25086, -0.0666974, -0.67744, -0.334599, -0.196862, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0890955, -0.0454507, 0.0352861, -0.174875, -0.045908, 0.0034395, -0.000900208, -0.0255045, -0.0446544, 0.0383439, -0.00877472, 0.0197913, 0.0241021, -0.0961144, -0.0102139, 0.000881784, -0.128516, 0.048313, -0.0169405, -0.00904708, 0.105547, -0.00310785, -0.0957252, 0.0238191, -0.0121093, -0.0244003, -0.129634, 0.00779443, 0.0728414, 0.0145734, -0.00964705, -0.0172108, 0.0257127, -0.0288898, -0.0229729, -0.0489433, -0.0613517, -0.000560532, 0.061955, -0.135521, -0.0328659, -0.234433, -0.00749822, 0.0119464, 0.00156975, 0.056811, -0.0239912, 0.0235385, 0.0378846, 0.0556153, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.500218, -0.184096, -1.65308, -0.0453976, 0.0113972, -0.126918, -0.0225243, 0.280702, 0.054405, 0.269677, 0.0567237, 0.15587, -0.307291, -0.123545, 0.174454, 0.442511, -0.0785241, -0.954297, -0.00373985, -0.159069, -0.0412793, 0.106105, -0.447789, 0.467018, -0.138748, -0.0870236, 0.182142, -0.272052, 0.403355, -0.0271932, 0.556365, -0.0482934, -0.290169, 0.161417, 0.107198, 0.378697, 0.604242, -0.393979, 0.0248705, 0.021148, 0.190229, -0.357933, 0.0644342, 0.003677, 0.0655679, -0.0980906, -0.000890183, -0.0294862, 0.210849, 0.203915, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0460753, 0.00932132, -0.0322434, 0.0776412, -0.0796209, -0.00574917, 0.0249052, 0.0829379, -0.0438794, -0.0253922, 0.0141843, -0.0216822, 0.368656, -0.0299308, -0.00835252, 0.0197801, 0.169773, -0.00605478, 0.011401, 0.00936245, -0.0034265, -0.0222335, -0.0150787, 0.00101182, 0.0611898, 0.120826, 0.0769453, -0.0330844, -0.0837426, 0.00400541, -0.031926, 0.0722298, -0.0102684, 0.0442429, -0.122699, 0.0855793, 0.0673942, 0.00373981, -0.0785602, -0.034972, -0.00437743, -0.0849967, 0.0127563, -0.0122219, -0.0324939, 0.0139563, 0.096972, -0.0250881, 0.0398307, -0.123375, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0964084, -0.0668215, -0.00806925, -0.0220197, -0.0170021, 0.00490158, 0.0252718, 0.0836223, -0.0466334, 0.0393397, 0.0404581, -0.0259011, 0.247603, -0.0823407, 0.158019, -0.0348005, -0.0317427, -0.0378637, -0.0269698, 0.00664168, 0.14282, -0.0176799, 0.0213323, 0.195986, 0.0331511, 0.0692503, 0.0202883, -0.0302499, 0.0324805, -0.0365247, 0.126254, 0.0585629, 0.0681474, -0.00597156, 0.127735, 0.0571562, -0.0276927, -0.0063865, 0.190329, 0.0195734, -0.00733183, -0.032053, -0.0186152, 0.0304764, -0.0276722, 0.0068515, -0.191492, 0.0195912, 0.0399625, -0.0123982, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0289253, -0.091794, -0.26003, -0.00612832, -0.571323, -0.100108, 0.0434403, -0.153353, -0.0275612, -0.00384383, -0.0542104, -0.518884, 0.0262914, -0.0434439, -0.150762, -0.0401899, 0.188358, -0.0237053, 0.00422976, 0.0270683, 0.109429, -0.68527, -0.265828, -0.0556364, 0.0546212, -0.0833716, 0.0213857, 0.00413892, -0.0406284, 0.0473371, -0.000446984, -0.055836, -0.108125, -0.0293062, -0.837479, 0.00252402, 0.0176453, -0.0302139, -0.0863336, -0.594895, 0.0534864, -0.854027, -0.066411, 0.00464967, -0.0116034, 0.0959848, -0.0652293, -0.0496857, -0.192221, -0.115569, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0179952, 0.00319916, -0.0725679, 0.00889777, -0.0201286, 0.0197504, -0.0246879, -0.00256164, 0.0198636, -0.0559573, -0.0491752, -0.0042651, -0.0402152, 0.0120273, -0.0176744, -0.0549021, 0.0216886, -0.0333278, 0.00448685, -0.0180474, 0.0115667, 0.00393998, -0.015608, 0.00900587, 0.00794925, 0.0152076, -0.0119711, 0.0102667, -0.0309312, -0.0205701, 0.0105264, 0.00654974, 0.00335088, -0.0549033, -0.0126936, -0.040142, -0.00481873, 0.0238296, -0.000479118, 0.0160283, 0.0117935, -0.0225291, -0.0441924, 0.000410028, 0.0050023, 0.00551546, 0.0341175, -0.0284731, -0.00978127, 0.0367019, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.65049, -0.148406, -1.77195, -1.51365, -0.661554, -1.85652, 0.0101588, 0.896118, -0.0437933, -0.83678, -0.465221, -0.283255, -0.247495, -0.398522, -0.229878, -0.357923, -0.920249, 0.458435, 0.0503911, 0.0573907, 0.403585, -2.37543, -0.16074, -1.32968, -0.882114, -0.112473, -0.112123, 0.190317, -0.121111, -0.021872, 0.0937157, 1.76929, -0.273387, -0.795263, -3.21887, -0.832929, -0.083199, -2.33301, 0.567988, -0.108958, -0.700936, 0.163868, -1.35001, 0.0445263, 0.657345, 0.908566, -0.294503, -0.816335, 0.378434, 0.300719, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.100794, -0.4644, -1.14185, -0.507954, -0.656362, -3.19176, -0.00073336, -0.494679, -0.0184155, -1.80513, -1.00554, -1.0479, 0.589585, -0.0048086, 0.632931, -1.2039, -0.000983871, -1.60986, -0.0296737, -2.27849, -2.05613, -0.475611, -0.908284, -0.292206, -0.472324, 0.208906, 0.0685737, -0.0478944, -1.24007, -0.00228341, -1.31529, 0.591907, -0.130693, -1.36882, -1.40089, 0.192309, -0.666701, -1.41432, 0.453081, -0.0306243, -0.673572, -0.0991321, -2.63085, -0.010307, 0.490368, 0.418943, -0.00646593, -1.73503, -0.550404, -0.410911, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0418979, -0.0355323, -0.0897467, 0.0356616, 0.0169971, -0.00830303, -0.0134592, 0.0648232, -0.0129855, -0.00289825, 0.012702, -0.0103916, 0.155337, 0.0540447, 0.0283304, 0.092353, 0.0533085, -0.0574354, 0.0271539, 0.00412481, -0.0436464, -0.0587894, -0.030058, 0.0446297, 0.0264851, 0.0130178, 0.024919, -0.0616482, -0.0825817, -0.0250723, -0.0248133, -0.0408926, 0.0554576, -0.0147737, -0.0459319, -0.00859445, 0.181539, 0.0430307, -0.0813668, -0.0427935, 0.0466885, 0.220675, -0.0304961, -0.0177331, 0.0243391, -0.0117745, 0.0421738, -0.013032, 0.011854, -0.054173, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.250644, 0.308599, -0.570494, 0.291623, 0.000323041, -0.208682, 0.0286046, 0.465964, -0.040226, -0.198198, 0.0250247, -0.0517554, -0.0933427, 0.0234879, 0.180184, 0.334043, -0.0816985, -0.325323, -0.0276881, -0.190149, -0.544983, -0.074588, -0.0404494, 0.0465972, -0.221806, 0.286895, -0.0759712, -0.38817, 0.102153, 0.0355206, -0.0681565, 0.106774, -0.223107, 0.0367469, 0.247196, -0.33967, -0.0163274, 0.0514366, 0.00856304, -0.0581186, 0.000903725, 0.373247, 0.274544, 0.0176485, -0.07116, 0.114713, -0.0508655, 0.170045, -0.109287, -0.0748633, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0154352, -0.00500748, 0.0014987, -0.0523753, -0.0080986, -0.026628, 0.0419205, 0.0121287, -0.0359021, -0.0366883, 0.00411753, -0.0256505, -0.0167767, -0.0067721, -0.0428221, -0.027817, 0.0256515, 0.00299377, -0.0414931, -0.0598999, -0.0497089, 0.012964, -0.00127207, -0.0536983, -0.037457, -0.00247895, -0.0157728, -0.00347616, -0.0574509, -0.0362124, 0.0273491, -0.03611, 0.00315661, 0.0343919, -0.0079606, 0.0042556, -0.0501648, -0.0155754, 0.0215656, -0.0195473, 0.0100482, 0.00397517, -0.0464251, 0.00892, 0.0294268, 0.0344201, 0.00551367, 0.0157883, -0.0458759, -0.00285833, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.107165, -0.0808617, 0.0841635, -0.324913, -0.0631624, -0.0023761, -0.034548, 0.371629, -0.172582, -0.265388, -0.142514, -0.255988, 0.899861, -0.000866782, 0.160567, 0.0902121, -0.84905, 0.155164, 0.0330201, 0.0190847, 0.391595, -0.51974, -0.236445, 0.0680616, 0.127465, 0.092177, 0.127186, -0.0689797, -0.0340021, 0.0285824, 0.122743, 0.115072, -0.238229, -0.0128203, -0.216938, 0.195779, 0.0737262, -0.0410208, -0.0846532, -0.37179, 0.040505, -0.0893959, 0.047743, -0.0484701, 0.114633, -0.183049, 0.869977, 0.0160554, -0.0293513, -0.186836, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0439422, -0.0415518, -0.0720617, -0.0562811, -0.0388366, -0.0385276, 0.0446515, -0.00208268, 0.0267038, -0.0174525, 0.0232103, -0.0386075, 0.195482, -0.0507402, -0.0132943, 0.0110299, 0.272287, 0.0052642, -0.00379973, -0.0861349, -0.0248374, -0.0651798, -0.0164441, -0.0522241, 0.0444876, 0.0469998, -0.0353002, -0.0403398, 0.0649313, 0.000931634, 0.0430735, -0.0532844, -0.0392579, -0.074901, 0.0343994, 0.0372086, -0.0818835, -0.0429565, -0.121964, -0.0388702, -0.0275668, -0.00100332, -0.107972, -0.0143385, -0.07465, -0.00320212, -0.0157707, -0.0306006, -0.0209018, -0.0178423, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.293337, -0.0247652, 0.344081, -0.177791, -0.108312, -0.12332, 0.0444546, 0.225332, -0.392145, -0.199206, -0.380075, -0.246908, -0.0193351, 0.769989, -0.000776617, -0.714482, -0.165132, 0.13023, 0.0424993, 0.0541992, 1.39732, -0.641362, -0.31713, 0.624718, -0.50839, -0.977552, 0.620117, -0.187626, 0.0558657, -0.0377753, -0.0516386, 0.789862, -0.499114, -0.63719, -0.489909, 0.378095, -0.530308, 0.0807186, -0.331401, -0.0909039, 0.40208, 0.901014, 0.460659, -0.0213694, 0.447828, 0.757744, -0.00367821, 0.448924, 1.05519, -0.116422, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0421493, -0.00132495, -0.0109709, 0.00814075, -0.0212576, 0.00866198, 0.0482235, -0.0399671, 0.00327275, -0.0162639, -0.0193345, -0.00649408, -0.0424431, -0.0372719, -0.0441008, 0.0432631, -0.026709, -0.0326785, -0.0141915, -0.0266235, -0.0473062, 0.0198871, -0.0380099, 0.0223863, -0.0411349, 0.0193006, -0.00978016, -0.0432709, 0.0148288, -0.000653344, -0.00301723, -0.0307018, -0.0490232, -0.0244414, -0.0194843, 0.0311609, -0.0171349, -0.0355644, 0.0312239, 0.04433, -0.0273106, -0.0422705, -0.0223754, -0.0125544, -0.031548, 0.0439935, -0.0257749, -0.00551112, -0.0176906, 0.0151166, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0655998, -0.0764518, -0.104479, -0.108075, -0.0567198, -0.0290544, 0.0381746, -0.052607, -0.00348528, -0.0548997, -0.0573096, -0.135214, 0.123293, 0.0382742, -0.00792806, 0.0191029, -0.439218, 0.108468, 0.0154182, 0.0307025, 0.395329, -0.111271, 0.0546013, 0.0943896, -0.0643284, -0.0913687, 0.192325, -0.355163, -0.125717, -0.0369628, -0.0287313, 0.332035, -0.0469716, -0.0991514, -0.0544438, 0.0531137, 0.03953, -0.0396448, 0.154299, 0.00177944, 0.0783404, 0.617899, -0.0624501, -0.0024026, 0.0413461, 0.0232133, -0.227489, -0.0159285, 0.0664076, 0.11958, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.10495, -0.090246, -0.569272, 0.016037, -0.0588113, -0.226941, 0.0181388, 0.431586, -0.115741, -0.796995, -0.57, 0.290409, -0.334648, -0.523645, 0.715091, -0.172833, -1.67456, 0.59452, -0.0121518, 0.0597256, 1.36096, -0.172023, 0.355208, 0.672742, -0.0116731, -0.946941, 0.453883, -0.554807, 0.675067, 0.0456625, 1.03023, 0.358523, -0.451838, -0.261602, 0.317122, 0.443381, -0.217542, 0.0461787, 0.0948031, -0.0268505, 0.0601038, 0.711325, -0.471803, 0.0200231, 0.501009, -0.146176, -0.0225947, 0.0642524, 0.452287, -0.203199, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.167099, -0.00556013, -0.146684, 0.0554427, 0.0443881, 0.0158187, 0.0425522, 0.122612, -0.199007, 0.159433, -0.015517, 0.0527065, 0.0305776, -0.218676, 0.144329, -0.255696, 0.122485, -0.0510862, 0.0484493, -0.00745783, -0.00355921, -0.0817727, -0.0154862, 0.399112, 0.203075, 0.0291412, -0.260193, 0.111785, 0.106403, 0.0188064, 0.369999, 0.0387554, -0.0799546, 0.104227, 0.0927823, 0.177627, 0.104775, -0.0336509, 0.222644, 0.0419823, -0.059356, 0.0031357, 0.0935168, -0.0374434, -0.0521358, -0.104848, -0.0592751, -0.117159, 0.100164, -0.153815, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0103763, -0.00274461, -0.0688473, 0.00303741, 0.000168719, -0.00073169, -0.011193, 0.064833, -0.00379779, 0.0146032, -0.0075617, -0.00962188, -0.122879, -0.0265014, 0.171692, 0.084645, -0.0610857, 0.0828555, 0.0457059, 0.00194473, -0.0750518, 0.000136392, 0.00824754, -0.00296578, 0.00533916, -0.019662, -0.0945979, -0.00925725, -0.0347094, -0.0221808, 0.0437658, 0.0627142, -0.0117386, 0.00112421, 0.00913483, 0.00433906, 0.0200372, 0.000786353, 0.228331, 0.0110688, 0.00178487, 0.110951, -0.00942931, -0.00598335, -0.0045764, -0.185757, -0.0369834, -0.00695036, -0.0987809, -0.00293494, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0361146, -0.101309, -0.0969389, 0.00904204, -0.040013, -0.0434935, -0.0462394, -0.0074817, -0.036053, 0.0299476, 0.0847582, -0.0713831, 0.0838504, 0.0500593, 0.021883, 0.0161302, 0.0398927, -0.0101414, 0.013632, 0.023919, 0.0311555, -0.0484083, 0.0115057, -0.0932818, 0.0762313, -0.0249736, -0.088429, 0.0191675, 0.0687985, -0.0447193, 0.0630844, -0.0599188, -0.107002, -0.0440448, 0.000289034, 0.151118, 0.135321, 0.0136801, -0.0411173, -0.013067, -0.0919827, 0.230911, 0.043767, 0.0426247, 0.0635911, -0.106845, -0.0507241, 0.0156091, -0.0325254, -0.075372, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0272698, -0.0457742, -0.0125086, 0.0296111, 0.0122359, 0.0151966, -0.000449919, 0.0199563, -0.00708581, -0.000919259, -0.0095546, -0.0528868, -0.0455358, 0.00187722, -0.000843212, -0.00130285, -0.0153426, -0.0445338, -0.0212284, -0.0117554, 0.0488241, -0.0440613, -0.0135952, -0.0116872, 8.1136e-05, 0.00486817, -0.0460284, 0.00342118, 0.0443359, 0.0220547, -0.0361627, -0.0190923, -0.0239868, 0.000373822, -0.0129825, 0.014072, -0.0112911, 0.00845523, -0.0317872, -0.026756, -0.00563772, -0.0338319, -0.034415, 0.0255941, -0.0316341, -0.031833, -0.0232074, 0.0314964, 0.0355296, -0.0498726, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0263797, -0.161478, 5.03043e-05, -0.0465607, -0.00804031, -0.00623748, 0.0498428, -0.0611311, -0.183462, 0.0102979, -0.0229994, -0.020296, -0.438697, -0.0709986, -0.080795, -0.0692864, -0.0203532, -0.646784, -0.00352655, 0.00544538, 0.200705, 0.0167685, -0.181042, -0.0663633, -0.0154775, -0.134528, -0.0343727, 0.00174903, 0.0817375, 0.00714704, -0.0177731, -0.16379, -0.0145082, -0.0149666, -0.022028, -0.0524083, -0.0332372, 0.0047082, 0.130378, -0.328943, 0.0195698, -0.206219, -0.00802408, -0.0333354, -0.0892172, 0.130453, 0.706614, 0.00959676, -0.175602, 0.0607814, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0588762, 0.0755575, -0.198127, 0.114632, -0.00586429, 0.020018, -0.0481042, 0.0305843, 0.00276705, 0.133936, 0.000771287, -0.0174185, -0.5037, -0.0143393, -0.293635, -0.120384, 0.153104, -0.0461015, -0.0368018, 0.00597921, -0.122431, -0.00660913, -0.0027779, 0.0808596, -0.058905, 0.0474645, 0.233947, 0.00132855, 0.0602501, -0.00344908, 0.243748, -0.281807, -0.072097, 0.00943643, -0.00641696, -0.170995, -0.071936, -0.000209287, -0.237896, 0.0322228, 0.0304711, 0.0236334, -0.0268217, -0.0319945, -0.0176553, 0.098892, -0.151616, 0.0269286, 0.239331, -0.0148634, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.0493639, -0.00296501, 0.00912462, 0.0436321, -0.0514624, -0.0231478, 0.0448542, 0.0370497, -0.0243765, -0.0484305, -0.00723891, -0.0133417, 0.0184084, -0.071146, 0.0348236, 0.00508177, -0.0108833, -0.00874391, -0.0479121, -0.0244089, 0.043355, 0.00625541, -0.0266917, -0.0382884, 0.0198381, -0.0165155, 0.00479089, -0.000537532, 0.0366563, -0.0173193, -0.0160638, 0.0149107, 0.00686226, -0.044997, -0.0349824, -0.0446397, -0.0380766, 0.0132565, -0.0240288, 0.00947096, -0.0438448, 0.0370008, -0.0282111, -0.0428258, -0.0202906, 0.0198027, -0.0332871, 0.0287617, -0.00498487, 0.0219216, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.159053, -0.133074, -0.199555, 0.0769106, -0.243245, -0.0397945, -0.049097, -0.270924, -0.149202, 0.159788, -0.394643, -0.280191, 0.928895, -0.26604, 0.168191, 0.121032, 0.531821, 0.127042, -0.037258, 0.114778, -0.465797, 0.0763387, 0.083715, 0.470859, 0.0514763, -0.0239218, -0.0910602, -0.497607, -0.170465, 0.0243618, 0.496524, -0.229876, -0.217299, -0.12452, -0.233304, 0.731735, 0.166924, 0.18755, 0.291871, -0.122604, -0.128947, -0.731159, -0.393786, 0.0278948, 0.347543, -0.788184, -0.0517554, 0.155783, -0.136807, -0.828082, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.000904621, -0.0598842, -0.0113448, 0.0307608, -0.0181298, -0.00353592, 0.00718564, -0.00418686, 0.0204565, 0.0189083, -0.0520218, -0.0462253, 0.00117623, -0.00748074, -0.02431, -0.0530463, 0.0233332, -0.0332102, -0.0170426, -0.00910446, -0.0402972, 0.0128398, -0.0126299, -0.0211993, -0.00402259, -0.0498629, 0.0447528, -0.0316952, -0.00362171, -0.0402138, 0.0190479, 0.00898612, 0.0122611, -0.0127038, 0.000484363, 0.0162858, -0.00571543, -0.00580381, 0.0251498, -0.0187679, 0.0114016, 0.0215027, -0.0431049, 0.0158349, -0.0402533, 0.0272879, 0.0236742, -0.00973606, -0.051688, 0.0327355, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00366144, -0.0313567, -0.0489858, -0.0299499, -0.0224419, 8.09445e-05, -0.0201522, 0.00356312, 0.00431653, -0.03955, 0.0290135, 0.0230955, -0.043824, -0.0110415, 0.0264479, 0.0143308, 0.0274428, -0.0196903, 0.00318636, -0.0287951, 0.0489708, -0.0354544, -0.00259363, -0.0317157, 0.0109088, 0.0439663, -0.0223937, -0.000697243, -0.0394665, 0.0160361, 0.0473965, -0.0280169, -0.0304084, -0.0489907, 0.0419828, 0.0266016, 0.00296726, 0.0163763, -0.0204141, -0.030702, 0.011358, -0.00745776, -0.00934583, 0.0112747, -0.0464265, 0.00714851, 0.0331494, 0.00702989, 0.023809, -0.019372, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.544557, -0.178673, -0.336393, 0.155295, -0.101555, -1.14866, -0.013593, -0.00559374, -0.115252, 0.674489, -0.236558, -1.15101, -1.36423, -0.335943, -0.0607958, -0.176269, -0.156573, 0.422254, -0.0301336, 0.0595606, 0.511084, -1.2879, -1.35456, -0.244518, 0.00501789, 0.389688, -0.00655985, -0.357483, -0.15812, 0.0438169, -0.160326, 0.478194, -0.0291533, 0.281877, 0.442948, 0.325147, 0.745631, -0.521939, 0.0634631, -0.00346855, -1.30362, -0.558047, -0.123226, 0.0171009, -0.62347, -0.258816, -0.0944496, -0.380244, -0.45857, 0.215516, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.00487578, -0.0115735, -0.0905316, -0.00845628, 0.00375198, 0.00101162, -0.0186502, 0.0987216, -0.00444353, -0.012264, -0.022807, -0.0126238, 0.031447, -0.0150962, -0.0298055, 0.130233, -0.0296413, -0.0557469, -0.00968596, -0.00166257, 0.111296, -0.00413859, 0.0179889, 0.010955, -0.00891709, -0.0466842, -0.110679, -0.00496838, -0.0578992, -0.0198711, -0.0760731, 0.115885, -0.0122586, 0.000209525, 0.0114786, 0.0220855, 0.0337778, 0.00335632, -0.0753517, 0.00011027, 0.0141741, 0.207681, -0.00802662, 0.0281626, 0.00182641, -0.123929, -0.0521794, -0.0109807, -0.141137, -0.00196011, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0577, -0.00738, -0.1343, -0.1039, -0.04327, -0.0459, -0.03705, 0.02773, 0.01281, -0.1526, -0.0782, -0.05908, -0.57, 0.08307, 0.03253, -0.01447, -0.0798, 0.01707, -0.007496, 0.016, 0.03854, -0.1772, -0.03934, 0.03296, 0.02982, 0.05405, -0.03653, -0.01552, -0.1162, -0.02582, 0.04532, 0.05566, -0.04868, -0.05792, -0.1567, 0.02048, -0.00642, -0.01938, -0.0614, 0.04974, 0.03818, 0.03564, -0.0556, 0.01007, 0.1166, -0.0555, -0.0836, 0.003054, -0.01904, -0.1206], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.02155, -0.04343, -0.03287, -0.04477, 0.015076, -0.03406, -0.03854, 0.0202, -0.03943, -0.01605, -0.01662, 0.0366, 0.0325, 0.004715, -0.00735, -0.0007625, 0.0001602, 0.00777, 0.02182, -0.0425, 0.0358, -0.01535, -0.03934, -0.0336, -0.002607, -0.007507, -0.01559, -0.0391, -0.02296, 0.04407, -0.0502, -0.05127, 0.0371, -0.05185, -2.84e-05, 0.04254, 0.01865, 0.01628, 0.02588, 0.03952, 0.0246, -0.03503, -0.04712, -0.04068, 0.003925, -0.03525, -0.05045, -0.03262, -0.0517, -0.04517], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.6753, 0.2181, -0.5356, 0.05887, -0.03305, 0.0895, -0.0396, 0.611, -0.2932, 0.292, 0.1772, -0.355, 0.2485, -0.002222, -0.0461, 0.8276, 0.1799, -0.3633, -0.02357, -0.0633, 0.8384, -0.2272, -0.094, 0.02254, -0.1427, 0.2411, -0.9336, -0.1277, 0.1197, -0.03058, -0.2499, 0.6504, -0.3882, -0.09686, 0.561, 0.3093, 0.2568, -0.399, 0.4475, -0.1163, 0.04202, -0.3506, 0.3262, 0.02632, -0.1356, -0.2147, 0.01049, 0.04007, -0.755, 0.1659], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01581, -0.05045, 0.000998, 0.0069, -0.01884, 0.01168, -0.0463, 0.03796, -0.05313, -0.0343, -0.02805, -0.03186, 0.0441, 0.02505, -0.0516, 0.0008, -0.009514, -0.03732, 0.0462, -0.01268, -0.00502, 0.00989, -0.00946, -0.04593, 0.00415, 0.03342, -0.01525, 0.01556, 0.01048, -0.03986, -0.003792, -0.04868, 0.0336, -0.04016, 0.02019, -0.00787, 0.02612, -0.001837, -0.04498, 0.0274, -0.0213, -0.02283, -0.04724, 0.00568, 0.02057, 0.0231, -0.006836, 0.02834, 0.045, -0.002197], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0343, 0.3435, 0.8354, 0.2025, -0.4448, -0.2351, 0.03366, 0.02951, -0.1661, 0.4453, -0.2603, 0.1454, 1.5205, -0.439, 0.1285, -0.02972, 0.822, 0.0899, -0.0463, 0.11145, 0.898, -0.7783, -0.5723, 0.1671, 0.2742, 0.2964, -0.02771, 0.12476, 0.707, 0.003536, 0.2458, 0.169, -0.09766, -0.01605, -0.2302, 0.1434, 0.7544, 0.04416, -0.1907, -0.02144, 0.4473, 0.1648, 0.5273, -0.03925, 0.02335, 0.2333, -0.005737, 0.2688, 0.7827, 0.2532], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0499, -0.1276, 0.1836, 0.11163, -0.1261, -0.0813, 0.03964, 0.0085, -0.03775, -0.08, 0.1926, 0.1995, 0.3445, -0.1676, 0.1455, 0.1981, 0.08734, -0.1106, 0.01843, 0.06665, 0.3025, -0.4014, -0.2869, -0.2263, 0.09766, -0.1382, -0.04077, -0.04434, 0.1902, 0.02753, 0.03894, -0.1329, 0.0444, -0.03108, -0.03577, 0.267, 0.1726, -0.1744, -0.08887, 0.01999, 0.1212, 0.0335, 0.2607, 0.02185, -0.07654, -0.03833, 0.01929, 0.1019, -0.0444, 0.2404], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.536, 0.5166, -0.2454, 0.4753, -0.745, -0.4233, -0.04404, 0.7163, -0.0892, 0.066, -0.03455, 0.1117, 2.213, 0.04068, -0.0989, 0.6763, 0.945, 1.145, -0.00954, 0.4639, 0.5317, -0.4385, 0.05386, 0.1685, 0.05222, -0.9297, -0.877, -0.1186, -0.1348, -0.05414, -0.1688, -0.8574, 0.010605, -0.1165, -0.1719, 0.3489, 0.0889, -0.06683, 0.04614, -0.07184, 0.0711, 0.9497, -0.5713, -0.008286, -0.0987, 1.196, -0.03015, 1.185, 1.535, 0.6587], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1232, 0.007442, -0.0912, -0.9565, -0.003817, -0.003515, -0.01256, -0.1624, -0.01067, 0.0162, -0.02193, -0.01836, 0.7344, -0.02785, -0.04144, -0.11304, -1.088, 0.0709, 0.00994, 0.012215, -0.4382, -0.00223, 0.003086, 0.01241, -0.00678, -0.1233, -0.2012, -0.03107, -0.2527, 0.02834, 0.0408, 0.03662, -0.1317, -0.03906, 0.014145, 0.02975, 0.03488, -0.06964, 0.1776, 0.01334, -0.04843, 0.02364, -0.07104, 0.05148, 0.01355, -0.1719, -0.0144, -0.1647, -0.1118, -0.07654], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1385, 0.02052, -0.122, -0.00966, -0.1027, -0.02548, 0.001439, -0.2827, 0.02402, -0.04352, 0.03091, -0.0704, -0.786, 0.0646, -0.001088, -0.114, 0.01015, 0.05136, 0.0385, -0.01788, -0.8125, -0.1564, -0.573, -0.02518, 0.0366, 0.46, -0.649, -0.11316, -0.2612, 0.013985, -0.1755, -0.0982, -0.2411, 0.01548, -0.2505, -0.01434, 0.1199, -0.03906, 0.0001882, 0.1471, -0.7524, -1.861, -0.1431, -0.01176, -0.06537, -0.26, -0.05457, -0.2274, -0.673, -0.1276], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.774, -3.41, -2.61, -1.206, -0.3174, -1.301, 0.03424, -1.527, 0.04773, -0.8047, -0.4697, -0.5117, -0.1649, -0.327, 0.3633, 0.829, -0.2264, -1.6045, 0.0233, 0.1354, -2.434, -0.943, -0.584, 0.529, -1.159, -0.894, -2.178, -0.02502, -1.35, -0.00838, -2.604, 1.194, -0.483, -1.794, -1.996, -3.045, -0.572, -0.7734, 0.2346, -0.07715, -0.1436, -2.559, -2.25, 0.04962, -1.04, -0.578, -0.01035, -0.1448, 0.4841, -0.00396], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0396, -0.04114, -0.03702, -0.0363, -0.00686, 0.02026, -0.01101, -0.03278, 0.01469, -0.02686, 0.01033, -0.03958, 0.00901, 0.02232, -0.00909, 0.007133, 0.04462, 0.001181, 0.02376, -0.0473, -0.00221, -0.0377, -0.01145, 0.03027, -0.00845, -0.02654, 0.01243, -0.02267, 0.0011635, 0.03604, 0.0343, 0.01262, 0.04105, -0.0286, 0.02856, -0.04477, 0.01246, 0.0182, -0.01308, -0.01137, -0.017, -0.0448, -0.04196, 0.01191, -0.0342, -0.03528, -0.04556, 0.0412, 0.03061, -0.007748], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.3455, 0.155, -0.2471, 0.05997, -0.1963, 0.1332, 0.04172, -0.2532, -0.1279, -0.05615, 0.308, -0.0797, 0.4312, -0.3335, 0.1271, 0.3987, 0.4749, 0.0922, 0.02138, -0.02014, 0.209, -0.2314, -0.56, 0.4436, 0.2585, -0.298, -0.01924, -0.2327, 0.07367, 0.0312, 0.3667, -0.01682, -0.1026, 0.0801, -0.2178, 0.003538, 0.1295, 0.2347, 0.4116, -0.3213, 0.283, 0.1863, 0.4048, -0.00925, 0.00279, 0.07245, 0.00988, -0.1606, -0.1345, 0.2198], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.002565, -0.02551, -0.01889, -0.00777, -0.01303, 0.02087, 0.00743, 0.01929, 0.01912, -0.03635, -0.002981, 0.0325, 0.03967, -0.0361, -0.0488, 0.00144, 0.03497, 0.0369, 0.02254, -0.04697, 0.02765, -0.002106, -0.025, -0.04492, -0.04764, 0.01924, -0.0328, 0.01554, -0.04236, -0.0244, -0.0189, -0.03317, -0.04214, -0.0392, -0.000695, -0.03784, 0.01741, -0.01195, -0.0337, -0.02837, 0.02338, -2.22e-05, -0.01949, -0.03772, 0.007397, 0.01252, 0.01878, -0.04724, 0.02924, 0.012726], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.1608, 0.428, 0.4058, -0.9077, -1.104, -0.0358, 0.0807, -0.0256, 0.3342, 0.312, -0.04443, 0.73, -0.504, 0.11053, 0.6245, 0.324, -1.949, 0.02202, -0.41, 1.143, -0.119, -0.958, 0.612, 0.6147, 0.59, -0.6475, -0.4385, -0.004223, 0.001727, -0.2886, 0.2693, -0.1265, -0.05176, -1.28, -0.7734, 0.5557, -1.42, -0.1271, -0.00822, -0.1938, 1.186, -1.018, 0.02737, -1.943, -0.1477, -0.0117, -0.0847, -0.1475, 0.1674], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.7847, -1.878, -2.963, -0.04977, -2.05, -0.6743, -0.04385, -0.45, 0.003304, -0.0696, -1.95, -1.118, 0.68, -1.41, -0.2957, -1.826, 0.743, -0.4512, 0.04843, -1.984, 0.616, -0.1919, -0.554, -0.5337, -0.2484, 0.8374, 0.293, -0.9644, -0.608, 0.0002491, -0.2283, 0.6836, -0.6855, 0.3591, -1.425, 0.3767, 0.11505, -4.453, 0.1259, -0.03235, -0.656, -0.679, -2.455, 0.01077, -1.187, 0.9077, -0.02922, 0.04767, -0.2925, -0.688], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.04977, -0.01668, 0.01383, 0.04254, -0.01188, -0.00543, -0.02213, -0.0382, 0.00556, -0.0188, -0.00957, 0.01067, 0.02025, 0.01556, 0.0361, -0.04202, -0.003786, -0.015, 0.0428, -0.031, 0.0102, -0.01002, -0.0287, -0.03958, -0.01645, 0.02487, 0.006035, 0.02034, 0.00957, 0.03387, 0.01814, 0.005615, -0.003393, -0.02069, 0.03174, -0.03032, 0.003807, -0.04745, -0.00985, 0.00895, 0.02345, -0.03644, -0.00153, 0.04114, -0.03004, 0.008995, 0.00499, 0.02005, 0.03983, -0.0367], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1837, -1.081, -4.86, -0.542, -0.1127, -1.885, -0.01073, 0.0313, -0.00983, -0.7373, -0.2474, -0.6196, 0.1912, -2.158, 0.0131, -0.5947, -0.1385, -0.3818, -0.01063, -1.428, -1.009, -0.0641, -0.0939, -0.1823, -0.2358, 0.0385, -0.4841, -0.00605, -0.841, -0.04645, -0.4646, 0.404, -0.2625, -0.9604, -1.129, 0.1206, -0.692, -0.7876, 0.1942, 0.00459, -1.339, -0.186, -1.7, -0.01516, 0.1425, 0.38, -0.01562, -1.363, -0.3228, 0.1752], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.02498, -0.02882, -0.02092, -0.03583, -0.001249, 0.02509, -0.0491, 0.04623, -0.0003293, 0.00646, -0.04895, -0.01022, -0.02437, -0.02818, 0.01062, -0.012665, 0.02217, 0.00905, -0.03983, -0.04773, 0.03128, 0.01148, -0.003521, -0.0214, -0.04443, -0.04013, 0.02208, 0.01727, -0.0518, 0.04407, 0.0164, 0.00917, 0.02258, -0.02292, -0.0178, -0.005516, -0.02663, -0.05106, 0.03784, -0.04266, -0.010574, 0.01903, 0.0326, -0.05334, 0.01426, 0.01746, 0.001315, 0.04108, 0.00469, 0.04034], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1151, -0.0667, -0.10596, 0.2438, -1.551, -0.0881, -0.04303, -0.176, -0.7393, -0.02179, -0.02893, -0.0846, 1.568, 0.02684, -0.1782, 0.01192, 0.4202, 0.08527, 0.00783, 0.03207, -0.2063, -0.3125, 0.0393, 0.05176, 0.1804, 0.1418, -0.1426, -0.2126, -0.1832, 0.05054, 0.00864, 0.0528, -0.04733, 0.1012, 0.1018, 0.0441, 0.03918, -0.0417, 0.07574, 0.07275, 0.002478, 0.132, -0.02586, -0.00901, -0.142, 0.317, -0.365, -0.0949, 0.1725, -0.2842], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.481, -0.469, -0.0211, 0.1004, -0.0706, -0.2913, -0.005325, 0.7256, -0.1414, 0.336, 0.05682, -0.027, 0.38, -0.16, 0.2769, 0.4673, -0.948, 0.1683, -0.005257, -0.1525, -0.0233, -0.096, -0.05142, 0.3, 0.02602, 0.3887, -0.5435, -0.21, 0.1207, 0.04825, 0.4475, 0.265, -0.03223, -0.01721, 0.0883, 0.4607, 0.03745, 0.04715, -0.1652, -0.0848, -0.0541, 0.2229, -0.08685, -0.01049, -0.1115, -0.2145, -0.04724, 0.0988, 0.08075, 0.009346], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.467, 0.829, -0.9897, 0.3652, -0.2499, 0.522, -0.0427, 0.02403, -0.044, -0.2028, 0.1338, 0.0801, -0.00811, -0.585, -0.07227, 0.461, -0.1229, 0.4702, -0.02805, -0.2932, 0.001902, -0.3901, -0.591, -0.7744, 0.02344, -0.5254, 0.6313, 0.01787, 0.2491, 0.01366, -0.009995, 0.6826, -0.1425, -0.0757, 0.3477, -0.2686, 0.7305, 0.4324, 0.2401, -0.1338, 0.2556, 0.8135, 0.7373, 0.03488, 0.459, -0.251, -0.0667, -0.6772, -0.3347, -0.1969], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0891, -0.04544, 0.03528, -0.1749, -0.0459, 0.003439, -0.0009003, -0.0255, -0.04465, 0.03833, -0.00877, 0.01979, 0.02411, -0.0961, -0.010216, 0.0008817, -0.1285, 0.0483, -0.01694, -0.00905, 0.1055, -0.003107, -0.0957, 0.02382, -0.01211, -0.0244, -0.1296, 0.007793, 0.0728, 0.01457, -0.00964, -0.01721, 0.02571, -0.02888, -0.02298, -0.04895, -0.06134, -0.0005608, 0.06195, -0.1355, -0.03287, -0.2344, -0.0075, 0.01195, 0.00157, 0.05682, -0.02399, 0.02354, 0.03787, 0.0556], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5, -0.1841, -1.653, -0.0454, 0.0114, -0.127, -0.02252, 0.2808, 0.0544, 0.2698, 0.05673, 0.1559, -0.3074, -0.12354, 0.1744, 0.4426, -0.07855, -0.954, -0.00374, -0.159, -0.0413, 0.1061, -0.4478, 0.467, -0.1388, -0.08704, 0.1821, -0.272, 0.4033, -0.02719, 0.556, -0.04828, -0.2903, 0.1614, 0.1072, 0.3787, 0.604, -0.394, 0.02487, 0.02115, 0.1902, -0.358, 0.06445, 0.003677, 0.06555, -0.0981, -0.0008903, -0.02948, 0.2108, 0.2039], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.04608, 0.00932, -0.03226, 0.07764, -0.07965, -0.00575, 0.0249, 0.08295, -0.04388, -0.02539, 0.01418, -0.02168, 0.3687, -0.02994, -0.008354, 0.01978, 0.1698, -0.006054, 0.0114, 0.00936, -0.003426, -0.02223, -0.015076, 0.001012, 0.0612, 0.12085, 0.07697, -0.03308, -0.08374, 0.004005, -0.03192, 0.0722, -0.01027, 0.04425, -0.1227, 0.0856, 0.0674, 0.00374, -0.07855, -0.03497, -0.00438, -0.085, 0.01276, -0.01222, -0.0325, 0.013954, 0.097, -0.02509, 0.03983, -0.12335], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.09644, -0.06683, -0.00807, -0.02202, -0.017, 0.0049, 0.02527, 0.0836, -0.04663, 0.03934, 0.04047, -0.0259, 0.2476, -0.08234, 0.158, -0.0348, -0.03174, -0.03787, -0.02696, 0.00664, 0.1428, -0.01768, 0.02133, 0.196, 0.03314, 0.0693, 0.0203, -0.03024, 0.03247, -0.03653, 0.1262, 0.05856, 0.0682, -0.00597, 0.1277, 0.05716, -0.0277, -0.006386, 0.1903, 0.01958, -0.00733, -0.03204, -0.01862, 0.03047, -0.02768, 0.00685, -0.1915, 0.01959, 0.03995, -0.0124], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02893, -0.0918, -0.26, -0.00613, -0.5713, -0.1001, 0.04343, -0.1533, -0.02756, -0.003843, -0.0542, -0.519, 0.02629, -0.04346, -0.1508, -0.0402, 0.1884, -0.02371, 0.00423, 0.02707, 0.10944, -0.685, -0.2659, -0.05563, 0.05463, -0.0834, 0.0214, 0.00414, -0.04062, 0.04733, -0.000447, -0.05585, -0.10815, -0.02931, -0.8374, 0.002523, 0.01764, -0.03021, -0.0863, -0.5947, 0.0535, -0.854, -0.0664, 0.00465, -0.011604, 0.096, -0.06525, -0.04968, -0.1923, -0.11554], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.01799, 0.003199, -0.0726, 0.008896, -0.02013, 0.01974, -0.02469, -0.002562, 0.01987, -0.05597, -0.04916, -0.004265, -0.04022, 0.012024, -0.01767, -0.0549, 0.02168, -0.03333, 0.004486, -0.01805, 0.011566, 0.00394, -0.01561, 0.009, 0.00795, 0.015205, -0.01197, 0.01027, -0.03093, -0.02057, 0.01053, 0.00655, 0.003351, -0.0549, -0.012695, -0.04013, -0.004818, 0.02383, -0.0004792, 0.01602, 0.011795, -0.02252, -0.0442, 0.00041, 0.005, 0.005516, 0.03412, -0.02847, -0.00978, 0.0367], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.6504, -0.1484, -1.771, -1.514, -0.6616, -1.856, 0.01016, 0.896, -0.0438, -0.837, -0.4653, -0.2832, -0.2474, -0.3984, -0.2299, -0.358, -0.9204, 0.4585, 0.05038, 0.0574, 0.4036, -2.375, -0.1608, -1.33, -0.8823, -0.1125, -0.1121, 0.1903, -0.1211, -0.02187, 0.0937, 1.77, -0.2734, -0.7954, -3.219, -0.833, -0.0832, -2.334, 0.568, -0.10895, -0.701, 0.1638, -1.35, 0.04453, 0.657, 0.9087, -0.2944, -0.8164, 0.3784, 0.3008], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.10077, -0.4644, -1.142, -0.508, -0.6562, -3.191, -0.0007334, -0.4946, -0.01842, -1.805, -1.006, -1.048, 0.5894, -0.00481, 0.633, -1.204, -0.000984, -1.609, -0.02968, -2.28, -2.057, -0.4756, -0.908, -0.2922, -0.4724, 0.2089, 0.0686, -0.04788, -1.24, -0.002283, -1.315, 0.592, -0.1307, -1.369, -1.401, 0.1923, -0.6665, -1.414, 0.4531, -0.03062, -0.6733, -0.0991, -2.63, -0.01031, 0.4905, 0.419, -0.006466, -1.735, -0.5503, -0.411], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0419, -0.03552, -0.0897, 0.03568, 0.017, -0.0083, -0.01346, 0.0648, -0.012985, -0.0029, 0.0127, -0.01039, 0.1554, 0.05405, 0.02834, 0.09235, 0.0533, -0.05743, 0.02716, 0.004124, -0.04364, -0.05878, -0.03006, 0.04462, 0.02649, 0.013016, 0.02492, -0.06165, -0.0826, -0.02507, -0.02481, -0.0409, 0.05545, -0.01477, -0.04593, -0.00859, 0.1815, 0.04303, -0.08136, -0.0428, 0.0467, 0.2207, -0.0305, -0.01773, 0.02434, -0.01177, 0.04218, -0.01303, 0.011856, -0.05417], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2507, 0.3086, -0.5703, 0.2915, 0.000323, -0.2087, 0.02861, 0.466, -0.04022, -0.1982, 0.02502, -0.05176, -0.0933, 0.02348, 0.1802, 0.334, -0.0817, -0.3254, -0.0277, -0.1902, -0.545, -0.0746, -0.04044, 0.0466, -0.2218, 0.2869, -0.076, -0.3882, 0.1022, 0.03552, -0.0682, 0.10675, -0.2231, 0.03674, 0.2472, -0.3396, -0.01633, 0.05142, 0.00856, -0.0581, 0.0009036, 0.3733, 0.2747, 0.01765, -0.07117, 0.1147, -0.05087, 0.17, -0.1093, -0.0749], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.015434, -0.00501, 0.001499, -0.05237, -0.008095, -0.02663, 0.04193, 0.01213, -0.0359, -0.03668, 0.004116, -0.02565, -0.01677, -0.00677, -0.04282, -0.02782, 0.02565, 0.002995, -0.0415, -0.0599, -0.0497, 0.01296, -0.001272, -0.0537, -0.03745, -0.00248, -0.01578, -0.003477, -0.05746, -0.03622, 0.02734, -0.0361, 0.003157, 0.0344, -0.00796, 0.004257, -0.05017, -0.01557, 0.02156, -0.01955, 0.01005, 0.003975, -0.04642, 0.00892, 0.02943, 0.03442, 0.005512, 0.0158, -0.04587, -0.00286], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1072, -0.0809, 0.08417, -0.325, -0.0632, -0.002377, -0.03455, 0.3716, -0.1726, -0.2654, -0.1425, -0.256, 0.9, -0.000867, 0.1605, 0.0902, -0.849, 0.1552, 0.03302, 0.01909, 0.3916, -0.5195, -0.2365, 0.06805, 0.1274, 0.09216, 0.1272, -0.069, -0.034, 0.02858, 0.12274, 0.11505, -0.2383, -0.01282, -0.2169, 0.1958, 0.0737, -0.04102, -0.08466, -0.3718, 0.0405, -0.0894, 0.04773, -0.04846, 0.1146, -0.1831, 0.87, 0.01605, -0.02936, -0.1869], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.04395, -0.04156, -0.0721, -0.05627, -0.03885, -0.0385, 0.04465, -0.002083, 0.0267, -0.01746, 0.02321, -0.0386, 0.1954, -0.05075, -0.0133, 0.01103, 0.2722, 0.005264, -0.0038, -0.0861, -0.02484, -0.0652, -0.01645, -0.05222, 0.0445, 0.047, -0.0353, -0.04034, 0.06494, 0.0009317, 0.04306, -0.05328, -0.03925, -0.0749, 0.0344, 0.0372, -0.0819, -0.04297, -0.12195, -0.03888, -0.02757, -0.001003, -0.108, -0.014336, -0.07465, -0.003202, -0.01578, -0.0306, -0.0209, -0.01784], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.2935, -0.02477, 0.344, -0.1777, -0.10834, -0.1233, 0.04446, 0.2253, -0.392, -0.1992, -0.3801, -0.247, -0.01933, 0.77, -0.000777, -0.7144, -0.1652, 0.1302, 0.0425, 0.0542, 1.397, -0.6416, -0.3171, 0.6245, -0.5083, -0.9775, 0.62, -0.1876, 0.05588, -0.03778, -0.05164, 0.79, -0.499, -0.637, -0.49, 0.3782, -0.5303, 0.0807, -0.3313, -0.0909, 0.402, 0.901, 0.4607, -0.02136, 0.4478, 0.758, -0.003677, 0.449, 1.056, -0.1164], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.04214, -0.001325, -0.01097, 0.00814, -0.02126, 0.00866, 0.04822, -0.03998, 0.003273, -0.01627, -0.01933, -0.006493, -0.04245, -0.03726, -0.0441, 0.04327, -0.0267, -0.03268, -0.01419, -0.02663, -0.0473, 0.01988, -0.03802, 0.02238, -0.04114, 0.0193, -0.00978, -0.04327, 0.01483, -0.0006533, -0.003017, -0.0307, -0.049, -0.02444, -0.01949, 0.03116, -0.01714, -0.03555, 0.03122, 0.04434, -0.02731, -0.04227, -0.02237, -0.01256, -0.03156, 0.044, -0.02577, -0.005512, -0.01768, 0.015114], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0656, -0.0765, -0.1045, -0.1081, -0.05673, -0.02905, 0.03818, -0.0526, -0.003485, -0.0549, -0.0573, -0.1353, 0.1233, 0.03827, -0.00793, 0.0191, -0.4392, 0.10846, 0.01542, 0.0307, 0.3953, -0.11127, 0.0546, 0.09436, -0.06433, -0.0914, 0.1924, -0.3552, -0.1257, -0.03696, -0.02873, 0.332, -0.04697, -0.0991, -0.05444, 0.0531, 0.03952, -0.03964, 0.1543, 0.00178, 0.07837, 0.6177, -0.06244, -0.002403, 0.04135, 0.02321, -0.2275, -0.01593, 0.0664, 0.11957], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.105, -0.0903, -0.5693, 0.01604, -0.0588, -0.2269, 0.01814, 0.4316, -0.1157, -0.797, -0.57, 0.2905, -0.3347, -0.5234, 0.7153, -0.1729, -1.675, 0.5947, -0.01215, 0.05972, 1.361, -0.172, 0.3552, 0.673, -0.01167, -0.947, 0.4539, -0.5547, 0.6753, 0.04565, 1.03, 0.3586, -0.452, -0.2617, 0.3171, 0.4434, -0.2175, 0.04617, 0.0948, -0.02686, 0.0601, 0.7114, -0.472, 0.02002, 0.501, -0.1461, -0.0226, 0.0643, 0.4524, -0.2032], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.1671, -0.00556, -0.1467, 0.05545, 0.0444, 0.01582, 0.04254, 0.1226, -0.199, 0.1594, -0.01552, 0.0527, 0.03058, -0.2186, 0.1443, -0.2556, 0.1225, -0.0511, 0.04846, -0.007458, -0.00356, -0.0818, -0.01549, 0.3992, 0.2031, 0.02914, -0.2603, 0.11176, 0.1064, 0.0188, 0.37, 0.03876, -0.07996, 0.10425, 0.0928, 0.1776, 0.1048, -0.03366, 0.2227, 0.042, -0.05936, 0.003136, 0.0935, -0.03745, -0.05212, -0.10486, -0.05927, -0.1172, 0.10016, -0.1538], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.010376, -0.002745, -0.06885, 0.003036, 0.0001687, -0.0007315, -0.01119, 0.0648, -0.003798, 0.0146, -0.00756, -0.00962, -0.12286, -0.0265, 0.1718, 0.08466, -0.0611, 0.0829, 0.04572, 0.001945, -0.0751, 0.0001364, 0.00825, -0.002966, 0.00534, -0.01967, -0.0946, -0.009254, -0.0347, -0.02219, 0.04376, 0.06274, -0.01174, 0.001124, 0.00913, 0.004337, 0.02003, 0.0007863, 0.2283, 0.01107, 0.001785, 0.11096, -0.00943, -0.00598, -0.004578, -0.1858, -0.037, -0.00695, -0.09875, -0.002935], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.0361, -0.1013, -0.0969, 0.00904, -0.04, -0.0435, -0.04623, -0.00748, -0.03604, 0.02995, 0.0848, -0.0714, 0.08386, 0.05005, 0.02188, 0.01613, 0.0399, -0.01014, 0.01363, 0.02393, 0.03116, -0.0484, 0.011505, -0.09326, 0.07623, -0.02498, -0.08844, 0.01917, 0.0688, -0.0447, 0.0631, -0.0599, -0.107, -0.04404, 0.000289, 0.1511, 0.1354, 0.01368, -0.0411, -0.01307, -0.092, 0.231, 0.04376, 0.04263, 0.0636, -0.1069, -0.05072, 0.01561, -0.03253, -0.0754], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02727, -0.04578, -0.01251, 0.02962, 0.01224, 0.0152, -0.00045, 0.01996, -0.007088, -0.0009193, -0.00955, -0.0529, -0.04553, 0.001877, -0.000843, -0.001303, -0.01534, -0.04453, -0.02122, -0.01176, 0.04883, -0.04407, -0.013596, -0.01169, 8.11e-05, 0.004868, -0.04602, 0.003422, 0.04434, 0.02205, -0.03616, -0.01909, -0.02399, 0.0003738, -0.012985, 0.01407, -0.01129, 0.00845, -0.0318, -0.02675, -0.00564, -0.03384, -0.03442, 0.02559, -0.03165, -0.03183, -0.02321, 0.0315, 0.03552, -0.04987], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02638, -0.1615, 5.03e-05, -0.04657, -0.00804, -0.006237, 0.04984, -0.06113, -0.1835, 0.0103, -0.023, -0.0203, -0.4387, -0.071, -0.0808, -0.0693, -0.02036, -0.647, -0.003527, 0.005444, 0.2007, 0.01677, -0.181, -0.06635, -0.01548, -0.1345, -0.03436, 0.001749, 0.0817, 0.00715, -0.01778, -0.1638, -0.01451, -0.01497, -0.02203, -0.0524, -0.03323, 0.004707, 0.1304, -0.3289, 0.01958, -0.2062, -0.008026, -0.03333, -0.08923, 0.1305, 0.7065, 0.0096, -0.1757, 0.0608], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.05887, 0.07556, -0.1981, 0.1146, -0.005863, 0.02002, -0.0481, 0.03058, 0.002768, 0.1339, 0.0007715, -0.01743, -0.504, -0.014336, -0.2937, -0.12036, 0.1531, -0.0461, -0.0368, 0.005978, -0.12244, -0.00661, -0.002777, 0.0809, -0.0589, 0.04745, 0.2339, 0.001328, 0.06024, -0.003448, 0.2438, -0.2817, -0.0721, 0.00944, -0.006416, -0.171, -0.07196, -0.0002093, -0.2379, 0.03223, 0.03047, 0.02364, -0.02682, -0.03198, -0.01765, 0.0989, -0.1516, 0.02693, 0.2394, -0.01486], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.04938, -0.002966, 0.009125, 0.04364, -0.05145, -0.02315, 0.04486, 0.03705, -0.02438, -0.04843, -0.00724, -0.01334, 0.0184, -0.07117, 0.03482, 0.00508, -0.01088, -0.00874, -0.0479, -0.02441, 0.04337, 0.006256, -0.02669, -0.0383, 0.01984, -0.01651, 0.00479, -0.0005374, 0.03665, -0.01732, -0.01607, 0.01491, 0.006863, -0.04498, -0.03497, -0.04465, -0.0381, 0.01326, -0.02403, 0.00947, -0.04385, 0.037, -0.02821, -0.04282, -0.0203, 0.0198, -0.0333, 0.02876, -0.004986, 0.02193], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.159, -0.133, -0.1996, 0.0769, -0.2433, -0.0398, -0.0491, -0.271, -0.1492, 0.1598, -0.3945, -0.2803, 0.9287, -0.266, 0.1682, 0.12103, 0.5317, 0.1271, -0.03726, 0.1148, -0.4658, 0.07635, 0.08374, 0.471, 0.05148, -0.02393, -0.09106, -0.4976, -0.1704, 0.02437, 0.4966, -0.2299, -0.2173, -0.1245, -0.2333, 0.732, 0.1669, 0.1875, 0.292, -0.1226, -0.1289, -0.731, -0.3938, 0.0279, 0.3477, -0.788, -0.05176, 0.1558, -0.1368, -0.828], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0009046, -0.05988, -0.011345, 0.03076, -0.01813, -0.003536, 0.007187, -0.00419, 0.02046, 0.0189, -0.05203, -0.04623, 0.001176, -0.00748, -0.0243, -0.05304, 0.02333, -0.0332, -0.01704, -0.0091, -0.04028, 0.01284, -0.01263, -0.0212, -0.00402, -0.04987, 0.04474, -0.0317, -0.003622, -0.04022, 0.01904, 0.00899, 0.01226, -0.0127, 0.0004845, 0.01628, -0.005714, -0.005802, 0.02515, -0.01877, 0.0114, 0.0215, -0.0431, 0.01584, -0.04025, 0.02728, 0.02368, -0.009735, -0.0517, 0.03275], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.003662, -0.03134, -0.04898, -0.02995, -0.02245, 8.094e-05, -0.02016, 0.003563, 0.00432, -0.03955, 0.029, 0.0231, -0.04382, -0.01104, 0.02644, 0.01433, 0.02744, -0.01968, 0.003187, -0.0288, 0.04898, -0.03546, -0.002594, -0.0317, 0.01091, 0.04398, -0.0224, -0.000697, -0.03946, 0.01604, 0.0474, -0.02802, -0.03041, -0.04898, 0.042, 0.0266, 0.002968, 0.01637, -0.02042, -0.0307, 0.01136, -0.007458, -0.009346, 0.01128, -0.04642, 0.00715, 0.03314, 0.00703, 0.0238, -0.01938], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5444, -0.1787, -0.3364, 0.1553, -0.10156, -1.148, -0.013596, -0.005592, -0.11523, 0.6743, -0.2366, -1.151, -1.364, -0.336, -0.0608, -0.1763, -0.1566, 0.4224, -0.03014, 0.05957, 0.511, -1.288, -1.3545, -0.2445, 0.005016, 0.3896, -0.00656, -0.3574, -0.1581, 0.04382, -0.1603, 0.4783, -0.02916, 0.282, 0.4429, 0.3252, 0.7456, -0.522, 0.0635, -0.00347, -1.304, -0.558, -0.1232, 0.0171, -0.6235, -0.2588, -0.0944, -0.3801, -0.4585, 0.2156], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.004875, -0.01157, -0.0905, -0.00845, 0.003752, 0.001012, -0.01865, 0.0987, -0.004444, -0.01226, -0.02281, -0.01263, 0.03143, -0.0151, -0.0298, 0.1302, -0.02965, -0.05576, -0.00969, -0.001662, 0.11127, -0.00414, 0.01799, 0.010956, -0.00892, -0.0467, -0.11066, -0.004967, -0.0579, -0.01987, -0.07605, 0.1159, -0.01226, 0.0002096, 0.01148, 0.02208, 0.03378, 0.003357, -0.0754, 0.00011027, 0.014175, 0.2076, -0.008026, 0.02817, 0.001826, -0.1239, -0.0522, -0.01098, -0.1411, -0.00196]]
[0.0541178, -0.0298637, -0.305045, -0.0456323, -0.912124, -0.383603, -1.24026, 0.0382174, -0.00337155, 0.708297, -0.0424785, -0.463995, -0.0483019, -0.479216, 0.0751053, -0.0531925, 0.158064, -0.0637236, 0.00742597, -0.237056, -0.774697, 0.000659087, -0.357332, 0.0168765, -0.0990453, 0.0966739, -0.0457098, 0.113405, 0.159695, -0.122029, -0.290374, -0.0639892, -0.076012, -0.078967, -0.37727, -0.041141, 0.0158232, -0.760317, -0.251015, 0.0304803, -0.0974038, -0.0386015, 0.050386, 0.0541021, -0.0353529, -0.268839, -0.043339, -0.0260294, -0.191553, 0.0419695, 0.0541, -0.02986, -0.305, -0.04562, -0.912, -0.3835, -1.24, 0.0382, -0.003372, 0.7085, -0.04248, -0.464, -0.0483, -0.4792, 0.07513, -0.0532, 0.1581, -0.0637, 0.007427, -0.237, -0.775, 0.000659, -0.3574, 0.01688, -0.09906, 0.0967, -0.04572, 0.1134, 0.1597, -0.122, -0.2903, -0.06396, -0.076, -0.079, -0.3772, -0.04114, 0.01582, -0.7603, -0.251, 0.03049, -0.0974, -0.0386, 0.05038, 0.0541, -0.03534, -0.2688, -0.04333, -0.02603, -0.1915, 0.04196]
Affine
[[0.00139471, 0.0300955, -0.00427407, 0.0151367, 5.33851e-05, -0.00246815, -0.0167444, 0.00159286, -0.00247986, -0.000711469, 0.00334799, -0.00435284, 0.0150695, -0.00153678, 0.000135625, -0.00579723, 0.00890944, 0.00248316, -0.000748009, -0.000538091, 0.00397021, -0.000921746, 0.00104018, -0.0010373, 0.0280712, -4.8306e-05, 0.0296373, -0.000841519, -0.000918632, 0.0698244, 0.0233357, 0.00945406, -0.00185346, -0.0234098, -8.34035e-05, 0.0231631, -0.00455464, -0.0053346, 0.00127826, 0.0232647, 0.0563603, 0.00809268, -0.000676467, 0.00181975, -0.0408707, 0.000196251, 0.00803369, 0.00832587, -0.000812507, -0.0135562, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0111977, -0.0185952, 0.0113018, 0.0389504, 0.00401565, 0.0248977, 0.0247256, 0.0049847, -0.00418245, 0.00359301, 0.033586, -0.00179381, 0.00210657, -0.00346676, 0.000644788, 0.0259948, -0.127958, 0.00158038, -0.000905593, -0.0105646, -0.013127, -0.00716901, 0.0148475, 0.000934884, -0.00733226, 0.020687, -0.0244011, 0.0155194, -0.0326585, -0.0943834, -0.00071333, -0.0443216, -0.00390154, -0.0347612, -0.00469262, 0.0127309, 0.0337932, -0.00756285, -0.0139655, 0.0321259, -0.00455, -0.0210954, 0.00691191, 0.00739539, 0.00691715, -0.000619637, -0.00700277, 0.0186358, -0.00190904, 0.0150053, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00421844, -0.0175526, 0.00943921, 0.0205571, -0.0177505, 0.00997968, -0.0115782, -0.00515204, 0.000736024, 0.00131812, 0.0162891, -0.00453362, 0.0384894, -0.0497211, 0.00831943, -0.00361831, -0.0300271, 0.0271548, 0.0229348, 0.0145529, 0.000123241, -0.00670255, -0.00143011, 0.0119439, -0.0124835, 0.00527092, 0.0466256, 0.000407467, 0.00207362, -0.0809296, 0.0158282, -0.00737588, -0.00666507, 0.0734407, 0.00389809, 0.0448636, -0.0125069, 0.00301975, 0.0142323, 0.0341608, -0.0531858, 0.0163149, 0.00491265, 0.00753925, 0.0292409, -0.00819367, 0.0415292, 0.0377604, 0.0120654, 0.00649059, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0288729, -0.0120817, -0.00021001, -0.0396329, -0.00245654, -0.00296094, -0.00509594, 0.00828647, -0.0142504, 0.00464392, 0.0406651, -0.00837989, 0.0146242, -0.00616141, -2.76876e-05, 0.0434991, -0.094809, 0.0208011, 0.000145809, -0.0116244, -0.0098409, 0.00171058, 0.0141238, 0.00908638, 0.0128428, 0.0106542, 0.00431196, 0.0140226, 0.00602919, -0.0765384, -0.00314087, 0.037174, -0.0174446, -0.0432378, -0.00273934, 0.0205917, 0.0271831, -0.00720934, -0.00971976, 0.0326659, -0.0568959, -0.031505, 0.0241177, 0.0054241, -0.0244067, -0.00545922, -0.00321956, -0.0215232, -0.00180215, 0.0215776, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [-0.00340322, 0.0129873, 0.00135019, 0.0179718, -0.0174161, -0.0179142, -0.0131011, -0.0100293, 0.00763529, 0.000472949, 0.0296746, -0.0115407, -0.0295349, -0.00706074, 0.00825876, 0.0360757, -0.0227142, -0.00277147, 0.0178404, 0.00446741, 0.00284662, 0.0117424, 0.00622661, 0.0330038, 0.0074415, 0.00387632, -0.0452899, 0.00026668, 0.000319767, -0.052548, 0.00821755, 0.0433132, -0.0114873, 0.0390642, 0.00361039, -0.0362138, -0.0102885, -0.0032163, -9.94982e-05, 0.0361608, -0.109366, -0.00284089, 0.0153763, 0.00903006, -0.0276101, -0.00916533, -0.0192481, -0.0309568, 0.0114122, 0.00440164, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.001394, 0.03009, -0.004272, 0.01514, 5.34e-05, -0.002468, -0.01674, 0.001593, -0.00248, -0.0007114, 0.003347, -0.004353, 0.01507, -0.001536, 0.0001357, -0.0058, 0.00891, 0.002483, -0.000748, -0.000538, 0.00397, -0.0009217, 0.00104, -0.001038, 0.02808, -4.83e-05, 0.02963, -0.0008416, -0.000919, 0.0698, 0.02333, 0.00945, -0.001853, -0.0234, -8.34e-05, 0.02316, -0.004555, -0.005333, 0.001278, 0.02327, 0.05637, 0.008095, -0.0006766, 0.00182, -0.04086, 0.0001962, 0.00803, 0.00832, -0.0008125, -0.01356], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0112, -0.0186, 0.0113, 0.03894, 0.004017, 0.0249, 0.02472, 0.004986, -0.00418, 0.003593, 0.0336, -0.001794, 0.002106, -0.003468, 0.0006447, 0.026, -0.1279, 0.00158, -0.0009055, -0.01057, -0.01313, -0.007168, 0.01485, 0.000935, -0.00733, 0.02069, -0.0244, 0.01552, -0.03265, -0.09436, -0.0007133, -0.0443, -0.003902, -0.03476, -0.004692, 0.01273, 0.03378, -0.007565, -0.01396, 0.03214, -0.00455, -0.0211, 0.006912, 0.007397, 0.006916, -0.0006194, -0.007004, 0.01863, -0.001909, 0.01501], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.00422, -0.01755, 0.00944, 0.02055, -0.01775, 0.00998, -0.01158, -0.005154, 0.000736, 0.001318, 0.0163, -0.00453, 0.03848, -0.0497, 0.008316, -0.003618, -0.03003, 0.02716, 0.02293, 0.01455, 0.0001233, -0.006702, -0.0014305, 0.01195, -0.01248, 0.005272, 0.04663, 0.0004075, 0.002073, -0.08093, 0.01582, -0.007378, -0.006664, 0.0734, 0.003899, 0.04486, -0.012505, 0.00302, 0.01423, 0.03415, -0.0532, 0.01631, 0.004913, 0.007538, 0.02924, -0.008194, 0.04153, 0.03775, 0.01206, 0.00649], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.02887, -0.012085, -0.00021, -0.03964, -0.002457, -0.00296, -0.005096, 0.008286, -0.01425, 0.004642, 0.04068, -0.00838, 0.014626, -0.00616, -2.77e-05, 0.0435, -0.0948, 0.0208, 0.0001458, -0.01163, -0.00984, 0.001711, 0.01412, 0.00909, 0.01284, 0.01065, 0.00431, 0.01402, 0.00603, -0.07654, -0.003141, 0.03717, -0.01744, -0.04324, -0.002739, 0.02058, 0.02718, -0.00721, -0.00972, 0.03265, -0.0569, -0.0315, 0.02412, 0.005424, -0.02441, -0.00546, -0.00322, -0.02153, -0.001802, 0.02158], [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.003403, 0.012985, 0.00135, 0.01797, -0.01741, -0.01791, -0.0131, -0.01003, 0.007637, 0.000473, 0.02968, -0.01154, -0.02954, -0.00706, 0.008255, 0.03607, -0.02272, -0.002771, 0.01784, 0.004467, 0.002846, 0.01174, 0.006226, 0.033, 0.007442, 0.003876, -0.0453, 0.0002668, 0.0003197, -0.05255, 0.00822, 0.0433, -0.01149, 0.03906, 0.00361, -0.03622, -0.01029, -0.003216, -9.95e-05, 0.03616, -0.1094, -0.00284, 0.01537, 0.00903, -0.0276, -0.00916, -0.01924, -0.03096, 0.01141, 0.004402]]
[-0.0201197, -0.0194494, -0.0194817, -0.0195345, -0.019525, -0.02013, -0.01945, -0.01949, -0.01953, -0.01953]
| 17,719.363636
| 75,840
| 0.560996
| 104,253
| 389,826
| 2.097695
| 0.187246
| 0.466219
| 0.692388
| 0.913965
| 0.23626
| 0.236032
| 0.236032
| 0.236032
| 0.236032
| 0.236032
| 0
| 0.647406
| 0.133693
| 389,826
| 21
| 75,841
| 18,563.142857
| 0.000166
| 0
| 0
| 0.285714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f5c5dd3fe29a357e1374dce8b83e9b857310946e
| 3,453
|
py
|
Python
|
unitary_tests/test_implemented_schedulers.py
|
llpilla/study-load-balancing
|
873b4e633c2e290a099887f2cb8d54ea0b94161f
|
[
"CC0-1.0"
] | null | null | null |
unitary_tests/test_implemented_schedulers.py
|
llpilla/study-load-balancing
|
873b4e633c2e290a099887f2cb8d54ea0b94161f
|
[
"CC0-1.0"
] | null | null | null |
unitary_tests/test_implemented_schedulers.py
|
llpilla/study-load-balancing
|
873b4e633c2e290a099887f2cb8d54ea0b94161f
|
[
"CC0-1.0"
] | 1
|
2022-01-22T17:48:07.000Z
|
2022-01-22T17:48:07.000Z
|
#!/usr/bin/env python3
import unittest
import sys
# Add the parent directory to the path so we can import
# code from our simulator
sys.path.append('../')
from simulator.schedulers import round_robin, compact # noqa
from simulator.schedulers import uniformly_random, list_scheduler # noqa
class RRTest(unittest.TestCase):
def test_five_tasks(self):
num_tasks = 5
num_resources = 2
mapping = round_robin(num_tasks, num_resources)
self.assertEqual(mapping[0], 0)
self.assertEqual(mapping[1], 1)
self.assertEqual(mapping[2], 0)
self.assertEqual(mapping[3], 1)
self.assertEqual(mapping[4], 0)
def test_more_resources(self):
num_tasks = 5
num_resources = 10
mapping = round_robin(num_tasks, num_resources)
self.assertEqual(mapping[0], 0)
self.assertEqual(mapping[1], 1)
self.assertEqual(mapping[2], 2)
self.assertEqual(mapping[3], 3)
self.assertEqual(mapping[4], 4)
class CompactTest(unittest.TestCase):
def test_five_tasks(self):
num_tasks = 5
num_resources = 2
mapping = compact(num_tasks, num_resources)
self.assertEqual(mapping[0], 0)
self.assertEqual(mapping[1], 0)
self.assertEqual(mapping[2], 0)
self.assertEqual(mapping[3], 1)
self.assertEqual(mapping[4], 1)
def test_more_resources(self):
num_tasks = 5
num_resources = 10
mapping = compact(num_tasks, num_resources)
self.assertEqual(mapping[0], 0)
self.assertEqual(mapping[1], 1)
self.assertEqual(mapping[2], 2)
self.assertEqual(mapping[3], 3)
self.assertEqual(mapping[4], 4)
class RandomTest(unittest.TestCase):
def test_seed_one(self):
num_tasks = 5
num_resources = 3
mapping = uniformly_random(num_tasks, num_resources, 1)
self.assertEqual(mapping[0], 0)
self.assertEqual(mapping[1], 2)
self.assertEqual(mapping[2], 0)
self.assertEqual(mapping[3], 1)
self.assertEqual(mapping[4], 0)
def test_seed_two(self):
num_tasks = 5
num_resources = 3
mapping = uniformly_random(num_tasks, num_resources, 2)
self.assertEqual(mapping[0], 0)
self.assertEqual(mapping[1], 0)
self.assertEqual(mapping[2], 0)
self.assertEqual(mapping[3], 1)
self.assertEqual(mapping[4], 0)
class LSTest(unittest.TestCase):
def test_five_tasks(self):
num_resources = 3
task_loads = [5, 3, 2, 7, 4]
mapping = list_scheduler(task_loads, num_resources)
self.assertEqual(mapping[0], 0)
self.assertEqual(mapping[1], 1)
self.assertEqual(mapping[2], 2)
self.assertEqual(mapping[3], 2)
self.assertEqual(mapping[4], 1)
def test_ten_tasks(self):
num_resources = 5
task_loads = [5, 3, 2, 7, 4, 1, 9, 3, 2, 7]
mapping = list_scheduler(task_loads, num_resources)
self.assertEqual(mapping[0], 0)
self.assertEqual(mapping[1], 1)
self.assertEqual(mapping[2], 2)
self.assertEqual(mapping[3], 3)
self.assertEqual(mapping[4], 4)
self.assertEqual(mapping[5], 2)
self.assertEqual(mapping[6], 1)
self.assertEqual(mapping[7], 2)
self.assertEqual(mapping[8], 4)
self.assertEqual(mapping[9], 0)
if __name__ == '__main__':
unittest.main()
| 31.972222
| 73
| 0.630177
| 446
| 3,453
| 4.733184
| 0.147982
| 0.319754
| 0.468972
| 0.152534
| 0.766935
| 0.766935
| 0.766935
| 0.738513
| 0.720038
| 0.697774
| 0
| 0.048006
| 0.251955
| 3,453
| 107
| 74
| 32.271028
| 0.769261
| 0.031567
| 0
| 0.704545
| 0
| 0
| 0.003294
| 0
| 0
| 0
| 0
| 0
| 0.511364
| 1
| 0.090909
| false
| 0
| 0.045455
| 0
| 0.181818
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
f5d46eb73208a993d09c50513d84ae411e3e923e
| 200
|
py
|
Python
|
applications/popart/bert/bert_data/__init__.py
|
payoto/graphcore_examples
|
46d2b7687b829778369fc6328170a7b14761e5c6
|
[
"MIT"
] | 260
|
2019-11-18T01:50:00.000Z
|
2022-03-28T23:08:53.000Z
|
applications/popart/bert/bert_data/__init__.py
|
payoto/graphcore_examples
|
46d2b7687b829778369fc6328170a7b14761e5c6
|
[
"MIT"
] | 27
|
2020-01-28T23:07:50.000Z
|
2022-02-14T15:37:06.000Z
|
applications/popart/bert/bert_data/__init__.py
|
payoto/graphcore_examples
|
46d2b7687b829778369fc6328170a7b14761e5c6
|
[
"MIT"
] | 56
|
2019-11-18T02:13:12.000Z
|
2022-02-28T14:36:09.000Z
|
# Copyright (c) 2019 Graphcore Ltd. All rights reserved.
from .pretraining_dataset import get_bert_dataset as get_pretraining_dataset
from .squad_dataset import get_bert_dataset as get_squad_dataset
| 40
| 76
| 0.855
| 30
| 200
| 5.366667
| 0.533333
| 0.223602
| 0.198758
| 0.248447
| 0.397516
| 0.397516
| 0.397516
| 0
| 0
| 0
| 0
| 0.022472
| 0.11
| 200
| 4
| 77
| 50
| 0.882022
| 0.27
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
eb35ffdf6dca49418e2977de911d007264720c84
| 38
|
py
|
Python
|
core/myapp/settings/__init__.py
|
myworkshopproject/myworkshop
|
44946bda1e454f784d6b86b0748a5fc0c80f257f
|
[
"MIT"
] | null | null | null |
core/myapp/settings/__init__.py
|
myworkshopproject/myworkshop
|
44946bda1e454f784d6b86b0748a5fc0c80f257f
|
[
"MIT"
] | 7
|
2020-03-21T09:03:26.000Z
|
2021-03-22T15:21:50.000Z
|
core/myapp/settings/__init__.py
|
myworkshopproject/myworkshop
|
44946bda1e454f784d6b86b0748a5fc0c80f257f
|
[
"MIT"
] | null | null | null |
from .base import * # noqa F401 F403
| 19
| 37
| 0.684211
| 6
| 38
| 4.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.206897
| 0.236842
| 38
| 1
| 38
| 38
| 0.689655
| 0.368421
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
deac47a9cb02cb2ca307a43d852262ac5368a6df
| 465
|
py
|
Python
|
gtfs_util/static/models/__init__.py
|
jwoos/gtfs_util
|
995ce529d09ba8dc693d3cf4b6cabf395a173997
|
[
"MIT"
] | 1
|
2018-09-18T02:14:50.000Z
|
2018-09-18T02:14:50.000Z
|
gtfs_util/static/models/__init__.py
|
jwoos/gtfs_util
|
995ce529d09ba8dc693d3cf4b6cabf395a173997
|
[
"MIT"
] | 17
|
2018-10-17T03:00:19.000Z
|
2018-11-12T03:46:40.000Z
|
gtfs_util/static/models/__init__.py
|
jwoos/python_gtfs-util
|
995ce529d09ba8dc693d3cf4b6cabf395a173997
|
[
"MIT"
] | null | null | null |
__all__ = [
'base',
'agency',
'fare_attribute',
'fare_rule',
'feed_info',
'frequency',
'route',
'service',
'service_update',
'point',
'stop',
'stop_time',
'transfer',
'trip',
]
from gtfs_util.static.models import (
base,
agency,
fare_attribute,
fare_rule,
feed_info,
frequency,
route,
service,
service_update,
point,
stop,
stop_time,
transfer,
trip,
)
| 13.676471
| 37
| 0.541935
| 45
| 465
| 5.266667
| 0.511111
| 0.084388
| 0.118143
| 0.194093
| 0.860759
| 0.860759
| 0.860759
| 0.860759
| 0.860759
| 0.860759
| 0
| 0
| 0.322581
| 465
| 33
| 38
| 14.090909
| 0.752381
| 0
| 0
| 0
| 0
| 0
| 0.230108
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.03125
| 0
| 0.03125
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
def04f9dab501ae464aeeeaac30f1037e715829f
| 1,792
|
py
|
Python
|
Settings/independent_experiments/compare_expanded.py
|
previtus/MGR-Project-Code
|
1126215059eb3f731dcf78ec24d9a480e73abce6
|
[
"MIT"
] | null | null | null |
Settings/independent_experiments/compare_expanded.py
|
previtus/MGR-Project-Code
|
1126215059eb3f731dcf78ec24d9a480e73abce6
|
[
"MIT"
] | null | null | null |
Settings/independent_experiments/compare_expanded.py
|
previtus/MGR-Project-Code
|
1126215059eb3f731dcf78ec24d9a480e73abce6
|
[
"MIT"
] | null | null | null |
def Setup(Settings,DefaultModel):
# compare_expanded.py
Settings["experiment_name"] = "CompareExpandedVsRegular"
Settings["graph_histories"] = ['together', [0,1], [1,2], [0,2]] #['all','together',[],[1,0],[0,0,0],[]]
n=0
# 5556x_reslen30_299px 5556x_reslen20_299px
Settings["models"][n]["dataset_name"] = "1200x_markable_299x299"
Settings["models"][n]["dump_file_override"] = 'SegmentsData_marked_R100_4Tables.dump'
Settings["models"][n]["pixels"] = 299
Settings["models"][n]["model_type"] = 'img_osm_mix'
Settings["models"][n]["unique_id"] = 'original'
Settings["models"][n]["top_repeat_FC_block"] = 2
Settings["models"][n]["epochs"] = 1000
Settings["models"].append(DefaultModel.copy())
n=1
Settings["models"][n]["dataset_pointer"] = -1 # 0 - reuse the first dataset
Settings["models"][n]["dataset_name"] = "1200x_markable_299x299_1x_expanded"
Settings["models"][n]["dump_file_override"] = 'SegmentsData_marked_R100_4Tables_expanded.dump'
Settings["models"][n]["pixels"] = 299
Settings["models"][n]["model_type"] = 'img_osm_mix'
Settings["models"][n]["unique_id"] = 'expanded'
Settings["models"][n]["top_repeat_FC_block"] = 2
Settings["models"][n]["epochs"] = 1000
Settings["models"].append(DefaultModel.copy())
n=2
Settings["models"][n]["dataset_name"] = "1200x_markable_299x299_1x_agressive_expanded"
Settings["models"][n]["dump_file_override"] = 'SegmentsData_marked_R100_4Tables_expanded.dump'
Settings["models"][n]["pixels"] = 299
Settings["models"][n]["model_type"] = 'img_osm_mix'
Settings["models"][n]["unique_id"] = 'agressively_expanded'
Settings["models"][n]["top_repeat_FC_block"] = 2
Settings["models"][n]["epochs"] = 1000
return Settings
| 40.727273
| 107
| 0.671875
| 224
| 1,792
| 5.102679
| 0.267857
| 0.293963
| 0.288714
| 0.07699
| 0.75853
| 0.75853
| 0.75853
| 0.75853
| 0.718285
| 0.634296
| 0
| 0.065511
| 0.131138
| 1,792
| 43
| 108
| 41.674419
| 0.668593
| 0.070871
| 0
| 0.516129
| 0
| 0
| 0.457229
| 0.15241
| 0
| 0
| 0
| 0
| 0
| 1
| 0.032258
| false
| 0
| 0
| 0
| 0.064516
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
def688e1bc01c38cb3b2f6f6a7d55b1ec172165d
| 68,606
|
py
|
Python
|
benchmarks/SimResults/_bigLittle_hrrs_splash_tugberk_ml/cmp_barnes/power.py
|
TugberkArkose/MLScheduler
|
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
|
[
"Unlicense"
] | null | null | null |
benchmarks/SimResults/_bigLittle_hrrs_splash_tugberk_ml/cmp_barnes/power.py
|
TugberkArkose/MLScheduler
|
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
|
[
"Unlicense"
] | null | null | null |
benchmarks/SimResults/_bigLittle_hrrs_splash_tugberk_ml/cmp_barnes/power.py
|
TugberkArkose/MLScheduler
|
e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061
|
[
"Unlicense"
] | null | null | null |
power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate Leakage': 0.00662954,
'Peak Dynamic': 0.0,
'Runtime Dynamic': 0.0,
'Subthreshold Leakage': 0.0691322,
'Subthreshold Leakage with power gating': 0.0259246},
'Core': [{'Area': 32.6082,
'Execution Unit/Area': 8.2042,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0661699,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.254661,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.359599,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.122718,
'Execution Unit/Instruction Scheduler/Area': 2.17927,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.328073,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.00115349,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.20978,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.281194,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.017004,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00962066,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00730101,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 1.00996,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00529112,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 2.07911,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.486927,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0800117,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0455351,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 4.84781,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.841232,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.000856399,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.55892,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.279266,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.0178624,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00897339,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 1.04739,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.114878,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.0641291,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.222818,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 5.94896,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.067936,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0101935,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0983931,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0753873,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.166329,
'Execution Unit/Register Files/Runtime Dynamic': 0.0855808,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0442632,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00607074,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.255886,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.644656,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.0920413,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0345155,
'Execution Unit/Runtime Dynamic': 2.43766,
'Execution Unit/Subthreshold Leakage': 1.83518,
'Execution Unit/Subthreshold Leakage with power gating': 0.709678,
'Gate Leakage': 0.372997,
'Instruction Fetch Unit/Area': 5.86007,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00145719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00145719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.0012738,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000495617,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00108294,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00527112,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0138075,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0590479,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0724717,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.60982,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.218274,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.246147,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 7.05549,
'Instruction Fetch Unit/Runtime Dynamic': 0.555971,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932587,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.408542,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0425058,
'L2/Runtime Dynamic': 0.00951919,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80969,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 4.32937,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.48833,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0351387,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.100042,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.100042,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 4.80372,
'Load Store Unit/Runtime Dynamic': 2.08175,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.246686,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.493372,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591622,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283406,
'Memory Management Unit/Area': 0.434579,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0875496,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0881871,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00813591,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.286622,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0357856,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.596477,
'Memory Management Unit/Runtime Dynamic': 0.123973,
'Memory Management Unit/Subthreshold Leakage': 0.0769113,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0399462,
'Peak Dynamic': 23.0088,
'Renaming Unit/Area': 0.369768,
'Renaming Unit/FP Front End RAT/Area': 0.168486,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00489731,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 3.33511,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.237013,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0437281,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.024925,
'Renaming Unit/Free List/Area': 0.0414755,
'Renaming Unit/Free List/Gate Leakage': 4.15911e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0401324,
'Renaming Unit/Free List/Runtime Dynamic': 0.0172308,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000670426,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000377987,
'Renaming Unit/Gate Leakage': 0.00863632,
'Renaming Unit/Int Front End RAT/Area': 0.114751,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.00038343,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.86945,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.142478,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00611897,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00348781,
'Renaming Unit/Peak Dynamic': 4.56169,
'Renaming Unit/Runtime Dynamic': 0.396723,
'Renaming Unit/Subthreshold Leakage': 0.070483,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0362779,
'Runtime Dynamic': 5.6056,
'Subthreshold Leakage': 6.21877,
'Subthreshold Leakage with power gating': 2.58311},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0627727,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.251993,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.339845,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.225512,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.363742,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.183605,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.772859,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.205817,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.82397,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0642039,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00945898,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0918666,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.069955,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.156071,
'Execution Unit/Register Files/Runtime Dynamic': 0.079414,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.209234,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.528668,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.03831,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00132324,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00132324,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00115975,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000452905,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00100491,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00481113,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0124293,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0672495,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.27765,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.200901,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.22841,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 6.70377,
'Instruction Fetch Unit/Runtime Dynamic': 0.513801,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0382308,
'L2/Runtime Dynamic': 0.00805228,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 4.1312,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.39117,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0936303,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0936302,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 4.57334,
'Load Store Unit/Runtime Dynamic': 1.94655,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.230876,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.461752,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0819388,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0825121,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.265968,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0329369,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.562834,
'Memory Management Unit/Runtime Dynamic': 0.115449,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 20.2916,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.168891,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0122299,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.112179,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.2933,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 4.91547,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0651723,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.253878,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.352313,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.232136,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.374427,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.188998,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.795561,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.211481,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.85731,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0665594,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.00973682,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0947941,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.0720098,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.161354,
'Execution Unit/Register Files/Runtime Dynamic': 0.0817466,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.216001,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.545725,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.08229,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00133994,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00133994,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00117324,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000457547,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00103443,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00488756,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.0126274,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0692248,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.4033,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.206212,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.235119,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 6.83551,
'Instruction Fetch Unit/Runtime Dynamic': 0.528071,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0400986,
'L2/Runtime Dynamic': 0.00842022,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 4.22661,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.43648,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.096717,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0967171,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 4.68332,
'Load Store Unit/Runtime Dynamic': 2.01017,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.238488,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.476976,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.08464,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0852419,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.273781,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0338066,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.575286,
'Memory Management Unit/Runtime Dynamic': 0.119048,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 20.581,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.175088,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0126041,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.115471,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.303163,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 5.05116,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328},
{'Area': 32.0201,
'Execution Unit/Area': 7.68434,
'Execution Unit/Complex ALUs/Area': 0.235435,
'Execution Unit/Complex ALUs/Gate Leakage': 0.0132646,
'Execution Unit/Complex ALUs/Peak Dynamic': 0.0633953,
'Execution Unit/Complex ALUs/Runtime Dynamic': 0.252482,
'Execution Unit/Complex ALUs/Subthreshold Leakage': 0.20111,
'Execution Unit/Complex ALUs/Subthreshold Leakage with power gating': 0.0754163,
'Execution Unit/Floating Point Units/Area': 4.6585,
'Execution Unit/Floating Point Units/Gate Leakage': 0.0656156,
'Execution Unit/Floating Point Units/Peak Dynamic': 0.342964,
'Execution Unit/Floating Point Units/Runtime Dynamic': 0.304033,
'Execution Unit/Floating Point Units/Subthreshold Leakage': 0.994829,
'Execution Unit/Floating Point Units/Subthreshold Leakage with power gating': 0.373061,
'Execution Unit/Gate Leakage': 0.120359,
'Execution Unit/Instruction Scheduler/Area': 1.66526,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Area': 0.275653,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Gate Leakage': 0.000977433,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Peak Dynamic': 1.04181,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Runtime Dynamic': 0.227179,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage': 0.0143453,
'Execution Unit/Instruction Scheduler/FP Instruction Window/Subthreshold Leakage with power gating': 0.00810519,
'Execution Unit/Instruction Scheduler/Gate Leakage': 0.00568913,
'Execution Unit/Instruction Scheduler/Instruction Window/Area': 0.805223,
'Execution Unit/Instruction Scheduler/Instruction Window/Gate Leakage': 0.00414562,
'Execution Unit/Instruction Scheduler/Instruction Window/Peak Dynamic': 1.6763,
'Execution Unit/Instruction Scheduler/Instruction Window/Runtime Dynamic': 0.366431,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage': 0.0625755,
'Execution Unit/Instruction Scheduler/Instruction Window/Subthreshold Leakage with power gating': 0.0355964,
'Execution Unit/Instruction Scheduler/Peak Dynamic': 3.82262,
'Execution Unit/Instruction Scheduler/ROB/Area': 0.584388,
'Execution Unit/Instruction Scheduler/ROB/Gate Leakage': 0.00056608,
'Execution Unit/Instruction Scheduler/ROB/Peak Dynamic': 1.10451,
'Execution Unit/Instruction Scheduler/ROB/Runtime Dynamic': 0.184962,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage': 0.00906853,
'Execution Unit/Instruction Scheduler/ROB/Subthreshold Leakage with power gating': 0.00364446,
'Execution Unit/Instruction Scheduler/Runtime Dynamic': 0.778572,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage': 0.0859892,
'Execution Unit/Instruction Scheduler/Subthreshold Leakage with power gating': 0.047346,
'Execution Unit/Integer ALUs/Area': 0.47087,
'Execution Unit/Integer ALUs/Gate Leakage': 0.0265291,
'Execution Unit/Integer ALUs/Peak Dynamic': 0.207246,
'Execution Unit/Integer ALUs/Runtime Dynamic': 0.101344,
'Execution Unit/Integer ALUs/Subthreshold Leakage': 0.40222,
'Execution Unit/Integer ALUs/Subthreshold Leakage with power gating': 0.150833,
'Execution Unit/Peak Dynamic': 4.83241,
'Execution Unit/Register Files/Area': 0.570804,
'Execution Unit/Register Files/Floating Point RF/Area': 0.208131,
'Execution Unit/Register Files/Floating Point RF/Gate Leakage': 0.000232788,
'Execution Unit/Register Files/Floating Point RF/Peak Dynamic': 0.0647933,
'Execution Unit/Register Files/Floating Point RF/Runtime Dynamic': 0.0095289,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage': 0.00399698,
'Execution Unit/Register Files/Floating Point RF/Subthreshold Leakage with power gating': 0.00176968,
'Execution Unit/Register Files/Gate Leakage': 0.000622708,
'Execution Unit/Register Files/Integer RF/Area': 0.362673,
'Execution Unit/Register Files/Integer RF/Gate Leakage': 0.00038992,
'Execution Unit/Register Files/Integer RF/Peak Dynamic': 0.0926154,
'Execution Unit/Register Files/Integer RF/Runtime Dynamic': 0.070472,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage': 0.00614175,
'Execution Unit/Register Files/Integer RF/Subthreshold Leakage with power gating': 0.00246675,
'Execution Unit/Register Files/Peak Dynamic': 0.157409,
'Execution Unit/Register Files/Runtime Dynamic': 0.0800009,
'Execution Unit/Register Files/Subthreshold Leakage': 0.0101387,
'Execution Unit/Register Files/Subthreshold Leakage with power gating': 0.00423643,
'Execution Unit/Results Broadcast Bus/Area Overhead': 0.0390912,
'Execution Unit/Results Broadcast Bus/Gate Leakage': 0.00537402,
'Execution Unit/Results Broadcast Bus/Peak Dynamic': 0.210967,
'Execution Unit/Results Broadcast Bus/Runtime Dynamic': 0.533131,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage': 0.081478,
'Execution Unit/Results Broadcast Bus/Subthreshold Leakage with power gating': 0.0305543,
'Execution Unit/Runtime Dynamic': 2.04956,
'Execution Unit/Subthreshold Leakage': 1.79543,
'Execution Unit/Subthreshold Leakage with power gating': 0.688821,
'Gate Leakage': 0.368936,
'Instruction Fetch Unit/Area': 5.85939,
'Instruction Fetch Unit/Branch Predictor/Area': 0.138516,
'Instruction Fetch Unit/Branch Predictor/Chooser/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Chooser/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Chooser/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Chooser/Runtime Dynamic': 0.00132493,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Chooser/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/Gate Leakage': 0.000757657,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Area': 0.0435221,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Gate Leakage': 0.000278362,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Peak Dynamic': 0.0168831,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Runtime Dynamic': 0.00132493,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage': 0.00759719,
'Instruction Fetch Unit/Branch Predictor/Global Predictor/Subthreshold Leakage with power gating': 0.0039236,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Area': 0.0257064,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Gate Leakage': 0.000154548,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Peak Dynamic': 0.0142575,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Runtime Dynamic': 0.00116085,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage': 0.00384344,
'Instruction Fetch Unit/Branch Predictor/L1_Local Predictor/Subthreshold Leakage with power gating': 0.00198631,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Area': 0.0151917,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Gate Leakage': 8.00196e-05,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Peak Dynamic': 0.00527447,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Runtime Dynamic': 0.000453124,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage': 0.00181347,
'Instruction Fetch Unit/Branch Predictor/L2_Local Predictor/Subthreshold Leakage with power gating': 0.000957045,
'Instruction Fetch Unit/Branch Predictor/Peak Dynamic': 0.0597838,
'Instruction Fetch Unit/Branch Predictor/RAS/Area': 0.0105732,
'Instruction Fetch Unit/Branch Predictor/RAS/Gate Leakage': 4.63858e-05,
'Instruction Fetch Unit/Branch Predictor/RAS/Peak Dynamic': 0.0117602,
'Instruction Fetch Unit/Branch Predictor/RAS/Runtime Dynamic': 0.00101234,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage': 0.000932505,
'Instruction Fetch Unit/Branch Predictor/RAS/Subthreshold Leakage with power gating': 0.000494733,
'Instruction Fetch Unit/Branch Predictor/Runtime Dynamic': 0.00482305,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage': 0.0199703,
'Instruction Fetch Unit/Branch Predictor/Subthreshold Leakage with power gating': 0.0103282,
'Instruction Fetch Unit/Branch Target Buffer/Area': 0.64954,
'Instruction Fetch Unit/Branch Target Buffer/Gate Leakage': 0.00272758,
'Instruction Fetch Unit/Branch Target Buffer/Peak Dynamic': 0.177867,
'Instruction Fetch Unit/Branch Target Buffer/Runtime Dynamic': 0.012459,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage': 0.0811682,
'Instruction Fetch Unit/Branch Target Buffer/Subthreshold Leakage with power gating': 0.0435357,
'Instruction Fetch Unit/Gate Leakage': 0.0589979,
'Instruction Fetch Unit/Instruction Buffer/Area': 0.0226323,
'Instruction Fetch Unit/Instruction Buffer/Gate Leakage': 6.83558e-05,
'Instruction Fetch Unit/Instruction Buffer/Peak Dynamic': 0.606827,
'Instruction Fetch Unit/Instruction Buffer/Runtime Dynamic': 0.0677466,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage': 0.00151885,
'Instruction Fetch Unit/Instruction Buffer/Subthreshold Leakage with power gating': 0.000701682,
'Instruction Fetch Unit/Instruction Cache/Area': 3.14635,
'Instruction Fetch Unit/Instruction Cache/Gate Leakage': 0.029931,
'Instruction Fetch Unit/Instruction Cache/Peak Dynamic': 4.30926,
'Instruction Fetch Unit/Instruction Cache/Runtime Dynamic': 0.202155,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage': 0.367022,
'Instruction Fetch Unit/Instruction Cache/Subthreshold Leakage with power gating': 0.180386,
'Instruction Fetch Unit/Instruction Decoder/Area': 1.85799,
'Instruction Fetch Unit/Instruction Decoder/Gate Leakage': 0.0222493,
'Instruction Fetch Unit/Instruction Decoder/Peak Dynamic': 1.37404,
'Instruction Fetch Unit/Instruction Decoder/Runtime Dynamic': 0.230098,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage': 0.442943,
'Instruction Fetch Unit/Instruction Decoder/Subthreshold Leakage with power gating': 0.166104,
'Instruction Fetch Unit/Peak Dynamic': 6.73691,
'Instruction Fetch Unit/Runtime Dynamic': 0.517282,
'Instruction Fetch Unit/Subthreshold Leakage': 0.932286,
'Instruction Fetch Unit/Subthreshold Leakage with power gating': 0.40843,
'L2/Area': 4.53318,
'L2/Gate Leakage': 0.015464,
'L2/Peak Dynamic': 0.0386431,
'L2/Runtime Dynamic': 0.00815224,
'L2/Subthreshold Leakage': 0.834142,
'L2/Subthreshold Leakage with power gating': 0.401066,
'Load Store Unit/Area': 8.80901,
'Load Store Unit/Data Cache/Area': 6.84535,
'Load Store Unit/Data Cache/Gate Leakage': 0.0279261,
'Load Store Unit/Data Cache/Peak Dynamic': 4.15789,
'Load Store Unit/Data Cache/Runtime Dynamic': 1.40372,
'Load Store Unit/Data Cache/Subthreshold Leakage': 0.527675,
'Load Store Unit/Data Cache/Subthreshold Leakage with power gating': 0.25085,
'Load Store Unit/Gate Leakage': 0.0350888,
'Load Store Unit/LoadQ/Area': 0.0836782,
'Load Store Unit/LoadQ/Gate Leakage': 0.00059896,
'Load Store Unit/LoadQ/Peak Dynamic': 0.0944939,
'Load Store Unit/LoadQ/Runtime Dynamic': 0.0944938,
'Load Store Unit/LoadQ/Subthreshold Leakage': 0.00941961,
'Load Store Unit/LoadQ/Subthreshold Leakage with power gating': 0.00536918,
'Load Store Unit/Peak Dynamic': 4.60411,
'Load Store Unit/Runtime Dynamic': 1.96423,
'Load Store Unit/StoreQ/Area': 0.322079,
'Load Store Unit/StoreQ/Gate Leakage': 0.00329971,
'Load Store Unit/StoreQ/Peak Dynamic': 0.233006,
'Load Store Unit/StoreQ/Runtime Dynamic': 0.466011,
'Load Store Unit/StoreQ/Subthreshold Leakage': 0.0345621,
'Load Store Unit/StoreQ/Subthreshold Leakage with power gating': 0.0197004,
'Load Store Unit/Subthreshold Leakage': 0.591321,
'Load Store Unit/Subthreshold Leakage with power gating': 0.283293,
'Memory Management Unit/Area': 0.4339,
'Memory Management Unit/Dtlb/Area': 0.0879726,
'Memory Management Unit/Dtlb/Gate Leakage': 0.00088729,
'Memory Management Unit/Dtlb/Peak Dynamic': 0.0826945,
'Memory Management Unit/Dtlb/Runtime Dynamic': 0.0832742,
'Memory Management Unit/Dtlb/Subthreshold Leakage': 0.0155699,
'Memory Management Unit/Dtlb/Subthreshold Leakage with power gating': 0.00887485,
'Memory Management Unit/Gate Leakage': 0.00808595,
'Memory Management Unit/Itlb/Area': 0.301552,
'Memory Management Unit/Itlb/Gate Leakage': 0.00393464,
'Memory Management Unit/Itlb/Peak Dynamic': 0.267934,
'Memory Management Unit/Itlb/Runtime Dynamic': 0.0331418,
'Memory Management Unit/Itlb/Subthreshold Leakage': 0.0413758,
'Memory Management Unit/Itlb/Subthreshold Leakage with power gating': 0.0235842,
'Memory Management Unit/Peak Dynamic': 0.566098,
'Memory Management Unit/Runtime Dynamic': 0.116416,
'Memory Management Unit/Subthreshold Leakage': 0.0766103,
'Memory Management Unit/Subthreshold Leakage with power gating': 0.0398333,
'Peak Dynamic': 20.3676,
'Renaming Unit/Area': 0.303608,
'Renaming Unit/FP Front End RAT/Area': 0.131045,
'Renaming Unit/FP Front End RAT/Gate Leakage': 0.00351123,
'Renaming Unit/FP Front End RAT/Peak Dynamic': 2.51468,
'Renaming Unit/FP Front End RAT/Runtime Dynamic': 0.170441,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage': 0.0308571,
'Renaming Unit/FP Front End RAT/Subthreshold Leakage with power gating': 0.0175885,
'Renaming Unit/Free List/Area': 0.0340654,
'Renaming Unit/Free List/Gate Leakage': 2.5481e-05,
'Renaming Unit/Free List/Peak Dynamic': 0.0306032,
'Renaming Unit/Free List/Runtime Dynamic': 0.0123239,
'Renaming Unit/Free List/Subthreshold Leakage': 0.000370144,
'Renaming Unit/Free List/Subthreshold Leakage with power gating': 0.000201064,
'Renaming Unit/Gate Leakage': 0.00708398,
'Renaming Unit/Int Front End RAT/Area': 0.0941223,
'Renaming Unit/Int Front End RAT/Gate Leakage': 0.000283242,
'Renaming Unit/Int Front End RAT/Peak Dynamic': 0.731965,
'Renaming Unit/Int Front End RAT/Runtime Dynamic': 0.113013,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage': 0.00435488,
'Renaming Unit/Int Front End RAT/Subthreshold Leakage with power gating': 0.00248228,
'Renaming Unit/Peak Dynamic': 3.58947,
'Renaming Unit/Runtime Dynamic': 0.295778,
'Renaming Unit/Subthreshold Leakage': 0.0552466,
'Renaming Unit/Subthreshold Leakage with power gating': 0.0276461,
'Runtime Dynamic': 4.95142,
'Subthreshold Leakage': 6.16288,
'Subthreshold Leakage with power gating': 2.55328}],
'DRAM': {'Area': 0,
'Gate Leakage': 0,
'Peak Dynamic': 0.4550974874861491,
'Runtime Dynamic': 0.4550974874861491,
'Subthreshold Leakage': 4.252,
'Subthreshold Leakage with power gating': 4.252},
'L3': [{'Area': 61.9075,
'Gate Leakage': 0.0484137,
'Peak Dynamic': 0.0392187,
'Runtime Dynamic': 0.0220209,
'Subthreshold Leakage': 6.80085,
'Subthreshold Leakage with power gating': 3.32364}],
'Processor': {'Area': 191.908,
'Gate Leakage': 1.53485,
'Peak Dynamic': 84.2883,
'Peak Power': 117.401,
'Runtime Dynamic': 20.5457,
'Subthreshold Leakage': 31.5774,
'Subthreshold Leakage with power gating': 13.9484,
'Total Cores/Area': 128.669,
'Total Cores/Gate Leakage': 1.4798,
'Total Cores/Peak Dynamic': 84.2491,
'Total Cores/Runtime Dynamic': 20.5236,
'Total Cores/Subthreshold Leakage': 24.7074,
'Total Cores/Subthreshold Leakage with power gating': 10.2429,
'Total L3s/Area': 61.9075,
'Total L3s/Gate Leakage': 0.0484137,
'Total L3s/Peak Dynamic': 0.0392187,
'Total L3s/Runtime Dynamic': 0.0220209,
'Total L3s/Subthreshold Leakage': 6.80085,
'Total L3s/Subthreshold Leakage with power gating': 3.32364,
'Total Leakage': 33.1122,
'Total NoCs/Area': 1.33155,
'Total NoCs/Gate Leakage': 0.00662954,
'Total NoCs/Peak Dynamic': 0.0,
'Total NoCs/Runtime Dynamic': 0.0,
'Total NoCs/Subthreshold Leakage': 0.0691322,
'Total NoCs/Subthreshold Leakage with power gating': 0.0259246}}
| 75.061269
| 124
| 0.682069
| 8,082
| 68,606
| 5.783964
| 0.067558
| 0.123561
| 0.112951
| 0.093441
| 0.939781
| 0.931887
| 0.917897
| 0.888183
| 0.863154
| 0.842596
| 0
| 0.131899
| 0.224339
| 68,606
| 914
| 125
| 75.061269
| 0.746538
| 0
| 0
| 0.642232
| 0
| 0
| 0.65744
| 0.0481
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a0c7ae34f367dfca0707a0e84c64920804ba41a8
| 448
|
py
|
Python
|
semantic_aware_models/models/recommendation/__init__.py
|
ITAINNOVA/SAME
|
d46dda98753fcb3606e04c3db2d20c9e700140e8
|
[
"OML"
] | null | null | null |
semantic_aware_models/models/recommendation/__init__.py
|
ITAINNOVA/SAME
|
d46dda98753fcb3606e04c3db2d20c9e700140e8
|
[
"OML"
] | null | null | null |
semantic_aware_models/models/recommendation/__init__.py
|
ITAINNOVA/SAME
|
d46dda98753fcb3606e04c3db2d20c9e700140e8
|
[
"OML"
] | 1
|
2020-03-19T12:41:54.000Z
|
2020-03-19T12:41:54.000Z
|
from __future__ import absolute_import
from semantic_aware_models.models.recommendation.abstract_recommender import *
from semantic_aware_models.models.recommendation.bert_recommender import *
from semantic_aware_models.models.recommendation.collaborative_filtering_recommender import *
from semantic_aware_models.models.recommendation.content_based_recommender import *
from semantic_aware_models.models.recommendation.random_recommender import *
| 64
| 93
| 0.901786
| 52
| 448
| 7.346154
| 0.307692
| 0.13089
| 0.235602
| 0.301047
| 0.756545
| 0.756545
| 0.756545
| 0.628272
| 0
| 0
| 0
| 0
| 0.053571
| 448
| 7
| 94
| 64
| 0.900943
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
9d2330a31e5e8c5a3ba6fcd9b80aa1d412ecca68
| 20,653
|
py
|
Python
|
test/integration_test/test_auction_contract.py
|
heshu-by/likelib-ws
|
85987d328dc274622f4b758afa1b6af43d15564f
|
[
"Apache-2.0"
] | null | null | null |
test/integration_test/test_auction_contract.py
|
heshu-by/likelib-ws
|
85987d328dc274622f4b758afa1b6af43d15564f
|
[
"Apache-2.0"
] | null | null | null |
test/integration_test/test_auction_contract.py
|
heshu-by/likelib-ws
|
85987d328dc274622f4b758afa1b6af43d15564f
|
[
"Apache-2.0"
] | null | null | null |
import os
import datetime
import time
from tester import test_case, Env, NodeConfig, Id, TEST_CHECK, TEST_CHECK_EQUAL, get_distributor_address_path, \
ClientType, TransactionStatusCode, TEST_CHECK_NOT_EQUAL
CONTRACTS_FOLDER = os.path.realpath(
os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..", "doc", "contracts"))
if not os.path.exists(CONTRACTS_FOLDER):
print("Contracts folder was not found", flush=True)
exit(1)
TRANSACTION_WAIT = 10
@test_case("auction_contract_legacy_grpc")
def main(env: Env):
contract_file_path = os.path.join(CONTRACTS_FOLDER, "auction", "contract.sol")
if not os.path.exists(contract_file_path):
TEST_CHECK(False, message="Contracts file was not found")
node_id = Id(20401, grpc_port=50401)
env.start_node(NodeConfig(node_id))
client = env.get_client(ClientType.LEGACY_GRPC, node_id)
TEST_CHECK(client.connection_test())
contracts = client.compile_file(code=contract_file_path)
auction_compiled_contract = contracts[0]
beneficiary_keys = client.generate_keys(keys_path="user_1")
beneficiary_init_balance = client.get_balance(address=beneficiary_keys.address)
account_seconds_duration = 200
auction_init_message = client.encode_message(code=auction_compiled_contract,
message=f"constructor({account_seconds_duration}, Address({beneficiary_keys.address}))")
start_time = datetime.datetime.now()
distributor_keys = client.load_address(keys_path=get_distributor_address_path())
env.logger.info("Deploy contract")
deployed_contract_status = client.push_contract(from_address=distributor_keys, code=auction_compiled_contract,
amount=0, fee=10000000, init_message=auction_init_message,
wait=TRANSACTION_WAIT)
TEST_CHECK_EQUAL(deployed_contract_status.status_code, TransactionStatusCode.PENDING)
TEST_CHECK(client.transaction_success_wait(transaction=deployed_contract_status))
deployed_contract_status = client.get_transaction_status(tx_hash=deployed_contract_status.tx_hash)
# TEST_CHECK_EQUAL(deployed_contract_status.status_code, TransactionStatusCode.SUCCESS)
deployed_contract = deployed_contract_status.data
client_1 = client.generate_keys(keys_path="client_1")
client_2 = client.generate_keys(keys_path="client_2")
client_1_init_amount = 5000000
client_2_init_amount = 5000000
client.transfer(from_address=distributor_keys, to_address=client_1.address, amount=client_1_init_amount, fee=5,
wait=TRANSACTION_WAIT)
client.transfer(from_address=distributor_keys, to_address=client_2.address, amount=client_2_init_amount, fee=5,
wait=TRANSACTION_WAIT)
bid_message = client.encode_message(code=auction_compiled_contract, message="bid()")
max_bid_message = client.encode_message(code=auction_compiled_contract, message="highestBid()")
client_1_bid_1 = 10000
client_1_bid_1_gas = 100000
env.logger.info("Bid 1 from client 1")
bid_status = client.message_call(from_address=client_1, to_address=deployed_contract, fee=client_1_bid_1_gas,
amount=client_1_bid_1, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
client_1_bid_2 = 15000
client_1_bid_2_gas = 100000
env.logger.info("Bid 2 from client 1")
bid_status = client.message_call(from_address=client_1, to_address=deployed_contract, fee=client_1_bid_2_gas,
amount=client_1_bid_2, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
TEST_CHECK(current_max_bid[''] == client_1_bid_2)
client_2_bid_1 = 10000
client_2_bid_1_gas = 100000
env.logger.info("Bid 1 from client 2")
bid_status = client.message_call(from_address=client_2, to_address=deployed_contract, fee=client_2_bid_1_gas,
amount=client_2_bid_1, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_NOT_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
TEST_CHECK(current_max_bid[''] == client_1_bid_2)
client_2_bid_2 = 20000
client_2_bid_2_gas = 100000
env.logger.info("Bid 2 from client 2")
bid_status = client.message_call(from_address=client_2, to_address=deployed_contract, fee=client_2_bid_2_gas,
amount=client_2_bid_2, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
TEST_CHECK(current_max_bid[''] == client_2_bid_2)
time.sleep(account_seconds_duration - (datetime.datetime.now() - start_time).total_seconds())
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
auction_end_message = client.encode_message(code=auction_compiled_contract, message="auctionEnd()")
env.logger.info("End auction")
auction_end_status = client.message_call(from_address=distributor_keys, to_address=deployed_contract, fee=100000,
amount=0, message=auction_end_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=auction_end_status))
# auction_end_status = client.get_transaction_status(tx_hash=auction_end_status.tx_hash)
# TEST_CHECK_EQUAL(auction_end_status.status_code, TransactionStatusCode.SUCCESS)
TEST_CHECK(
client.decode_message(code=auction_compiled_contract, method="auctionEnd", message=auction_end_status.data)[
'is_end'])
beneficiary_current_balance = client.get_balance(address=beneficiary_keys.address)
TEST_CHECK(beneficiary_init_balance + current_max_bid[''] == beneficiary_current_balance)
return 0
@test_case("auction_contract_legacy_http")
def main(env: Env):
contract_file_path = os.path.join(CONTRACTS_FOLDER, "auction", "contract.sol")
if not os.path.exists(contract_file_path):
TEST_CHECK(False, message="Contracts file was not found")
node_id = Id(20402, http_port=50402)
env.start_node(NodeConfig(node_id))
client = env.get_client(ClientType.LEGACY_HTTP, node_id)
TEST_CHECK(client.connection_test())
contracts = client.compile_file(code=contract_file_path)
auction_compiled_contract = contracts[0]
beneficiary_keys = client.generate_keys(keys_path="user_1")
beneficiary_init_balance = client.get_balance(address=beneficiary_keys.address)
account_seconds_duration = 200
auction_init_message = client.encode_message(code=auction_compiled_contract,
message=f"constructor({account_seconds_duration}, Address({beneficiary_keys.address}))")
start_time = datetime.datetime.now()
distributor_keys = client.load_address(keys_path=get_distributor_address_path())
deployed_contract_status = client.push_contract(from_address=distributor_keys, code=auction_compiled_contract,
amount=0, fee=10000000, init_message=auction_init_message,
wait=TRANSACTION_WAIT)
TEST_CHECK_EQUAL(deployed_contract_status.status_code, TransactionStatusCode.PENDING)
TEST_CHECK(client.transaction_success_wait(transaction=deployed_contract_status))
deployed_contract_status = client.get_transaction_status(tx_hash=deployed_contract_status.tx_hash)
# TEST_CHECK_EQUAL(deployed_contract_status.status_code, TransactionStatusCode.SUCCESS)
deployed_contract = deployed_contract_status.data
client_1 = client.generate_keys(keys_path="client_1")
client_2 = client.generate_keys(keys_path="client_2")
client_1_init_amount = 5000000
client_2_init_amount = 5000000
client.transfer(from_address=distributor_keys, to_address=client_1.address, amount=client_1_init_amount, fee=5,
wait=TRANSACTION_WAIT)
client.transfer(from_address=distributor_keys, to_address=client_2.address, amount=client_2_init_amount, fee=5,
wait=TRANSACTION_WAIT)
bid_message = client.encode_message(code=auction_compiled_contract, message="bid()")
max_bid_message = client.encode_message(code=auction_compiled_contract, message="highestBid()")
client_1_bid_1 = 10000
client_1_bid_1_gas = 100000
bid_status = client.message_call(from_address=client_1, to_address=deployed_contract, fee=client_1_bid_1_gas,
amount=client_1_bid_1, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
client_1_bid_2 = 15000
client_1_bid_2_gas = 100000
bid_status = client.message_call(from_address=client_1, to_address=deployed_contract, fee=client_1_bid_2_gas,
amount=client_1_bid_2, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
TEST_CHECK(current_max_bid[''] == client_1_bid_2)
client_2_bid_1 = 10000
client_2_bid_1_gas = 100000
bid_status = client.message_call(from_address=client_2, to_address=deployed_contract, fee=client_2_bid_1_gas,
amount=client_2_bid_1, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_NOT_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
TEST_CHECK(current_max_bid[''] == client_1_bid_2)
client_2_bid_2 = 20000
client_2_bid_2_gas = 100000
bid_status = client.message_call(from_address=client_2, to_address=deployed_contract, fee=client_2_bid_2_gas,
amount=client_2_bid_2, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
TEST_CHECK(current_max_bid[''] == client_2_bid_2)
time.sleep(account_seconds_duration - (datetime.datetime.now() - start_time).total_seconds())
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
auction_end_message = client.encode_message(code=auction_compiled_contract, message="auctionEnd()")
auction_end_status = client.message_call(from_address=distributor_keys, to_address=deployed_contract, fee=100000,
amount=0, message=auction_end_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=auction_end_status_status))
# auction_end_status = client.get_transaction_status(tx_hash=auction_end_status.tx_hash)
# TEST_CHECK_EQUAL(auction_end_status.status_code, TransactionStatusCode.SUCCESS)
TEST_CHECK(
client.decode_message(code=auction_compiled_contract, method="auctionEnd", message=auction_end_status.data)[
'is_end'])
beneficiary_current_balance = client.get_balance(address=beneficiary_keys.address)
TEST_CHECK(beneficiary_init_balance + current_max_bid[''] == beneficiary_current_balance)
return 0
@test_case("auction_contract_python_grpc")
def main(env: Env):
contract_file_path = os.path.join(CONTRACTS_FOLDER, "auction", "contract.sol")
if not os.path.exists(contract_file_path):
TEST_CHECK(False, message="Contracts file was not found")
node_id = Id(20403, http_port=50403)
env.start_node(NodeConfig(node_id))
client = env.get_client(ClientType.PYTHON_HTTP, node_id)
TEST_CHECK(client.connection_test())
contracts = client.compile_file(code=contract_file_path)
auction_compiled_contract = contracts[0]
beneficiary_keys = client.generate_keys(keys_path="user_1")
beneficiary_init_balance = client.get_balance(address=beneficiary_keys.address)
account_seconds_duration = 200
auction_init_message = client.encode_message(code=auction_compiled_contract,
message=f"constructor({account_seconds_duration}, Address({beneficiary_keys.address}))")
start_time = datetime.datetime.now()
distributor_keys = client.load_address(keys_path=get_distributor_address_path())
deployed_contract_status = client.push_contract(from_address=distributor_keys, code=auction_compiled_contract,
amount=0, fee=10000000, init_message=auction_init_message,
wait=TRANSACTION_WAIT)
TEST_CHECK_EQUAL(deployed_contract_status.status_code, TransactionStatusCode.PENDING)
TEST_CHECK(client.transaction_success_wait(transaction=deployed_contract_status))
deployed_contract_status = client.get_transaction_status(tx_hash=deployed_contract_status.tx_hash)
# TEST_CHECK_EQUAL(deployed_contract_status.status_code, TransactionStatusCode.SUCCESS)
deployed_contract = deployed_contract_status.data
client_1 = client.generate_keys(keys_path="client_1")
client_2 = client.generate_keys(keys_path="client_2")
client_1_init_amount = 5000000
client_2_init_amount = 5000000
client.transfer(from_address=distributor_keys, to_address=client_1.address, amount=client_1_init_amount, fee=5,
wait=TRANSACTION_WAIT)
client.transfer(from_address=distributor_keys, to_address=client_2.address, amount=client_2_init_amount, fee=5,
wait=TRANSACTION_WAIT)
bid_message = client.encode_message(code=auction_compiled_contract, message="bid()")
max_bid_message = client.encode_message(code=auction_compiled_contract, message="highestBid()")
client_1_bid_1 = 10000
client_1_bid_1_gas = 100000
bid_status = client.message_call(from_address=client_1, to_address=deployed_contract, fee=client_1_bid_1_gas,
amount=client_1_bid_1, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
client_1_bid_2 = 15000
client_1_bid_2_gas = 100000
bid_status = client.message_call(from_address=client_1, to_address=deployed_contract, fee=client_1_bid_2_gas,
amount=client_1_bid_2, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
TEST_CHECK(current_max_bid[''] == client_1_bid_2)
client_2_bid_1 = 10000
client_2_bid_1_gas = 100000
bid_status = client.message_call(from_address=client_2, to_address=deployed_contract, fee=client_2_bid_1_gas,
amount=client_2_bid_1, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_NOT_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
TEST_CHECK(current_max_bid[''] == client_1_bid_2)
client_2_bid_2 = 20000
client_2_bid_2_gas = 100000
bid_status = client.message_call(from_address=client_2, to_address=deployed_contract, fee=client_2_bid_2_gas,
amount=client_2_bid_2, message=bid_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=bid_status))
# bid_status = client.get_transaction_status(tx_hash=bid_status.tx_hash)
# TEST_CHECK_EQUAL(bid_status.status_code, TransactionStatusCode.SUCCESS)
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
TEST_CHECK(current_max_bid[''] == client_2_bid_2)
time.sleep(account_seconds_duration - (datetime.datetime.now() - start_time).total_seconds())
result = client.call_view(from_address=distributor_keys, to_address=deployed_contract, message=max_bid_message)
current_max_bid = client.decode_message(code=auction_compiled_contract, method="highestBid", message=result)
auction_end_message = client.encode_message(code=auction_compiled_contract, message="auctionEnd()")
auction_end_status = client.message_call(from_address=distributor_keys, to_address=deployed_contract, fee=100000,
amount=0, message=auction_end_message, wait=TRANSACTION_WAIT)
TEST_CHECK(client.transaction_success_wait(transaction=auction_end_status))
# auction_end_status = client.get_transaction_status(tx_hash=auction_end_status.tx_hash)
# TEST_CHECK_EQUAL(auction_end_status.status_code, TransactionStatusCode.SUCCESS)
TEST_CHECK(
client.decode_message(code=auction_compiled_contract, method="auctionEnd", message=auction_end_status.data)[
'is_end'])
beneficiary_current_balance = client.get_balance(address=beneficiary_keys.address)
TEST_CHECK(beneficiary_init_balance + current_max_bid[''] == beneficiary_current_balance)
return 0
| 58.177465
| 137
| 0.765361
| 2,695
| 20,653
| 5.423377
| 0.044527
| 0.038793
| 0.029557
| 0.055419
| 0.96928
| 0.965723
| 0.965723
| 0.965723
| 0.965723
| 0.965723
| 0
| 0.025246
| 0.15039
| 20,653
| 354
| 138
| 58.341808
| 0.807716
| 0.125018
| 0
| 0.891129
| 0
| 0
| 0.051126
| 0.017134
| 0
| 0
| 0
| 0
| 0
| 1
| 0.012097
| false
| 0
| 0.016129
| 0
| 0.040323
| 0.004032
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
9d3414ae5ee27af3f713d763fc5709e209039dc1
| 6,706
|
py
|
Python
|
app/core/migrations/0013_auto_20200820_2140.py
|
dodge-ttu/gohan-api
|
bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf
|
[
"MIT"
] | null | null | null |
app/core/migrations/0013_auto_20200820_2140.py
|
dodge-ttu/gohan-api
|
bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf
|
[
"MIT"
] | null | null | null |
app/core/migrations/0013_auto_20200820_2140.py
|
dodge-ttu/gohan-api
|
bf3d4a4e7a93c699a00865c769975d6cfb3ec8cf
|
[
"MIT"
] | null | null | null |
# Generated by Django 2.1.15 on 2020-08-20 21:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0012_raingaugereading_soilprobereading_tankmonitorreading'),
]
operations = [
migrations.AddField(
model_name='soilprobereading',
name='dailyuse',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='datetime',
field=models.DateTimeField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth1',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth10',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth10temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth11',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth11temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth12',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth12temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth13',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth13temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth14',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth14temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth15',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth15temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth16',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth16temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth1temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth2',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth2temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth3',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth3temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth4',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth4temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth5',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth5temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth6',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth6temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth7',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth7temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth8',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth8temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth9',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='depth9temp',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='humidity',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='irrigation_due_actual',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='irrigation_due_default',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='rainfall',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='soiltotal',
field=models.FloatField(null=True),
),
migrations.AddField(
model_name='soilprobereading',
name='temp',
field=models.FloatField(null=True),
),
]
| 31.336449
| 78
| 0.54071
| 513
| 6,706
| 6.976608
| 0.148148
| 0.201174
| 0.257055
| 0.30176
| 0.850796
| 0.842693
| 0.829561
| 0.829561
| 0.814194
| 0.814194
| 0
| 0.015096
| 0.348047
| 6,706
| 213
| 79
| 31.483568
| 0.803522
| 0.00686
| 0
| 0.768116
| 1
| 0
| 0.159057
| 0.01502
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.004831
| 0
| 0.019324
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
9d3bf3c03f34d145a3b8665e1f20fd85772faffa
| 101,428
|
py
|
Python
|
sdk/python/pulumi_oci/bds/outputs.py
|
EladGabay/pulumi-oci
|
6841e27d4a1a7e15c672306b769912efbfd3ba99
|
[
"ECL-2.0",
"Apache-2.0"
] | 5
|
2021-08-17T11:14:46.000Z
|
2021-12-31T02:07:03.000Z
|
sdk/python/pulumi_oci/bds/outputs.py
|
pulumi-oci/pulumi-oci
|
6841e27d4a1a7e15c672306b769912efbfd3ba99
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2021-09-06T11:21:29.000Z
|
2021-09-06T11:21:29.000Z
|
sdk/python/pulumi_oci/bds/outputs.py
|
pulumi-oci/pulumi-oci
|
6841e27d4a1a7e15c672306b769912efbfd3ba99
|
[
"ECL-2.0",
"Apache-2.0"
] | 2
|
2021-08-24T23:31:30.000Z
|
2022-01-02T19:26:54.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
__all__ = [
'AutoScalingConfigurationPolicy',
'AutoScalingConfigurationPolicyRule',
'AutoScalingConfigurationPolicyRuleMetric',
'AutoScalingConfigurationPolicyRuleMetricThreshold',
'BdsInstanceCloudSqlDetails',
'BdsInstanceCloudSqlDetailsKerberosDetail',
'BdsInstanceClusterDetails',
'BdsInstanceMasterNode',
'BdsInstanceNetworkConfig',
'BdsInstanceNode',
'BdsInstanceNodeAttachedBlockVolume',
'BdsInstanceUtilNode',
'BdsInstanceWorkerNode',
'GetAutoScalingConfigurationPolicyResult',
'GetAutoScalingConfigurationPolicyRuleResult',
'GetAutoScalingConfigurationPolicyRuleMetricResult',
'GetAutoScalingConfigurationPolicyRuleMetricThresholdResult',
'GetBdsInstanceCloudSqlDetailsResult',
'GetBdsInstanceCloudSqlDetailsKerberosDetailResult',
'GetBdsInstanceClusterDetailsResult',
'GetBdsInstanceMasterNodeResult',
'GetBdsInstanceNetworkConfigResult',
'GetBdsInstanceNodeResult',
'GetBdsInstanceNodeAttachedBlockVolumeResult',
'GetBdsInstanceUtilNodeResult',
'GetBdsInstanceWorkerNodeResult',
'GetBdsInstancesBdsInstanceResult',
'GetBdsInstancesBdsInstanceCloudSqlDetailsResult',
'GetBdsInstancesBdsInstanceCloudSqlDetailsKerberosDetailResult',
'GetBdsInstancesBdsInstanceClusterDetailsResult',
'GetBdsInstancesBdsInstanceMasterNodeResult',
'GetBdsInstancesBdsInstanceNetworkConfigResult',
'GetBdsInstancesBdsInstanceNodeResult',
'GetBdsInstancesBdsInstanceNodeAttachedBlockVolumeResult',
'GetBdsInstancesBdsInstanceUtilNodeResult',
'GetBdsInstancesBdsInstanceWorkerNodeResult',
'GetBdsInstancesFilterResult',
]
@pulumi.output_type
class AutoScalingConfigurationPolicy(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "policyType":
suggest = "policy_type"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in AutoScalingConfigurationPolicy. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
AutoScalingConfigurationPolicy.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
AutoScalingConfigurationPolicy.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
policy_type: str,
rules: Sequence['outputs.AutoScalingConfigurationPolicyRule']):
"""
:param str policy_type: (Updatable) Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)
:param Sequence['AutoScalingConfigurationPolicyRuleArgs'] rules: (Updatable) The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.
"""
pulumi.set(__self__, "policy_type", policy_type)
pulumi.set(__self__, "rules", rules)
@property
@pulumi.getter(name="policyType")
def policy_type(self) -> str:
"""
(Updatable) Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)
"""
return pulumi.get(self, "policy_type")
@property
@pulumi.getter
def rules(self) -> Sequence['outputs.AutoScalingConfigurationPolicyRule']:
"""
(Updatable) The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.
"""
return pulumi.get(self, "rules")
@pulumi.output_type
class AutoScalingConfigurationPolicyRule(dict):
def __init__(__self__, *,
action: str,
metric: 'outputs.AutoScalingConfigurationPolicyRuleMetric'):
"""
:param str action: (Updatable) The valid value are CHANGE_SHAPE_SCALE_UP or CHANGE_SHAPE_SCALE_DOWN.
:param 'AutoScalingConfigurationPolicyRuleMetricArgs' metric: (Updatable) Metric and threshold details for triggering an autoscale action.
"""
pulumi.set(__self__, "action", action)
pulumi.set(__self__, "metric", metric)
@property
@pulumi.getter
def action(self) -> str:
"""
(Updatable) The valid value are CHANGE_SHAPE_SCALE_UP or CHANGE_SHAPE_SCALE_DOWN.
"""
return pulumi.get(self, "action")
@property
@pulumi.getter
def metric(self) -> 'outputs.AutoScalingConfigurationPolicyRuleMetric':
"""
(Updatable) Metric and threshold details for triggering an autoscale action.
"""
return pulumi.get(self, "metric")
@pulumi.output_type
class AutoScalingConfigurationPolicyRuleMetric(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "metricType":
suggest = "metric_type"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in AutoScalingConfigurationPolicyRuleMetric. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
AutoScalingConfigurationPolicyRuleMetric.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
AutoScalingConfigurationPolicyRuleMetric.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
metric_type: str,
threshold: 'outputs.AutoScalingConfigurationPolicyRuleMetricThreshold'):
"""
:param str metric_type: (Updatable) Allowed value is CPU_UTILIZATION.
:param 'AutoScalingConfigurationPolicyRuleMetricThresholdArgs' threshold: (Updatable) An autoscale action is triggered when a performance metric meets or exceeds a threshold.
"""
pulumi.set(__self__, "metric_type", metric_type)
pulumi.set(__self__, "threshold", threshold)
@property
@pulumi.getter(name="metricType")
def metric_type(self) -> str:
"""
(Updatable) Allowed value is CPU_UTILIZATION.
"""
return pulumi.get(self, "metric_type")
@property
@pulumi.getter
def threshold(self) -> 'outputs.AutoScalingConfigurationPolicyRuleMetricThreshold':
"""
(Updatable) An autoscale action is triggered when a performance metric meets or exceeds a threshold.
"""
return pulumi.get(self, "threshold")
@pulumi.output_type
class AutoScalingConfigurationPolicyRuleMetricThreshold(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "durationInMinutes":
suggest = "duration_in_minutes"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in AutoScalingConfigurationPolicyRuleMetricThreshold. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
AutoScalingConfigurationPolicyRuleMetricThreshold.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
AutoScalingConfigurationPolicyRuleMetricThreshold.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
duration_in_minutes: int,
operator: str,
value: int):
"""
:param int duration_in_minutes: (Updatable) This value is the minimum period of time the metric value meets or exceeds the threshold value before the action is triggered. The value is in minutes.
:param str operator: (Updatable) The comparison operator to use. Options are greater than (GT) or less than (LT).
:param int value: (Updatable) Integer non-negative value. 0 < value < 100
"""
pulumi.set(__self__, "duration_in_minutes", duration_in_minutes)
pulumi.set(__self__, "operator", operator)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter(name="durationInMinutes")
def duration_in_minutes(self) -> int:
"""
(Updatable) This value is the minimum period of time the metric value meets or exceeds the threshold value before the action is triggered. The value is in minutes.
"""
return pulumi.get(self, "duration_in_minutes")
@property
@pulumi.getter
def operator(self) -> str:
"""
(Updatable) The comparison operator to use. Options are greater than (GT) or less than (LT).
"""
return pulumi.get(self, "operator")
@property
@pulumi.getter
def value(self) -> int:
"""
(Updatable) Integer non-negative value. 0 < value < 100
"""
return pulumi.get(self, "value")
@pulumi.output_type
class BdsInstanceCloudSqlDetails(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "blockVolumeSizeInGbs":
suggest = "block_volume_size_in_gbs"
elif key == "ipAddress":
suggest = "ip_address"
elif key == "isKerberosMappedToDatabaseUsers":
suggest = "is_kerberos_mapped_to_database_users"
elif key == "kerberosDetails":
suggest = "kerberos_details"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in BdsInstanceCloudSqlDetails. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
BdsInstanceCloudSqlDetails.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
BdsInstanceCloudSqlDetails.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
block_volume_size_in_gbs: str,
shape: str,
ip_address: Optional[str] = None,
is_kerberos_mapped_to_database_users: Optional[bool] = None,
kerberos_details: Optional[Sequence['outputs.BdsInstanceCloudSqlDetailsKerberosDetail']] = None):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB to be attached to a given node. All the details needed for attaching the block volume are managed by service itself.
:param str shape: (Updatable) Shape of the node.
:param str ip_address: IP address of the node.
:param bool is_kerberos_mapped_to_database_users: Boolean flag specifying whether or not Kerberos principals are mapped to database users.
:param Sequence['BdsInstanceCloudSqlDetailsKerberosDetailArgs'] kerberos_details: Details about the Kerberos principals.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "shape", shape)
if ip_address is not None:
pulumi.set(__self__, "ip_address", ip_address)
if is_kerberos_mapped_to_database_users is not None:
pulumi.set(__self__, "is_kerberos_mapped_to_database_users", is_kerberos_mapped_to_database_users)
if kerberos_details is not None:
pulumi.set(__self__, "kerberos_details", kerberos_details)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB to be attached to a given node. All the details needed for attaching the block volume are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter
def shape(self) -> str:
"""
(Updatable) Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> Optional[str]:
"""
IP address of the node.
"""
return pulumi.get(self, "ip_address")
@property
@pulumi.getter(name="isKerberosMappedToDatabaseUsers")
def is_kerberos_mapped_to_database_users(self) -> Optional[bool]:
"""
Boolean flag specifying whether or not Kerberos principals are mapped to database users.
"""
return pulumi.get(self, "is_kerberos_mapped_to_database_users")
@property
@pulumi.getter(name="kerberosDetails")
def kerberos_details(self) -> Optional[Sequence['outputs.BdsInstanceCloudSqlDetailsKerberosDetail']]:
"""
Details about the Kerberos principals.
"""
return pulumi.get(self, "kerberos_details")
@pulumi.output_type
class BdsInstanceCloudSqlDetailsKerberosDetail(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "keytabFile":
suggest = "keytab_file"
elif key == "principalName":
suggest = "principal_name"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in BdsInstanceCloudSqlDetailsKerberosDetail. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
BdsInstanceCloudSqlDetailsKerberosDetail.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
BdsInstanceCloudSqlDetailsKerberosDetail.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
keytab_file: Optional[str] = None,
principal_name: Optional[str] = None):
"""
:param str keytab_file: Location of the keytab file
:param str principal_name: Name of the Kerberos principal.
"""
if keytab_file is not None:
pulumi.set(__self__, "keytab_file", keytab_file)
if principal_name is not None:
pulumi.set(__self__, "principal_name", principal_name)
@property
@pulumi.getter(name="keytabFile")
def keytab_file(self) -> Optional[str]:
"""
Location of the keytab file
"""
return pulumi.get(self, "keytab_file")
@property
@pulumi.getter(name="principalName")
def principal_name(self) -> Optional[str]:
"""
Name of the Kerberos principal.
"""
return pulumi.get(self, "principal_name")
@pulumi.output_type
class BdsInstanceClusterDetails(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "ambariUrl":
suggest = "ambari_url"
elif key == "bdCellVersion":
suggest = "bd_cell_version"
elif key == "bdaVersion":
suggest = "bda_version"
elif key == "bdmVersion":
suggest = "bdm_version"
elif key == "bdsVersion":
suggest = "bds_version"
elif key == "bigDataManagerUrl":
suggest = "big_data_manager_url"
elif key == "clouderaManagerUrl":
suggest = "cloudera_manager_url"
elif key == "csqlCellVersion":
suggest = "csql_cell_version"
elif key == "dbVersion":
suggest = "db_version"
elif key == "hueServerUrl":
suggest = "hue_server_url"
elif key == "osVersion":
suggest = "os_version"
elif key == "timeCreated":
suggest = "time_created"
elif key == "timeRefreshed":
suggest = "time_refreshed"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in BdsInstanceClusterDetails. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
BdsInstanceClusterDetails.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
BdsInstanceClusterDetails.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
ambari_url: Optional[str] = None,
bd_cell_version: Optional[str] = None,
bda_version: Optional[str] = None,
bdm_version: Optional[str] = None,
bds_version: Optional[str] = None,
big_data_manager_url: Optional[str] = None,
cloudera_manager_url: Optional[str] = None,
csql_cell_version: Optional[str] = None,
db_version: Optional[str] = None,
hue_server_url: Optional[str] = None,
os_version: Optional[str] = None,
time_created: Optional[str] = None,
time_refreshed: Optional[str] = None):
"""
:param str ambari_url: The URL of Ambari
:param str bd_cell_version: Cloud SQL cell version.
:param str bda_version: BDA version installed in the cluster
:param str bdm_version: Big Data Manager version installed in the cluster.
:param str bds_version: Big Data Service version installed in the cluster.
:param str big_data_manager_url: The URL of Big Data Manager.
:param str cloudera_manager_url: The URL of Cloudera Manager
:param str csql_cell_version: Big Data SQL version.
:param str db_version: Cloud SQL query server database version.
:param str hue_server_url: The URL of the Hue server.
:param str os_version: Oracle Linux version installed in the cluster.
:param str time_created: The time the cluster was created, shown as an RFC 3339 formatted datetime string.
:param str time_refreshed: The time the cluster was automatically or manually refreshed, shown as an RFC 3339 formatted datetime string.
"""
if ambari_url is not None:
pulumi.set(__self__, "ambari_url", ambari_url)
if bd_cell_version is not None:
pulumi.set(__self__, "bd_cell_version", bd_cell_version)
if bda_version is not None:
pulumi.set(__self__, "bda_version", bda_version)
if bdm_version is not None:
pulumi.set(__self__, "bdm_version", bdm_version)
if bds_version is not None:
pulumi.set(__self__, "bds_version", bds_version)
if big_data_manager_url is not None:
pulumi.set(__self__, "big_data_manager_url", big_data_manager_url)
if cloudera_manager_url is not None:
pulumi.set(__self__, "cloudera_manager_url", cloudera_manager_url)
if csql_cell_version is not None:
pulumi.set(__self__, "csql_cell_version", csql_cell_version)
if db_version is not None:
pulumi.set(__self__, "db_version", db_version)
if hue_server_url is not None:
pulumi.set(__self__, "hue_server_url", hue_server_url)
if os_version is not None:
pulumi.set(__self__, "os_version", os_version)
if time_created is not None:
pulumi.set(__self__, "time_created", time_created)
if time_refreshed is not None:
pulumi.set(__self__, "time_refreshed", time_refreshed)
@property
@pulumi.getter(name="ambariUrl")
def ambari_url(self) -> Optional[str]:
"""
The URL of Ambari
"""
return pulumi.get(self, "ambari_url")
@property
@pulumi.getter(name="bdCellVersion")
def bd_cell_version(self) -> Optional[str]:
"""
Cloud SQL cell version.
"""
return pulumi.get(self, "bd_cell_version")
@property
@pulumi.getter(name="bdaVersion")
def bda_version(self) -> Optional[str]:
"""
BDA version installed in the cluster
"""
return pulumi.get(self, "bda_version")
@property
@pulumi.getter(name="bdmVersion")
def bdm_version(self) -> Optional[str]:
"""
Big Data Manager version installed in the cluster.
"""
return pulumi.get(self, "bdm_version")
@property
@pulumi.getter(name="bdsVersion")
def bds_version(self) -> Optional[str]:
"""
Big Data Service version installed in the cluster.
"""
return pulumi.get(self, "bds_version")
@property
@pulumi.getter(name="bigDataManagerUrl")
def big_data_manager_url(self) -> Optional[str]:
"""
The URL of Big Data Manager.
"""
return pulumi.get(self, "big_data_manager_url")
@property
@pulumi.getter(name="clouderaManagerUrl")
def cloudera_manager_url(self) -> Optional[str]:
"""
The URL of Cloudera Manager
"""
return pulumi.get(self, "cloudera_manager_url")
@property
@pulumi.getter(name="csqlCellVersion")
def csql_cell_version(self) -> Optional[str]:
"""
Big Data SQL version.
"""
return pulumi.get(self, "csql_cell_version")
@property
@pulumi.getter(name="dbVersion")
def db_version(self) -> Optional[str]:
"""
Cloud SQL query server database version.
"""
return pulumi.get(self, "db_version")
@property
@pulumi.getter(name="hueServerUrl")
def hue_server_url(self) -> Optional[str]:
"""
The URL of the Hue server.
"""
return pulumi.get(self, "hue_server_url")
@property
@pulumi.getter(name="osVersion")
def os_version(self) -> Optional[str]:
"""
Oracle Linux version installed in the cluster.
"""
return pulumi.get(self, "os_version")
@property
@pulumi.getter(name="timeCreated")
def time_created(self) -> Optional[str]:
"""
The time the cluster was created, shown as an RFC 3339 formatted datetime string.
"""
return pulumi.get(self, "time_created")
@property
@pulumi.getter(name="timeRefreshed")
def time_refreshed(self) -> Optional[str]:
"""
The time the cluster was automatically or manually refreshed, shown as an RFC 3339 formatted datetime string.
"""
return pulumi.get(self, "time_refreshed")
@pulumi.output_type
class BdsInstanceMasterNode(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "blockVolumeSizeInGbs":
suggest = "block_volume_size_in_gbs"
elif key == "numberOfNodes":
suggest = "number_of_nodes"
elif key == "subnetId":
suggest = "subnet_id"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in BdsInstanceMasterNode. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
BdsInstanceMasterNode.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
BdsInstanceMasterNode.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
block_volume_size_in_gbs: str,
number_of_nodes: int,
shape: str,
subnet_id: str):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB to be attached to a given node. All the details needed for attaching the block volume are managed by service itself.
:param int number_of_nodes: The number of nodes that form the cluster.
:param str shape: (Updatable) Shape of the node.
:param str subnet_id: The OCID of the subnet in which the node will be created.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "number_of_nodes", number_of_nodes)
pulumi.set(__self__, "shape", shape)
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB to be attached to a given node. All the details needed for attaching the block volume are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter(name="numberOfNodes")
def number_of_nodes(self) -> int:
"""
The number of nodes that form the cluster.
"""
return pulumi.get(self, "number_of_nodes")
@property
@pulumi.getter
def shape(self) -> str:
"""
(Updatable) Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> str:
"""
The OCID of the subnet in which the node will be created.
"""
return pulumi.get(self, "subnet_id")
@pulumi.output_type
class BdsInstanceNetworkConfig(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "cidrBlock":
suggest = "cidr_block"
elif key == "isNatGatewayRequired":
suggest = "is_nat_gateway_required"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in BdsInstanceNetworkConfig. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
BdsInstanceNetworkConfig.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
BdsInstanceNetworkConfig.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
cidr_block: Optional[str] = None,
is_nat_gateway_required: Optional[bool] = None):
"""
:param str cidr_block: The CIDR IP address block of the VCN.
:param bool is_nat_gateway_required: A boolean flag whether to configure a NAT gateway.
"""
if cidr_block is not None:
pulumi.set(__self__, "cidr_block", cidr_block)
if is_nat_gateway_required is not None:
pulumi.set(__self__, "is_nat_gateway_required", is_nat_gateway_required)
@property
@pulumi.getter(name="cidrBlock")
def cidr_block(self) -> Optional[str]:
"""
The CIDR IP address block of the VCN.
"""
return pulumi.get(self, "cidr_block")
@property
@pulumi.getter(name="isNatGatewayRequired")
def is_nat_gateway_required(self) -> Optional[bool]:
"""
A boolean flag whether to configure a NAT gateway.
"""
return pulumi.get(self, "is_nat_gateway_required")
@pulumi.output_type
class BdsInstanceNode(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "attachedBlockVolumes":
suggest = "attached_block_volumes"
elif key == "availabilityDomain":
suggest = "availability_domain"
elif key == "displayName":
suggest = "display_name"
elif key == "faultDomain":
suggest = "fault_domain"
elif key == "imageId":
suggest = "image_id"
elif key == "instanceId":
suggest = "instance_id"
elif key == "ipAddress":
suggest = "ip_address"
elif key == "nodeType":
suggest = "node_type"
elif key == "sshFingerprint":
suggest = "ssh_fingerprint"
elif key == "subnetId":
suggest = "subnet_id"
elif key == "timeCreated":
suggest = "time_created"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in BdsInstanceNode. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
BdsInstanceNode.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
BdsInstanceNode.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
attached_block_volumes: Optional[Sequence['outputs.BdsInstanceNodeAttachedBlockVolume']] = None,
availability_domain: Optional[str] = None,
display_name: Optional[str] = None,
fault_domain: Optional[str] = None,
hostname: Optional[str] = None,
image_id: Optional[str] = None,
instance_id: Optional[str] = None,
ip_address: Optional[str] = None,
node_type: Optional[str] = None,
shape: Optional[str] = None,
ssh_fingerprint: Optional[str] = None,
state: Optional[str] = None,
subnet_id: Optional[str] = None,
time_created: Optional[str] = None):
"""
:param Sequence['BdsInstanceNodeAttachedBlockVolumeArgs'] attached_block_volumes: The list of block volumes attached to a given node.
:param str availability_domain: The name of the availability domain in which the node is running.
:param str display_name: (Updatable) Name of the Big Data Service cluster.
:param str fault_domain: The name of the fault domain in which the node is running.
:param str hostname: The fully-qualified hostname (FQDN) of the node.
:param str image_id: The OCID of the image from which the node was created.
:param str instance_id: The OCID of the underlying Oracle Cloud Infrastructure Compute instance.
:param str ip_address: IP address of the node.
:param str node_type: The Big Data Service cluster node type.
:param str shape: (Updatable) Shape of the node.
:param str ssh_fingerprint: The fingerprint of the SSH key used for node access.
:param str state: The state of the cluster.
:param str subnet_id: The OCID of the subnet in which the node will be created.
:param str time_created: The time the cluster was created, shown as an RFC 3339 formatted datetime string.
"""
if attached_block_volumes is not None:
pulumi.set(__self__, "attached_block_volumes", attached_block_volumes)
if availability_domain is not None:
pulumi.set(__self__, "availability_domain", availability_domain)
if display_name is not None:
pulumi.set(__self__, "display_name", display_name)
if fault_domain is not None:
pulumi.set(__self__, "fault_domain", fault_domain)
if hostname is not None:
pulumi.set(__self__, "hostname", hostname)
if image_id is not None:
pulumi.set(__self__, "image_id", image_id)
if instance_id is not None:
pulumi.set(__self__, "instance_id", instance_id)
if ip_address is not None:
pulumi.set(__self__, "ip_address", ip_address)
if node_type is not None:
pulumi.set(__self__, "node_type", node_type)
if shape is not None:
pulumi.set(__self__, "shape", shape)
if ssh_fingerprint is not None:
pulumi.set(__self__, "ssh_fingerprint", ssh_fingerprint)
if state is not None:
pulumi.set(__self__, "state", state)
if subnet_id is not None:
pulumi.set(__self__, "subnet_id", subnet_id)
if time_created is not None:
pulumi.set(__self__, "time_created", time_created)
@property
@pulumi.getter(name="attachedBlockVolumes")
def attached_block_volumes(self) -> Optional[Sequence['outputs.BdsInstanceNodeAttachedBlockVolume']]:
"""
The list of block volumes attached to a given node.
"""
return pulumi.get(self, "attached_block_volumes")
@property
@pulumi.getter(name="availabilityDomain")
def availability_domain(self) -> Optional[str]:
"""
The name of the availability domain in which the node is running.
"""
return pulumi.get(self, "availability_domain")
@property
@pulumi.getter(name="displayName")
def display_name(self) -> Optional[str]:
"""
(Updatable) Name of the Big Data Service cluster.
"""
return pulumi.get(self, "display_name")
@property
@pulumi.getter(name="faultDomain")
def fault_domain(self) -> Optional[str]:
"""
The name of the fault domain in which the node is running.
"""
return pulumi.get(self, "fault_domain")
@property
@pulumi.getter
def hostname(self) -> Optional[str]:
"""
The fully-qualified hostname (FQDN) of the node.
"""
return pulumi.get(self, "hostname")
@property
@pulumi.getter(name="imageId")
def image_id(self) -> Optional[str]:
"""
The OCID of the image from which the node was created.
"""
return pulumi.get(self, "image_id")
@property
@pulumi.getter(name="instanceId")
def instance_id(self) -> Optional[str]:
"""
The OCID of the underlying Oracle Cloud Infrastructure Compute instance.
"""
return pulumi.get(self, "instance_id")
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> Optional[str]:
"""
IP address of the node.
"""
return pulumi.get(self, "ip_address")
@property
@pulumi.getter(name="nodeType")
def node_type(self) -> Optional[str]:
"""
The Big Data Service cluster node type.
"""
return pulumi.get(self, "node_type")
@property
@pulumi.getter
def shape(self) -> Optional[str]:
"""
(Updatable) Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="sshFingerprint")
def ssh_fingerprint(self) -> Optional[str]:
"""
The fingerprint of the SSH key used for node access.
"""
return pulumi.get(self, "ssh_fingerprint")
@property
@pulumi.getter
def state(self) -> Optional[str]:
"""
The state of the cluster.
"""
return pulumi.get(self, "state")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> Optional[str]:
"""
The OCID of the subnet in which the node will be created.
"""
return pulumi.get(self, "subnet_id")
@property
@pulumi.getter(name="timeCreated")
def time_created(self) -> Optional[str]:
"""
The time the cluster was created, shown as an RFC 3339 formatted datetime string.
"""
return pulumi.get(self, "time_created")
@pulumi.output_type
class BdsInstanceNodeAttachedBlockVolume(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "volumeAttachmentId":
suggest = "volume_attachment_id"
elif key == "volumeSizeInGbs":
suggest = "volume_size_in_gbs"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in BdsInstanceNodeAttachedBlockVolume. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
BdsInstanceNodeAttachedBlockVolume.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
BdsInstanceNodeAttachedBlockVolume.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
volume_attachment_id: Optional[str] = None,
volume_size_in_gbs: Optional[str] = None):
"""
:param str volume_attachment_id: The OCID of the volume attachment.
:param str volume_size_in_gbs: The size of the volume in GBs.
"""
if volume_attachment_id is not None:
pulumi.set(__self__, "volume_attachment_id", volume_attachment_id)
if volume_size_in_gbs is not None:
pulumi.set(__self__, "volume_size_in_gbs", volume_size_in_gbs)
@property
@pulumi.getter(name="volumeAttachmentId")
def volume_attachment_id(self) -> Optional[str]:
"""
The OCID of the volume attachment.
"""
return pulumi.get(self, "volume_attachment_id")
@property
@pulumi.getter(name="volumeSizeInGbs")
def volume_size_in_gbs(self) -> Optional[str]:
"""
The size of the volume in GBs.
"""
return pulumi.get(self, "volume_size_in_gbs")
@pulumi.output_type
class BdsInstanceUtilNode(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "blockVolumeSizeInGbs":
suggest = "block_volume_size_in_gbs"
elif key == "numberOfNodes":
suggest = "number_of_nodes"
elif key == "subnetId":
suggest = "subnet_id"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in BdsInstanceUtilNode. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
BdsInstanceUtilNode.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
BdsInstanceUtilNode.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
block_volume_size_in_gbs: str,
number_of_nodes: int,
shape: str,
subnet_id: str):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB to be attached to a given node. All the details needed for attaching the block volume are managed by service itself.
:param int number_of_nodes: The number of nodes that form the cluster.
:param str shape: (Updatable) Shape of the node.
:param str subnet_id: The OCID of the subnet in which the node will be created.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "number_of_nodes", number_of_nodes)
pulumi.set(__self__, "shape", shape)
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB to be attached to a given node. All the details needed for attaching the block volume are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter(name="numberOfNodes")
def number_of_nodes(self) -> int:
"""
The number of nodes that form the cluster.
"""
return pulumi.get(self, "number_of_nodes")
@property
@pulumi.getter
def shape(self) -> str:
"""
(Updatable) Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> str:
"""
The OCID of the subnet in which the node will be created.
"""
return pulumi.get(self, "subnet_id")
@pulumi.output_type
class BdsInstanceWorkerNode(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "blockVolumeSizeInGbs":
suggest = "block_volume_size_in_gbs"
elif key == "numberOfNodes":
suggest = "number_of_nodes"
elif key == "subnetId":
suggest = "subnet_id"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in BdsInstanceWorkerNode. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
BdsInstanceWorkerNode.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
BdsInstanceWorkerNode.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
block_volume_size_in_gbs: str,
number_of_nodes: int,
shape: str,
subnet_id: str):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB to be attached to a given node. All the details needed for attaching the block volume are managed by service itself.
:param int number_of_nodes: The number of nodes that form the cluster.
:param str shape: (Updatable) Shape of the node.
:param str subnet_id: The OCID of the subnet in which the node will be created.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "number_of_nodes", number_of_nodes)
pulumi.set(__self__, "shape", shape)
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB to be attached to a given node. All the details needed for attaching the block volume are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter(name="numberOfNodes")
def number_of_nodes(self) -> int:
"""
The number of nodes that form the cluster.
"""
return pulumi.get(self, "number_of_nodes")
@property
@pulumi.getter
def shape(self) -> str:
"""
(Updatable) Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> str:
"""
The OCID of the subnet in which the node will be created.
"""
return pulumi.get(self, "subnet_id")
@pulumi.output_type
class GetAutoScalingConfigurationPolicyResult(dict):
def __init__(__self__, *,
policy_type: str,
rules: Sequence['outputs.GetAutoScalingConfigurationPolicyRuleResult']):
"""
:param str policy_type: Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)
:param Sequence['GetAutoScalingConfigurationPolicyRuleArgs'] rules: The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.
"""
pulumi.set(__self__, "policy_type", policy_type)
pulumi.set(__self__, "rules", rules)
@property
@pulumi.getter(name="policyType")
def policy_type(self) -> str:
"""
Types of autoscale policies. Options are SCHEDULE-BASED or THRESHOLD-BASED. (Only THRESHOLD-BASED is supported in this release.)
"""
return pulumi.get(self, "policy_type")
@property
@pulumi.getter
def rules(self) -> Sequence['outputs.GetAutoScalingConfigurationPolicyRuleResult']:
"""
The list of rules for autoscaling. If an action has multiple rules, the last rule in the array will be applied.
"""
return pulumi.get(self, "rules")
@pulumi.output_type
class GetAutoScalingConfigurationPolicyRuleResult(dict):
def __init__(__self__, *,
action: str,
metric: 'outputs.GetAutoScalingConfigurationPolicyRuleMetricResult'):
"""
:param str action: The valid value are CHANGE_SHAPE_SCALE_UP or CHANGE_SHAPE_SCALE_DOWN.
:param 'GetAutoScalingConfigurationPolicyRuleMetricArgs' metric: Metric and threshold details for triggering an autoscale action.
"""
pulumi.set(__self__, "action", action)
pulumi.set(__self__, "metric", metric)
@property
@pulumi.getter
def action(self) -> str:
"""
The valid value are CHANGE_SHAPE_SCALE_UP or CHANGE_SHAPE_SCALE_DOWN.
"""
return pulumi.get(self, "action")
@property
@pulumi.getter
def metric(self) -> 'outputs.GetAutoScalingConfigurationPolicyRuleMetricResult':
"""
Metric and threshold details for triggering an autoscale action.
"""
return pulumi.get(self, "metric")
@pulumi.output_type
class GetAutoScalingConfigurationPolicyRuleMetricResult(dict):
def __init__(__self__, *,
metric_type: str,
threshold: 'outputs.GetAutoScalingConfigurationPolicyRuleMetricThresholdResult'):
"""
:param str metric_type: Allowed value is CPU_UTILIZATION.
:param 'GetAutoScalingConfigurationPolicyRuleMetricThresholdArgs' threshold: An autoscale action is triggered when a performance metric meets or exceeds a threshold.
"""
pulumi.set(__self__, "metric_type", metric_type)
pulumi.set(__self__, "threshold", threshold)
@property
@pulumi.getter(name="metricType")
def metric_type(self) -> str:
"""
Allowed value is CPU_UTILIZATION.
"""
return pulumi.get(self, "metric_type")
@property
@pulumi.getter
def threshold(self) -> 'outputs.GetAutoScalingConfigurationPolicyRuleMetricThresholdResult':
"""
An autoscale action is triggered when a performance metric meets or exceeds a threshold.
"""
return pulumi.get(self, "threshold")
@pulumi.output_type
class GetAutoScalingConfigurationPolicyRuleMetricThresholdResult(dict):
def __init__(__self__, *,
duration_in_minutes: int,
operator: str,
value: int):
"""
:param int duration_in_minutes: This value is the minimum period of time the metric value meets or exceeds the threshold value before the action is triggered. The value is in minutes.
:param str operator: The comparison operator to use. Options are greater than (GT) or less than (LT).
:param int value: Integer non-negative value. 0 < value < 100
"""
pulumi.set(__self__, "duration_in_minutes", duration_in_minutes)
pulumi.set(__self__, "operator", operator)
pulumi.set(__self__, "value", value)
@property
@pulumi.getter(name="durationInMinutes")
def duration_in_minutes(self) -> int:
"""
This value is the minimum period of time the metric value meets or exceeds the threshold value before the action is triggered. The value is in minutes.
"""
return pulumi.get(self, "duration_in_minutes")
@property
@pulumi.getter
def operator(self) -> str:
"""
The comparison operator to use. Options are greater than (GT) or less than (LT).
"""
return pulumi.get(self, "operator")
@property
@pulumi.getter
def value(self) -> int:
"""
Integer non-negative value. 0 < value < 100
"""
return pulumi.get(self, "value")
@pulumi.output_type
class GetBdsInstanceCloudSqlDetailsResult(dict):
def __init__(__self__, *,
block_volume_size_in_gbs: str,
ip_address: str,
is_kerberos_mapped_to_database_users: bool,
kerberos_details: Sequence['outputs.GetBdsInstanceCloudSqlDetailsKerberosDetailResult'],
shape: str):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
:param str ip_address: IP address of the node.
:param bool is_kerberos_mapped_to_database_users: Boolean flag specifying whether or not Kerberos principals are mapped to database users.
:param Sequence['GetBdsInstanceCloudSqlDetailsKerberosDetailArgs'] kerberos_details: Details about the Kerberos principals.
:param str shape: Shape of the node.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "ip_address", ip_address)
pulumi.set(__self__, "is_kerberos_mapped_to_database_users", is_kerberos_mapped_to_database_users)
pulumi.set(__self__, "kerberos_details", kerberos_details)
pulumi.set(__self__, "shape", shape)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> str:
"""
IP address of the node.
"""
return pulumi.get(self, "ip_address")
@property
@pulumi.getter(name="isKerberosMappedToDatabaseUsers")
def is_kerberos_mapped_to_database_users(self) -> bool:
"""
Boolean flag specifying whether or not Kerberos principals are mapped to database users.
"""
return pulumi.get(self, "is_kerberos_mapped_to_database_users")
@property
@pulumi.getter(name="kerberosDetails")
def kerberos_details(self) -> Sequence['outputs.GetBdsInstanceCloudSqlDetailsKerberosDetailResult']:
"""
Details about the Kerberos principals.
"""
return pulumi.get(self, "kerberos_details")
@property
@pulumi.getter
def shape(self) -> str:
"""
Shape of the node.
"""
return pulumi.get(self, "shape")
@pulumi.output_type
class GetBdsInstanceCloudSqlDetailsKerberosDetailResult(dict):
def __init__(__self__, *,
keytab_file: str,
principal_name: str):
"""
:param str keytab_file: Location of the keytab file
:param str principal_name: Name of the Kerberos principal.
"""
pulumi.set(__self__, "keytab_file", keytab_file)
pulumi.set(__self__, "principal_name", principal_name)
@property
@pulumi.getter(name="keytabFile")
def keytab_file(self) -> str:
"""
Location of the keytab file
"""
return pulumi.get(self, "keytab_file")
@property
@pulumi.getter(name="principalName")
def principal_name(self) -> str:
"""
Name of the Kerberos principal.
"""
return pulumi.get(self, "principal_name")
@pulumi.output_type
class GetBdsInstanceClusterDetailsResult(dict):
def __init__(__self__, *,
ambari_url: str,
bd_cell_version: str,
bda_version: str,
bdm_version: str,
bds_version: str,
big_data_manager_url: str,
cloudera_manager_url: str,
csql_cell_version: str,
db_version: str,
hue_server_url: str,
os_version: str,
time_created: str,
time_refreshed: str):
"""
:param str ambari_url: The URL of Ambari
:param str bd_cell_version: Cloud SQL cell version.
:param str bda_version: BDA version installed in the cluster
:param str bdm_version: Big Data Manager version installed in the cluster.
:param str bds_version: Big Data Service version installed in the cluster.
:param str big_data_manager_url: The URL of Big Data Manager.
:param str cloudera_manager_url: The URL of Cloudera Manager
:param str csql_cell_version: Big Data SQL version.
:param str db_version: Cloud SQL query server database version.
:param str hue_server_url: The URL of the Hue server.
:param str os_version: Oracle Linux version installed in the cluster.
:param str time_created: The time the cluster was created, shown as an RFC 3339 formatted datetime string.
:param str time_refreshed: The time the cluster was automatically or manually refreshed, shown as an RFC 3339 formatted datetime string.
"""
pulumi.set(__self__, "ambari_url", ambari_url)
pulumi.set(__self__, "bd_cell_version", bd_cell_version)
pulumi.set(__self__, "bda_version", bda_version)
pulumi.set(__self__, "bdm_version", bdm_version)
pulumi.set(__self__, "bds_version", bds_version)
pulumi.set(__self__, "big_data_manager_url", big_data_manager_url)
pulumi.set(__self__, "cloudera_manager_url", cloudera_manager_url)
pulumi.set(__self__, "csql_cell_version", csql_cell_version)
pulumi.set(__self__, "db_version", db_version)
pulumi.set(__self__, "hue_server_url", hue_server_url)
pulumi.set(__self__, "os_version", os_version)
pulumi.set(__self__, "time_created", time_created)
pulumi.set(__self__, "time_refreshed", time_refreshed)
@property
@pulumi.getter(name="ambariUrl")
def ambari_url(self) -> str:
"""
The URL of Ambari
"""
return pulumi.get(self, "ambari_url")
@property
@pulumi.getter(name="bdCellVersion")
def bd_cell_version(self) -> str:
"""
Cloud SQL cell version.
"""
return pulumi.get(self, "bd_cell_version")
@property
@pulumi.getter(name="bdaVersion")
def bda_version(self) -> str:
"""
BDA version installed in the cluster
"""
return pulumi.get(self, "bda_version")
@property
@pulumi.getter(name="bdmVersion")
def bdm_version(self) -> str:
"""
Big Data Manager version installed in the cluster.
"""
return pulumi.get(self, "bdm_version")
@property
@pulumi.getter(name="bdsVersion")
def bds_version(self) -> str:
"""
Big Data Service version installed in the cluster.
"""
return pulumi.get(self, "bds_version")
@property
@pulumi.getter(name="bigDataManagerUrl")
def big_data_manager_url(self) -> str:
"""
The URL of Big Data Manager.
"""
return pulumi.get(self, "big_data_manager_url")
@property
@pulumi.getter(name="clouderaManagerUrl")
def cloudera_manager_url(self) -> str:
"""
The URL of Cloudera Manager
"""
return pulumi.get(self, "cloudera_manager_url")
@property
@pulumi.getter(name="csqlCellVersion")
def csql_cell_version(self) -> str:
"""
Big Data SQL version.
"""
return pulumi.get(self, "csql_cell_version")
@property
@pulumi.getter(name="dbVersion")
def db_version(self) -> str:
"""
Cloud SQL query server database version.
"""
return pulumi.get(self, "db_version")
@property
@pulumi.getter(name="hueServerUrl")
def hue_server_url(self) -> str:
"""
The URL of the Hue server.
"""
return pulumi.get(self, "hue_server_url")
@property
@pulumi.getter(name="osVersion")
def os_version(self) -> str:
"""
Oracle Linux version installed in the cluster.
"""
return pulumi.get(self, "os_version")
@property
@pulumi.getter(name="timeCreated")
def time_created(self) -> str:
"""
The time the cluster was created, shown as an RFC 3339 formatted datetime string.
"""
return pulumi.get(self, "time_created")
@property
@pulumi.getter(name="timeRefreshed")
def time_refreshed(self) -> str:
"""
The time the cluster was automatically or manually refreshed, shown as an RFC 3339 formatted datetime string.
"""
return pulumi.get(self, "time_refreshed")
@pulumi.output_type
class GetBdsInstanceMasterNodeResult(dict):
def __init__(__self__, *,
block_volume_size_in_gbs: str,
number_of_nodes: int,
shape: str,
subnet_id: str):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
:param int number_of_nodes: The number of nodes that form the cluster.
:param str shape: Shape of the node.
:param str subnet_id: The OCID of the subnet in which the node is to be created.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "number_of_nodes", number_of_nodes)
pulumi.set(__self__, "shape", shape)
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter(name="numberOfNodes")
def number_of_nodes(self) -> int:
"""
The number of nodes that form the cluster.
"""
return pulumi.get(self, "number_of_nodes")
@property
@pulumi.getter
def shape(self) -> str:
"""
Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> str:
"""
The OCID of the subnet in which the node is to be created.
"""
return pulumi.get(self, "subnet_id")
@pulumi.output_type
class GetBdsInstanceNetworkConfigResult(dict):
def __init__(__self__, *,
cidr_block: str,
is_nat_gateway_required: bool):
"""
:param str cidr_block: The CIDR IP address block of the VCN.
:param bool is_nat_gateway_required: A boolean flag whether to configure a NAT gateway.
"""
pulumi.set(__self__, "cidr_block", cidr_block)
pulumi.set(__self__, "is_nat_gateway_required", is_nat_gateway_required)
@property
@pulumi.getter(name="cidrBlock")
def cidr_block(self) -> str:
"""
The CIDR IP address block of the VCN.
"""
return pulumi.get(self, "cidr_block")
@property
@pulumi.getter(name="isNatGatewayRequired")
def is_nat_gateway_required(self) -> bool:
"""
A boolean flag whether to configure a NAT gateway.
"""
return pulumi.get(self, "is_nat_gateway_required")
@pulumi.output_type
class GetBdsInstanceNodeResult(dict):
def __init__(__self__, *,
attached_block_volumes: Sequence['outputs.GetBdsInstanceNodeAttachedBlockVolumeResult'],
availability_domain: str,
display_name: str,
fault_domain: str,
hostname: str,
image_id: str,
instance_id: str,
ip_address: str,
node_type: str,
shape: str,
ssh_fingerprint: str,
state: str,
subnet_id: str,
time_created: str):
"""
:param Sequence['GetBdsInstanceNodeAttachedBlockVolumeArgs'] attached_block_volumes: The list of block volumes attached to a given node.
:param str availability_domain: The name of the availability domain in which the node is running.
:param str display_name: The name of the node.
:param str fault_domain: The name of the fault domain in which the node is running.
:param str hostname: The fully-qualified hostname (FQDN) of the node.
:param str image_id: The OCID of the image from which the node was created.
:param str instance_id: The OCID of the underlying Oracle Cloud Infrastructure Compute instance.
:param str ip_address: IP address of the node.
:param str node_type: Cluster node type.
:param str shape: Shape of the node.
:param str ssh_fingerprint: The fingerprint of the SSH key used for node access.
:param str state: The state of the cluster.
:param str subnet_id: The OCID of the subnet in which the node is to be created.
:param str time_created: The time the cluster was created, shown as an RFC 3339 formatted datetime string.
"""
pulumi.set(__self__, "attached_block_volumes", attached_block_volumes)
pulumi.set(__self__, "availability_domain", availability_domain)
pulumi.set(__self__, "display_name", display_name)
pulumi.set(__self__, "fault_domain", fault_domain)
pulumi.set(__self__, "hostname", hostname)
pulumi.set(__self__, "image_id", image_id)
pulumi.set(__self__, "instance_id", instance_id)
pulumi.set(__self__, "ip_address", ip_address)
pulumi.set(__self__, "node_type", node_type)
pulumi.set(__self__, "shape", shape)
pulumi.set(__self__, "ssh_fingerprint", ssh_fingerprint)
pulumi.set(__self__, "state", state)
pulumi.set(__self__, "subnet_id", subnet_id)
pulumi.set(__self__, "time_created", time_created)
@property
@pulumi.getter(name="attachedBlockVolumes")
def attached_block_volumes(self) -> Sequence['outputs.GetBdsInstanceNodeAttachedBlockVolumeResult']:
"""
The list of block volumes attached to a given node.
"""
return pulumi.get(self, "attached_block_volumes")
@property
@pulumi.getter(name="availabilityDomain")
def availability_domain(self) -> str:
"""
The name of the availability domain in which the node is running.
"""
return pulumi.get(self, "availability_domain")
@property
@pulumi.getter(name="displayName")
def display_name(self) -> str:
"""
The name of the node.
"""
return pulumi.get(self, "display_name")
@property
@pulumi.getter(name="faultDomain")
def fault_domain(self) -> str:
"""
The name of the fault domain in which the node is running.
"""
return pulumi.get(self, "fault_domain")
@property
@pulumi.getter
def hostname(self) -> str:
"""
The fully-qualified hostname (FQDN) of the node.
"""
return pulumi.get(self, "hostname")
@property
@pulumi.getter(name="imageId")
def image_id(self) -> str:
"""
The OCID of the image from which the node was created.
"""
return pulumi.get(self, "image_id")
@property
@pulumi.getter(name="instanceId")
def instance_id(self) -> str:
"""
The OCID of the underlying Oracle Cloud Infrastructure Compute instance.
"""
return pulumi.get(self, "instance_id")
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> str:
"""
IP address of the node.
"""
return pulumi.get(self, "ip_address")
@property
@pulumi.getter(name="nodeType")
def node_type(self) -> str:
"""
Cluster node type.
"""
return pulumi.get(self, "node_type")
@property
@pulumi.getter
def shape(self) -> str:
"""
Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="sshFingerprint")
def ssh_fingerprint(self) -> str:
"""
The fingerprint of the SSH key used for node access.
"""
return pulumi.get(self, "ssh_fingerprint")
@property
@pulumi.getter
def state(self) -> str:
"""
The state of the cluster.
"""
return pulumi.get(self, "state")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> str:
"""
The OCID of the subnet in which the node is to be created.
"""
return pulumi.get(self, "subnet_id")
@property
@pulumi.getter(name="timeCreated")
def time_created(self) -> str:
"""
The time the cluster was created, shown as an RFC 3339 formatted datetime string.
"""
return pulumi.get(self, "time_created")
@pulumi.output_type
class GetBdsInstanceNodeAttachedBlockVolumeResult(dict):
def __init__(__self__, *,
volume_attachment_id: str,
volume_size_in_gbs: str):
"""
:param str volume_attachment_id: The OCID of the volume attachment.
:param str volume_size_in_gbs: The size of the volume in GBs.
"""
pulumi.set(__self__, "volume_attachment_id", volume_attachment_id)
pulumi.set(__self__, "volume_size_in_gbs", volume_size_in_gbs)
@property
@pulumi.getter(name="volumeAttachmentId")
def volume_attachment_id(self) -> str:
"""
The OCID of the volume attachment.
"""
return pulumi.get(self, "volume_attachment_id")
@property
@pulumi.getter(name="volumeSizeInGbs")
def volume_size_in_gbs(self) -> str:
"""
The size of the volume in GBs.
"""
return pulumi.get(self, "volume_size_in_gbs")
@pulumi.output_type
class GetBdsInstanceUtilNodeResult(dict):
def __init__(__self__, *,
block_volume_size_in_gbs: str,
number_of_nodes: int,
shape: str,
subnet_id: str):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
:param int number_of_nodes: The number of nodes that form the cluster.
:param str shape: Shape of the node.
:param str subnet_id: The OCID of the subnet in which the node is to be created.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "number_of_nodes", number_of_nodes)
pulumi.set(__self__, "shape", shape)
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter(name="numberOfNodes")
def number_of_nodes(self) -> int:
"""
The number of nodes that form the cluster.
"""
return pulumi.get(self, "number_of_nodes")
@property
@pulumi.getter
def shape(self) -> str:
"""
Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> str:
"""
The OCID of the subnet in which the node is to be created.
"""
return pulumi.get(self, "subnet_id")
@pulumi.output_type
class GetBdsInstanceWorkerNodeResult(dict):
def __init__(__self__, *,
block_volume_size_in_gbs: str,
number_of_nodes: int,
shape: str,
subnet_id: str):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
:param int number_of_nodes: The number of nodes that form the cluster.
:param str shape: Shape of the node.
:param str subnet_id: The OCID of the subnet in which the node is to be created.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "number_of_nodes", number_of_nodes)
pulumi.set(__self__, "shape", shape)
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter(name="numberOfNodes")
def number_of_nodes(self) -> int:
"""
The number of nodes that form the cluster.
"""
return pulumi.get(self, "number_of_nodes")
@property
@pulumi.getter
def shape(self) -> str:
"""
Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> str:
"""
The OCID of the subnet in which the node is to be created.
"""
return pulumi.get(self, "subnet_id")
@pulumi.output_type
class GetBdsInstancesBdsInstanceResult(dict):
def __init__(__self__, *,
cloud_sql_details: 'outputs.GetBdsInstancesBdsInstanceCloudSqlDetailsResult',
cluster_admin_password: str,
cluster_details: 'outputs.GetBdsInstancesBdsInstanceClusterDetailsResult',
cluster_public_key: str,
cluster_version: str,
compartment_id: str,
created_by: str,
defined_tags: Mapping[str, Any],
display_name: str,
freeform_tags: Mapping[str, Any],
id: str,
is_cloud_sql_configured: bool,
is_high_availability: bool,
is_secure: bool,
master_node: 'outputs.GetBdsInstancesBdsInstanceMasterNodeResult',
network_config: 'outputs.GetBdsInstancesBdsInstanceNetworkConfigResult',
nodes: Sequence['outputs.GetBdsInstancesBdsInstanceNodeResult'],
number_of_nodes: int,
state: str,
time_created: str,
time_updated: str,
util_node: 'outputs.GetBdsInstancesBdsInstanceUtilNodeResult',
worker_node: 'outputs.GetBdsInstancesBdsInstanceWorkerNodeResult'):
"""
:param 'GetBdsInstancesBdsInstanceCloudSqlDetailsArgs' cloud_sql_details: The information about added Cloud SQL capability
:param 'GetBdsInstancesBdsInstanceClusterDetailsArgs' cluster_details: Specific info about a Hadoop cluster
:param str cluster_version: Version of the Hadoop distribution.
:param str compartment_id: The OCID of the compartment.
:param str created_by: The user who created the cluster.
:param Mapping[str, Any] defined_tags: Defined tags for this resource. Each key is predefined and scoped to a namespace. For example, `{"foo-namespace": {"bar-key": "value"}}`
:param str display_name: A filter to return only resources that match the entire display name given.
:param Mapping[str, Any] freeform_tags: Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. For example, `{"bar-key": "value"}`
:param str id: The OCID of the Big Data Service resource.
:param bool is_cloud_sql_configured: Boolean flag specifying whether or not Cloud SQL should be configured.
:param bool is_high_availability: Boolean flag specifying whether or not the cluster is highly available (HA)
:param bool is_secure: Boolean flag specifying whether or not the cluster should be set up as secure.
:param 'GetBdsInstancesBdsInstanceNetworkConfigArgs' network_config: Additional configuration of the user's network.
:param Sequence['GetBdsInstancesBdsInstanceNodeArgs'] nodes: The list of nodes in the cluster.
:param int number_of_nodes: The number of nodes that form the cluster.
:param str state: The state of the cluster.
:param str time_created: The time the cluster was created, shown as an RFC 3339 formatted datetime string.
:param str time_updated: The time the cluster was updated, shown as an RFC 3339 formatted datetime string.
"""
pulumi.set(__self__, "cloud_sql_details", cloud_sql_details)
pulumi.set(__self__, "cluster_admin_password", cluster_admin_password)
pulumi.set(__self__, "cluster_details", cluster_details)
pulumi.set(__self__, "cluster_public_key", cluster_public_key)
pulumi.set(__self__, "cluster_version", cluster_version)
pulumi.set(__self__, "compartment_id", compartment_id)
pulumi.set(__self__, "created_by", created_by)
pulumi.set(__self__, "defined_tags", defined_tags)
pulumi.set(__self__, "display_name", display_name)
pulumi.set(__self__, "freeform_tags", freeform_tags)
pulumi.set(__self__, "id", id)
pulumi.set(__self__, "is_cloud_sql_configured", is_cloud_sql_configured)
pulumi.set(__self__, "is_high_availability", is_high_availability)
pulumi.set(__self__, "is_secure", is_secure)
pulumi.set(__self__, "master_node", master_node)
pulumi.set(__self__, "network_config", network_config)
pulumi.set(__self__, "nodes", nodes)
pulumi.set(__self__, "number_of_nodes", number_of_nodes)
pulumi.set(__self__, "state", state)
pulumi.set(__self__, "time_created", time_created)
pulumi.set(__self__, "time_updated", time_updated)
pulumi.set(__self__, "util_node", util_node)
pulumi.set(__self__, "worker_node", worker_node)
@property
@pulumi.getter(name="cloudSqlDetails")
def cloud_sql_details(self) -> 'outputs.GetBdsInstancesBdsInstanceCloudSqlDetailsResult':
"""
The information about added Cloud SQL capability
"""
return pulumi.get(self, "cloud_sql_details")
@property
@pulumi.getter(name="clusterAdminPassword")
def cluster_admin_password(self) -> str:
return pulumi.get(self, "cluster_admin_password")
@property
@pulumi.getter(name="clusterDetails")
def cluster_details(self) -> 'outputs.GetBdsInstancesBdsInstanceClusterDetailsResult':
"""
Specific info about a Hadoop cluster
"""
return pulumi.get(self, "cluster_details")
@property
@pulumi.getter(name="clusterPublicKey")
def cluster_public_key(self) -> str:
return pulumi.get(self, "cluster_public_key")
@property
@pulumi.getter(name="clusterVersion")
def cluster_version(self) -> str:
"""
Version of the Hadoop distribution.
"""
return pulumi.get(self, "cluster_version")
@property
@pulumi.getter(name="compartmentId")
def compartment_id(self) -> str:
"""
The OCID of the compartment.
"""
return pulumi.get(self, "compartment_id")
@property
@pulumi.getter(name="createdBy")
def created_by(self) -> str:
"""
The user who created the cluster.
"""
return pulumi.get(self, "created_by")
@property
@pulumi.getter(name="definedTags")
def defined_tags(self) -> Mapping[str, Any]:
"""
Defined tags for this resource. Each key is predefined and scoped to a namespace. For example, `{"foo-namespace": {"bar-key": "value"}}`
"""
return pulumi.get(self, "defined_tags")
@property
@pulumi.getter(name="displayName")
def display_name(self) -> str:
"""
A filter to return only resources that match the entire display name given.
"""
return pulumi.get(self, "display_name")
@property
@pulumi.getter(name="freeformTags")
def freeform_tags(self) -> Mapping[str, Any]:
"""
Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. For example, `{"bar-key": "value"}`
"""
return pulumi.get(self, "freeform_tags")
@property
@pulumi.getter
def id(self) -> str:
"""
The OCID of the Big Data Service resource.
"""
return pulumi.get(self, "id")
@property
@pulumi.getter(name="isCloudSqlConfigured")
def is_cloud_sql_configured(self) -> bool:
"""
Boolean flag specifying whether or not Cloud SQL should be configured.
"""
return pulumi.get(self, "is_cloud_sql_configured")
@property
@pulumi.getter(name="isHighAvailability")
def is_high_availability(self) -> bool:
"""
Boolean flag specifying whether or not the cluster is highly available (HA)
"""
return pulumi.get(self, "is_high_availability")
@property
@pulumi.getter(name="isSecure")
def is_secure(self) -> bool:
"""
Boolean flag specifying whether or not the cluster should be set up as secure.
"""
return pulumi.get(self, "is_secure")
@property
@pulumi.getter(name="masterNode")
def master_node(self) -> 'outputs.GetBdsInstancesBdsInstanceMasterNodeResult':
return pulumi.get(self, "master_node")
@property
@pulumi.getter(name="networkConfig")
def network_config(self) -> 'outputs.GetBdsInstancesBdsInstanceNetworkConfigResult':
"""
Additional configuration of the user's network.
"""
return pulumi.get(self, "network_config")
@property
@pulumi.getter
def nodes(self) -> Sequence['outputs.GetBdsInstancesBdsInstanceNodeResult']:
"""
The list of nodes in the cluster.
"""
return pulumi.get(self, "nodes")
@property
@pulumi.getter(name="numberOfNodes")
def number_of_nodes(self) -> int:
"""
The number of nodes that form the cluster.
"""
return pulumi.get(self, "number_of_nodes")
@property
@pulumi.getter
def state(self) -> str:
"""
The state of the cluster.
"""
return pulumi.get(self, "state")
@property
@pulumi.getter(name="timeCreated")
def time_created(self) -> str:
"""
The time the cluster was created, shown as an RFC 3339 formatted datetime string.
"""
return pulumi.get(self, "time_created")
@property
@pulumi.getter(name="timeUpdated")
def time_updated(self) -> str:
"""
The time the cluster was updated, shown as an RFC 3339 formatted datetime string.
"""
return pulumi.get(self, "time_updated")
@property
@pulumi.getter(name="utilNode")
def util_node(self) -> 'outputs.GetBdsInstancesBdsInstanceUtilNodeResult':
return pulumi.get(self, "util_node")
@property
@pulumi.getter(name="workerNode")
def worker_node(self) -> 'outputs.GetBdsInstancesBdsInstanceWorkerNodeResult':
return pulumi.get(self, "worker_node")
@pulumi.output_type
class GetBdsInstancesBdsInstanceCloudSqlDetailsResult(dict):
def __init__(__self__, *,
block_volume_size_in_gbs: str,
ip_address: str,
is_kerberos_mapped_to_database_users: bool,
kerberos_details: Sequence['outputs.GetBdsInstancesBdsInstanceCloudSqlDetailsKerberosDetailResult'],
shape: str):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
:param str ip_address: IP address of the node.
:param bool is_kerberos_mapped_to_database_users: Boolean flag specifying whether or not Kerberos principals are mapped to database users.
:param Sequence['GetBdsInstancesBdsInstanceCloudSqlDetailsKerberosDetailArgs'] kerberos_details: Details about the Kerberos principals.
:param str shape: Shape of the node.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "ip_address", ip_address)
pulumi.set(__self__, "is_kerberos_mapped_to_database_users", is_kerberos_mapped_to_database_users)
pulumi.set(__self__, "kerberos_details", kerberos_details)
pulumi.set(__self__, "shape", shape)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> str:
"""
IP address of the node.
"""
return pulumi.get(self, "ip_address")
@property
@pulumi.getter(name="isKerberosMappedToDatabaseUsers")
def is_kerberos_mapped_to_database_users(self) -> bool:
"""
Boolean flag specifying whether or not Kerberos principals are mapped to database users.
"""
return pulumi.get(self, "is_kerberos_mapped_to_database_users")
@property
@pulumi.getter(name="kerberosDetails")
def kerberos_details(self) -> Sequence['outputs.GetBdsInstancesBdsInstanceCloudSqlDetailsKerberosDetailResult']:
"""
Details about the Kerberos principals.
"""
return pulumi.get(self, "kerberos_details")
@property
@pulumi.getter
def shape(self) -> str:
"""
Shape of the node.
"""
return pulumi.get(self, "shape")
@pulumi.output_type
class GetBdsInstancesBdsInstanceCloudSqlDetailsKerberosDetailResult(dict):
def __init__(__self__, *,
keytab_file: str,
principal_name: str):
"""
:param str keytab_file: Location of the keytab file
:param str principal_name: Name of the Kerberos principal.
"""
pulumi.set(__self__, "keytab_file", keytab_file)
pulumi.set(__self__, "principal_name", principal_name)
@property
@pulumi.getter(name="keytabFile")
def keytab_file(self) -> str:
"""
Location of the keytab file
"""
return pulumi.get(self, "keytab_file")
@property
@pulumi.getter(name="principalName")
def principal_name(self) -> str:
"""
Name of the Kerberos principal.
"""
return pulumi.get(self, "principal_name")
@pulumi.output_type
class GetBdsInstancesBdsInstanceClusterDetailsResult(dict):
def __init__(__self__, *,
ambari_url: str,
bd_cell_version: str,
bda_version: str,
bdm_version: str,
bds_version: str,
big_data_manager_url: str,
cloudera_manager_url: str,
csql_cell_version: str,
db_version: str,
hue_server_url: str,
os_version: str,
time_created: str,
time_refreshed: str):
"""
:param str ambari_url: The URL of Ambari
:param str bd_cell_version: Cloud SQL cell version.
:param str bda_version: BDA version installed in the cluster
:param str bdm_version: Big Data Manager version installed in the cluster.
:param str bds_version: Big Data Service version installed in the cluster.
:param str big_data_manager_url: The URL of Big Data Manager.
:param str cloudera_manager_url: The URL of Cloudera Manager
:param str csql_cell_version: Big Data SQL version.
:param str db_version: Cloud SQL query server database version.
:param str hue_server_url: The URL of the Hue server.
:param str os_version: Oracle Linux version installed in the cluster.
:param str time_created: The time the cluster was created, shown as an RFC 3339 formatted datetime string.
:param str time_refreshed: The time the cluster was automatically or manually refreshed, shown as an RFC 3339 formatted datetime string.
"""
pulumi.set(__self__, "ambari_url", ambari_url)
pulumi.set(__self__, "bd_cell_version", bd_cell_version)
pulumi.set(__self__, "bda_version", bda_version)
pulumi.set(__self__, "bdm_version", bdm_version)
pulumi.set(__self__, "bds_version", bds_version)
pulumi.set(__self__, "big_data_manager_url", big_data_manager_url)
pulumi.set(__self__, "cloudera_manager_url", cloudera_manager_url)
pulumi.set(__self__, "csql_cell_version", csql_cell_version)
pulumi.set(__self__, "db_version", db_version)
pulumi.set(__self__, "hue_server_url", hue_server_url)
pulumi.set(__self__, "os_version", os_version)
pulumi.set(__self__, "time_created", time_created)
pulumi.set(__self__, "time_refreshed", time_refreshed)
@property
@pulumi.getter(name="ambariUrl")
def ambari_url(self) -> str:
"""
The URL of Ambari
"""
return pulumi.get(self, "ambari_url")
@property
@pulumi.getter(name="bdCellVersion")
def bd_cell_version(self) -> str:
"""
Cloud SQL cell version.
"""
return pulumi.get(self, "bd_cell_version")
@property
@pulumi.getter(name="bdaVersion")
def bda_version(self) -> str:
"""
BDA version installed in the cluster
"""
return pulumi.get(self, "bda_version")
@property
@pulumi.getter(name="bdmVersion")
def bdm_version(self) -> str:
"""
Big Data Manager version installed in the cluster.
"""
return pulumi.get(self, "bdm_version")
@property
@pulumi.getter(name="bdsVersion")
def bds_version(self) -> str:
"""
Big Data Service version installed in the cluster.
"""
return pulumi.get(self, "bds_version")
@property
@pulumi.getter(name="bigDataManagerUrl")
def big_data_manager_url(self) -> str:
"""
The URL of Big Data Manager.
"""
return pulumi.get(self, "big_data_manager_url")
@property
@pulumi.getter(name="clouderaManagerUrl")
def cloudera_manager_url(self) -> str:
"""
The URL of Cloudera Manager
"""
return pulumi.get(self, "cloudera_manager_url")
@property
@pulumi.getter(name="csqlCellVersion")
def csql_cell_version(self) -> str:
"""
Big Data SQL version.
"""
return pulumi.get(self, "csql_cell_version")
@property
@pulumi.getter(name="dbVersion")
def db_version(self) -> str:
"""
Cloud SQL query server database version.
"""
return pulumi.get(self, "db_version")
@property
@pulumi.getter(name="hueServerUrl")
def hue_server_url(self) -> str:
"""
The URL of the Hue server.
"""
return pulumi.get(self, "hue_server_url")
@property
@pulumi.getter(name="osVersion")
def os_version(self) -> str:
"""
Oracle Linux version installed in the cluster.
"""
return pulumi.get(self, "os_version")
@property
@pulumi.getter(name="timeCreated")
def time_created(self) -> str:
"""
The time the cluster was created, shown as an RFC 3339 formatted datetime string.
"""
return pulumi.get(self, "time_created")
@property
@pulumi.getter(name="timeRefreshed")
def time_refreshed(self) -> str:
"""
The time the cluster was automatically or manually refreshed, shown as an RFC 3339 formatted datetime string.
"""
return pulumi.get(self, "time_refreshed")
@pulumi.output_type
class GetBdsInstancesBdsInstanceMasterNodeResult(dict):
def __init__(__self__, *,
block_volume_size_in_gbs: str,
number_of_nodes: int,
shape: str,
subnet_id: str):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
:param int number_of_nodes: The number of nodes that form the cluster.
:param str shape: Shape of the node.
:param str subnet_id: The OCID of the subnet in which the node is to be created.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "number_of_nodes", number_of_nodes)
pulumi.set(__self__, "shape", shape)
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter(name="numberOfNodes")
def number_of_nodes(self) -> int:
"""
The number of nodes that form the cluster.
"""
return pulumi.get(self, "number_of_nodes")
@property
@pulumi.getter
def shape(self) -> str:
"""
Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> str:
"""
The OCID of the subnet in which the node is to be created.
"""
return pulumi.get(self, "subnet_id")
@pulumi.output_type
class GetBdsInstancesBdsInstanceNetworkConfigResult(dict):
def __init__(__self__, *,
cidr_block: str,
is_nat_gateway_required: bool):
"""
:param str cidr_block: The CIDR IP address block of the VCN.
:param bool is_nat_gateway_required: A boolean flag whether to configure a NAT gateway.
"""
pulumi.set(__self__, "cidr_block", cidr_block)
pulumi.set(__self__, "is_nat_gateway_required", is_nat_gateway_required)
@property
@pulumi.getter(name="cidrBlock")
def cidr_block(self) -> str:
"""
The CIDR IP address block of the VCN.
"""
return pulumi.get(self, "cidr_block")
@property
@pulumi.getter(name="isNatGatewayRequired")
def is_nat_gateway_required(self) -> bool:
"""
A boolean flag whether to configure a NAT gateway.
"""
return pulumi.get(self, "is_nat_gateway_required")
@pulumi.output_type
class GetBdsInstancesBdsInstanceNodeResult(dict):
def __init__(__self__, *,
attached_block_volumes: Sequence['outputs.GetBdsInstancesBdsInstanceNodeAttachedBlockVolumeResult'],
availability_domain: str,
display_name: str,
fault_domain: str,
hostname: str,
image_id: str,
instance_id: str,
ip_address: str,
node_type: str,
shape: str,
ssh_fingerprint: str,
state: str,
subnet_id: str,
time_created: str):
"""
:param Sequence['GetBdsInstancesBdsInstanceNodeAttachedBlockVolumeArgs'] attached_block_volumes: The list of block volumes attached to a given node.
:param str availability_domain: The name of the availability domain in which the node is running.
:param str display_name: A filter to return only resources that match the entire display name given.
:param str fault_domain: The name of the fault domain in which the node is running.
:param str hostname: The fully-qualified hostname (FQDN) of the node.
:param str image_id: The OCID of the image from which the node was created.
:param str instance_id: The OCID of the underlying Oracle Cloud Infrastructure Compute instance.
:param str ip_address: IP address of the node.
:param str node_type: Cluster node type.
:param str shape: Shape of the node.
:param str ssh_fingerprint: The fingerprint of the SSH key used for node access.
:param str state: The state of the cluster.
:param str subnet_id: The OCID of the subnet in which the node is to be created.
:param str time_created: The time the cluster was created, shown as an RFC 3339 formatted datetime string.
"""
pulumi.set(__self__, "attached_block_volumes", attached_block_volumes)
pulumi.set(__self__, "availability_domain", availability_domain)
pulumi.set(__self__, "display_name", display_name)
pulumi.set(__self__, "fault_domain", fault_domain)
pulumi.set(__self__, "hostname", hostname)
pulumi.set(__self__, "image_id", image_id)
pulumi.set(__self__, "instance_id", instance_id)
pulumi.set(__self__, "ip_address", ip_address)
pulumi.set(__self__, "node_type", node_type)
pulumi.set(__self__, "shape", shape)
pulumi.set(__self__, "ssh_fingerprint", ssh_fingerprint)
pulumi.set(__self__, "state", state)
pulumi.set(__self__, "subnet_id", subnet_id)
pulumi.set(__self__, "time_created", time_created)
@property
@pulumi.getter(name="attachedBlockVolumes")
def attached_block_volumes(self) -> Sequence['outputs.GetBdsInstancesBdsInstanceNodeAttachedBlockVolumeResult']:
"""
The list of block volumes attached to a given node.
"""
return pulumi.get(self, "attached_block_volumes")
@property
@pulumi.getter(name="availabilityDomain")
def availability_domain(self) -> str:
"""
The name of the availability domain in which the node is running.
"""
return pulumi.get(self, "availability_domain")
@property
@pulumi.getter(name="displayName")
def display_name(self) -> str:
"""
A filter to return only resources that match the entire display name given.
"""
return pulumi.get(self, "display_name")
@property
@pulumi.getter(name="faultDomain")
def fault_domain(self) -> str:
"""
The name of the fault domain in which the node is running.
"""
return pulumi.get(self, "fault_domain")
@property
@pulumi.getter
def hostname(self) -> str:
"""
The fully-qualified hostname (FQDN) of the node.
"""
return pulumi.get(self, "hostname")
@property
@pulumi.getter(name="imageId")
def image_id(self) -> str:
"""
The OCID of the image from which the node was created.
"""
return pulumi.get(self, "image_id")
@property
@pulumi.getter(name="instanceId")
def instance_id(self) -> str:
"""
The OCID of the underlying Oracle Cloud Infrastructure Compute instance.
"""
return pulumi.get(self, "instance_id")
@property
@pulumi.getter(name="ipAddress")
def ip_address(self) -> str:
"""
IP address of the node.
"""
return pulumi.get(self, "ip_address")
@property
@pulumi.getter(name="nodeType")
def node_type(self) -> str:
"""
Cluster node type.
"""
return pulumi.get(self, "node_type")
@property
@pulumi.getter
def shape(self) -> str:
"""
Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="sshFingerprint")
def ssh_fingerprint(self) -> str:
"""
The fingerprint of the SSH key used for node access.
"""
return pulumi.get(self, "ssh_fingerprint")
@property
@pulumi.getter
def state(self) -> str:
"""
The state of the cluster.
"""
return pulumi.get(self, "state")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> str:
"""
The OCID of the subnet in which the node is to be created.
"""
return pulumi.get(self, "subnet_id")
@property
@pulumi.getter(name="timeCreated")
def time_created(self) -> str:
"""
The time the cluster was created, shown as an RFC 3339 formatted datetime string.
"""
return pulumi.get(self, "time_created")
@pulumi.output_type
class GetBdsInstancesBdsInstanceNodeAttachedBlockVolumeResult(dict):
def __init__(__self__, *,
volume_attachment_id: str,
volume_size_in_gbs: str):
"""
:param str volume_attachment_id: The OCID of the volume attachment.
:param str volume_size_in_gbs: The size of the volume in GBs.
"""
pulumi.set(__self__, "volume_attachment_id", volume_attachment_id)
pulumi.set(__self__, "volume_size_in_gbs", volume_size_in_gbs)
@property
@pulumi.getter(name="volumeAttachmentId")
def volume_attachment_id(self) -> str:
"""
The OCID of the volume attachment.
"""
return pulumi.get(self, "volume_attachment_id")
@property
@pulumi.getter(name="volumeSizeInGbs")
def volume_size_in_gbs(self) -> str:
"""
The size of the volume in GBs.
"""
return pulumi.get(self, "volume_size_in_gbs")
@pulumi.output_type
class GetBdsInstancesBdsInstanceUtilNodeResult(dict):
def __init__(__self__, *,
block_volume_size_in_gbs: str,
number_of_nodes: int,
shape: str,
subnet_id: str):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
:param int number_of_nodes: The number of nodes that form the cluster.
:param str shape: Shape of the node.
:param str subnet_id: The OCID of the subnet in which the node is to be created.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "number_of_nodes", number_of_nodes)
pulumi.set(__self__, "shape", shape)
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter(name="numberOfNodes")
def number_of_nodes(self) -> int:
"""
The number of nodes that form the cluster.
"""
return pulumi.get(self, "number_of_nodes")
@property
@pulumi.getter
def shape(self) -> str:
"""
Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> str:
"""
The OCID of the subnet in which the node is to be created.
"""
return pulumi.get(self, "subnet_id")
@pulumi.output_type
class GetBdsInstancesBdsInstanceWorkerNodeResult(dict):
def __init__(__self__, *,
block_volume_size_in_gbs: str,
number_of_nodes: int,
shape: str,
subnet_id: str):
"""
:param str block_volume_size_in_gbs: The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
:param int number_of_nodes: The number of nodes that form the cluster.
:param str shape: Shape of the node.
:param str subnet_id: The OCID of the subnet in which the node is to be created.
"""
pulumi.set(__self__, "block_volume_size_in_gbs", block_volume_size_in_gbs)
pulumi.set(__self__, "number_of_nodes", number_of_nodes)
pulumi.set(__self__, "shape", shape)
pulumi.set(__self__, "subnet_id", subnet_id)
@property
@pulumi.getter(name="blockVolumeSizeInGbs")
def block_volume_size_in_gbs(self) -> str:
"""
The size of block volume in GB that needs to be attached to a given node. All the necessary details needed for attachment are managed by service itself.
"""
return pulumi.get(self, "block_volume_size_in_gbs")
@property
@pulumi.getter(name="numberOfNodes")
def number_of_nodes(self) -> int:
"""
The number of nodes that form the cluster.
"""
return pulumi.get(self, "number_of_nodes")
@property
@pulumi.getter
def shape(self) -> str:
"""
Shape of the node.
"""
return pulumi.get(self, "shape")
@property
@pulumi.getter(name="subnetId")
def subnet_id(self) -> str:
"""
The OCID of the subnet in which the node is to be created.
"""
return pulumi.get(self, "subnet_id")
@pulumi.output_type
class GetBdsInstancesFilterResult(dict):
def __init__(__self__, *,
name: str,
values: Sequence[str],
regex: Optional[bool] = None):
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "values", values)
if regex is not None:
pulumi.set(__self__, "regex", regex)
@property
@pulumi.getter
def name(self) -> str:
return pulumi.get(self, "name")
@property
@pulumi.getter
def values(self) -> Sequence[str]:
return pulumi.get(self, "values")
@property
@pulumi.getter
def regex(self) -> Optional[bool]:
return pulumi.get(self, "regex")
| 37.289706
| 203
| 0.639242
| 11,730
| 101,428
| 5.271014
| 0.034271
| 0.023322
| 0.04079
| 0.059616
| 0.825826
| 0.810623
| 0.799981
| 0.767083
| 0.756926
| 0.749632
| 0
| 0.001411
| 0.266573
| 101,428
| 2,719
| 204
| 37.30342
| 0.829735
| 0.268594
| 0
| 0.759646
| 1
| 0.00759
| 0.192695
| 0.075066
| 0
| 0
| 0
| 0
| 0
| 1
| 0.16888
| false
| 0.003163
| 0.003795
| 0.00506
| 0.333966
| 0.011385
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
9d40bf35a8e6c1e796232b9e8d11cb961144ce9b
| 47
|
py
|
Python
|
hello.py
|
think-jin/osscap2020
|
ac87df1dd11d078fe5e40bec6815ee1e6f9e1de5
|
[
"Apache-2.0"
] | null | null | null |
hello.py
|
think-jin/osscap2020
|
ac87df1dd11d078fe5e40bec6815ee1e6f9e1de5
|
[
"Apache-2.0"
] | null | null | null |
hello.py
|
think-jin/osscap2020
|
ac87df1dd11d078fe5e40bec6815ee1e6f9e1de5
|
[
"Apache-2.0"
] | null | null | null |
print("Hello, World!")
print("Hello, WOrld!!")
| 15.666667
| 23
| 0.638298
| 6
| 47
| 5
| 0.5
| 0.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085106
| 47
| 2
| 24
| 23.5
| 0.697674
| 0
| 0
| 0
| 0
| 0
| 0.574468
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 7
|
19b424aa7317824338ae81ea103b38d707b1b16a
| 66
|
py
|
Python
|
task5.py
|
m4rn0v/pyRosalind
|
0e24f82b8e7fefdadbdc394190818c33f3432bd5
|
[
"MIT"
] | null | null | null |
task5.py
|
m4rn0v/pyRosalind
|
0e24f82b8e7fefdadbdc394190818c33f3432bd5
|
[
"MIT"
] | null | null | null |
task5.py
|
m4rn0v/pyRosalind
|
0e24f82b8e7fefdadbdc394190818c33f3432bd5
|
[
"MIT"
] | null | null | null |
from libs.io import from_fasta
from libs.io import to_fasta
pass
| 13.2
| 30
| 0.818182
| 13
| 66
| 4
| 0.538462
| 0.307692
| 0.384615
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151515
| 66
| 4
| 31
| 16.5
| 0.928571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.333333
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 9
|
19c3b447dc6702e08a6db2133af2622f0d889138
| 109
|
py
|
Python
|
output/elements/__init__.py
|
moehrenzahn/worktimer
|
ab92e8625652d94987c7da8ccdbf29be72bf3612
|
[
"MIT"
] | 3
|
2018-07-29T20:48:15.000Z
|
2019-03-29T10:42:19.000Z
|
output/elements/__init__.py
|
moehrenzahn/worktimer
|
ab92e8625652d94987c7da8ccdbf29be72bf3612
|
[
"MIT"
] | null | null | null |
output/elements/__init__.py
|
moehrenzahn/worktimer
|
ab92e8625652d94987c7da8ccdbf29be72bf3612
|
[
"MIT"
] | null | null | null |
from output.elements.button import *
from output.elements.spacer import *
from output.elements.menu import *
| 27.25
| 36
| 0.807339
| 15
| 109
| 5.866667
| 0.466667
| 0.340909
| 0.613636
| 0.545455
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110092
| 109
| 3
| 37
| 36.333333
| 0.907216
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
c2385c791bb7ea5999b7e544d96645efe4c1cb0f
| 119
|
py
|
Python
|
app/context_processors.py
|
callmewind/django-celery-bootstrap-heroku
|
cba6c3cc0b87ebd0ccb8ac5acf5e1cb71491f044
|
[
"MIT"
] | null | null | null |
app/context_processors.py
|
callmewind/django-celery-bootstrap-heroku
|
cba6c3cc0b87ebd0ccb8ac5acf5e1cb71491f044
|
[
"MIT"
] | null | null | null |
app/context_processors.py
|
callmewind/django-celery-bootstrap-heroku
|
cba6c3cc0b87ebd0ccb8ac5acf5e1cb71491f044
|
[
"MIT"
] | null | null | null |
from django.conf import settings as django_settings
def settings(request):
return { 'settings' : django_settings }
| 29.75
| 51
| 0.773109
| 15
| 119
| 6
| 0.6
| 0.311111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151261
| 119
| 4
| 52
| 29.75
| 0.891089
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
a07cae83cc98715c6a799942782a2aa6a9e9b473
| 382
|
py
|
Python
|
tests/formatters/test__format_currency.py
|
LCBRU/lbrc_flask
|
f5f6c3f3832a9040e941c6398b7f150e567d4762
|
[
"MIT"
] | null | null | null |
tests/formatters/test__format_currency.py
|
LCBRU/lbrc_flask
|
f5f6c3f3832a9040e941c6398b7f150e567d4762
|
[
"MIT"
] | null | null | null |
tests/formatters/test__format_currency.py
|
LCBRU/lbrc_flask
|
f5f6c3f3832a9040e941c6398b7f150e567d4762
|
[
"MIT"
] | null | null | null |
from lbrc_flask.formatters import format_currency
def test__format_currency__None():
assert format_currency(None) == ''
def test__format_currency__NoPounds():
assert format_currency(0.39) == '£0.39'
def test__format_currency__JustPennies():
assert format_currency(0.02) == '£0.02'
def test__format_currency__Pounds():
assert format_currency(1.02) == '£1.02'
| 21.222222
| 49
| 0.743455
| 55
| 382
| 4.745455
| 0.345455
| 0.482759
| 0.199234
| 0.321839
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.054545
| 0.136126
| 382
| 17
| 50
| 22.470588
| 0.727273
| 0
| 0
| 0
| 0
| 0
| 0.039267
| 0
| 0
| 0
| 0
| 0
| 0.444444
| 1
| 0.444444
| true
| 0
| 0.111111
| 0
| 0.555556
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
262932e35056e60acd09449bdfea1f13762365fc
| 112
|
py
|
Python
|
crypton/utils/__init__.py
|
batuhaninan/Crypton
|
cb3de3dccb79c49524b594a23709a8ae0c8fd555
|
[
"MIT"
] | null | null | null |
crypton/utils/__init__.py
|
batuhaninan/Crypton
|
cb3de3dccb79c49524b594a23709a8ae0c8fd555
|
[
"MIT"
] | null | null | null |
crypton/utils/__init__.py
|
batuhaninan/Crypton
|
cb3de3dccb79c49524b594a23709a8ae0c8fd555
|
[
"MIT"
] | null | null | null |
import crypton.utils.math as math
import crypton.utils.space as space
import crypton.utils.cryption as cryption
| 28
| 41
| 0.839286
| 18
| 112
| 5.222222
| 0.388889
| 0.414894
| 0.574468
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 112
| 3
| 42
| 37.333333
| 0.94
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
268d7134610c61ea214643a3735e34c7075f8e88
| 3,778
|
py
|
Python
|
tests/test_sequences_cutting.py
|
krzjoa/sciquence
|
6a5f758c757200fffeb0fdc9206462f1f89e2444
|
[
"MIT"
] | 8
|
2017-10-23T17:59:35.000Z
|
2021-05-10T03:01:30.000Z
|
tests/test_sequences_cutting.py
|
krzjoa/sciquence
|
6a5f758c757200fffeb0fdc9206462f1f89e2444
|
[
"MIT"
] | 2
|
2019-08-25T19:24:12.000Z
|
2019-09-05T12:16:10.000Z
|
tests/test_sequences_cutting.py
|
krzjoa/sciquence
|
6a5f758c757200fffeb0fdc9206462f1f89e2444
|
[
"MIT"
] | 2
|
2018-02-28T09:47:53.000Z
|
2019-08-25T19:24:16.000Z
|
import unittest
import numpy as np
import sciquence.sequences as sq
class TestSequencesCutting(unittest.TestCase):
def test_seq(self):
x = np.array([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0])
expected = [np.array([1, 1, 1]), np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
np.array([1, 1, 1, 1, 1, 1, 1, 1, 1]),
np.array([0, 0, 0, 0]), np.array([1, 1, 1, 1]), np.array([0, 0, 0])]
assert sq.lseq_equal(sq.seq(x), expected)
def test_specseq(self):
x = np.array([2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2])
expected = [np.array([2, 2, 2]), np.array([2, 2, 2])]
assert sq.lseq_equal(sq.specseq(x, element=2), expected)
def test_nseq(self):
''' All the sequences consisting of zeros only'''
x = np.array([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0])
expected = [np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
np.array([0, 0, 0, 0]), np.array([0, 0, 0])]
assert sq.lseq_equal(sq.nseq(x), expected)
def test_pseq(self):
''' All the sequences consisting of ones only'''
x = np.array([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0])
expected = [np.array([1, 1, 1]),
np.array([1, 1, 1, 1, 1, 1, 1, 1, 1]),
np.array([1, 1, 1, 1])]
assert sq.lseq_equal(sq.pseq(x), expected)
############ SEQUENCE INDICES ############
# def test_seqi(self):
# x = np.array([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
# 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0])
#
# expected = [np.array([1, 1, 1]), np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
# np.array([1, 1, 1, 1, 1, 1, 1, 1, 1]),
# np.array([0, 0, 0, 0]), np.array([1, 1, 1, 1]), np.array([0, 0, 0])]
#
# assert sq.lseq_equal(sq.seq(x), expected)
# def test_specseqi(self):
# x = np.array([2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
# 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2])
#
# expected = [np.array([1, 1, 1]), np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
# np.array([1, 1, 1, 1, 1, 1, 1, 1, 1]),
# np.array([0, 0, 0, 0]), np.array([1, 1, 1, 1]), np.array([0, 0, 0])]
#
# assert sq.lseq_equal(sq.specseq(x, element=2), expected)
#
# def test_nseqi(self):
# ''' All the sequences consisting of zeros only'''
# x = np.array([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
# 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0])
#
# expected = [np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
# np.array([0, 0, 0, 0]), np.array([0, 0, 0])]
#
# assert sq.lseq_equal(sq.nseq(x), expected)
#
# def test_pseqi(self):
# ''' All the sequences consisting of ones only'''
# x = np.array([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
# 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0])
#
# expected = [np.array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]),
# np.array([0, 0, 0, 0]), np.array([0, 0, 0])]
#
# assert sq.lseq_equal(sq.pseq(x), expected)
if __name__ == '__main__':
unittest.main()
| 40.623656
| 93
| 0.4063
| 724
| 3,778
| 2.087017
| 0.060773
| 0.309729
| 0.385175
| 0.407677
| 0.874917
| 0.866314
| 0.866314
| 0.866314
| 0.836532
| 0.833885
| 0
| 0.199005
| 0.361567
| 3,778
| 92
| 94
| 41.065217
| 0.427446
| 0.47459
| 0
| 0.258065
| 0
| 0
| 0.004188
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 1
| 0.129032
| false
| 0
| 0.096774
| 0
| 0.258065
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
269d3809429899039149870122f3aec250516845
| 286
|
py
|
Python
|
06/01/LocaleTextCalendar/formatmonth.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | null | null | null |
06/01/LocaleTextCalendar/formatmonth.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | 32
|
2017-09-01T00:52:17.000Z
|
2017-10-01T00:30:02.000Z
|
06/01/LocaleTextCalendar/formatmonth.py
|
pylangstudy/201709
|
53d868786d7327a83bfa7f4149549c6f9855a6c6
|
[
"CC0-1.0"
] | null | null | null |
import calendar
for firstweekday in [0, 6]:#月,日
c = calendar.LocaleTextCalendar(firstweekday=firstweekday)
print(c.formatmonth(2017, 9))
for firstweekday in [0, 6]:#月,日
c = calendar.LocaleTextCalendar(firstweekday=firstweekday)
print(c.formatmonth(2017, 9, w=4, l=2))
| 28.6
| 62
| 0.72028
| 40
| 286
| 5.15
| 0.475
| 0.145631
| 0.165049
| 0.174757
| 0.912621
| 0.912621
| 0.912621
| 0.912621
| 0.912621
| 0.912621
| 0
| 0.065574
| 0.146853
| 286
| 9
| 63
| 31.777778
| 0.778689
| 0.020979
| 0
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.142857
| 0
| 0.142857
| 0.285714
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
26c502514907f39b5de98ce2ee04769591bf4c31
| 25,452
|
py
|
Python
|
ultracache/tests/test_base.py
|
hedleyroos/django-ultracache
|
b39a4df13882255bbe3c349b726331e0b51b5424
|
[
"BSD-3-Clause"
] | 5
|
2020-06-23T14:53:14.000Z
|
2022-01-17T14:11:47.000Z
|
ultracache/tests/test_base.py
|
hedleyroos/django-ultracache
|
b39a4df13882255bbe3c349b726331e0b51b5424
|
[
"BSD-3-Clause"
] | null | null | null |
ultracache/tests/test_base.py
|
hedleyroos/django-ultracache
|
b39a4df13882255bbe3c349b726331e0b51b5424
|
[
"BSD-3-Clause"
] | 1
|
2020-12-03T19:29:14.000Z
|
2020-12-03T19:29:14.000Z
|
## -*- coding: utf-8 -*-
from django import template
from django.conf import settings
from django.core.cache import cache
from django.http.cookie import SimpleCookie
from django.test import TestCase
from django.test.client import Client, RequestFactory
from django.test.utils import override_settings
from django.urls import reverse
from ultracache.tests.models import DummyModel, DummyForeignModel, \
DummyOtherModel
from ultracache.tests import views
from ultracache.tests.utils import dummy_proxy
class TemplateTagsTestCase(TestCase):
if "django.contrib.sites" in settings.INSTALLED_APPS:
fixtures = ["sites.json"]
@classmethod
def setUpClass(cls):
super(TemplateTagsTestCase, cls).setUpClass()
cls.factory = RequestFactory()
cls.request = cls.factory.get('/')
cache.clear()
dummy_proxy.clear()
if "django.contrib.sites" in settings.INSTALLED_APPS:
def test_sites(self):
from django.contrib.sites.models import Site
first_site = Site.objects.all().first()
second_site = Site.objects.all().last()
# Caching on same site
t = template.Template("{% load ultracache_tags %}\
{% ultracache 1200 'test_ultracache' %}1{% endultracache %}"
)
context = template.Context({'request' : self.request})
result1 = t.render(context)
t = template.Template("{% load ultracache_tags %}\
{% ultracache 1200 'test_ultracache' %}2{% endultracache %}"
)
context = template.Context({'request' : self.request})
result2 = t.render(context)
self.failUnlessEqual(result1, result2)
# Caching on different sites
t = template.Template("{% load ultracache_tags %}\
{% ultracache 1200 'test_ultracache' %}1{% endultracache %}"
)
context = template.Context({'request' : self.request})
result1 = t.render(context)
with override_settings(SITE_ID=second_site.id):
t = template.Template("{%% load ultracache_tags %%}\
{%% ultracache 1200 'test_ultracache' %%}%s{%% endultracache %%}" % second_site.id
)
context = template.Context({'request' : self.request})
result2 = t.render(context)
self.failIfEqual(result1, result2)
def test_variables(self):
# Check that undefined variables do not break caching
t = template.Template("{% load ultracache_tags %}\
{% ultracache 1200 'test_ultracache_undefined' aaa %}1{% endultracache %}"
)
context = template.Context({'request' : self.request})
result1 = t.render(context)
t = template.Template("{% load ultracache_tags %}\
{% ultracache 1200 'test_ultracache_undefined' bbb %}2{% endultracache %}"
)
context = template.Context({'request' : self.request})
result2 = t.render(context)
self.failUnlessEqual(result1, result2)
# Check that translation proxies are valid variables
t = template.Template("{% load ultracache_tags %}\
{% ultracache 1200 'test_ultracache_xlt' _('aaa') %}1{% endultracache %}"
)
context = template.Context({'request' : self.request})
result1 = t.render(context)
t = template.Template("{% load ultracache_tags %}\
{% ultracache 1200 'test_ultracache_xlt' _('aaa') %}2{% endultracache %}"
)
context = template.Context({'request' : self.request})
result2 = t.render(context)
self.failUnlessEqual(result1, result2)
# Check that large integer variables do not break caching
t = template.Template("{% load ultracache_tags %}\
{% ultracache 1200 'test_ultracache_large' 565417614189797377 %}abcde{% endultracache %}"
)
context = template.Context({'request' : self.request})
result1 = t.render(context)
t = template.Template("{% load ultracache_tags %}\
{% ultracache 1200 'test_ultracache_large' 565417614189797377 %}abcde{% endultracache %}"
)
context = template.Context({'request' : self.request})
result2 = t.render(context)
self.failUnlessEqual(result1, result2)
def test_context_without_request(self):
t = template.Template("{% load ultracache_tags %}\
{% ultracache 1200 'test_ultracache_undefined' aaa %}abcde{% endultracache %}"
)
context = template.Context()
self.assertRaises(KeyError, t.render, context)
def test_invalidation(self):
"""Directly render template
"""
one = DummyModel.objects.create(title='One', code='one')
two = DummyModel.objects.create(title='Two', code='two')
three = DummyForeignModel.objects.create(title='Three', points_to=one, code='three')
four = DummyOtherModel.objects.create(title='Four', code='four')
# The counter is used to track the iteration that a cached block was
# last rendered.
t = template.Template("""{% load ultracache_tags ultracache_test_tags %}
{% ultracache 1200 'test_ultracache_invalidate_outer' %}
counter outer = {{ counter }}
{% ultracache 1200 'test_ultracache_invalidate_one' %}
title = {{ one.title }}
counter one = {{ counter }}
{% endultracache %}
{% ultracache 1200 'test_ultracache_invalidate_two' %}
title = {{ two.title }}
counter two = {{ counter }}
{% endultracache %}
{% ultracache 1200 'test_ultracache_invalidate_three' %}
title = {{ three.title }}
{{ three.points_to.title }}
counter three = {{ counter }}
{% endultracache %}
{% ultracache 1200 'test_ultracache_invalidate_render_view' %}
{% render_view 'render-view' %}
{% endultracache %}
{% ultracache 1200 'test_ultracache_invalidate_include %}
{% include "ultracache/include_me.html" %}
{% endultracache %}
{% endultracache %}"""
)
# Initial render
request = self.factory.get('/aaa/')
context = template.Context({
'request' : request,
'one': one,
'two': two,
'three': three,
'counter': 1
})
result = t.render(context)
dummy_proxy.cache(request, result)
self.failUnless('title = One' in result)
self.failUnless('title = Two' in result)
self.failUnless('counter outer = 1' in result)
self.failUnless('counter one = 1' in result)
self.failUnless('counter two = 1' in result)
self.failUnless('counter three = 1' in result)
self.failUnless('render_view = One' in result)
self.failUnless('include = One' in result)
self.failUnless(dummy_proxy.is_cached('/aaa/'))
# Change object one
one.title = 'Onxe'
one.save()
request = self.factory.get('/bbb/')
context = template.Context({
'request' : request,
'one': one,
'two': two,
'three': three,
'counter': 2
})
result = t.render(context)
dummy_proxy.cache(request, result)
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Two' in result)
self.failUnless('counter outer = 2' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 1' in result)
self.failUnless('counter three = 2' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failIf(dummy_proxy.is_cached('/aaa/'))
# Change object two
two.title = 'Twxo'
two.save()
request = self.factory.get('/ccc/')
context = template.Context({
'request' : request,
'one': one,
'two': two,
'three': three,
'counter': 3
})
result = t.render(context)
dummy_proxy.cache(request, result)
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Twxo' in result)
self.failIf('title = Two' in result)
self.failUnless('counter outer = 3' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 3' in result)
self.failUnless('counter three = 2' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failIf(dummy_proxy.is_cached('/bbb/'))
# Change object three
three.title = 'Threxe'
three.save()
request = self.factory.get('/ddd/')
context = template.Context({
'request' : request,
'one': one,
'two': two,
'three': three,
'counter': 4
})
result = t.render(context)
dummy_proxy.cache(request, result)
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Twxo' in result)
self.failIf('title = Two' in result)
self.failUnless('title = Threxe' in result)
self.failIf('title = Three' in result)
self.failUnless('counter outer = 4' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 3' in result)
self.failUnless('counter three = 4' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failIf(dummy_proxy.is_cached('/ccc/'))
# Add a DummyOtherModel object five
five = DummyOtherModel.objects.create(title='Five', code='five')
request = self.factory.get('/eee/')
context = template.Context({
'request' : request,
'one': one,
'two': two,
'three': three,
'counter': 5
})
result = t.render(context)
dummy_proxy.cache(request, result)
# RenderView is only view aware of DummyOtherModel. That means
# test_ultracache_invalidate_outer and
# test_ultracache_invalidate_render_view are expired.
self.failUnless('render_view = Five' in result)
self.failUnless('counter outer = 5' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 3' in result)
self.failUnless('counter three = 4' in result)
self.failIf(dummy_proxy.is_cached('/ddd/'))
# Delete object two
two.delete()
request = self.factory.get('/fff/')
context = template.Context({
'request' : request,
'one': one,
'two': None,
'three': three,
'counter': 6
})
result = t.render(context)
dummy_proxy.cache(request, result)
self.failUnless('title = Onxe' in result)
self.failIf('title = Twxo' in result)
self.failIf('title = Two' in result)
self.failUnless('counter outer = 6' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 6' in result)
self.failUnless('counter three = 4' in result)
self.failIf(dummy_proxy.is_cached('/eee/'))
class DecoratorTestCase(TestCase):
if "django.contrib.sites" in settings.INSTALLED_APPS:
fixtures = ["sites.json"]
def setUp(self):
super(DecoratorTestCase, self).setUp()
cache.clear()
dummy_proxy.clear()
def test_method(self):
"""Render template through a view with get method decorated with
cached_get."""
one = DummyModel.objects.create(title='One', code='one')
two = DummyModel.objects.create(title='Two', code='two')
three = DummyForeignModel.objects.create(title='Three', points_to=one, code='three')
four = DummyModel.objects.create(title='Four', code='four')
five = DummyModel.objects.create(title='Five', code='five')
url = reverse('method-cached-view')
# Initial render
cache.set("counter", 1)
response = self.client.get(url)
result = response.content.decode("utf-8")
self.assertEqual(response.status_code, 200)
self.failUnless('title = One' in result)
self.failUnless('title = Two' in result)
self.failUnless('title = Three' in result)
self.failUnless('render_view = One' in result)
self.failUnless('include = One' in result)
self.failUnless('counter one = 1' in result)
self.failUnless('counter two = 1' in result)
self.failUnless('counter three = 1' in result)
self.failUnless('counter four = 1' in result)
self.failUnless('title = Four' in result)
# Change object one
cache.set("counter", 2)
one.title = 'Onxe'
one.save()
response = self.client.get(url)
result = response.content.decode("utf-8")
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Two' in result)
self.failUnless('title = Three' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 1' in result)
self.failUnless('counter three = 2' in result)
self.failUnless('counter four = 2' in result)
self.failUnless('title = Four' in result)
# Change object two
cache.set("counter", 3)
two.title = 'Twxo'
two.save()
response = self.client.get(url)
result = response.content.decode("utf-8")
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Twxo' in result)
self.failIf('title = Two' in result)
self.failUnless('title = Three' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 3' in result)
self.failUnless('counter three = 2' in result)
self.failUnless('counter four = 3' in result)
self.failUnless('title = Four' in result)
# Change object three
cache.set("counter", 4)
three.title = 'Threxe'
three.save()
response = self.client.get(url)
result = response.content.decode("utf-8")
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Twxo' in result)
self.failIf('title = Two' in result)
self.failUnless('title = Threxe' in result)
self.failIf('title = Three' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 3' in result)
self.failUnless('counter three = 4' in result)
self.failUnless('counter four = 4' in result)
self.failUnless('title = Four' in result)
# Change object four
cache.set("counter", 5)
four.title = 'Fouxr'
four.save()
response = self.client.get(url)
result = response.content.decode("utf-8")
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Twxo' in result)
self.failIf('title = Two' in result)
self.failUnless('title = Threxe' in result)
self.failIf('title = Three' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 3' in result)
self.failUnless('counter three = 4' in result)
self.failUnless('counter four = 5' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failUnless('title = Fouxr' in result)
self.failIf('title = Four' in result)
# Change object five. This object is never accessed in the template,
# only get_context_data of CachedView. "counter four" and "counter
# five" are under cached_get and not in any ultracache tag, and are
# thus the only counters incremented.
cache.set("counter", 6)
five.title = 'Fivxe'
five.save()
response = self.client.get(url)
result = response.content.decode("utf-8")
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Twxo' in result)
self.failIf('title = Two' in result)
self.failUnless('title = Threxe' in result)
self.failIf('title = Three' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 3' in result)
self.failUnless('counter three = 4' in result)
self.failUnless('counter four = 6' in result)
self.failUnless('counter five = 6' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failUnless('title = Fouxr' in result)
self.failIf('title = Four' in result)
def test_class(self):
"""Render template through a view decorated with ultracache
"""
one = DummyModel.objects.create(title='One', code='one')
two = DummyModel.objects.create(title='Two', code='two')
three = DummyForeignModel.objects.create(title='Three', points_to=one, code='three')
four = DummyModel.objects.create(title='Four', code='four')
five = DummyModel.objects.create(title='Five', code='five')
url = reverse('class-cached-view')
# Initial render
cache.set("counter", 1)
response = self.client.get(url)
result = response.content.decode("utf-8")
self.assertEqual(response.status_code, 200)
self.failUnless('title = One' in result)
self.failUnless('title = Two' in result)
self.failUnless('title = Three' in result)
self.failUnless('render_view = One' in result)
self.failUnless('include = One' in result)
self.failUnless('counter one = 1' in result)
self.failUnless('counter two = 1' in result)
self.failUnless('counter three = 1' in result)
self.failUnless('counter four = 1' in result)
self.failUnless('title = Four' in result)
# Change object one
cache.set("counter", 2)
one.title = 'Onxe'
one.save()
response = self.client.get(url)
result = response.content.decode("utf-8")
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Two' in result)
self.failUnless('title = Three' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 1' in result)
self.failUnless('counter three = 2' in result)
self.failUnless('counter four = 2' in result)
self.failUnless('title = Four' in result)
# Change object two
cache.set("counter", 3)
two.title = 'Twxo'
two.save()
response = self.client.get(url)
result = response.content.decode("utf-8")
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Twxo' in result)
self.failIf('title = Two' in result)
self.failUnless('title = Three' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 3' in result)
self.failUnless('counter three = 2' in result)
self.failUnless('counter four = 3' in result)
self.failUnless('title = Four' in result)
# Change object three
cache.set("counter", 4)
three.title = 'Threxe'
three.save()
response = self.client.get(url)
result = response.content.decode("utf-8")
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Twxo' in result)
self.failIf('title = Two' in result)
self.failUnless('title = Threxe' in result)
self.failIf('title = Three' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 3' in result)
self.failUnless('counter three = 4' in result)
self.failUnless('counter four = 4' in result)
self.failUnless('title = Four' in result)
# Change object four
cache.set("counter", 5)
four.title = 'Fouxr'
four.save()
response = self.client.get(url)
result = response.content.decode("utf-8")
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Twxo' in result)
self.failIf('title = Two' in result)
self.failUnless('title = Threxe' in result)
self.failIf('title = Three' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 3' in result)
self.failUnless('counter three = 4' in result)
self.failUnless('counter four = 5' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failUnless('title = Fouxr' in result)
self.failIf('title = Four' in result)
# Change object five. This object is never accessed in the template,
# only get_context_data of CachedView. "counter four" and "counter
# five" are under cached_get and not in any ultracache tag, and are
# thus the only counters incremented.
cache.set("counter", 6)
five.title = 'Fivxe'
five.save()
response = self.client.get(url)
result = response.content.decode("utf-8")
self.failUnless('title = Onxe' in result)
self.failIf('title = One' in result)
self.failUnless('title = Twxo' in result)
self.failIf('title = Two' in result)
self.failUnless('title = Threxe' in result)
self.failIf('title = Three' in result)
self.failUnless('counter one = 2' in result)
self.failUnless('counter two = 3' in result)
self.failUnless('counter three = 4' in result)
self.failUnless('counter four = 6' in result)
self.failUnless('counter five = 6' in result)
self.failUnless('render_view = Onxe' in result)
self.failUnless('include = Onxe' in result)
self.failUnless('title = Fouxr' in result)
self.failIf('title = Four' in result)
def test_header(self):
"""Test that decorator preserves headers
"""
url = reverse('cached-header-view')
# Initial render
response = self.client.get(url)
# Django 4 deprecates _headers and introduces headers
if hasattr(response, "headers"):
self.assertEqual(response.headers['content-type'], 'application/json')
self.assertEqual(response.headers['foo'], 'bar')
else:
self.assertEqual(response._headers['content-type'], ('Content-Type', 'application/json'))
self.assertEqual(response._headers['foo'], ('foo', 'bar'))
# Second pass is cached
response = self.client.get(url)
# Django 4 deprecates _headers and introduces headers
if hasattr(response, "headers"):
self.assertEqual(response.headers['content-type'], 'application/json')
self.assertEqual(response.headers['foo'], 'bar')
else:
self.assertEqual(response._headers['content-type'], ('Content-Type', 'application/json'))
self.assertEqual(response._headers['foo'], ('foo', 'bar'))
def test_cache_busting(self):
"""Test cache busting with and without random querystring param
"""
url = reverse('bustable-cached-view')
response = self.client.get(url + '?aaa=1')
self.failUnless('aaa=1' in response.content.decode("utf-8"))
response = self.client.get(url + '?aaa=2')
self.failUnless('aaa=2' in response.content.decode("utf-8"))
url = reverse('non-bustable-cached-view')
response = self.client.get(url + '?aaa=1')
self.failUnless('aaa=1' in response.content.decode("utf-8"))
response = self.client.get(url + '?aaa=2')
self.failIf('aaa=2' in response.content.decode("utf-8"))
| 42.993243
| 102
| 0.599442
| 2,878
| 25,452
| 5.252606
| 0.069493
| 0.10637
| 0.15003
| 0.215387
| 0.8675
| 0.844943
| 0.830654
| 0.812992
| 0.803069
| 0.799894
| 0
| 0.013943
| 0.278603
| 25,452
| 591
| 103
| 43.06599
| 0.809379
| 0.065378
| 0
| 0.776
| 0
| 0
| 0.221548
| 0.01674
| 0
| 0
| 0
| 0
| 0.022
| 1
| 0.02
| false
| 0
| 0.024
| 0
| 0.048
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f81d8d71dadcb6b3ecbf1bdea8546c1a8b863378
| 47
|
py
|
Python
|
venv/lib/python3.6/site-packages/weather/helpers/__init__.py
|
HackBots1111/flask-server-bot
|
683932802d689d21b0b8397acd3f072197dea208
|
[
"MIT"
] | null | null | null |
venv/lib/python3.6/site-packages/weather/helpers/__init__.py
|
HackBots1111/flask-server-bot
|
683932802d689d21b0b8397acd3f072197dea208
|
[
"MIT"
] | null | null | null |
venv/lib/python3.6/site-packages/weather/helpers/__init__.py
|
HackBots1111/flask-server-bot
|
683932802d689d21b0b8397acd3f072197dea208
|
[
"MIT"
] | null | null | null |
from .add_leading_zero import add_leading_zero
| 23.5
| 46
| 0.893617
| 8
| 47
| 4.75
| 0.625
| 0.526316
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085106
| 47
| 1
| 47
| 47
| 0.883721
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
f8a782903b5645d5106647458483d8a8957894ad
| 81
|
py
|
Python
|
CodeWars/8 Kyu/Invalid Login - Bug Fixing #11.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
CodeWars/8 Kyu/Invalid Login - Bug Fixing #11.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
CodeWars/8 Kyu/Invalid Login - Bug Fixing #11.py
|
anubhab-code/Competitive-Programming
|
de28cb7d44044b9e7d8bdb475da61e37c018ac35
|
[
"MIT"
] | null | null | null |
def validate(username, password):
return Database().login(username, password)
| 40.5
| 47
| 0.765432
| 9
| 81
| 6.888889
| 0.777778
| 0.516129
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 81
| 2
| 47
| 40.5
| 0.861111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 1
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 1
| 0
|
0
| 7
|
f8b56c2d9beacc33b21504897b5ee5a327d6d7d1
| 22,583
|
py
|
Python
|
nytimes/nytimes_scrape.py
|
alexmill/covid19demographics-fall
|
b53708883a0c091f7e4eaef3d270153d88fe11f9
|
[
"MIT"
] | null | null | null |
nytimes/nytimes_scrape.py
|
alexmill/covid19demographics-fall
|
b53708883a0c091f7e4eaef3d270153d88fe11f9
|
[
"MIT"
] | null | null | null |
nytimes/nytimes_scrape.py
|
alexmill/covid19demographics-fall
|
b53708883a0c091f7e4eaef3d270153d88fe11f9
|
[
"MIT"
] | 2
|
2020-09-24T01:01:11.000Z
|
2020-10-06T19:17:43.000Z
|
from bs4 import BeautifulSoup
import csv
from datetime import datetime, timedelta
import re
import sys
from urllib.request import urlopen, Request
import re
import os
import pandas as pd
# Example inputs:
# About 39.6 million people
# About 293,000 people
def getPop(x):
spl = x.split()
if spl[0] == "About" and spl[2] == "million" and spl[3] == "people":
return int(float(spl[1]) * 1000000)
elif spl[0] == "About" and spl[2] == "people":
return int(spl[1].replace(",", ""))
else:
print("Unexpected population:", x)
exit(0)
# Get order type and effective date/time
def getInfo(x):
if x.span.text.find(", effective ") != 0:
print("Unexpected order info format:", x)
exit(0)
dateText = x.span.text[12:].replace(".", "").replace("am", "AM").replace("pm", "PM")
if dateText.find(" at ") < 0:
dateText += " at 12 AM"
if dateText.find(":") >= 0:
dt = datetime.strptime("2020 " + dateText, "%Y %B %d at %I:%M %p")
else:
dt = datetime.strptime("2020 " + dateText, "%Y %B %d at %I %p")
return x.find(text=True), dt
# Given place-wrap div, return place, pop, order, dt, orderLink, newsLink
def getPlace(x):
placeP = x.find("p", class_="l-place")
if placeP is not None:
place = placeP.find(text=True).strip()
else:
place = None
popSpan = x.find("span", class_="l-population", recursive=True)
if popSpan is not None:
pop = getPop(popSpan.text)
else:
pop = None
order, dt = getInfo(x.find("p", class_="l-order"))
orderSpan = x.find("span", class_="linkorder", recursive=True)
if orderSpan is not None:
orderLink = orderSpan.find("a")["href"]
else:
orderLink = None
newsSpan = x.find("span", class_="linklocalnews", recursive=True)
if newsSpan is not None:
newsLink = newsSpan.find("a")["href"]
else:
newsLink = None
return place, pop, order, dt, orderLink, newsLink
def scrape():
data = "nytimes.csv"
dates = pd.read_csv(data)["Report Date"]
dates = set(dates.unique())
# Get last updated
url = "https://www.nytimes.com/interactive/2020/us/states-reopen-map-coronavirus.html"
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.3'}
req = Request(url=url, headers=headers)
html = urlopen(req).read()
soup = BeautifulSoup(html, "html.parser")
last_updated = (soup.find("time", class_="css-wcxsge").text).replace("Updated", "").strip()
if last_updated in dates:
print("Already collected most recent data for nytimes")
else:
rows = []
print("Getting data for " + last_updated)
# Getting each status div
try:
reopened = ("Reopened", (soup.find("div", class_="g-list-container g-cat-reopened")).find_all("div", class_="g-state g-cat-reopened"))
except:
try:
reopened = ("Reopened", (soup.find("div", class_="g-list-container g-cat-reopened")).find_all("div", class_="g-state g-cat-reopened "))
except:
reopened = ("",[])
try:
forward = ("Forward", (soup.find("div", class_="g-list-container g-cat-forward")).find_all("div", class_="g-state g-cat-forward"))
except:
try:
forward = ("Forward", (soup.find("div", class_="g-list-container g-cat-forward")).find_all("div", class_="g-state g-cat-forward "))
except:
forward = ("",[])
try:
pausing = ("Pausing", (soup.find("div", class_="g-list-container g-cat-pausing")).find_all("div", class_="g-state g-cat-pausing"))
except:
try:
pausing = ("Pausing", (soup.find("div", class_="g-list-container g-cat-pausing")).find_all("div", class_="g-state g-cat-pausing "))
except:
pausing = ("",[])
try:
reversing = ("Reversing", (soup.find("div", class_="g-list-container g-cat-reversing")).find_all("div", class_="g-state g-cat-reversing"))
except:
try:
reversing = ("Reversing", (soup.find("div", class_="g-list-container g-cat-reversing")).find_all("div", class_="g-state g-cat-reversing "))
except:
reversing = ("",[])
try:
reopening = ("Reopening", (soup.find("div", class_="g-list-container g-cat-reopening")).find_all("div", class_="g-state g-cat-reopening"))
except:
try:
reopening = ("Reopening", (soup.find("div", class_="g-list-container g-cat-reopening")).find_all("div", class_="g-state g-cat-reopening "))
except:
reopening = ("",[])
try:
soon = ("Order Lifting or Reopening in the Next Week", (soup.find("div", class_="g-list-container g-cat-soon")).find_all("div", class_="g-state g-cat-soon"))
except:
try:
soon = ("Order Lifting or Reopening in the Next Week", (soup.find("div", class_="g-list-container g-cat-soon")).find_all("div", class_="g-state g-cat-soon "))
except:
soon = ("",[])
try:
shutdown = ("Shut down or restricted", (soup.find("div", class_="g-list-container g-cat-shutdown-restricted")).find_all("div", class_="g-state g-cat-shutdown-restricted"))
except:
try:
shutdown = ("Shut down or restricted", (soup.find("div", class_="g-list-container g-cat-shutdown-restricted")).find_all("div", class_="g-state g-cat-shutdown-restricted "))
except:
shutdown = ("",[])
try:
regional = ("Regional Reopening", (soup.find("div", class_="g-list-container g-cat-regional")).find_all("div", class_="g-state g-cat-regional"))
except:
try:
regional = ("Regional Reopening", (soup.find("div", class_="g-list-container g-cat-regional")).find_all("div", class_="g-state g-cat-regional "))
except:
regional = ("",[])
if not reopened[1] and not forward[1] and not pausing[1] and not reversing[1] and not reopening[1] and not soon[1] and not shutdown[1] and not regional[1]:
print("No data collected for " + last_updated)
all_status = [reopened, forward, pausing, reversing, reopening, soon, shutdown, regional]
# Iterating through all status
for status in all_status:
status_val, div = status
# Iterate through states in status
for state in div:
st_ab = state["data-state"]
try:
open_ests = (state.find("div", class_="g-details-wrap g-details")).find_all("div", class_="g-cat-details-wrap")
except:
try:
open_ests = (state.find("div", class_="g-details-wrap g-details")).find_all("div", class_="g-cat-name-text-wrap")
except:
open_ests = []
try:
closed_ests = (state.find("div", class_="g-details-wrap g-details_closed")).find_all("div", class_="g-cat-details-wrap")
except:
try:
closed_ests = (state.find("div", class_="g-details-wrap g-details_closed")).find_all("div", class_="g-cat-name-text-wrap")
except:
closed_ests = []
try:
reopening_ests = (state.find("div", class_="g-details-wrap")).find_all("div", class_="g-cat-details-wrap")
except:
try:
reopening_ests = (state.find("div", class_="g-details-wrap-outer")).find_all("div", class_="g-cat-name-text-wrap")
except:
reopening_ests = []
try:
soon_ests = (state.find("div", class_="g-details-wrap g-details_soon")).find_all("div", class_="g-cat-details-wrap")
except:
try:
soon_ests = (state.find("div", class_="g-details-wrap g-details_soon")).find_all("div", class_="g-cat-name-text-wrap")
except:
soon_ests = []
if not open_ests and not closed_ests and not reopening_ests and not soon_ests:
print("No establishment data collected for " + date + ": " + st_ab)
continue
# Get open ests
for est in open_ests:
row = {
"Report Date": last_updated,
"State": st_ab,
"State Status": status_val,
"Establishment Category": est.find("div", class_="g-cat-name").text,
"Establishment Status": "Open",
"Establishment Details": est.find("div", class_="g-cat-text").text
}
rows.append(row)
# Get closed ests
for est in closed_ests:
row = {
"Report Date": last_updated,
"State": st_ab,
"State Status": status_val,
"Establishment Category": est.find("div", class_="g-cat-name").text,
"Establishment Status": "Closed",
"Establishment Details": est.find("div", class_="g-cat-text").text
}
rows.append(row)
# Get reopening ests
for est in reopening_ests:
row = {
"Report Date": last_updated,
"State": st_ab,
"State Status": status_val,
"Establishment Category": est.find("div", class_="g-cat-name").text,
"Establishment Status": "Reopened",
"Establishment Details": est.find("div", class_="g-cat-text").text
}
rows.append(row)
# Get soon ests
for est in soon_ests:
row = {
"Report Date": last_updated,
"State": st_ab,
"State Status": status_val,
"Establishment Category": est.find("div", class_="g-cat-name").text,
"Establishment Status": "Reopening soon",
"Establishment Details": est.find("div", class_="g-cat-text").text
}
rows.append(row)
# Output
for row in rows:
fields = sorted([x for x in row])
exists = os.path.exists(data)
with open(data, "a") as fp:
writer = csv.writer(fp)
if not exists:
writer.writerow(fields)
writer.writerow([row[x] for x in fields])
def get_hist():
# Getting all dates
data = "nytimes.csv"
base_dt = datetime.now() - timedelta(days=1)
date_list = [base_dt - timedelta(days=x) for x in range(83)]
date_list = [x.strftime("%Y%m%d") for x in date_list]
rows = []
collected = set()
# Going through all dates
for date in date_list:
url = ("https://web.archive.org/web/%s/https://www.nytimes.com/interactive/2020/us/states-reopen-map-coronavirus.html" % date)
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.3'}
req = Request(url=url, headers=headers)
html = urlopen(req).read()
soup = BeautifulSoup(html, "html.parser")
# Get last updated
last_updated = (soup.find("time", class_="css-wcxsge").text).replace("Updated", "").strip()
if last_updated in collected:
continue
else:
collected.add(last_updated)
print(last_updated)
# Getting each status div
try:
reopened = ("Reopened", (soup.find("div", class_="g-list-container g-cat-reopened")).find_all("div", class_="g-state g-cat-reopened"))
except:
try:
reopened = ("Reopened", (soup.find("div", class_="g-list-container g-cat-reopened")).find_all("div", class_="g-state g-cat-reopened "))
except:
reopened = ("",[])
try:
forward = ("Forward", (soup.find("div", class_="g-list-container g-cat-forward")).find_all("div", class_="g-state g-cat-forward"))
except:
try:
forward = ("Forward", (soup.find("div", class_="g-list-container g-cat-forward")).find_all("div", class_="g-state g-cat-forward "))
except:
forward = ("",[])
try:
pausing = ("Pausing", (soup.find("div", class_="g-list-container g-cat-pausing")).find_all("div", class_="g-state g-cat-pausing"))
except:
try:
pausing = ("Pausing", (soup.find("div", class_="g-list-container g-cat-pausing")).find_all("div", class_="g-state g-cat-pausing "))
except:
pausing = ("",[])
try:
reversing = ("Reversing", (soup.find("div", class_="g-list-container g-cat-reversing")).find_all("div", class_="g-state g-cat-reversing"))
except:
try:
reversing = ("Reversing", (soup.find("div", class_="g-list-container g-cat-reversing")).find_all("div", class_="g-state g-cat-reversing "))
except:
reversing = ("",[])
try:
reopening = ("Reopening", (soup.find("div", class_="g-list-container g-cat-reopening")).find_all("div", class_="g-state g-cat-reopening"))
except:
try:
reopening = ("Reopening", (soup.find("div", class_="g-list-container g-cat-reopening")).find_all("div", class_="g-state g-cat-reopening "))
except:
reopening = ("",[])
try:
soon = ("Order Lifting or Reopening in the Next Week", (soup.find("div", class_="g-list-container g-cat-soon")).find_all("div", class_="g-state g-cat-soon"))
except:
try:
soon = ("Order Lifting or Reopening in the Next Week", (soup.find("div", class_="g-list-container g-cat-soon")).find_all("div", class_="g-state g-cat-soon "))
except:
soon = ("",[])
try:
shutdown = ("Shut down or restricted", (soup.find("div", class_="g-list-container g-cat-shutdown-restricted")).find_all("div", class_="g-state g-cat-shutdown-restricted"))
except:
try:
shutdown = ("Shut down or restricted", (soup.find("div", class_="g-list-container g-cat-shutdown-restricted")).find_all("div", class_="g-state g-cat-shutdown-restricted "))
except:
shutdown = ("",[])
try:
regional = ("Regional Reopening", (soup.find("div", class_="g-list-container g-cat-regional")).find_all("div", class_="g-state g-cat-regional"))
except:
try:
regional = ("Regional Reopening", (soup.find("div", class_="g-list-container g-cat-regional")).find_all("div", class_="g-state g-cat-regional "))
except:
regional = ("",[])
if not reopened[1] and not forward[1] and not pausing[1] and not reversing[1] and not reopening[1] and not soon[1] and not shutdown[1] and not regional[1]:
print("No data collected for " + date)
continue
all_status = [reopened, forward, pausing, reversing, reopening, soon, shutdown, regional]
# Iterating through all status
for status in all_status:
status_val, div = status
# Iterate through states in status
for state in div:
st_ab = state["data-state"]
try:
open_ests = (state.find("div", class_="g-details-wrap g-details")).find_all("div", class_="g-cat-details-wrap")
except:
try:
open_ests = (state.find("div", class_="g-details-wrap g-details")).find_all("div", class_="g-cat-name-text-wrap")
except:
open_ests = []
try:
closed_ests = (state.find("div", class_="g-details-wrap g-details_closed")).find_all("div", class_="g-cat-details-wrap")
except:
try:
closed_ests = (state.find("div", class_="g-details-wrap g-details_closed")).find_all("div", class_="g-cat-name-text-wrap")
except:
closed_ests = []
try:
reopening_ests = (state.find("div", class_="g-details-wrap")).find_all("div", class_="g-cat-details-wrap")
except:
try:
reopening_ests = (state.find("div", class_="g-details-wrap-outer")).find_all("div", class_="g-cat-name-text-wrap")
except:
reopening_ests = []
try:
soon_ests = (state.find("div", class_="g-details-wrap g-details_soon")).find_all("div", class_="g-cat-details-wrap")
except:
try:
soon_ests = (state.find("div", class_="g-details-wrap g-details_soon")).find_all("div", class_="g-cat-name-text-wrap")
except:
soon_ests = []
if not open_ests and not closed_ests and not reopening_ests and not soon_ests:
print("No establishment data collected for " + date + ": " + st_ab)
continue
# Get open ests
for est in open_ests:
row = {
"Report Date": last_updated,
"State": st_ab,
"State Status": status_val,
"Establishment Category": est.find("div", class_="g-cat-name").text,
"Establishment Status": "Open",
"Establishment Details": est.find("div", class_="g-cat-text").text
}
rows.append(row)
# Get closed ests
for est in closed_ests:
row = {
"Report Date": last_updated,
"State": st_ab,
"State Status": status_val,
"Establishment Category": est.find("div", class_="g-cat-name").text,
"Establishment Status": "Closed",
"Establishment Details": est.find("div", class_="g-cat-text").text
}
rows.append(row)
# Get reopening ests
for est in reopening_ests:
row = {
"Report Date": last_updated,
"State": st_ab,
"State Status": status_val,
"Establishment Category": est.find("div", class_="g-cat-name").text,
"Establishment Status": "Reopened",
"Establishment Details": est.find("div", class_="g-cat-text").text
}
rows.append(row)
# Get soon ests
for est in soon_ests:
row = {
"Report Date": last_updated,
"State": st_ab,
"State Status": status_val,
"Establishment Category": est.find("div", class_="g-cat-name").text,
"Establishment Status": "Reopening soon",
"Establishment Details": est.find("div", class_="g-cat-text").text
}
rows.append(row)
# Output
for row in rows:
fields = sorted([x for x in row])
exists = os.path.exists(data)
with open(data, "a") as fp:
writer = csv.writer(fp)
if not exists:
writer.writerow(fields)
writer.writerow([row[x] for x in fields])
def get_masks():
url = "https://www.cnn.com/2020/06/19/us/states-face-mask-coronavirus-trnd/index.html"
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.3'}
req = Request(url=url, headers=headers)
html = urlopen(req).read()
soup = BeautifulSoup(html, "html.parser")
states = soup.find_all("h3")
dates = soup.find_all("strong")
dates = [x for x in dates if x.text != " "]
rows = []
for state, date in zip(states, dates):
row = {
"State": state.text,
"Requiring Masks As Of": ((date.text).replace("As of ", "")).replace(":", "")
}
rows.append(row)
data = "cnn_masks.csv"
# Output
for row in rows:
fields = sorted([x for x in row])
exists = os.path.exists(data)
with open(data, "a") as fp:
writer = csv.writer(fp)
if not exists:
writer.writerow(fields)
writer.writerow([row[x] for x in fields])
# get_masks()
# exit()
scrape()
# # Get historical
# get_hist()
# exit()
# writer = csv.writer(sys.stdout)
# writer.writerow(["state", "stateAbbrev", "place", "wholeState", "pop",
# "order", "orderEff", "orderLink", "newsLink", "pullTime"])
# html = urlopen("https://www.nytimes.com/interactive/2020/us/coronavirus-stay-at-home-order.html").read()
# soup = BeautifulSoup(html, "html.parser")
# for x in soup.find_all("div", class_="state-wrap"):
# stateAbbrev = x["data-state"].strip()
# state = x.h3.find(text=True).strip()
# if "statewide" in x["class"]:
# place, pop, order, dt, orderLink, newsLink = getPlace(x.div)
# pop = getPop(x.h3.span.text)
# writer.writerow([state, stateAbbrev, state, 1, pop,
# order, dt, orderLink, newsLink, now])
# else:
# for place in x.findChildren("div", class_="place-wrap"):
# place, pop, order, dt, orderLink, newsLink = getPlace(place)
# writer.writerow([state, stateAbbrev, place, 0, pop,
# order, dt, orderLink, newsLink, now])
| 49.093478
| 188
| 0.524155
| 2,630
| 22,583
| 4.396578
| 0.090494
| 0.078872
| 0.087175
| 0.071954
| 0.820029
| 0.8119
| 0.800917
| 0.790971
| 0.78388
| 0.78388
| 0
| 0.009755
| 0.328211
| 22,583
| 459
| 189
| 49.200436
| 0.752422
| 0.072045
| 0
| 0.796482
| 0
| 0.015075
| 0.261277
| 0.009567
| 0
| 0
| 0
| 0
| 0
| 1
| 0.015075
| false
| 0
| 0.022613
| 0
| 0.047739
| 0.022613
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
3e14a88cb562c913c02f8adb522038a78bdaf02a
| 104
|
py
|
Python
|
docs/tutorials/depth/train_monodepth2.py
|
Neutron3529/gluon-cv
|
1c41c89c414cc9e447bbc9d2f96f3b6ac519c07c
|
[
"Apache-2.0"
] | null | null | null |
docs/tutorials/depth/train_monodepth2.py
|
Neutron3529/gluon-cv
|
1c41c89c414cc9e447bbc9d2f96f3b6ac519c07c
|
[
"Apache-2.0"
] | null | null | null |
docs/tutorials/depth/train_monodepth2.py
|
Neutron3529/gluon-cv
|
1c41c89c414cc9e447bbc9d2f96f3b6ac519c07c
|
[
"Apache-2.0"
] | null | null | null |
"""02. Monodepth2 training on KITTI dataset
==================================================
TODO"""
| 20.8
| 50
| 0.365385
| 7
| 104
| 5.428571
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.031579
| 0.086538
| 104
| 4
| 51
| 26
| 0.368421
| 0.932692
| 0
| null | 0
| null | 0
| 0
| null | 1
| 0
| 0.25
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e417844820a1f10ac90a63e47a9dbba83f290365
| 2,054
|
py
|
Python
|
usaspending_api/common/tests/unit/test_business_categories_helper.py
|
g4brielvs/usaspending-api
|
bae7da2c204937ec1cdf75c052405b13145728d5
|
[
"CC0-1.0"
] | 217
|
2016-11-03T17:09:53.000Z
|
2022-03-10T04:17:54.000Z
|
usaspending_api/common/tests/unit/test_business_categories_helper.py
|
g4brielvs/usaspending-api
|
bae7da2c204937ec1cdf75c052405b13145728d5
|
[
"CC0-1.0"
] | 622
|
2016-09-02T19:18:23.000Z
|
2022-03-29T17:11:01.000Z
|
usaspending_api/common/tests/unit/test_business_categories_helper.py
|
g4brielvs/usaspending-api
|
bae7da2c204937ec1cdf75c052405b13145728d5
|
[
"CC0-1.0"
] | 93
|
2016-09-07T20:28:57.000Z
|
2022-02-25T00:25:27.000Z
|
# Imports from your apps
from usaspending_api.common.helpers.business_categories_helper import (
BUSINESS_CATEGORIES_LOOKUP_DICT,
get_business_category_display_names,
)
def _get_all_business_category_field_names():
return list(BUSINESS_CATEGORIES_LOOKUP_DICT.keys())
def _get_first_ten_business_category_field_names():
return list(BUSINESS_CATEGORIES_LOOKUP_DICT.keys())[:10]
def _get_all_business_category_display_names():
return list(BUSINESS_CATEGORIES_LOOKUP_DICT.values())
def _get_first_ten_business_category_display_names():
return list(BUSINESS_CATEGORIES_LOOKUP_DICT.values())[:10]
def test_get_ten_valid_business_category_display_names():
business_category_field_names_list = _get_first_ten_business_category_field_names()
business_category_display_names_list = _get_first_ten_business_category_display_names()
assert (
get_business_category_display_names(business_category_field_names_list) == business_category_display_names_list
)
def test_get_all_valid_business_category_display_names():
business_category_field_names_list = _get_all_business_category_field_names()
business_category_display_names_list = _get_all_business_category_display_names()
assert (
get_business_category_display_names(business_category_field_names_list) == business_category_display_names_list
)
def test_get_invalid_business_category_display_names():
business_category_field_names_list = _get_all_business_category_field_names()
business_category_field_names_list.insert(0, "invalid_name_1")
business_category_field_names_list.append("invalid_name_2")
business_category_display_names_list = _get_all_business_category_display_names()
assert (
get_business_category_display_names(business_category_field_names_list) == business_category_display_names_list
)
def test_get_empty_business_category_display_names():
business_category_field_names_list = []
assert get_business_category_display_names(business_category_field_names_list) == []
| 38.754717
| 119
| 0.842259
| 267
| 2,054
| 5.745318
| 0.146067
| 0.365059
| 0.29987
| 0.365059
| 0.884615
| 0.840939
| 0.820078
| 0.795306
| 0.795306
| 0.757497
| 0
| 0.003796
| 0.10224
| 2,054
| 52
| 120
| 39.5
| 0.828091
| 0.010711
| 0
| 0.285714
| 0
| 0
| 0.013793
| 0
| 0
| 0
| 0
| 0
| 0.114286
| 1
| 0.228571
| false
| 0
| 0.028571
| 0.114286
| 0.371429
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 11
|
e435065b56e7532fdfb54d0681d9559522db4c55
| 185
|
py
|
Python
|
learnGrammar/builtwith_learn.py
|
HelloHuDi/learn-python-demo
|
dd0419e93e96e67f86aaeba5fe8de9a1043ae1e7
|
[
"Apache-2.0"
] | 1
|
2017-11-28T02:13:52.000Z
|
2017-11-28T02:13:52.000Z
|
learnGrammar/builtwith_learn.py
|
HelloHuDi/learn-python-demo
|
dd0419e93e96e67f86aaeba5fe8de9a1043ae1e7
|
[
"Apache-2.0"
] | null | null | null |
learnGrammar/builtwith_learn.py
|
HelloHuDi/learn-python-demo
|
dd0419e93e96e67f86aaeba5fe8de9a1043ae1e7
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding:utf-8 -*-
# Created by hd on 2017/12/5 .
import builtwith as bw
""" 识别网站所用技术"""
print(bw.parse("http://www.u9yy.com"))
print(bw.parse("http://example.webscraping.com"))
| 18.5
| 49
| 0.648649
| 29
| 185
| 4.137931
| 0.793103
| 0.116667
| 0.2
| 0.266667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055215
| 0.118919
| 185
| 9
| 50
| 20.555556
| 0.680982
| 0.264865
| 0
| 0
| 0
| 0
| 0.415254
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.666667
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 7
|
e44bb39b93cbdfd8626fa508237f75182682460a
| 4,042
|
py
|
Python
|
libs/ma/tests/paired_io.py
|
ITBE-Lab/ma
|
039e2833dd2e50df9285f183ff774bd87bbae710
|
[
"MIT"
] | 40
|
2019-04-28T21:16:45.000Z
|
2022-02-05T05:54:47.000Z
|
libs/ma/tests/paired_io.py
|
ITBE-Lab/ma
|
039e2833dd2e50df9285f183ff774bd87bbae710
|
[
"MIT"
] | 11
|
2019-04-28T22:29:12.000Z
|
2022-02-21T14:07:10.000Z
|
libs/ma/tests/paired_io.py
|
ITBE-Lab/ma
|
039e2833dd2e50df9285f183ff774bd87bbae710
|
[
"MIT"
] | 2
|
2019-05-06T15:29:23.000Z
|
2021-01-08T13:22:17.000Z
|
from MA import *
from random import choice
import tempfile
import random
# create a reference string
reference = ""
for _ in range(1000):
reference += choice(['C', 'T', 'G', 'A'])
# create pack and fmd index from that string
reference_pack = Pack()
reference_pack.append("random pack", "sequence description", NucSeq(reference))
for _ in range(100):
query1 = ""
qual1 = ""
for _ in range(100):
query1 += choice(['C', 'T', 'G', 'A'])
qual1 += str(chr(random.randint(33, 126))) # random quality
query2 = ""
qual2 = ""
for _ in range(100):
query2 += choice(['C', 'T', 'G', 'A'])
qual2 += str(chr(random.randint(33, 126))) # random quality
# write a fasta file
fasta_1_file_name = tempfile.gettempdir() + "/.tmp1.fasta"
fasta_2_file_name = tempfile.gettempdir() + "/.tmp2.fasta"
sam_file_name = tempfile.gettempdir() + "/.tmp.p.sam"
with open(fasta_1_file_name, "w") as out_file:
out_file.write("@name desc\n")
out_file.write(query1)
out_file.write("\n+\n")
out_file.write(qual1)
out_file.write("\n")
with open(fasta_2_file_name, "w") as out_file:
out_file.write("@name desc\n")
out_file.write(query2)
out_file.write("\n+\n")
out_file.write(qual2)
out_file.write("\n")
file_reader = PairedFileReader(ParameterSetManager())
get_first = GetFirstQuery(ParameterSetManager())
get_second = GetSecondQuery(ParameterSetManager())
stream1 = FileStreamFromPath(fasta_1_file_name)
stream2 = FileStreamFromPath(fasta_2_file_name)
paired_stream = PairedFileStream(stream1, stream2)
query_vec = file_reader.execute(paired_stream)
alignment_vec = AlignmentVector()
file_writer = PairedFileWriter(ParameterSetManager(), sam_file_name, reference_pack)
file_writer.execute(get_first.execute(query_vec), get_second.execute(query_vec), alignment_vec, reference_pack)
del file_writer
fst = True
with open(sam_file_name, "r") as in_file:
for line in in_file:
if line[0] != '@':
#print("|", line, "|", sep="")
fields = line[:-1].split("\t")
#print("|" + fields[10] + "|", "|" + qual + "|", sep='\n')
assert fields[9] == query1 if fst else query2
assert fields[10] == qual1 if fst else query2
fst = False
for _ in range(100):
query1 = ""
for _ in range(100):
query1 += choice(['C', 'T', 'G', 'A'])
query2 = ""
for _ in range(100):
query2 += choice(['C', 'T', 'G', 'A'])
# write a fasta file
fasta_1_file_name = tempfile.gettempdir() + "/.tmp.1.fasta"
fasta_2_file_name = tempfile.gettempdir() + "/.tmp.2.fasta"
sam_file_name = tempfile.gettempdir() + "/.tmp.p.sam"
with open(fasta_1_file_name, "w") as out_file:
out_file.write(">name desc\n")
out_file.write(query1)
out_file.write("\n")
with open(fasta_2_file_name, "w") as out_file:
out_file.write(">name desc\n")
out_file.write(query2)
out_file.write("\n")
stream1 = FileStreamFromPath(fasta_1_file_name)
stream2 = FileStreamFromPath(fasta_2_file_name)
paired_stream = PairedFileStream(stream1, stream2)
query_vec = file_reader.execute(paired_stream)
alignment_vec = AlignmentVector()
file_writer = PairedFileWriter(ParameterSetManager(), sam_file_name, reference_pack)
file_writer.execute(get_first.execute(query_vec), get_second.execute(query_vec), alignment_vec, reference_pack)
del file_writer
fst = True
with open(sam_file_name, "r") as in_file:
for line in in_file:
if line[0] != '@':
#print("|", line, "|", sep="")
fields = line[:-1].split("\t")
#print("|" + fields[10] + "|", "|" + qual + "|", sep='\n')
assert fields[9] == query1 if fst else query2
assert fields[10] == "*"
fst = False
| 36.414414
| 115
| 0.60861
| 511
| 4,042
| 4.590998
| 0.183953
| 0.059676
| 0.081841
| 0.033248
| 0.8052
| 0.782182
| 0.782182
| 0.750639
| 0.708014
| 0.708014
| 0
| 0.03084
| 0.245918
| 4,042
| 111
| 116
| 36.414414
| 0.738845
| 0.0762
| 0
| 0.727273
| 0
| 0
| 0.054243
| 0
| 0
| 0
| 0
| 0
| 0.045455
| 1
| 0
| false
| 0
| 0.045455
| 0
| 0.045455
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5f806205190cb20c7aab3a76f58715a0a85d365c
| 6,118
|
py
|
Python
|
builder/build_libwebp/windows.py
|
kdschlosser/wxAnimation
|
ad472719a77a081da5e51280d469cfd5d5bfcd3c
|
[
"MIT"
] | 2
|
2020-03-23T11:29:56.000Z
|
2021-11-24T22:10:07.000Z
|
builder/build_libwebp/windows.py
|
kdschlosser/wxAnimation
|
ad472719a77a081da5e51280d469cfd5d5bfcd3c
|
[
"MIT"
] | null | null | null |
builder/build_libwebp/windows.py
|
kdschlosser/wxAnimation
|
ad472719a77a081da5e51280d469cfd5d5bfcd3c
|
[
"MIT"
] | null | null | null |
from build_framework import PLATFORM
from ..sources import WEBP_DECODER_SOURCES, WEBP_SOURCES, WEBP_MUX_SOURCES, WEBP_DEMUX_SOURCES
from ..dep_versions import WEBP_VERSION
import build_framework.library.windows
MACROS = [
('_CRT_SECURE_NO_WARNINGS', ''),
('_UNICODE', ''),
('UNICODE', ''),
('WIN32_LEAN_AND_MEAN', ''),
('HAVE_WINCODEC_H', ''),
('WEBP_USE_THREAD', '')
]
LIBS = ['zlib.lib', 'libpng']
LIB_DIRS = []
UDEF_MACROS = []
CFLAGS = ['/nologo', '/O2', '/MT', '/W3']
LDFLAGS = ['/LARGEADDRESSAWARE', '/MANIFEST', '/NXCOMPAT', '/DYNAMICBASE']
INCLUDES = [
'webp/src/dec',
'webp/src/demux',
'webp/src/dsp',
'webp/src/enc',
'webp/src/mux',
'webp/src/utils',
'webp/src/webp',
'libpng',
'zlib'
]
if PLATFORM == 'x64':
LDFLAGS += ['/SAFESEH:NO']
else:
LDFLAGS += ['/SAFESEH']
class WebPDecoderLibrary(build_framework.library.windows.Library):
def __init__(self):
name = 'libwebpdecoder'
sources = WEBP_DECODER_SOURCES
include_dirs = INCLUDES
define_macros = MACROS
undef_macros = UDEF_MACROS
library_dirs = LIB_DIRS
libraries = LIBS
runtime_library_dirs = ()
extra_objects = ()
extra_compile_args = CFLAGS
extra_link_args = LDFLAGS
export_symbols = ()
depends = ()
static_lib = True
version = WEBP_VERSION
build_framework.library.windows.Library.__init__(
self,
name=name,
sources=sources,
include_dirs=include_dirs,
define_macros=define_macros,
undef_macros=undef_macros,
library_dirs=library_dirs,
libraries=libraries,
runtime_library_dirs=runtime_library_dirs,
extra_objects=extra_objects,
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
export_symbols=export_symbols,
depends=depends,
static_lib=static_lib,
version=version,
)
# this enables the use of the build_framework multi threaded compiler
self.build = self._build
class WebPLibrary(build_framework.library.windows.Library):
def __init__(self):
name = 'libwebp'
sources = WEBP_SOURCES
include_dirs = INCLUDES
define_macros = MACROS
undef_macros = UDEF_MACROS
library_dirs = LIB_DIRS
libraries = LIBS
runtime_library_dirs = ()
extra_objects = ()
extra_compile_args = CFLAGS
extra_link_args = LDFLAGS
export_symbols = ()
depends = ()
static_lib = True
version = WEBP_VERSION
build_framework.library.windows.Library.__init__(
self,
name=name,
sources=sources,
include_dirs=include_dirs,
define_macros=define_macros,
undef_macros=undef_macros,
library_dirs=library_dirs,
libraries=libraries,
runtime_library_dirs=runtime_library_dirs,
extra_objects=extra_objects,
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
export_symbols=export_symbols,
depends=depends,
static_lib=static_lib,
version=version,
)
# this enables the use of the build_framework multi threaded compiler
self.build = self._build
class WebPMuxLibrary(build_framework.library.windows.Library):
def __init__(self):
name = 'libwebpmux'
sources = WEBP_MUX_SOURCES
include_dirs = INCLUDES
define_macros = MACROS
undef_macros = UDEF_MACROS
library_dirs = LIB_DIRS
libraries = LIBS
runtime_library_dirs = ()
extra_objects = ()
extra_compile_args = CFLAGS
extra_link_args = LDFLAGS
export_symbols = ()
depends = ()
static_lib = True
version = WEBP_VERSION
build_framework.library.windows.Library.__init__(
self,
name=name,
sources=sources,
include_dirs=include_dirs,
define_macros=define_macros,
undef_macros=undef_macros,
library_dirs=library_dirs,
libraries=libraries,
runtime_library_dirs=runtime_library_dirs,
extra_objects=extra_objects,
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
export_symbols=export_symbols,
depends=depends,
static_lib=static_lib,
version=version,
)
# this enables the use of the build_framework multi threaded compiler
self.build = self._build
class WebPDemuxLibrary(build_framework.library.windows.Library):
def __init__(self):
name = 'libwebpdemux'
sources = WEBP_DEMUX_SOURCES
include_dirs = INCLUDES
define_macros = MACROS
undef_macros = UDEF_MACROS
library_dirs = LIB_DIRS
libraries = LIBS
runtime_library_dirs = ()
extra_objects = ()
extra_compile_args = CFLAGS
extra_link_args = LDFLAGS
export_symbols = ()
depends = ()
static_lib = True
version = WEBP_VERSION
build_framework.library.windows.Library.__init__(
self,
name=name,
sources=sources,
include_dirs=include_dirs,
define_macros=define_macros,
undef_macros=undef_macros,
library_dirs=library_dirs,
libraries=libraries,
runtime_library_dirs=runtime_library_dirs,
extra_objects=extra_objects,
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
export_symbols=export_symbols,
depends=depends,
static_lib=static_lib,
version=version,
)
# this enables the use of the build_framework multi threaded compiler
self.build = self._build
| 29.555556
| 94
| 0.613763
| 625
| 6,118
| 5.6112
| 0.1456
| 0.075278
| 0.058169
| 0.071856
| 0.810664
| 0.810664
| 0.810664
| 0.810664
| 0.810664
| 0.753636
| 0
| 0.001419
| 0.308761
| 6,118
| 206
| 95
| 29.699029
| 0.827855
| 0.044296
| 0
| 0.727273
| 0
| 0
| 0.056326
| 0.003938
| 0
| 0
| 0
| 0
| 0
| 1
| 0.022727
| false
| 0
| 0.022727
| 0
| 0.068182
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5f8a14c3c1cab62f87911be8919b6d3e87ff7d36
| 19,743
|
py
|
Python
|
tests/unit/test_delineate_intersecting_shards.py
|
etta-trust/PolicyGlass
|
72157189a9af3172e6efbdcc2050969796cfa99f
|
[
"MIT"
] | 49
|
2021-12-21T23:15:55.000Z
|
2022-03-28T09:38:30.000Z
|
tests/unit/test_delineate_intersecting_shards.py
|
etta-trust/PolicyGlass
|
72157189a9af3172e6efbdcc2050969796cfa99f
|
[
"MIT"
] | 3
|
2021-12-23T22:02:02.000Z
|
2022-01-10T14:16:24.000Z
|
tests/unit/test_delineate_intersecting_shards.py
|
etta-trust/PolicyGlass
|
72157189a9af3172e6efbdcc2050969796cfa99f
|
[
"MIT"
] | 1
|
2022-02-22T11:03:27.000Z
|
2022-02-22T11:03:27.000Z
|
from policyglass import PolicyShard
from policyglass.action import Action, EffectiveAction
from policyglass.condition import Condition, EffectiveCondition
from policyglass.policy_shard import dedupe_policy_shards
from policyglass.principal import EffectivePrincipal, Principal
from policyglass.resource import EffectiveResource, Resource
def test_dedupe_policy_shards_simple():
shards = [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
PolicyShard(
effect="Deny",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
PolicyShard(
effect="Deny",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
]
assert dedupe_policy_shards(shards) == [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
PolicyShard(
effect="Deny",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
]
def test_dedupe_policy_shards_complex_overlap():
shards = [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset({Action("s3:get*")})),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset({Action("s3:getobject*")})),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
]
assert dedupe_policy_shards(shards) == [shards[1]]
def test_larger_after_smaller():
shards = [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset({Action("s3:PutObject")})),
effective_resource=EffectiveResource(
inclusion=Resource("arn:aws:s3:::examplebucket/*"), exclusions=frozenset()
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(
inclusion=Resource("arn:aws:s3:::examplebucket/*"), exclusions=frozenset()
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(
inclusion=Resource("arn:aws:s3:::examplebucket/*"), exclusions=frozenset()
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
]
assert dedupe_policy_shards(shards) == [shards[1]]
def test_identical():
shards = [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(
inclusion=Resource("arn:aws:s3:::examplebucket/*"), exclusions=frozenset()
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(
inclusion=Resource("arn:aws:s3:::examplebucket/*"), exclusions=frozenset()
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
]
assert dedupe_policy_shards(shards) == [shards[1]]
def test_identical_except_one_with_one_without_condition():
shards = [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(
inclusion=Resource("arn:aws:s3:::examplebucket/*"), exclusions=frozenset()
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(
frozenset({Condition(key="aws:PrincipalOrgId", operator="StringNotEquals", values=["o-123456"])})
),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(
inclusion=Resource("arn:aws:s3:::examplebucket/*"), exclusions=frozenset()
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
),
]
assert dedupe_policy_shards(shards) == [shards[1]]
def test_matching_subset_conditions():
shards = [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset({Action("s3:PutObject")})),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(
frozenset({Condition(key="aws:PrincipalOrgId", operator="StringNotEquals", values=["o-123456"])})
),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(
frozenset(
{
Condition(key="aws:PrincipalOrgId", operator="StringNotEquals", values=["o-123456"]),
Condition(key="s3:x-amz-server-side-encryption", operator="StringEquals", values=["AES256"]),
}
)
),
),
]
assert dedupe_policy_shards(shards) == [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:PutObject"), exclusions=frozenset()),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(
frozenset(
{
Condition(key="aws:PrincipalOrgId", operator="StringNotEquals", values=["o-123456"]),
Condition(key="s3:x-amz-server-side-encryption", operator="StringEquals", values=["AES256"]),
}
)
),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset({Action("s3:PutObject")})),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(
frozenset({Condition(key="aws:PrincipalOrgId", operator="StringNotEquals", values=["o-123456"])})
),
),
]
def test_matching_subset_conditions_and_condition_exclusions():
shards = [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset({Action("s3:PutObject")})),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(
frozenset({Condition(key="aws:PrincipalOrgId", operator="StringNotEquals", values=["o-123456"])})
),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(
inclusions=frozenset(
{
Condition(key="aws:PrincipalOrgId", operator="StringNotEquals", values=["o-123456"]),
}
),
exclusions=frozenset(
{
Condition(key="s3:x-amz-server-side-encryption", operator="StringEquals", values=["AES256"]),
}
),
),
),
]
assert dedupe_policy_shards(shards) == [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:PutObject"), exclusions=frozenset()),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(
inclusions=frozenset(
{Condition(key="aws:PrincipalOrgId", operator="StringNotEquals", values=["o-123456"])}
),
exclusions=frozenset(
{
Condition(key="s3:x-amz-server-side-encryption", operator="StringEquals", values=["AES256"]),
}
),
),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset({Action("s3:PutObject")})),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(
frozenset(
{
Condition(key="aws:PrincipalOrgId", operator="StringNotEquals", values=["o-123456"]),
}
)
),
),
]
def test_subset_arps_differing_conditions():
shards = [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset({Action("s3:PutObject")})),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(
frozenset({Condition(key="aws:PrincipalOrgId", operator="StringNotEquals", values=["o-123456"])})
),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("s3:*"), exclusions=frozenset()),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(
frozenset(
{
Condition(key="s3:x-amz-server-side-encryption", operator="StringEquals", values=["AES256"]),
}
)
),
),
]
assert dedupe_policy_shards(shards) == list(reversed(shards))
def test_result_of_denying_action_and_resource():
shards = [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("*"), exclusions=frozenset()),
effective_resource=EffectiveResource(
inclusion=Resource("*"), exclusions=frozenset({Resource("arn:aws:s3:::examplebucket/*")})
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(inclusions=frozenset(), exclusions=frozenset()),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("*"), exclusions=frozenset({Action("s3:PutObject")})),
effective_resource=EffectiveResource(
inclusion=Resource("arn:aws:s3:::examplebucket/*"), exclusions=frozenset()
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(inclusions=frozenset(), exclusions=frozenset()),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("*"), exclusions=frozenset({Action("s3:PutObject")})),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(inclusions=frozenset(), exclusions=frozenset()),
),
]
assert dedupe_policy_shards(shards) == [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("*"), exclusions=frozenset({Action("S3:PutObject")})),
effective_resource=EffectiveResource(
inclusion=Resource("arn:aws:s3:::examplebucket/*"), exclusions=frozenset()
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(inclusions=frozenset(), exclusions=frozenset()),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("*"), exclusions=frozenset()),
effective_resource=EffectiveResource(
inclusion=Resource("*"), exclusions=frozenset({Resource("arn:aws:s3:::examplebucket/*")})
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(inclusions=frozenset(), exclusions=frozenset()),
),
]
def test_result_of_difference_of_deny_action_and_resource_subsets():
# This corresponds to the output of difference/test_policyshard::deny_action_and_resource_subsets
# And demonstrates that counterintuitive output is resolved by dedupe_policy_shards
shards = [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("*"), exclusions=frozenset()),
effective_resource=EffectiveResource(
inclusion=Resource("*"), exclusions=frozenset({Resource("arn:aws:s3:::examplebucket/*")})
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(inclusions=frozenset(), exclusions=frozenset()),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("*"), exclusions=frozenset({Action("s3:PutObject")})),
effective_resource=EffectiveResource(inclusion=Resource("*"), exclusions=frozenset()),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(inclusions=frozenset(), exclusions=frozenset()),
),
]
assert dedupe_policy_shards(shards) == [
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("*"), exclusions=frozenset({Action("s3:PutObject")})),
effective_resource=EffectiveResource(
inclusion=Resource("arn:aws:s3:::examplebucket/*"), exclusions=frozenset()
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(inclusions=frozenset(), exclusions=frozenset()),
),
PolicyShard(
effect="Allow",
effective_action=EffectiveAction(inclusion=Action("*"), exclusions=frozenset()),
effective_resource=EffectiveResource(
inclusion=Resource("*"), exclusions=frozenset({Resource("arn:aws:s3:::examplebucket/*")})
),
effective_principal=EffectivePrincipal(inclusion=Principal(type="AWS", value="*"), exclusions=frozenset()),
effective_condition=EffectiveCondition(inclusions=frozenset(), exclusions=frozenset()),
),
]
| 50.236641
| 120
| 0.630502
| 1,507
| 19,743
| 8.127405
| 0.057067
| 0.175294
| 0.162312
| 0.108263
| 0.950114
| 0.938357
| 0.938357
| 0.938357
| 0.938357
| 0.938357
| 0
| 0.008984
| 0.233247
| 19,743
| 392
| 121
| 50.364796
| 0.800106
| 0.008965
| 0
| 0.849582
| 0
| 0
| 0.084394
| 0.027961
| 0
| 0
| 0
| 0
| 0.027855
| 1
| 0.027855
| false
| 0
| 0.016713
| 0
| 0.044568
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
5f8f018d585491443d84b9cb9882d0f817b4eb33
| 9,254
|
py
|
Python
|
jet-python/build/lib.linux-x86_64-2.7/jnpr/jet/jnxBase_jnx_addr/ttypes.py
|
Juniper/vmx-docker-lwaftr
|
ebbedad67d8acd74f4a305a0a4ad6bf2ed716e7e
|
[
"Apache-2.0"
] | 31
|
2016-11-22T06:17:37.000Z
|
2022-01-10T05:41:02.000Z
|
jet-python/lib/jnpr/jet/jnxBase_jnx_addr/ttypes.py
|
Juniper/vmx-docker-lwaftr
|
ebbedad67d8acd74f4a305a0a4ad6bf2ed716e7e
|
[
"Apache-2.0"
] | 2
|
2016-12-20T13:53:57.000Z
|
2017-03-27T20:10:07.000Z
|
jet-python/build/lib.linux-x86_64-2.7/jnpr/jet/jnxBase_jnx_addr/ttypes.py
|
Juniper/vmx-docker-lwaftr
|
ebbedad67d8acd74f4a305a0a4ad6bf2ed716e7e
|
[
"Apache-2.0"
] | 8
|
2017-01-31T22:18:18.000Z
|
2020-02-05T10:33:23.000Z
|
#
# Autogenerated by Thrift Compiler (0.9.1)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
# options string: py
#
from thrift.Thrift import TType, TMessageType, TException, TApplicationException
from thrift.transport import TTransport
from thrift.protocol import TBinaryProtocol, TProtocol
try:
from thrift.protocol import fastbinary
except:
fastbinary = None
class JnxBaseAddressFormat:
ADDRESS_STRING = 0
ADDRESS_BYTES = 1
_VALUES_TO_NAMES = {
0: "ADDRESS_STRING",
1: "ADDRESS_BYTES",
}
_NAMES_TO_VALUES = {
"ADDRESS_STRING": 0,
"ADDRESS_BYTES": 1,
}
class JnxBaseAfType:
AF_UNSPECIFIED = 0
AF_INET = 1
AF_INET6 = 2
AF_MAC = 3
_VALUES_TO_NAMES = {
0: "AF_UNSPECIFIED",
1: "AF_INET",
2: "AF_INET6",
3: "AF_MAC",
}
_NAMES_TO_VALUES = {
"AF_UNSPECIFIED": 0,
"AF_INET": 1,
"AF_INET6": 2,
"AF_MAC": 3,
}
class IpAddressAddrFormat:
"""
Attributes:
- addr_string
- addr_bytes
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'addr_string', None, None, ), # 1
(2, TType.STRING, 'addr_bytes', None, None, ), # 2
)
def __init__(self, addr_string=None, addr_bytes=None,):
self.addr_string = addr_string
self.addr_bytes = addr_bytes
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.addr_string = iprot.readString();
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.addr_bytes = iprot.readString();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('IpAddressAddrFormat')
if self.addr_string is not None:
oprot.writeFieldBegin('addr_string', TType.STRING, 1)
oprot.writeString(self.addr_string)
oprot.writeFieldEnd()
if self.addr_bytes is not None:
oprot.writeFieldBegin('addr_bytes', TType.STRING, 2)
oprot.writeString(self.addr_bytes)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class JnxBaseIpAddress:
"""
Attributes:
- AddrFormat
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'AddrFormat', (IpAddressAddrFormat, IpAddressAddrFormat.thrift_spec), None, ), # 1
)
def __init__(self, AddrFormat=None,):
self.AddrFormat = AddrFormat
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.AddrFormat = IpAddressAddrFormat()
self.AddrFormat.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('JnxBaseIpAddress')
if self.AddrFormat is not None:
oprot.writeFieldBegin('AddrFormat', TType.STRUCT, 1)
self.AddrFormat.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class MacAddressAddrFormat:
"""
Attributes:
- addr_string
- addr_bytes
"""
thrift_spec = (
None, # 0
(1, TType.STRING, 'addr_string', None, None, ), # 1
(2, TType.STRING, 'addr_bytes', None, None, ), # 2
)
def __init__(self, addr_string=None, addr_bytes=None,):
self.addr_string = addr_string
self.addr_bytes = addr_bytes
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRING:
self.addr_string = iprot.readString();
else:
iprot.skip(ftype)
elif fid == 2:
if ftype == TType.STRING:
self.addr_bytes = iprot.readString();
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('MacAddressAddrFormat')
if self.addr_string is not None:
oprot.writeFieldBegin('addr_string', TType.STRING, 1)
oprot.writeString(self.addr_string)
oprot.writeFieldEnd()
if self.addr_bytes is not None:
oprot.writeFieldBegin('addr_bytes', TType.STRING, 2)
oprot.writeString(self.addr_bytes)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
class JnxBaseMacAddress:
"""
Attributes:
- AddrFormat
"""
thrift_spec = (
None, # 0
(1, TType.STRUCT, 'AddrFormat', (MacAddressAddrFormat, MacAddressAddrFormat.thrift_spec), None, ), # 1
)
def __init__(self, AddrFormat=None,):
self.AddrFormat = AddrFormat
def read(self, iprot):
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
return
iprot.readStructBegin()
while True:
(fname, ftype, fid) = iprot.readFieldBegin()
if ftype == TType.STOP:
break
if fid == 1:
if ftype == TType.STRUCT:
self.AddrFormat = MacAddressAddrFormat()
self.AddrFormat.read(iprot)
else:
iprot.skip(ftype)
else:
iprot.skip(ftype)
iprot.readFieldEnd()
iprot.readStructEnd()
def write(self, oprot):
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
return
oprot.writeStructBegin('JnxBaseMacAddress')
if self.AddrFormat is not None:
oprot.writeFieldBegin('AddrFormat', TType.STRUCT, 1)
self.AddrFormat.write(oprot)
oprot.writeFieldEnd()
oprot.writeFieldStop()
oprot.writeStructEnd()
def validate(self):
return
def __repr__(self):
L = ['%s=%r' % (key, value)
for key, value in self.__dict__.iteritems()]
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
def __eq__(self, other):
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
def __ne__(self, other):
return not (self == other)
| 29.009404
| 188
| 0.666306
| 1,090
| 9,254
| 5.363303
| 0.105505
| 0.037633
| 0.033869
| 0.03079
| 0.874957
| 0.874957
| 0.86572
| 0.86572
| 0.86572
| 0.86572
| 0
| 0.007191
| 0.218608
| 9,254
| 318
| 189
| 29.100629
| 0.801272
| 0.030257
| 0
| 0.806584
| 1
| 0
| 0.041793
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.115226
| false
| 0
| 0.016461
| 0.049383
| 0.312757
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
39b6d542902b78c2561b9a7f78ded67e4c8b30b2
| 123
|
py
|
Python
|
core/admin.py
|
uktrade/export-wins-data
|
46caa444812e89abe504bec8c15aa7f7ba1a247e
|
[
"MIT"
] | 5
|
2016-09-12T12:52:45.000Z
|
2020-03-24T14:43:13.000Z
|
core/admin.py
|
uktrade/export-wins-data
|
46caa444812e89abe504bec8c15aa7f7ba1a247e
|
[
"MIT"
] | 435
|
2016-10-18T12:51:39.000Z
|
2021-06-09T17:22:08.000Z
|
core/admin.py
|
uktrade/export-wins-data
|
46caa444812e89abe504bec8c15aa7f7ba1a247e
|
[
"MIT"
] | 2
|
2016-12-06T10:37:21.000Z
|
2017-02-22T17:27:43.000Z
|
from django.contrib import admin
admin.site.site_header = 'Export Wins Admin'
admin.site.site_title = 'Export Wins Admin'
| 24.6
| 44
| 0.788618
| 19
| 123
| 5
| 0.526316
| 0.210526
| 0.294737
| 0.378947
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121951
| 123
| 4
| 45
| 30.75
| 0.87963
| 0
| 0
| 0
| 0
| 0
| 0.276423
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
f2f9dc6db61bafbab20364b4cb3c5740b2221f09
| 68
|
py
|
Python
|
tests/test_mod.py
|
dreki/py-fodder
|
bff5338d0d532ccb1a06ab6edb3e0d34cba27a7e
|
[
"MIT"
] | 1
|
2017-02-10T04:36:43.000Z
|
2017-02-10T04:36:43.000Z
|
tests/test_mod.py
|
dreki/py-fodder
|
bff5338d0d532ccb1a06ab6edb3e0d34cba27a7e
|
[
"MIT"
] | null | null | null |
tests/test_mod.py
|
dreki/py-fodder
|
bff5338d0d532ccb1a06ab6edb3e0d34cba27a7e
|
[
"MIT"
] | null | null | null |
import fodder
def test_has_legs():
assert not fodder.has_legs
| 11.333333
| 30
| 0.75
| 11
| 68
| 4.363636
| 0.727273
| 0.291667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.191176
| 68
| 5
| 31
| 13.6
| 0.872727
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.