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
25411c3e6ffef0272e0c6df5d33d98f728773bcf
40
py
Python
models/__init__.py
GuohongLi/face-alignment-pytorch
6864da12ae855f680a01371937a95cd51d0ce95f
[ "BSD-3-Clause" ]
59
2018-12-13T10:14:58.000Z
2021-11-23T19:16:58.000Z
models/__init__.py
GuohongLi/face-alignment-pytorch
6864da12ae855f680a01371937a95cd51d0ce95f
[ "BSD-3-Clause" ]
4
2019-02-11T10:16:06.000Z
2021-03-12T08:09:28.000Z
models/__init__.py
GuohongLi/face-alignment-pytorch
6864da12ae855f680a01371937a95cd51d0ce95f
[ "BSD-3-Clause" ]
13
2019-02-17T09:09:11.000Z
2021-02-21T18:24:59.000Z
from .fan import * from .resnet import *
20
21
0.725
6
40
4.833333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.175
40
2
21
20
0.878788
0
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
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
6
c26125dbabb3682fec2bd7a30986b248061cdde1
182
py
Python
LogIn/views.py
code-xD/Django-Projects
41537bb21cc392c84e55bb029cfa09a3c7574fad
[ "MIT" ]
null
null
null
LogIn/views.py
code-xD/Django-Projects
41537bb21cc392c84e55bb029cfa09a3c7574fad
[ "MIT" ]
null
null
null
LogIn/views.py
code-xD/Django-Projects
41537bb21cc392c84e55bb029cfa09a3c7574fad
[ "MIT" ]
null
null
null
from django.contrib.auth.decorators import login_required from django.shortcuts import render # # @login_required def home(request): return render(request, 'LogIn/home.html')
18.2
57
0.78022
24
182
5.833333
0.625
0.142857
0
0
0
0
0
0
0
0
0
0
0.126374
182
9
58
20.222222
0.880503
0.082418
0
0
0
0
0.091463
0
0
0
0
0
0
1
0.25
false
0
0.5
0.25
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
0
0
1
1
1
0
0
6
6c084c8e4d00bff504ee639049e9317a6167b794
681
py
Python
build/simtrack/simtrack_nodes/catkin_generated/pkg.develspace.context.pc.py
i10/3DTrackingViaKinect
04121488e87a40306e5f466f744bf5683e64bf63
[ "BSD-3-Clause" ]
1
2021-04-13T05:49:57.000Z
2021-04-13T05:49:57.000Z
build/simtrack/simtrack_nodes/catkin_generated/pkg.develspace.context.pc.py
i10/3DTrackingViaKinect
04121488e87a40306e5f466f744bf5683e64bf63
[ "BSD-3-Clause" ]
null
null
null
build/simtrack/simtrack_nodes/catkin_generated/pkg.develspace.context.pc.py
i10/3DTrackingViaKinect
04121488e87a40306e5f466f744bf5683e64bf63
[ "BSD-3-Clause" ]
null
null
null
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/shams3049/catkin_ws/devel/include;/home/shams3049/catkin_ws/src/simtrack/simtrack_nodes/include".split(';') if "/home/shams3049/catkin_ws/devel/include;/home/shams3049/catkin_ws/src/simtrack/simtrack_nodes/include" != "" else [] PROJECT_CATKIN_DEPENDS = "image_transport;tf;geometry_msgs;message_runtime;interface;cv_bridge".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lsimtrack_nodes".split(';') if "-lsimtrack_nodes" != "" else [] PROJECT_NAME = "simtrack_nodes" PROJECT_SPACE_DIR = "/home/shams3049/catkin_ws/devel" PROJECT_VERSION = "0.1.0"
75.666667
269
0.790015
93
681
5.462366
0.494624
0.127953
0.187008
0.206693
0.385827
0.334646
0.334646
0.334646
0.334646
0.334646
0
0.035826
0.057269
681
8
270
85.125
0.755452
0.079295
0
0
1
0.285714
0.5696
0.4816
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
6c5fc7af8401d8a8423c1638be6960a58c4ad101
10,399
py
Python
Modules/alignment.py
Gyfis/sequence-comparison
6506f784af4902645bb4562d507d465d57ed4366
[ "MIT" ]
null
null
null
Modules/alignment.py
Gyfis/sequence-comparison
6506f784af4902645bb4562d507d465d57ed4366
[ "MIT" ]
null
null
null
Modules/alignment.py
Gyfis/sequence-comparison
6506f784af4902645bb4562d507d465d57ed4366
[ "MIT" ]
null
null
null
from enum import Enum import numpy as np import pickle __author__ = 'Gyfis' class ScoringMatrix(Enum): BLOSUM62 = 1 PAM40 = 5 PAM80 = 6 PAM120 = 7 PAM250 = 8 def gap_opening_penalty(self): return { ScoringMatrix.BLOSUM62: -11, ScoringMatrix.PAM40: -10, ScoringMatrix.PAM80: -10, ScoringMatrix.PAM120: -11, ScoringMatrix.PAM250: -12, }[self] def gap_extension_penalty(self): return { ScoringMatrix.BLOSUM62: -4, ScoringMatrix.PAM40: -2, ScoringMatrix.PAM80: -2, ScoringMatrix.PAM120: -8, ScoringMatrix.PAM250: -4 }[self] def get_matrix(self): return pickle.load(open({ ScoringMatrix.BLOSUM62: 'scoring_matrices/blosum62.p', ScoringMatrix.PAM40: 'scoring_matrices/pam40.p', ScoringMatrix.PAM80: 'scoring_matrices/pam80.p', ScoringMatrix.PAM120: 'scoring_matrices/pam120.p', ScoringMatrix.PAM250: 'scoring_matrices/pam250.p', }[self], 'rb')) __default_alignment_width = 100 def find_global_alignment_scoring_matrix(sequence_a, sequence_b, scoring_matrix='pam120', alignment_print_width=__default_alignment_width): scoring_matrix = ScoringMatrix[scoring_matrix.upper()] return _find_global_alignment(sequence_a, sequence_b, scoring_matrix.gap_opening_penalty(), scoring_matrix.gap_extension_penalty(), scoring_matrix.get_matrix(), None, None, alignment_print_width=alignment_print_width) def find_global_alignment_scoring_matrix_gaps(sequence_a, sequence_b, scoring_matrix='pam120', go=-11, ge=-8, alignment_print_width=__default_alignment_width): scoring_matrix = ScoringMatrix[scoring_matrix.upper()] return _find_global_alignment(sequence_a, sequence_b, go, ge, scoring_matrix.get_matrix(), None, None, alignment_print_width=alignment_print_width) def find_global_alignment_match_mismatch(sequence_a, sequence_b, match, mismatch, go, ge, alignment_print_width=__default_alignment_width): return _find_global_alignment(sequence_a, sequence_b, go, ge, None, match, mismatch, alignment_print_width=alignment_print_width) def _find_global_alignment(sequence_a, sequence_b, go, ge, scoring_matrix, match, mismatch, alignment_print_width): infinity = -100000 lenA = len(sequence_a) + 1 lenB = len(sequence_b) + 1 table = np.zeros((lenA, lenB, 2), dtype=np.int) backtrace = np.zeros((lenA, lenB, 2, 3), dtype=np.int) table[0, 0, 0] = 0 table[0, 0, 1] = infinity for i in xrange(1, lenA): table[i, 0, 0] = infinity table[i, 0, 1] = go + ge * (i - 1) for j in xrange(1, lenB): table[0, j, 0] = infinity table[0, j, 1] = go + ge * (j - 1) for i in xrange(1, lenA): for j in xrange(1, lenB): si = i - 1 sj = j - 1 score = scoring_matrix[sequence_a[si], sequence_b[sj]] if match is None else match if sequence_a[si] == sequence_b[sj] else mismatch table[i, j, 0] = max(table[i - 1, j - 1, 0] + score, table[i - 1, j - 1, 1] + score) table[i, j, 1] = max(table[i - 1, j, 0] + go, table[i - 1, j, 1] + ge, table[i, j - 1, 0] + go, table[i, j - 1, 1] + ge) max_score = table[i - 1, j - 1, 0] + score backtrace[i, j, 0] = [i - 1, j - 1, 0] if table[i - 1, j - 1, 1] + score > max_score: backtrace[i, j, 0] = [i - 1, j - 1, 1] max_score = table[i - 1, j, 0] + go backtrace[i, j, 1] = [i - 1, j, 0] if table[i - 1, j, 1] + ge > max_score: max_score = table[i - 1, j, 1] + ge backtrace[i, j, 1] = [i - 1, j, 1] if table[i, j - 1, 0] + go > max_score: max_score = table[i, j - 1, 0] + go backtrace[i, j, 1] = [i, j - 1, 0] if table[i, j - 1, 1] + ge > max_score: backtrace[i, j, 1] = [i, j - 1, 1] i = lenA - 1 j = lenB - 1 k = 0 if table[i, j, 0] > table[i, j, 1] else 1 score = table[i, j, k] alignment = [] while (i, j) != (0, 0): pi, pj, pk = tuple(backtrace[i, j, k]) if pi == i: alignment.append(('-', sequence_b[j - 1])) elif pj == j: alignment.append((sequence_a[i - 1], '-')) else: alignment.append((sequence_a[i - 1], sequence_b[j - 1])) if pi == 0 and pj != 0: j = pj - 1 while j != 0: alignment.append(('-', sequence_b[j - 1])) j -= 1 break if pj == 0 and pi != 0: i = pi - 1 while i != 0: alignment.append((sequence_a[i - 1], '-')) i -= 1 break if pi == 0 and pj == 0: break i, j, k = pi, pj, pk alignment = alignment[::-1] curent_print_width = 0 s_alignment = '' while curent_print_width < len(alignment): s_alignment += '<br><br></br></br>' + ''.join([a for a, b in alignment[curent_print_width:curent_print_width + alignment_print_width]]) s_alignment += '<br></br>' + ''.join([b for a, b in alignment[curent_print_width:curent_print_width + alignment_print_width]]) curent_print_width += alignment_print_width return alignment, s_alignment, score def find_local_alignment_scoring_matrix(sequence_a, sequence_b, scoring_matrix='pam120', alignment_print_width=__default_alignment_width): scoring_matrix = ScoringMatrix[scoring_matrix.upper()] return _find_local_alignment(sequence_a, sequence_b, scoring_matrix.gap_opening_penalty(), scoring_matrix.gap_extension_penalty(), scoring_matrix.get_matrix(), None, None, alignment_print_width=alignment_print_width) def find_local_alignment_scoring_matrix_gaps(sequence_a, sequence_b, scoring_matrix='pam120', go=-11, ge=-8, alignment_print_width=__default_alignment_width): scoring_matrix = ScoringMatrix[scoring_matrix.upper()] return _find_local_alignment(sequence_a, sequence_b, go, ge, scoring_matrix.get_matrix(), None, None, alignment_print_width=alignment_print_width) def find_local_alignment_match_mismatch(sequence_a, sequence_b, match, mismatch, go, ge, alignment_print_width=__default_alignment_width): return _find_local_alignment(sequence_a, sequence_b, go, ge, None, match, mismatch, alignment_print_width=alignment_print_width) def _find_local_alignment(sequence_a, sequence_b, go, ge, scoring_matrix, match, mismatch, alignment_print_width): infinity = -100000 lenA = len(sequence_a) + 1 lenB = len(sequence_b) + 1 table = np.zeros((lenA, lenB, 2), dtype=np.int) backtrace = np.zeros((lenA, lenB, 2, 3), dtype=np.int) table[0, 0, 0] = 0 table[0, 0, 1] = infinity for i in xrange(1, lenA): table[i, 0, 0] = infinity table[i, 0, 1] = go + ge * (i - 1) for j in xrange(1, lenB): table[0, j, 0] = infinity table[0, j, 1] = go + ge * (j - 1) for i in xrange(1, lenA): for j in xrange(1, lenB): si = i - 1 sj = j - 1 score = scoring_matrix[sequence_a[si], sequence_b[sj]] if match is None else match if sequence_a[si] == sequence_b[sj] else mismatch table[i, j, 0] = max(table[i - 1, j - 1, 0] + score, table[i - 1, j - 1, 1] + score, 0) table[i, j, 1] = max(table[i - 1, j, 0] + go, table[i - 1, j, 1] + ge, table[i, j - 1, 0] + go, table[i, j - 1, 1] + ge, 0) max_score = table[i - 1, j - 1, 0] + score backtrace[i, j, 0] = [i - 1, j - 1, 0] if table[i - 1, j - 1, 1] + score > max_score: backtrace[i, j, 0] = [i - 1, j - 1, 1] max_score = table[i - 1, j, 0] + go backtrace[i, j, 1] = [i - 1, j, 0] if table[i - 1, j, 1] + ge > max_score: max_score = table[i - 1, j, 1] + ge backtrace[i, j, 1] = [i - 1, j, 1] if table[i, j - 1, 0] + go > max_score: max_score = table[i, j - 1, 0] + go backtrace[i, j, 1] = [i, j - 1, 0] if table[i, j - 1, 1] + ge > max_score: backtrace[i, j, 1] = [i, j - 1, 1] max_score = -1 max_i = 0 max_j = 0 max_k = 0 for i in xrange(len(sequence_a)): for j in xrange(len(sequence_b)): if max_score < table[i, j, 0]: max_score = table[i, j, 0] max_i, max_j, max_k = i, j, 0 if max_score < table[i, j, 1]: max_score = table[i, j, 1] max_i, max_j, max_k = i, j, 1 i = max_i j = max_j k = max_k alignment = [] while table[i, j, k] > 0: pi, pj, pk = tuple(backtrace[i, j, k]) if pk == 0: alignment.append((sequence_a[i - 1], sequence_b[j - 1])) elif pi == i: alignment.append(('-', sequence_b[j - 1])) else: alignment.append((sequence_a[i - 1], '-')) if pi == 0 and pj != 0: while pj != 0: alignment.append(('-', sequence_b[pj - 1])) pj -= 1 break if pj == 0 and pi != 0: while pi != 0: alignment.append((sequence_a[pi - 1], '-')) pi -= 1 break if pi == 0 and pj == 0: break i, j, k = pi, pj, pk alignment = alignment[::-1] curent_print_width = 0 s_alignment = '' while curent_print_width < len(alignment): s_alignment += '<br><br></br></br>' + ''.join([a for a, b in alignment[curent_print_width:curent_print_width + alignment_print_width]]) s_alignment += '<br></br>' + ''.join([b for a, b in alignment[curent_print_width:curent_print_width + alignment_print_width]]) + '\n' curent_print_width += alignment_print_width return alignment, s_alignment, max_score
35.982699
159
0.547937
1,451
10,399
3.717436
0.06754
0.022247
0.015573
0.014831
0.854283
0.821468
0.806637
0.785502
0.756767
0.756767
0
0.047917
0.323685
10,399
288
160
36.107639
0.719039
0
0
0.579439
0
0
0.021162
0.012024
0.004673
0
0
0
0
1
0.051402
false
0
0.014019
0.023364
0.14486
0.11215
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
66b87fe0622c9f492a5636a26d8317955bef731c
1,337
py
Python
forms.py
drogomarks/heimdallv2
960260d0d238811bc7b4e0402aaa2498ee0bdb30
[ "MIT" ]
null
null
null
forms.py
drogomarks/heimdallv2
960260d0d238811bc7b4e0402aaa2498ee0bdb30
[ "MIT" ]
null
null
null
forms.py
drogomarks/heimdallv2
960260d0d238811bc7b4e0402aaa2498ee0bdb30
[ "MIT" ]
null
null
null
from flask_wtf import Form from wtforms import StringField, TextField, IntegerField, SubmitField, SelectField, validators class GetuserForm(Form): customer_id = IntegerField('Customer ID') domain = TextField('Domain') user = TextField('User') mbx_type = SelectField(u'Mailbox Type', choices=[('rs', 'rs'), ('ex', 'ex')]) class GetdomainForm(Form): customer_id = IntegerField('Customer ID') domain = TextField('Domain') mbx_type = SelectField(u'Mailbox Type', choices=[('rs', 'rs'), ('ex', 'ex')]) class GetallForm(Form): customer_id = IntegerField('Customer ID') domain = TextField('Domain') mbx_type = SelectField(u'Mailbox Type', choices=[('rs', 'rs'), ('ex', 'ex')]) class PutuservexForm(Form): customer_id = IntegerField('Customer ID') domain = TextField('Domain') user = TextField('User') mbx_type = SelectField(u'Mailbox Type', choices=[('rs', 'rs'), ('ex', 'ex')]) user_vex_val = SelectField(u'Value', choices=[('true', 'true'), ('false', 'false')]) class PutdomainvexForm(Form): customer_id = IntegerField('Customer ID') domain = TextField('Domain') mbx_type = SelectField(u'Mailbox Type', choices=[('rs', 'rs'), ('ex', 'ex')]) domain_vex_val = SelectField(u'Value', choices=[('true', 'true'), ('false', 'false')])
40.515152
95
0.640987
152
1,337
5.539474
0.223684
0.118765
0.083135
0.154394
0.77791
0.77791
0.77791
0.77791
0.77791
0.77791
0
0
0.173523
1,337
32
96
41.78125
0.761991
0
0
0.653846
0
0
0.183142
0
0
0
0
0
0
1
0
false
0
0.076923
0
1
0
0
0
0
null
0
0
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
1
0
0
6
66cced8821cd22630deece448e8feb3291c2704e
231
py
Python
frontend/views.py
TheLastRKoch/Emmily.API
f7ac104dc7d78551d29ea201732d3f66c71fa02f
[ "TCP-wrappers" ]
null
null
null
frontend/views.py
TheLastRKoch/Emmily.API
f7ac104dc7d78551d29ea201732d3f66c71fa02f
[ "TCP-wrappers" ]
3
2021-01-01T17:56:29.000Z
2021-04-02T03:15:24.000Z
frontend/views.py
TheLastRKoch/Emmily.API
f7ac104dc7d78551d29ea201732d3f66c71fa02f
[ "TCP-wrappers" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.db.models import Q from django.http import HttpResponse from django.http import JsonResponse def index(request): return render(request,'index.html')
28.875
64
0.813853
34
231
5.441176
0.617647
0.216216
0.151351
0.216216
0
0
0
0
0
0
0
0.014706
0.116883
231
7
65
33
0.892157
0
0
0
0
0
0.04329
0
0
0
0
0
0
1
0.166667
false
0
0.666667
0.166667
1
0
0
0
0
null
1
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
6
66e08155d6c17746aed86591bd2b19db0bd06982
2,253
py
Python
commons/graph/graph_if.py
btc-ag/revengtools
d58680ef7d6bdc8ef518860d5d13a5acc0d01758
[ "Apache-2.0" ]
2
2019-07-15T14:59:59.000Z
2022-01-18T14:23:54.000Z
commons/graph/graph_if.py
btc-ag/revengtools
d58680ef7d6bdc8ef518860d5d13a5acc0d01758
[ "Apache-2.0" ]
10
2018-05-03T13:25:07.000Z
2021-06-25T15:14:55.000Z
commons/graph/graph_if.py
btc-ag/revengtools
d58680ef7d6bdc8ef518860d5d13a5acc0d01758
[ "Apache-2.0" ]
1
2018-05-02T13:59:27.000Z
2018-05-02T13:59:27.000Z
# -*- coding: UTF-8 -*- ''' Contains basic interfaces for graph data structures. @todo: This is planned to be replaced by pygraph Created on 05.10.2010 @author: SIGIESEC ''' class Node(object): def get_id(self): raise NotImplementedError(self.__class__) class LabelledNode(Node): def get_label(self): raise NotImplementedError(self.__class__) def set_label(self, _label): raise NotImplementedError(self.__class__) class Edge(object): """ Implementations of Edge should implement __hash__, __eq__, __ne__ in addition, and __lt__, __gt__ if sorting should be supported. """ def get_from_node(self): raise NotImplementedError(self.__class__) def get_to_node(self): raise NotImplementedError(self.__class__) def node_set(self): raise NotImplementedError(self.__class__) def node_tuple(self): raise NotImplementedError(self.__class__) class BasicGraph(object): def edges(self): raise NotImplementedError(self.__class__) def nodeitems_iter(self): raise NotImplementedError(self.__class__) def nodes_raw(self): raise NotImplementedError(self.__class__) def node_names_iter(self): raise NotImplementedError(self.__class__) def node_names(self): raise NotImplementedError(self.__class__) def node_count(self): raise NotImplementedError(self.__class__) def edge_count(self): raise NotImplementedError(self.__class__) class MutableGraph(BasicGraph): """ A generic interface for manipulating graphs. """ # TODO A "Node" class should be used for __nodes # TODO An "Edge" class should be used for __edges, with a default "SimpleEdge" implementation def add_edge(self, _edge): """ Adds an edge to the graph. The required type of <edge> depends on the implementation. """ raise NotImplementedError(self.__class__) def add_node(self, _node, _allowChange = False): raise NotImplementedError(self.__class__) def change_node(self, node): raise NotImplementedError(self.__class__) def del_node(self, _node): raise NotImplementedError(self.__class__)
26.197674
98
0.688859
256
2,253
5.589844
0.335938
0.301887
0.352201
0.415094
0.57652
0.469602
0.290706
0.068484
0
0
0
0.005169
0.227253
2,253
85
99
26.505882
0.816772
0.252552
0
0.439024
0
0
0
0
0
0
0
0.023529
0
1
0.439024
false
0
0
0
0.560976
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
1
0
0
1
0
0
0
0
1
0
0
6
dd8c9f0185dc413e6f635eeccb67023bdcd54338
257
py
Python
deeprobust/image/netmodels/__init__.py
smaranjitghose/DeepRobust
91f2b922e61a3fa0987e37b7ea6c1cd9150c1c81
[ "MIT" ]
647
2020-02-08T02:13:21.000Z
2022-03-31T07:44:00.000Z
deeprobust/image/netmodels/__init__.py
qilong-zhang/DeepRobust
276a7048aded2cf3a190d3851ffd4587b7d1dd49
[ "MIT" ]
77
2020-03-21T11:27:30.000Z
2022-03-23T10:55:53.000Z
deeprobust/image/netmodels/__init__.py
qilong-zhang/DeepRobust
276a7048aded2cf3a190d3851ffd4587b7d1dd49
[ "MIT" ]
139
2020-03-04T00:25:12.000Z
2022-03-21T15:45:29.000Z
#__init__.py from deeprobust.image.netmodels import CNN from deeprobust.image.netmodels import resnet from deeprobust.image.netmodels import YOPOCNN from deeprobust.image.netmodels import train_model __all__ = ['CNNmodel','resnet','YOPOCNN','train_model']
32.125
55
0.824903
33
257
6.121212
0.424242
0.277228
0.376238
0.554455
0.673267
0
0
0
0
0
0
0
0.081712
257
7
56
36.714286
0.855932
0.042802
0
0
0
0
0.130612
0
0
0
0
0
0
1
0
false
0
0.8
0
0.8
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
0
0
1
0
1
0
0
6
b0e54701c79fc7f776a30cf37e567f0393143904
4,170
py
Python
tests/test_verification.py
konradhalas/mimid
fca4b61c5ee9e5bbb2e60f9a3fcc3593a30333d2
[ "MIT" ]
11
2019-06-12T19:33:13.000Z
2021-07-12T01:20:55.000Z
tests/test_verification.py
konradhalas/mimid
fca4b61c5ee9e5bbb2e60f9a3fcc3593a30333d2
[ "MIT" ]
1
2021-08-29T15:27:17.000Z
2021-08-29T15:27:17.000Z
tests/test_verification.py
konradhalas/mimid
fca4b61c5ee9e5bbb2e60f9a3fcc3593a30333d2
[ "MIT" ]
null
null
null
import pytest from mimid import mock, every, WrongNumberOfCallsException, verify, gt, NotMatchingSignatureException from tests.targets import A, function from tests.utils import not_raises def test_mock_method_verify_raises_exception_when_method_not_called(): obj = mock(A) every(obj.method).returns(2) with pytest.raises(WrongNumberOfCallsException): verify(obj.method).called() def test_mock_method_verify_does_not_raise_exception_when_method_called(): obj = mock(A) every(obj.method).returns(2) obj.method(1) with not_raises(WrongNumberOfCallsException): verify(obj.method).called() def test_mock_method_verify_does_not_raise_exception_when_method_called_with_matching_arguments(): obj = mock(A) every(obj.method).returns(2) obj.method(1) with not_raises(WrongNumberOfCallsException): verify(obj.method).with_args(1).called() def test_mock_method_verify_does_not_raise_exception_when_method_called_with_matching_kwargs_arguments(): obj = mock(A) every(obj.method).returns(2) obj.method(param=1) with not_raises(WrongNumberOfCallsException): verify(obj.method).with_args(param=1).called() def test_mock_method_verify_raises_exception_when_method_called_with_non_matching_arguments(): obj = mock(A) every(obj.method).returns(2) obj.method(2) with pytest.raises(WrongNumberOfCallsException): verify(obj.method).with_args(1).called() def test_mock_method_verify_raises_exception_when_method_called_different_number_of_times(): obj = mock(A) every(obj.method).returns(2) obj.method(1) with pytest.raises(WrongNumberOfCallsException): verify(obj.method).called(times=2) def test_mock_method_verify_does_not_raise_exception_when_method_called_defined_number_of_times(): obj = mock(A) every(obj.method).returns(2) obj.method(1) with not_raises(WrongNumberOfCallsException): verify(obj.method).called(times=1) def test_mock_method_verify_does_not_raise_exception_when_method_called_defined_number_of_times_with_matching_args(): obj = mock(A) every(obj.method).returns(2) obj.method(1) with not_raises(WrongNumberOfCallsException): verify(obj.method).with_args(1).called(times=1) def test_mock_method_verify_raises_exception_when_method_called_different_number_of_times_with_matching_args(): obj = mock(A) every(obj.method).returns(2) obj.method(1) with pytest.raises(WrongNumberOfCallsException): verify(obj.method).with_args(1).called(times=2) def test_mock_function_verify_raises_exception_when_method_not_called(): func = mock(function) every(func).returns(2) with pytest.raises(WrongNumberOfCallsException): verify(func).called() def test_mock_function_verify_does_not_raise_exception_when_method_called(): func = mock(function) every(func).returns(2) func(1) with not_raises(WrongNumberOfCallsException): verify(func).called() def test_mock_function_verify_does_not_raise_exception_when_method_called_with_matching_arguments(): func = mock(function) every(func).returns(2) func(1) with not_raises(WrongNumberOfCallsException): verify(func).with_args(1).called() def test_mock_function_verify_raises_exception_when_method_called_with_non_matching_arguments(): func = mock(function) every(func).returns(2) func(2) with pytest.raises(WrongNumberOfCallsException): verify(func).with_args(1).called() def test_mock_method_verify_does_not_raise_exception_when_verify_with_matching_matcher(): obj = mock(A) every(obj.method).returns(2) obj.method(1) obj.method(1) with not_raises(WrongNumberOfCallsException): verify(obj.method).called(times=gt(1)) def test_verify_should_raises_exception_when_called_with_non_mock_object(): with pytest.raises(TypeError): verify(1) def test_mock_function_verify_raises_exception_when_args_does_not_match_signature(): func = mock(function) with pytest.raises(NotMatchingSignatureException): verify(func).with_args(other_param=1)
27.615894
117
0.765228
554
4,170
5.379061
0.088448
0.090604
0.055369
0.092282
0.861745
0.861745
0.861074
0.850336
0.816107
0.768456
0
0.011446
0.141007
4,170
150
118
27.8
0.820491
0
0
0.648936
0
0
0
0
0
0
0
0
0
1
0.170213
false
0
0.042553
0
0.212766
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
b0faf897a273ce7be8f0caba7ee6d73bba9e68ed
179
py
Python
delivery/ext/migrate.py
JhonatasMenezes/flask_delivery
a95b1016f5be9ad5f4a24d7d4a34a9130f3e5f6e
[ "MIT" ]
2
2021-10-07T21:41:18.000Z
2021-11-23T23:17:40.000Z
delivery/ext/migrate.py
JhonatasMenezes/flask_delivery
a95b1016f5be9ad5f4a24d7d4a34a9130f3e5f6e
[ "MIT" ]
null
null
null
delivery/ext/migrate.py
JhonatasMenezes/flask_delivery
a95b1016f5be9ad5f4a24d7d4a34a9130f3e5f6e
[ "MIT" ]
null
null
null
from flask_migrate import Migrate from delivery.ext.db import db from delivery.ext.db import models # noqa migrate = Migrate() def init_app(app): migrate.init_app(app, db)
17.9
41
0.759777
29
179
4.586207
0.413793
0.180451
0.225564
0.255639
0.345865
0
0
0
0
0
0
0
0.156425
179
9
42
19.888889
0.880795
0.022346
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.5
0
0.666667
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
0
0
1
0
1
0
0
6
b0231b2de3805aa67dc8dcc91fcb66fb803ae4a3
32
py
Python
petrophys/__init__.py
smiles21/petrophys
03ccf2c65cd472013596b293cb2daaa95a1a05a6
[ "MIT" ]
null
null
null
petrophys/__init__.py
smiles21/petrophys
03ccf2c65cd472013596b293cb2daaa95a1a05a6
[ "MIT" ]
null
null
null
petrophys/__init__.py
smiles21/petrophys
03ccf2c65cd472013596b293cb2daaa95a1a05a6
[ "MIT" ]
null
null
null
from .vshale import calc_vshale
16
31
0.84375
5
32
5.2
0.8
0
0
0
0
0
0
0
0
0
0
0
0.125
32
1
32
32
0.928571
0
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
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
6
b04de4dad239bea4d94577872ed653744b169c68
3,283
py
Python
migrations/versions/5137b683ddfb_.py
Spotimania/Spotimania
184b45b27ac717909b96ce6f958926a08cb0aa64
[ "MIT" ]
2
2021-01-26T06:03:00.000Z
2021-07-17T07:09:23.000Z
migrations/versions/5137b683ddfb_.py
Spotimania/Spotimania
184b45b27ac717909b96ce6f958926a08cb0aa64
[ "MIT" ]
8
2020-07-20T07:31:17.000Z
2020-07-28T06:49:34.000Z
migrations/versions/5137b683ddfb_.py
Spotimania/Spotimania
184b45b27ac717909b96ce6f958926a08cb0aa64
[ "MIT" ]
null
null
null
"""empty message Revision ID: 5137b683ddfb Revises: 4655bcb421e2 Create Date: 2020-05-07 17:56:20.916651 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '5137b683ddfb' down_revision = '4655bcb421e2' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('playlist_song', sa.Column('date_created', sa.DateTime(), nullable=True), sa.Column('date_modified', sa.DateTime(), nullable=True), sa.Column('id', sa.Integer(), nullable=False), sa.Column('playlistId', sa.Integer(), nullable=True), sa.Column('songId', sa.Integer(), nullable=True), sa.ForeignKeyConstraint(['playlistId'], ['playlist.id'], ), sa.ForeignKeyConstraint(['songId'], ['song.id'], ), sa.PrimaryKeyConstraint('id') ) op.create_table('individualResults', sa.Column('date_created', sa.DateTime(), nullable=True), sa.Column('date_modified', sa.DateTime(), nullable=True), sa.Column('id', sa.Integer(), nullable=False), sa.Column('answerArtist', sa.String(length=100), nullable=True), sa.Column('answerSong', sa.String(length=100), nullable=True), sa.Column('isAnswerArtistCorrect', sa.Boolean(), nullable=True), sa.Column('isAnswerSongCorrect', sa.Boolean(), nullable=True), sa.Column('resultId', sa.Integer(), nullable=True), sa.Column('songId', sa.Integer(), nullable=True), sa.ForeignKeyConstraint(['resultId'], ['results.id'], ), sa.ForeignKeyConstraint(['songId'], ['song.id'], ), sa.PrimaryKeyConstraint('id') ) op.drop_table('playlist__song') op.drop_table('individual_results') # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('individual_results', sa.Column('date_created', sa.DATETIME(), nullable=True), sa.Column('date_modified', sa.DATETIME(), nullable=True), sa.Column('id', sa.INTEGER(), nullable=False), sa.Column('answerArtist', sa.VARCHAR(length=100), nullable=True), sa.Column('answerSong', sa.VARCHAR(length=100), nullable=True), sa.Column('isAnswerArtistCorrect', sa.BOOLEAN(), nullable=True), sa.Column('isAnswerSongCorrect', sa.BOOLEAN(), nullable=True), sa.Column('resultId', sa.INTEGER(), nullable=True), sa.Column('songId', sa.INTEGER(), nullable=True), sa.CheckConstraint('"isAnswerArtistCorrect" IN (0, 1)'), sa.CheckConstraint('"isAnswerSongCorrect" IN (0, 1)'), sa.ForeignKeyConstraint(['resultId'], ['results.id'], ), sa.ForeignKeyConstraint(['songId'], ['song.id'], ), sa.PrimaryKeyConstraint('id') ) op.create_table('playlist__song', sa.Column('date_created', sa.DATETIME(), nullable=True), sa.Column('date_modified', sa.DATETIME(), nullable=True), sa.Column('id', sa.INTEGER(), nullable=False), sa.Column('playlistId', sa.INTEGER(), nullable=True), sa.Column('songId', sa.INTEGER(), nullable=True), sa.ForeignKeyConstraint(['playlistId'], ['playlist.id'], ), sa.ForeignKeyConstraint(['songId'], ['song.id'], ), sa.PrimaryKeyConstraint('id') ) op.drop_table('individualResults') op.drop_table('playlist_song') # ### end Alembic commands ###
40.530864
69
0.678038
378
3,283
5.81746
0.195767
0.101864
0.152797
0.181901
0.79809
0.782174
0.782174
0.782174
0.73306
0.73306
0
0.02328
0.136461
3,283
80
70
41.0375
0.752381
0.089857
0
0.451613
0
0
0.217553
0.029143
0
0
0
0
0
1
0.032258
false
0
0.032258
0
0.064516
0
0
0
0
null
0
0
1
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
b06c3bcd2063f2ea3feb47b5e679ae523215dcec
57,410
py
Python
imagersite/imager_images/tests.py
chaitanyanarukulla/django-imager
0c426729605936ecf4deea837295c0b0e22d7861
[ "MIT" ]
2
2018-05-29T23:39:40.000Z
2018-06-25T22:31:13.000Z
imagersite/imager_images/tests.py
chaitanyanarukulla/django-imager
0c426729605936ecf4deea837295c0b0e22d7861
[ "MIT" ]
15
2017-11-22T00:22:01.000Z
2017-12-14T21:11:13.000Z
imagersite/imager_images/tests.py
chaitanyanarukulla/django-imager
0c426729605936ecf4deea837295c0b0e22d7861
[ "MIT" ]
3
2018-01-12T08:21:46.000Z
2018-05-20T05:27:33.000Z
"""Tests for the Photo and Album models.""" from django.conf import settings from django.contrib.auth.models import AnonymousUser from django.core.files.uploadedfile import SimpleUploadedFile from django.forms.models import modelform_factory from django.http import Http404 from django.test import override_settings, RequestFactory, TestCase from django.urls import reverse_lazy from imager_images.models import Photo, Album, AlbumForm from imager_profile.tests import UserFactory from datetime import datetime import factory import os class PhotoFactory(factory.django.DjangoModelFactory): """Factory for fake Photo.""" class Meta: """Meta.""" model = Photo image = SimpleUploadedFile( name='sample_img.jpg', content=open( os.path.join(settings.BASE_DIR, 'static/test_image.jpg'), 'rb' ).read(), content_type="image/jpeg" ) title = factory.Faker('word') description = factory.Faker('sentence') published = 'PUBLIC' class AlbumFactory(factory.django.DjangoModelFactory): """Factory for fake Album.""" class Meta: """Meta.""" model = Album title = factory.Faker('word') description = factory.Faker('sentence') published = 'PUBLIC' class PhotoAlbumTests(TestCase): """Tests for the imager_profile module.""" @classmethod @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photos")) def setUpClass(cls): """Add one minimal user to the database.""" super(PhotoAlbumTests, cls).setUpClass() os.system('mkdir {}'.format( os.path.join(settings.BASE_DIR, 'test_media_for_photos') )) user = UserFactory() user.set_password(factory.Faker('password')) user.save() cls.user = user photo = PhotoFactory(title='wedding', description='lovely wedding', published='PRIVATE', user=user) photo.save() album1 = AlbumFactory(title='first', description='this is first', published='PRIVATE', user=user) album1.save() for _ in range(10): photo = PhotoFactory(user=user) photo.save() album1.photos.add(photo) album2 = AlbumFactory(title='second', user=user) album2.save() for _ in range(20): photo = PhotoFactory(user=user) photo.save() album2.photos.add(photo) for _ in range(5): photo = PhotoFactory(user=user) photo.save() album1.photos.add(photo) album2.photos.add(photo) user = UserFactory() user.set_password(factory.Faker('password')) user.save() photo = PhotoFactory(title='sport', user=user) photo.save() album1 = AlbumFactory(title='sports', user=user) album1.save() @classmethod def tearDownClass(cls): """Remove the test directory.""" super(PhotoAlbumTests, cls).tearDownClass() os.system('rm -rf {}'.format( os.path.join(settings.BASE_DIR, 'test_media_for_photos') )) def test_photo_to_string_is_correct(self): """Test that the __str__ method returns the photo title.""" one_photo = Photo.objects.get(title='wedding') self.assertEqual(str(one_photo), 'wedding') def test_album_to_string_is_correct(self): """Test that the __str__ method returns the album title.""" one_album = Album.objects.get(title='first') self.assertEqual(str(one_album), 'first') def test_all_photos_are_added_to_the_database(self): """Test that all created photos are added to the database.""" self.assertEqual(Photo.objects.count(), 37) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photos")) def test_all_photos_are_added_to_the_media_directory(self): """Test that all created photos are added to the media directory.""" path = os.path.join(settings.MEDIA_ROOT, 'images') files = [name for name in os.listdir(path) if name.endswith('.jpg')] self.assertEqual(len(files), 37) def test_photos_are_added_to_an_album(self): """Test that all created photos are added to the database.""" photos = Photo.objects.filter(albums__title='first').count() self.assertEqual(photos, 15) def test_photo_has_user(self): """Test that the photo has a user.""" one_photo = Photo.objects.get(title='wedding') self.assertEqual(one_photo.user, self.user) def test_photo_has_description(self): """Test that the photo has a description.""" one_photo = Photo.objects.get(title='wedding') self.assertEqual(one_photo.description, 'lovely wedding') def test_photo_has_published(self): """Test that the photo has a published.""" one_photo = Photo.objects.get(title='wedding') self.assertEqual(one_photo.published, 'PRIVATE') def test_photo_has_date_uploaded(self): """Test that the photo has a date-uploaded that is now by default.""" one_photo = Photo.objects.get(title='wedding') now = datetime.now().strftime('%x %X')[:2] self.assertEqual(one_photo.date_uploaded.strftime('%x %X')[:2], now) def test_photo_has_date_modified(self): """Test that the photo has a date-modified that is now by default.""" one_photo = Photo.objects.get(title='wedding') now = datetime.now().strftime('%x %X')[:2] self.assertEqual(one_photo.date_modified.strftime('%x %X')[:2], now) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photos")) def test_photo_modified_changes_modified_date_not_uploaded_date(self): """Test the uploaded date does not change when a photo is modified.""" user = UserFactory() user.set_password(factory.Faker('password')) user.save() photo = PhotoFactory(user=user) photo.save() created_upload_date = photo.date_uploaded created_modify_date = photo.date_modified photo.title = 'fun' photo.save() self.assertEqual(photo.date_uploaded, created_upload_date) self.assertNotEqual(photo.date_modified, created_modify_date) def test_private_photo_has_no_date_published(self): """Test that private photo has date-published that is None.""" one_photo = Photo.objects.get(title='wedding') self.assertIsNone(one_photo.date_published) def test_public_photo_has_date_published(self): """Test that public photo has a date-published.""" one_photo = Photo.objects.filter(albums__title='second').first() now = datetime.now().strftime('%x %X')[:2] self.assertEqual(one_photo.date_published.strftime('%x %X')[:2], now) def test_all_albums_are_added_to_the_database(self): """Test that all created albums are added to the database.""" self.assertEqual(Album.objects.count(), 3) def test_album_has_user(self): """Test that the album has a user.""" one_album = Album.objects.get(title='first') self.assertEqual(one_album.user, self.user) def test_album_has_description(self): """Test that the album has a description.""" one_album = Album.objects.get(title='first') self.assertEqual(one_album.description, 'this is first') def test_album_has_published(self): """Test that the album has a published.""" one_album = Album.objects.get(title='first') self.assertEqual(one_album.published, 'PRIVATE') def test_album_has_date_uploaded(self): """Test that the album has a date-uploaded that is now by default.""" one_album = Album.objects.get(title='first') now = datetime.now().strftime('%x %X')[:2] self.assertEqual(one_album.date_uploaded.strftime('%x %X')[:2], now) def test_album_has_date_modified(self): """Test that the album has a date-modified that is now by default.""" one_album = Album.objects.get(title='first') now = datetime.now().strftime('%x %X')[:2] self.assertEqual(one_album.date_modified.strftime('%x %X')[:2], now) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photos")) def test_album_modified_changes_modified_date_not_uploaded_date(self): """Test the uploaded date does not change when a album is modified.""" user = UserFactory() user.set_password(factory.Faker('password')) user.save() album = AlbumFactory(user=user) album.save() created_upload_date = album.date_uploaded created_modify_date = album.date_modified album.title = 'fun' album.save() self.assertEqual(album.date_uploaded, created_upload_date) self.assertNotEqual(album.date_modified, created_modify_date) def test_private_album_has_no_date_published(self): """Test that private album has a date-published that is None.""" one_album = Album.objects.get(title='first') self.assertIsNone(one_album.date_published) def test_public_album_has_date_published(self): """Test that public album has a date-published.""" one_album = Album.objects.get(title='second') now = datetime.now().strftime('%x %X')[:2] self.assertEqual(one_album.date_published.strftime('%x %X')[:2], now) def test_album_form_photos_are_limited_to_current_users(self): """Test album form photos are limited to current users.""" form = AlbumForm(username=self.user.username) self.assertEqual(form.fields['photos'].queryset.count(), 36) """Unit tests for the Photo and Album view classes.""" class PhotoAlbumViewTests(TestCase): """Tests for the views of imager_images.""" @classmethod @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_view")) def setUpClass(cls): """Add one user to the database.""" super(PhotoAlbumViewTests, cls).setUpClass() os.system('mkdir {}'.format( os.path.join(settings.BASE_DIR, 'test_media_for_photo_view') )) cls.request = RequestFactory() user = UserFactory(username='bob') user.set_password(factory.Faker('password')) user.save() cls.bob = user album = AlbumFactory(title='bob first', description='this is first', published='PRIVATE', user=user) album.save() for _ in range(5): photo = PhotoFactory(user=user, published='PRIVATE') photo.save() album.photos.add(photo) album = AlbumFactory(title='bob second', description='this is second', published='PUBLIC', user=user) album.save() for _ in range(10): photo = PhotoFactory(user=user) photo.save() album.photos.add(photo) user = UserFactory(username='rob') user.set_password(factory.Faker('password')) user.save() album = AlbumFactory(title='rob first', description='this is first', published='PRIVATE', user=user) album.save() for _ in range(3): photo = PhotoFactory(user=user, published='PRIVATE') photo.save() album.photos.add(photo) album = AlbumFactory(title='rob second', description='this is second', published='PUBLIC', user=user) album.save() for _ in range(13): photo = PhotoFactory(user=user) photo.save() album.photos.add(photo) @classmethod def tearDownClass(cls): """Remove the test directory.""" super(PhotoAlbumViewTests, cls).tearDownClass() os.system('rm -rf {}'.format( os.path.join(settings.BASE_DIR, 'test_media_for_photo_view'))) def test_library_view_logged_in_displays_all_photos_and_albums(self): """Test that library_view displays all logged in user's things.""" from imager_images.views import LibraryView request = self.request.get('') request.user = self.bob view = LibraryView(request=request) response = view.get(request) response.render() image_count = response.content.count(b'<img') self.assertEqual(image_count, 6) def test_library_view_get_queryset_list_all_users_albums(self): """Test library view get queryset list all users albums.""" from imager_images.views import LibraryView view = LibraryView() albums = view.get_queryset(self.bob) self.assertEqual(albums.count(), 2) def test_library_view_logged_in_context_has_all_photos_and_albums(self): """Test libraryview returns context data with all logged in user's photos and albums.""" from imager_images.views import LibraryView request = self.request.get('') request.user = self.bob view = LibraryView(request=request, object_list='') data = view.get_context_data() self.assertEqual(len(data['albums']), 2) self.assertEqual(len(data['photos']), 4) self.assertIn('default_cover', data) def test_library_view_get_context_data_non_int_album_page_has_page1(self): """Test library view get_context_data non int album page has page1.""" from imager_images.views import LibraryView request = self.request.get('', {'album_page': 'bobspage'}) request.user = self.bob view = LibraryView(object_list='', request=request) data = view.get_context_data() self.assertEqual(data['albums'].number, 1) def test_library_view_get_context_data_invalid_album_page_has_last_page(self): """Test library view get_context_data invalid album page has last page.""" from imager_images.views import LibraryView request = self.request.get('', {'album_page': 1000000000}) request.user = self.bob view = LibraryView(object_list='', request=request) data = view.get_context_data() page = data['albums'] self.assertEqual(page.number, page.paginator.num_pages) def test_library_view_get_context_data_non_int_photo_page_has_page1(self): """Test library view get_context_data non int photo page has page1.""" from imager_images.views import LibraryView request = self.request.get('', {'photo_page': 'bobspage'}) request.user = self.bob view = LibraryView(object_list='', request=request) data = view.get_context_data() self.assertEqual(data['photos'].number, 1) def test_library_view_get_context_data_invalid_photo_page_has_last_page(self): """Test library view get_context_data invalid photo page has last page.""" from imager_images.views import LibraryView request = self.request.get('', {'photo_page': 1000000000}) request.user = self.bob view = LibraryView(object_list='', request=request) data = view.get_context_data() page = data['photos'] self.assertEqual(page.number, page.paginator.num_pages) def test_album_gallery_view_has_all_public_albums(self): """Test that the album_gallery_view has all public albums.""" from imager_images.views import AlbumGalleryView view = AlbumGalleryView(object_list='') data = view.get_context_data() self.assertIn('albums', data) self.assertIn('default_cover', data) def test_photo_detail_view_non_public_photo_raises_404(self): """Test that a non public photo for photo_detail_view raises a 404.""" from imager_images.views import PhotoDetailView photo = Photo.objects.filter(published='PRIVATE').first() request = self.request.get('') request.user = AnonymousUser() view = PhotoDetailView(request=request, kwargs={'id': photo.id}) with self.assertRaises(Http404): view.get_object() def test_photo_detail_view_valid_id_gets_correct_photo(self): """Test that photo_detail_view for valid id has correct photo.""" from imager_images.views import PhotoDetailView photo = Photo.objects.filter(published='PUBLIC').first() request = self.request.get('') request.user = AnonymousUser() view = PhotoDetailView(request=request, kwargs={'id': photo.id}) response = view.get_object() self.assertEqual(response.image, photo.image) def test_album_detail_view_non_public_album_raises_404(self): """Test that a non public album for album_detail_view raises a 404.""" from imager_images.views import AlbumDetailView album = Album.objects.filter(published='PRIVATE').first() request = self.request.get('') request.user = AnonymousUser() view = AlbumDetailView(request=request, kwargs={'id': album.id}) with self.assertRaises(Http404): view.get_object() def test_album_detail_view_valid_id_gets_correct_album(self): """Test that album_detail_view for valid id has correct album.""" from imager_images.views import AlbumDetailView album = Album.objects.filter(published='PUBLIC').first() request = self.request.get('') request.user = AnonymousUser() view = AlbumDetailView(request=request, kwargs={'id': album.id}) response = view.get_object() self.assertEqual(response.photos, album.photos) def test_album_detail_view_get_context_data_has_album(self): """Test that the album detail_view has album.""" from imager_images.views import AlbumDetailView request = self.request.get('') view = AlbumDetailView(object=self.bob.albums.first(), request=request) data = view.get_context_data() self.assertIn('view', data) self.assertIn('default_cover', data) self.assertIn('photos_page', data) def test_album_detail_view_get_context_data_non_int_page_has_page1(self): """Test album detail view get_context_data non int page has page1.""" from imager_images.views import AlbumDetailView request = self.request.get('', {'page': 'bobspage'}) view = AlbumDetailView(object=self.bob.albums.first(), request=request) data = view.get_context_data() self.assertEqual(data['photos_page'].number, 1) def test_album_detail_view_get_context_data_invalid_page_has_last_page(self): """Test album detail view get_context_data invalid page has last page.""" from imager_images.views import AlbumDetailView request = self.request.get('', {'page': 1000000000}) view = AlbumDetailView(object=self.bob.albums.first(), request=request) data = view.get_context_data() page = data['photos_page'] self.assertEqual(page.number, page.paginator.num_pages) def test_photo_create_view_logged_in_has_upload_form(self): """Test that photo create view has upload form.""" from imager_images.views import PhotoCreateView request = self.request.get('') request.user = self.bob view = PhotoCreateView(request=request) response = view.get(request) response.render() self.assertIn(b'Upload New Photo', response.content) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_view")) def test_photo_create_view_post_logged_in_create_new_photo(self): """Test that photo create view post login creates new photo.""" from imager_images.views import PhotoCreateView request = self.request.post('') request.user = self.bob request.POST = {'title': 'test', 'description': 'testing', 'published': 'PRIVATE'} image = SimpleUploadedFile( name='sample_img.jpg', content=open( os.path.join(settings.BASE_DIR, 'static/test_image.jpg'), 'rb' ).read(), content_type="image/jpeg" ) request._files = {'image': image} view = PhotoCreateView(request=request) view.post(request) photo = Photo.objects.get(title='test') self.assertIsNotNone(photo) self.assertEqual(photo.description, 'testing') @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_view")) def test_photo_create_view_form_valid_sets_current_user_as_user(self): """Test photo create view form valid sets current user as user.""" from imager_images.views import PhotoCreateView form_class = modelform_factory(Photo, fields=['title', 'description', 'image', 'published']) request = self.request.post('') request.user = self.bob view = PhotoCreateView(request=request) image = SimpleUploadedFile( name='sample_img.jpg', content=open( os.path.join(settings.BASE_DIR, 'static/test_image.jpg'), 'rb' ).read(), content_type="image/jpeg" ) files = {'image': image} data = {'title': 'test2', 'description': 'testing2', 'published': 'PRIVATE'} form = form_class(data=data, files=files) form.is_valid() view.form_valid(form) self.assertIs(self.bob, form.instance.user) def test_album_create_view_logged_in_has_upload_form(self): """Test that album create view has upload form.""" from imager_images.views import AlbumCreateView request = self.request.get('') request.user = self.bob view = AlbumCreateView(request=request) response = view.get(request) response.render() self.assertIn(b'Create New Album', response.content) def test_album_create_view_post_logged_in_create_new_album(self): """Test that album create view post login creates new album.""" from imager_images.views import AlbumCreateView request = self.request.post('') request.user = self.bob photo_id = self.bob.photos.first().id request.POST = {'title': 'test', 'description': 'testing', 'photos': [photo_id], 'published': 'PRIVATE', 'cover': ''} view = AlbumCreateView(request=request) view.post(request) album = Album.objects.get(title='test') self.assertIsNotNone(album) self.assertEqual(album.description, 'testing') def test_album_create_view_form_valid_sets_current_user_as_user(self): """Test album create view form valid sets current user as user.""" from imager_images.views import AlbumCreateView form_class = AlbumForm request = self.request.post('') request.user = self.bob photo_id = self.bob.photos.first().id view = AlbumCreateView(request=request) data = {'title': 'test', 'description': 'testing', 'photos': [photo_id], 'published': 'PRIVATE', 'cover': ''} form = form_class(data=data, username=request.user.username) form.is_valid() view.form_valid(form) self.assertIs(self.bob, form.instance.user) def test_album_create_view_get_form_kwargs_assigns_current_user(self): """Test album create view get form kwargs assigns current user.""" from imager_images.views import AlbumCreateView request = self.request.get('') request.user = self.bob view = AlbumCreateView(request=request) kwargs = view.get_form_kwargs() self.assertIn('username', kwargs) self.assertEqual(kwargs['username'], 'bob') def test_photo_edit_get_queryset_list_all_users_photos(self): """Test photo_edit view get queryset list all users photos.""" from imager_images.views import PhotoEditView request = self.request.get('') request.user = self.bob view = PhotoEditView(request=request) photos = view.get_queryset() self.assertEqual(photos.count(), 15) def test_album_edit_view_get_form_kwargs_assigns_current_user(self): """Test album edit view get form kwargs assigns current user.""" from imager_images.views import AlbumEditView request = self.request.get('') request.user = self.bob view = AlbumEditView(request=request) kwargs = view.get_form_kwargs() self.assertIn('username', kwargs) self.assertEqual(kwargs['username'], 'bob') def test_album_edit_get_queryset_list_all_users_albums(self): """Test album_edit view get queryset list all users albums.""" from imager_images.views import AlbumEditView request = self.request.get('') request.user = self.bob view = AlbumEditView(request=request) albums = view.get_queryset() self.assertEqual(albums.count(), 2) """Tests for the Photo and Album routes.""" class PhotoAlbumRouteTests(TestCase): """Tests for the routes of imager_images.""" @classmethod @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_route")) def setUpClass(cls): """Add one minimal user to the database.""" super(PhotoAlbumRouteTests, cls).setUpClass() os.system('mkdir {}'.format( os.path.join(settings.BASE_DIR, 'test_media_for_photo_route') )) user = UserFactory(username='bob') user.set_password('password') user.save() cls.bob = user album = AlbumFactory(title='bob first', description='this is first', published='PRIVATE', user=user) album.save() for _ in range(5): photo = PhotoFactory(user=user, published='PRIVATE') photo.save() album.photos.add(photo) album = AlbumFactory(title='bob second', description='this is second', published='PUBLIC', user=user) album.save() for _ in range(10): photo = PhotoFactory(user=user) photo.save() album.photos.add(photo) user = UserFactory(username='rob') user.set_password(factory.Faker('password')) user.save() album = AlbumFactory(title='rob first', description='this is first', published='PRIVATE', user=user) album.save() for _ in range(3): photo = PhotoFactory(user=user, published='PRIVATE') photo.save() album.photos.add(photo) album = AlbumFactory(title='rob second', description='this is second', published='PUBLIC', user=user) album.save() for _ in range(13): photo = PhotoFactory(user=user) photo.save() album.photos.add(photo) @classmethod def tearDownClass(cls): """Remove the test directory.""" super(PhotoAlbumRouteTests, cls).tearDownClass() os.system('rm -rf {}'.format( os.path.join(settings.BASE_DIR, 'test_media_for_photo_route'))) def test_library_route_not_logged_in_gets_302(self): """Test that library route gets 302 status code if not logged in.""" response = self.client.get(reverse_lazy('library')) self.assertEqual(response.status_code, 302) def test_library_route_redirects_login_not_logged_in(self): """Test that library route redirects login if not logged in.""" response = self.client.get(reverse_lazy('library'), follow=True) self.assertIn(b'Login</h1>', response.content) def test_library_route_logged_in_displays_all_photos_and_albums(self): """Test that library route displays all logged in user's things.""" self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('library')) image_count = response.content.count(b'<img') db_photo_count = Photo.objects.filter(user=self.bob).count() db_photo_count = min(db_photo_count, 4) db_album_count = Album.objects.filter(user=self.bob).count() db_album_count = min(db_album_count, 4) self.assertEqual(image_count, db_photo_count + db_album_count) def test_library_route_logged_in_non_int_album_page_num_is_page_1(self): """Test that the library route displays page 1 for invalid page num.""" self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('library'), {'album_page': 'bobspage'}) self.assertIn(b'bob first', response.content) def test_library_route_logged_in_empty_album_page_is_last_page(self): """Test that the library route displays last page for empty page num.""" self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('library'), {'album_page': 1000000000}) self.assertIn(b'bob second', response.content) def test_library_route_logged_in_non_int_photo_page_num_is_page_1(self): """Test that the library route displays page 1 for invalid page num.""" self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('library'), {'photo_page': 'bobspage'}) first_photo = self.bob.photos.order_by('date_uploaded').first() self.assertIn(first_photo.title.encode('utf-8'), response.content) def test_library_route_logged_in_empty_photo_page_is_last_page(self): """Test that the library route displays last page for empty page num.""" self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('library'), {'photo_page': 1000000000}) last_photo = self.bob.photos.order_by('date_uploaded').last() self.assertIn(last_photo.title.encode('utf-8'), response.content) def test_photo_gallery_route_has_all_public_photos(self): """Test that the photo gallery route has all public photos.""" response = self.client.get(reverse_lazy('photo_gallery')) image_count = response.content.count(b'<img') db_count = Photo.objects.filter(published='PUBLIC').count() self.assertEqual(image_count, db_count) def test_album_gallery_route_has_all_public_albums(self): """Test that the album gallery route has all public albums.""" response = self.client.get(reverse_lazy('album_gallery')) image_count = response.content.count(b'<img') db_count = Album.objects.filter(published='PUBLIC').count() self.assertEqual(image_count, db_count) def test_photo_detail_route_invalid_id_raises_404(self): """Test that an invalid id for photo detail route raises a 404.""" response = self.client.get(reverse_lazy('photo_detail', kwargs={'id': 1000000000})) self.assertEqual(response.status_code, 404) def test_photo_detail_route_non_public_photo_raises_404(self): """Test that a non public photo for photo_detail_route raises a 404.""" photo = Photo.objects.filter(published='PRIVATE').first() response = self.client.get(reverse_lazy('photo_detail', kwargs={'id': photo.id})) self.assertEqual(response.status_code, 404) def test_photo_detail_route_valid_id_gets_correct_photo(self): """Test that photo_detail_route for valid id has correct photo.""" photo = Photo.objects.filter(published='PUBLIC').first() response = self.client.get(reverse_lazy('photo_detail', kwargs={'id': photo.id})) self.assertIn(photo.title.encode('utf8'), response.content) def test_album_detail_route_invalid_id_raises_404(self): """Test that an invalid id for album detail route raises a 404.""" response = self.client.get(reverse_lazy('album_detail', kwargs={'id': 1000000000})) self.assertEqual(response.status_code, 404) def test_album_detail_route_non_public_album_raises_404(self): """Test that a non public album for album_detail_route raises a 404.""" album = Album.objects.filter(published='PRIVATE').first() response = self.client.get(reverse_lazy('album_detail', kwargs={'id': album.id})) self.assertEqual(response.status_code, 404) def test_album_detail_route_valid_id_gets_correct_album(self): """Test that album_detail_route for valid id has correct album.""" album = Album.objects.filter(published='PUBLIC').first() response = self.client.get(reverse_lazy('album_detail', kwargs={'id': album.id})) self.assertIn(album.title.encode('utf8'), response.content) def test_photo_create_route_get_no_login_has_302(self): """Test that photo create route get with no login has 302 code.""" response = self.client.get(reverse_lazy('photo_create')) self.assertEqual(response.status_code, 302) def test_photo_create_route_get_no_login_redirects_login(self): """Test that photo create route get with no login redirects login.""" response = self.client.get(reverse_lazy('photo_create'), follow=True) self.assertIn(b'Login</h1>', response.content) def test_photo_create_route_get_login_has_200(self): """Test that photo create route get with login has 200 code.""" self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('photo_create')) self.assertEqual(response.status_code, 200) def test_photo_create_route_get_login_has_create_form(self): """Test that photo create route get with login has create form.""" self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('photo_create')) self.assertIn(b'Upload New Photo', response.content) def test_photo_create_route_post_no_login_has_302(self): """Test that photo create route post with no login has 302 code.""" response = self.client.post(reverse_lazy('photo_create')) self.assertEqual(response.status_code, 302) def test_photo_create_route_post_no_login_redirects_login(self): """Test that photo create route post with no login redirects login.""" response = self.client.post(reverse_lazy('photo_create'), follow=True) self.assertIn(b'Login</h1>', response.content) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_route")) def test_photo_create_route_post_login_has_302(self): """Test that photo create route post with login has 302 code.""" self.client.login(username='bob', password='password') image = SimpleUploadedFile( name='sample_img.jpg', content=open( os.path.join(settings.BASE_DIR, 'static/test_image.jpg'), 'rb' ).read(), content_type="image/jpeg" ) data = { 'title': 'test', 'description': 'testing', 'image': image, 'published': 'PRIVATE' } response = self.client.post(reverse_lazy('photo_create'), data) self.assertEqual(response.status_code, 302) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_route")) def test_photo_create_route_post_login_redirects_library(self): """Test that photo create route post with login redirects library.""" self.client.login(username='bob', password='password') image = SimpleUploadedFile( name='sample_img.jpg', content=open( os.path.join(settings.BASE_DIR, 'static/test_image.jpg'), 'rb' ).read(), content_type="image/jpeg" ) data = { 'title': 'test2', 'description': 'testing2', 'image': image, 'published': 'PRIVATE' } response = self.client.post(reverse_lazy('photo_create'), data, follow=True) self.assertIn(b'<h1>Library</h1>', response.content) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_route")) def test_photo_create_route_post_login_creates_new_photo(self): """Test that photo create route post with login creates a new photo.""" self.client.login(username='bob', password='password') image = SimpleUploadedFile( name='sample_img.jpg', content=open( os.path.join(settings.BASE_DIR, 'static/test_image.jpg'), 'rb' ).read(), content_type="image/jpeg" ) data = { 'title': 'test3', 'description': 'testing3', 'image': image, 'published': 'PRIVATE' } self.client.post(reverse_lazy('photo_create'), data) photo = Photo.objects.get(title='test3') self.assertIsNotNone(photo) self.assertEqual(photo.description, 'testing3') @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_route")) def test_photo_create_route_post_login_bad_data_has_200(self): """Test that photo create route post with login has 200 code.""" self.client.login(username='bob', password='password') data = { 'title': 'test', 'description': 'testing', 'published': 'PRIVATE' } response = self.client.post(reverse_lazy('photo_create'), data) self.assertEqual(response.status_code, 200) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_route")) def test_photo_create_route_post_login_bad_data_has_error(self): """Test that photo create route post with login has error.""" self.client.login(username='bob', password='password') data = { 'title': 'test2', 'description': 'testing2', 'published': 'PRIVATE' } response = self.client.post(reverse_lazy('photo_create'), data) self.assertIn(b'class="errorlist"', response.content) def test_album_create_route_get_no_login_has_302(self): """Test that album create route get with no login has 302 code.""" response = self.client.get(reverse_lazy('album_create')) self.assertEqual(response.status_code, 302) def test_album_create_route_get_no_login_redirects_login(self): """Test that album create route get with no login redirects login.""" response = self.client.get(reverse_lazy('album_create'), follow=True) self.assertIn(b'Login</h1>', response.content) def test_album_create_route_get_login_has_200(self): """Test that album create route get with login has 200 code.""" self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('album_create')) self.assertEqual(response.status_code, 200) def test_album_create_route_get_login_has_create_form(self): """Test that album create route get with login has create form.""" self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('album_create')) self.assertIn(b'Create New Album', response.content) def test_album_create_route_post_no_login_has_302(self): """Test that album create route post with no login has 302 code.""" response = self.client.post(reverse_lazy('album_create')) self.assertEqual(response.status_code, 302) def test_album_create_route_post_no_login_redirects_login(self): """Test that album create route post with no login redirects login.""" response = self.client.post(reverse_lazy('album_create'), follow=True) self.assertIn(b'Login</h1>', response.content) def test_album_create_route_post_login_has_302(self): """Test that album create route post with login has 302 code.""" photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') data = { 'title': 'test', 'description': 'testing', 'cover': '', 'photos': [photo_id], 'published': 'PRIVATE' } response = self.client.post(reverse_lazy('album_create'), data) self.assertEqual(response.status_code, 302) def test_album_create_route_post_login_redirects_library(self): """Test that album create route post with login redirects library.""" photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') data = { 'title': 'test2', 'description': 'testing2', 'cover': '', 'photos': [photo_id], 'published': 'PRIVATE' } response = self.client.post(reverse_lazy('album_create'), data, follow=True) self.assertIn(b'<h1>Library</h1>', response.content) def test_album_create_route_post_login_creates_new_album(self): """Test that album create route post with login creates a new album.""" photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') data = { 'title': 'test3', 'description': 'testing3', 'cover': '', 'photos': [photo_id], 'published': 'PRIVATE' } self.client.post(reverse_lazy('album_create'), data) album = Album.objects.get(title='test3') self.assertIsNotNone(album) self.assertEqual(album.description, 'testing3') def test_album_create_route_post_login_bad_data_has_200(self): """Test that album create route post with login has 200 code.""" self.client.login(username='bob', password='password') data = { 'title': 'test', 'description': 'testing', 'cover': '', 'published': 'PRIVATE' } response = self.client.post(reverse_lazy('album_create'), data) self.assertEqual(response.status_code, 200) def test_album_create_route_post_login_bad_data_has_error(self): """Test that album create route post with login has error.""" self.client.login(username='bob', password='password') data = { 'title': 'test', 'description': 'testing', 'cover': '', 'published': 'PRIVATE' } response = self.client.post(reverse_lazy('album_create'), data) self.assertIn(b'class="errorlist"', response.content) def test_photo_edit_route_get_bad_id_gets_404(self): """Test get to photo edit route for bad id has 404 code.""" self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('photo_edit', kwargs={'id': 1000000000})) self.assertEqual(response.status_code, 404) def test_photo_edit_route_get_not_logged_in_has_302(self): """Test get to photo edit route when not logged in has 302 code.""" photo_id = self.bob.photos.first().id response = self.client.get(reverse_lazy('photo_edit', kwargs={'id': photo_id})) self.assertEqual(response.status_code, 302) def test_photo_edit_route_get_not_logged_in_redirects_to_login(self): """Test get to photo edit route when not logged in redirects to login.""" photo_id = self.bob.photos.first().id response = self.client.get(reverse_lazy('photo_edit', kwargs={'id': photo_id}), follow=True) self.assertIn(b'Login</h1>', response.content) def test_photo_edit_route_get_logged_in_has_200(self): """Test get to photo edit route when logged in has 200 code.""" photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('photo_edit', kwargs={'id': photo_id})) self.assertEqual(response.status_code, 200) def test_photo_edit_route_get_logged_in_has_edit_form(self): """Test get to photo edit route when logged in has edit form.""" photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('photo_edit', kwargs={'id': photo_id})) self.assertIn(b'Edit Photo</h1>', response.content) def test_photo_edit_route_post_bad_id_gets_404(self): """Test get to photo edit route for bad id has 404 code.""" self.client.login(username='bob', password='password') response = self.client.post(reverse_lazy('photo_edit', kwargs={'id': 1000000000})) self.assertEqual(response.status_code, 404) def test_photo_edit_route_post_not_logged_in_has_302(self): """Test post to photo edit route when not logged in has 302 code.""" photo_id = self.bob.photos.first().id response = self.client.post(reverse_lazy('photo_edit', kwargs={'id': photo_id})) self.assertEqual(response.status_code, 302) def test_photo_edit_route_post_not_logged_in_redirects_to_login(self): """Test post to photo edit route when not logged in redirects to login.""" photo_id = self.bob.photos.first().id response = self.client.post(reverse_lazy('photo_edit', kwargs={'id': photo_id}), follow=True) self.assertIn(b'Login</h1>', response.content) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_route")) def test_photo_edit_route_post_logged_in_has_302(self): """Test post to photo edit route when logged in has 302 code.""" photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') image = SimpleUploadedFile( name='sample_img.jpg', content=open( os.path.join(settings.BASE_DIR, 'static/test_image.jpg'), 'rb' ).read(), content_type="image/jpeg" ) data = { 'title': 'test4', 'description': 'testing4', 'image': image, 'published': 'PRIVATE' } response = self.client.post(reverse_lazy('photo_edit', kwargs={'id': photo_id}), data) self.assertEqual(response.status_code, 302) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_route")) def test_photo_edit_route_post_logged_in_updates_the_correct_photo(self): """Test photo edit route post logged in updates the users photo.""" photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') original_photo = Photo.objects.get(id=photo_id) image = SimpleUploadedFile( name='sample_img.jpg', content=open( os.path.join(settings.BASE_DIR, 'static/test_image.jpg'), 'rb' ).read(), content_type="image/jpeg" ) data = { 'title': 'test5', 'description': 'testing5', 'image': image, 'published': 'PRIVATE' } self.client.post(reverse_lazy('photo_edit', kwargs={'id': photo_id}), data) photo = Photo.objects.get(id=photo_id) self.assertEqual(photo.title, 'test5') self.assertEqual(photo.description, 'testing5') self.assertIsNot(photo.image, original_photo.image) def test_photo_edit_route_post_logged_in_public_adds_published_date(self): """Test photo edit route post logged in set published to public sets published date.""" photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') data = { 'published': 'PUBLIC' } self.client.post(reverse_lazy('photo_edit', kwargs={'id': photo_id}), data) photo = Photo.objects.get(id=photo_id) now = datetime.now().strftime('%x %X')[:2] self.assertEqual(photo.published, 'PUBLIC') self.assertEqual(photo.date_published.strftime('%x %X')[:2], now) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_route")) def test_photo_edit_route_post_logged_in_done_redirects_to_library(self): """Test post to photo edit route when logged in redirects to library when done.""" photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') image = SimpleUploadedFile( name='sample_img.jpg', content=open( os.path.join(settings.BASE_DIR, 'static/test_image.jpg'), 'rb' ).read(), content_type="image/jpeg" ) data = { 'title': 'test6', 'description': 'testing6', 'image': image, 'published': 'PRIVATE' } response = self.client.post(reverse_lazy('photo_edit', kwargs={'id': photo_id}), data, follow=True) self.assertIn(b'<h1>Library</h1>', response.content) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_route")) def test_photo_edit_route_post_logged_in_bad_data_has_200(self): """Test that photo create route post with login has 200 code.""" photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') data = {} response = self.client.post(reverse_lazy('photo_edit', kwargs={'id': photo_id}), data) self.assertEqual(response.status_code, 200) @override_settings(MEDIA_ROOT=os.path.join(settings.BASE_DIR, "test_media_for_photo_route")) def test_photo_edit_route_post_login_bad_data_has_error(self): """Test that photo create route post with login has error.""" photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') data = {} response = self.client.post(reverse_lazy('photo_edit', kwargs={'id': photo_id}), data) self.assertIn(b'class="errorlist"', response.content) def test_album_edit_route_get_bad_id_gets_404(self): """Test get to album edit route for bad id has 404 code.""" self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('album_edit', kwargs={'id': 1000000000})) self.assertEqual(response.status_code, 404) def test_album_edit_route_get_not_logged_in_has_302(self): """Test get to album edit route when not logged in has 302 code.""" album_id = self.bob.albums.first().id response = self.client.get(reverse_lazy('album_edit', kwargs={'id': album_id})) self.assertEqual(response.status_code, 302) def test_album_edit_route_get_not_logged_in_redirects_to_login(self): """Test get to album edit route when not logged in redirects to login.""" album_id = self.bob.albums.first().id response = self.client.get(reverse_lazy('album_edit', kwargs={'id': album_id}), follow=True) self.assertIn(b'Login</h1>', response.content) def test_album_edit_route_get_logged_in_has_200(self): """Test get to album edit route when logged in has 200 code.""" album_id = self.bob.albums.first().id self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('album_edit', kwargs={'id': album_id})) self.assertEqual(response.status_code, 200) def test_album_edit_route_get_logged_in_has_edit_form(self): """Test get to album edit route when logged in has edit form.""" album_id = self.bob.albums.first().id self.client.login(username='bob', password='password') response = self.client.get(reverse_lazy('album_edit', kwargs={'id': album_id})) self.assertIn(b'Edit Album</h1>', response.content) def test_album_edit_route_post_bad_id_gets_404(self): """Test get to album edit route for bad id has 404 code.""" self.client.login(username='bob', password='password') response = self.client.post(reverse_lazy('album_edit', kwargs={'id': 1000000000})) self.assertEqual(response.status_code, 404) def test_album_edit_route_post_not_logged_in_has_302(self): """Test post to album edit route when not logged in has 302 code.""" album_id = self.bob.albums.first().id response = self.client.post(reverse_lazy('album_edit', kwargs={'id': album_id})) self.assertEqual(response.status_code, 302) def test_album_edit_route_post_not_logged_in_redirects_to_login(self): """Test post to album edit route when not logged in redirects to login.""" album_id = self.bob.albums.first().id response = self.client.post(reverse_lazy('album_edit', kwargs={'id': album_id}), follow=True) self.assertIn(b'Login</h1>', response.content) def test_album_edit_route_post_logged_in_has_302(self): """Test post to album edit route when logged in has 302 code.""" album_id = self.bob.albums.first().id photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') data = { 'title': 'test4', 'description': 'testing4', 'published': 'PRIVATE', 'photos': [photo_id] } response = self.client.post(reverse_lazy('album_edit', kwargs={'id': album_id}), data) self.assertEqual(response.status_code, 302) def test_album_edit_route_post_logged_in_updates_the_correct_album(self): """Test album edit route post logged in updates the users album.""" album_id = self.bob.albums.first().id photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') data = { 'title': 'test5', 'description': 'testing5', 'published': 'PRIVATE', 'photos': [photo_id] } self.client.post(reverse_lazy('album_edit', kwargs={'id': album_id}), data) album = Album.objects.get(id=album_id) self.assertEqual(album.title, 'test5') self.assertEqual(album.description, 'testing5') def test_album_edit_route_post_logged_in_public_adds_published_date(self): """Test album edit route post logged in set published to public sets published date.""" album_id = self.bob.albums.first().id photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') data = { 'published': 'PUBLIC', 'photos': [photo_id] } self.client.post(reverse_lazy('album_edit', kwargs={'id': album_id}), data) album = Album.objects.get(id=album_id) now = datetime.now().strftime('%x %X')[:2] self.assertEqual(album.published, 'PUBLIC') self.assertEqual(album.date_published.strftime('%x %X')[:2], now) def test_album_edit_route_post_logged_in_done_redirects_to_library(self): """Test post to album edit route when logged in redirects to library when done.""" album_id = self.bob.albums.first().id photo_id = self.bob.photos.first().id self.client.login(username='bob', password='password') data = { 'title': 'test6', 'description': 'testing6', 'published': 'PRIVATE', 'photos': [photo_id] } response = self.client.post(reverse_lazy('album_edit', kwargs={'id': album_id}), data, follow=True) self.assertIn(b'<h1>Library</h1>', response.content) def test_album_edit_route_post_logged_in_bad_data_has_200(self): """Test that album create route post with login has 200 code.""" album_id = self.bob.albums.first().id self.client.login(username='bob', password='password') data = {} response = self.client.post(reverse_lazy('album_edit', kwargs={'id': album_id}), data) self.assertEqual(response.status_code, 200) def test_album_edit_route_post_login_bad_data_has_error(self): """Test that album create route post with login has error.""" album_id = self.bob.albums.first().id self.client.login(username='bob', password='password') data = {} response = self.client.post(reverse_lazy('album_edit', kwargs={'id': album_id}), data) self.assertIn(b'class="errorlist"', response.content)
45.276025
107
0.645968
7,109
57,410
4.994795
0.038683
0.022277
0.024333
0.025262
0.912048
0.879661
0.856511
0.803312
0.766222
0.730652
0
0.011869
0.235377
57,410
1,267
108
45.31176
0.797025
0.124839
0
0.661491
0
0
0.098223
0.015714
0
0
0
0
0.135611
1
0.123188
false
0.048654
0.038302
0
0.175983
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
c67cf4fc4783688de8719013d91213bc05b542c3
2,619
py
Python
code/producer.py
Niroshamurugan/Revature--project-03
24095c5c43c6da3901e3312eae0a003eaf090b03
[ "MIT" ]
null
null
null
code/producer.py
Niroshamurugan/Revature--project-03
24095c5c43c6da3901e3312eae0a003eaf090b03
[ "MIT" ]
null
null
null
code/producer.py
Niroshamurugan/Revature--project-03
24095c5c43c6da3901e3312eae0a003eaf090b03
[ "MIT" ]
3
2021-09-22T05:50:52.000Z
2021-09-27T08:29:15.000Z
import requests import time import json from kafka import KafkaProducer import threading import credentials as cred key = cred.login['private_key'] def send_Mumbai(): url = 'https://api.weatherbit.io/v2.0/history/subhourly?&city=Mumbai&country=IN&start_date=2021-09-24&end_date=2021-09-26&key={}'.format(key) data = requests.get(url).json() city_name = data['city_name'] for dataval in data['data']: dataval["city"] = city_name del dataval["weather"] del dataval["timestamp_utc"] del dataval["timestamp_local"] output = json.dumps(dataval) producer.send('weather', output) producer.flush() time.sleep(4) def send_Chennai(): url = 'https://api.weatherbit.io/v2.0/history/subhourly?&city=Chennai&country=IN&start_date=2021-09-24&end_date=2021-09-26&key={}'.format(key) data = requests.get(url).json() city_name = data['city_name'] for dataval in data['data']: dataval["city"] = city_name del dataval["weather"] del dataval["timestamp_utc"] del dataval["timestamp_local"] output = json.dumps(dataval) producer.send('weather', output) producer.flush() time.sleep(4) def send_Banglore(): url = 'https://api.weatherbit.io/v2.0/history/subhourly?&city=Banglore&country=IN&start_date=2021-09-24&end_date=2021-09-26&key={}'.format(key) data = requests.get(url).json() city_name = data['city_name'] for dataval in data['data']: dataval["city"] = city_name del dataval["weather"] del dataval["timestamp_utc"] del dataval["timestamp_local"] output = json.dumps(dataval) producer.send('weather', output) producer.flush() time.sleep(4) def send_Hyderabad(): url = 'https://api.weatherbit.io/v2.0/history/subhourly?&city=Hyderabad&country=IN&start_date=2021-09-24&end_date=2021-09-26&key={}'.format(key) data = requests.get(url).json() city_name = data['city_name'] for dataval in data['data']: dataval["city"] = city_name del dataval["weather"] del dataval["timestamp_utc"] del dataval["timestamp_local"] output = json.dumps(dataval) producer.send('weather', output) producer.flush() time.sleep(4) producer = KafkaProducer(value_serializer = lambda x: str(x).encode("utf-8"), bootstrap_servers = ['localhost:9092']) threading.Thread(target=send_Mumbai).start() threading.Thread(target=send_Chennai).start() threading.Thread(target=send_Banglore).start() threading.Thread(target=send_Hyderabad).start()
34.460526
148
0.66323
348
2,619
4.87931
0.201149
0.056537
0.047114
0.04947
0.802709
0.749706
0.749706
0.749706
0.749706
0.749706
0
0.03801
0.186331
2,619
75
149
34.92
0.758799
0
0
0.6875
0
0.0625
0.28866
0
0
0
0
0
0
1
0.0625
false
0
0.09375
0
0.15625
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
c68b2b14b1498e2949ccda702dd2c2ca77a60435
678
py
Python
tests/expectations/cat-hs-x-cat-date-smoothed-col-idx-w3.py
Crunch-io/crunch-cube
80986d5b2106c774f05176fb6c6a5ea0d840f09d
[ "MIT" ]
3
2021-01-22T20:42:31.000Z
2021-06-02T17:53:19.000Z
tests/expectations/cat-hs-x-cat-date-smoothed-col-idx-w3.py
Crunch-io/crunch-cube
80986d5b2106c774f05176fb6c6a5ea0d840f09d
[ "MIT" ]
331
2017-11-13T22:41:56.000Z
2021-12-02T21:59:43.000Z
tests/expectations/cat-hs-x-cat-date-smoothed-col-idx-w3.py
Crunch-io/crunch-cube
80986d5b2106c774f05176fb6c6a5ea0d840f09d
[ "MIT" ]
1
2021-02-19T02:49:00.000Z
2021-02-19T02:49:00.000Z
[ [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), 98.94756383, 102.48945473], [float("NaN"), float("NaN"), 99.37642288, 86.00386085], [float("NaN"), float("NaN"), 101.42881595, 80.4871013], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], [float("NaN"), float("NaN"), 114.65617463, 131.06169493], [float("NaN"), float("NaN"), 114.45648453, 77.61954936], [float("NaN"), float("NaN"), 117.08393631, 129.63525462], [float("NaN"), float("NaN"), 97.76074163, 132.11504182], [float("NaN"), float("NaN"), 76.37474542, 144.68075635], [float("NaN"), float("NaN"), float("NaN"), float("NaN")], ]
48.428571
61
0.578171
88
678
4.454545
0.375
0.571429
0.630102
0.77551
0.382653
0.326531
0.326531
0.326531
0.244898
0.244898
0
0.285714
0.132743
678
13
62
52.153846
0.380952
0
0
0.230769
0
0
0.123894
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
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
6
c69b5828fe8be59e297ae10d33bcab46283c11e0
12,542
py
Python
scenarios/bad_node_variations_10.py
tari-labs/modelling
27dd69f5fc658a69a2e2db273231c0f017448586
[ "Apache-2.0" ]
null
null
null
scenarios/bad_node_variations_10.py
tari-labs/modelling
27dd69f5fc658a69a2e2db273231c0f017448586
[ "Apache-2.0" ]
1
2019-04-01T06:19:43.000Z
2019-04-01T06:19:43.000Z
scenarios/bad_node_variations_10.py
tari-labs/modelling
27dd69f5fc658a69a2e2db273231c0f017448586
[ "Apache-2.0" ]
1
2021-07-28T04:07:41.000Z
2021-07-28T04:07:41.000Z
import sys, os #Add ../utils to the Python system path try: sys.path.index(os.getcwd().split(os.getcwd().split(os.sep)[-1])[0] + 'utils'); except ValueError: sys.path.append(os.getcwd().split(os.getcwd().split(os.sep)[-1])[0] + 'utils'); import hyper_dist_prob as hdp import numpy as np #from IPython import get_ipython #get_ipython().magic('clear') # Set environment with m = 10% # Declare and initialize variables no_of_nodes = [] no_of_nodes_start =100 no_of_nodes_max = 20000 ## Node increment incr = 1000 ## Create nodes array no_of_nodes = np.arange(no_of_nodes_start, no_of_nodes_max + 1, incr) # Quantify Committee size committee_size_10 = 100 # Create and Initialize scenario variables ## Percentage of Bad actors no_of_bad_actors = [] bad_actors_percentage = 0.1 ## Quantify BFT threshold bft_threshold = 67 # Populate input arrays ## Calculate the number of Bad actors (product of total nodes (N) and Bad actors percentage, round down) no_of_bad_actors = np.int_(np.floor(no_of_nodes * bad_actors_percentage)) # Calculate the total probability of bad actors controlling the committee, starting from the BFT threshold # up to the committee size P_tot_10 = [] #print('Tot_nodes Bad_nodes Committee Threshold index Probability to control') for j in range(0, len(no_of_nodes)): P_tot_10.append(hdp.probability(bft_threshold, no_of_bad_actors[j], committee_size_10, no_of_nodes[j])) print(' %3s %3s %3s %3s j=%3s P_tot= %-20s' % \ (no_of_nodes[j], no_of_bad_actors[j], committee_size_10, bft_threshold, j, P_tot_10[j])) # Set environment with m = 20% # Declare and initialize variables no_of_nodes = [] no_of_nodes_start =100 no_of_nodes_max = 20000 ## Node increment incr = 1000 ## Create nodes array no_of_nodes = np.arange(no_of_nodes_start, no_of_nodes_max + 1, incr) # Quantify Committee size committee_size_20 = 100 # Create and Initialize scenario variables ## Percentage of Bad actors no_of_bad_actors = [] bad_actors_percentage = 0.2 ## Quantify BFT threshold bft_threshold = 67 # Populate input arrays ## Calculate the number of Bad actors (product of total nodes (N) and Bad actors percentage, round down) no_of_bad_actors = np.int_(np.floor(no_of_nodes * bad_actors_percentage)) # Calculate the total probability of bad actors controlling the committee, starting from the BFT threshold # up to the committee size P_tot_20 = [] #print('Tot_nodes Bad_nodes Committee Threshold index Probability to control') for j in range(0, len(no_of_nodes)): P_tot_20.append(hdp.probability(bft_threshold, no_of_bad_actors[j], committee_size_20, no_of_nodes[j])) print(' %3s %3s %3s %3s j=%3s P_tot= %-20s' % \ (no_of_nodes[j], no_of_bad_actors[j], committee_size_20, bft_threshold, j, P_tot_20[j])) # Set environment with m = 30% # Declare and initialize variables no_of_nodes = [] no_of_nodes_start = 100 no_of_nodes_max = 20000 ## Node increment incr = 1000 ## Create nodes array no_of_nodes = np.arange(no_of_nodes_start, no_of_nodes_max + 1, incr) # Quantify Committee size committee_size_30 = 100 # Create and Initialize scenario variables ## Percentage of Bad actors no_of_bad_actors = [] bad_actors_percentage = 0.3 ## Quantify BFT threshold bft_threshold = 67 # Populate input arrays ## Calculate the number of Bad actors (product of total nodes (N) and Bad actors percentage, round down) no_of_bad_actors = np.int_(np.floor(no_of_nodes * bad_actors_percentage)) # Calculate the total probability of bad actors controlling the committee, starting from the BFT threshold # up to the committee size P_tot_30 = [] #print('Tot_nodes Bad_nodes Committee Threshold index Probability to control') for j in range(0, len(no_of_nodes)): P_tot_30.append(hdp.probability(bft_threshold, no_of_bad_actors[j], committee_size_30, no_of_nodes[j])) print(' %3s %3s %3s %3s j=%3s P_tot= %-20s' % \ (no_of_nodes[j], no_of_bad_actors[j], committee_size_30, bft_threshold, j, P_tot_30[j])) # Set environment with m = 40% # Declare and initialize variables no_of_nodes = [] no_of_nodes_start = 100 no_of_nodes_max = 20000 ## Node increment incr = 1000 ## Create nodes array no_of_nodes = np.arange(no_of_nodes_start, no_of_nodes_max + 1, incr) # Quantify Committee size committee_size_40 = 100 # Create and Initialize scenario variables ## Percentage of Bad actors no_of_bad_actors = [] bad_actors_percentage = 0.4 ## Quantify BFT threshold bft_threshold = 67 # Populate input arrays ## Calculate the number of Bad actors (product of total nodes (N) and Bad actors percentage, round down) no_of_bad_actors = np.int_(np.floor(no_of_nodes * bad_actors_percentage)) # Calculate the total probability of bad actors controlling the committee, starting from the BFT threshold # up to the committee size P_tot_40 = [] #print('Tot_nodes Bad_nodes Committee Threshold index Probability to control') for j in range(0, len(no_of_nodes)): P_tot_40.append(hdp.probability(bft_threshold, no_of_bad_actors[j], committee_size_40, no_of_nodes[j])) print(' %3s %3s %3s %3s j=%3s P_tot= %-20s' % \ (no_of_nodes[j], no_of_bad_actors[j], committee_size_40, bft_threshold, j, P_tot_40[j])) # Set environment with m = 50% # Declare and initialize variables no_of_nodes = [] no_of_nodes_start = 100 no_of_nodes_max = 20000 ## Node increment incr = 1000 ## Create nodes array no_of_nodes = np.arange(no_of_nodes_start, no_of_nodes_max + 1, incr) # Quantify Committee size committee_size_50 = 100 # Create and Initialize scenario variables ## Percentage of Bad actors no_of_bad_actors = [] bad_actors_percentage = 0.5 ## Quantify BFT threshold bft_threshold = 67 # Populate input arrays ## Calculate the number of Bad actors (product of total nodes (N) and Bad actors percentage, round down) no_of_bad_actors = np.int_(np.floor(no_of_nodes * bad_actors_percentage)) # Calculate the total probability of bad actors controlling the committee, starting from the BFT threshold # up to the committee size P_tot_50 = [] #print('Tot_nodes Bad_nodes Committee Threshold index Probability to control') for j in range(0, len(no_of_nodes)): P_tot_50.append(hdp.probability(bft_threshold, no_of_bad_actors[j], committee_size_50, no_of_nodes[j])) print(' %3s %3s %3s %3s j=%3s P_tot= %-20s' % \ (no_of_nodes[j], no_of_bad_actors[j], committee_size_50, bft_threshold, j, P_tot_50[j])) # Set environment with m = 60% # Declare and initialize variables no_of_nodes = [] no_of_nodes_start = 100 no_of_nodes_max = 20000 ## Node increment incr = 2000 ## Create nodes array no_of_nodes = np.arange(no_of_nodes_start, no_of_nodes_max + 1, incr) # Quantify Committee size committee_size_60 = 100 # Create and Initialize scenario variables ## Percentage of Bad actors no_of_bad_actors = [] bad_actors_percentage = 0.6 ## Quantify BFT threshold bft_threshold = 67 # Populate input arrays ## Calculate the number of Bad actors (product of total nodes (N) and Bad actors percentage, round down) no_of_bad_actors = np.int_(np.floor(no_of_nodes * bad_actors_percentage)) # Calculate the total probability of bad actors controlling the committee, starting from the BFT threshold # up to the committee size P_tot_60 = [] #print('Tot_nodes Bad_nodes Committee Threshold index Probability to control') for j in range(0, len(no_of_nodes)): P_tot_60.append(hdp.probability(bft_threshold, no_of_bad_actors[j], committee_size_60, no_of_nodes[j])) print(' %3s %3s %3s %3s j=%3s P_tot= %-20s' % \ (no_of_nodes[j], no_of_bad_actors[j], committee_size_60, bft_threshold, j, P_tot_60[j])) # Set environment with m = 70% # Declare and initialize variables no_of_nodes = [] no_of_nodes_start =100 no_of_nodes_max = 20000 ## Node increment incr = 1000 ## Create nodes array no_of_nodes = np.arange(no_of_nodes_start, no_of_nodes_max + 1, incr) # Quantify Committee size committee_size_70 = 100 # Create and Initialize scenario variables ## Percentage of Bad actors no_of_bad_actors = [] bad_actors_percentage = 0.7 ## Quantify BFT threshold bft_threshold = 67 # Populate input arrays ## Calculate the number of Bad actors (product of total nodes (N) and Bad actors percentage, round down) no_of_bad_actors = np.int_(np.floor(no_of_nodes * bad_actors_percentage)) # Calculate the total probability of bad actors controlling the committee, starting from the BFT threshold # up to the committee size P_tot_70 = [] #print('Tot_nodes Bad_nodes Committee Threshold index Probability to control') for j in range(0, len(no_of_nodes)): P_tot_70.append(hdp.probability(bft_threshold, no_of_bad_actors[j], committee_size_70, no_of_nodes[j])) print(' %3s %3s %3s %3s j=%3s P_tot= %-20s' % \ (no_of_nodes[j], no_of_bad_actors[j], committee_size_70, bft_threshold, j, P_tot_70[j])) # Set environment with m = 80% # Declare and initialize variables no_of_nodes = [] no_of_nodes_start =100 no_of_nodes_max = 20000 ## Node increment incr = 1000 ## Create nodes array no_of_nodes = np.arange(no_of_nodes_start, no_of_nodes_max + 1, incr) # Quantify Committee size committee_size_80 = 100 # Create and Initialize scenario variables ## Percentage of Bad actors no_of_bad_actors = [] bad_actors_percentage = 0.8 ## Quantify BFT threshold bft_threshold = 67 # Populate input arrays ## Calculate the number of Bad actors (product of total nodes (N) and Bad actors percentage, round down) no_of_bad_actors = np.int_(np.floor(no_of_nodes * bad_actors_percentage)) # Calculate the total probability of bad actors controlling the committee, starting from the BFT threshold # up to the committee size P_tot_80 = [] #print('Tot_nodes Bad_nodes Committee Threshold index Probability to control') for j in range(0, len(no_of_nodes)): P_tot_80.append(hdp.probability(bft_threshold, no_of_bad_actors[j], committee_size_80, no_of_nodes[j])) print(' %3s %3s %3s %3s j=%3s P_tot= %-20s' % \ (no_of_nodes[j], no_of_bad_actors[j], committee_size_80, bft_threshold, j, P_tot_80[j])) # Set environment with m = 90% # Declare and initialize variables no_of_nodes = [] no_of_nodes_start =100 no_of_nodes_max = 20000 ## Node increment incr = 1000 ## Create nodes array no_of_nodes = np.arange(no_of_nodes_start, no_of_nodes_max + 1, incr) # Quantify Committee size committee_size_90 = 100 # Create and Initialize scenario variables ## Percentage of Bad actors no_of_bad_actors = [] bad_actors_percentage = 0.9 ## Quantify BFT threshold bft_threshold = 67 # Populate input arrays ## Calculate the number of Bad actors (product of total nodes (N) and Bad actors percentage, round down) no_of_bad_actors = np.int_(np.floor(no_of_nodes * bad_actors_percentage)) # Calculate the total probability of bad actors controlling the committee, starting from the BFT threshold # up to the committee size P_tot_90 = [] #print('Tot_nodes Bad_nodes Committee Threshold index Probability to control') for j in range(0, len(no_of_nodes)): P_tot_90.append(hdp.probability(bft_threshold, no_of_bad_actors[j], committee_size_90, no_of_nodes[j])) print(' %3s %3s %3s %3s j=%3s P_tot= %-20s' % \ (no_of_nodes[j], no_of_bad_actors[j], committee_size_90, bft_threshold, j, P_tot_90[j])) #Plots import matplotlib.pyplot as plt ## Standard graph settings fig, ax1 = plt.subplots(figsize=(12,9)) ax1.grid(True, linestyle='-.') ax1.xaxis.grid(True, which='minor', linestyle='-.') ax1.set_xlabel('Total Nodes', fontsize='18') ax1.set_ylabel('Probability of bad actors controlling the network', fontsize='18') ax1.set_title('Bad actor variation when committee size = 100') plt.plot(no_of_nodes, P_tot_10, 'c-', label='m = 10%') plt.plot(no_of_nodes, P_tot_20, 'c-', label='m = 20%') plt.plot(no_of_nodes, P_tot_30, 'm-', label='m = 30%') plt.plot(no_of_nodes, P_tot_40, 'k-', label='m = 40%') plt.plot(no_of_nodes, P_tot_50, 'r-', label='m = 50%') plt.plot(no_of_nodes, P_tot_60, 'y-', label='m = 60%') plt.plot(no_of_nodes, P_tot_70, 'y-', label='m = 70%') plt.plot(no_of_nodes, P_tot_80, 'y-', label='m = 80%') plt.plot(no_of_nodes, P_tot_90, 'y-', label='m = 90%') plt.xlim(0,20000) plt.ylim(3e-53,1) plt.legend(loc=3) plt.show()
26.459916
107
0.727795
2,048
12,542
4.176758
0.072754
0.063128
0.104162
0.054711
0.924597
0.888006
0.879589
0.858546
0.854337
0.854337
0
0.042912
0.173178
12,542
473
108
26.515856
0.781967
0.405358
0
0.549383
0
0
0.103978
0
0
0
0
0
0
1
0
false
0
0.024691
0
0.024691
0.055556
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
c6f655f992ed153b136d10a6015387ee48623ff1
14,483
py
Python
tests/features/test_pmi_controller.py
keaparrot/secbootctl
a624677a8987023a3a55d7e002c3c980bdd0e0bd
[ "MIT" ]
null
null
null
tests/features/test_pmi_controller.py
keaparrot/secbootctl
a624677a8987023a3a55d7e002c3c980bdd0e0bd
[ "MIT" ]
null
null
null
tests/features/test_pmi_controller.py
keaparrot/secbootctl
a624677a8987023a3a55d7e002c3c980bdd0e0bd
[ "MIT" ]
null
null
null
import unittest from io import StringIO from pathlib import Path from unittest.mock import MagicMock, Mock from unittest.mock import call from unittest.mock import patch from secbootctl.core import AppError from secbootctl.env import Env from secbootctl.helpers.cli import CliPrintHelper from tests import unittest_helper class TestPmiController(unittest_helper.ControllerTestCase): FEATURE_NAME: str = 'pmi' @patch('secbootctl.features.pmi.Path.is_dir') @patch('secbootctl.features.pmi.os') @patch('secbootctl.features.pmi.shutil') @patch('secbootctl.features.pmi.glob') def test_install_pacman_it_installs_hook_files(self, glob_patch_mock: MagicMock, shutil_patch_mock: MagicMock, os_patch_mock: MagicMock, path_is_dir_patch_mock: MagicMock): pm_name: str = 'pacman' hook_path: Path = Env.APP_HOOK_PATH / pm_name hook_target_path: Path = Path('/etc/pacman.d/hooks') self._config_mock.configure_mock(package_manager_name=pm_name) glob_patch_mock.glob.return_value = [ f'{hook_path}/update-hook.hook', f'{hook_path}/remove-hook.hook' ] path_is_dir_patch_mock.return_value = True self._controller.install() glob_patch_mock.glob.assert_called_once_with( str(hook_path / '*.*') ) shutil_patch_mock.copy.assert_has_calls([ call(hook_path / 'update-hook.hook', hook_target_path), call(hook_path / 'remove-hook.hook', hook_target_path) ]) shutil_patch_mock.chown.assert_has_calls([ call(hook_target_path / 'update-hook.hook', 'root', 'root'), call(hook_target_path / 'remove-hook.hook', 'root', 'root') ]) os_patch_mock.chmod.assert_has_calls([ call(hook_target_path / 'update-hook.hook', 0o700), call(hook_target_path / 'remove-hook.hook', 0o700) ]) self._cli_print_helper_mock.print_status.assert_has_calls([ call(f'installing hook files for package manager: {pm_name}', CliPrintHelper.Status.PENDING), call(f'installed hook files for package manager: {pm_name}', CliPrintHelper.Status.SUCCESS) ]) def test_install_if_pm_not_supported_it_raises_an_error(self): pm_name: str = 'unknown' self._config_mock.configure_mock(package_manager_name=pm_name) with self.assertRaises(AppError) as context_manager: self._controller.install() error: AppError = context_manager.exception self.assertEqual( error.message, f'configured package manager "{pm_name}" is not supported' ) self.assertEqual( error.code, 1 ) @patch('secbootctl.features.pmi.Path.unlink') @patch('secbootctl.features.pmi.glob') def test_remove_pacman_it_removes_hook_files(self, glob_patch_mock: MagicMock, path_unlink_patch_mock: MagicMock): pm_name: str = 'pacman' hook_path: Path = Env.APP_HOOK_PATH / pm_name self._config_mock.configure_mock(package_manager_name=pm_name) glob_patch_mock.glob.return_value = [ f'{hook_path}/update-hook.hook', f'{hook_path}/remove-hook.hook' ] self._controller.remove() glob_patch_mock.glob.assert_called_once_with( str(hook_path / '*.*') ) path_unlink_patch_mock.assert_called_with(missing_ok=True) self._cli_print_helper_mock.print_status.assert_has_calls([ call(f'removing hook files for package manager: {pm_name}', CliPrintHelper.Status.PENDING), call(f'removed hook files for package manager: {pm_name}', CliPrintHelper.Status.SUCCESS) ]) @patch('secbootctl.features.pmi.glob') def test_remove_if_pm_not_supported_it_raises_an_error(self, glob_patch_mock: MagicMock): pm_name: str = 'unknown' self._config_mock.configure_mock(package_manager_name=pm_name) with self.assertRaises(AppError) as context_manager: self._controller.remove() error: AppError = context_manager.exception self.assertEqual( error.message, f'configured package manager "{pm_name}" is not supported' ) self.assertEqual( error.code, 1 ) @patch('sys.stdin', StringIO('linux')) @patch('secbootctl.features.pmi.glob') def test_hook_callback_pacman_update_if_no_systemd_update_it_signs_all_kernels(self, glob_patch_mock: MagicMock): pm_name: str = 'pacman' boot_path: Path = Path('/boot') kernel_image_name_prefix: str = 'vmlinuz' self._config_mock.configure_mock( boot_path=boot_path, kernel_image_name_prefix=kernel_image_name_prefix, package_manager_name=pm_name ) glob_patch_mock.glob.return_value = [ f'{boot_path}/{kernel_image_name_prefix}-linux', f'{boot_path}/{kernel_image_name_prefix}-linux-lts', f'{boot_path}/{kernel_image_name_prefix}-5.10.0.14-generic', ] self._controller.hook_callback('update') glob_patch_mock.glob.assert_called_once_with( str(boot_path / (kernel_image_name_prefix + '-*')) ) self._dispatcher_mock.dispatch.assert_has_calls([ call({ 'module_name': 'secbootctl.features.kernel', 'controller_name': 'KernelController', 'action_name': 'install', 'params': {'kernel_name': 'linux'} }), call({ 'module_name': 'secbootctl.features.kernel', 'controller_name': 'KernelController', 'action_name': 'install', 'params': {'kernel_name': 'linux-lts'} }), call({ 'module_name': 'secbootctl.features.kernel', 'controller_name': 'KernelController', 'action_name': 'install', 'params': {'kernel_name': '5.10.0.14-generic'} }), ]) @patch('sys.stdin', StringIO('linux\nsystemd')) @patch('secbootctl.features.pmi.glob') def test_hook_callback_pacman_update_if_systemd_update_it_signs_all_kernels_and_updates_bootloader(self, glob_patch_mock: MagicMock): pm_name: str = 'pacman' boot_path: Path = Path('/boot') kernel_image_name_prefix: str = 'vmlinuz' self._config_mock.configure_mock( boot_path=boot_path, kernel_image_name_prefix=kernel_image_name_prefix, package_manager_name=pm_name ) glob_patch_mock.glob.return_value = [ f'{boot_path}/{kernel_image_name_prefix}-linux', f'{boot_path}/{kernel_image_name_prefix}-linux-lts', f'{boot_path}/{kernel_image_name_prefix}-5.10.0.14-generic', ] self._controller.hook_callback('update') glob_patch_mock.glob.assert_called_once_with( str(boot_path / (kernel_image_name_prefix + '-*')) ) self._dispatcher_mock.dispatch.assert_has_calls([ call({ 'module_name': 'secbootctl.features.kernel', 'controller_name': 'KernelController', 'action_name': 'install', 'params': {'kernel_name': 'linux'} }), call({ 'module_name': 'secbootctl.features.kernel', 'controller_name': 'KernelController', 'action_name': 'install', 'params': {'kernel_name': 'linux-lts'} }), call({ 'module_name': 'secbootctl.features.kernel', 'controller_name': 'KernelController', 'action_name': 'install', 'params': {'kernel_name': '5.10.0.14-generic'} }), call({ 'module_name': 'secbootctl.features.bootloader', 'controller_name': 'BootloaderController', 'action_name': 'update', 'params': {} }) ]) def test_hook_callback_pacman_update_if_not_supported_it_raises_an_error(self): pm_name: str = 'unknown' self._config_mock.configure_mock(package_manager_name=pm_name) with self.assertRaises(AppError) as context_manager: self._controller.hook_callback('update') error: AppError = context_manager.exception self.assertEqual( error.message, f'configured package manager "{pm_name}" is not supported' ) self.assertEqual( error.code, 1 ) @patch('sys.stdin', StringIO('/usr/lib/modules/5.15.8/vmlinuz\n/usr/lib/modules/5.10.85-lts/vmlinuz')) @patch('secbootctl.features.pmi.Path.read_text') def test_hook_callback_pacman_remove_it_removes_given_kernels(self, path_read_text_patch_mock: MagicMock): pm_name: str = 'pacman' self._config_mock.configure_mock(package_manager_name=pm_name) path_read_text_patch_mock.side_effect = ['linux', 'linux-lts'] self._controller.hook_callback('remove') self._dispatcher_mock.dispatch.assert_has_calls([ call({ 'module_name': 'secbootctl.features.kernel', 'controller_name': 'KernelController', 'action_name': 'remove', 'params': {'kernel_name': 'linux'} }), call({ 'module_name': 'secbootctl.features.kernel', 'controller_name': 'KernelController', 'action_name': 'remove', 'params': {'kernel_name': 'linux-lts'} }) ]) def test_hook_callback_pacman_remove_if_not_supported_it_raises_an_error(self): pm_name: str = 'unknown' self._config_mock.configure_mock(package_manager_name=pm_name) with self.assertRaises(AppError) as context_manager: self._controller.hook_callback('remove') error: AppError = context_manager.exception self.assertEqual( error.message, f'configured package manager "{pm_name}" is not supported' ) self.assertEqual( error.code, 1 ) @patch('secbootctl.features.pmi.Path.is_dir') @patch('secbootctl.features.pmi.os') @patch('secbootctl.features.pmi.shutil') def test_install_apt_it_installs_hook_files(self, shutil_patch_mock: MagicMock, os_patch_mock: MagicMock, path_is_dir_patch_mock: MagicMock): pm_name: str = 'apt' hook_path: Path = Env.APP_HOOK_PATH / pm_name self._config_mock.configure_mock(package_manager_name=pm_name) path_is_dir_patch_mock.return_value = True self._controller.install() shutil_patch_mock.copy.assert_has_calls([ call(hook_path / 'initramfs' / 'yy-secbootctl-update', Path('/etc/initramfs/post-update.d')), call(hook_path / 'kernel' / 'yy-secbootctl-update', Path('/etc/kernel/postinst.d')), call(hook_path / 'kernel' / 'yy-secbootctl-remove', Path('/etc/kernel/postrm.d')) ]) shutil_patch_mock.chown.assert_has_calls([ call(Path('/etc/initramfs/post-update.d') / 'yy-secbootctl-update', 'root', 'root'), call(Path('/etc/kernel/postinst.d') / 'yy-secbootctl-update', 'root', 'root'), call(Path('/etc/kernel/postrm.d') / 'yy-secbootctl-remove', 'root', 'root'), ]) os_patch_mock.chmod.assert_has_calls([ call(Path('/etc/initramfs/post-update.d') / 'yy-secbootctl-update', 0o700), call(Path('/etc/kernel/postinst.d') / 'yy-secbootctl-update', 0o700), call(Path('/etc/kernel/postrm.d') / 'yy-secbootctl-remove', 0o700) ]) self._cli_print_helper_mock.print_status.assert_has_calls([ call(f'installing hook files for package manager: {pm_name}', CliPrintHelper.Status.PENDING), call(f'installed hook files for package manager: {pm_name}', CliPrintHelper.Status.SUCCESS) ]) @patch('secbootctl.features.pmi.Path') def test_remove_apt_it_removes_hook_files(self, path_patch_mock: MagicMock): pm_name: str = 'apt' self._config_mock.configure_mock(package_manager_name=pm_name) path_mock: Mock = Mock() path_patch_mock.side_effect = [path_mock, path_mock, path_mock] self._controller.remove() path_patch_mock.assert_has_calls([ call('/etc/initramfs/post-update.d/yy-secbootctl-update'), call('/etc/kernel/postinst.d/yy-secbootctl-update'), call('/etc/kernel/postrm.d/yy-secbootctl-remove') ]) path_mock.unlink.assert_called_with(missing_ok=True) self._cli_print_helper_mock.print_status.assert_has_calls([ call(f'removing hook files for package manager: {pm_name}', CliPrintHelper.Status.PENDING), call(f'removed hook files for package manager: {pm_name}', CliPrintHelper.Status.SUCCESS) ]) def test_hook_callback_apt_update_it_updates_given_kernel(self): pm_name: str= 'apt' self._config_mock.configure_mock(package_manager_name=pm_name) kernel_name: str = '5.10.0.14-generic' self._controller.hook_callback('update', kernel_name) self._dispatcher_mock.dispatch.assert_called_once_with({ 'module_name': 'secbootctl.features.kernel', 'controller_name': 'KernelController', 'action_name': 'install', 'params': {'kernel_name': kernel_name} }) def test_hook_callback_apt_remove_it_removes_given_kernel(self): pm_name: str= 'apt' self._config_mock.configure_mock(package_manager_name=pm_name) kernel_name: str = '5.10.0.14-generic' self._controller.hook_callback('remove', kernel_name) self._dispatcher_mock.dispatch.assert_called_once_with({ 'module_name': 'secbootctl.features.kernel', 'controller_name': 'KernelController', 'action_name': 'remove', 'params': {'kernel_name': kernel_name} }) if __name__ == '__main__': unittest.main()
42.101744
131
0.624801
1,652
14,483
5.127724
0.090194
0.02904
0.038012
0.04297
0.891394
0.841459
0.823988
0.77724
0.757998
0.738166
0
0.006456
0.262031
14,483
343
132
42.22449
0.786115
0
0
0.697987
0
0.003356
0.253815
0.101705
0
0
0
0
0.114094
1
0.043624
false
0
0.033557
0
0.083893
0.013423
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
05cb4a47a6e0fa5447949be9dc6c8acde7d7e025
234,179
py
Python
dfs/nfl/data.py
sullivanja92/dfs-lineup-optimizer
fea6b9bd76c806f7888fae44d7d113d54e3b4f4d
[ "MIT" ]
null
null
null
dfs/nfl/data.py
sullivanja92/dfs-lineup-optimizer
fea6b9bd76c806f7888fae44d7d113d54e3b4f4d
[ "MIT" ]
null
null
null
dfs/nfl/data.py
sullivanja92/dfs-lineup-optimizer
fea6b9bd76c806f7888fae44d7d113d54e3b4f4d
[ "MIT" ]
null
null
null
from typing import List import pandas as pd from numpy import nan # TODO: should be able to provide week for single week df def load_2020_data(weeks: List[int] = range(1, 5)) -> pd.DataFrame: # TODO: correct dk and fd points """ This function is used to provide sample data from the 2019 season. The return value is a DataFrame containing the following columns: name, position, year, week, team, opponent, dk_points, fd_points, dk_salary and fd_salary. Weeks one through four of the 2019 season are available. :param weeks: The weeks to load fantasy data for. :return: A DataFrame containing fantasy data for the given weeks. :raises: A ValueError if weeks argument is invalid. """ if weeks is None or len(weeks) == 0: raise ValueError('Weeks argument must not be none or empty') if any(w <= 0 for w in weeks) or any(w > 4 for w in weeks): raise ValueError('Invalid weeks argument. Weeks 1-4 are available') df = pd.DataFrame.from_dict( data={'week': [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4], 'year': [2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020, 2020], 'name': ['Russell Wilson', 'Aaron Rodgers', 'Josh Allen', 'Lamar Jackson', 'Kyler Murray', 'Cam Newton', 'Matt Ryan', 'Mitchell Trubisky', 'Kirk Cousins', 'Tom Brady', 'Ben Roethlisberger', 'Deshaun Watson', 'Gardner Minshew', 'Patrick Mahomes II', 'Teddy Bridgewater', 'Ryan Tannehill', 'Daniel Jones', 'Jimmy Garoppolo', 'Dak Prescott', 'Joe Burrow', 'Matthew Stafford', 'Philip Rivers', 'Carson Wentz', 'Drew Brees', 'Derek Carr', 'Drew Lock', 'Dwayne Haskins', 'Sam Darnold', 'Jared Goff', 'Baker Mayfield', 'Tyrod Taylor', 'Ryan Fitzpatrick', 'Taysom Hill', 'Chris Streveler', 'Robert Griffin III', 'Brian Hoyer', 'Tua Tagovailoa', 'Jacoby Brissett', 'Tim Boyle', 'Josh Jacobs', 'Christian McCaffrey', 'Ezekiel Elliott', 'Malcolm Brown', 'Nyheim Hines', 'Raheem Mostert', 'Chris Carson', 'Dalvin Cook', 'Alvin Kamara', 'Clyde Edwards-Helaire', 'David Johnson', 'Aaron Jones', 'Peyton Barber', 'Derrick Henry', 'J.K. Dobbins', 'Melvin Gordon', 'Kenyan Drake', 'Adrian Peterson', 'Todd Gurley', 'Joshua Kelley', 'Chase Edmonds', 'Jerick McKinnon', 'Jonathan Taylor', 'Benny Snell', 'Zack Moss', 'Kareem Hunt', 'Alexander Mattison', "D'Andre Swift", 'Sony Michel', 'Saquon Barkley', 'James Robinson', 'Ronald Jones', 'Josh Adams', 'Austin Ekeler', 'Myles Gaskin', 'Carlos Hyde', 'David Montgomery', 'Devin Singletary', 'Marlon Mack', 'James White', 'Jordan Howard', 'Devontae Booker', 'Boston Scott', 'Jamaal Williams', 'Tarik Cohen', 'Joe Mixon', "Le'Veon Bell", 'Antonio Gibson', 'Kyle Juszczyk', 'Nick Chubb', 'Tyler Ervin', 'Giovani Bernard', 'Latavius Murray', 'Cam Akers', 'Tony Pollard', 'Phillip Lindsay', 'Darrel Williams', 'J.J. Taylor', 'Cordarrelle Patterson', 'Rex Burkhead', 'Corey Clement', 'Brian Hill', 'Tevin Coleman', 'Mark Ingram', 'James Conner', 'Leonard Fournette', 'Frank Gore', 'Matt Breida', 'Ito Smith', 'Jalen Richard', 'Patrick Laird', 'Wayne Gallman', 'Gus Edwards', 'Royce Freeman', 'Chris Thompson', 'AJ Dillon', 'Kerryon Johnson', 'Duke Johnson', 'Travis Homer', 'Khari Blasingame', 'Jaylen Samuels', 'Bruce Miller', 'LeSean McCoy', 'Darrell Henderson', "D'Ernest Johnson", 'Justin Jackson', 'J.D. McKissic', 'Anthony Sherman', 'Dion Lewis', 'Jason Huntley', 'Alex Armah', 'Darwin Thompson', 'Mike Boone', 'Jeff Wilson Jr.', 'Michael Burton', 'Jakob Johnson', 'Nick Bellore', 'C.J. Ham', 'Jordan Wilkins', 'Mike Davis', 'Ryan Nall', 'D.J. Foster', 'Chandler Cox', 'Elijhaa Penny', 'Ameer Abdullah', 'Senorise Perry', 'Ty Johnson', 'Buddy Howell', 'Derek Watt', 'Keith Smith', 'Taiwan Jones', 'Samaje Perine', 'Andy Janovich', 'Alec Ingold', 'Trenton Cannon', 'Ty Montgomery', 'Patrick Ricard', 'Davante Adams', 'Calvin Ridley', 'Adam Thielen', 'Darius Slayton', 'Robby Anderson', 'DeAndre Hopkins', 'JuJu Smith-Schuster', 'Jamison Crowder', 'Julio Jones', 'Sammy Watkins', 'Marquez Valdes-Scantling', 'D.K. Metcalf', 'Allen Lazard', 'John Brown', 'Russell Gage', 'Anthony Miller', 'Will Fuller', 'Robert Woods', 'Willie Snead', 'Corey Davis', 'Tyler Lockett', 'Keelan Cole', 'Amari Cooper', 'Tyreek Hill', 'Marquise Brown', 'Stefon Diggs', 'Laviska Shenault Jr.', 'Parris Campbell', 'Chris Godwin', 'Danny Amendola', 'Julian Edelman', 'Scott Miller', 'James Washington', 'D.J. Chark', 'Allen Robinson', 'Emmanuel Sanders', 'Mike Williams', 'Nelson Agholor', 'Jarvis Landry', 'Terry McLaurin', 'CeeDee Lamb', 'Henry Ruggs III', 'Cole Beasley', 'Sterling Shepard', 'Adam Humphries', 'A.J. Green', 'Jerry Jeudy', 'Marvin Jones', 'D.J. Moore', 'T.Y. Hilton', 'Olabisi Johnson', 'Curtis Samuel', 'Mike Evans', 'DeVante Parker', 'Diontae Johnson', 'Javon Wims', 'Steven Sims Jr.', 'Michael Gallup', 'A.J. Brown', 'Jalen Reagor', 'Cooper Kupp', 'Quintez Cephus', 'Keenan Allen', 'Chase Claypool', 'DeSean Jackson', 'Greg Ward', 'David Moore', 'Larry Fitzgerald', 'Tyler Boyd', 'Darnell Mooney', 'Miles Boykin', 'Preston Williams', 'Tim Patrick', 'Kendrick Bourne', "N'Keal Harry", 'Jakeem Grant', 'Odell Beckham Jr.', 'Justin Jefferson', 'Van Jefferson', 'Demarcus Robinson', 'Randall Cobb', 'Michael Thomas', 'Breshad Perriman', 'Isaiah McKenzie', 'Hunter Renfrow', 'Dontrelle Inman', 'Deonte Harris', 'Marvin Hall', 'Brandin Cooks', 'Zach Pascal', 'C.J. Board', 'John Ross', 'Mike Thomas', 'Gabriel Davis', 'DaeSean Hamilton', 'Isaiah Ford', 'Freddie Swain', 'Josh Reynolds', 'Jalen Guyton', 'Michael Pittman Jr.', 'Collin Johnson', 'Trent Taylor', 'KhaDarel Hodge', 'Devin Duvernay', 'Bryan Edwards', 'Rashard Higgins', 'DeAndre Carter', 'Tyrie Cleveland', 'Chris Conley', 'Justin Watson', 'Mecole Hardman', 'Seth Roberts', "Tre'Quan Smith", 'Chris Hogan', 'Christian Kirk', 'John Hightower', 'Marcus Kemp', 'Tajae Sharpe', 'Mack Hollins', 'Byron Pringle', 'Ted Ginn Jr.', 'Zay Jones', 'Brandon Zylstra', 'Bennie Fowler', 'Brandon Powell', 'Alex Erickson', 'Malik Turner', 'Damiere Byrd', 'Trent Sherfield', 'K.J. Osborn', 'James Proche', 'Josh Malone', 'Pharoh Cooper', 'Cedrick Wilson', 'Braxton Berrios', 'Tee Higgins', 'JoJo Natson', 'Diontae Spencer', 'Noah Brown', 'Jaydon Mickens', 'Joe Reed', 'Jamal Agnew', 'Auden Tate', 'Cody Hollister', 'Andre Roberts', 'Cam Sims', 'Christian Blake', 'Olamide Zaccheaus', 'Matthew Slater', 'Kalif Raymond', 'JJ Arcega-Whiteside', 'Richie James', 'Andy Isabella', 'Damion Ratley', 'Jakobi Meyers', 'Ray-Ray McCloud', 'Ashton Dulin', 'Nsimba Webster', 'Dante Pettis', 'Kenny Stills', 'Mark Andrews', 'Dallas Goedert', 'Noah Fant', 'T.J. Hockenson', 'Travis Kelce', 'David Njoku', 'Logan Thomas', 'Jonnu Smith', 'O.J. Howard', 'Jordan Akins', 'Jared Cook', 'Greg Olsen', 'Jimmy Graham', 'Hunter Henry', 'Zach Ertz', 'Darren Waller', 'George Kittle', 'MyCole Pruitt', 'C.J. Uzomah', 'Jack Doyle', 'Tyler Higbee', 'Hayden Hurst', 'Chris Herndon', 'Mike Gesicki', 'Kyle Rudolph', 'Dawson Knox', 'Dan Arnold', 'Ryan Izzo', 'Mo Alie-Cox', 'Darren Fells', 'Kaden Smith', 'Ian Thomas', 'Austin Hooper', 'Eric Ebron', 'Jordan Reed', 'Rob Gronkowski', 'Evan Engram', 'Will Dissly', 'Levine Toilolo', 'Blake Jarwin', 'Josiah Deguara', 'Dalton Schultz', 'Irv Smith Jr.', 'Anthony Firkser', 'Virgil Green', 'Jacob Hollister', 'Tyler Eifert', 'Nick Boyle', 'Gerald Everett', 'Drew Sample', 'Harrison Bryant', 'Chris Manhertz', 'Vance McDonald', 'Jason Witten', 'Jake Butt', "James O'Shaughnessy", 'Jeremy Sprinkle', 'Richard Rodgers', 'Jaeden Graham', 'Jesse James', 'Andrew Beck', 'Robert Tonyan', 'Antony Auclair', 'Marcedes Lewis', 'James Winchester', 'Cethan Carter', 'Adam Shaheen', 'Cole Kmet', 'Eric Tomlinson', 'Derek Carrier', 'Demetrius Harris', 'Johnny Mundt', 'Foster Moreau', 'J.P. Holtz', 'Luke Willson', 'Devin Asiasi', 'Ryan Griffin', 'Tyler Kroft', 'Blake Bell', 'Darrell Daniels', 'Stephen Anderson', 'Josh Hill', 'Luke Stocker', 'Daniel Brown', 'Stephen Carlson', 'Jace Sternberger', 'Maxx Williams', 'Durham Smythe', 'Tyler Conklin', 'Cameron Brate', 'Trevon Wesco', 'Ross Dwelley', 'Nick Vannett', 'New Orleans', 'Washington', 'Baltimore', 'New England', 'LA Chargers', 'Buffalo', 'Pittsburgh', 'New York J', 'Kansas City', 'Jacksonville', 'Seattle', 'Arizona', 'Green Bay', 'Denver', 'Dallas', 'San Francisco', 'Miami', 'LA Rams', 'New York G', 'Indianapolis', 'Philadelphia', 'Cincinnati', 'Chicago', 'Tennessee', 'Detroit', 'Las Vegas', 'Tampa Bay', 'Houston', 'Cleveland', 'Carolina', 'Atlanta', 'Minnesota', 'Jeremy McNichols', 'Cordarrelle Patterson', 'Josh Lambo', 'Joey Slye', 'Mason Crosby', 'Matt Prater', 'Daniel Carlson', 'Mike Badgley', 'Wil Lutz', 'Robbie Gould', 'Dustin Hopkins', 'Harrison Butker', 'Randy Bullock', 'Younghoe Koo', 'Jason Myers', 'Tyler Bass', 'Cairo Santos', 'Chris Boswell', 'Justin Tucker', 'Zane Gonzalez', 'Rodrigo Blankenship', 'Sam Sloman', 'Ryan Succop', 'Jake Elliott', 'Greg Zuerlein', 'Sam Ficken', 'Dan Bailey', 'Stephen Gostkowski', 'Jason Sanders', 'Graham Gano', 'Nick Folk', 'Brandon McManus', "Ka'imi Fairbairn", 'Dak Prescott', 'Cam Newton', 'Josh Allen', 'Russell Wilson', 'Kyler Murray', 'Matt Ryan', 'Patrick Mahomes II', 'Ryan Tannehill', 'Gardner Minshew', 'Joe Burrow', 'Ryan Fitzpatrick', 'Jared Goff', 'Justin Herbert', 'Derek Carr', 'Jeff Driskel', 'Ben Roethlisberger', 'Aaron Rodgers', 'Lamar Jackson', 'Matthew Stafford', 'Baker Mayfield', 'Deshaun Watson', 'Drew Brees', 'Mitchell Trubisky', 'Carson Wentz', 'Jimmy Garoppolo', 'Philip Rivers', 'Sam Darnold', 'Dwayne Haskins', 'Teddy Bridgewater', 'Tom Brady', 'Daniel Jones', 'Nick Mullens', 'Kirk Cousins', 'Taysom Hill', 'Chris Streveler', 'Andy Dalton', 'Tim Boyle', 'Drew Lock', 'Aaron Jones', 'Alvin Kamara', 'Nick Chubb', 'Leonard Fournette', 'Kareem Hunt', 'Christian McCaffrey', 'David Montgomery', 'James Robinson', 'Ezekiel Elliott', 'James Conner', 'Darrell Henderson', 'Miles Sanders', 'Chris Carson', 'Jonathan Taylor', 'Raheem Mostert', 'Austin Ekeler', 'Dalvin Cook', 'Melvin Gordon', 'Mark Ingram', 'Jerick McKinnon', 'Dion Lewis', 'Joshua Kelley', 'Josh Jacobs', 'Antonio Gibson', 'Mike Davis', 'Myles Gaskin', 'Joe Mixon', 'Kenyan Drake', 'Chris Thompson', 'Clyde Edwards-Helaire', 'Ronald Jones', "D'Andre Swift", 'Kerryon Johnson', 'Jalen Richard', 'Devin Singletary', 'Derrick Henry', 'Jamaal Williams', 'Alec Ingold', 'Gus Edwards', 'Rex Burkhead', 'Jakob Johnson', 'J.K. Dobbins', 'Patrick Ricard', 'Jordan Howard', 'Frank Gore', 'Todd Gurley', 'David Johnson', 'Boston Scott', 'J.D. McKissic', 'Tevin Coleman', 'Giovani Bernard', 'Malcolm Brown', 'Carlos Hyde', 'LeSean McCoy', 'Matt Breida', 'Latavius Murray', 'Cordarrelle Patterson', 'Adrian Peterson', 'Jordan Wilkins', 'Zack Moss', 'Ty Montgomery', 'Brian Hill', 'Tarik Cohen', 'Chase Edmonds', 'Saquon Barkley', 'Kalen Ballage', 'Darwin Thompson', 'Alexander Mattison', 'Travis Homer', 'Ito Smith', 'Royce Freeman', 'Sony Michel', 'Alex Armah', 'AJ Dillon', "La'Mical Perine", 'Darrel Williams', 'Kyle Juszczyk', 'Tony Pollard', 'Cam Akers', 'Devontae Booker', 'Nyheim Hines', 'Jaylen Samuels', 'Senorise Perry', 'Tyler Ervin', 'Keith Smith', 'Ryan Nall', 'Jeremy McNichols', 'Andy Janovich', 'C.J. Ham', 'Jeff Wilson Jr.', 'Peyton Barber', 'Mike Boone', 'Michael Burton', 'Nick Bellore', 'Bruce Miller', 'Khari Blasingame', 'Cullen Gillaspia', 'D.J. Foster', 'Chandler Cox', 'Elijhaa Penny', 'Ameer Abdullah', 'Ty Johnson', 'Anthony Sherman', 'Patrick Laird', "D'Ernest Johnson", 'Buddy Howell', 'Derek Watt', 'Dare Ogunbowale', "Ke'Shawn Vaughn", 'Josh Adams', 'Taiwan Jones', 'Samaje Perine', 'Corey Clement', 'Trenton Cannon', 'J.J. Taylor', 'Benny Snell', 'Calvin Ridley', 'Stefon Diggs', 'Terry McLaurin', 'Julian Edelman', 'Mike Evans', 'Tyreek Hill', 'Diontae Johnson', 'D.K. Metcalf', 'DeAndre Hopkins', 'Tyler Boyd', 'Chase Claypool', 'Tyler Lockett', 'John Brown', 'D.J. Moore', 'Odell Beckham Jr.', 'Braxton Berrios', 'Keelan Cole', 'CeeDee Lamb', 'DeVante Parker', 'Russell Gage', 'Robby Anderson', 'Adam Humphries', 'Keenan Allen', 'Amari Cooper', 'David Moore', 'Brandin Cooks', "N'Keal Harry", 'Mike Thomas', 'Corey Davis', "Tre'Quan Smith", 'Darnell Mooney', 'Isaiah Ford', 'Chris Hogan', 'Cooper Kupp', 'D.J. Chark', 'Marvin Jones', 'Robert Woods', 'Damiere Byrd', 'Cole Beasley', 'DeSean Jackson', 'Zach Pascal', 'Marvin Hall', 'Kendrick Bourne', 'Laviska Shenault Jr.', 'Freddie Swain', 'Larry Fitzgerald', 'Randall Cobb', 'JuJu Smith-Schuster', 'Jerry Jeudy', 'Courtland Sutton', 'Zay Jones', 'Jalen Guyton', 'Marquez Valdes-Scantling', 'Andy Isabella', 'KJ Hamler', 'Golden Tate', 'Gabriel Davis', 'Christian Kirk', 'Quintez Cephus', 'Chris Conley', 'Michael Gallup', 'Marquise Brown', 'Van Jefferson', 'Mecole Hardman', 'Jarvis Landry', 'Jalen Reagor', 'Allen Lazard', 'Justin Jefferson', 'Miles Boykin', 'Justin Watson', 'Michael Pittman Jr.', 'Isaiah McKenzie', 'Hunter Renfrow', 'Bryan Edwards', 'Davante Adams', 'Preston Williams', 'Tee Higgins', 'KhaDarel Hodge', 'Curtis Samuel', 'Deonte Harris', 'Josh Malone', 'Steven Sims Jr.', 'Darius Slayton', 'Allen Robinson', 'Cameron Batson', 'C.J. Board', 'Adam Thielen', 'Sterling Shepard', 'A.J. Green', 'Demarcus Robinson', 'T.Y. Hilton', 'Josh Reynolds', 'Willie Snead', 'Noah Brown', 'James Washington', 'Julio Jones', 'Tim Patrick', 'Brandon Aiyuk', 'Danny Amendola', 'Olabisi Johnson', 'Javon Wims', 'Dontrelle Inman', 'Kenny Stills', 'Nelson Agholor', 'Devin Duvernay', 'Mike Williams', 'Emmanuel Sanders', 'Scott Miller', 'Breshad Perriman', 'Trent Taylor', 'Sammy Watkins', 'Olamide Zaccheaus', 'Jakobi Meyers', 'Ashton Dulin', 'DaeSean Hamilton', 'Greg Ward', 'Henry Ruggs III', 'Antonio Gandy-Golden', 'Joe Reed', 'Parris Campbell', 'Jakeem Grant', 'Jamal Agnew', 'Lynn Bowden', 'Keke Coutee', 'Marcus Kemp', 'Tajae Sharpe', 'Mack Hollins', 'Byron Pringle', 'Seth Roberts', 'Brandon Zylstra', 'Bennie Fowler', 'Brandon Powell', 'Alex Erickson', 'John Ross', 'Malik Turner', 'John Hightower', 'Trent Sherfield', 'K.J. Osborn', 'James Proche', 'Pharoh Cooper', 'Cedrick Wilson', 'JoJo Natson', 'Will Fuller', 'Diontae Spencer', 'Anthony Miller', 'Jaydon Mickens', 'Rashard Higgins', 'Cyril Grayson', 'Andre Roberts', 'Cam Sims', 'Christian Blake', 'Matthew Slater', 'DeAndre Carter', 'Kalif Raymond', 'JJ Arcega-Whiteside', 'Damion Ratley', 'Ray-Ray McCloud', 'Nsimba Webster', 'Collin Johnson', 'Dante Pettis', 'Tyler Higbee', 'Mike Gesicki', 'Jonnu Smith', 'Darren Waller', 'Jordan Reed', 'Travis Kelce', 'Dalton Schultz', 'Noah Fant', 'Hayden Hurst', 'Mo Alie-Cox', 'C.J. Uzomah', 'Hunter Henry', 'Tyler Eifert', 'Robert Tonyan', 'Evan Engram', 'Darren Fells', 'Jordan Akins', 'Jared Cook', 'T.J. Hockenson', 'Drew Sample', 'Zach Ertz', 'Reggie Gilliam', 'Anthony Firkser', "James O'Shaughnessy", 'Eric Ebron', 'Dallas Goedert', 'Logan Thomas', 'Blake Bell', 'Foster Moreau', 'Dan Arnold', 'Mark Andrews', 'Austin Hooper', 'Ryan Izzo', 'Jimmy Graham', 'Dawson Knox', 'Adam Trautman', 'Josh Hill', 'Harrison Bryant', 'Cole Kmet', 'O.J. Howard', 'Nick Boyle', 'Will Dissly', 'Chris Manhertz', 'Chris Herndon', 'Ross Dwelley', 'Marcedes Lewis', 'Adam Shaheen', 'Kaden Smith', 'Irv Smith Jr.', 'Vance McDonald', 'Jason Witten', 'Marcus Baugh', 'Jeremy Sprinkle', 'Gerald Everett', 'Richard Rodgers', 'Jake Butt', 'Kyle Rudolph', 'Jaeden Graham', 'Jesse James', 'Andrew Beck', 'James Winchester', 'Cethan Carter', 'Greg Olsen', 'Ian Thomas', 'Derek Carrier', 'Demetrius Harris', 'Johnny Mundt', 'Virgil Green', 'J.P. Holtz', 'Luke Willson', 'Devin Asiasi', 'Ryan Griffin', 'MyCole Pruitt', 'Tyler Kroft', 'Darrell Daniels', 'Stephen Anderson', 'Levine Toilolo', 'Nick Vannett', 'Luke Stocker', 'Rob Gronkowski', 'Daniel Brown', 'Stephen Carlson', 'Jace Sternberger', 'Jacob Hollister', 'Durham Smythe', 'Tyler Conklin', 'Cameron Brate', 'Trevon Wesco', 'Baltimore', 'Indianapolis', 'Tampa Bay', 'Pittsburgh', 'Chicago', 'Green Bay', 'Arizona', 'New York G', 'LA Rams', 'New England', 'Denver', 'Kansas City', 'San Francisco', 'Tennessee', 'New Orleans', 'New York J', 'Houston', 'Cleveland', 'Washington', 'Minnesota', 'Carolina', 'Atlanta', 'Seattle', 'LA Chargers', 'Buffalo', 'Las Vegas', 'Miami', 'Philadelphia', 'Jacksonville', 'Cincinnati', 'Detroit', 'Dallas', 'C.J. Prosise', 'Cordarrelle Patterson', 'Mohamed Sanu', 'Tanner Hudson', 'Jordan Thomas', 'Younghoe Koo', 'Justin Tucker', 'Rodrigo Blankenship', 'Zane Gonzalez', 'Harrison Butker', 'Randy Bullock', 'Stephen Gostkowski', "Ka'imi Fairbairn", 'Daniel Carlson', 'Jason Sanders', 'Greg Zuerlein', 'Mason Crosby', 'Mike Badgley', 'Brandon McManus', 'Robbie Gould', 'Sam Ficken', 'Tyler Bass', 'Ryan Succop', 'Jake Elliott', 'Graham Gano', 'Sam Sloman', 'Josh Lambo', 'Wil Lutz', 'Nick Folk', 'Chris Boswell', 'Jason Myers', 'Cairo Santos', 'Cody Parkey', 'Joey Slye', 'Dan Bailey', 'Dustin Hopkins', 'Matt Prater', 'Patrick Mahomes II', 'Russell Wilson', 'Josh Allen', 'Dak Prescott', 'Jared Goff', 'Kyler Murray', 'Ryan Fitzpatrick', 'Aaron Rodgers', 'Tom Brady', 'Drew Brees', 'Carson Wentz', 'Kirk Cousins', 'Joe Burrow', 'Ben Roethlisberger', 'Matthew Stafford', 'Nick Foles', 'Deshaun Watson', 'Nick Mullens', 'Justin Herbert', 'Derek Carr', 'Teddy Bridgewater', 'Baker Mayfield', 'Lamar Jackson', 'Ryan Tannehill', 'Philip Rivers', 'Mitchell Trubisky', 'Matt Ryan', 'Cam Newton', 'Dwayne Haskins', 'Jeff Driskel', 'Gardner Minshew', 'Sam Darnold', 'Daniel Jones', 'Brett Rypien', 'Jalen Hurts', 'Jacoby Brissett', 'Chris Streveler', 'Ryan Finley', 'Taysom Hill', 'Alvin Kamara', 'Rex Burkhead', 'James Robinson', 'Derrick Henry', 'Austin Ekeler', 'Dalvin Cook', 'Nick Chubb', 'James Conner', 'Jeff Wilson Jr.', 'Mike Davis', 'Darrell Henderson', 'Clyde Edwards-Helaire', 'Aaron Jones', 'Jerick McKinnon', 'Sony Michel', 'Ezekiel Elliott', 'Todd Gurley', 'Brian Hill', 'Devin Singletary', 'Kareem Hunt', 'Miles Sanders', 'Jonathan Taylor', 'Myles Gaskin', 'David Johnson', 'Antonio Gibson', 'Chris Carson', 'Adrian Peterson', 'Kenyan Drake', 'Ronald Jones', 'Nyheim Hines', 'Josh Jacobs', 'Kalen Ballage', 'Joe Mixon', 'Giovani Bernard', 'Latavius Murray', 'Anthony Sherman', 'Frank Gore', 'J.D. McKissic', 'J.K. Dobbins', 'David Montgomery', 'Chris Thompson', 'Jordan Howard', 'Melvin Gordon', 'Tarik Cohen', 'Anthony McFarland', 'Jordan Wilkins', 'Royce Freeman', 'Chase Edmonds', 'J.J. Taylor', 'Joshua Kelley', 'Gus Edwards', 'Jalen Richard', 'Kerryon Johnson', 'LeSean McCoy', "La'Mical Perine", 'Leonard Fournette', 'Devontae Booker', 'Mark Ingram', 'Carlos Hyde', 'Alexander Mattison', "D'Andre Swift", 'Wayne Gallman', 'Tyler Ervin', 'JaMycal Hasty', 'Jamaal Williams', 'Malcolm Brown', 'Travis Homer', 'Andy Janovich', 'T.J. Yeldon', 'Darrel Williams', 'Reggie Bonnafon', 'C.J. Ham', 'Alec Ingold', 'Dion Lewis', 'Cordarrelle Patterson', 'Kyle Juszczyk', 'Jakob Johnson', 'Cullen Gillaspia', 'Benny Snell', 'Jeremy McNichols', 'Devonta Freeman', 'Darrynton Evans', 'Keith Smith', 'Corey Clement', 'Peyton Barber', 'Boston Scott', 'Matt Breida', 'Jaylen Samuels', 'C.J. Prosise', 'Mike Boone', 'Dwayne Washington', 'Michael Burton', 'Nick Bellore', 'Bruce Miller', 'Tony Pollard', 'Khari Blasingame', 'Ito Smith', 'Ryan Nall', 'AJ Dillon', 'Chandler Cox', 'Elijhaa Penny', 'Ameer Abdullah', 'Patrick Laird', "D'Ernest Johnson", 'Buddy Howell', 'Qadree Ollison', 'Derek Watt', 'Dare Ogunbowale', 'Alex Armah', 'Taiwan Jones', 'Samaje Perine', 'Patrick Ricard', 'Raymond Calais', 'Darwin Thompson', 'Tyler Lockett', 'Justin Jefferson', 'Cedrick Wilson', 'Keenan Allen', 'Allen Lazard', 'Allen Robinson', 'Michael Gallup', 'Cooper Kupp', 'Robert Woods', 'DeAndre Hopkins', 'Tyreek Hill', 'Brandon Aiyuk', 'Tee Higgins', 'Andy Isabella', 'Tyler Boyd', 'Randall Cobb', 'Hunter Renfrow', 'Dontrelle Inman', 'D.K. Metcalf', 'Greg Ward', 'Mecole Hardman', 'Chris Godwin', 'Kenny Golladay', 'Braxton Berrios', 'JuJu Smith-Schuster', 'Calvin Ridley', 'Emmanuel Sanders', 'Will Fuller', 'Mike Evans', 'Amari Cooper', 'Cole Beasley', 'Kalif Raymond', 'Stefon Diggs', 'Tim Patrick', 'Anthony Miller', 'Adam Thielen', 'Terry McLaurin', 'Gabriel Davis', 'Scott Miller', 'Sammy Watkins', 'Corey Davis', 'DeVante Parker', 'CeeDee Lamb', 'Kendrick Bourne', 'Robby Anderson', 'Jerry Jeudy', 'Odell Beckham Jr.', 'Devin Duvernay', 'Preston Williams', 'D.J. Moore', 'Curtis Samuel', 'T.Y. Hilton', 'Marvin Jones', 'Keelan Cole', "Tre'Quan Smith", 'Golden Tate', 'A.J. Green', 'Adam Humphries', 'James Washington', 'Olamide Zaccheaus', 'Josh Reynolds', 'Laviska Shenault Jr.', 'Bryan Edwards', 'Jarvis Landry', 'Jakeem Grant', 'Isaiah Wright', 'Kenny Stills', 'Chris Conley', 'Darius Slayton', 'Zay Jones', "N'Keal Harry", 'Lawrence Cager', 'Zach Pascal', 'KJ Hamler', 'Brandon Powell', 'Damiere Byrd', 'Nelson Agholor', 'Michael Pittman Jr.', 'Auden Tate', 'Brandin Cooks', 'Russell Gage', 'Ted Ginn Jr.', 'KeeSean Johnson', 'Deontay Burnett', 'Damion Ratley', 'Jalen Guyton', 'Daurice Fountain', 'Julian Edelman', 'Jamal Agnew', 'John Hightower', 'Chase Claypool', 'Darnell Mooney', 'Seth Roberts', 'Trent Taylor', 'Isaiah Ford', 'Marquise Brown', 'Danny Amendola', 'Antonio Gandy-Golden', 'Mike Williams', 'DeSean Jackson', 'K.J. Hill', 'Mike Thomas', 'Freddie Swain', 'Isaiah McKenzie', 'Deonte Harris', 'C.J. Board', 'Noah Brown', 'Mohamed Sanu', 'Willie Snead', 'Miles Boykin', 'Isaiah Zuber', 'Diontae Spencer', 'Chad Beebe', 'Marquez Valdes-Scantling', 'Dede Westbrook', 'Diontae Johnson', 'Collin Johnson', 'David Moore', 'Larry Fitzgerald', 'JoJo Natson', 'Marcus Kemp', 'Cameron Batson', 'Tyrie Cleveland', 'Mack Hollins', 'Byron Pringle', 'DaeSean Hamilton', 'Chris Hogan', 'Brandon Zylstra', 'Alex Erickson', 'Malik Turner', 'Trent Sherfield', 'James Proche', 'Josh Malone', 'Pharoh Cooper', 'Demarcus Robinson', 'Jaydon Mickens', 'Joe Reed', 'Olabisi Johnson', 'John Brown', 'Tyler Johnson', 'Steven Sims Jr.', 'Javon Wims', 'KhaDarel Hodge', 'Andre Roberts', 'Cam Sims', 'Rico Gafford', 'Christian Blake', 'Nick Westbrook', 'Matthew Slater', 'DeAndre Carter', 'JJ Arcega-Whiteside', 'Jakobi Meyers', 'Ray-Ray McCloud', 'Ashton Dulin', 'Nsimba Webster', 'Van Jefferson', 'Dante Pettis', 'Marvin Hall', 'Quintez Cephus', 'Jimmy Graham', 'Tyler Kroft', 'Eric Ebron', 'Robert Tonyan', 'Mo Alie-Cox', 'Travis Kelce', 'Zach Ertz', 'Jesse James', 'Foster Moreau', 'Jonnu Smith', 'Greg Olsen', 'Jacob Hollister', 'Marcedes Lewis', 'Kyle Rudolph', 'Mike Gesicki', 'Rob Gronkowski', 'Hunter Henry', 'T.J. Hockenson', 'Noah Fant', 'Tyler Higbee', 'Nick Boyle', 'Ross Dwelley', 'Dalton Schultz', 'Harrison Bryant', 'Lee Smith', 'Hayden Hurst', 'O.J. Howard', 'Logan Thomas', 'Jace Sternberger', 'Vance McDonald', 'Gerald Everett', "James O'Shaughnessy", 'Austin Hooper', 'Jordan Akins', 'Evan Engram', 'Mark Andrews', 'Chris Herndon', 'Darrell Daniels', 'Jordan Reed', 'Jared Cook', 'Demetrius Harris', 'Adam Trautman', 'MyCole Pruitt', 'Richard Rodgers', 'Tyler Eifert', 'Darren Waller', 'Kaden Smith', 'Dan Arnold', 'Will Dissly', 'Ian Thomas', 'Dallas Goedert', 'Durham Smythe', 'Luke Stocker', 'Jake Butt', 'Cethan Carter', 'Drew Sample', 'Tanner Hudson', 'Jeremy Sprinkle', 'Anthony Firkser', 'Jack Doyle', 'Chris Manhertz', 'Jaeden Graham', 'Darren Fells', 'Ryan Izzo', 'Andrew Beck', 'Noah Togiai', 'James Winchester', 'Adam Shaheen', 'Cole Kmet', 'Pharaoh Brown', 'Derek Carrier', 'Johnny Mundt', 'Virgil Green', 'J.P. Holtz', 'Jordan Thomas', 'Irv Smith Jr.', 'Devin Asiasi', 'Ryan Griffin', 'Blake Bell', 'Deon Yelder', 'Reggie Gilliam', 'Stephen Anderson', 'Levine Toilolo', 'Josh Hill', 'Daniel Brown', 'Stephen Carlson', 'Tyler Conklin', 'Jason Witten', 'Cameron Brate', 'Trevon Wesco', 'Marcus Baugh', 'Indianapolis', 'Tampa Bay', 'New England', 'Cleveland', 'San Francisco', 'Miami', 'Carolina', 'Seattle', 'Philadelphia', 'Cincinnati', 'Detroit', 'Kansas City', 'Pittsburgh', 'Baltimore', 'Tennessee', 'Buffalo', 'Atlanta', 'Denver', 'Chicago', 'Arizona', 'LA Rams', 'LA Chargers', 'Las Vegas', 'Green Bay', 'Dallas', 'Minnesota', 'Houston', 'Washington', 'Jacksonville', 'New York J', 'New York G', 'New Orleans', 'Kenjon Barner', 'Cordarrelle Patterson', 'Bennie Fowler', 'Johnny Holton', 'Darrius Shepherd', 'Stephen Gostkowski', 'Mason Crosby', 'Joey Slye', 'Jake Elliott', 'Robbie Gould', 'Matt Prater', 'Wil Lutz', 'Graham Gano', 'Nick Folk', 'Rodrigo Blankenship', 'Randy Bullock', 'Cody Parkey', 'Ryan Succop', 'Greg Zuerlein', 'Justin Tucker', 'Younghoe Koo', 'Chris Boswell', 'Daniel Carlson', 'Dan Bailey', 'Zane Gonzalez', 'Jason Sanders', 'Brandon McManus', 'Cairo Santos', 'Sam Sloman', 'Tyler Bass', 'Mike Badgley', 'Jason Myers', 'Harrison Butker', "Ka'imi Fairbairn", 'Dustin Hopkins', 'Sam Ficken', 'Brandon Wright', 'Dak Prescott', 'Tom Brady', 'Aaron Rodgers', 'Teddy Bridgewater', 'Lamar Jackson', 'Josh Allen', 'Justin Herbert', 'Sam Darnold', 'Matthew Stafford', 'Ryan Fitzpatrick', 'Kyler Murray', 'Carson Wentz', 'Gardner Minshew', 'Russell Wilson', 'Deshaun Watson', 'Derek Carr', 'Patrick Mahomes II', 'Dwayne Haskins', 'Drew Brees', 'Joe Burrow', 'Baker Mayfield', 'Kirk Cousins', 'Brett Rypien', 'Nick Foles', 'Matt Ryan', 'Jared Goff', 'Philip Rivers', 'Daniel Jones', 'Nick Mullens', 'C.J. Beathard', 'Jarrett Stidham', 'Brian Hoyer', 'Taysom Hill', 'Jalen Hurts', 'Jeff Driskel', 'Joe Flacco', 'Chase Daniel', 'Tim Boyle', 'Robert Griffin III', 'Joe Mixon', 'Dalvin Cook', 'Melvin Gordon', 'Chris Carson', 'Antonio Gibson', 'Latavius Murray', 'Aaron Jones', 'Mike Davis', 'Alvin Kamara', 'Jerick McKinnon', 'Kareem Hunt', 'Todd Gurley', 'Ezekiel Elliott', 'Devin Singletary', 'Ronald Jones', 'Jamaal Williams', 'Reggie Bonnafon', "D'Andre Swift", 'James Robinson', 'Chase Edmonds', 'Clyde Edwards-Helaire', 'David Johnson', 'Mark Ingram', 'Damien Harris', 'Tony Pollard', 'Adrian Peterson', "Ke'Shawn Vaughn", "D'Ernest Johnson", 'James White', 'David Montgomery', 'Josh Jacobs', 'Devonta Freeman', 'Miles Sanders', 'Jonathan Taylor', 'Malcolm Brown', 'Alexander Mattison', 'Myles Gaskin', 'Travis Homer', 'Matt Breida', 'J.D. McKissic', 'Duke Johnson', 'Rex Burkhead', 'Nyheim Hines', 'Wayne Gallman', 'Nick Chubb', 'Darrell Henderson', 'Ito Smith', 'Frank Gore', 'Gus Edwards', 'Alec Ingold', 'Jordan Wilkins', 'Kenyan Drake', 'DeeJay Dallas', 'Brian Hill', 'Justin Jackson', 'Joshua Kelley', 'Dion Lewis', 'Jalen Richard', 'Dontrell Hilliard', 'Jeff Wilson Jr.', 'J.K. Dobbins', 'Royce Freeman', 'Kalen Ballage', 'Giovani Bernard', 'Austin Ekeler', 'Kyle Juszczyk', 'Kerryon Johnson', "La'Mical Perine", 'Gabe Nabers', 'Theo Riddick', 'Tyler Ervin', 'Michael Burton', 'LeSean McCoy', 'Cordarrelle Patterson', 'Keith Smith', 'Chandler Cox', 'Peyton Barber', 'Jordan Howard', 'AJ Dillon', 'Corey Clement', 'C.J. Ham', 'Darrel Williams', 'Alex Armah', 'Boston Scott', 'Darwin Thompson', 'Chris Thompson', 'Mike Boone', 'Dwayne Washington', 'Justice Hill', 'Jakob Johnson', 'Nick Bellore', 'Bruce Miller', 'Ryan Nall', 'Elijhaa Penny', 'Ameer Abdullah', 'Kenjon Barner', 'Anthony Sherman', 'Patrick Laird', 'Buddy Howell', 'Devontae Booker', 'Dare Ogunbowale', 'Taiwan Jones', 'C.J. Prosise', 'Samaje Perine', 'Patrick Ricard', 'Andy Janovich', 'T.J. Yeldon', 'JaMycal Hasty', 'Raymond Calais', 'Adrian Killins', 'Odell Beckham Jr.', 'Amari Cooper', 'D.J. Chark', 'CeeDee Lamb', 'Adam Thielen', 'Mike Evans', 'Tim Patrick', 'Will Fuller', 'Allen Robinson', "Tre'Quan Smith", 'David Moore', 'Scott Miller', 'Terry McLaurin', 'DeVante Parker', 'Cooper Kupp', 'Stefon Diggs', 'Tyreek Hill', 'Kenny Golladay', 'Robby Anderson', 'Jamison Crowder', 'Jalen Guyton', 'Jerry Jeudy', 'Tyler Boyd', 'Jarvis Landry', 'Travis Fulgham', 'D.K. Metcalf', 'Brandon Aiyuk', 'Olamide Zaccheaus', 'Nelson Agholor', 'Emmanuel Sanders', 'Justin Jefferson', 'Tyron Johnson', 'Laviska Shenault Jr.', 'Jeff Smith', 'Tee Higgins', 'Kenny Stills', 'Cole Beasley', 'Mecole Hardman', 'Marquise Brown', 'Damiere Byrd', 'Keenan Allen', "N'Keal Harry", 'Christian Kirk', 'Gabriel Davis', 'Hunter Renfrow', 'DeAndre Hopkins', 'Darnell Mooney', 'Zach Pascal', 'D.J. Moore', 'Isaiah Ford', 'Danny Amendola', 'Robert Woods', 'Keelan Cole', 'Marquez Valdes-Scantling', 'Noah Brown', 'Darius Slayton', 'Curtis Samuel', 'John Brown', 'Christian Blake', 'Deebo Samuel', 'Justin Watson', 'Chris Conley', 'Greg Ward', 'Zay Jones', 'Julio Jones', 'Jakeem Grant', 'Julian Edelman', 'Isaiah Wright', 'Tyler Lockett', 'Cedrick Wilson', 'Dontrelle Inman', 'Damion Ratley', 'Kendrick Bourne', 'Randall Cobb', 'T.Y. Hilton', 'Sammy Watkins', 'Chris Hogan', 'Freddie Swain', 'Golden Tate', 'Josh Reynolds', 'Preston Williams', 'Michael Gallup', 'Miles Boykin', 'Isaiah McKenzie', 'John Hightower', 'Marcus Johnson', 'Anthony Miller', 'Darrius Shepherd', 'Russell Gage', 'Willie Snead', 'Cam Sims', 'Malik Taylor', 'Deonte Harris', 'Ted Ginn Jr.', 'Alex Erickson', 'Marquez Callaway', 'Auden Tate', 'Gunner Olszewski', 'Seth Roberts', 'DaeSean Hamilton', 'Marvin Jones', 'Larry Fitzgerald', 'Andy Isabella', 'Mike Thomas', 'Devin Duvernay', 'Jamal Agnew', 'A.J. Green', 'Andre Roberts', 'Isaiah Zuber', 'Lynn Bowden', 'C.J. Board', 'Marcus Kemp', 'Tyrie Cleveland', 'Mack Hollins', 'Byron Pringle', 'KJ Hamler', 'Brandon Zylstra', 'Bennie Fowler', 'Brandon Powell', 'Calvin Ridley', 'Malik Turner', 'Antonio Gandy-Golden', 'Trent Sherfield', 'K.J. Osborn', 'James Proche', 'Josh Malone', 'Pharoh Cooper', 'Donovan Peoples-Jones', 'Braxton Berrios', 'K.J. Hill', 'Demarcus Robinson', 'Diontae Spencer', 'Jason Moore', 'Jaydon Mickens', 'Olabisi Johnson', 'Tyler Johnson', 'Javon Wims', 'Brandin Cooks', 'Mohamed Sanu', 'Trent Taylor', 'Lawrence Cager', 'Daurice Fountain', 'Deontay Burnett', 'Matthew Slater', 'Ashton Dulin', 'Nsimba Webster', 'Van Jefferson', 'Collin Johnson', 'Chad Beebe', 'Dante Pettis', 'Marvin Hall', 'Quintez Cephus', 'DeAndre Carter', 'George Kittle', 'Robert Tonyan', 'Mark Andrews', 'Dalton Schultz', 'O.J. Howard', 'Austin Hooper', 'Darren Waller', 'T.J. Hockenson', 'Jason Witten', 'Travis Kelce', 'Donald Parham', 'Mo Alie-Cox', 'Ian Thomas', 'Hayden Hurst', 'Jordan Thomas', 'Cameron Brate', 'Evan Engram', 'Drew Sample', 'Jordan Akins', 'Greg Olsen', 'Noah Fant', 'Dan Arnold', 'Gerald Everett', 'Harrison Bryant', 'Jimmy Graham', 'Richard Rodgers', 'Hunter Henry', 'Zach Ertz', 'Durham Smythe', 'Kyle Rudolph', 'Tyler Higbee', 'Jesse James', 'Blake Bell', 'Rob Gronkowski', 'Tyler Eifert', 'Darren Fells', "James O'Shaughnessy", 'Cethan Carter', 'Trey Burton', 'Dawson Knox', 'Ryan Griffin', 'Will Dissly', 'Chris Manhertz', 'Mike Gesicki', 'Stephen Carlson', 'Jack Doyle', 'Tyler Kroft', 'Chris Herndon', 'Kaden Smith', 'Nick Boyle', 'Logan Thomas', 'Foster Moreau', 'Nick Vannett', 'Josh Hill', 'Demetrius Harris', 'Johnny Mundt', 'Deon Yelder', 'Tanner Hudson', 'Jeremy Sprinkle', 'Jake Butt', 'Jaeden Graham', 'Ryan Izzo', 'Andrew Beck', 'Josiah Deguara', 'James Winchester', 'Adam Shaheen', 'Cole Kmet', 'Pharaoh Brown', 'Derek Carrier', 'Adam Trautman', 'Virgil Green', 'J.P. Holtz', 'Irv Smith Jr.', 'Luke Willson', 'Devin Asiasi', 'Darrell Daniels', 'Reggie Gilliam', 'Stephen Anderson', 'Levine Toilolo', 'Luke Stocker', 'Daniel Brown', 'Jace Sternberger', 'Jacob Hollister', 'Nick Keizer', 'Tyler Conklin', 'Trevon Wesco', 'Marcus Baugh', 'Ross Dwelley', 'Kansas City', 'Philadelphia', 'LA Rams', 'New York J', 'Indianapolis', 'Denver', 'Buffalo', 'Tampa Bay', 'San Francisco', 'Baltimore', 'Cincinnati', 'Cleveland', 'Seattle', 'Green Bay', 'Minnesota', 'New York G', 'New Orleans', 'Washington', 'New England', 'LA Chargers', 'Carolina', 'Miami', 'Jacksonville', 'Houston', 'Chicago', 'Arizona', 'Las Vegas', 'Detroit', 'Atlanta', 'Dallas', 'Cordarrelle Patterson', 'Keelan Doss', 'Brandon McManus', 'Jason Sanders', 'Sam Ficken', 'Randy Bullock', 'Aldrick Rosas', 'Rodrigo Blankenship', "Ka'imi Fairbairn", 'Daniel Carlson', 'Cody Parkey', 'Jason Myers', 'Graham Gano', 'Mike Badgley', 'Ryan Succop', 'Harrison Butker', 'Justin Tucker', 'Dan Bailey', 'Joey Slye', 'Mason Crosby', 'Tyler Bass', 'Dustin Hopkins', 'Wil Lutz', 'Nick Folk', 'Jake Elliott', 'Sam Sloman', 'Elliott Fry', 'Zane Gonzalez', 'Cairo Santos', 'Matt Prater', 'Robbie Gould', 'Greg Zuerlein'], 'position': ['QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'RB', 'WR', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'RB', 'WR', 'WR', 'TE', 'TE', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'RB', 'WR', 'WR', 'WR', 'WR', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'QB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'RB', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'WR', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'TE', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'DST', 'WR', 'WR', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK', 'PK'], 'team': ['SEA', 'GB', 'BUF', 'BAL', 'ARI', 'NE', 'ATL', 'CHI', 'MIN', 'TB', 'PIT', 'HOU', 'JAC', 'KC', 'CAR', 'TEN', 'NYG', 'SF', 'DAL', 'CIN', 'DET', 'IND', 'PHI', 'NO', 'LV', 'DEN', 'WAS', 'NYJ', 'LAR', 'CLE', 'LAC', 'MIA', 'NO', 'ARI', 'BAL', 'NE', 'MIA', 'IND', 'GB', 'LV', 'CAR', 'DAL', 'LAR', 'IND', 'SF', 'SEA', 'MIN', 'NO', 'KC', 'HOU', 'GB', 'WAS', 'TEN', 'BAL', 'DEN', 'ARI', 'DET', 'ATL', 'LAC', 'ARI', 'SF', 'IND', 'PIT', 'BUF', 'CLE', 'MIN', 'DET', 'NE', 'NYG', 'JAC', 'TB', 'NYJ', 'LAC', 'MIA', 'SEA', 'CHI', 'BUF', 'IND', 'NE', 'MIA', 'LV', 'PHI', 'GB', 'CHI', 'CIN', 'NYJ', 'WAS', 'SF', 'CLE', 'GB', 'CIN', 'NO', 'LAR', 'DAL', 'DEN', 'KC', 'NE', 'CHI', 'NE', 'PHI', 'ATL', 'SF', 'BAL', 'PIT', 'TB', 'NYJ', 'MIA', 'ATL', 'LV', 'MIA', 'NYG', 'BAL', 'DEN', 'JAC', 'GB', 'DET', 'HOU', 'SEA', 'TEN', 'PIT', 'JAC', 'TB', 'LAR', 'CLE', 'LAC', 'WAS', 'KC', 'NYG', 'PHI', 'CAR', 'KC', 'MIN', 'SF', 'NO', 'NE', 'SEA', 'MIN', 'IND', 'CAR', 'CHI', 'ARI', 'MIA', 'NYG', 'MIN', 'TEN', 'DET', 'HOU', 'PIT', 'ATL', 'BUF', 'CIN', 'CLE', 'LV', 'CAR', 'NO', 'BAL', 'GB', 'ATL', 'MIN', 'NYG', 'CAR', 'ARI', 'PIT', 'NYJ', 'ATL', 'KC', 'GB', 'SEA', 'GB', 'BUF', 'ATL', 'CHI', 'HOU', 'LAR', 'BAL', 'TEN', 'SEA', 'JAC', 'DAL', 'KC', 'BAL', 'BUF', 'JAC', 'IND', 'TB', 'DET', 'NE', 'TB', 'PIT', 'JAC', 'CHI', 'NO', 'LAC', 'LV', 'CLE', 'WAS', 'DAL', 'LV', 'BUF', 'NYG', 'TEN', 'CIN', 'DEN', 'DET', 'CAR', 'IND', 'MIN', 'CAR', 'TB', 'MIA', 'PIT', 'CHI', 'WAS', 'DAL', 'TEN', 'PHI', 'LAR', 'DET', 'LAC', 'PIT', 'PHI', 'PHI', 'SEA', 'ARI', 'CIN', 'CHI', 'BAL', 'MIA', 'DEN', 'SF', 'NE', 'MIA', 'CLE', 'MIN', 'LAR', 'KC', 'HOU', 'NO', 'NYJ', 'BUF', 'LV', 'WAS', 'NO', 'DET', 'HOU', 'IND', 'NYG', 'CIN', 'CIN', 'BUF', 'DEN', 'NE', 'SEA', 'LAR', 'LAC', 'IND', 'JAC', 'SF', 'CLE', 'BAL', 'LV', 'CLE', 'HOU', 'DEN', 'JAC', 'TB', 'KC', 'CAR', 'NO', 'NYJ', 'ARI', 'PHI', 'KC', 'MIN', 'MIA', 'KC', 'CHI', 'LV', 'CAR', 'NO', 'ATL', 'CIN', 'DAL', 'NE', 'ARI', 'MIN', 'BAL', 'NYJ', 'CAR', 'DAL', 'NYJ', 'CIN', 'CLE', 'DEN', 'DAL', 'TB', 'LAC', 'DET', 'CIN', 'TEN', 'BUF', 'WAS', 'ATL', 'ATL', 'NE', 'TEN', 'PHI', 'SF', 'ARI', 'NYG', 'NE', 'PIT', 'IND', 'LAR', 'NYG', 'HOU', 'BAL', 'PHI', 'DEN', 'DET', 'KC', 'CLE', 'WAS', 'TEN', 'TB', 'HOU', 'NO', 'SEA', 'CHI', 'LAC', 'PHI', 'LV', 'SF', 'TEN', 'CIN', 'IND', 'LAR', 'ATL', 'NYJ', 'MIA', 'MIN', 'BUF', 'ARI', 'NE', 'IND', 'HOU', 'NYG', 'CAR', 'CLE', 'PIT', 'SF', 'TB', 'NYG', 'SEA', 'NYG', 'DAL', 'GB', 'DAL', 'MIN', 'TEN', 'LAC', 'SEA', 'JAC', 'BAL', 'LAR', 'CIN', 'CLE', 'CAR', 'PIT', 'LV', 'DEN', 'JAC', 'WAS', 'PHI', 'ATL', 'DET', 'DEN', 'GB', 'TB', 'GB', 'KC', 'CIN', 'MIA', 'CHI', 'NYG', 'LV', 'CHI', 'LAR', 'LV', 'CHI', 'SEA', 'NE', 'NYJ', 'BUF', 'DAL', 'ARI', 'LAC', 'NO', 'ATL', 'NYJ', 'CLE', 'GB', 'ARI', 'MIA', 'MIN', 'TB', 'NYJ', 'SF', 'DEN', 'NO', 'WAS', 'BAL', 'NE', 'LAC', 'BUF', 'PIT', 'NYJ', 'KC', 'JAC', 'SEA', 'ARI', 'GB', 'DEN', 'DAL', 'SF', 'MIA', 'LAR', 'NYG', 'IND', 'PHI', 'CIN', 'CHI', 'TEN', 'DET', 'LV', 'TB', 'HOU', 'CLE', 'CAR', 'ATL', 'MIN', 'TEN', 'CHI', 'JAC', 'CAR', 'GB', 'DET', 'LV', 'LAC', 'NO', 'SF', 'WAS', 'KC', 'CIN', 'ATL', 'SEA', 'BUF', 'CHI', 'PIT', 'BAL', 'ARI', 'IND', 'LAR', 'TB', 'PHI', 'DAL', 'NYJ', 'MIN', 'TEN', 'MIA', 'NYG', 'NE', 'DEN', 'HOU', 'DAL', 'NE', 'BUF', 'SEA', 'ARI', 'ATL', 'KC', 'TEN', 'JAC', 'CIN', 'MIA', 'LAR', 'LAC', 'LV', 'DEN', 'PIT', 'GB', 'BAL', 'DET', 'CLE', 'HOU', 'NO', 'CHI', 'PHI', 'SF', 'IND', 'NYJ', 'WAS', 'CAR', 'TB', 'NYG', 'SF', 'MIN', 'NO', 'ARI', 'DAL', 'GB', 'DEN', 'GB', 'NO', 'CLE', 'TB', 'CLE', 'CAR', 'CHI', 'JAC', 'DAL', 'PIT', 'LAR', 'PHI', 'SEA', 'IND', 'SF', 'LAC', 'MIN', 'DEN', 'BAL', 'SF', 'NYG', 'LAC', 'LV', 'WAS', 'CAR', 'MIA', 'CIN', 'ARI', 'JAC', 'KC', 'TB', 'DET', 'DET', 'LV', 'BUF', 'TEN', 'GB', 'LV', 'BAL', 'NE', 'NE', 'BAL', 'BAL', 'MIA', 'NYJ', 'ATL', 'HOU', 'PHI', 'WAS', 'SF', 'CIN', 'LAR', 'SEA', 'TB', 'MIA', 'NO', 'CHI', 'DET', 'IND', 'BUF', 'NO', 'ATL', 'CHI', 'ARI', 'NYG', 'NYJ', 'KC', 'MIN', 'SEA', 'ATL', 'DEN', 'NE', 'CAR', 'GB', 'NYJ', 'KC', 'SF', 'DAL', 'LAR', 'LV', 'IND', 'PIT', 'TEN', 'GB', 'ATL', 'CHI', 'TEN', 'CLE', 'MIN', 'SF', 'WAS', 'MIN', 'NO', 'SEA', 'JAC', 'TEN', 'HOU', 'ARI', 'MIA', 'NYG', 'MIN', 'DET', 'KC', 'MIA', 'CLE', 'HOU', 'PIT', 'JAC', 'TB', 'NYJ', 'BUF', 'CIN', 'PHI', 'CAR', 'NE', 'PIT', 'ATL', 'BUF', 'WAS', 'NE', 'TB', 'KC', 'PIT', 'SEA', 'ARI', 'CIN', 'PIT', 'SEA', 'BUF', 'CAR', 'CLE', 'NYJ', 'JAC', 'DAL', 'MIA', 'ATL', 'CAR', 'TEN', 'LAC', 'DAL', 'SEA', 'HOU', 'NE', 'CIN', 'TEN', 'NO', 'CHI', 'NE', 'NYJ', 'LAR', 'JAC', 'DET', 'LAR', 'NE', 'BUF', 'PHI', 'IND', 'DET', 'SF', 'JAC', 'SEA', 'ARI', 'HOU', 'PIT', 'DEN', 'DEN', 'LV', 'LAC', 'GB', 'ARI', 'DEN', 'NYG', 'BUF', 'ARI', 'DET', 'JAC', 'DAL', 'BAL', 'LAR', 'KC', 'CLE', 'PHI', 'GB', 'MIN', 'BAL', 'TB', 'IND', 'BUF', 'LV', 'LV', 'GB', 'MIA', 'CIN', 'CLE', 'CAR', 'NO', 'NYJ', 'WAS', 'NYG', 'CHI', 'TEN', 'NYG', 'MIN', 'NYG', 'CIN', 'KC', 'IND', 'LAR', 'BAL', 'DAL', 'PIT', 'ATL', 'DEN', 'SF', 'DET', 'MIN', 'CHI', 'WAS', 'HOU', 'LV', 'BAL', 'LAC', 'NO', 'TB', 'NYJ', 'SF', 'KC', 'ATL', 'NE', 'IND', 'DEN', 'PHI', 'LV', 'WAS', 'LAC', 'IND', 'MIA', 'DET', 'MIA', 'HOU', 'KC', 'MIN', 'MIA', 'KC', 'CAR', 'CAR', 'NO', 'ATL', 'CIN', 'CIN', 'DAL', 'PHI', 'ARI', 'MIN', 'BAL', 'CAR', 'DAL', 'CLE', 'HOU', 'DEN', 'CHI', 'TB', 'CLE', 'TB', 'BUF', 'WAS', 'ATL', 'NE', 'HOU', 'TEN', 'PHI', 'NYG', 'PIT', 'LAR', 'JAC', 'NYG', 'LAR', 'MIA', 'TEN', 'LV', 'SF', 'KC', 'DAL', 'DEN', 'ATL', 'IND', 'CIN', 'LAC', 'JAC', 'GB', 'NYG', 'HOU', 'HOU', 'NO', 'DET', 'CIN', 'PHI', 'BUF', 'TEN', 'JAC', 'PIT', 'PHI', 'WAS', 'DAL', 'LV', 'ARI', 'BAL', 'CLE', 'NE', 'CHI', 'BUF', 'NO', 'NO', 'CLE', 'CHI', 'TB', 'BAL', 'SEA', 'CAR', 'NYJ', 'SF', 'GB', 'MIA', 'NYG', 'MIN', 'PIT', 'LV', 'WAS', 'WAS', 'LAR', 'PHI', 'DEN', 'MIN', 'ATL', 'DET', 'DEN', 'KC', 'CIN', 'SEA', 'CAR', 'LV', 'CHI', 'LAR', 'LAC', 'CHI', 'SEA', 'NE', 'NYJ', 'TEN', 'BUF', 'ARI', 'LAC', 'NYG', 'DEN', 'ATL', 'TB', 'NYJ', 'CLE', 'GB', 'SEA', 'MIA', 'MIN', 'TB', 'NYJ', 'BAL', 'IND', 'TB', 'PIT', 'CHI', 'GB', 'ARI', 'NYG', 'LAR', 'NE', 'DEN', 'KC', 'SF', 'TEN', 'NO', 'NYJ', 'HOU', 'CLE', 'WAS', 'MIN', 'CAR', 'ATL', 'SEA', 'LAC', 'BUF', 'LV', 'MIA', 'PHI', 'JAC', 'CIN', 'DET', 'DAL', 'HOU', 'CHI', 'SF', 'TB', 'ARI', 'ATL', 'BAL', 'IND', 'ARI', 'KC', 'CIN', 'TEN', 'HOU', 'LV', 'MIA', 'DAL', 'GB', 'LAC', 'DEN', 'SF', 'NYJ', 'BUF', 'TB', 'PHI', 'NYG', 'LAR', 'JAC', 'NO', 'NE', 'PIT', 'SEA', 'CHI', 'CLE', 'CAR', 'MIN', 'WAS', 'DET', 'KC', 'SEA', 'BUF', 'DAL', 'LAR', 'ARI', 'MIA', 'GB', 'TB', 'NO', 'PHI', 'MIN', 'CIN', 'PIT', 'DET', 'CHI', 'HOU', 'SF', 'LAC', 'LV', 'CAR', 'CLE', 'BAL', 'TEN', 'IND', 'CHI', 'ATL', 'NE', 'WAS', 'DEN', 'JAC', 'NYJ', 'NYG', 'DEN', 'PHI', 'IND', 'ARI', 'CIN', 'NO', 'NO', 'NE', 'JAC', 'TEN', 'LAC', 'MIN', 'CLE', 'PIT', 'SF', 'CAR', 'LAR', 'KC', 'GB', 'SF', 'NE', 'DAL', 'ATL', 'ATL', 'BUF', 'CLE', 'PHI', 'IND', 'MIA', 'HOU', 'WAS', 'SEA', 'DET', 'ARI', 'TB', 'IND', 'LV', 'NYJ', 'CIN', 'CIN', 'NO', 'KC', 'NYJ', 'WAS', 'BAL', 'CHI', 'JAC', 'MIA', 'DEN', 'CHI', 'PIT', 'IND', 'DEN', 'ARI', 'NE', 'LAC', 'BAL', 'LV', 'DET', 'TB', 'NYJ', 'TB', 'LV', 'BAL', 'SEA', 'MIN', 'DET', 'NYG', 'GB', 'SF', 'GB', 'LAR', 'SEA', 'CLE', 'BUF', 'KC', 'CAR', 'MIN', 'LV', 'NYG', 'CHI', 'SF', 'NE', 'HOU', 'PIT', 'TEN', 'NYG', 'TEN', 'ATL', 'PHI', 'WAS', 'PHI', 'MIA', 'PIT', 'HOU', 'MIN', 'NO', 'NO', 'SEA', 'JAC', 'DAL', 'TEN', 'ATL', 'CHI', 'GB', 'MIA', 'NYG', 'MIN', 'MIA', 'CLE', 'HOU', 'ATL', 'PIT', 'JAC', 'CAR', 'BUF', 'CIN', 'BAL', 'LAR', 'KC', 'SEA', 'MIN', 'DAL', 'LAC', 'GB', 'CHI', 'DAL', 'LAR', 'LAR', 'ARI', 'KC', 'SF', 'CIN', 'ARI', 'CIN', 'HOU', 'LV', 'WAS', 'SEA', 'PHI', 'KC', 'TB', 'DET', 'NYJ', 'PIT', 'ATL', 'NO', 'HOU', 'TB', 'DAL', 'BUF', 'TEN', 'BUF', 'DEN', 'CHI', 'MIN', 'WAS', 'BUF', 'TB', 'KC', 'TEN', 'MIA', 'DAL', 'SF', 'CAR', 'DEN', 'CLE', 'BAL', 'MIA', 'CAR', 'CAR', 'IND', 'DET', 'JAC', 'NO', 'NYG', 'CIN', 'TEN', 'PIT', 'ATL', 'LAR', 'JAC', 'LV', 'CLE', 'MIA', 'WAS', 'HOU', 'JAC', 'NYG', 'LV', 'NE', 'NYJ', 'IND', 'DEN', 'ATL', 'NE', 'LV', 'IND', 'CIN', 'HOU', 'ATL', 'CHI', 'ARI', 'PHI', 'NYG', 'LAC', 'IND', 'NE', 'DET', 'PHI', 'PIT', 'CHI', 'CAR', 'SF', 'NE', 'BAL', 'DET', 'WAS', 'LAC', 'PHI', 'LAC', 'CIN', 'SEA', 'BUF', 'NO', 'NYG', 'DAL', 'SF', 'BAL', 'BAL', 'NE', 'DEN', 'MIN', 'GB', 'JAC', 'PIT', 'JAC', 'SEA', 'ARI', 'CLE', 'KC', 'TEN', 'DEN', 'MIA', 'KC', 'DEN', 'NYJ', 'CAR', 'CIN', 'DAL', 'ARI', 'BAL', 'NYJ', 'CAR', 'KC', 'TB', 'LAC', 'MIN', 'BUF', 'TB', 'WAS', 'CHI', 'CLE', 'BUF', 'WAS', 'LV', 'ATL', 'TEN', 'NE', 'HOU', 'PHI', 'NE', 'PIT', 'IND', 'LAR', 'LAR', 'NYG', 'DET', 'DET', 'CHI', 'BUF', 'PIT', 'GB', 'IND', 'KC', 'PHI', 'DET', 'LV', 'TEN', 'SEA', 'SEA', 'GB', 'MIN', 'MIA', 'TB', 'LAC', 'DET', 'DEN', 'LAR', 'BAL', 'SF', 'DAL', 'CLE', 'BUF', 'ATL', 'TB', 'WAS', 'GB', 'PIT', 'LAR', 'JAC', 'CLE', 'HOU', 'NYG', 'BAL', 'NYJ', 'ARI', 'SF', 'NO', 'CHI', 'NO', 'TEN', 'PHI', 'JAC', 'LV', 'NYG', 'ARI', 'SEA', 'CAR', 'PHI', 'MIA', 'ATL', 'DEN', 'CIN', 'CIN', 'TB', 'WAS', 'TEN', 'IND', 'CAR', 'ATL', 'HOU', 'NE', 'DEN', 'IND', 'KC', 'MIA', 'CHI', 'HOU', 'LV', 'LAR', 'LAC', 'CHI', 'ARI', 'MIN', 'NE', 'NYJ', 'DAL', 'KC', 'BUF', 'LAC', 'NYG', 'NO', 'NYJ', 'CLE', 'MIN', 'LV', 'TB', 'NYJ', 'WAS', 'IND', 'TB', 'NE', 'CLE', 'SF', 'MIA', 'CAR', 'SEA', 'PHI', 'CIN', 'DET', 'KC', 'PIT', 'BAL', 'TEN', 'BUF', 'ATL', 'DEN', 'CHI', 'ARI', 'LAR', 'LAC', 'LV', 'GB', 'DAL', 'MIN', 'HOU', 'WAS', 'JAC', 'NYJ', 'NYG', 'NO', 'TB', 'CHI', 'NO', 'NYG', 'GB', 'TEN', 'GB', 'CAR', 'PHI', 'SF', 'DET', 'NO', 'NYG', 'NE', 'IND', 'CIN', 'CLE', 'TB', 'DAL', 'BAL', 'ATL', 'PIT', 'LV', 'MIN', 'ARI', 'MIA', 'DEN', 'CHI', 'LAR', 'BUF', 'LAC', 'SEA', 'KC', 'HOU', 'WAS', 'NYJ', 'JAC', 'DAL', 'TB', 'GB', 'CAR', 'BAL', 'BUF', 'LAC', 'NYJ', 'DET', 'MIA', 'ARI', 'PHI', 'JAC', 'SEA', 'HOU', 'LV', 'KC', 'WAS', 'NO', 'CIN', 'CLE', 'MIN', 'DEN', 'CHI', 'ATL', 'LAR', 'IND', 'NYG', 'SF', 'SF', 'NE', 'NE', 'NO', 'PHI', 'DEN', 'NYJ', 'DET', 'GB', 'BAL', 'CIN', 'MIN', 'DEN', 'SEA', 'WAS', 'NO', 'GB', 'CAR', 'NO', 'SF', 'CLE', 'ATL', 'DAL', 'BUF', 'TB', 'GB', 'CAR', 'DET', 'JAC', 'ARI', 'KC', 'HOU', 'BAL', 'NE', 'DAL', 'DET', 'TB', 'CLE', 'NE', 'CHI', 'LV', 'NYG', 'PHI', 'IND', 'LAR', 'MIN', 'MIA', 'SEA', 'MIA', 'WAS', 'HOU', 'NE', 'IND', 'NYG', 'CLE', 'LAR', 'ATL', 'NYJ', 'BAL', 'LV', 'IND', 'ARI', 'SEA', 'ATL', 'LAC', 'LAC', 'NYG', 'LV', 'CLE', 'SF', 'BAL', 'DEN', 'NYJ', 'CIN', 'LAC', 'SF', 'DET', 'NYJ', 'LAC', 'LV', 'GB', 'NO', 'TB', 'CHI', 'ATL', 'MIA', 'WAS', 'MIA', 'GB', 'PHI', 'MIN', 'KC', 'CAR', 'PHI', 'KC', 'JAC', 'MIN', 'NO', 'BAL', 'NE', 'SEA', 'JAC', 'CHI', 'NYG', 'MIN', 'TB', 'KC', 'MIA', 'HOU', 'LV', 'JAC', 'BUF', 'HOU', 'CIN', 'BAL', 'CLE', 'BUF', 'SF', 'LAR', 'PHI', 'CLE', 'DAL', 'JAC', 'DAL', 'MIN', 'TB', 'DEN', 'HOU', 'CHI', 'NO', 'SEA', 'TB', 'WAS', 'MIA', 'LAR', 'BUF', 'KC', 'DET', 'CAR', 'NYJ', 'LAC', 'DEN', 'CIN', 'CLE', 'PHI', 'SEA', 'SF', 'ATL', 'LV', 'NO', 'MIN', 'LAC', 'JAC', 'NYJ', 'CIN', 'HOU', 'BUF', 'KC', 'BAL', 'NE', 'LAC', 'NE', 'ARI', 'BUF', 'LV', 'ARI', 'CHI', 'IND', 'CAR', 'NE', 'DET', 'LAR', 'JAC', 'GB', 'DAL', 'NYG', 'CAR', 'BUF', 'ATL', 'SF', 'TB', 'JAC', 'PHI', 'LV', 'ATL', 'MIA', 'NE', 'WAS', 'SEA', 'DAL', 'WAS', 'NYG', 'SF', 'HOU', 'IND', 'KC', 'NYJ', 'SEA', 'NYG', 'LAR', 'MIA', 'DAL', 'BAL', 'BUF', 'PHI', 'IND', 'CHI', 'GB', 'ATL', 'BAL', 'WAS', 'GB', 'NO', 'CHI', 'CIN', 'NO', 'CIN', 'NE', 'CAR', 'DEN', 'DET', 'ARI', 'ARI', 'CIN', 'BAL', 'DET', 'CIN', 'BUF', 'NE', 'MIA', 'NYG', 'KC', 'DEN', 'MIA', 'KC', 'DEN', 'CAR', 'NO', 'ATL', 'ATL', 'DAL', 'WAS', 'ARI', 'MIN', 'BAL', 'NYJ', 'CAR', 'CLE', 'NYJ', 'LAC', 'KC', 'DEN', 'LAC', 'TB', 'MIN', 'TB', 'CHI', 'HOU', 'SF', 'SF', 'NYJ', 'IND', 'PHI', 'NE', 'IND', 'LAR', 'LAR', 'JAC', 'MIN', 'NYG', 'DET', 'DET', 'HOU', 'SF', 'GB', 'BAL', 'DAL', 'TB', 'CLE', 'LV', 'DET', 'LV', 'KC', 'LAC', 'IND', 'CAR', 'ATL', 'ARI', 'TB', 'NYG', 'CIN', 'HOU', 'SEA', 'DEN', 'ARI', 'LAR', 'CLE', 'CHI', 'PHI', 'LAC', 'PHI', 'MIA', 'MIN', 'LAR', 'DET', 'DAL', 'TB', 'JAC', 'HOU', 'JAC', 'CIN', 'IND', 'BUF', 'NYJ', 'SEA', 'CAR', 'MIA', 'CLE', 'IND', 'BUF', 'NYJ', 'NYG', 'BAL', 'WAS', 'LV', 'DEN', 'NO', 'CHI', 'LAR', 'KC', 'TB', 'WAS', 'DEN', 'ATL', 'NE', 'DEN', 'GB', 'KC', 'MIA', 'CHI', 'HOU', 'LV', 'NO', 'LAC', 'CHI', 'MIN', 'SEA', 'NE', 'ARI', 'BUF', 'LAC', 'NYG', 'ATL', 'NYJ', 'GB', 'SEA', 'KC', 'MIN', 'NYJ', 'WAS', 'SF', 'KC', 'PHI', 'LAR', 'NYJ', 'IND', 'DEN', 'BUF', 'TB', 'SF', 'BAL', 'CIN', 'CLE', 'SEA', 'GB', 'MIN', 'NYG', 'NO', 'WAS', 'NE', 'LAC', 'CAR', 'MIA', 'JAC', 'HOU', 'CHI', 'ARI', 'LV', 'DET', 'ATL', 'DAL', 'CHI', 'LV', 'DEN', 'MIA', 'NYJ', 'CIN', 'JAC', 'IND', 'HOU', 'LV', 'CLE', 'SEA', 'NYG', 'LAC', 'TB', 'KC', 'BAL', 'MIN', 'CAR', 'GB', 'BUF', 'WAS', 'NO', 'NE', 'PHI', 'LAR', 'ATL', 'ARI', 'CHI', 'DET', 'SF', 'DAL'], 'h/a': ['a', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'h', 'a', 'h', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'h', 'h', 'h', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'h', 'h', 'h', 'h', 'a', 'h', 'h', 'a', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'h', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'a', 'a', 'a', 'h', 'h', 'a', 'a', 'h', 'h', 'a', 'h', 'a', 'a', 'a', 'h', 'a', 'a', 'h', 'h', 'h', 'h'], 'opponent': ['ATL', 'MIN', 'NYJ', 'CLE', 'SF', 'MIA', 'SEA', 'DET', 'GB', 'NO', 'NYG', 'KC', 'IND', 'HOU', 'LV', 'DEN', 'PIT', 'ARI', 'LAR', 'LAC', 'CHI', 'JAC', 'WAS', 'TB', 'CAR', 'TEN', 'PHI', 'BUF', 'DAL', 'BAL', 'CIN', 'NE', 'TB', 'SF', 'CLE', 'MIA', 'NE', 'JAC', 'MIN', 'CAR', 'LV', 'LAR', 'DAL', 'JAC', 'ARI', 'ATL', 'GB', 'TB', 'HOU', 'KC', 'MIN', 'PHI', 'DEN', 'CLE', 'TEN', 'SF', 'CHI', 'SEA', 'CIN', 'SF', 'ARI', 'JAC', 'NYG', 'NYJ', 'BAL', 'GB', 'CHI', 'MIA', 'PIT', 'IND', 'NO', 'BUF', 'CIN', 'NE', 'ATL', 'DET', 'NYJ', 'JAC', 'MIA', 'NE', 'CAR', 'WAS', 'MIN', 'DET', 'LAC', 'BUF', 'PHI', 'ARI', 'BAL', 'MIN', 'LAC', 'TB', 'DAL', 'LAR', 'TEN', 'HOU', 'MIA', 'DET', 'MIA', 'WAS', 'SEA', 'ARI', 'CLE', 'NYG', 'NO', 'BUF', 'NE', 'SEA', 'CAR', 'NE', 'PIT', 'CLE', 'TEN', 'IND', 'MIN', 'CHI', 'KC', 'ATL', 'DEN', 'NYG', 'IND', 'NO', 'DAL', 'BAL', 'CIN', 'PHI', 'HOU', 'PIT', 'WAS', 'LV', 'HOU', 'GB', 'ARI', 'TB', 'MIA', 'ATL', 'GB', 'JAC', 'LV', 'DET', 'SF', 'NE', 'PIT', 'GB', 'DEN', 'CHI', 'KC', 'NYG', 'SEA', 'NYJ', 'LAC', 'BAL', 'CAR', 'LV', 'TB', 'CLE', 'MIN', 'SEA', 'GB', 'PIT', 'LV', 'SF', 'NYG', 'BUF', 'SEA', 'HOU', 'MIN', 'ATL', 'MIN', 'NYJ', 'SEA', 'DET', 'KC', 'DAL', 'CLE', 'DEN', 'ATL', 'IND', 'LAR', 'HOU', 'CLE', 'NYJ', 'IND', 'JAC', 'NO', 'CHI', 'MIA', 'NO', 'NYG', 'IND', 'DET', 'TB', 'CIN', 'CAR', 'BAL', 'PHI', 'LAR', 'CAR', 'NYJ', 'PIT', 'DEN', 'LAC', 'TEN', 'CHI', 'LV', 'JAC', 'GB', 'LV', 'NO', 'NE', 'NYG', 'DET', 'PHI', 'LAR', 'DEN', 'WAS', 'DAL', 'CHI', 'CIN', 'NYG', 'WAS', 'WAS', 'ATL', 'SF', 'LAC', 'DET', 'CLE', 'NE', 'TEN', 'ARI', 'MIA', 'NE', 'BAL', 'GB', 'DAL', 'HOU', 'KC', 'TB', 'BUF', 'NYJ', 'CAR', 'PHI', 'TB', 'CHI', 'KC', 'JAC', 'PIT', 'LAC', 'LAC', 'NYJ', 'TEN', 'MIA', 'ATL', 'DAL', 'CIN', 'JAC', 'IND', 'ARI', 'BAL', 'CLE', 'CAR', 'BAL', 'KC', 'TEN', 'IND', 'NO', 'HOU', 'LV', 'TB', 'BUF', 'SF', 'WAS', 'HOU', 'GB', 'NE', 'HOU', 'DET', 'CAR', 'LV', 'TB', 'SEA', 'LAC', 'LAR', 'MIA', 'SF', 'GB', 'CLE', 'BUF', 'LV', 'LAR', 'BUF', 'LAC', 'BAL', 'TEN', 'LAR', 'NO', 'CIN', 'CHI', 'LAC', 'DEN', 'NYJ', 'PHI', 'SEA', 'SEA', 'MIA', 'DEN', 'WAS', 'ARI', 'SF', 'PIT', 'MIA', 'NYG', 'JAC', 'DAL', 'PIT', 'KC', 'CLE', 'WAS', 'TEN', 'CHI', 'HOU', 'BAL', 'PHI', 'DEN', 'NO', 'KC', 'TB', 'ATL', 'DET', 'CIN', 'WAS', 'CAR', 'ARI', 'DEN', 'LAC', 'JAC', 'DAL', 'SEA', 'BUF', 'NE', 'GB', 'NYJ', 'SF', 'MIA', 'JAC', 'KC', 'PIT', 'LV', 'BAL', 'NYG', 'ARI', 'NO', 'PIT', 'ATL', 'PIT', 'LAR', 'MIN', 'LAR', 'GB', 'DEN', 'CIN', 'ATL', 'IND', 'CLE', 'DAL', 'LAC', 'BAL', 'LV', 'NYG', 'CAR', 'TEN', 'IND', 'PHI', 'WAS', 'SEA', 'CHI', 'TEN', 'MIN', 'NO', 'MIN', 'HOU', 'LAC', 'NE', 'DET', 'PIT', 'CAR', 'DET', 'DAL', 'CAR', 'DET', 'ATL', 'MIA', 'BUF', 'NYJ', 'LAR', 'SF', 'CIN', 'TB', 'SEA', 'BUF', 'BAL', 'MIN', 'SF', 'NE', 'GB', 'NO', 'BUF', 'ARI', 'TEN', 'TB', 'PHI', 'CLE', 'MIA', 'CIN', 'NYJ', 'NYG', 'BUF', 'HOU', 'IND', 'ATL', 'SF', 'MIN', 'TEN', 'LAR', 'ARI', 'NE', 'DAL', 'PIT', 'JAC', 'WAS', 'LAC', 'DET', 'DEN', 'CHI', 'CAR', 'NO', 'KC', 'BAL', 'LV', 'SEA', 'GB', 'DEN', 'DET', 'IND', 'LV', 'MIN', 'CHI', 'CAR', 'CIN', 'TB', 'ARI', 'PHI', 'HOU', 'LAC', 'SEA', 'ATL', 'NYJ', 'DET', 'NYG', 'CLE', 'SF', 'JAC', 'DAL', 'NO', 'WAS', 'LAR', 'BUF', 'GB', 'DEN', 'NE', 'PIT', 'MIA', 'TEN', 'KC', 'ATL', 'SEA', 'MIA', 'NE', 'WAS', 'DAL', 'LAC', 'JAC', 'TEN', 'CLE', 'BUF', 'PHI', 'KC', 'NO', 'PIT', 'DEN', 'DET', 'HOU', 'GB', 'CIN', 'BAL', 'LV', 'NYG', 'LAR', 'NYJ', 'MIN', 'SF', 'ARI', 'TB', 'CAR', 'CHI', 'NYJ', 'IND', 'LV', 'WAS', 'ATL', 'DET', 'PIT', 'DET', 'LV', 'CIN', 'CAR', 'CIN', 'TB', 'NYG', 'TEN', 'ATL', 'DEN', 'PHI', 'LAR', 'NE', 'MIN', 'NYJ', 'KC', 'IND', 'PIT', 'HOU', 'NYJ', 'CHI', 'KC', 'NO', 'ARI', 'TB', 'BUF', 'CLE', 'WAS', 'TEN', 'LAC', 'CAR', 'GB', 'GB', 'NO', 'MIA', 'JAC', 'DET', 'NO', 'HOU', 'SEA', 'SEA', 'HOU', 'HOU', 'BUF', 'SF', 'DAL', 'BAL', 'LAR', 'ARI', 'NYJ', 'CLE', 'PHI', 'NE', 'CAR', 'BUF', 'LV', 'NYG', 'GB', 'MIN', 'MIA', 'LV', 'DAL', 'NYG', 'WAS', 'CHI', 'SF', 'LAC', 'IND', 'NE', 'DAL', 'PIT', 'SEA', 'TB', 'DET', 'SF', 'LAC', 'NYJ', 'ATL', 'PHI', 'NO', 'MIN', 'DEN', 'JAC', 'DET', 'DAL', 'NYG', 'JAC', 'CIN', 'IND', 'NYJ', 'ARI', 'IND', 'LV', 'NE', 'TEN', 'JAC', 'BAL', 'WAS', 'BUF', 'CHI', 'IND', 'GB', 'LAC', 'BUF', 'CIN', 'BAL', 'DEN', 'TEN', 'CAR', 'SF', 'MIA', 'CLE', 'LAR', 'TB', 'SEA', 'DEN', 'DAL', 'MIA', 'ARI', 'SEA', 'CAR', 'LAC', 'DEN', 'NE', 'WAS', 'CLE', 'DEN', 'NE', 'MIA', 'TB', 'CIN', 'SF', 'TEN', 'ATL', 'BUF', 'DAL', 'TB', 'JAC', 'KC', 'ATL', 'NE', 'BAL', 'SEA', 'CLE', 'JAC', 'LV', 'NYG', 'SEA', 'SF', 'PHI', 'TEN', 'GB', 'PHI', 'SEA', 'MIA', 'LAR', 'MIN', 'GB', 'NYJ', 'TEN', 'NE', 'WAS', 'BAL', 'DEN', 'PIT', 'PIT', 'NO', 'KC', 'DET', 'WAS', 'PIT', 'CHI', 'MIA', 'WAS', 'GB', 'TEN', 'ATL', 'HOU', 'PHI', 'LAC', 'CIN', 'LAR', 'DET', 'IND', 'HOU', 'CAR', 'MIN', 'MIA', 'NO', 'NO', 'DET', 'BUF', 'CLE', 'CIN', 'TB', 'LV', 'SF', 'ARI', 'CHI', 'NYG', 'JAC', 'CHI', 'IND', 'CHI', 'CLE', 'LAC', 'MIN', 'PHI', 'HOU', 'ATL', 'DEN', 'DAL', 'PIT', 'NYJ', 'GB', 'IND', 'NYG', 'ARI', 'BAL', 'NO', 'HOU', 'KC', 'LV', 'CAR', 'SF', 'NYJ', 'LAC', 'DAL', 'SEA', 'MIN', 'PIT', 'LAR', 'NO', 'ARI', 'KC', 'MIN', 'BUF', 'GB', 'BUF', 'BAL', 'LAC', 'IND', 'BUF', 'LAC', 'TB', 'TB', 'LV', 'DAL', 'CLE', 'CLE', 'ATL', 'LAR', 'WAS', 'IND', 'HOU', 'TB', 'ATL', 'CIN', 'BAL', 'PIT', 'NYG', 'CAR', 'CIN', 'CAR', 'MIA', 'ARI', 'DAL', 'SEA', 'BAL', 'JAC', 'LAR', 'CHI', 'DEN', 'PHI', 'TEN', 'CHI', 'PHI', 'BUF', 'JAC', 'NO', 'NYJ', 'LAC', 'ATL', 'PIT', 'DAL', 'MIN', 'CLE', 'KC', 'TEN', 'DET', 'CHI', 'BAL', 'BAL', 'LV', 'GB', 'CLE', 'LAR', 'MIA', 'JAC', 'TEN', 'DEN', 'LAR', 'ARI', 'ATL', 'NO', 'WAS', 'HOU', 'CIN', 'SEA', 'NYG', 'MIA', 'LV', 'LV', 'CIN', 'NYG', 'CAR', 'HOU', 'NE', 'TB', 'SF', 'NYJ', 'DET', 'BUF', 'CHI', 'IND', 'DEN', 'NO', 'ARI', 'ARI', 'PHI', 'LAR', 'PIT', 'IND', 'DAL', 'GB', 'PIT', 'LAC', 'CLE', 'NE', 'TB', 'NO', 'NYG', 'PHI', 'KC', 'NYG', 'NE', 'SEA', 'SF', 'JAC', 'MIA', 'WAS', 'KC', 'CHI', 'PIT', 'DAL', 'CAR', 'SF', 'CIN', 'DET', 'NE', 'BUF', 'IND', 'CAR', 'SF', 'HOU', 'MIN', 'CAR', 'DEN', 'NYG', 'DET', 'WAS', 'CHI', 'PHI', 'SEA', 'PIT', 'LAC', 'NYJ', 'JAC', 'LV', 'SF', 'BAL', 'CIN', 'ARI', 'IND', 'TB', 'DAL', 'NE', 'KC', 'MIA', 'NO', 'BUF', 'LAR', 'TEN', 'CLE', 'GB', 'ATL', 'BAL', 'NYG', 'NYJ', 'CAR', 'WAS', 'DAL', 'HOU', 'MIN', 'WAS', 'LAC', 'CLE', 'JAC', 'BAL', 'NO', 'BUF', 'ATL', 'DET', 'KC', 'PIT', 'NYJ', 'SF', 'MIA', 'CAR', 'LAR', 'CHI', 'PHI', 'TEN', 'LV', 'SEA', 'DEN', 'NE', 'NYG', 'CIN', 'TB', 'IND', 'ARI', 'GB', 'BAL', 'DAL', 'LAR', 'SEA', 'BUF', 'DET', 'JAC', 'NO', 'DEN', 'GB', 'CIN', 'TEN', 'PHI', 'HOU', 'ARI', 'ATL', 'PIT', 'NYG', 'CAR', 'NE', 'LAC', 'WAS', 'KC', 'MIN', 'NYJ', 'ATL', 'CHI', 'LV', 'CLE', 'TB', 'MIA', 'IND', 'SF', 'TB', 'CIN', 'NYJ', 'DET', 'PHI', 'GB', 'GB', 'LV', 'MIA', 'MIN', 'CAR', 'TEN', 'WAS', 'HOU', 'NYG', 'LAC', 'BUF', 'BAL', 'NO', 'NYG', 'LV', 'SEA', 'CHI', 'CHI', 'LAR', 'WAS', 'CIN', 'NYJ', 'JAC', 'PIT', 'CLE', 'DAL', 'ARI', 'DET', 'DEN', 'NYJ', 'NE', 'IND', 'PHI', 'PHI', 'GB', 'BAL', 'IND', 'CLE', 'KC', 'ATL', 'MIA', 'JAC', 'TB', 'ATL', 'HOU', 'NYJ', 'TB', 'DET', 'LV', 'CAR', 'KC', 'NE', 'ARI', 'DEN', 'IND', 'DEN', 'NE', 'KC', 'DAL', 'TEN', 'ARI', 'SF', 'NO', 'NYG', 'NO', 'BUF', 'DAL', 'WAS', 'LAR', 'BAL', 'LAC', 'TEN', 'NE', 'SF', 'ATL', 'NYG', 'LV', 'PIT', 'HOU', 'MIN', 'SF', 'MIN', 'CHI', 'CIN', 'CLE', 'CIN', 'JAC', 'HOU', 'PIT', 'TEN', 'GB', 'GB', 'DAL', 'MIA', 'SEA', 'MIN', 'CHI', 'ATL', 'NO', 'JAC', 'SF', 'TEN', 'JAC', 'WAS', 'PIT', 'CHI', 'HOU', 'MIA', 'LAC', 'LAR', 'PHI', 'KC', 'BUF', 'BAL', 'DAL', 'TEN', 'SEA', 'CAR', 'NO', 'ATL', 'SEA', 'BUF', 'BUF', 'DET', 'BAL', 'NYG', 'PHI', 'DET', 'PHI', 'PIT', 'NE', 'CLE', 'DAL', 'CIN', 'BAL', 'DEN', 'ARI', 'IND', 'HOU', 'CHI', 'GB', 'PIT', 'DEN', 'SEA', 'LAR', 'MIN', 'LAR', 'TB', 'ATL', 'TEN', 'CLE', 'LAR', 'DEN', 'BAL', 'MIN', 'JAC', 'SEA', 'NYG', 'LAC', 'TB', 'WAS', 'KC', 'JAC', 'LAC', 'LAC', 'NYJ', 'ARI', 'MIA', 'GB', 'SF', 'PHI', 'MIN', 'HOU', 'CHI', 'BUF', 'MIA', 'NE', 'WAS', 'JAC', 'CLE', 'PIT', 'MIA', 'SF', 'NE', 'LV', 'IND', 'NYJ', 'TB', 'CHI', 'LV', 'NE', 'NYJ', 'PHI', 'PIT', 'CHI', 'ATL', 'DET', 'CIN', 'SF', 'CAR', 'NYJ', 'LV', 'ARI', 'CIN', 'HOU', 'ATL', 'LAC', 'NYG', 'LV', 'KC', 'ARI', 'CLE', 'CAR', 'CIN', 'CAR', 'PHI', 'DAL', 'LAR', 'GB', 'SF', 'SEA', 'NYG', 'KC', 'KC', 'LV', 'TB', 'TEN', 'NO', 'MIA', 'HOU', 'MIA', 'DAL', 'DET', 'WAS', 'BAL', 'MIN', 'TB', 'JAC', 'BAL', 'TB', 'IND', 'LAC', 'PHI', 'SEA', 'DET', 'KC', 'IND', 'LAC', 'BAL', 'DEN', 'CAR', 'TEN', 'LAR', 'DEN', 'CLE', 'ATL', 'WAS', 'LAR', 'CLE', 'NE', 'CHI', 'MIN', 'LV', 'PIT', 'CIN', 'LV', 'HOU', 'NYJ', 'BUF', 'BUF', 'SF', 'ARI', 'ARI', 'ATL', 'LAR', 'HOU', 'NO', 'NYJ', 'BAL', 'CIN', 'ARI', 'NE', 'MIN', 'DAL', 'DAL', 'NO', 'TEN', 'JAC', 'DEN', 'CAR', 'ARI', 'TB', 'BUF', 'KC', 'NYG', 'SEA', 'WAS', 'LAR', 'CHI', 'DEN', 'CLE', 'NO', 'HOU', 'BUF', 'MIA', 'WAS', 'PIT', 'SF', 'KC', 'IND', 'DET', 'NYG', 'GB', 'ATL', 'GB', 'MIN', 'CIN', 'MIA', 'NE', 'SF', 'DET', 'DAL', 'LAC', 'CIN', 'JAC', 'CHI', 'TB', 'PHI', 'PHI', 'DEN', 'CLE', 'MIN', 'NYJ', 'LAC', 'CHI', 'PIT', 'LV', 'TB', 'NYJ', 'BAL', 'JAC', 'ATL', 'PIT', 'NE', 'BUF', 'CAR', 'ATL', 'DET', 'TEN', 'LV', 'IND', 'SEA', 'BAL', 'LAR', 'CAR', 'SF', 'GB', 'IND', 'WAS', 'TEN', 'NE', 'DEN', 'IND', 'CLE', 'NYJ', 'DEN', 'LV', 'WAS', 'NYG', 'JAC', 'LAC', 'DAL', 'CIN', 'PHI', 'ARI', 'BAL', 'HOU', 'KC', 'MIN', 'LAR', 'CHI', 'TB', 'ATL', 'DET', 'BUF', 'CAR', 'NE', 'NO', 'SEA', 'TEN', 'PIT', 'CLE', 'MIA', 'IND', 'SF', 'GB', 'DEN', 'ATL', 'GB', 'SF', 'NO', 'MIN', 'NO', 'LAC', 'CIN', 'NYG', 'ARI', 'GB', 'SF', 'LV', 'NYJ', 'PHI', 'WAS', 'DEN', 'SEA', 'KC', 'CHI', 'HOU', 'NE', 'TEN', 'DET', 'JAC', 'TB', 'ATL', 'BUF', 'LAR', 'CAR', 'DAL', 'BAL', 'PIT', 'CLE', 'IND', 'MIA', 'CLE', 'LAC', 'ATL', 'ARI', 'WAS', 'LV', 'TB', 'DEN', 'NO', 'SEA', 'CAR', 'SF', 'CIN', 'MIA', 'MIN', 'BUF', 'NE', 'BAL', 'DET', 'JAC', 'DAL', 'HOU', 'NYJ', 'IND', 'GB', 'NYG', 'CHI', 'LAR', 'PHI', 'PHI', 'KC', 'KC', 'DET', 'SF', 'NYJ', 'DEN', 'NO', 'ATL', 'WAS', 'JAC', 'HOU', 'NYJ', 'MIA', 'BAL', 'DET', 'ATL', 'ARI', 'DET', 'PHI', 'DAL', 'GB', 'CLE', 'LV', 'LAC', 'ATL', 'ARI', 'NO', 'CIN', 'CAR', 'NE', 'MIN', 'WAS', 'KC', 'CLE', 'NO', 'LAC', 'DAL', 'KC', 'IND', 'BUF', 'LAR', 'SF', 'CHI', 'NYG', 'HOU', 'SEA', 'MIA', 'SEA', 'BAL', 'MIN', 'KC', 'CHI', 'LAR', 'DAL', 'NYG', 'GB', 'DEN', 'WAS', 'BUF', 'CHI', 'CAR', 'MIA', 'GB', 'TB', 'TB', 'LAR', 'BUF', 'DAL', 'PHI', 'WAS', 'NYJ', 'DEN', 'JAC', 'TB', 'PHI', 'NO', 'DEN', 'TB', 'BUF', 'ATL', 'DET', 'LAC', 'IND', 'GB', 'SEA', 'BAL', 'SEA', 'ATL', 'SF', 'HOU', 'NE', 'ARI', 'SF', 'NE', 'CIN', 'HOU', 'DET', 'WAS', 'KC', 'MIA', 'CIN', 'IND', 'LAR', 'HOU', 'LAC', 'NE', 'SEA', 'MIN', 'BUF', 'CIN', 'LV', 'MIN', 'JAC', 'WAS', 'DAL', 'LV', 'PHI', 'NYG', 'SF', 'DAL', 'CLE', 'CIN', 'CLE', 'HOU', 'LAC', 'NYJ', 'MIN', 'IND', 'DET', 'MIA', 'LAC', 'BAL', 'SEA', 'NYG', 'LV', 'NE', 'NO', 'ARI', 'DEN', 'TB', 'NYJ', 'JAC', 'DAL', 'SF', 'MIA', 'PHI', 'GB', 'BUF', 'DET', 'HOU', 'TB', 'CIN', 'DEN', 'JAC', 'MIN', 'LV', 'NE', 'WAS', 'KC', 'TB', 'KC', 'CAR', 'LV', 'BUF', 'CAR', 'IND', 'CHI', 'ARI', 'KC', 'NO', 'NYG', 'CIN', 'ATL', 'CLE', 'LAR', 'ARI', 'LV', 'GB', 'PHI', 'LAC', 'CIN', 'SF', 'BUF', 'GB', 'SEA', 'KC', 'BAL', 'MIA', 'CLE', 'BAL', 'LAR', 'PHI', 'MIN', 'CHI', 'NE', 'DEN', 'MIA', 'LAR', 'NYG', 'SEA', 'CLE', 'WAS', 'LV', 'SF', 'CHI', 'IND', 'ATL', 'GB', 'WAS', 'BAL', 'ATL', 'DET', 'IND', 'JAC', 'DET', 'JAC', 'KC', 'ARI', 'NYJ', 'NO', 'CAR', 'CAR', 'JAC', 'WAS', 'NO', 'JAC', 'LV', 'KC', 'SEA', 'LAR', 'NE', 'NYJ', 'SEA', 'NE', 'NYJ', 'ARI', 'DET', 'GB', 'GB', 'CLE', 'BAL', 'CAR', 'HOU', 'WAS', 'DEN', 'ARI', 'DAL', 'DEN', 'TB', 'NE', 'NYJ', 'TB', 'LAC', 'HOU', 'LAC', 'IND', 'MIN', 'PHI', 'PHI', 'DEN', 'CHI', 'SF', 'KC', 'CHI', 'NYG', 'NYG', 'CIN', 'HOU', 'LAR', 'NO', 'NO', 'MIN', 'PHI', 'ATL', 'WAS', 'CLE', 'LAC', 'DAL', 'BUF', 'NO', 'BUF', 'NE', 'TB', 'CHI', 'ARI', 'GB', 'CAR', 'LAC', 'LAR', 'JAC', 'MIN', 'MIA', 'NYJ', 'CAR', 'NYG', 'DAL', 'IND', 'SF', 'TB', 'SF', 'SEA', 'HOU', 'NYG', 'NO', 'CLE', 'LAC', 'CIN', 'MIN', 'CIN', 'JAC', 'CHI', 'LV', 'DEN', 'MIA', 'ARI', 'SEA', 'DAL', 'CHI', 'LV', 'DEN', 'LAR', 'WAS', 'BAL', 'BUF', 'NYJ', 'DET', 'IND', 'NYG', 'NE', 'LAC', 'BAL', 'NYJ', 'GB', 'KC', 'NYJ', 'ATL', 'NE', 'SEA', 'IND', 'MIN', 'BUF', 'DET', 'TB', 'IND', 'HOU', 'MIA', 'KC', 'CAR', 'LV', 'TB', 'LAR', 'GB', 'DEN', 'ATL', 'MIA', 'NE', 'HOU', 'DEN', 'BAL', 'PHI', 'NE', 'SF', 'NYG', 'DEN', 'CHI', 'NYJ', 'LV', 'LAC', 'PHI', 'WAS', 'JAC', 'DAL', 'MIA', 'ATL', 'HOU', 'LAR', 'DET', 'BAL', 'KC', 'TB', 'ARI', 'SEA', 'CIN', 'MIN', 'IND', 'CAR', 'BUF', 'NO', 'GB', 'CLE', 'IND', 'BUF', 'NYJ', 'SEA', 'DEN', 'JAC', 'CIN', 'CHI', 'MIN', 'BUF', 'DAL', 'MIA', 'LAR', 'TB', 'LAC', 'NE', 'WAS', 'HOU', 'ARI', 'ATL', 'LV', 'BAL', 'DET', 'KC', 'SF', 'NYG', 'GB', 'CAR', 'IND', 'NO', 'PHI', 'CLE'], 'yh_points': [31.78, 30.76, 28.18, 27.5, 27.3, 25.7, 24.9, 24.28, 22.76, 22.46, 22.06, 21.82, 20.82, 20.44, 19.4, 19.36, 19.36, 19.26, 17.64, 17.32, 17.18, 16.82, 15.0, 14.4, 13.56, 13.14, 12.82, 12.2, 11.5, 10.86, 9.02, 8.44, 4.72, 0.3, 0.26, 0.0, 0.0, 0.0, -0.2, 33.9, 26.9, 26.2, 24.5, 23.3, 23.1, 21.6, 21.3, 21.2, 19.8, 18.4, 15.6, 14.9, 14.6, 14.2, 14.1, 13.5, 12.9, 12.7, 12.0, 12.0, 11.9, 11.9, 11.3, 10.2, 10.1, 10.0, 9.8, 9.7, 9.6, 9.5, 9.2, 9.2, 9.2, 8.6, 8.3, 7.9, 7.8, 7.1, 6.7, 6.7, 6.7, 6.4, 6.2, 5.7, 5.6, 5.6, 5.4, 5.3, 5.1, 4.9, 4.8, 4.8, 4.8, 4.2, 4.0, 4.0, 3.7, 3.6, 3.2, 3.1, 3.0, 2.9, 2.9, 2.7, 2.4, 2.4, 2.2, 2.1, 2.0, 1.9, 1.9, 1.7, 1.7, 1.6, 1.4, 1.4, 1.4, 1.3, 1.0, 0.8, 0.7, 0.7, 0.6, 0.5, 0.4, 0.4, 0.2, 0.1, 0.1, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4, -1.1, 34.6, 29.4, 28.0, 25.2, 22.5, 22.1, 21.9, 21.0, 20.2, 18.0, 17.6, 17.5, 16.2, 16.0, 15.9, 15.6, 15.2, 14.9, 14.4, 13.6, 13.2, 13.2, 13.1, 13.1, 12.6, 12.6, 12.2, 11.0, 10.9, 10.6, 10.5, 10.4, 10.4, 10.0, 9.8, 9.0, 8.9, 8.8, 8.6, 8.6, 8.4, 8.1, 7.8, 7.7, 7.7, 7.6, 7.6, 7.5, 7.4, 7.3, 7.1, 6.8, 6.7, 6.7, 6.7, 6.6, 6.5, 6.5, 6.4, 6.0, 6.0, 5.8, 5.7, 5.7, 5.6, 5.6, 5.5, 5.4, 5.3, 5.3, 5.2, 5.1, 4.9, 4.4, 4.4, 4.0, 3.7, 3.6, 3.6, 3.5, 3.3, 3.2, 3.2, 3.2, 3.1, 3.1, 3.1, 3.1, 3.0, 2.8, 2.7, 2.7, 2.7, 2.6, 2.3, 2.3, 2.2, 2.2, 2.1, 2.0, 1.9, 1.7, 1.7, 1.7, 1.4, 1.4, 1.3, 1.2, 1.1, 1.1, 1.1, 1.0, 0.9, 0.5, 0.5, 0.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 20.3, 20.1, 16.6, 14.1, 14.0, 12.5, 11.7, 11.6, 11.6, 10.9, 10.5, 10.4, 10.0, 9.8, 9.3, 7.5, 7.3, 6.6, 6.5, 6.4, 5.5, 5.3, 4.7, 4.5, 3.8, 3.6, 3.1, 3.0, 3.0, 2.9, 2.7, 2.6, 2.5, 2.3, 2.2, 2.1, 1.9, 1.8, 1.8, 1.7, 1.7, 1.6, 1.6, 1.5, 1.5, 1.4, 1.3, 1.3, 1.2, 1.2, 1.0, 0.9, 0.8, 0.7, 0.5, 0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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, 17.0, 15.0, 15.0, 11.0, 11.0, 8.0, 8.0, 7.0, 7.0, 6.0, 6.0, 6.0, 5.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 3.0, 3.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0, -1.0, -4.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 39.8, 35.58, 34.48, 34.42, 33.14, 28.52, 27.48, 26.76, 25.46, 24.54, 24.32, 23.98, 23.24, 21.58, 19.74, 19.24, 18.7, 17.56, 17.16, 16.26, 15.7, 15.48, 15.2, 14.38, 13.24, 11.86, 11.86, 11.72, 10.68, 9.68, 8.74, 1.64, 1.52, 0.8, 0.0, 0.0, -0.1, -1.2, 43.6, 33.9, 25.8, 25.6, 23.1, 22.8, 20.2, 19.5, 19.2, 19.1, 19.1, 18.6, 18.3, 18.0, 17.7, 16.8, 16.1, 15.4, 14.7, 13.7, 13.6, 12.3, 12.0, 11.7, 11.5, 11.2, 10.6, 10.5, 10.2, 10.0, 9.7, 9.7, 9.2, 8.6, 8.6, 8.4, 8.3, 7.5, 7.3, 6.9, 6.6, 6.6, 6.6, 6.4, 6.3, 6.1, 6.0, 5.8, 5.3, 5.0, 5.0, 4.7, 4.7, 4.6, 4.4, 4.3, 4.3, 4.1, 4.0, 3.7, 3.5, 3.5, 3.2, 2.8, 2.8, 2.7, 2.1, 2.1, 2.1, 2.0, 2.0, 1.9, 1.9, 1.7, 1.7, 1.7, 1.6, 1.4, 1.3, 1.0, 0.9, 0.9, 0.9, 0.9, 0.8, 0.7, 0.7, 0.5, 0.4, 0.3, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1, -1.4, 26.4, 25.3, 22.0, 21.9, 19.9, 19.3, 19.2, 17.2, 16.8, 16.7, 16.3, 16.2, 16.2, 16.0, 15.4, 14.9, 14.8, 14.5, 13.8, 13.6, 13.4, 13.3, 13.1, 13.0, 12.3, 12.0, 11.2, 11.1, 11.1, 11.1, 11.1, 11.1, 10.5, 10.5, 10.4, 10.3, 10.3, 10.2, 9.5, 9.4, 9.4, 8.9, 8.7, 8.7, 8.6, 8.5, 8.4, 8.3, 8.2, 8.1, 8.0, 7.9, 7.9, 7.7, 7.2, 7.2, 7.1, 7.0, 6.9, 6.8, 6.8, 6.7, 6.4, 6.3, 6.1, 6.1, 6.0, 5.9, 5.8, 5.8, 5.7, 5.7, 5.2, 5.2, 5.1, 5.1, 5.0, 4.9, 4.9, 4.9, 4.8, 4.8, 4.8, 4.8, 4.7, 4.7, 4.6, 4.5, 4.4, 4.3, 4.3, 4.3, 3.9, 3.8, 3.7, 3.4, 3.4, 3.1, 3.1, 2.9, 2.7, 2.7, 2.6, 2.4, 2.4, 2.4, 2.3, 2.2, 2.2, 2.0, 1.6, 1.5, 1.2, 1.1, 1.0, 1.0, 0.9, 0.8, 0.8, 0.7, 0.7, 0.5, 0.4, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 25.9, 23.0, 22.4, 22.3, 20.5, 19.5, 17.3, 15.7, 15.7, 13.6, 12.2, 11.3, 11.1, 9.5, 9.5, 9.3, 9.0, 8.3, 8.2, 8.0, 6.7, 6.6, 6.5, 6.0, 5.8, 5.0, 4.6, 4.4, 3.6, 3.6, 3.4, 3.2, 2.9, 2.3, 2.3, 2.2, 2.1, 1.9, 1.7, 1.6, 1.6, 1.4, 1.3, 1.0, 1.0, 0.9, 0.9, 0.9, 0.8, 0.8, 0.8, 0.7, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 15.0, 15.0, 14.0, 13.0, 12.0, 12.0, 9.0, 9.0, 7.0, 6.0, 5.0, 5.0, 5.0, 5.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 3.0, 3.0, 2.0, 2.0, 2.0, 1.0, 0.0, -2.0, -3.0, -3.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 40.0, 36.8, 32.24, 29.48, 28.24, 24.7, 24.7, 24.52, 23.88, 23.52, 23.5, 21.44, 20.38, 19.18, 18.5, 18.22, 18.06, 17.72, 15.7, 15.44, 14.6, 14.34, 14.18, 13.24, 12.68, 12.62, 12.42, 12.18, 12.16, 11.44, 10.2, 9.72, 9.06, 1.12, 0.8, 0.68, 0.0, 0.0, -0.8, 38.2, 31.3, 27.9, 26.0, 25.8, 24.9, 23.5, 22.9, 20.4, 19.1, 18.5, 15.9, 15.6, 15.2, 15.0, 14.8, 14.7, 14.5, 14.1, 13.4, 12.7, 12.7, 12.0, 11.6, 11.5, 9.1, 9.0, 8.4, 8.3, 8.1, 7.8, 7.7, 7.5, 7.0, 7.0, 7.0, 6.7, 6.7, 6.4, 6.4, 6.3, 6.1, 5.8, 5.6, 5.4, 5.0, 4.5, 4.4, 4.3, 4.2, 3.9, 3.7, 3.5, 3.4, 3.3, 3.2, 3.1, 3.0, 2.8, 2.7, 2.4, 2.4, 2.3, 2.3, 2.2, 1.9, 1.9, 1.8, 1.8, 1.7, 1.6, 1.6, 1.6, 1.5, 1.3, 1.2, 1.1, 1.1, 1.1, 1.0, 1.0, 0.9, 0.8, 0.8, 0.6, 0.5, 0.4, 0.1, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.9, 32.5, 27.0, 25.2, 23.7, 23.4, 23.3, 22.8, 21.2, 18.9, 18.7, 18.7, 18.6, 18.5, 18.1, 17.5, 17.5, 17.4, 17.3, 17.0, 16.6, 16.1, 14.9, 14.7, 14.4, 14.3, 14.2, 13.6, 13.4, 13.2, 13.1, 13.0, 13.0, 12.9, 12.3, 12.0, 10.8, 10.6, 10.1, 9.8, 9.7, 9.4, 9.4, 9.1, 8.3, 8.0, 8.0, 7.9, 7.7, 7.7, 7.5, 7.2, 6.7, 6.6, 6.3, 6.2, 6.1, 6.1, 6.1, 6.1, 6.1, 6.0, 5.9, 5.8, 5.6, 5.3, 5.0, 5.0, 4.9, 4.8, 4.7, 4.6, 4.5, 4.4, 4.3, 4.2, 4.2, 4.2, 4.1, 3.9, 3.8, 3.6, 3.4, 3.4, 3.4, 3.4, 3.3, 3.3, 3.2, 3.2, 2.9, 2.9, 2.9, 2.6, 2.5, 2.4, 2.3, 2.3, 2.2, 2.2, 2.1, 2.0, 1.9, 1.8, 1.5, 1.5, 1.4, 1.4, 1.4, 1.4, 1.3, 1.3, 1.2, 1.2, 1.0, 0.9, 0.9, 0.8, 0.7, 0.5, 0.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 21.0, 16.4, 13.7, 13.5, 12.5, 11.7, 10.5, 10.3, 9.5, 8.6, 8.6, 8.6, 8.3, 8.1, 8.0, 7.8, 7.5, 7.3, 7.1, 7.0, 7.0, 6.9, 6.8, 6.8, 6.6, 6.6, 6.4, 5.1, 5.1, 5.0, 4.4, 4.4, 4.0, 3.8, 3.7, 3.7, 3.6, 3.4, 3.3, 3.1, 3.0, 2.7, 2.6, 2.5, 2.1, 1.9, 1.8, 1.6, 1.5, 1.4, 1.2, 1.2, 1.1, 1.0, 0.6, 0.6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 26.0, 18.0, 15.0, 14.0, 12.0, 12.0, 11.0, 11.0, 8.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 5.0, 5.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 2.0, 2.0, 1.0, 1.0, 0.0, 0.0, -2.0, -3.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 38.28, 33.46, 29.58, 27.24, 26.02, 25.42, 24.0, 23.6, 23.34, 23.3, 23.12, 22.42, 21.94, 21.9, 20.9, 20.44, 20.24, 18.86, 16.54, 16.1, 15.2, 14.9, 14.18, 12.86, 12.4, 11.7, 11.2, 11.1, 8.0, 5.52, 4.7, 3.0, 1.9, 1.8, 0.9, 0.64, 0.0, -0.1, -0.7, 39.1, 27.6, 24.8, 23.5, 20.8, 20.8, 19.6, 19.6, 19.4, 19.2, 19.1, 18.8, 16.5, 16.1, 15.8, 14.5, 14.1, 13.2, 12.7, 12.5, 10.6, 10.2, 10.2, 10.0, 9.7, 9.6, 9.6, 9.5, 9.4, 9.2, 8.8, 8.8, 8.6, 8.4, 8.1, 7.7, 7.7, 7.3, 6.3, 6.1, 6.0, 5.5, 4.7, 4.5, 4.3, 4.3, 4.2, 4.1, 3.8, 3.8, 3.6, 3.5, 3.3, 3.3, 3.1, 2.8, 2.8, 2.6, 2.6, 2.4, 2.2, 2.2, 2.1, 1.9, 1.9, 1.8, 1.7, 1.5, 1.4, 1.3, 1.3, 1.2, 1.1, 1.0, 0.9, 0.8, 0.5, 0.4, 0.3, 0.3, 0.2, 0.2, 0.2, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5, 35.9, 27.4, 25.5, 22.7, 22.2, 21.7, 20.3, 19.8, 19.6, 19.4, 17.0, 16.8, 16.8, 16.0, 15.2, 14.5, 14.4, 14.2, 13.9, 13.9, 13.7, 13.1, 12.9, 12.78, 12.7, 12.6, 12.6, 12.6, 12.4, 12.3, 12.3, 11.8, 11.6, 11.6, 11.0, 10.9, 10.7, 10.7, 10.6, 10.5, 10.2, 9.6, 9.4, 9.1, 8.2, 7.6, 7.4, 7.3, 6.9, 6.8, 6.7, 6.7, 6.6, 6.5, 6.3, 6.3, 6.3, 6.2, 6.2, 6.0, 6.0, 5.9, 5.8, 5.2, 5.2, 5.1, 5.0, 4.9, 4.9, 4.9, 4.9, 4.9, 4.8, 4.6, 4.4, 4.3, 4.3, 4.2, 4.0, 4.0, 4.0, 3.9, 3.8, 3.4, 3.2, 3.2, 3.1, 3.1, 3.0, 3.0, 2.7, 2.5, 2.5, 2.1, 2.1, 2.1, 2.0, 1.6, 1.5, 1.4, 1.4, 1.4, 1.3, 1.0, 0.9, 0.8, 0.8, 0.8, 0.8, 0.5, 0.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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.0, 32.6, 30.8, 19.2, 15.2, 12.5, 11.9, 11.3, 9.9, 8.8, 8.5, 8.4, 7.8, 7.5, 7.1, 6.8, 6.8, 6.5, 6.2, 6.1, 6.0, 6.0, 5.9, 5.7, 5.7, 5.3, 5.0, 4.9, 4.9, 4.0, 3.7, 3.6, 3.6, 3.4, 3.4, 3.2, 3.1, 3.1, 2.9, 2.6, 2.6, 2.5, 2.5, 2.2, 2.0, 2.0, 1.7, 1.7, 1.6, 1.5, 1.4, 1.3, 1.3, 1.2, 1.2, 1.1, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 20.0, 18.0, 11.0, 8.0, 7.0, 6.0, 6.0, 6.0, 6.0, 6.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 2.0, 2.0, 2.0, 1.0, 0.0, 0.0, 0.0, -2.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan], 'yh_salary': [33.0, 28.0, 31.0, 38.0, 29.0, 26.0, 29.0, 22.0, 22.0, 30.0, 30.0, 34.0, 22.0, 41.0, 24.0, 25.0, 25.0, 27.0, 33.0, 21.0, 33.0, 26.0, 28.0, 33.0, 21.0, 25.0, 20.0, 20.0, 25.0, 21.0, 25.0, 23.0, 21.0, 20.0, 23.0, 20.0, 20.0, 21.0, 20.0, 26.0, 39.0, 31.0, 10.0, 13.0, 22.0, 18.0, 31.0, 26.0, 24.0, 17.0, 28.0, 10.0, 34.0, 14.0, 18.0, 25.0, 13.0, 18.0, 10.0, 13.0, 10.0, 21.0, 10.0, 12.0, 13.0, 12.0, 15.0, 15.0, 30.0, 10.0, 11.0, 10.0, 27.0, 10.0, 12.0, 17.0, 18.0, 17.0, 17.0, 11.0, 10.0, 15.0, 11.0, 15.0, 26.0, 15.0, 11.0, 10.0, 23.0, 10.0, 10.0, 10.0, 14.0, 14.0, 15.0, 12.0, 10.0, 10.0, 11.0, 10.0, 10.0, 11.0, 22.0, 23.0, 16.0, 10.0, 10.0, 10.0, 13.0, 10.0, 10.0, 10.0, 10.0, 10.0, 11.0, 13.0, 15.0, 10.0, 10.0, 10.0, 10.0, 10.0, 13.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 32.0, 25.0, 19.0, 15.0, 13.0, 28.0, 22.0, 12.0, 32.0, 15.0, 10.0, 19.0, 10.0, 18.0, 10.0, 16.0, 13.0, 16.0, 10.0, 10.0, 20.0, 10.0, 23.0, 32.0, 18.0, 21.0, 11.0, 11.0, 32.0, 10.0, 20.0, 11.0, 12.0, 21.0, 22.0, 20.0, 16.0, 11.0, 18.0, 21.0, 15.0, 15.0, 12.0, 14.0, 10.0, 18.0, 16.0, 14.0, 19.0, 19.0, 11.0, 13.0, 30.0, 17.0, 16.0, 10.0, 12.0, 23.0, 18.0, 12.0, 21.0, 10.0, 21.0, 10.0, 20.0, 10.0, 10.0, 12.0, 15.0, 10.0, 14.0, 12.0, 10.0, 12.0, 16.0, 10.0, 24.0, 12.0, 10.0, 10.0, 10.0, 38.0, 11.0, 10.0, 13.0, 10.0, 10.0, 10.0, 14.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 13.0, 10.0, 15.0, 10.0, 10.0, 19.0, 10.0, 10.0, 10.0, 11.0, 10.0, 16.0, 10.0, 12.0, 10.0, 15.0, 10.0, 10.0, 10.0, 10.0, 10.0, 11.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 11.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 22.0, 17.0, 16.0, 12.0, 26.0, 10.0, 10.0, 12.0, 11.0, 10.0, 20.0, 11.0, 10.0, 17.0, 22.0, 16.0, 29.0, 10.0, 10.0, 13.0, 20.0, 15.0, 10.0, 13.0, 12.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 12.0, 12.0, 13.0, 14.0, 16.0, 17.0, 15.0, 10.0, 13.0, 10.0, 10.0, 11.0, 10.0, 10.0, 10.0, 13.0, 10.0, 12.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 13.0, 11.0, 17.0, 19.0, 12.0, 17.0, 20.0, 14.0, 16.0, 12.0, 13.0, 10.0, 11.0, 11.0, 12.0, 18.0, 10.0, 16.0, 11.0, 14.0, 14.0, 10.0, 13.0, 14.0, 10.0, 12.0, 12.0, 10.0, 10.0, 11.0, 11.0, 15.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 36.0, 29.0, 35.0, 33.0, 33.0, 31.0, 39.0, 27.0, 23.0, 29.0, 21.0, 22.0, 20.0, 21.0, 20.0, 28.0, 33.0, 40.0, 30.0, 26.0, 31.0, 34.0, 22.0, 29.0, 24.0, 27.0, 20.0, 23.0, 20.0, 29.0, 25.0, 20.0, 26.0, 20.0, 20.0, 20.0, 20.0, 20.0, 29.0, 30.0, 26.0, 16.0, 15.0, 39.0, 18.0, 16.0, 33.0, 22.0, 12.0, 22.0, 21.0, 19.0, 23.0, 29.0, 30.0, 17.0, 20.0, 13.0, 10.0, 18.0, 29.0, 16.0, 10.0, 13.0, 27.0, 29.0, 11.0, 36.0, 19.0, 15.0, 11.0, 10.0, 16.0, 34.0, 16.0, 10.0, 12.0, 12.0, 10.0, 18.0, 10.0, 13.0, 12.0, 24.0, 20.0, 15.0, 12.0, 12.0, 11.0, 16.0, 10.0, 10.0, 11.0, 14.0, 10.0, 17.0, 10.0, 15.0, 10.0, 10.0, 13.0, 15.0, 35.0, 0.0, 10.0, 12.0, 10.0, 10.0, 10.0, 14.0, 10.0, 12.0, 10.0, 11.0, 10.0, 13.0, 13.0, 10.0, 14.0, 10.0, 10.0, 10.0, 10.0, 10.0, 0.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 13.0, 10.0, 10.0, 10.0, 22.0, 25.0, 26.0, 18.0, 27.0, 29.0, 16.0, 18.0, 31.0, 16.0, 11.0, 18.0, 19.0, 25.0, 25.0, 10.0, 11.0, 17.0, 18.0, 13.0, 20.0, 10.0, 18.0, 22.0, 10.0, 13.0, 14.0, 10.0, 14.0, 10.0, 10.0, 10.0, 10.0, 24.0, 22.0, 18.0, 21.0, 10.0, 15.0, 18.0, 10.0, 10.0, 13.0, 13.0, 10.0, 12.0, 11.0, 23.0, 15.0, 19.0, 10.0, 10.0, 14.0, 10.0, 10.0, 15.0, 10.0, 13.0, 10.0, 10.0, 19.0, 20.0, 10.0, 11.0, 18.0, 17.0, 14.0, 14.0, 10.0, 10.0, 12.0, 10.0, 16.0, 12.0, 37.0, 13.0, 10.0, 10.0, 17.0, 10.0, 10.0, 14.0, 13.0, 27.0, 0.0, 10.0, 25.0, 14.0, 17.0, 11.0, 21.0, 12.0, 15.0, 10.0, 13.0, 32.0, 10.0, 14.0, 11.0, 12.0, 10.0, 10.0, 10.0, 13.0, 11.0, 15.0, 19.0, 13.0, 13.0, 10.0, 13.0, 10.0, 10.0, 10.0, 10.0, 11.0, 18.0, 10.0, 10.0, 17.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 20.0, 10.0, 19.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 16.0, 11.0, 14.0, 19.0, 10.0, 28.0, 10.0, 16.0, 14.0, 10.0, 11.0, 18.0, 14.0, 10.0, 18.0, 10.0, 10.0, 20.0, 14.0, 10.0, 22.0, 10.0, 10.0, 10.0, 14.0, 18.0, 13.0, 10.0, 10.0, 12.0, 25.0, 14.0, 10.0, 11.0, 11.0, 10.0, 10.0, 10.0, 10.0, 14.0, 10.0, 13.0, 10.0, 12.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 12.0, 10.0, 10.0, 10.0, 10.0, 10.0, 15.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 11.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 19.0, 14.0, 19.0, 20.0, 16.0, 14.0, 11.0, 11.0, 18.0, 18.0, 14.0, 19.0, 21.0, 15.0, 17.0, 15.0, 10.0, 13.0, 12.0, 17.0, 13.0, 10.0, 14.0, 13.0, 18.0, 10.0, 10.0, 14.0, 12.0, 10.0, 10.0, 13.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 38.0, 36.0, 36.0, 34.0, 24.0, 37.0, 21.0, 33.0, 30.0, 30.0, 25.0, 22.0, 25.0, 32.0, 31.0, 20.0, 32.0, 23.0, 27.0, 20.0, 24.0, 23.0, 40.0, 31.0, 28.0, 26.0, 32.0, 32.0, 22.0, 20.0, 29.0, 20.0, 26.0, 0.0, 20.0, 20.0, 20.0, 20.0, 20.0, 36.0, 13.0, 17.0, 34.0, 23.0, 29.0, 25.0, 17.0, 10.0, 14.0, 16.0, 34.0, 30.0, 14.0, 15.0, 37.0, 21.0, 10.0, 16.0, 13.0, 21.0, 27.0, 13.0, 16.0, 18.0, 22.0, 17.0, 23.0, 15.0, 14.0, 30.0, 10.0, 22.0, 11.0, 16.0, 10.0, 10.0, 13.0, 15.0, 18.0, 10.0, 15.0, 18.0, 13.0, 10.0, 10.0, 10.0, 12.0, 10.0, 18.0, 14.0, 10.0, 13.0, 10.0, 10.0, 17.0, 10.0, 17.0, 12.0, 12.0, 17.0, 10.0, 10.0, 0.0, 10.0, 17.0, 10.0, 10.0, 10.0, 10.0, 0.0, 10.0, 10.0, 11.0, 11.0, 10.0, 10.0, 10.0, 16.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 12.0, 12.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 22.0, 10.0, 10.0, 20.0, 17.0, 24.0, 20.0, 21.0, 21.0, 35.0, 27.0, 15.0, 10.0, 10.0, 17.0, 11.0, 13.0, 10.0, 24.0, 10.0, 10.0, 28.0, 21.0, 10.0, 28.0, 29.0, 18.0, 22.0, 32.0, 25.0, 14.0, 10.0, 26.0, 10.0, 19.0, 24.0, 23.0, 10.0, 11.0, 13.0, 20.0, 17.0, 21.0, 15.0, 18.0, 13.0, 22.0, 10.0, 10.0, 22.0, 13.0, 19.0, 14.0, 12.0, 14.0, 16.0, 16.0, 16.0, 15.0, 10.0, 10.0, 13.0, 10.0, 16.0, 10.0, 10.0, 10.0, 10.0, 20.0, 10.0, 16.0, 0.0, 10.0, 10.0, 10.0, 12.0, 10.0, 12.0, 10.0, 19.0, 16.0, 10.0, 0.0, 0.0, 10.0, 10.0, 10.0, 19.0, 10.0, 10.0, 12.0, 12.0, 10.0, 10.0, 12.0, 21.0, 10.0, 10.0, 16.0, 15.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 14.0, 10.0, 0.0, 10.0, 10.0, 15.0, 10.0, 18.0, 10.0, 10.0, 16.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 12.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 19.0, 10.0, 14.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 12.0, 13.0, 10.0, 14.0, 10.0, 12.0, 29.0, 20.0, 10.0, 10.0, 17.0, 11.0, 10.0, 10.0, 14.0, 14.0, 10.0, 20.0, 16.0, 19.0, 22.0, 10.0, 10.0, 10.0, 10.0, 10.0, 18.0, 16.0, 15.0, 10.0, 10.0, 11.0, 10.0, 18.0, 11.0, 14.0, 28.0, 10.0, 10.0, 14.0, 20.0, 10.0, 10.0, 10.0, 10.0, 11.0, 18.0, 10.0, 10.0, 10.0, 10.0, 18.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 12.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 11.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 19.0, 10.0, 16.0, 11.0, 20.0, 14.0, 10.0, 15.0, 14.0, 15.0, 11.0, 15.0, 18.0, 17.0, 12.0, 17.0, 10.0, 17.0, 11.0, 15.0, 14.0, 16.0, 10.0, 14.0, 11.0, 10.0, 10.0, 11.0, 18.0, 17.0, 13.0, 15.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 41.0, 30.0, 34.0, 24.0, 40.0, 40.0, 27.0, 20.0, 29.0, 31.0, 36.0, 26.0, 25.0, 42.0, 30.0, 26.0, 39.0, 20.0, 28.0, 27.0, 26.0, 24.0, 22.0, 27.0, 30.0, 34.0, 23.0, 23.0, 22.0, 20.0, 20.0, 20.0, 20.0, 20.0, 22.0, 20.0, 20.0, 20.0, 20.0, 20.0, 32.0, 22.0, 26.0, 11.0, 16.0, 38.0, 17.0, 36.0, 18.0, 16.0, 18.0, 32.0, 18.0, 12.0, 11.0, 11.0, 13.0, 23.0, 15.0, 32.0, 17.0, 15.0, 10.0, 11.0, 15.0, 10.0, 10.0, 15.0, 14.0, 29.0, 14.0, 25.0, 27.0, 14.0, 13.0, 15.0, 13.0, 10.0, 10.0, 12.0, 17.0, 13.0, 13.0, 27.0, 23.0, 10.0, 10.0, 10.0, 10.0, 12.0, 28.0, 10.0, 13.0, 10.0, 19.0, 12.0, 11.0, 0.0, 14.0, 11.0, 10.0, 10.0, 11.0, 24.0, 10.0, 13.0, 10.0, 10.0, 0.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 11.0, 10.0, 10.0, 10.0, 11.0, 10.0, 11.0, 10.0, 16.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 12.0, 10.0, 10.0, 0.0, 25.0, 26.0, 20.0, 20.0, 24.0, 26.0, 12.0, 22.0, 23.0, 14.0, 12.0, 11.0, 22.0, 21.0, 22.0, 24.0, 31.0, 28.0, 19.0, 18.0, 10.0, 17.0, 20.0, 18.0, 0.0, 28.0, 13.0, 11.0, 10.0, 16.0, 24.0, 0.0, 12.0, 0.0, 13.0, 16.0, 14.0, 11.0, 19.0, 10.0, 22.0, 14.0, 11.0, 10.0, 13.0, 32.0, 11.0, 10.0, 21.0, 10.0, 12.0, 23.0, 12.0, 18.0, 10.0, 16.0, 13.0, 19.0, 10.0, 16.0, 10.0, 10.0, 14.0, 10.0, 30.0, 10.0, 19.0, 10.0, 25.0, 13.0, 12.0, 10.0, 13.0, 16.0, 16.0, 17.0, 11.0, 10.0, 14.0, 10.0, 19.0, 20.0, 11.0, 10.0, 10.0, 0.0, 19.0, 10.0, 19.0, 15.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 0.0, 10.0, 10.0, 17.0, 13.0, 10.0, 10.0, 10.0, 10.0, 18.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 14.0, 10.0, 10.0, 10.0, 29.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 13.0, 10.0, 11.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 16.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 11.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 26.0, 12.0, 27.0, 16.0, 15.0, 14.0, 23.0, 18.0, 10.0, 27.0, 10.0, 14.0, 10.0, 14.0, 10.0, 10.0, 13.0, 12.0, 13.0, 10.0, 18.0, 10.0, 10.0, 10.0, 10.0, 10.0, 16.0, 17.0, 10.0, 10.0, 18.0, 10.0, 10.0, 10.0, 15.0, 10.0, 10.0, 10.0, 0.0, 10.0, 10.0, 10.0, 10.0, 17.0, 10.0, 12.0, 12.0, 11.0, 10.0, 10.0, 14.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 10.0, 15.0, 12.0, 17.0, 16.0, 19.0, 14.0, 12.0, 16.0, 16.0, 20.0, 10.0, 11.0, 14.0, 16.0, 13.0, 15.0, 21.0, 17.0, 15.0, 18.0, 11.0, 11.0, 14.0, 14.0, 17.0, 18.0, 11.0, 10.0, 10.0, 10.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan], 'datetime': [pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-13 16:05:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 16:25:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 20:20:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 19:15:00'), pd.Timestamp('2020-09-13 13:00:00'), pd.Timestamp('2020-09-14 22:10:00'), pd.Timestamp('2020-09-10 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:25:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-21 20:15:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-17 20:20:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-20 16:05:00'), pd.Timestamp('2020-09-20 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 20:20:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-27 16:25:00'), pd.Timestamp('2020-09-28 20:15:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 13:00:00'), pd.Timestamp('2020-09-27 16:05:00'), pd.Timestamp('2020-09-24 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-01 20:20:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 16:25:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-05 19:05:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 16:05:00'), pd.Timestamp('2020-10-05 20:15:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 13:00:00'), pd.Timestamp('2020-10-04 20:20:00'), pd.Timestamp('2020-10-04 13:00:00')], 'fd_points': [31.78, 30.76, 28.18, 27.5, 27.3, 25.7, 24.9, 24.28, 22.76, 22.46, 22.06, 21.82, 20.82, 20.44, 19.4, 19.36, 19.36, 19.26, 17.64, 17.32, 17.18, 16.82, 15.0, 14.4, 13.56, 13.14, 12.82, 12.2, 11.5, 10.86, 9.02, 8.44, 4.72, 0.3, 0.26, 0.0, 0.0, 0.0, -0.2, 33.9, 26.9, 26.2, 24.5, 23.3, 23.1, 21.6, 21.3, 21.2, 19.8, 18.4, 15.6, 14.9, 14.6, 14.2, 14.1, 13.5, 12.9, 12.7, 12.0, 12.0, 11.9, 11.9, 11.3, 10.2, 10.1, 10.0, 9.8, 9.7, 9.6, 9.5, 9.2, 9.2, 9.2, 8.6, 8.3, 7.9, 7.8, 7.1, 6.7, 6.7, 6.7, 6.4, 6.2, 5.7, 5.6, 5.6, 5.4, 5.3, 5.1, 4.9, 4.8, 4.8, 4.8, 4.2, 4.0, 4.0, 3.7, nan, 3.2, 3.1, 3.0, 2.9, 2.9, 2.7, 2.4, 2.4, 2.2, 2.1, 2.0, 1.9, 1.9, 1.7, 1.7, 1.6, 1.4, 1.4, 1.4, 1.3, 1.0, 0.8, 0.7, 0.7, 0.6, 0.5, 0.4, 0.4, 0.2, 0.1, 0.1, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4, -1.1, 34.6, 29.4, 28.0, 25.2, 22.5, 22.1, 21.9, 21.0, 20.2, 18.0, 17.6, 17.5, 16.2, 16.0, 15.9, 15.6, 15.2, 14.9, 14.4, 13.6, 13.2, 13.2, 13.1, 13.1, 12.6, 12.6, 12.2, 11.0, 10.9, 10.6, 10.5, 10.4, 10.4, 10.0, 9.8, 9.0, 8.9, 8.8, 8.6, 8.6, 8.4, 8.1, 7.8, 7.7, 7.7, 7.6, 7.6, 7.5, 7.4, 7.3, 7.1, 6.8, 6.7, 6.7, 6.7, 6.6, 6.5, 6.5, 6.4, 6.0, 6.0, 5.8, 5.7, 5.7, 5.6, 5.6, 5.5, 5.4, 5.3, 5.3, 5.2, 5.1, 4.9, 4.4, 4.4, 4.0, 3.7, 3.6, 3.6, 3.5, 3.3, 3.2, 3.2, 3.2, 3.1, 3.1, 3.1, 3.1, 3.0, 2.8, 2.7, 2.7, 2.7, 2.6, 2.3, 2.3, 2.2, 2.2, 2.1, 2.0, 1.9, 1.7, 1.7, 1.7, 1.4, 1.4, 1.3, 1.2, 1.1, 1.1, 1.1, 1.0, 0.9, 0.5, 0.5, 0.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 20.3, 20.1, 16.6, 14.1, 14.0, 12.5, 11.7, 11.6, 11.6, 10.9, 10.5, 10.4, 10.0, 9.8, 9.3, 7.5, 7.3, 6.6, 6.5, 6.4, 5.5, 5.3, 4.7, 4.5, 3.8, 3.6, 3.1, 3.0, 3.0, 2.9, 2.7, 2.6, 2.5, 2.3, 2.2, 2.1, 1.9, 1.8, 1.8, 1.7, 1.7, 1.6, 1.6, 1.5, 1.5, 1.4, 1.3, 1.3, 1.2, 1.2, 1.0, 0.9, 0.8, 0.7, 0.5, 0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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, 17.0, 15.0, 15.0, 11.0, 11.0, 8.0, 8.0, 7.0, 7.0, 6.0, 6.0, 6.0, 5.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 3.0, 3.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0, -1.0, -4.0, 0.0, 3.6, 12.0, 12.0, 12.0, 12.0, 12.0, 11.0, 10.0, 10.0, 10.0, 10.0, 10.0, 9.0, 9.0, 9.0, 9.0, 9.0, 9.0, 8.0, 8.0, 8.0, 5.0, 5.0, 5.0, 5.0, 4.0, 4.0, 4.0, 4.0, 3.0, 2.0, 2.0, 39.8, 35.58, 34.48, 34.42, 33.14, 28.52, 27.48, 26.76, 25.46, 24.54, 24.32, 23.98, 23.24, 21.58, 19.74, 19.24, 18.7, 17.56, 17.16, 16.26, 15.7, 15.48, 15.2, 14.38, 13.24, 11.86, 11.86, 11.72, 10.68, 9.68, 8.74, 1.64, 1.52, 0.8, 0.0, 0.0, -0.1, -1.2, 43.6, 33.9, 25.8, 25.6, 23.1, 22.8, 20.2, 19.5, 19.2, 19.1, 19.1, 18.6, 18.3, 18.0, 17.7, 16.8, 16.1, 15.4, 14.7, 13.7, 13.6, 12.3, 12.0, 11.7, 11.5, 11.2, 10.6, 10.5, 10.2, 10.0, 9.7, 9.7, 9.2, 8.6, 8.6, 8.4, 8.3, 7.5, 7.3, 6.9, 6.6, 6.6, 6.6, 6.4, 6.3, 6.1, 6.0, 5.8, 5.3, 5.0, 5.0, 4.7, 4.7, 4.6, 4.4, 4.3, nan, 4.1, 4.0, 3.7, 3.5, 3.5, 3.2, 2.8, 2.8, 2.7, 2.1, 2.1, 2.1, 2.0, 2.0, 1.9, 1.9, 1.7, 1.7, 1.7, 1.6, 1.4, 1.3, 1.0, 0.9, 0.9, 0.9, 0.9, 0.8, 0.7, 0.7, 0.5, 0.4, 0.3, 0.1, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1, -1.4, 26.4, 25.3, 22.0, 21.9, 19.9, 19.3, 19.2, 17.2, 16.8, 16.7, 16.3, 16.2, 16.2, 16.0, 15.4, 14.9, 14.8, 14.5, 13.8, 13.6, 13.4, 13.3, 13.1, 13.0, 12.3, 12.0, 11.2, 11.1, 11.1, 11.1, 11.1, 11.1, 10.5, 10.5, 10.4, 10.3, 10.3, 10.2, 9.5, 9.4, 9.4, 8.9, 8.7, 8.7, 8.6, 8.5, 8.4, 8.3, 8.2, 8.1, 8.0, 7.9, 7.9, 7.7, 7.2, 7.2, 7.1, 7.0, 6.9, 6.8, 6.8, 6.7, 6.4, 6.3, 6.1, 6.1, 6.0, 5.9, 5.8, 5.8, 5.7, 5.7, 5.2, 5.2, 5.1, 5.1, 5.0, 4.9, 4.9, 4.9, 4.8, 4.8, 4.8, 4.8, 4.7, 4.7, 4.6, 4.5, 4.4, 4.3, 4.3, 4.3, 3.9, 3.8, 3.7, 3.4, 3.4, 3.1, 3.1, 2.9, 2.7, 2.7, 2.6, 2.4, 2.4, 2.4, 2.3, 2.2, 2.2, 2.0, 1.6, 1.5, 1.2, 1.1, 1.0, 1.0, 0.9, 0.8, 0.8, 0.7, 0.7, 0.5, 0.4, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 25.9, 23.0, 22.4, 22.3, 20.5, 19.5, 17.3, 15.7, 15.7, 13.6, 12.2, 11.3, 11.1, 9.5, 9.5, 9.3, 9.0, 8.3, 8.2, 8.0, 6.7, 6.6, 6.5, 6.0, 5.8, 5.0, 4.6, 4.4, 3.6, 3.6, 3.4, 3.2, 2.9, 2.3, 2.3, 2.2, 2.1, 1.9, 1.7, 1.6, 1.6, 1.4, 1.3, 1.0, 1.0, 0.9, 0.9, 0.9, 0.8, 0.8, 0.8, 0.7, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 15.0, 15.0, 14.0, 13.0, 12.0, 12.0, 9.0, 9.0, 7.0, 6.0, 5.0, 5.0, 5.0, 5.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 3.0, 3.0, 2.0, 2.0, 2.0, 1.0, 0.0, -2.0, -3.0, -3.0, 0.0, 4.3, 0.0, 0.0, 0.0, 17.0, 16.0, 15.0, 13.0, 13.0, 13.0, 12.0, 12.0, 12.0, 11.0, 11.0, 11.0, 9.0, 8.0, 8.0, 8.0, 7.0, 7.0, 7.0, 7.0, 7.0, 6.0, 6.0, 6.0, 6.0, 5.0, 5.0, 5.0, 5.0, 3.0, 3.0, 3.0, 40.0, 36.8, 32.24, 29.48, 28.24, 24.7, 24.7, 24.52, 23.88, 23.52, 23.5, 21.44, 20.38, 19.18, 18.5, 18.22, 18.06, 17.72, 15.7, 15.44, 14.6, 14.34, 14.18, 13.24, 12.68, 12.62, 12.42, 12.18, 12.16, 11.44, 10.2, 9.72, 9.06, 1.12, 0.8, 0.68, 0.0, 0.0, -0.8, 38.2, 31.3, 27.9, 26.0, 25.8, 24.9, 23.5, 22.9, 20.4, 19.1, 18.5, 15.9, 15.6, 15.2, 15.0, 14.8, 14.7, 14.5, 14.1, 13.4, 12.7, 12.7, 12.0, 11.6, 11.5, 9.1, 9.0, 8.4, 8.3, 8.1, 7.8, 7.7, 7.5, 7.0, 7.0, 7.0, 6.7, 6.7, 6.4, 6.4, 6.3, 6.1, 5.8, 5.6, 5.4, 5.0, 4.5, 4.4, 4.3, 4.2, 3.9, 3.7, 3.5, 3.4, 3.3, 3.2, 3.1, 3.0, 2.8, 2.7, 2.4, 2.4, 2.3, 2.3, 2.2, 1.9, 1.9, 1.8, 1.8, 1.7, 1.6, 1.6, 1.6, 1.5, nan, 1.2, 1.1, 1.1, 1.1, 1.0, 1.0, 0.9, 0.8, 0.8, 0.6, 0.5, 0.4, 0.1, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.9, 32.5, 27.0, 25.2, 23.7, 23.4, 23.3, 22.8, 21.2, 18.9, 18.7, 18.7, 18.6, 18.5, 18.1, 17.5, 17.5, 17.4, 17.3, 17.0, 16.6, 16.1, 14.9, 14.7, 14.4, 14.3, 14.2, 13.6, 13.4, 13.2, 13.1, 13.0, 13.0, 12.9, 12.3, 12.0, 10.8, 10.6, 10.1, 9.8, 9.7, 9.4, 9.4, 9.1, 8.3, 8.0, 8.0, 7.9, 7.7, 7.7, 7.5, 7.2, 6.7, 6.6, 6.3, 6.2, 6.1, 6.1, 6.1, 6.1, 6.1, 6.0, 5.9, 5.8, 5.6, 5.3, 5.0, 5.0, 4.9, 4.8, 4.7, 4.6, 4.5, 4.4, 4.3, 4.2, 4.2, 4.2, 4.1, 3.9, 3.8, 3.6, 3.4, 3.4, 3.4, 3.4, 3.3, 3.3, 3.2, 3.2, 2.9, 2.9, 2.9, 2.6, 2.5, 2.4, 2.3, 2.3, 2.2, 2.2, 2.1, 2.0, 1.9, 1.8, 1.5, 1.5, 1.4, 1.4, 1.4, 1.4, 1.3, 1.3, 1.2, 1.2, 1.0, 0.9, 0.9, 0.8, 0.7, 0.5, 0.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 21.0, 16.4, 13.7, 13.5, 12.5, 11.7, 10.5, 10.3, 9.5, 8.6, 8.6, 8.6, 8.3, 8.1, 8.0, 7.8, 7.5, 7.3, 7.1, 7.0, 7.0, 6.9, 6.8, 6.8, 6.6, 6.6, 6.4, 5.1, 5.1, 5.0, 4.4, 4.4, 4.0, 3.8, 3.7, 3.7, 3.6, 3.4, 3.3, 3.1, 3.0, 2.7, 2.6, 2.5, 2.1, 1.9, 1.8, 1.6, 1.5, 1.4, 1.2, 1.2, 1.1, 1.0, 0.6, 0.6, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 26.0, 18.0, 15.0, 14.0, 12.0, 12.0, 11.0, 11.0, 8.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 5.0, 5.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 2.0, 2.0, 1.0, 1.0, 0.0, 0.0, -2.0, -3.0, 0.0, 1.3, 0.0, 0.0, 0.0, 25.0, 16.0, 15.0, 14.0, 14.0, 14.0, 13.0, 13.0, 12.0, 12.0, 12.0, 11.0, 9.0, 9.0, 9.0, 8.0, 8.0, 8.0, 7.0, 7.0, 7.0, 6.0, 6.0, 6.0, 5.0, 5.0, 4.0, 4.0, 3.0, 2.0, 1.0, 1.0, 38.28, 33.46, 29.58, 27.24, 26.02, 25.42, 24.0, 23.6, 23.34, 23.3, 23.12, 22.42, 21.94, 21.9, 20.9, 20.44, 20.24, 18.86, 16.54, 16.1, 15.2, 14.9, 14.18, 12.86, 12.4, 11.7, 11.2, 11.1, 8.0, 5.52, 4.7, 3.0, 1.9, 1.8, 0.9, 0.64, 0.0, -0.1, -0.7, 39.1, 27.6, 24.8, 23.5, 20.8, 20.8, 19.6, 19.6, 19.4, 19.2, 19.1, 18.8, 16.5, 16.1, 15.8, 14.5, 14.1, 13.2, 12.7, 12.5, 10.6, 10.2, 10.2, 10.0, 9.7, 9.6, 9.6, 9.5, 9.4, 9.2, 8.8, 8.8, 8.6, 8.4, 8.1, 7.7, 7.7, 7.3, 6.3, 6.1, 6.0, 5.5, 4.7, 4.5, 4.3, 4.3, 4.2, 4.1, 3.8, 3.8, 3.6, 3.5, 3.3, 3.3, 3.1, 2.8, 2.8, 2.6, 2.6, 2.4, 2.2, 2.2, 2.1, 1.9, 1.9, 1.8, 1.7, 1.5, 1.4, 1.3, 1.3, 1.2, 1.1, nan, 0.9, 0.8, 0.5, 0.4, 0.3, 0.3, 0.2, 0.2, 0.2, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.5, 35.9, 27.4, 25.5, 22.7, 22.2, 21.7, 20.3, 19.8, 19.6, 19.4, 17.0, 16.8, 16.8, 16.0, 15.2, 14.5, 14.4, 14.2, 13.9, 13.9, 13.7, 13.1, 12.9, 12.78, 12.7, 12.6, 12.6, 12.6, 12.4, 12.3, 12.3, 11.8, 11.6, 11.6, 11.0, 10.9, 10.7, 10.7, 10.6, 10.5, 10.2, 9.6, 9.4, 9.1, 8.2, 7.6, 7.4, 7.3, 6.9, 6.8, 6.7, 6.7, 6.6, 6.5, 6.3, 6.3, 6.3, 6.2, 6.2, 6.0, 6.0, 5.9, 5.8, 5.2, 5.2, 5.1, 5.0, 4.9, 4.9, 4.9, 4.9, 4.9, 4.8, 4.6, 4.4, 4.3, 4.3, 4.2, 4.0, 4.0, 4.0, 3.9, 3.8, 3.4, 3.2, 3.2, 3.1, 3.1, 3.0, 3.0, 2.7, 2.5, 2.5, 2.1, 2.1, 2.1, 2.0, 1.6, 1.5, 1.4, 1.4, 1.4, 1.3, 1.0, 0.9, 0.8, 0.8, 0.8, 0.8, 0.5, 0.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -2.0, 32.6, 30.8, 19.2, 15.2, 12.5, 11.9, 11.3, 9.9, 8.8, 8.5, 8.4, 7.8, 7.5, 7.1, 6.8, 6.8, 6.5, 6.2, 6.1, 6.0, 6.0, 5.9, 5.7, 5.7, 5.3, 5.0, 4.9, 4.9, 4.0, 3.7, 3.6, 3.6, 3.4, 3.4, 3.2, 3.1, 3.1, 2.9, 2.6, 2.6, 2.5, 2.5, 2.2, 2.0, 2.0, 1.7, 1.7, 1.6, 1.5, 1.4, 1.3, 1.3, 1.2, 1.2, 1.1, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 20.0, 18.0, 11.0, 8.0, 7.0, 6.0, 6.0, 6.0, 6.0, 6.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 2.0, 2.0, 2.0, 1.0, 0.0, 0.0, 0.0, -2.0, 1.0, 0.0, 18.0, 18.0, 18.0, 17.0, 15.0, 14.0, 13.0, 13.0, 12.0, 9.0, 9.0, 9.0, 8.0, 8.0, 8.0, 7.0, 7.0, 7.0, 6.0, 6.0, 5.0, 5.0, 5.0, 5.0, 4.0, 3.0, 3.0, 3.0, 2.0, 2.0], 'fd_salary': [8400.0, 7600.0, 7900.0, 9300.0, 7700.0, 7400.0, 7800.0, 6900.0, 7200.0, 7500.0, 7800.0, 8200.0, 6700.0, 9500.0, 6800.0, 7000.0, 7200.0, 7300.0, 8400.0, 6600.0, 7300.0, 7200.0, 7700.0, 8100.0, 7100.0, 6700.0, 6500.0, 6800.0, 7400.0, 7000.0, 7000.0, 6400.0, 5000.0, 6000.0, 6000.0, 6000.0, 6200.0, 6000.0, 6000.0, 8200.0, 10000.0, 8700.0, 5000.0, 4900.0, 6200.0, 7200.0, 8700.0, 8300.0, 7200.0, 6300.0, 7800.0, 4900.0, 8400.0, 5200.0, 6600.0, 6600.0, 5100.0, 7100.0, 4500.0, 5000.0, 5000.0, 5300.0, 4600.0, 4800.0, 5800.0, 4900.0, 5100.0, 6000.0, 9000.0, 4500.0, 5700.0, 4500.0, 7700.0, 4600.0, 5000.0, 5900.0, 6300.0, 6100.0, 5300.0, 5500.0, 4600.0, 4900.0, 4900.0, 5200.0, 7300.0, 6500.0, 4600.0, 4600.0, 7400.0, 4600.0, 4800.0, 5100.0, 5800.0, 5100.0, 5500.0, 4600.0, 4500.0, nan, 5100.0, 4500.0, 4800.0, 5400.0, 7000.0, 6800.0, 6900.0, 4800.0, 5200.0, 4900.0, 4800.0, 4700.0, 4500.0, 4900.0, 4800.0, 4900.0, 4700.0, 5600.0, 5400.0, 4600.0, 4500.0, 4700.0, 0.0, 5300.0, 5200.0, 4500.0, 4500.0, 4600.0, 4500.0, 4800.0, 4500.0, 4500.0, 4700.0, 4600.0, 4600.0, 4500.0, 4500.0, 4500.0, 4500.0, 4600.0, 4600.0, 4500.0, 4500.0, 4500.0, 4500.0, 4700.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4600.0, 4500.0, 8000.0, 6600.0, 6800.0, 5300.0, 5600.0, 7800.0, 7100.0, 6000.0, 8200.0, 5400.0, 4700.0, 6400.0, 5500.0, 6100.0, 4800.0, 5500.0, 6000.0, 6900.0, 5100.0, 5000.0, 6800.0, 4600.0, 7100.0, 8100.0, 5800.0, 6600.0, 4600.0, 5100.0, 7700.0, 5100.0, 6700.0, 4500.0, 5100.0, 6600.0, 7200.0, 5400.0, 5900.0, 4900.0, 6300.0, 6500.0, 5200.0, 5100.0, 5400.0, 5700.0, 4900.0, 6200.0, 5200.0, 6200.0, 7100.0, 6500.0, 4900.0, 5400.0, 7500.0, 6700.0, 5900.0, 4600.0, 5100.0, 6200.0, 6700.0, 5000.0, 7200.0, 4500.0, 7000.0, 4500.0, 5600.0, 4900.0, 4900.0, 5300.0, 6100.0, 4500.0, 4900.0, 5300.0, 4600.0, 5700.0, 5100.0, 4500.0, 6900.0, 5000.0, 4600.0, 4600.0, 5000.0, 8800.0, 5700.0, 4600.0, 5200.0, 4500.0, 4600.0, 4700.0, 5700.0, 5200.0, 4500.0, 5100.0, 4500.0, 4500.0, 4800.0, 4600.0, 4500.0, 4800.0, 4500.0, 4900.0, 4500.0, 4700.0, 4700.0, 4700.0, 4500.0, 4600.0, 4600.0, 4500.0, 5100.0, 4800.0, 5000.0, 4700.0, 4900.0, 4600.0, 5800.0, 4500.0, 4500.0, 4800.0, 4500.0, 4500.0, 4900.0, 4800.0, 4500.0, 4700.0, 4500.0, 4600.0, 4500.0, 4600.0, 4700.0, 4500.0, 4600.0, 4500.0, 4800.0, 4500.0, 4500.0, 4900.0, 4500.0, 4500.0, 4500.0, nan, 4600.0, nan, 4500.0, 4500.0, 4500.0, 4500.0, 4700.0, 4600.0, 4500.0, 4600.0, 5300.0, 4800.0, 4600.0, 4500.0, 4700.0, nan, 4500.0, 4500.0, 5000.0, 4900.0, 7400.0, 5200.0, 5400.0, 5300.0, 7800.0, 4400.0, 4000.0, 4900.0, 4700.0, 4300.0, 5900.0, 4900.0, 5000.0, 6000.0, 6700.0, 6900.0, 8000.0, 4100.0, 4600.0, 5300.0, 5800.0, 5300.0, 4700.0, 5400.0, 5200.0, 4700.0, 4200.0, 4000.0, 4000.0, 4500.0, 4300.0, 5100.0, 5700.0, 5000.0, 4000.0, 5500.0, 6300.0, 4900.0, 4000.0, 5300.0, 4000.0, 4000.0, 4800.0, 4200.0, 4100.0, 4200.0, 4600.0, 4600.0, 4600.0, 4200.0, 4000.0, 4100.0, 4400.0, 4500.0, 4000.0, 4000.0, 4300.0, 4000.0, 4200.0, 4400.0, 4000.0, 4200.0, 4000.0, 4300.0, nan, 4000.0, 4000.0, 4500.0, 4000.0, 4000.0, 4200.0, 4000.0, 4100.0, 4000.0, 4100.0, 4100.0, 4300.0, 4300.0, 4000.0, 4000.0, 4000.0, 4200.0, 4000.0, 4000.0, 4000.0, 4100.0, 4400.0, 4100.0, 4000.0, 4400.0, 4000.0, 4200.0, 4000.0, 4100.0, 3400.0, 4800.0, 4600.0, 4200.0, 4700.0, 4800.0, 3900.0, 4200.0, 3500.0, 4000.0, 3300.0, 3900.0, 4500.0, 3800.0, 5000.0, 3500.0, 3700.0, 3400.0, 3700.0, 4500.0, 3600.0, 4400.0, 4000.0, 3700.0, 3200.0, 3800.0, 3000.0, 3000.0, 3400.0, 3600.0, 4300.0, 4500.0, 5000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 8300.0, 7800.0, 8200.0, 8100.0, 8000.0, 7700.0, 9000.0, 7000.0, 7000.0, 6800.0, 6500.0, 7300.0, 6100.0, 6800.0, 6000.0, 7500.0, 7900.0, 9500.0, 7200.0, 6900.0, 7900.0, 8200.0, 7200.0, 7300.0, 7100.0, 7100.0, 6600.0, 6500.0, 6900.0, 7600.0, 6900.0, 6000.0, 7400.0, 5000.0, 6000.0, 6000.0, 6000.0, 6700.0, 7700.0, 8500.0, 7200.0, 6000.0, 5800.0, 10500.0, 5600.0, 5300.0, 8600.0, 6900.0, 4900.0, 6800.0, 7300.0, 5800.0, 6500.0, 6900.0, 8800.0, 6700.0, 6200.0, 4900.0, 4700.0, 5500.0, 8400.0, 5100.0, 4500.0, 4900.0, 7000.0, 6600.0, 4700.0, 8000.0, 5900.0, 5200.0, 5000.0, 4500.0, 6000.0, 8300.0, 4800.0, 4500.0, 4600.0, 4800.0, 4500.0, 5700.0, 4500.0, 5100.0, 5400.0, 7000.0, 7200.0, 5300.0, 4600.0, 5000.0, 4800.0, 5200.0, 5300.0, 4500.0, 4800.0, 5000.0, nan, 5500.0, 4600.0, 5200.0, 4500.0, 4600.0, 5000.0, 5000.0, 9000.0, 4500.0, 4500.0, 4700.0, 4500.0, 4600.0, 4700.0, 5700.0, 4500.0, 4500.0, 4500.0, 4800.0, 4500.0, 4800.0, 5600.0, 4800.0, 5500.0, 4600.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 5400.0, 4500.0, 4500.0, 4500.0, nan, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4600.0, 4500.0, 4900.0, 4500.0, 4500.0, 4700.0, 4500.0, 4600.0, 4600.0, 7100.0, 6800.0, 6500.0, 6600.0, 7400.0, 8000.0, 5800.0, 6500.0, 8300.0, 5800.0, 4500.0, 6800.0, 6400.0, 6800.0, 6700.0, 4500.0, 4800.0, 5200.0, 6500.0, 5400.0, 5900.0, 4700.0, 6900.0, 7000.0, 4600.0, 5600.0, 5000.0, 4600.0, 4900.0, 5000.0, 4600.0, 4500.0, 4500.0, 7200.0, 6700.0, 6400.0, 6700.0, 4500.0, 5400.0, 5500.0, 5000.0, 4800.0, 5500.0, 4900.0, 4500.0, 5200.0, 4900.0, 7100.0, 5300.0, 6900.0, 4500.0, 4500.0, 5100.0, 4500.0, 4600.0, 5500.0, 4500.0, 5700.0, 4600.0, 4900.0, 6000.0, 6200.0, 4600.0, 5000.0, 6000.0, 5100.0, 5600.0, 4700.0, 4700.0, 4500.0, 4600.0, 4500.0, 5100.0, 4900.0, 8600.0, 5400.0, 4600.0, 4500.0, 5200.0, 4700.0, 4500.0, 5100.0, 5300.0, 7000.0, 4500.0, 4500.0, 7300.0, 5600.0, 6000.0, 4700.0, 6300.0, 4800.0, 5100.0, 4500.0, 4900.0, 8200.0, 4600.0, 4900.0, 5200.0, 4900.0, 4700.0, 4600.0, 4600.0, 4900.0, 4500.0, 5800.0, 5700.0, 5200.0, 5200.0, 4500.0, 5900.0, 4500.0, 4500.0, 4500.0, 4700.0, 4900.0, 5500.0, 4600.0, 4500.0, 5300.0, 4500.0, 0.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4800.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 6100.0, 4500.0, 5700.0, nan, 4500.0, nan, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4600.0, 5000.0, 4500.0, nan, 4500.0, 4500.0, 4600.0, 5800.0, 5200.0, 4900.0, 6800.0, 4800.0, 7800.0, 4000.0, 5300.0, 5700.0, 4000.0, 4700.0, 6100.0, 4600.0, 4300.0, 6000.0, 4300.0, 4600.0, 6200.0, 5600.0, 4300.0, 6300.0, 4500.0, 4100.0, 4000.0, 4900.0, 5500.0, 4700.0, 4000.0, 4000.0, 4400.0, 7500.0, 5500.0, 4300.0, 5500.0, 4700.0, 4000.0, 4200.0, 4000.0, 4100.0, 4800.0, 4400.0, 4700.0, 4000.0, 5100.0, 4400.0, 4200.0, 4000.0, 4100.0, 4600.0, 4500.0, 4200.0, 4000.0, 4000.0, 4300.0, 4000.0, 4000.0, 5000.0, 4000.0, 4100.0, 4000.0, nan, 4000.0, 5000.0, 5000.0, 4000.0, 4000.0, 4000.0, 4100.0, 4000.0, 4100.0, 4100.0, 4100.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 5400.0, 4000.0, 4000.0, 4100.0, 4000.0, 4000.0, 4000.0, 4200.0, 4000.0, 4700.0, 3600.0, 3800.0, 4600.0, 4000.0, 3900.0, 3600.0, 3500.0, 4500.0, 4600.0, 4100.0, 4300.0, 5000.0, 4200.0, 4400.0, 3500.0, 3000.0, 3900.0, 3900.0, 4100.0, 3400.0, 3300.0, 3800.0, 3200.0, 4900.0, 3300.0, 3600.0, 4000.0, 3700.0, 3500.0, 3400.0, 3700.0, 4600.0, 5000.0, 4500.0, 4000.0, 4000.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 9000.0, 8700.0, 8100.0, 8500.0, 7200.0, 8400.0, 7000.0, 7900.0, 7300.0, 8000.0, 7600.0, 7100.0, 7400.0, 7500.0, 7300.0, 6300.0, 8000.0, 6500.0, 7200.0, 6800.0, 6700.0, 7100.0, 9400.0, 7400.0, 7000.0, 7500.0, 7800.0, 7700.0, 6600.0, 6500.0, 7700.0, 6600.0, 6900.0, 6000.0, 6000.0, 6000.0, 6000.0, 6000.0, 5000.0, 8600.0, 4800.0, 6400.0, 8200.0, 7500.0, 8600.0, 7800.0, 7100.0, 5200.0, 6000.0, 5800.0, 7600.0, 8200.0, 5700.0, 5700.0, 9000.0, 6600.0, 4600.0, 5900.0, 6200.0, 7400.0, 6700.0, 5600.0, 6900.0, 5500.0, 7700.0, 5100.0, 6500.0, 5600.0, 5300.0, 8300.0, 4500.0, 7000.0, 4800.0, 5500.0, 4500.0, 5400.0, 4800.0, 5700.0, 6100.0, 5300.0, 5400.0, 6500.0, 5000.0, 4500.0, 4600.0, 4700.0, 5000.0, 4600.0, 5900.0, 4700.0, 4500.0, 5200.0, 4700.0, 4700.0, 6400.0, 4900.0, 6300.0, 5500.0, 4700.0, 5300.0, 5400.0, 4500.0, 4500.0, 5100.0, 5600.0, 4500.0, 4500.0, 4500.0, 4800.0, 4500.0, 4500.0, 4500.0, 5500.0, nan, 4500.0, 4500.0, 4500.0, 4800.0, 4500.0, 5200.0, 4500.0, 4500.0, 4700.0, 5100.0, 4900.0, 5000.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4800.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4600.0, 4500.0, 4700.0, 4500.0, 4500.0, 4500.0, 4500.0, 4600.0, 4700.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 6800.0, 4900.0, 4500.0, 7100.0, 5600.0, 6900.0, 5700.0, 7100.0, 6600.0, 8500.0, 8100.0, 4800.0, 4700.0, 4500.0, 5800.0, 5200.0, 5100.0, 4700.0, 6500.0, 4700.0, 5200.0, 7900.0, 7500.0, 5100.0, 7000.0, 8000.0, 6400.0, 6000.0, 7700.0, 7000.0, 5300.0, 4600.0, 6900.0, 4600.0, 5500.0, 7200.0, 6700.0, 4600.0, 5000.0, 5700.0, 5300.0, 6600.0, 5600.0, 5500.0, 6100.0, 5300.0, 6800.0, 4500.0, 5600.0, 6700.0, 5100.0, 6200.0, 6100.0, 5800.0, 5400.0, 5400.0, 5900.0, 4600.0, 4900.0, 4500.0, 4600.0, 5300.0, 4900.0, 5800.0, 4800.0, 4500.0, 4700.0, 5100.0, 5500.0, 4500.0, 5300.0, 4500.0, 5100.0, 4500.0, 4500.0, 4500.0, 4800.0, 5000.0, 4500.0, 5700.0, 5600.0, 4600.0, 4500.0, 4500.0, 4500.0, 4800.0, 0.0, 6500.0, 0.0, 4500.0, 5000.0, 4800.0, 4500.0, 4500.0, 4900.0, 6100.0, 5200.0, 4600.0, 5700.0, 5500.0, 4500.0, 4700.0, 4500.0, 4500.0, 4700.0, 4500.0, 4500.0, 4900.0, 5200.0, 4700.0, 4500.0, 4500.0, 4500.0, 5100.0, 4600.0, 6300.0, 4700.0, 4600.0, 5400.0, 4500.0, 4500.0, 4500.0, 4500.0, 4600.0, 4500.0, 4600.0, 5000.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 5000.0, nan, 4500.0, 4700.0, 6400.0, 4500.0, 4900.0, 4600.0, 4500.0, 4500.0, 4500.0, nan, 4500.0, 4500.0, 4500.0, 4500.0, 4700.0, 4500.0, nan, 4500.0, 4500.0, 4700.0, 4600.0, 4800.0, 4900.0, 5100.0, 4000.0, 4700.0, 4600.0, 5000.0, 7800.0, 6200.0, 4000.0, 4000.0, 5600.0, 5100.0, 4000.0, 4100.0, 4500.0, 5500.0, 5000.0, 6000.0, 5400.0, 5800.0, 6100.0, 4400.0, 4200.0, 4900.0, 4200.0, 4000.0, 5700.0, 4700.0, 4900.0, 4200.0, 4200.0, 4400.0, 4000.0, 5300.0, 5000.0, 5900.0, 7300.0, 5000.0, 4000.0, 5300.0, 6600.0, 4000.0, 4000.0, 4000.0, 4000.0, 4900.0, 6600.0, 4100.0, 4300.0, 4800.0, 4600.0, 5200.0, 4100.0, 4000.0, 4000.0, 4000.0, 4800.0, 4000.0, 4000.0, 4100.0, 5200.0, 4000.0, 4000.0, 4700.0, 4100.0, 4000.0, 4000.0, nan, 4300.0, 4100.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4600.0, 4000.0, 4100.0, 4000.0, 4000.0, 4500.0, 4000.0, 4000.0, 4200.0, 4000.0, 4000.0, 4000.0, 4300.0, 4000.0, 4000.0, 4000.0, 4800.0, 3800.0, 4900.0, 3900.0, 4600.0, 3400.0, 3500.0, 4000.0, 4500.0, 3300.0, 3000.0, 3900.0, 4700.0, 4100.0, 4300.0, 4400.0, 3200.0, 3700.0, 4200.0, 3700.0, 4100.0, 5000.0, 3400.0, 3700.0, 3500.0, 3500.0, 3600.0, 3900.0, 3800.0, 3800.0, 3600.0, 4300.0, 4500.0, 4800.0, 4500.0, 4500.0, 4500.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 8200.0, 7300.0, 8000.0, 6800.0, 9600.0, 8600.0, 6700.0, 6700.0, 7200.0, 7100.0, 8400.0, 7200.0, 7400.0, 9000.0, 7800.0, 6900.0, 8700.0, 6500.0, 7700.0, 7400.0, 7000.0, 6800.0, 6500.0, 7100.0, 7700.0, 7500.0, 6700.0, 6600.0, 6600.0, 6000.0, 6000.0, 6000.0, 5000.0, 6000.0, 6500.0, 6000.0, 6000.0, 6000.0, 6000.0, 6800.0, 8700.0, 7100.0, 7900.0, 5500.0, 4900.0, 8400.0, 6300.0, 8800.0, 6000.0, 5900.0, 6600.0, 9000.0, 6000.0, 5600.0, 5100.0, 4600.0, 5300.0, 6600.0, 5300.0, 7400.0, 6700.0, 6500.0, 4500.0, 4700.0, 5500.0, 4500.0, 4500.0, 5200.0, 5800.0, 8000.0, 5400.0, 7600.0, 7500.0, 5300.0, 5500.0, 5400.0, 5200.0, 4800.0, 4700.0, 4700.0, 5600.0, 5200.0, 4900.0, 8300.0, 6400.0, 4500.0, 5300.0, 4600.0, 4500.0, 4600.0, 7000.0, 4500.0, 4900.0, 4800.0, 5300.0, 5000.0, 4500.0, 4500.0, 5900.0, 5700.0, 4800.0, 5200.0, 4800.0, 6900.0, 4500.0, 5100.0, 4800.0, 4500.0, 0.0, 4600.0, 4500.0, 4600.0, nan, 4500.0, 4500.0, 4900.0, 5000.0, 4500.0, 4600.0, 4500.0, 4600.0, 4500.0, 4700.0, 4500.0, 5000.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4800.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 5000.0, 4500.0, 4500.0, 6600.0, 7100.0, 6800.0, 5600.0, 7100.0, 7400.0, 5300.0, 6100.0, 7000.0, 5300.0, 4600.0, 5000.0, 6600.0, 6500.0, 7200.0, 7000.0, 8000.0, 7300.0, 6200.0, 6000.0, 4800.0, 5600.0, 6000.0, 5700.0, 4500.0, 6900.0, 5100.0, 5000.0, 4700.0, 5800.0, 5400.0, 4500.0, 5200.0, 4500.0, 5300.0, 4700.0, 5100.0, 5200.0, 6300.0, 4500.0, 6900.0, 5300.0, 5400.0, 4600.0, 5300.0, 8700.0, 4600.0, 5000.0, 6800.0, 4600.0, 5100.0, 6700.0, 5600.0, 5400.0, 4500.0, 5500.0, 5100.0, 6100.0, 4900.0, 6000.0, 4600.0, 4900.0, 5000.0, 4500.0, 7900.0, 4700.0, 6400.0, 4500.0, 7500.0, 5000.0, 5000.0, 4500.0, 5500.0, 5400.0, 5900.0, 5600.0, 5600.0, 4700.0, 5300.0, 4600.0, 5500.0, 5900.0, 4700.0, 4500.0, 4500.0, 4500.0, 5500.0, 4500.0, 5800.0, 5200.0, 4500.0, 4500.0, 4700.0, 4600.0, 4500.0, 4500.0, 4500.0, 4500.0, 4600.0, 4800.0, 6000.0, 5100.0, 5000.0, 4700.0, 4500.0, 0.0, 5700.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 5000.0, 4500.0, 4500.0, 4700.0, 8100.0, 4500.0, 4600.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 4500.0, 5900.0, 4600.0, 4900.0, 4500.0, 4500.0, nan, 4600.0, 4500.0, 4600.0, 5300.0, 4900.0, 4500.0, 4700.0, nan, 4500.0, 4500.0, 4500.0, 4500.0, 4700.0, 4600.0, 4500.0, 4600.0, 4800.0, 4700.0, 4500.0, 7500.0, 5100.0, 7400.0, 4900.0, 4800.0, 5100.0, 6700.0, 5400.0, 4300.0, 7600.0, 4000.0, 5300.0, 4400.0, 5700.0, 4000.0, 4000.0, 5600.0, 4700.0, 4900.0, 5000.0, 5900.0, 4300.0, 4200.0, 4400.0, 5300.0, 4500.0, 6100.0, 6500.0, 4100.0, 4800.0, 6000.0, 4600.0, 4000.0, 5200.0, 4800.0, 4600.0, 4000.0, 4000.0, 4500.0, 4600.0, 4100.0, 4600.0, 4000.0, 5700.0, 4000.0, 5000.0, 4700.0, 4800.0, 4100.0, 4300.0, 4900.0, 4400.0, 4000.0, 4200.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4200.0, 4000.0, 4100.0, 4000.0, 4000.0, nan, 4200.0, 4100.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4500.0, 4000.0, 4000.0, 4000.0, 4500.0, 4000.0, 4000.0, 4000.0, 4000.0, 4400.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4700.0, 3800.0, 4200.0, 4800.0, 3400.0, 4900.0, 4700.0, 4400.0, 4700.0, 4800.0, 5000.0, 3400.0, 3900.0, 4000.0, 3900.0, 3300.0, 3000.0, 4600.0, 3500.0, 4200.0, 4300.0, 3600.0, 3500.0, 3700.0, 3700.0, 4100.0, 3800.0, 3300.0, 3200.0, 3100.0, 3400.0, 4700.0, 4500.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0], 'dk_points': [34.78, 33.76, 33.18, 27.5, 27.3, 25.7, 27.9, 24.28, 22.76, 22.46, 22.06, 21.82, 20.82, 20.44, 19.4, 19.36, 19.36, 19.26, 17.64, 17.32, 17.18, 19.82, 16.0, 14.4, 13.56, 13.14, 12.82, 12.2, 11.5, 10.86, 9.02, 8.44, 5.22, 0.3, 0.26, 0.0, 0.0, 0.0, -0.2, 35.9, 28.4, 27.7, 26.0, 27.3, 25.1, 24.6, 21.8, 23.7, 22.8, 19.9, 17.6, 14.9, 19.1, 14.2, 16.6, 14.5, 14.4, 13.7, 12.0, 13.5, 13.4, 14.9, 14.3, 11.7, 12.1, 12.0, 11.3, 9.7, 12.6, 10.0, 10.2, 10.2, 9.7, 10.6, 8.3, 8.4, 10.3, 8.6, 8.2, 6.7, 8.2, 7.4, 8.2, 6.7, 7.1, 6.6, 6.4, 5.8, 6.6, 5.4, 6.8, 4.8, 5.3, 5.2, 4.5, 5.0, 4.2, nan, 3.2, 4.1, 4.0, 3.4, 2.9, 3.7, 2.9, 2.4, 2.2, 3.6, 2.5, 2.9, 2.4, 1.7, 2.2, 2.6, 1.4, 1.4, 1.4, 2.3, 1.5, 1.3, 1.2, 1.2, 0.6, 0.5, 0.4, 0.9, 0.2, 0.1, 0.1, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.4, 0.4, 44.6, 36.9, 34.0, 31.2, 28.5, 32.1, 24.9, 27.5, 27.7, 21.5, 19.6, 19.5, 18.2, 19.0, 23.4, 17.6, 22.2, 20.9, 16.4, 20.1, 17.2, 15.7, 18.1, 15.6, 18.1, 16.6, 13.7, 14.0, 13.9, 13.1, 13.0, 12.9, 11.4, 11.5, 12.3, 10.5, 10.9, 9.3, 11.1, 11.1, 10.9, 9.6, 9.8, 10.7, 10.7, 10.1, 9.6, 9.5, 9.4, 9.3, 8.6, 9.3, 7.2, 8.7, 10.7, 7.1, 8.0, 8.0, 8.9, 6.5, 8.0, 7.3, 7.7, 6.7, 6.6, 8.1, 7.0, 7.4, 7.3, 6.8, 6.7, 6.1, 6.9, 5.4, 7.9, 5.5, 5.2, 4.6, 4.1, 5.0, 4.3, 4.7, 4.7, 4.7, 4.1, 4.1, 3.6, 3.6, 4.0, 3.8, 3.7, 3.7, 3.7, 3.6, 2.8, 3.3, 2.7, 2.7, 2.6, 3.0, 2.4, 2.7, 2.2, 2.2, 1.9, 1.9, 1.8, 1.7, 1.6, 1.6, 1.6, 1.5, 1.4, 1.0, 1.0, 0.8, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 22.8, 27.1, 19.1, 16.6, 17.0, 14.0, 13.7, 13.6, 13.6, 11.9, 13.0, 12.4, 11.5, 12.3, 10.8, 10.5, 9.3, 7.1, 8.5, 7.9, 7.0, 6.8, 8.7, 6.0, 4.8, 4.6, 4.1, 3.5, 4.0, 3.9, 3.7, 3.6, 3.5, 2.8, 3.2, 3.1, 2.9, 2.8, 2.3, 2.2, 2.2, 2.1, 2.1, 2.5, 2.0, 1.9, 1.8, 2.3, 1.7, 1.7, 1.5, 1.4, 1.3, 1.2, 1.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.4, 17.0, 15.0, 15.0, 11.0, 11.0, 8.0, 8.0, 7.0, 7.0, 6.0, 6.0, 6.0, 5.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 3.0, 3.0, 1.0, 0.0, 0.0, 0.0, 0.0, -1.0, -1.0, -4.0, 0.0, 4.1, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 43.8, 38.58, 37.48, 34.42, 33.14, 28.52, 30.48, 26.76, 28.46, 28.54, 27.32, 23.98, 26.24, 22.58, 19.74, 22.24, 19.2, 17.56, 17.16, 16.26, 15.7, 18.48, 15.2, 14.38, 13.24, 11.86, 11.86, 12.72, 14.68, 10.68, 9.74, 1.64, 1.52, 0.8, 0.0, 0.0, -0.1, -0.2, 48.6, 38.4, 29.3, 30.6, 24.1, 24.8, 21.7, 24.0, 23.2, 23.1, 20.1, 21.1, 19.8, 22.0, 18.7, 18.8, 17.1, 16.4, 15.7, 13.7, 15.6, 13.3, 13.5, 12.2, 15.5, 14.2, 12.6, 11.5, 11.7, 13.0, 10.7, 12.2, 9.2, 8.6, 9.6, 8.4, 8.3, 8.5, 7.3, 8.9, 7.1, 7.1, 7.1, 6.4, 6.3, 6.1, 7.0, 7.3, 5.3, 6.0, 7.5, 4.7, 5.7, 7.1, 4.9, 5.3, nan, 4.1, 4.0, 3.7, 4.5, 4.5, 3.7, 4.3, 2.8, 3.7, 2.1, 2.6, 2.1, 2.0, 2.0, 1.9, 2.4, 1.7, 1.7, 2.2, 2.6, 1.9, 1.3, 1.5, 1.4, 1.4, 0.9, 1.4, 1.3, 1.2, 0.7, 1.0, 0.4, 0.3, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -0.1, 0.1, 32.9, 32.3, 28.5, 28.9, 26.4, 21.8, 23.2, 19.2, 20.8, 20.2, 17.8, 19.7, 18.2, 23.0, 17.4, 17.9, 17.8, 20.5, 16.3, 16.6, 21.9, 15.8, 16.6, 19.0, 13.8, 14.5, 15.2, 13.1, 12.6, 13.6, 12.6, 14.6, 13.5, 14.0, 12.4, 12.3, 11.3, 13.2, 12.0, 12.4, 10.9, 9.4, 10.7, 10.2, 9.1, 12.0, 10.9, 11.8, 10.2, 9.6, 8.5, 8.4, 9.4, 8.7, 8.7, 9.7, 7.6, 8.0, 8.4, 8.8, 7.8, 9.2, 8.4, 7.3, 7.6, 8.1, 7.5, 7.4, 7.8, 6.8, 7.7, 6.7, 6.7, 6.2, 6.6, 5.6, 6.5, 5.9, 5.9, 6.4, 6.8, 7.3, 6.3, 6.3, 5.7, 6.2, 6.1, 5.5, 5.9, 5.8, 5.8, 5.3, 4.9, 4.8, 5.2, 4.4, 4.4, 4.1, 4.1, 3.4, 3.7, 3.7, 3.6, 2.9, 2.9, 3.4, 2.8, 3.2, 3.2, 3.0, 2.1, 2.0, 1.7, 1.6, 1.5, 1.5, 1.4, 1.3, 0.8, 0.7, 1.2, 1.0, 0.9, 2.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 28.4, 30.0, 24.4, 31.3, 24.0, 24.0, 22.8, 17.7, 18.2, 19.1, 14.2, 14.3, 12.6, 10.5, 12.5, 10.3, 12.5, 9.3, 10.2, 11.5, 9.2, 7.1, 8.5, 8.0, 7.3, 7.0, 6.6, 5.4, 4.1, 4.6, 3.9, 4.2, 3.9, 2.8, 3.8, 2.7, 2.6, 2.4, 2.2, 2.1, 2.1, 1.9, 1.8, 1.5, 1.5, 1.4, 1.4, 1.9, 1.3, 1.3, 1.3, 1.2, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 15.0, 15.0, 14.0, 13.0, 12.0, 12.0, 9.0, 9.0, 7.0, 6.0, 5.0, 5.0, 5.0, 5.0, 4.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 3.0, 3.0, 2.0, 2.0, 2.0, 1.0, 0.0, -2.0, -3.0, -3.0, nan, 5.3, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 43.0, 39.8, 36.24, 33.48, 31.24, 24.7, 25.2, 24.52, 23.88, 23.52, 23.5, 21.44, 23.38, 19.18, 18.5, 18.22, 18.06, 20.72, 19.7, 17.44, 14.6, 14.34, 15.18, 16.74, 12.68, 12.62, 12.42, 12.18, 13.16, 11.44, 11.2, 9.72, 10.06, 1.12, 0.8, 0.68, 0.0, 0.0, 0.7, 47.7, 34.8, 30.9, 30.0, 31.3, 29.9, 27.0, 27.9, 21.9, 23.1, 22.0, 18.4, 16.6, 16.7, 19.0, 17.8, 15.2, 15.0, 16.1, 14.4, 14.7, 13.2, 14.5, 12.6, 14.0, 10.6, 9.5, 8.9, 9.3, 10.1, 10.3, 10.2, 8.5, 8.5, 7.5, 7.5, 7.2, 8.2, 8.4, 7.4, 8.8, 6.1, 7.8, 7.1, 5.9, 5.5, 5.5, 5.4, 4.3, 6.2, 3.9, 5.2, 4.0, 4.4, 4.3, 4.2, 3.1, 3.0, 3.3, 2.7, 2.9, 3.4, 3.3, 2.8, 2.7, 1.9, 1.9, 2.3, 1.8, 2.7, 1.6, 2.1, 2.1, 2.0, nan, 1.7, 1.6, 1.6, 1.1, 1.5, 1.0, 0.9, 1.3, 0.8, 0.6, 0.5, 0.4, 0.1, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.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, 40.0, 33.5, 30.7, 34.2, 29.4, 31.3, 28.8, 28.7, 21.4, 26.7, 21.2, 21.1, 21.0, 20.1, 25.5, 19.5, 20.4, 18.8, 23.0, 20.6, 18.1, 17.4, 17.7, 16.4, 16.3, 19.7, 15.6, 15.4, 14.2, 17.6, 19.0, 17.5, 14.9, 14.3, 13.0, 12.3, 12.6, 12.1, 11.3, 13.2, 11.9, 11.9, 11.6, 10.3, 10.5, 10.5, 9.9, 8.7, 8.7, 8.5, 9.2, 8.2, 8.1, 8.3, 8.2, 8.6, 8.6, 8.1, 8.6, 8.1, 9.0, 8.4, 6.8, 7.6, 5.8, 7.0, 6.5, 6.4, 7.3, 6.2, 5.6, 5.5, 5.4, 5.8, 5.7, 5.7, 5.2, 5.6, 4.9, 5.3, 4.6, 3.9, 4.4, 4.9, 3.9, 4.3, 4.3, 4.2, 4.2, 3.9, 3.4, 3.9, 3.6, 3.0, 3.4, 3.3, 2.8, 2.2, 2.7, 3.1, 2.5, 2.9, 2.3, 2.0, 2.5, 1.9, 1.9, 1.9, 2.4, 1.8, 1.3, 1.7, 1.7, 1.5, 1.4, 0.9, 1.3, 1.2, 1.0, 0.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 24.0, 18.4, 16.2, 16.0, 14.0, 14.7, 14.0, 11.8, 10.5, 11.1, 11.1, 9.1, 8.8, 9.1, 8.5, 10.8, 10.0, 9.3, 9.6, 8.0, 7.5, 8.9, 8.8, 7.3, 7.1, 7.1, 7.9, 7.1, 6.6, 6.5, 5.4, 5.9, 5.5, 4.8, 5.2, 5.2, 5.1, 4.4, 4.3, 4.1, 4.5, 3.7, 3.6, 3.5, 3.1, 2.9, 2.3, 2.1, 2.5, 1.9, 1.7, 1.7, 1.6, 1.5, 1.1, 1.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 26.0, 18.0, 15.0, 14.0, 12.0, 12.0, 11.0, 11.0, 8.0, 7.0, 7.0, 7.0, 7.0, 7.0, 7.0, 5.0, 5.0, 4.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 2.0, 2.0, 1.0, 1.0, 0.0, 0.0, -2.0, -3.0, nan, 1.3, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 42.28, 36.46, 32.58, 27.24, 26.02, 25.42, 24.0, 23.6, 23.34, 26.3, 24.12, 22.42, 24.94, 24.9, 23.9, 24.44, 20.24, 21.86, 16.54, 19.1, 15.2, 14.9, 14.18, 12.86, 12.4, 11.7, 11.2, 11.1, 9.0, 5.52, 4.7, 4.0, 2.4, 1.8, 0.9, 0.64, 0.0, -0.1, -0.7, 45.1, 31.6, 28.8, 25.0, 22.8, 21.3, 22.1, 22.1, 20.9, 22.7, 19.1, 19.3, 21.5, 18.6, 21.8, 18.5, 15.1, 15.2, 14.7, 15.0, 12.1, 11.2, 10.7, 13.0, 10.2, 9.6, 10.6, 9.5, 12.9, 10.7, 10.3, 10.8, 9.6, 8.9, 10.6, 7.7, 9.2, 7.8, 7.8, 10.6, 7.5, 6.0, 6.2, 4.5, 4.3, 4.8, 5.7, 4.6, 3.8, 4.8, 4.1, 3.5, 4.3, 4.3, 4.1, 5.3, 3.8, 3.6, 3.1, 2.9, 2.7, 3.2, 3.1, 1.9, 2.4, 2.3, 2.2, 1.5, 1.9, 1.3, 1.8, 1.7, 1.6, nan, 1.4, 1.3, 0.5, 0.9, 0.3, 0.3, 0.2, 0.2, 0.2, 0.1, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, nan, 38.4, 36.4, 29.5, 25.2, 29.2, 28.2, 26.3, 25.8, 26.1, 21.4, 18.5, 19.3, 24.8, 24.0, 17.7, 20.5, 16.4, 16.2, 17.9, 20.4, 14.2, 14.1, 16.4, 15.28, 13.7, 17.6, 13.6, 16.6, 14.4, 15.3, 17.3, 12.3, 14.1, 15.1, 13.0, 11.9, 12.2, 12.7, 12.6, 13.0, 14.2, 11.1, 10.9, 9.6, 10.7, 11.1, 9.9, 8.8, 8.9, 8.8, 7.7, 9.7, 8.6, 8.5, 8.3, 7.8, 7.8, 8.2, 7.7, 7.5, 8.0, 7.4, 7.8, 7.2, 7.2, 6.6, 6.5, 6.9, 5.9, 6.4, 6.9, 6.4, 6.3, 5.6, 5.9, 7.3, 6.3, 5.2, 6.0, 5.5, 4.5, 4.9, 4.8, 3.9, 4.2, 3.7, 4.6, 4.1, 4.0, 4.0, 3.7, 3.0, 3.0, 3.1, 2.6, 2.6, 2.5, 2.1, 2.0, 1.9, 1.9, 2.4, 2.3, 1.5, 1.4, 1.3, 1.3, 1.3, 0.8, 0.5, 0.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 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, 43.1, 33.8, 20.7, 17.2, 14.0, 14.4, 16.8, 10.9, 9.8, 10.0, 8.9, 8.3, 8.5, 9.1, 7.3, 7.3, 9.5, 7.7, 7.6, 8.5, 8.5, 7.9, 7.2, 7.7, 7.3, 6.5, 5.9, 6.9, 5.0, 4.7, 5.1, 4.1, 4.4, 3.9, 4.2, 4.1, 3.6, 3.4, 3.6, 3.6, 4.0, 3.5, 2.7, 2.5, 2.0, 2.2, 2.2, 2.1, 2.0, 1.9, 1.8, 1.8, 1.7, 1.7, 1.6, 1.5, 1.5, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 20.0, 18.0, 11.0, 8.0, 7.0, 6.0, 6.0, 6.0, 6.0, 6.0, 5.0, 5.0, 5.0, 5.0, 5.0, 5.0, 4.0, 4.0, 4.0, 4.0, 3.0, 3.0, 2.0, 2.0, 2.0, 1.0, 0.0, 0.0, 0.0, -2.0, 1.5, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan], 'dk_salary': [7000.0, 6300.0, 6500.0, 8100.0, 6400.0, 6100.0, 6700.0, 5400.0, 5700.0, 6500.0, 6400.0, 6900.0, 5800.0, 7400.0, 5900.0, 5900.0, 6100.0, 5800.0, 6900.0, 5800.0, 6200.0, 6000.0, 6300.0, 6800.0, 5900.0, 5600.0, 5000.0, 5500.0, 5700.0, 5700.0, 5600.0, 5300.0, 4400.0, 4000.0, 4800.0, 4000.0, 5200.0, 5100.0, 4500.0, 6800.0, 10000.0, 8000.0, 4500.0, 4000.0, 5800.0, 6200.0, 7900.0, 7200.0, 7000.0, 6000.0, 6900.0, 4000.0, 7800.0, 5000.0, 5500.0, 6400.0, 4500.0, 6100.0, 4300.0, 4400.0, 4000.0, 5700.0, 4800.0, 4400.0, 5100.0, 4200.0, 4900.0, 4600.0, 8500.0, 4000.0, 5200.0, 4000.0, 7000.0, 4000.0, 4600.0, 5900.0, 5400.0, 5300.0, 6000.0, 5100.0, 4000.0, 4800.0, 4100.0, 4900.0, 6700.0, 5600.0, 4000.0, 4000.0, 6500.0, 4000.0, 4400.0, 4600.0, 5600.0, 4800.0, 5500.0, 4200.0, 4000.0, nan, 4000.0, 4000.0, 4000.0, 4200.0, 5500.0, 6600.0, 6000.0, 4000.0, 5000.0, 4300.0, 4700.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4400.0, 4400.0, 4500.0, 4000.0, 4000.0, 4100.0, 4000.0, 4100.0, 4700.0, 4000.0, 4400.0, 4000.0, 4000.0, 4400.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 7300.0, 6100.0, 6700.0, 4700.0, 4700.0, 6800.0, 6400.0, 5200.0, 7700.0, 4600.0, 4100.0, 5800.0, 4900.0, 5600.0, 4300.0, 5000.0, 6200.0, 6500.0, 4000.0, 4000.0, 6500.0, 3800.0, 7000.0, 7900.0, 5100.0, 6400.0, 4400.0, 3900.0, 7100.0, 4800.0, 6000.0, 4000.0, 4300.0, 6300.0, 6500.0, 5700.0, 4700.0, 3800.0, 5900.0, 5600.0, 4100.0, 5100.0, 4800.0, 5700.0, 3300.0, 5700.0, 4000.0, 5500.0, 6600.0, 5800.0, 4100.0, 4600.0, 6900.0, 6000.0, 4200.0, 3100.0, 4700.0, 5600.0, 6300.0, 4300.0, 6500.0, 3300.0, 6400.0, 3000.0, 4900.0, 4200.0, 3600.0, 4500.0, 6100.0, 3000.0, 4100.0, 4500.0, 3600.0, 5000.0, 4400.0, 3900.0, 5900.0, 4800.0, 3000.0, 3300.0, 4500.0, 9000.0, 4900.0, 3600.0, 4500.0, 3400.0, 3300.0, 3900.0, 5200.0, 4200.0, 3000.0, 4200.0, 3000.0, 3000.0, 3200.0, 3600.0, 3000.0, 3900.0, 3000.0, 4400.0, 3000.0, 3900.0, 3000.0, 4400.0, 4200.0, 4300.0, 3000.0, 3000.0, 4000.0, 3800.0, 4200.0, 3800.0, 4000.0, 3400.0, 5000.0, 3000.0, 3000.0, 3800.0, 3000.0, 3000.0, 3700.0, 3500.0, 3000.0, 3200.0, 3000.0, 3600.0, 3000.0, 3200.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 4400.0, 3000.0, 3000.0, 3000.0, 3000.0, 3900.0, 3000.0, 3800.0, 3000.0, 3200.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3900.0, 3100.0, 3600.0, 3300.0, 3500.0, 3000.0, 3000.0, 3000.0, 3700.0, 4400.0, 6000.0, 4100.0, 4200.0, 4200.0, 7000.0, 3600.0, 2800.0, 4400.0, 3700.0, 3100.0, 5500.0, 4000.0, 3800.0, 5300.0, 5800.0, 5900.0, 7200.0, 2500.0, 3800.0, 3600.0, 5000.0, 4300.0, 3300.0, 4500.0, 3700.0, 3900.0, 3500.0, 2500.0, 2600.0, 3300.0, 3200.0, 3400.0, 5100.0, 4600.0, 3000.0, 4900.0, 5200.0, 3400.0, 2700.0, 4700.0, 2800.0, 2500.0, 3100.0, 2500.0, 2800.0, 3000.0, 3300.0, 3300.0, 2900.0, 3100.0, 2700.0, 2700.0, 3100.0, 3200.0, 2500.0, 3000.0, 3500.0, 2600.0, 2900.0, 3200.0, 2500.0, 2500.0, 2500.0, 3000.0, 2500.0, 2500.0, 3100.0, 3400.0, 2500.0, 2500.0, 2600.0, 2500.0, 2500.0, 2500.0, 2500.0, 3500.0, 3400.0, 2800.0, 2500.0, 2600.0, 2500.0, 2800.0, 2500.0, 2500.0, 2500.0, 3600.0, 3100.0, 2700.0, 2500.0, 3000.0, 2500.0, 2500.0, 2800.0, 2400.0, 2000.0, 3100.0, 3200.0, 2800.0, 3700.0, 3900.0, 2100.0, 3000.0, 2300.0, 2400.0, 2100.0, 2600.0, 2800.0, 2900.0, 3500.0, 2000.0, 2400.0, 2400.0, 3000.0, 3600.0, 2900.0, 3300.0, 2800.0, 2700.0, 2600.0, 2200.0, 2000.0, 2200.0, 2500.0, 2300.0, 2500.0, 4000.0, 3400.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 6800.0, 6400.0, 6700.0, 6500.0, 6100.0, 6600.0, 7700.0, 5900.0, 5800.0, 5900.0, 5200.0, 5800.0, 5100.0, 5700.0, 4100.0, 6300.0, 6900.0, 8200.0, 6200.0, 5600.0, 6400.0, 6800.0, 5500.0, 6000.0, 5700.0, 5900.0, 5100.0, 5100.0, 5800.0, 6500.0, 5800.0, 4100.0, 5900.0, 4100.0, 4000.0, 5000.0, 4100.0, 5400.0, 7100.0, 7800.0, 6200.0, 4800.0, 5600.0, 10000.0, 5600.0, 4400.0, 8200.0, 6800.0, 4600.0, 6000.0, 6400.0, 5700.0, 6400.0, 6500.0, 7600.0, 5200.0, 5400.0, 4200.0, 4500.0, 4700.0, 7500.0, 4300.0, 4000.0, 4300.0, 6100.0, 5900.0, 4000.0, 7400.0, 5200.0, 4900.0, 4000.0, 4000.0, 5200.0, 7900.0, 4200.0, 4000.0, 4000.0, 4100.0, 4000.0, 5100.0, 4000.0, 4700.0, 4500.0, 6100.0, 5800.0, 5000.0, 4100.0, 4000.0, 4300.0, 5700.0, 4200.0, 4000.0, 4500.0, 4500.0, nan, 4700.0, 4000.0, 4800.0, 4000.0, 4000.0, 4800.0, 4600.0, 8400.0, 0.0, 4000.0, 4300.0, 4000.0, 4000.0, 4000.0, 4300.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4900.0, 4500.0, 4000.0, 5300.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 0.0, 4000.0, 4000.0, 4000.0, 4400.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4400.0, 4000.0, 4000.0, 4600.0, 4000.0, 4000.0, 4500.0, 6800.0, 6500.0, 5900.0, 6200.0, 6400.0, 7500.0, 4500.0, 6000.0, 7700.0, 5800.0, 3000.0, 6300.0, 6000.0, 6300.0, 5600.0, 3000.0, 4300.0, 4700.0, 5900.0, 4800.0, 5200.0, 3400.0, 5700.0, 6300.0, 3500.0, 4900.0, 4200.0, 3000.0, 4000.0, 4100.0, 3000.0, 3500.0, 3200.0, 6700.0, 6000.0, 5700.0, 6400.0, 3000.0, 4700.0, 5100.0, 3700.0, 3700.0, 4900.0, 4200.0, 3000.0, 4600.0, 4400.0, 6500.0, 4900.0, 6000.0, 3000.0, 3000.0, 4600.0, 3700.0, 3000.0, 4900.0, 3000.0, 4300.0, 3800.0, 3600.0, 5600.0, 6200.0, 3000.0, 3800.0, 5800.0, 4100.0, 5300.0, 4400.0, 4100.0, 3500.0, 3500.0, 3000.0, 4600.0, 3900.0, 8100.0, 4800.0, 3900.0, 3000.0, 4700.0, 3300.0, 3000.0, 4700.0, 5000.0, 6400.0, 0.0, 3000.0, 7200.0, 5500.0, 6100.0, 3500.0, 5700.0, 4000.0, 4300.0, 3000.0, 4100.0, 7400.0, 3800.0, 4300.0, 4800.0, 3900.0, 3100.0, 3500.0, 3500.0, 4000.0, 3400.0, 4200.0, 5800.0, 4100.0, 3800.0, 3300.0, 4800.0, 3000.0, 3000.0, 3000.0, 3500.0, 4200.0, 5300.0, 3300.0, 3700.0, 4500.0, 3900.0, 3000.0, 3000.0, 3000.0, 3000.0, 3400.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3200.0, 4000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 6300.0, 3000.0, 5200.0, 3000.0, 3900.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3500.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 4700.0, 4000.0, 4200.0, 5400.0, 2600.0, 7000.0, 3700.0, 4400.0, 4600.0, 3000.0, 3800.0, 5100.0, 3000.0, 2500.0, 5300.0, 3200.0, 3300.0, 5300.0, 5200.0, 2500.0, 5600.0, 3400.0, 2500.0, 2700.0, 4300.0, 5000.0, 3600.0, 3000.0, 2500.0, 3300.0, 6300.0, 4800.0, 3000.0, 3800.0, 3700.0, 2500.0, 2500.0, 2500.0, 2800.0, 3900.0, 3100.0, 2900.0, 2700.0, 3400.0, 2500.0, 2700.0, 2600.0, 3200.0, 2900.0, 3000.0, 2800.0, 2500.0, 3200.0, 2800.0, 2500.0, 2500.0, 3500.0, 2500.0, 2700.0, 2500.0, 2500.0, 2500.0, 3900.0, 3200.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 3100.0, 2900.0, 2500.0, 2500.0, 2800.0, 2500.0, 2800.0, 2600.0, 2500.0, 4100.0, 2500.0, 2500.0, 3200.0, 2600.0, 2500.0, 2500.0, 2600.0, 2500.0, 3600.0, 2500.0, 2900.0, 3800.0, 3700.0, 3300.0, 3000.0, 2400.0, 2800.0, 2900.0, 2500.0, 3400.0, 4000.0, 3500.0, 3400.0, 2000.0, 2200.0, 2800.0, 3100.0, 3200.0, 2200.0, 2600.0, 3100.0, 2000.0, 3900.0, 2000.0, 2100.0, 2600.0, 2300.0, 2700.0, 2100.0, 2700.0, nan, 3400.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 7400.0, 7300.0, 6900.0, 7200.0, 5600.0, 6800.0, 5300.0, 6500.0, 6100.0, 6200.0, 5800.0, 5500.0, 6200.0, 6400.0, 6300.0, 5000.0, 6500.0, 5100.0, 5900.0, 5400.0, 5200.0, 5700.0, 7800.0, 5900.0, 6000.0, 5700.0, 6600.0, 6700.0, 5200.0, 5300.0, 6400.0, 5000.0, 5500.0, 0.0, 4200.0, 5000.0, 4100.0, 4900.0, 4100.0, 7900.0, 4000.0, 5400.0, 7800.0, 6800.0, 7600.0, 6900.0, 6700.0, 4000.0, 5100.0, 5400.0, 6500.0, 7600.0, 4900.0, 4400.0, 8300.0, 5800.0, 4000.0, 4900.0, 6100.0, 6400.0, 7000.0, 4800.0, 5400.0, 4700.0, 6600.0, 4500.0, 6000.0, 5000.0, 4800.0, 7300.0, 4000.0, 5900.0, 4200.0, 4800.0, 4000.0, 4400.0, 4000.0, 4800.0, 5700.0, 4200.0, 4300.0, 5800.0, 4300.0, 4000.0, 4000.0, 4000.0, 4600.0, 4000.0, 5000.0, 4000.0, 4600.0, 4200.0, 4000.0, 4000.0, 6200.0, 4000.0, 5500.0, 4300.0, 4000.0, 5000.0, 4900.0, 4000.0, 0.0, 4000.0, 5200.0, 4000.0, 4000.0, 4000.0, 4000.0, 0.0, 4000.0, 4000.0, 5300.0, nan, 4000.0, 4000.0, 4000.0, 4700.0, 4000.0, 5500.0, 4000.0, 4000.0, 4000.0, 4300.0, 4400.0, 4100.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4300.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 6400.0, 4200.0, 3000.0, 6100.0, 4800.0, 6200.0, 5500.0, 6300.0, 6100.0, 7900.0, 7100.0, 4100.0, 3900.0, 3800.0, 5900.0, 4400.0, 4300.0, 3100.0, 6500.0, 3400.0, 4200.0, 6700.0, 6200.0, 3600.0, 6600.0, 7200.0, 6000.0, 6000.0, 6800.0, 6500.0, 4500.0, 3000.0, 7000.0, 3700.0, 4900.0, 6900.0, 5900.0, 3000.0, 4000.0, 4500.0, 5200.0, 5900.0, 5400.0, 5000.0, 5200.0, 5000.0, 6300.0, 3200.0, 4400.0, 6100.0, 4000.0, 5600.0, 5800.0, 4100.0, 4200.0, 4500.0, 6000.0, 3900.0, 4100.0, 3000.0, 3700.0, 4300.0, 3700.0, 5500.0, 3400.0, 3000.0, 3700.0, 3300.0, 4900.0, 3000.0, 4200.0, 0.0, 4500.0, 3000.0, 3000.0, 3000.0, 3800.0, 4000.0, 3000.0, 5200.0, 5100.0, 3100.0, 0.0, 0.0, 3000.0, 3400.0, 3000.0, 6200.0, 3000.0, 3000.0, 3700.0, 3000.0, 3000.0, 3400.0, 3600.0, 6000.0, 4600.0, 3200.0, 4300.0, 5200.0, 3000.0, 3000.0, 3000.0, 3000.0, 3200.0, 3000.0, 3000.0, 3000.0, 3900.0, 3900.0, 0.0, 3000.0, 3000.0, 4900.0, 3400.0, 5400.0, 3000.0, 3600.0, 4600.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3200.0, 3700.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3800.0, 3000.0, 3000.0, 3600.0, 5700.0, 3300.0, 4000.0, 3200.0, 3800.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3100.0, 3100.0, 4100.0, 4000.0, 3400.0, 2900.0, 4300.0, 2900.0, 3800.0, 7000.0, 5100.0, 2500.0, 2500.0, 5200.0, 4200.0, 2700.0, 2800.0, 3100.0, 4900.0, 3300.0, 4800.0, 5300.0, 5400.0, 5900.0, 2700.0, 2500.0, 4500.0, 2500.0, 2500.0, 4700.0, 3500.0, 3700.0, 3500.0, 2800.0, 2500.0, 2700.0, 4400.0, 3400.0, 5000.0, 6000.0, 3400.0, 2500.0, 4000.0, 5500.0, 2500.0, 2500.0, 2500.0, 2500.0, 3900.0, 5700.0, 2800.0, 2800.0, 3000.0, 3000.0, 4900.0, 2500.0, 2500.0, 2500.0, 2500.0, 3500.0, 2500.0, 3100.0, 2500.0, 3900.0, 2500.0, 2500.0, 3300.0, 3000.0, 2500.0, 2500.0, 2500.0, 2800.0, 2800.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2800.0, 3000.0, 2500.0, 3200.0, 2500.0, 3400.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2700.0, 2500.0, 2500.0, 2500.0, 4100.0, 3700.0, 3200.0, 3800.0, 3500.0, 2500.0, 2200.0, 2900.0, 2800.0, 2600.0, 2400.0, 3000.0, 4000.0, 3100.0, 3900.0, 3400.0, 2800.0, 3100.0, 2900.0, 3300.0, 3000.0, 3600.0, 2300.0, 2800.0, 2600.0, 2500.0, 2100.0, 3000.0, 2700.0, 2000.0, 2700.0, 2900.0, nan, 3600.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, 7200.0, 6100.0, 7100.0, 5600.0, 8100.0, 7300.0, 5800.0, 5300.0, 5900.0, 5400.0, 7000.0, 5600.0, 5900.0, 7800.0, 6600.0, 5300.0, 7400.0, 5000.0, 5800.0, 6300.0, 5800.0, 5600.0, 5500.0, 5700.0, 6000.0, 6700.0, 5500.0, 5100.0, 5200.0, 4700.0, 4800.0, 4100.0, 4100.0, 4100.0, 5500.0, 4700.0, 4700.0, 4300.0, 4300.0, 5800.0, 7600.0, 6900.0, 6300.0, 4500.0, 4900.0, 7500.0, 5700.0, 8000.0, 5700.0, 6200.0, 5500.0, 7800.0, 5900.0, 4700.0, 4000.0, 4000.0, 4300.0, 6500.0, 4200.0, 6400.0, 5600.0, 5700.0, 4000.0, 4100.0, 4700.0, 4000.0, 4000.0, 5200.0, 5500.0, 6800.0, 4800.0, 6700.0, 6600.0, 4700.0, 4000.0, 5000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4800.0, 4700.0, 4500.0, 7000.0, 5800.0, 4000.0, 4400.0, 4000.0, 4000.0, 4000.0, 6000.0, 4000.0, 4000.0, 4000.0, 5100.0, 4400.0, 4300.0, 0.0, 4900.0, 4800.0, 4000.0, 4300.0, 4400.0, 7100.0, 4000.0, 4000.0, 4000.0, 4000.0, 0.0, 4000.0, 4000.0, 4000.0, nan, 4000.0, 4000.0, 4000.0, 4100.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4100.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4200.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, 4000.0, nan, 5800.0, 6700.0, 6000.0, 5400.0, 6600.0, 6400.0, 3700.0, 5900.0, 6700.0, 5000.0, 3400.0, 4100.0, 5800.0, 5700.0, 6700.0, 6800.0, 6900.0, 6000.0, 5400.0, 5200.0, 3400.0, 5300.0, 6100.0, 5100.0, 0.0, 6800.0, 5000.0, 3000.0, 3500.0, 4800.0, 5200.0, 0.0, 4400.0, 3000.0, 4500.0, 3200.0, 4700.0, 4300.0, 6300.0, 3000.0, 6500.0, 4000.0, 4400.0, 3200.0, 4600.0, 8500.0, 3000.0, 4400.0, 5600.0, 3700.0, 4000.0, 6300.0, 4500.0, 4400.0, 3000.0, 5000.0, 4800.0, 5100.0, 3000.0, 5300.0, 3400.0, 3700.0, 3900.0, 3000.0, 7100.0, 3000.0, 5700.0, 3000.0, 7000.0, 3200.0, 3700.0, 3100.0, 4600.0, 4800.0, 5300.0, 4400.0, 3500.0, 3000.0, 4600.0, 4100.0, 4500.0, 6200.0, 4000.0, 3000.0, 3000.0, 0.0, 4900.0, 3000.0, 5100.0, 4000.0, 3000.0, 3000.0, 3400.0, 3400.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3300.0, 4900.0, 4400.0, 4500.0, 3000.0, 3300.0, 3000.0, 5500.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3800.0, 3000.0, 3000.0, 3000.0, 7500.0, 3000.0, 3100.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 4600.0, 3000.0, 3900.0, 3000.0, 3500.0, 3000.0, 3100.0, 3200.0, 3000.0, 4500.0, 3000.0, 3300.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3000.0, 3100.0, 3000.0, 3000.0, 6300.0, 3400.0, 6000.0, 4300.0, 3300.0, 4000.0, 5200.0, 4800.0, 2500.0, 6800.0, 2500.0, 3900.0, 3000.0, 4700.0, 2500.0, 2500.0, 4400.0, 3500.0, 3300.0, 4100.0, 5800.0, 2700.0, 2500.0, 2500.0, 3800.0, 2500.0, 4600.0, 5300.0, 2500.0, 3300.0, 5700.0, 2500.0, 3100.0, 3600.0, 3500.0, 3200.0, 3100.0, 2500.0, 2900.0, 3500.0, 2600.0, 2500.0, 2500.0, 5100.0, 2500.0, 3500.0, 3400.0, 3500.0, 2800.0, 2800.0, 3500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2700.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 3000.0, 2900.0, 2500.0, 2500.0, 2500.0, 2500.0, 2500.0, 3200.0, 2600.0, 3900.0, 2400.0, 3300.0, 3900.0, 3700.0, 3400.0, 3700.0, 4000.0, 2900.0, 2300.0, 3400.0, 2900.0, 2800.0, 2600.0, 3500.0, 2100.0, 3200.0, 2900.0, 2700.0, 2000.0, 3000.0, 2500.0, 3100.0, 3600.0, 2700.0, 2200.0, 2400.0, 3300.0, 3700.0, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan]}) df['id'] = range(len(df)) df['is_home'] = [True for i in range(len(df))] # mock this for now; not currently used in tests return df[(df['week'].isin(weeks)) & (df['dk_salary'] > 0) & (df['fd_salary'] > 0)]
8,075.137931
232,951
0.560516
52,040
234,179
2.522002
0.020619
0.042348
0.060048
0.076285
0.737712
0.666502
0.659187
0.631079
0.627376
0.608381
0
0.34558
0.128765
234,179
28
232,952
8,363.535714
0.297699
0.002502
0
0
0
0
0.322225
0
0
0
0
0.035714
0
1
0.076923
false
0
0.230769
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
0
1
1
1
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
6
af330f79d05a808377252059dfe5dd8766b61707
31
py
Python
models/__init__.py
RishiTejaMadduri/pyramid-fuse
a8bad9adc2734572c87c5ee4c2a956aa2d04fb97
[ "MIT" ]
null
null
null
models/__init__.py
RishiTejaMadduri/pyramid-fuse
a8bad9adc2734572c87c5ee4c2a956aa2d04fb97
[ "MIT" ]
null
null
null
models/__init__.py
RishiTejaMadduri/pyramid-fuse
a8bad9adc2734572c87c5ee4c2a956aa2d04fb97
[ "MIT" ]
null
null
null
from . import pyramid_fusion2
10.333333
29
0.806452
4
31
6
1
0
0
0
0
0
0
0
0
0
0
0.038462
0.16129
31
2
30
15.5
0.884615
0
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
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
6
af3de052b44577e454d5b8ff81e254a5fb893d4c
164
py
Python
openpnm/models/geometry/pore_surface_area/__init__.py
lixuekai2001/OpenPNM
9026f0fed427d37f4caf1a79e4a7684490d52cf6
[ "MIT" ]
null
null
null
openpnm/models/geometry/pore_surface_area/__init__.py
lixuekai2001/OpenPNM
9026f0fed427d37f4caf1a79e4a7684490d52cf6
[ "MIT" ]
null
null
null
openpnm/models/geometry/pore_surface_area/__init__.py
lixuekai2001/OpenPNM
9026f0fed427d37f4caf1a79e4a7684490d52cf6
[ "MIT" ]
null
null
null
r""" pore_surface_area Models ------------------------- This model contains a selection of functions for Calculating pore surface area. """ from ._funcs import *
18.222222
79
0.652439
20
164
5.2
0.85
0.211538
0.288462
0
0
0
0
0
0
0
0
0
0.140244
164
8
80
20.5
0.737589
0.79878
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
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
0
0
0
6
bb89be37c57b1dc63ec322c3bfbfc5183e296c3a
147
py
Python
inscribete/views.py
Kiri23/Django-custom-user-template
74ed531ade35c3018ca3068e8c68b966bcc4f316
[ "MIT" ]
null
null
null
inscribete/views.py
Kiri23/Django-custom-user-template
74ed531ade35c3018ca3068e8c68b966bcc4f316
[ "MIT" ]
3
2020-02-12T00:04:04.000Z
2021-06-10T21:33:23.000Z
inscribete/views.py
Kiri23/Django-custom-user-template
74ed531ade35c3018ca3068e8c68b966bcc4f316
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. def inscribete(request): return render(request, "inscribete/inscribete.html")
18.375
56
0.768707
18
147
6.277778
0.777778
0
0
0
0
0
0
0
0
0
0
0
0.142857
147
7
57
21
0.896825
0.156463
0
0
0
0
0.213115
0.213115
0
0
0
0
0
1
0.333333
false
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
0
0
1
1
1
0
0
6
a59ee766bfce49eeaf29b59f6c937d9ac6c34ea5
29
py
Python
evaluator/__init__.py
SoluMilken/evaluator
b192d81d5caf7e66f27f2da8484b92e5f14feadc
[ "MIT" ]
null
null
null
evaluator/__init__.py
SoluMilken/evaluator
b192d81d5caf7e66f27f2da8484b92e5f14feadc
[ "MIT" ]
null
null
null
evaluator/__init__.py
SoluMilken/evaluator
b192d81d5caf7e66f27f2da8484b92e5f14feadc
[ "MIT" ]
null
null
null
from .summary import summary
14.5
28
0.827586
4
29
6
0.75
0
0
0
0
0
0
0
0
0
0
0
0.137931
29
1
29
29
0.96
0
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
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
6
3c10409f819a1a9b3db0fd6425c6a7944a5e37dc
101
py
Python
dags/hechms_distributed_dag.py
hasithadkr7/HecHmsDistributed
c64708d0b19c457aff9ecd0b5f235afad9744e8a
[ "MIT" ]
1
2019-04-17T03:21:58.000Z
2019-04-17T03:21:58.000Z
dags/hechms_distributed_dag.py
hasithadkr7/HecHmsDistributed
c64708d0b19c457aff9ecd0b5f235afad9744e8a
[ "MIT" ]
null
null
null
dags/hechms_distributed_dag.py
hasithadkr7/HecHmsDistributed
c64708d0b19c457aff9ecd0b5f235afad9744e8a
[ "MIT" ]
null
null
null
import airflow from airflow import DAG from airflow.operators.python_operator import PythonOperator
20.2
60
0.871287
13
101
6.692308
0.615385
0.252874
0
0
0
0
0
0
0
0
0
0
0.108911
101
4
61
25.25
0.966667
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
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
6
3c180f7d5cdfbc1aa9926b28e9bafe6c640ca097
173
py
Python
imports/twofiles/main.py
suroegin-learning/learn-python
be5bda86add0dcd6f2fd3db737bb7d0d3ec5f853
[ "MIT" ]
null
null
null
imports/twofiles/main.py
suroegin-learning/learn-python
be5bda86add0dcd6f2fd3db737bb7d0d3ec5f853
[ "MIT" ]
null
null
null
imports/twofiles/main.py
suroegin-learning/learn-python
be5bda86add0dcd6f2fd3db737bb7d0d3ec5f853
[ "MIT" ]
null
null
null
# import for_import # for_import.x("test") ########## # from for_import import x # x = x("test") ########## import for_import x = for_import.x("hello") x("hello")
8.65
26
0.560694
25
173
3.68
0.24
0.48913
0.48913
0.347826
0
0
0
0
0
0
0
0
0.184971
173
20
27
8.65
0.652482
0.445087
0
0
0
0
0.138889
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
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
6
3c6329624aff6fbfcfa08a220c34166fa19673c5
96
py
Python
venv/lib/python3.8/site-packages/numpy/f2py/tests/test_symbolic.py
Retraces/UkraineBot
3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71
[ "MIT" ]
2
2022-03-13T01:58:52.000Z
2022-03-31T06:07:54.000Z
venv/lib/python3.8/site-packages/numpy/f2py/tests/test_symbolic.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
19
2021-11-20T04:09:18.000Z
2022-03-23T15:05:55.000Z
venv/lib/python3.8/site-packages/numpy/f2py/tests/test_symbolic.py
DesmoSearch/Desmobot
b70b45df3485351f471080deb5c785c4bc5c4beb
[ "MIT" ]
null
null
null
/home/runner/.cache/pip/pool/ef/1b/d7/4df76dada3c65c78d83b067cb389f2411b9353e036ca1793e79dd329c4
96
96
0.895833
9
96
9.555556
1
0
0
0
0
0
0
0
0
0
0
0.40625
0
96
1
96
96
0.489583
0
0
0
0
0
0
0
0
1
0
0
0
0
null
null
0
0
null
null
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
6
b1ded9c5716ea056fbed13630a3946228f967176
3,160
py
Python
pyramid_describe/test_constant.py
cadithealth/pyramid_describe
7b4abd15738dc3afbe67bd2f968bcf6bab66def2
[ "MIT" ]
3
2015-03-11T22:43:02.000Z
2016-06-09T09:58:41.000Z
pyramid_describe/test_constant.py
cadithealth/pyramid_describe
7b4abd15738dc3afbe67bd2f968bcf6bab66def2
[ "MIT" ]
1
2015-10-13T20:49:09.000Z
2015-10-16T03:09:20.000Z
pyramid_describe/test_constant.py
cadithealth/pyramid_describe
7b4abd15738dc3afbe67bd2f968bcf6bab66def2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #------------------------------------------------------------------------------ # file: $Id$ # auth: Philip J Grabner <grabner@cadit.com> # date: 2016/02/19 # copy: (C) Copyright 2016-EOT Cadit Inc., All Rights Reserved. #------------------------------------------------------------------------------ import unittest from . import constant #------------------------------------------------------------------------------ class TestConstant(unittest.TestCase): #---------------------------------------------------------------------------- def test_parse_invalid(self): for val, exc in [ ('', "invalid constant: ''"), ('0x', "invalid constant (tried hex): '0x'"), ('-x', "No JSON object could be decoded"), ('- 1', "No JSON object could be decoded"), ('no', "No JSON object could be decoded"), ('"no', "invalid constant (tried yaml): '\"no'"), ]: with self.assertRaises(ValueError) as cm: constant.parse(val) self.assertEqual(str(cm.exception), exc) #---------------------------------------------------------------------------- def test_hex(self): self.assertEqual(constant.parse('0x61'), 'a') self.assertEqual(constant.parse('0x616263'), 'abc') #---------------------------------------------------------------------------- def test_bool(self): self.assertEqual(constant.parse('true'), True) self.assertEqual(constant.parse('false'), False) #---------------------------------------------------------------------------- def test_null(self): self.assertEqual(constant.parse('null'), None) self.assertEqual(constant.parse(' null '), None) #---------------------------------------------------------------------------- def test_num(self): self.assertEqual(constant.parse('61'), 61) self.assertEqual(constant.parse('87.8'), 87.8) self.assertEqual(constant.parse('-87.8'), -87.8) #---------------------------------------------------------------------------- def test_str(self): self.assertEqual(constant.parse('"foo"'), 'foo') self.assertEqual(constant.parse("'foo'"), 'foo') self.assertEqual(constant.parse('0x666f6f'), 'foo') #---------------------------------------------------------------------------- def test_list(self): self.assertEqual(constant.parse('["foo", \'bar\', 6]'), ['foo', 'bar', 6]) #---------------------------------------------------------------------------- def test_dict(self): self.assertEqual(constant.parse('{a: 10, "b": foo}'), dict(a=10, b='foo')) #---------------------------------------------------------------------------- def test_multi(self): self.assertEqual(constant.parseMulti('"foo"', '|'), ['foo']) self.assertEqual(constant.parseMulti('"foo" |6|0x61 ', '|'), ['foo', 6, 'a']) self.assertEqual(constant.parseMulti(' null | 6|0x61 ', '|'), [None, 6, 'a']) #------------------------------------------------------------------------------ # end of $Id$ # $ChangeLog$ #------------------------------------------------------------------------------
41.578947
81
0.389241
255
3,160
4.784314
0.329412
0.221311
0.320492
0.321311
0.462295
0.292623
0.180328
0.134426
0.078689
0.078689
0
0.023213
0.141139
3,160
75
82
42.133333
0.426308
0.396203
0
0.05
0
0
0.185048
0
0
0
0.014846
0
0.475
1
0.225
false
0
0.05
0
0.3
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
0
0
0
6
590007c579bc919e42cfa7910d740a75b17ed6e4
209
py
Python
python3/learn-python/slicing-list.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
2
2020-09-29T04:09:41.000Z
2020-10-18T13:33:36.000Z
python3/learn-python/slicing-list.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
null
null
null
python3/learn-python/slicing-list.py
Nahid-Hassan/code-snippets
24bd4b81564887822a0801a696001fcbeb6a7a75
[ "MIT" ]
1
2021-12-26T04:55:55.000Z
2021-12-26T04:55:55.000Z
my_list = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] # 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 # -10,-9,-8,-7,-6,-5,-4,-3,-2,-1 # list[start:end:step] print(my_list[2:-1:2]) print(my_list[:]) print(my_list[::-1])
19
40
0.449761
49
209
1.836735
0.346939
0.266667
0.366667
0.088889
0.222222
0.222222
0.222222
0.222222
0.222222
0.222222
0
0.21875
0.23445
209
10
41
20.9
0.34375
0.416268
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.75
0
0
1
null
1
1
0
0
0
0
0
0
0
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
1
0
6
5913f2bb776adf0ad1113e9a53a7b46b0d4a87c8
262
py
Python
flask_toolkit/shared/exceptions.py
Creditas/flask-toolkit
830354b4e2c0f9fdac1d000dcc760226b704628a
[ "MIT" ]
3
2018-07-31T16:11:17.000Z
2021-08-14T17:03:44.000Z
flask_toolkit/shared/exceptions.py
Creditas/flask-toolkit
830354b4e2c0f9fdac1d000dcc760226b704628a
[ "MIT" ]
6
2018-07-11T14:34:09.000Z
2019-11-29T13:53:13.000Z
flask_toolkit/shared/exceptions.py
Creditas/flask-toolkit
830354b4e2c0f9fdac1d000dcc760226b704628a
[ "MIT" ]
null
null
null
class ObjectDoesNotExistException(Exception): pass class ForbiddenException(Exception): pass class BadRequestException(Exception): pass class InvalidDomainConditions(Exception): pass class ObjectAlreadyExistException(Exception): pass
13.789474
45
0.778626
20
262
10.2
0.4
0.318627
0.352941
0
0
0
0
0
0
0
0
0
0.164122
262
18
46
14.555556
0.931507
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
1
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
6
3ce1a24465550bcd389a9720d94322b5b07f6b48
174
py
Python
backend/db/entities/__init__.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
backend/db/entities/__init__.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
backend/db/entities/__init__.py
R-N/sistem_gaji_vue_thrift
9ba800b4d8e7849e2c6c4016cb32633caab087be
[ "MIT" ]
null
null
null
from .general import * from .general import DbGeneralEntity from .staging import DbStagingEntity from .commited import DbCommitedEntity from .laporan import DbLaporanEntity
24.857143
38
0.844828
19
174
7.736842
0.526316
0.14966
0.231293
0
0
0
0
0
0
0
0
0
0.12069
174
6
39
29
0.960784
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
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
6
a73908ff728f9980a2924161adcd75776b911a41
30
py
Python
trac/Lib/site-packages/tracaddheadersplugin-0.3-py2.7.egg/tracaddheaders/__init__.py
thinkbase/PortableTrac
9ea0210f6b88f135ef73f370b48127af0495b2d7
[ "BSD-3-Clause" ]
2
2015-08-06T04:19:21.000Z
2020-04-29T23:52:10.000Z
trac/Lib/site-packages/tracaddheadersplugin-0.3-py2.7.egg/tracaddheaders/__init__.py
thinkbase/PortableTrac
9ea0210f6b88f135ef73f370b48127af0495b2d7
[ "BSD-3-Clause" ]
null
null
null
trac/Lib/site-packages/tracaddheadersplugin-0.3-py2.7.egg/tracaddheaders/__init__.py
thinkbase/PortableTrac
9ea0210f6b88f135ef73f370b48127af0495b2d7
[ "BSD-3-Clause" ]
null
null
null
from tracaddheaders import *
15
29
0.8
3
30
8
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
30
1
30
30
0.96
0
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
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
6
598c213f5a6d0f0905a56bf52bcd56989cf40c85
46
py
Python
ml_repo/1. Python Programming/m2.py
sachinpr0001/data_science
d028233ff7bbcbbb6b26f01806d1c5ccf788df9a
[ "MIT" ]
null
null
null
ml_repo/1. Python Programming/m2.py
sachinpr0001/data_science
d028233ff7bbcbbb6b26f01806d1c5ccf788df9a
[ "MIT" ]
null
null
null
ml_repo/1. Python Programming/m2.py
sachinpr0001/data_science
d028233ff7bbcbbb6b26f01806d1c5ccf788df9a
[ "MIT" ]
null
null
null
import m1 print("M2 Module %s",(__name__))
7.666667
32
0.652174
7
46
3.714286
1
0
0
0
0
0
0
0
0
0
0
0.052632
0.173913
46
5
33
9.2
0.631579
0
0
0
0
0
0.266667
0
0
0
0
0
0
1
0
true
0
0.5
0
0.5
0.5
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
1
0
6
5991f26a406bb63bc45bda875058819a6cf841cd
80
py
Python
chzhshch/__init__.py
hpzhen/ChZhShCh
a5af067e342cf734fafb827eab17462c4bd6f74d
[ "Apache-2.0" ]
77
2017-12-17T12:19:49.000Z
2022-02-15T07:59:55.000Z
chzhshch/__init__.py
hpzhen/ChZhShCh
a5af067e342cf734fafb827eab17462c4bd6f74d
[ "Apache-2.0" ]
14
2017-12-18T15:43:52.000Z
2022-03-11T23:49:45.000Z
chzhshch/__init__.py
hpzhen/ChZhShCh
a5af067e342cf734fafb827eab17462c4bd6f74d
[ "Apache-2.0" ]
62
2018-01-06T16:31:45.000Z
2022-03-20T01:42:55.000Z
from . import feature from . import external_package from . import inner_package
26.666667
30
0.825
11
80
5.818182
0.545455
0.46875
0
0
0
0
0
0
0
0
0
0
0.1375
80
3
31
26.666667
0.927536
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
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
6
abe5b7fd6c3a1f1f362502cf073f8ad2cd084a72
177
py
Python
metashare/repository/templatetags/get_media_url.py
zeehio/META-SHARE
b796769629734353a63d98db72c84617f725e544
[ "BSD-3-Clause" ]
11
2015-07-13T13:36:44.000Z
2021-11-15T08:07:25.000Z
metashare/repository/templatetags/get_media_url.py
zeehio/META-SHARE
b796769629734353a63d98db72c84617f725e544
[ "BSD-3-Clause" ]
13
2015-03-21T14:08:31.000Z
2021-05-18T18:47:58.000Z
metashare/repository/templatetags/get_media_url.py
zeehio/META-SHARE
b796769629734353a63d98db72c84617f725e544
[ "BSD-3-Clause" ]
12
2015-01-07T02:16:50.000Z
2021-05-18T08:25:31.000Z
from django import template from metashare.settings import MEDIA_URL def get_media_url(): return MEDIA_URL register = template.Library() register.simple_tag(get_media_url)
22.125
40
0.819209
26
177
5.307692
0.576923
0.231884
0.15942
0
0
0
0
0
0
0
0
0
0.118644
177
8
41
22.125
0.884615
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
6
f9ec9dfff3d9123a7bcb904074d5acdd734974f6
149
py
Python
python/base-pyside-utils.py
n-kats/template
ab2a02b35b7acd5bba846e926d53bf7e10dac4c1
[ "MIT" ]
1
2016-11-07T05:58:50.000Z
2016-11-07T05:58:50.000Z
python/base-pyside-utils.py
n-kats/template
ab2a02b35b7acd5bba846e926d53bf7e10dac4c1
[ "MIT" ]
null
null
null
python/base-pyside-utils.py
n-kats/template
ab2a02b35b7acd5bba846e926d53bf7e10dac4c1
[ "MIT" ]
null
null
null
from PySide.QtCore import QObject def _enter(self): return self def _exit(self, *args): pass QObject.__enter__ = _enter QObject.__exit__ = _exit
14.9
33
0.765101
21
149
4.857143
0.571429
0
0
0
0
0
0
0
0
0
0
0
0.147651
149
9
34
16.555556
0.80315
0
0
0
0
0
0
0
0
0
0
0
0
1
0.285714
false
0.142857
0.142857
0.142857
0.571429
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
0
1
0
1
1
0
0
6
e6631a6814096c397c45bb15e33987e1d05e763f
86
py
Python
lab3/tcp_ip_protocol/__init__.py
UnstoppableGuy/Information-networks-security-basics
2135107054f69c6d137480be4436e68a61bf754d
[ "MIT" ]
null
null
null
lab3/tcp_ip_protocol/__init__.py
UnstoppableGuy/Information-networks-security-basics
2135107054f69c6d137480be4436e68a61bf754d
[ "MIT" ]
null
null
null
lab3/tcp_ip_protocol/__init__.py
UnstoppableGuy/Information-networks-security-basics
2135107054f69c6d137480be4436e68a61bf754d
[ "MIT" ]
null
null
null
from tcp_ip_protocol.client import Client from tcp_ip_protocol.router import register
28.666667
43
0.883721
14
86
5.142857
0.571429
0.194444
0.25
0.472222
0
0
0
0
0
0
0
0
0.093023
86
2
44
43
0.923077
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
0
0
0
6
557797ed623565c55bdbcbf9ba81acb1a5104b39
177
py
Python
Processing/GausianBlur.py
damirmardanov/figure-generator
1ed7ee6d423f2d7392e95529336b8f2d35ea65fd
[ "MIT" ]
null
null
null
Processing/GausianBlur.py
damirmardanov/figure-generator
1ed7ee6d423f2d7392e95529336b8f2d35ea65fd
[ "MIT" ]
null
null
null
Processing/GausianBlur.py
damirmardanov/figure-generator
1ed7ee6d423f2d7392e95529336b8f2d35ea65fd
[ "MIT" ]
null
null
null
import cv2 import numpy as np class GaussianBlur: @staticmethod def process(image_to_filter): return cv2.GaussianBlur(np.uint8(image_to_filter), (3, 3), 0, 0)
19.666667
72
0.706215
26
177
4.653846
0.653846
0.115702
0.214876
0
0
0
0
0
0
0
0
0.049296
0.19774
177
8
73
22.125
0.802817
0
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0.333333
0.166667
0.833333
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
1
1
0
0
6
55873ce25198a8d70e6600e0765a9745cb1fa5e2
152,521
py
Python
MolNotator/Mode_merger.py
ZzakB/MolNotator
9da9eae905d19b8272cac28c19c459f27159b77e
[ "MIT" ]
7
2021-12-15T16:02:41.000Z
2022-01-06T09:42:47.000Z
MolNotator/Mode_merger.py
ZzakB/MolNotator
9da9eae905d19b8272cac28c19c459f27159b77e
[ "MIT" ]
2
2022-01-12T19:22:32.000Z
2022-02-11T10:57:21.000Z
MolNotator/Mode_merger.py
ZzakB/MolNotator
9da9eae905d19b8272cac28c19c459f27159b77e
[ "MIT" ]
null
null
null
def Moder_merger(params : dict): def Solo_M1mHpC4H11N(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + mz - 72.081324 mz_Cl = 34.968853 + mz - 72.081324 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl]) def Solo_M1mHpHCOOH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + mz - 44.997654 mz_Cl = 34.968853 + mz - 44.997654 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl]) def Solo_M1m2HpNapHCOOH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + mz - 66.979600 mz_Cl = 34.968853 + mz - 66.979600 mz_m2HpNa = 20.97412 + mz - 66.979600 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa]) def Solo_M1m2HpNa(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + mz - 66.979600 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H]) def Solo_M1m2HpK(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + mz - 36.948058 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H]) def Solo_M2mHpC4H11N(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 72.081324)/2 mz_Cl = 34.968853 + (mz - 72.081324)/2 mz_m2HpNa = 20.97412 + (mz - 72.081324)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa]) def Solo_M2mHpHCOOH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 44.997654)/2 mz_Cl = 34.968853 + (mz - 44.997654)/2 mz_m2HpNa = 20.97412 + (mz - 44.997654)/2 mz_mHpHCOOH = 44.997654 + (mz - 44.997654)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_mHpHCOOH = peaks.between(mz_mHpHCOOH - prec_mass_error, mz_mHpHCOOH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_mHpHCOOH]) def Solo_M2mH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz + 1.007825)/2 mz_Cl = 34.968853 + (mz + 1.007825)/2 mz_m2HpNa = 20.97412 + (mz + 1.007825)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa]) def Solo_M2pCl(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 34.968853)/2 mz_Cl = 34.968853 + (mz - 34.968853)/2 mz_m2HpNa = 20.97412 + (mz - 34.968853)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa]) def Solo_M2m2HpNapHCOOH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 66.979600)/2 mz_Cl = 34.968853 + (mz - 66.979600)/2 mz_m2HpNa = 20.97412 + (mz - 66.979600)/2 mz_m2HpNapHCOOH = 66.9796 + (mz - 66.979600)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNapHCOOH = peaks.between(mz_m2HpNapHCOOH - prec_mass_error, mz_m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_m2HpNapHCOOH]) def Solo_M2m2HpNa(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 20.97412)/2 mz_Cl = 34.968853 + (mz - 20.97412)/2 mz_m2HpNa = 20.97412 + (mz - 20.97412)/2 mz_m2HpNapHCOOH = 66.9796 + (mz - 20.97412)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNapHCOOH = peaks.between(mz_m2HpNapHCOOH - prec_mass_error, mz_m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_m2HpNapHCOOH]) def Solo_M2m2HpK(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 36.948058)/2 mz_Cl = 34.968853 + (mz - 36.948058)/2 mz_m2HpNa = 20.97412 + (mz - 36.948058)/2 mz_m2HpNapHCOOH = 66.9796 + (mz - 36.948058)/2 mz_m2HpK = 36.948058 + (mz - 36.948058)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNapHCOOH = peaks.between(mz_m2HpNapHCOOH - prec_mass_error, mz_m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpK = peaks.between(mz_m2HpK - prec_mass_error, mz_m2HpK + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_m2HpNapHCOOH, valid_m2HpK]) def Solo_M3mH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz + 1.007825)/3 mz_Cl = 34.968853 + (mz + 1.007825)/3 mz_m2HpNa = 20.97412 + (mz + 1.007825)/3 mz_m2HpNapHCOOH = 66.9796 + (mz + 1.007825)/3 mz_m2HpK = 36.948058 + (mz + 1.007825)/3 mz_M2mH = -1.007825 + (mz + 1.007825)*(2/3) mz_M2pCl = 34.968853 + (mz + 1.007825)*(2/3) mz_M2m2HpNa = 20.97412 + (mz + 1.007825)*(2/3) mz_M2m2HpNapHCOOH = 66.9796 + (mz + 1.007825)*(2/3) mz_M2m2HpK = 36.948058 + (mz + 1.007825)*(2/3) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNapHCOOH = peaks.between(mz_m2HpNapHCOOH - prec_mass_error, mz_m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpK = peaks.between(mz_m2HpK - prec_mass_error, mz_m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2mH = peaks.between(mz_M2mH - prec_mass_error, mz_M2mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pCl = peaks.between(mz_M2pCl - prec_mass_error, mz_M2pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNa = peaks.between(mz_M2m2HpNa - prec_mass_error, mz_M2m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNapHCOOH = peaks.between(mz_M2m2HpNapHCOOH - prec_mass_error, mz_M2m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpK = peaks.between(mz_M2m2HpK - prec_mass_error, mz_M2m2HpK + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_m2HpNapHCOOH, valid_m2HpK, valid_M2mH, valid_M2pCl, valid_M2m2HpNa, valid_M2m2HpNapHCOOH, valid_M2m2HpK]) def Solo_M3pCl(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 34.968853)/3 mz_Cl = 34.968853 + (mz - 34.968853)/3 mz_m2HpNa = 20.97412 + (mz - 34.968853)/3 mz_m2HpNapHCOOH = 66.9796 + (mz - 34.968853)/3 mz_m2HpK = 36.948058 + (mz - 34.968853)/3 mz_M2mH = -1.007825 + (mz - 34.968853)*(2/3) mz_M2pCl = 34.968853 + (mz - 34.968853)*(2/3) mz_M2m2HpNa = 20.97412 + (mz - 34.968853)*(2/3) mz_M2m2HpNapHCOOH = 66.9796 + (mz - 34.968853)*(2/3) mz_M2m2HpK = 36.948058 + (mz - 34.968853)*(2/3) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNapHCOOH = peaks.between(mz_m2HpNapHCOOH - prec_mass_error, mz_m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpK = peaks.between(mz_m2HpK - prec_mass_error, mz_m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2mH = peaks.between(mz_M2mH - prec_mass_error, mz_M2mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pCl = peaks.between(mz_M2pCl - prec_mass_error, mz_M2pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNa = peaks.between(mz_M2m2HpNa - prec_mass_error, mz_M2m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNapHCOOH = peaks.between(mz_M2m2HpNapHCOOH - prec_mass_error, mz_M2m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpK = peaks.between(mz_M2m2HpK - prec_mass_error, mz_M2m2HpK + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_m2HpNapHCOOH, valid_m2HpK, valid_M2mH, valid_M2pCl, valid_M2m2HpNa, valid_M2m2HpNapHCOOH, valid_M2m2HpK]) def Solo_M3m2HpNapHCOOH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 66.979600)/3 mz_Cl = 34.968853 + (mz - 66.979600)/3 mz_m2HpNa = 20.97412 + (mz - 66.979600)/3 mz_m2HpNapHCOOH = 66.9796 + (mz - 66.979600)/3 mz_m2HpK = 36.948058 + (mz - 66.979600)/3 mz_M2mH = -1.007825 + (mz - 66.979600)*(2/3) mz_M2pCl = 34.968853 + (mz - 66.979600)*(2/3) mz_M2m2HpNa = 20.97412 + (mz - 66.979600)*(2/3) mz_M2m2HpNapHCOOH = 66.9796 + (mz - 66.979600)*(2/3) mz_M2m2HpK = 36.948058 + (mz - 66.979600)*(2/3) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNapHCOOH = peaks.between(mz_m2HpNapHCOOH - prec_mass_error, mz_m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpK = peaks.between(mz_m2HpK - prec_mass_error, mz_m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2mH = peaks.between(mz_M2mH - prec_mass_error, mz_M2mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pCl = peaks.between(mz_M2pCl - prec_mass_error, mz_M2pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNa = peaks.between(mz_M2m2HpNa - prec_mass_error, mz_M2m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNapHCOOH = peaks.between(mz_M2m2HpNapHCOOH - prec_mass_error, mz_M2m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpK = peaks.between(mz_M2m2HpK - prec_mass_error, mz_M2m2HpK + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_m2HpNapHCOOH, valid_m2HpK, valid_M2mH, valid_M2pCl, valid_M2m2HpNa, valid_M2m2HpNapHCOOH, valid_M2m2HpK]) def Solo_M3m2HpNa(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 20.97412)/3 mz_Cl = 34.968853 + (mz - 20.97412)/3 mz_m2HpNa = 20.97412 + (mz - 20.97412)/3 mz_m2HpNapHCOOH = 66.9796 + (mz - 20.97412)/3 mz_m2HpK = 36.948058 + (mz - 20.97412)/3 mz_M2mH = -1.007825 + (mz - 20.97412)*(2/3) mz_M2pCl = 34.968853 + (mz - 20.97412)*(2/3) mz_M2m2HpNa = 20.97412 + (mz - 20.97412)*(2/3) mz_M2m2HpNapHCOOH = 66.9796 + (mz - 20.97412)*(2/3) mz_M2m2HpK = 36.948058 + (mz - 20.97412)*(2/3) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNapHCOOH = peaks.between(mz_m2HpNapHCOOH - prec_mass_error, mz_m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpK = peaks.between(mz_m2HpK - prec_mass_error, mz_m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2mH = peaks.between(mz_M2mH - prec_mass_error, mz_M2mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pCl = peaks.between(mz_M2pCl - prec_mass_error, mz_M2pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNa = peaks.between(mz_M2m2HpNa - prec_mass_error, mz_M2m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNapHCOOH = peaks.between(mz_M2m2HpNapHCOOH - prec_mass_error, mz_M2m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpK = peaks.between(mz_M2m2HpK - prec_mass_error, mz_M2m2HpK + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_m2HpNapHCOOH, valid_m2HpK, valid_M2mH, valid_M2pCl, valid_M2m2HpNa, valid_M2m2HpNapHCOOH, valid_M2m2HpK]) def Solo_M4mH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz + 1.007825)/4 mz_Cl = 34.968853 + (mz + 1.007825)/4 mz_m2HpNa = 20.97412 + (mz + 1.007825)/4 mz_m2HpNapHCOOH = 66.9796 + (mz + 1.007825)/4 mz_m2HpK = 36.948058 + (mz + 1.007825)/4 mz_M2mH = -1.007825 + (mz + 1.007825)/2 mz_M2pCl = 34.968853 + (mz + 1.007825)/2 mz_M2m2HpNa = 20.97412 + (mz + 1.007825)/2 mz_M2m2HpNapHCOOH = 66.9796 + (mz + 1.007825)/2 mz_M2m2HpK = 36.948058 + (mz + 1.007825)/2 mz_M3mH = -1.007825 + (mz + 1.007825)*(3/4) mz_M3pCl = 34.968853 + (mz + 1.007825)*(3/4) mz_M3m2HpNa = 20.97412 + (mz + 1.007825)*(3/4) mz_M3m2HpNapHCOOH = 66.9796 + (mz + 1.007825)*(3/4) mz_M3m2HpK = 36.948058 + (mz + 1.007825)*(3/4) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNapHCOOH = peaks.between(mz_m2HpNapHCOOH - prec_mass_error, mz_m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpK = peaks.between(mz_m2HpK - prec_mass_error, mz_m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2mH = peaks.between(mz_M2mH - prec_mass_error, mz_M2mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pCl = peaks.between(mz_M2pCl - prec_mass_error, mz_M2pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNa = peaks.between(mz_M2m2HpNa - prec_mass_error, mz_M2m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNapHCOOH = peaks.between(mz_M2m2HpNapHCOOH - prec_mass_error, mz_M2m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpK = peaks.between(mz_M2m2HpK - prec_mass_error, mz_M2m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M3mH = peaks.between(mz_M3mH - prec_mass_error, mz_M3mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pCl = peaks.between(mz_M3pCl - prec_mass_error, mz_M3pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpNa = peaks.between(mz_M3m2HpNa - prec_mass_error, mz_M3m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpNapHCOOH = peaks.between(mz_M3m2HpNapHCOOH - prec_mass_error, mz_M3m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpK = peaks.between(mz_M3m2HpK - prec_mass_error, mz_M3m2HpK + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_m2HpNapHCOOH, valid_m2HpK, valid_M2mH, valid_M2pCl, valid_M2m2HpNa, valid_M2m2HpNapHCOOH, valid_M2m2HpK, valid_M3mH, valid_M3pCl, valid_M3m2HpNa, valid_M3m2HpNapHCOOH, valid_M3m2HpK]) def Solo_M4pCl(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 34.968853)/4 mz_Cl = 34.968853 + (mz - 34.968853)/4 mz_m2HpNa = 20.97412 + (mz - 34.968853)/4 mz_m2HpNapHCOOH = 66.9796 + (mz - 34.968853)/4 mz_m2HpK = 36.948058 + (mz - 34.968853)/4 mz_M2mH = -1.007825 + (mz - 34.968853)/2 mz_M2pCl = 34.968853 + (mz - 34.968853)/2 mz_M2m2HpNa = 20.97412 + (mz - 34.968853)/2 mz_M2m2HpNapHCOOH = 66.9796 + (mz - 34.968853)/2 mz_M2m2HpK = 36.948058 + (mz - 34.968853)/2 mz_M3mH = -1.007825 + (mz - 34.968853)*(3/4) mz_M3pCl = 34.968853 + (mz - 34.968853)*(3/4) mz_M3m2HpNa = 20.97412 + (mz - 34.968853)*(3/4) mz_M3m2HpNapHCOOH = 66.9796 + (mz - 34.968853)*(3/4) mz_M3m2HpK = 36.948058 + (mz - 34.968853)*(3/4) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNapHCOOH = peaks.between(mz_m2HpNapHCOOH - prec_mass_error, mz_m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpK = peaks.between(mz_m2HpK - prec_mass_error, mz_m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2mH = peaks.between(mz_M2mH - prec_mass_error, mz_M2mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pCl = peaks.between(mz_M2pCl - prec_mass_error, mz_M2pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNa = peaks.between(mz_M2m2HpNa - prec_mass_error, mz_M2m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNapHCOOH = peaks.between(mz_M2m2HpNapHCOOH - prec_mass_error, mz_M2m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpK = peaks.between(mz_M2m2HpK - prec_mass_error, mz_M2m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M3mH = peaks.between(mz_M3mH - prec_mass_error, mz_M3mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pCl = peaks.between(mz_M3pCl - prec_mass_error, mz_M3pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpNa = peaks.between(mz_M3m2HpNa - prec_mass_error, mz_M3m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpNapHCOOH = peaks.between(mz_M3m2HpNapHCOOH - prec_mass_error, mz_M3m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpK = peaks.between(mz_M3m2HpK - prec_mass_error, mz_M3m2HpK + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_m2HpNapHCOOH, valid_m2HpK, valid_M2mH, valid_M2pCl, valid_M2m2HpNa, valid_M2m2HpNapHCOOH, valid_M2m2HpK, valid_M3mH, valid_M3pCl, valid_M3m2HpNa, valid_M3m2HpNapHCOOH, valid_M3m2HpK]) def Solo_M4m2HpNapHCOOH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 66.979600)/4 mz_Cl = 34.968853 + (mz - 66.979600)/4 mz_m2HpNa = 20.97412 + (mz - 66.979600)/4 mz_m2HpNapHCOOH = 66.9796 + (mz - 66.979600)/4 mz_m2HpK = 36.948058 + (mz - 66.979600)/4 mz_M2mH = -1.007825 + (mz - 66.979600)/2 mz_M2pCl = 34.968853 + (mz - 66.979600)/2 mz_M2m2HpNa = 20.97412 + (mz - 66.979600)/2 mz_M2m2HpNapHCOOH = 66.9796 + (mz - 66.979600)/2 mz_M2m2HpK = 36.948058 + (mz - 66.979600)/2 mz_M3mH = -1.007825 + (mz - 66.979600)*(3/4) mz_M3pCl = 34.968853 + (mz - 66.979600)*(3/4) mz_M3m2HpNa = 20.97412 + (mz - 66.979600)*(3/4) mz_M3m2HpNapHCOOH = 66.9796 + (mz - 66.979600)*(3/4) mz_M3m2HpK = 36.948058 + (mz - 66.979600)*(3/4) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNapHCOOH = peaks.between(mz_m2HpNapHCOOH - prec_mass_error, mz_m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpK = peaks.between(mz_m2HpK - prec_mass_error, mz_m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2mH = peaks.between(mz_M2mH - prec_mass_error, mz_M2mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pCl = peaks.between(mz_M2pCl - prec_mass_error, mz_M2pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNa = peaks.between(mz_M2m2HpNa - prec_mass_error, mz_M2m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNapHCOOH = peaks.between(mz_M2m2HpNapHCOOH - prec_mass_error, mz_M2m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpK = peaks.between(mz_M2m2HpK - prec_mass_error, mz_M2m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M3mH = peaks.between(mz_M3mH - prec_mass_error, mz_M3mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pCl = peaks.between(mz_M3pCl - prec_mass_error, mz_M3pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpNa = peaks.between(mz_M3m2HpNa - prec_mass_error, mz_M3m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpNapHCOOH = peaks.between(mz_M3m2HpNapHCOOH - prec_mass_error, mz_M3m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpK = peaks.between(mz_M3m2HpK - prec_mass_error, mz_M3m2HpK + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_m2HpNapHCOOH, valid_m2HpK, valid_M2mH, valid_M2pCl, valid_M2m2HpNa, valid_M2m2HpNapHCOOH, valid_M2m2HpK, valid_M3mH, valid_M3pCl, valid_M3m2HpNa, valid_M3m2HpNapHCOOH, valid_M3m2HpK]) def Solo_M4m2HpNa(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = -1.007825 + (mz - 20.97412)/4 mz_Cl = 34.968853 + (mz - 20.97412)/4 mz_m2HpNa = 20.97412 + (mz - 20.97412)/4 mz_m2HpNapHCOOH = 66.9796 + (mz - 20.97412)/4 mz_m2HpK = 36.948058 + (mz - 20.97412)/4 mz_M2mH = -1.007825 + (mz - 20.97412)/2 mz_M2pCl = 34.968853 + (mz - 20.97412)/2 mz_M2m2HpNa = 20.97412 + (mz - 20.97412)/2 mz_M2m2HpNapHCOOH = 66.9796 + (mz - 20.97412)/2 mz_M2m2HpK = 36.948058 + (mz - 20.97412)/2 mz_M3mH = -1.007825 + (mz - 20.97412)*(3/4) mz_M3pCl = 34.968853 + (mz - 20.97412)*(3/4) mz_M3m2HpNa = 20.97412 + (mz - 20.97412)*(3/4) mz_M3m2HpNapHCOOH = 66.9796 + (mz - 20.97412)*(3/4) mz_M3m2HpK = 36.948058 + (mz - 20.97412)*(3/4) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Cl = peaks.between(mz_Cl - prec_mass_error, mz_Cl + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNa = peaks.between(mz_m2HpNa - prec_mass_error, mz_m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpNapHCOOH = peaks.between(mz_m2HpNapHCOOH - prec_mass_error, mz_m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_m2HpK = peaks.between(mz_m2HpK - prec_mass_error, mz_m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2mH = peaks.between(mz_M2mH - prec_mass_error, mz_M2mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pCl = peaks.between(mz_M2pCl - prec_mass_error, mz_M2pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNa = peaks.between(mz_M2m2HpNa - prec_mass_error, mz_M2m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpNapHCOOH = peaks.between(mz_M2m2HpNapHCOOH - prec_mass_error, mz_M2m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2m2HpK = peaks.between(mz_M2m2HpK - prec_mass_error, mz_M2m2HpK + prec_mass_error, inclusive = "both").sum() > 0 valid_M3mH = peaks.between(mz_M3mH - prec_mass_error, mz_M3mH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pCl = peaks.between(mz_M3pCl - prec_mass_error, mz_M3pCl + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpNa = peaks.between(mz_M3m2HpNa - prec_mass_error, mz_M3m2HpNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpNapHCOOH = peaks.between(mz_M3m2HpNapHCOOH - prec_mass_error, mz_M3m2HpNapHCOOH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3m2HpK = peaks.between(mz_M3m2HpK - prec_mass_error, mz_M3m2HpK + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Cl, valid_m2HpNa, valid_m2HpNapHCOOH, valid_m2HpK, valid_M2mH, valid_M2pCl, valid_M2m2HpNa, valid_M2m2HpNapHCOOH, valid_M2m2HpK, valid_M3mH, valid_M3pCl, valid_M3m2HpNa, valid_M3m2HpNapHCOOH, valid_M3m2HpK]) def Solo_M2pH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 1.007825)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H]) def Solo_M2pHpCH3CN(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 42.034374)/2 mz_Na = 22.98977 + (mz - 42.034374)/2 mz_K = 38.963708 + (mz - 42.034374)/2 mz_HpCH3CN = 42.034374 + (mz - 42.034374)/2 mz_HpCH3OH = 33.034040 + (mz - 42.034374)/2 mz_NapCH3CN = 64.016319 + (mz - 42.034374)/2 mz_NapCH3OH = 55.015985 + (mz - 42.034374)/2 mz_KpCH3CN = 79.990257 + (mz - 42.034374)/2 mz_KpCH3OH = 70.989923 + (mz - 42.034374)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3CN = peaks.between(mz_HpCH3CN - prec_mass_error, mz_HpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3CN = peaks.between(mz_KpCH3CN - prec_mass_error, mz_KpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3OH = peaks.between(mz_KpCH3OH - prec_mass_error, mz_KpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na, valid_K, valid_HpCH3CN, valid_HpCH3OH, valid_NapCH3CN, valid_NapCH3OH, valid_KpCH3CN, valid_KpCH3OH]) def Solo_M2pHpCH3OH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 33.034040)/2 mz_Na = 22.98977 + (mz - 33.034040)/2 mz_K = 38.963708 + (mz - 33.034040)/2 mz_HpCH3CN = 42.034374 + (mz - 33.034040)/2 mz_HpCH3OH = 33.034040 + (mz - 33.034040)/2 mz_NapCH3CN = 64.016319 + (mz - 33.034040)/2 mz_NapCH3OH = 55.015985 + (mz - 33.034040)/2 mz_KpCH3CN = 79.990257 + (mz - 33.034040)/2 mz_KpCH3OH = 70.989923 + (mz - 33.034040)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3CN = peaks.between(mz_HpCH3CN - prec_mass_error, mz_HpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3CN = peaks.between(mz_KpCH3CN - prec_mass_error, mz_KpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3OH = peaks.between(mz_KpCH3OH - prec_mass_error, mz_KpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na, valid_K, valid_HpCH3CN, valid_HpCH3OH, valid_NapCH3CN, valid_NapCH3OH, valid_KpCH3CN, valid_KpCH3OH]) def Solo_M2pHpHCOOH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 47.013304)/2 mz_Na = 22.98977 + (mz - 47.013304)/2 mz_K = 38.963708 + (mz - 47.013304)/2 mz_HpCH3CN = 42.034374 + (mz - 47.0133042)/2 mz_HpCH3OH = 33.034040 + (mz - 47.013304)/2 mz_NapCH3CN = 64.016319 + (mz - 47.013304)/2 mz_NapCH3OH = 55.015985 + (mz - 47.013304)/2 mz_KpCH3CN = 79.990257 + (mz - 47.013304)/2 mz_KpCH3OH = 70.989923 + (mz - 47.013304)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3CN = peaks.between(mz_HpCH3CN - prec_mass_error, mz_HpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3CN = peaks.between(mz_KpCH3CN - prec_mass_error, mz_KpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3OH = peaks.between(mz_KpCH3OH - prec_mass_error, mz_KpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na, valid_K, valid_HpCH3CN, valid_HpCH3OH, valid_NapCH3CN, valid_NapCH3OH, valid_KpCH3CN, valid_KpCH3OH]) def Solo_M2pNH4(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 18.034374)/2 mz_NH4 = 18.034374 + (mz - 18.034374)/2 mz_Na = 22.98977 + (mz - 18.034374)/2 mz_K = 38.963708 + (mz - 18.034374)/2 mz_HpCH3CN = 42.034374 + (mz - 18.034374)/2 mz_HpCH3OH = 33.034040 + (mz - 18.034374)/2 mz_NapCH3CN = 64.016319 + (mz - 18.034374)/2 mz_NapCH3OH = 55.015985 + (mz - 18.034374)/2 mz_KpCH3CN = 79.990257 + (mz - 18.034374)/2 mz_KpCH3OH = 70.989923 + (mz - 18.034374)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_NH4 = peaks.between(mz_NH4 - prec_mass_error, mz_NH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3CN = peaks.between(mz_HpCH3CN - prec_mass_error, mz_HpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3CN = peaks.between(mz_KpCH3CN - prec_mass_error, mz_KpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3OH = peaks.between(mz_KpCH3OH - prec_mass_error, mz_KpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_NH4, valid_Na, valid_K, valid_HpCH3CN, valid_HpCH3OH, valid_NapCH3CN, valid_NapCH3OH, valid_KpCH3CN, valid_KpCH3OH]) def Solo_M2pNa(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 22.98977)/2 mz_Na = 22.98977 + (mz - 22.98977)/2 mz_NapCH3CN = 64.016319 + (mz - 22.98977)/2 mz_NapCH3OH = 55.015985 + (mz - 22.98977)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na, valid_NapCH3CN, valid_NapCH3OH]) def Solo_M2pNapCH3OH(ion_idx, mgf_file) : mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 55.015985)/2 mz_Na = 22.98977 + (mz - 55.015985)/2 mz_NapCH3CN = 64.016319 + (mz - 55.015985)/2 mz_NapCH3OH = 55.015985 + (mz - 55.015985)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na, valid_NapCH3CN, valid_NapCH3OH]) def Solo_M2pNapCH3CN(ion_idx, mgf_file) : mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 64.016319)/2 mz_Na = 22.98977 + (mz - 64.016319)/2 mz_NapCH3CN = 64.016319 + (mz - 64.016319)/2 mz_NapCH3OH = 55.015985 + (mz - 64.016319)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na, valid_NapCH3CN, valid_NapCH3OH]) def Solo_M2pK(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 38.963708)/2 mz_Na = 22.98977 + (mz - 38.963708)/2 mz_K = 38.963708 + (mz - 38.963708)/2 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na, valid_K]) def Solo_M1pHpCH3CN(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + mz - 42.034374 mz_Na = 22.98977 + mz - 42.034374 mz_HpCH3OH = 33.034040 + mz - 42.034374 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na, valid_HpCH3OH]) def Solo_M1pHpCH3OH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + mz - 33.034040 mz_Na = 22.98977 + mz - 33.034040 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na]) def Solo_M1pHpHCOOH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + mz - 47.013304 mz_Na = 22.98977 + mz - 47.013304 mz_HpCH3OH = 33.034040 + mz - 47.013304 mz_HpCH3CN = 42.034374 + mz - 47.013304 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3CN = peaks.between(mz_HpCH3CN - prec_mass_error, mz_HpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na, valid_HpCH3OH, valid_HpCH3CN]) def Solo_M1pNa(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + mz - 22.989770 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() return valid_H def Solo_M1pNapCH3CN(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = mz - 64.016319 + 1.007825 mz_Na = mz - 64.016319 + 22.98977 mz_NapCH3OH = mz - 64.016319 + 55.015985 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na, valid_NapCH3OH]) def Solo_M1pNapCH3OH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + mz - 55.015985 mz_Na = 22.98977 + mz - 55.015985 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_Na]) def Solo_M1pNH4(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + mz - 18.034374 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() return valid_H def Solo_M1pNH4pCH3CN(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + mz - 59.060923 mz_NH4 = 18.034374 + mz - 59.060923 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_NH4 = peaks.between(mz_NH4 - prec_mass_error, mz_NH4 + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_NH4]) def Solo_M1pK(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + mz - 38.963708 mz_NH4 = 18.034374 + mz - 38.963708 mz_Na = 22.98977 + mz - 38.963708 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() valid_NH4 = peaks.between(mz_NH4 - prec_mass_error, mz_NH4 + prec_mass_error, inclusive = "both").sum() valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() return sum([valid_H, valid_NH4, valid_Na]) def Solo_M1pKpCH3OH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + mz - 70.989923 mz_NH4 = 18.034374 + mz - 70.989923 mz_Na = 22.98977 + mz - 70.989923 mz_K = 38.963708 + mz - 70.989923 valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() valid_NH4 = peaks.between(mz_NH4 - prec_mass_error, mz_NH4 + prec_mass_error, inclusive = "both").sum() valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() return sum([valid_H, valid_NH4, valid_Na, valid_K]) def Solo_M3pH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 1.007825)/3 mz_M2pH = 1.007825 + (mz - 1.007825)*(2/3) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pH = peaks.between(mz_M2pH - prec_mass_error, mz_M2pH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_M2pH]) def Solo_M3pNH4(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 18.034374)/3 mz_NH4 = 18.034374 + (mz - 18.034374)/3 mz_M2pH = 1.007825 + (mz - 18.034374)*(2/3) mz_M2pNH4 = 18.034374 + (mz - 18.034374)*(2/3) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_NH4 = peaks.between(mz_NH4 - prec_mass_error, mz_NH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pH = peaks.between(mz_M2pH - prec_mass_error, mz_M2pH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNH4 = peaks.between(mz_M2pNH4 - prec_mass_error, mz_M2pNH4 + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_NH4, valid_M2pH, valid_M2pNH4]) def Solo_M3pNa(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 22.989770)/3 mz_NH4 = 18.034374 + (mz - 22.989770)/3 mz_Na = 22.98977 + (mz - 22.989770)/3 mz_K = 38.963708 + (mz - 22.989770)/3 mz_HpCH3CN = 42.034374 + (mz - 22.989770)/3 mz_HpCH3OH = 33.034040 + (mz - 22.989770)/3 mz_NapCH3CN = 64.016319 + (mz - 22.989770)/3 mz_NapCH3OH = 55.015985 + (mz - 22.989770)/3 mz_KpCH3CN = 79.990257 + (mz - 22.989770)/3 mz_KpCH3OH = 70.989923 + (mz - 22.989770)/3 mz_M2pH = 1.007825 + (mz - 22.989770)*(2/3) mz_M2pNH4 = 18.034374 + (mz - 22.989770)*(2/3) mz_M2pNa = 22.98977 + (mz - 22.989770)*(2/3) mz_M2pK = 38.963708 + (mz - 22.989770)*(2/3) mz_M2pHpCH3CN = 42.034374 + (mz - 22.989770)*(2/3) mz_M2pHpCH3OH = 33.034040 + (mz - 22.989770)*(2/3) mz_M2pNapCH3CN = 64.016319 + (mz - 22.989770)*(2/3) mz_M2pNapCH3OH = 55.015985 + (mz - 22.989770)*(2/3) mz_M2pKpCH3CN = 79.990257 + (mz - 22.989770)*(2/3) mz_M2pKpCH3OH = 70.989923 + (mz - 22.989770)*(2/3) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_NH4 = peaks.between(mz_NH4 - prec_mass_error, mz_NH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3CN = peaks.between(mz_HpCH3CN - prec_mass_error, mz_HpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3CN = peaks.between(mz_KpCH3CN - prec_mass_error, mz_KpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3OH = peaks.between(mz_KpCH3OH - prec_mass_error, mz_KpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pH = peaks.between(mz_M2pH - prec_mass_error, mz_M2pH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNH4 = peaks.between(mz_M2pNH4 - prec_mass_error, mz_M2pNH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNa = peaks.between(mz_M2pNa - prec_mass_error, mz_M2pNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pK = peaks.between(mz_M2pK - prec_mass_error, mz_M2pK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3CN = peaks.between(mz_M2pHpCH3CN - prec_mass_error, mz_M2pHpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3OH = peaks.between(mz_M2pHpCH3OH - prec_mass_error, mz_M2pHpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3CN = peaks.between(mz_M2pNapCH3CN - prec_mass_error, mz_M2pNapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3OH = peaks.between(mz_M2pNapCH3OH - prec_mass_error, mz_M2pNapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3CN = peaks.between(mz_M2pKpCH3CN - prec_mass_error, mz_M2pKpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3OH = peaks.between(mz_M2pKpCH3OH - prec_mass_error, mz_M2pKpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_NH4, valid_Na, valid_K, valid_HpCH3CN, valid_HpCH3OH, valid_NapCH3CN, valid_NapCH3OH, valid_KpCH3CN, valid_KpCH3OH, valid_M2pH, valid_M2pNH4, valid_M2pNa, valid_M2pK, valid_M2pHpCH3CN, valid_M2pHpCH3OH, valid_M2pNapCH3CN, valid_M2pNapCH3OH, valid_M2pKpCH3CN, valid_M2pKpCH3OH]) def Solo_M3pK(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 38.963708)/3 mz_NH4 = 18.034374 + (mz - 38.963708)/3 mz_Na = 22.98977 + (mz - 38.963708)/3 mz_K = 38.963708 + (mz - 38.963708)/3 mz_HpCH3CN = 42.034374 + (mz - 38.963708)/3 mz_HpCH3OH = 33.034040 + (mz - 38.9637080)/3 mz_NapCH3CN = 64.016319 + (mz - 38.9637080)/3 mz_NapCH3OH = 55.015985 + (mz - 38.963708)/3 mz_KpCH3CN = 79.990257 + (mz - 38.963708)/3 mz_KpCH3OH = 70.989923 + (mz - 38.963708)/3 mz_M2pH = 1.007825 + (mz - 38.963708)*(2/3) mz_M2pNH4 = 18.034374 + (mz - 38.963708)*(2/3) mz_M2pNa = 22.98977 + (mz - 38.963708)*(2/3) mz_M2pK = 38.963708 + (mz - 38.963708)*(2/3) mz_M2pHpCH3CN = 42.034374 + (mz - 38.963708)*(2/3) mz_M2pHpCH3OH = 33.034040 + (mz - 38.963708)*(2/3) mz_M2pNapCH3CN = 64.016319 + (mz - 38.963708)*(2/3) mz_M2pNapCH3OH = 55.015985 + (mz - 38.963708)*(2/3) mz_M2pKpCH3CN = 79.990257 + (mz - 38.963708)*(2/3) mz_M2pKpCH3OH = 70.989923 + (mz - 38.963708)*(2/3) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_NH4 = peaks.between(mz_NH4 - prec_mass_error, mz_NH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3CN = peaks.between(mz_HpCH3CN - prec_mass_error, mz_HpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3CN = peaks.between(mz_KpCH3CN - prec_mass_error, mz_KpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3OH = peaks.between(mz_KpCH3OH - prec_mass_error, mz_KpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pH = peaks.between(mz_M2pH - prec_mass_error, mz_M2pH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNH4 = peaks.between(mz_M2pNH4 - prec_mass_error, mz_M2pNH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNa = peaks.between(mz_M2pNa - prec_mass_error, mz_M2pNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pK = peaks.between(mz_M2pK - prec_mass_error, mz_M2pK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3CN = peaks.between(mz_M2pHpCH3CN - prec_mass_error, mz_M2pHpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3OH = peaks.between(mz_M2pHpCH3OH - prec_mass_error, mz_M2pHpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3CN = peaks.between(mz_M2pNapCH3CN - prec_mass_error, mz_M2pNapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3OH = peaks.between(mz_M2pNapCH3OH - prec_mass_error, mz_M2pNapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3CN = peaks.between(mz_M2pKpCH3CN - prec_mass_error, mz_M2pKpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3OH = peaks.between(mz_M2pKpCH3OH - prec_mass_error, mz_M2pKpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_NH4, valid_Na, valid_K, valid_HpCH3CN, valid_HpCH3OH, valid_NapCH3CN, valid_NapCH3OH, valid_KpCH3CN, valid_KpCH3OH, valid_M2pH, valid_M2pNH4, valid_M2pNa, valid_M2pK, valid_M2pHpCH3CN, valid_M2pHpCH3OH, valid_M2pNapCH3CN, valid_M2pNapCH3OH, valid_M2pKpCH3CN, valid_M2pKpCH3OH]) def Solo_M4pK(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 38.963708)/4 mz_NH4 = 18.034374 + (mz - 38.963708)/4 mz_Na = 22.98977 + (mz - 38.963708)/4 mz_K = 38.963708 + (mz - 38.963708)/4 mz_HpCH3CN = 42.034374 + (mz - 38.963708)/4 mz_HpCH3OH = 33.034040 + (mz - 38.963708)/4 mz_NapCH3CN = 64.016319 + (mz - 38.963708)/4 mz_NapCH3OH = 55.015985 + (mz - 38.963708)/4 mz_KpCH3CN = 79.990257 + (mz - 38.963708)/4 mz_KpCH3OH = 70.989923 + (mz - 38.963708)/4 mz_M2pH = 1.007825 + (mz - 38.963708)/2 mz_M2pNH4 = 18.034374 + (mz - 38.963708)/2 mz_M2pNa = 22.98977 + (mz - 38.963708)/2 mz_M2pK = 38.963708 + (mz - 38.963708)/2 mz_M2pHpCH3CN = 42.034374 + (mz - 38.963708)/2 mz_M2pHpCH3OH = 33.034040 + (mz - 38.963708)/2 mz_M2pNapCH3CN = 64.016319 + (mz - 38.963708)/2 mz_M2pNapCH3OH = 55.015985 + (mz - 38.963708)/2 mz_M2pKpCH3CN = 79.990257 + (mz - 38.963708)/2 mz_M2pKpCH3OH = 70.989923 + (mz - 38.963708)/2 mz_M3pH = 1.007825 + (mz - 38.963708)*(3/4) mz_M3pNH4 = 18.034374 + (mz - 38.963708)*(3/4) mz_M3pNa = 22.98977 + (mz - 38.963708)*(3/4) mz_M3pK = 38.963708 + (mz - 38.963708)*(3/4) mz_M3pHpCH3CN = 42.034374 + (mz - 38.963708)*(3/4) mz_M3pHpCH3OH = 33.034040 + (mz - 38.963708)*(3/4) mz_M3pNapCH3CN = 64.016319 + (mz - 38.963708)*(3/4) mz_M3pNapCH3OH = 55.015985 + (mz - 38.963708)*(3/4) mz_M3pKpCH3CN = 79.990257 + (mz - 38.963708)*(3/4) mz_M3pKpCH3OH = 70.989923 + (mz - 38.963708)*(3/4) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_NH4 = peaks.between(mz_NH4 - prec_mass_error, mz_NH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3CN = peaks.between(mz_HpCH3CN - prec_mass_error, mz_HpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3CN = peaks.between(mz_KpCH3CN - prec_mass_error, mz_KpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3OH = peaks.between(mz_KpCH3OH - prec_mass_error, mz_KpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pH = peaks.between(mz_M2pH - prec_mass_error, mz_M2pH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNH4 = peaks.between(mz_M2pNH4 - prec_mass_error, mz_M2pNH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNa = peaks.between(mz_M2pNa - prec_mass_error, mz_M2pNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pK = peaks.between(mz_M2pK - prec_mass_error, mz_M2pK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3CN = peaks.between(mz_M2pHpCH3CN - prec_mass_error, mz_M2pHpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3OH = peaks.between(mz_M2pHpCH3OH - prec_mass_error, mz_M2pHpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3CN = peaks.between(mz_M2pNapCH3CN - prec_mass_error, mz_M2pNapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3OH = peaks.between(mz_M2pNapCH3OH - prec_mass_error, mz_M2pNapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3CN = peaks.between(mz_M2pKpCH3CN - prec_mass_error, mz_M2pKpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3OH = peaks.between(mz_M2pKpCH3OH - prec_mass_error, mz_M2pKpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pH = peaks.between(mz_M3pH - prec_mass_error, mz_M3pH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNH4 = peaks.between(mz_M3pNH4 - prec_mass_error, mz_M3pNH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNa = peaks.between(mz_M3pNa - prec_mass_error, mz_M3pNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pK = peaks.between(mz_M3pK - prec_mass_error, mz_M3pK + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pHpCH3CN = peaks.between(mz_M3pHpCH3CN - prec_mass_error, mz_M3pHpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pHpCH3OH = peaks.between(mz_M3pHpCH3OH - prec_mass_error, mz_M3pHpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNapCH3CN = peaks.between(mz_M3pNapCH3CN - prec_mass_error, mz_M3pNapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNapCH3OH = peaks.between(mz_M3pNapCH3OH - prec_mass_error, mz_M3pNapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pKpCH3CN = peaks.between(mz_M3pKpCH3CN - prec_mass_error, mz_M3pKpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pKpCH3OH = peaks.between(mz_M3pKpCH3OH - prec_mass_error, mz_M3pKpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_NH4, valid_Na, valid_K, valid_HpCH3CN, valid_HpCH3OH, valid_NapCH3CN, valid_NapCH3OH, valid_KpCH3CN, valid_KpCH3OH, valid_M2pH, valid_M2pNH4, valid_M2pNa, valid_M2pK, valid_M2pHpCH3CN, valid_M2pHpCH3OH, valid_M2pNapCH3CN, valid_M2pNapCH3OH, valid_M2pKpCH3CN, valid_M2pKpCH3OH, valid_M3pH, valid_M3pNH4, valid_M3pNa, valid_M3pK, valid_M3pHpCH3CN, valid_M3pHpCH3OH, valid_M3pNapCH3CN, valid_M3pNapCH3OH, valid_M3pKpCH3CN, valid_M3pKpCH3OH]) def Solo_M4pH(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 1.007825)/4 mz_NH4 = 18.034374 + (mz - 1.007825)/4 mz_Na = 22.98977 + (mz - 1.007825)/4 mz_K = 38.963708 + (mz - 1.007825)/4 mz_HpCH3CN = 42.034374 + (mz - 1.007825)/4 mz_HpCH3OH = 33.034040 + (mz - 1.007825)/4 mz_NapCH3CN = 64.016319 + (mz - 1.007825)/4 mz_NapCH3OH = 55.015985 + (mz - 1.007825)/4 mz_KpCH3CN = 79.990257 + (mz - 1.007825)/4 mz_KpCH3OH = 70.989923 + (mz - 1.007825)/4 mz_M2pH = 1.007825 + (mz - 1.007825)/2 mz_M2pNH4 = 18.034374 + (mz - 1.007825)/2 mz_M2pNa = 22.98977 + (mz - 1.007825)/2 mz_M2pK = 38.963708 + (mz - 1.007825)/2 mz_M2pHpCH3CN = 42.034374 + (mz - 1.007825)/2 mz_M2pHpCH3OH = 33.034040 + (mz - 1.007825)/2 mz_M2pNapCH3CN = 64.016319 + (mz - 1.007825)/2 mz_M2pNapCH3OH = 55.015985 + (mz - 1.007825)/2 mz_M2pKpCH3CN = 79.990257 + (mz - 1.007825)/2 mz_M2pKpCH3OH = 70.989923 + (mz - 1.007825)/2 mz_M3pH = 1.007825 + (mz - 1.007825)*(3/4) mz_M3pNH4 = 18.034374 + (mz - 1.007825)*(3/4) mz_M3pNa = 22.98977 + (mz - 1.007825)*(3/4) mz_M3pK = 38.963708 + (mz - 1.007825)*(3/4) mz_M3pHpCH3CN = 42.034374 + (mz - 1.007825)*(3/4) mz_M3pHpCH3OH = 33.034040 + (mz - 1.007825)*(3/4) mz_M3pNapCH3CN = 64.016319 + (mz - 1.007825)*(3/4) mz_M3pNapCH3OH = 55.015985 + (mz - 1.007825)*(3/4) mz_M3pKpCH3CN = 79.990257 + (mz - 1.007825)*(3/4) mz_M3pKpCH3OH = 70.989923 + (mz - 1.007825)*(3/4) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_NH4 = peaks.between(mz_NH4 - prec_mass_error, mz_NH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3CN = peaks.between(mz_HpCH3CN - prec_mass_error, mz_HpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3CN = peaks.between(mz_KpCH3CN - prec_mass_error, mz_KpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3OH = peaks.between(mz_KpCH3OH - prec_mass_error, mz_KpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pH = peaks.between(mz_M2pH - prec_mass_error, mz_M2pH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNH4 = peaks.between(mz_M2pNH4 - prec_mass_error, mz_M2pNH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNa = peaks.between(mz_M2pNa - prec_mass_error, mz_M2pNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pK = peaks.between(mz_M2pK - prec_mass_error, mz_M2pK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3CN = peaks.between(mz_M2pHpCH3CN - prec_mass_error, mz_M2pHpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3OH = peaks.between(mz_M2pHpCH3OH - prec_mass_error, mz_M2pHpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3CN = peaks.between(mz_M2pNapCH3CN - prec_mass_error, mz_M2pNapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3OH = peaks.between(mz_M2pNapCH3OH - prec_mass_error, mz_M2pNapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3CN = peaks.between(mz_M2pKpCH3CN - prec_mass_error, mz_M2pKpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3OH = peaks.between(mz_M2pKpCH3OH - prec_mass_error, mz_M2pKpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pH = peaks.between(mz_M3pH - prec_mass_error, mz_M3pH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNH4 = peaks.between(mz_M3pNH4 - prec_mass_error, mz_M3pNH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNa = peaks.between(mz_M3pNa - prec_mass_error, mz_M3pNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pK = peaks.between(mz_M3pK - prec_mass_error, mz_M3pK + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pHpCH3CN = peaks.between(mz_M3pHpCH3CN - prec_mass_error, mz_M3pHpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pHpCH3OH = peaks.between(mz_M3pHpCH3OH - prec_mass_error, mz_M3pHpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNapCH3CN = peaks.between(mz_M3pNapCH3CN - prec_mass_error, mz_M3pNapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNapCH3OH = peaks.between(mz_M3pNapCH3OH - prec_mass_error, mz_M3pNapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pKpCH3CN = peaks.between(mz_M3pKpCH3CN - prec_mass_error, mz_M3pKpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pKpCH3OH = peaks.between(mz_M3pKpCH3OH - prec_mass_error, mz_M3pKpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_NH4, valid_Na, valid_K, valid_HpCH3CN, valid_HpCH3OH, valid_NapCH3CN, valid_NapCH3OH, valid_KpCH3CN, valid_KpCH3OH, valid_M2pH, valid_M2pNH4, valid_M2pNa, valid_M2pK, valid_M2pHpCH3CN, valid_M2pHpCH3OH, valid_M2pNapCH3CN, valid_M2pNapCH3OH, valid_M2pKpCH3CN, valid_M2pKpCH3OH, valid_M3pH, valid_M3pNH4, valid_M3pNa, valid_M3pK, valid_M3pHpCH3CN, valid_M3pHpCH3OH, valid_M3pNapCH3CN, valid_M3pNapCH3OH, valid_M3pKpCH3CN, valid_M3pKpCH3OH]) def Solo_M4pNH4(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 18.034374)/4 mz_NH4 = 18.034374 + (mz - 18.034374)/4 mz_Na = 22.98977 + (mz - 18.034374)/4 mz_K = 38.963708 + (mz - 18.034374)/4 mz_HpCH3CN = 42.034374 + (mz - 18.034374)/4 mz_HpCH3OH = 33.034040 + (mz - 18.034374)/4 mz_NapCH3CN = 64.016319 + (mz - 18.034374)/4 mz_NapCH3OH = 55.015985 + (mz - 18.034374)/4 mz_KpCH3CN = 79.990257 + (mz - 18.034374)/4 mz_KpCH3OH = 70.989923 + (mz - 18.034374)/4 mz_M2pH = 1.007825 + (mz - 18.034374)/2 mz_M2pNH4 = 18.034374 + (mz - 18.034374)/2 mz_M2pNa = 22.98977 + (mz - 18.034374)/2 mz_M2pK = 38.963708 + (mz - 18.034374)/2 mz_M2pHpCH3CN = 42.034374 + (mz - 18.034374)/2 mz_M2pHpCH3OH = 33.034040 + (mz - 18.034374)/2 mz_M2pNapCH3CN = 64.016319 + (mz - 18.034374)/2 mz_M2pNapCH3OH = 55.015985 + (mz - 18.034374)/2 mz_M2pKpCH3CN = 79.990257 + (mz - 18.034374)/2 mz_M2pKpCH3OH = 70.989923 + (mz - 18.034374)/2 mz_M3pH = 1.007825 + (mz - 18.034374)*(3/4) mz_M3pNH4 = 18.034374 + (mz - 18.034374)*(3/4) mz_M3pNa = 22.98977 + (mz - 18.034374)*(3/4) mz_M3pK = 38.963708 + (mz - 18.034374)*(3/4) mz_M3pHpCH3CN = 42.034374 + (mz - 18.034374)*(3/4) mz_M3pHpCH3OH = 33.034040 + (mz - 18.034374)*(3/4) mz_M3pNapCH3CN = 64.016319 + (mz - 18.034374)*(3/4) mz_M3pNapCH3OH = 55.015985 + (mz - 18.034374)*(3/4) mz_M3pKpCH3CN = 79.990257 + (mz - 18.034374)*(3/4) mz_M3pKpCH3OH = 70.989923 + (mz - 18.034374)*(3/4) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_NH4 = peaks.between(mz_NH4 - prec_mass_error, mz_NH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3CN = peaks.between(mz_HpCH3CN - prec_mass_error, mz_HpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3CN = peaks.between(mz_KpCH3CN - prec_mass_error, mz_KpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3OH = peaks.between(mz_KpCH3OH - prec_mass_error, mz_KpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pH = peaks.between(mz_M2pH - prec_mass_error, mz_M2pH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNH4 = peaks.between(mz_M2pNH4 - prec_mass_error, mz_M2pNH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNa = peaks.between(mz_M2pNa - prec_mass_error, mz_M2pNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pK = peaks.between(mz_M2pK - prec_mass_error, mz_M2pK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3CN = peaks.between(mz_M2pHpCH3CN - prec_mass_error, mz_M2pHpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3OH = peaks.between(mz_M2pHpCH3OH - prec_mass_error, mz_M2pHpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3CN = peaks.between(mz_M2pNapCH3CN - prec_mass_error, mz_M2pNapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3OH = peaks.between(mz_M2pNapCH3OH - prec_mass_error, mz_M2pNapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3CN = peaks.between(mz_M2pKpCH3CN - prec_mass_error, mz_M2pKpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3OH = peaks.between(mz_M2pKpCH3OH - prec_mass_error, mz_M2pKpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pH = peaks.between(mz_M3pH - prec_mass_error, mz_M3pH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNH4 = peaks.between(mz_M3pNH4 - prec_mass_error, mz_M3pNH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNa = peaks.between(mz_M3pNa - prec_mass_error, mz_M3pNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pK = peaks.between(mz_M3pK - prec_mass_error, mz_M3pK + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pHpCH3CN = peaks.between(mz_M3pHpCH3CN - prec_mass_error, mz_M3pHpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pHpCH3OH = peaks.between(mz_M3pHpCH3OH - prec_mass_error, mz_M3pHpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNapCH3CN = peaks.between(mz_M3pNapCH3CN - prec_mass_error, mz_M3pNapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNapCH3OH = peaks.between(mz_M3pNapCH3OH - prec_mass_error, mz_M3pNapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pKpCH3CN = peaks.between(mz_M3pKpCH3CN - prec_mass_error, mz_M3pKpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pKpCH3OH = peaks.between(mz_M3pKpCH3OH - prec_mass_error, mz_M3pKpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_NH4, valid_Na, valid_K, valid_HpCH3CN, valid_HpCH3OH, valid_NapCH3CN, valid_NapCH3OH, valid_KpCH3CN, valid_KpCH3OH, valid_M2pH, valid_M2pNH4, valid_M2pNa, valid_M2pK, valid_M2pHpCH3CN, valid_M2pHpCH3OH, valid_M2pNapCH3CN, valid_M2pNapCH3OH, valid_M2pKpCH3CN, valid_M2pKpCH3OH, valid_M3pH, valid_M3pNH4, valid_M3pNa, valid_M3pK, valid_M3pHpCH3CN, valid_M3pHpCH3OH, valid_M3pNapCH3CN, valid_M3pNapCH3OH, valid_M3pKpCH3CN, valid_M3pKpCH3OH]) def Solo_M4pNa(ion_idx, mgf_file): mz = mgf_file[ion_idx].get('pepmass')[0] peaks = pd.Series(mgf_file[ion_idx].peaks.mz) mz_H = 1.007825 + (mz - 22.98977)/4 mz_NH4 = 18.034374 + (mz - 22.98977)/4 mz_Na = 22.98977 + (mz - 22.98977)/4 mz_K = 38.963708 + (mz - 22.98977)/4 mz_HpCH3CN = 42.034374 + (mz - 22.98977)/4 mz_HpCH3OH = 33.034040 + (mz - 22.98977)/4 mz_NapCH3CN = 64.016319 + (mz - 22.98977)/4 mz_NapCH3OH = 55.015985 + (mz - 22.98977)/4 mz_KpCH3CN = 79.990257 + (mz - 22.98977)/4 mz_KpCH3OH = 70.989923 + (mz - 22.98977)/4 mz_M2pH = 1.007825 + (mz - 22.98977)/2 mz_M2pNH4 = 18.034374 + (mz - 22.98977)/2 mz_M2pNa = 22.98977 + (mz - 22.98977)/2 mz_M2pK = 38.963708 + (mz - 22.98977)/2 mz_M2pHpCH3CN = 42.034374 + (mz - 22.98977)/2 mz_M2pHpCH3OH = 33.034040 + (mz - 22.98977)/2 mz_M2pNapCH3CN = 64.016319 + (mz - 22.98977)/2 mz_M2pNapCH3OH = 55.015985 + (mz - 22.98977)/2 mz_M2pKpCH3CN = 79.990257 + (mz - 22.98977)/2 mz_M2pKpCH3OH = 70.989923 + (mz - 22.98977)/2 mz_M3pH = 1.007825 + (mz - 22.98977)*(3/4) mz_M3pNH4 = 18.034374 + (mz - 22.98977)*(3/4) mz_M3pNa = 22.98977 + (mz - 22.98977)*(3/4) mz_M3pK = 38.963708 + (mz - 22.98977)*(3/4) mz_M3pHpCH3CN = 42.034374 + (mz - 22.98977)*(3/4) mz_M3pHpCH3OH = 33.034040 + (mz - 22.98977)*(3/4) mz_M3pNapCH3CN = 64.016319 + (mz - 22.98977)*(3/4) mz_M3pNapCH3OH = 55.015985 + (mz - 22.98977)*(3/4) mz_M3pKpCH3CN = 79.990257 + (mz - 22.98977)*(3/4) mz_M3pKpCH3OH = 70.989923 + (mz - 22.98977)*(3/4) valid_H = peaks.between(mz_H - prec_mass_error, mz_H + prec_mass_error, inclusive = "both").sum() > 0 valid_NH4 = peaks.between(mz_NH4 - prec_mass_error, mz_NH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_Na = peaks.between(mz_Na - prec_mass_error, mz_Na + prec_mass_error, inclusive = "both").sum() > 0 valid_K = peaks.between(mz_K - prec_mass_error, mz_K + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3CN = peaks.between(mz_HpCH3CN - prec_mass_error, mz_HpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_HpCH3OH = peaks.between(mz_HpCH3OH - prec_mass_error, mz_HpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3CN = peaks.between(mz_NapCH3CN - prec_mass_error, mz_NapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_NapCH3OH = peaks.between(mz_NapCH3OH - prec_mass_error, mz_NapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3CN = peaks.between(mz_KpCH3CN - prec_mass_error, mz_KpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_KpCH3OH = peaks.between(mz_KpCH3OH - prec_mass_error, mz_KpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pH = peaks.between(mz_M2pH - prec_mass_error, mz_M2pH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNH4 = peaks.between(mz_M2pNH4 - prec_mass_error, mz_M2pNH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNa = peaks.between(mz_M2pNa - prec_mass_error, mz_M2pNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pK = peaks.between(mz_M2pK - prec_mass_error, mz_M2pK + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3CN = peaks.between(mz_M2pHpCH3CN - prec_mass_error, mz_M2pHpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pHpCH3OH = peaks.between(mz_M2pHpCH3OH - prec_mass_error, mz_M2pHpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3CN = peaks.between(mz_M2pNapCH3CN - prec_mass_error, mz_M2pNapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pNapCH3OH = peaks.between(mz_M2pNapCH3OH - prec_mass_error, mz_M2pNapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3CN = peaks.between(mz_M2pKpCH3CN - prec_mass_error, mz_M2pKpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M2pKpCH3OH = peaks.between(mz_M2pKpCH3OH - prec_mass_error, mz_M2pKpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pH = peaks.between(mz_M3pH - prec_mass_error, mz_M3pH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNH4 = peaks.between(mz_M3pNH4 - prec_mass_error, mz_M3pNH4 + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNa = peaks.between(mz_M3pNa - prec_mass_error, mz_M3pNa + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pK = peaks.between(mz_M3pK - prec_mass_error, mz_M3pK + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pHpCH3CN = peaks.between(mz_M3pHpCH3CN - prec_mass_error, mz_M3pHpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pHpCH3OH = peaks.between(mz_M3pHpCH3OH - prec_mass_error, mz_M3pHpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNapCH3CN = peaks.between(mz_M3pNapCH3CN - prec_mass_error, mz_M3pNapCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pNapCH3OH = peaks.between(mz_M3pNapCH3OH - prec_mass_error, mz_M3pNapCH3OH + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pKpCH3CN = peaks.between(mz_M3pKpCH3CN - prec_mass_error, mz_M3pKpCH3CN + prec_mass_error, inclusive = "both").sum() > 0 valid_M3pKpCH3OH = peaks.between(mz_M3pKpCH3OH - prec_mass_error, mz_M3pKpCH3OH + prec_mass_error, inclusive = "both").sum() > 0 return sum([valid_H, valid_NH4, valid_Na, valid_K, valid_HpCH3CN, valid_HpCH3OH, valid_NapCH3CN, valid_NapCH3OH, valid_KpCH3CN, valid_KpCH3OH, valid_M2pH, valid_M2pNH4, valid_M2pNa, valid_M2pK, valid_M2pHpCH3CN, valid_M2pHpCH3OH, valid_M2pNapCH3CN, valid_M2pNapCH3OH, valid_M2pKpCH3CN, valid_M2pKpCH3OH, valid_M3pH, valid_M3pNH4, valid_M3pNa, valid_M3pK, valid_M3pHpCH3CN, valid_M3pHpCH3OH, valid_M3pNapCH3CN, valid_M3pNapCH3OH, valid_M3pKpCH3CN, valid_M3pKpCH3OH]) def Not_validable(ion_idx, mgf_file): return 0 def Validator_choice(adduct, ion_mode): """Selects the Species_rule function appropriate to the provided adduct. """ if ion_mode == "POS": if adduct == 'M1|p1H|pCH3OH' : return Solo_M1pHpCH3OH elif adduct == 'M1|p1H|pHCOOH' : return Solo_M1pHpHCOOH elif adduct == 'M2|p1Na|' : return Solo_M2pNa elif adduct == 'M1|p1NH4|' : return Solo_M1pNH4 elif adduct == 'M1|p1NH4|pCH3CN' : return Solo_M1pNH4pCH3CN elif adduct == 'M1|p1Na|' : return Solo_M1pNa elif adduct == 'M1|p1H|' : return Not_validable elif adduct == 'M1|p1Na|pCH3CN' : return Solo_M1pNapCH3CN elif adduct == 'M1|p1H|pCH3CN' : return Solo_M1pHpCH3CN elif adduct == 'M2|p1H|' : return Solo_M2pH elif adduct == 'M2|p1H|pCH3CN' : return Solo_M2pHpCH3CN elif adduct == 'M2|p1NH4|' : return Solo_M2pNH4 elif adduct == 'M2|p1K|' : return Solo_M2pK elif adduct == 'M1|p1K|' : return Solo_M1pK elif adduct == 'M1|p1K|pCH3OH' : return Solo_M1pKpCH3OH elif adduct == 'M2|p1Na|pCH3OH' : return Solo_M2pNapCH3OH elif adduct == 'M2|p1H|pHCOOH' : return Solo_M2pHpHCOOH elif adduct == 'M2|p1Na|pCH3CN' : return Solo_M2pNapCH3CN elif adduct == 'M2|p1H|pCH3OH' : return Solo_M2pHpCH3OH elif adduct == 'M3|p1H|' : return Solo_M3pH elif adduct == 'M3|p1Na|' : return Solo_M3pNa elif adduct == 'M3|p1NH4|' : return Solo_M3pNH4 elif adduct == 'M4|p1K|' : return Solo_M4pK elif adduct == 'M4|p1H|' : return Solo_M4pH elif adduct == 'M4|p1NH4|' : return Solo_M4pNH4 elif adduct == 'M4|p1Na|' : return Solo_M4pNa elif adduct == 'M3|p1K|' : return Solo_M3pK elif ion_mode == "NEG": if adduct == 'M1|m1H|' : return Not_validable elif adduct == 'M1|p1Cl|' : return Not_validable elif adduct == 'M1|m1H|pC4H11N' : return Solo_M1mHpC4H11N elif adduct == 'M1|m1H|pHCOOH' : return Solo_M1mHpHCOOH elif adduct == 'M1|m2Hp1Na|pHCOOH' : return Solo_M1m2HpNapHCOOH elif adduct == 'M1|m2Hp1Na|' : return Solo_M1m2HpNa elif adduct == 'M1|m2Hp1K|' : return Solo_M1m2HpK elif adduct == 'M2|m1H|pC4H11N' : return Solo_M2mHpC4H11N elif adduct == 'M2|m1H|pHCOOH' : return Solo_M2mHpHCOOH elif adduct == 'M2|m1H|' : return Solo_M2mH elif adduct == 'M2|p1Cl|' : return Solo_M2pCl elif adduct == 'M2|m2Hp1Na|pHCOOH' : return Solo_M2m2HpNapHCOOH elif adduct == 'M2|m2Hp1Na|' : return Solo_M2m2HpNa elif adduct == 'M2|m2Hp1K|' : return Solo_M2m2HpK elif adduct == 'M3|m1H|' : return Solo_M3mH elif adduct == 'M3|p1Cl|' : return Solo_M3pCl elif adduct == 'M3|m2Hp1Na|pHCOOH' : return Solo_M3m2HpNapHCOOH elif adduct == 'M3|m2Hp1Na|' : return Solo_M3m2HpNa elif adduct == 'M4|m1H|' : return Solo_M4mH elif adduct == 'M4|p1Cl|' : return Solo_M4pCl elif adduct == 'M4|m2Hp1Na|pHCOOH' : return Solo_M4m2HpNapHCOOH elif adduct == 'M4|m2Hp1Na|' : return Solo_M4m2HpNa def Column_correction(table): drop_col = [i for i in table.columns if "Unnamed" in i] table.drop(drop_col, axis = 1, inplace = True) return table def Neutral_table(ion1_mz, adduct_table): """Computes all possible molecular masses (hypothetical neutrals) for an ion (ion 1) given the different ion species available in the adducts table. """ neutral_table = adduct_table.copy() neutral_table['neutral_mass'] = [0.0]*len(neutral_table) for i in neutral_table.index : neutral_table.loc[i, 'neutral_mass'] = Neutral_mass_calculator(ion1_mz, neutral_table['Adduct_mass'][i], neutral_table['Mol_multiplier'][i], neutral_table['Charge'][i]) return neutral_table def Ion_table(neutral_mass, adduct_table): """Computes all possible ion m/z values for an given molecular mass given the different ion species available in the adducts table. """ ion_table = adduct_table.copy() mz_list = [] for i in ion_table.index: mz_list.append(Neutral_to_adduct(neutral_mass, ion_table.loc[i, "Adduct_mass"], ion_table.loc[i, "Mol_multiplier"], ion_table.loc[i, "Charge"])) ion_table['ion_mz'] = mz_list return ion_table def Neutral_to_adduct(mol_mass, adduct_mass, mol_count, ion_charge) : """Calculates the m/z value of an ion species, given its supposed molecular mass (neutral) and other parameters from the adducts table. """ return round((mol_count*mol_mass + adduct_mass)/abs(ion_charge), 4) def Neutral_mass_calculator(input_mz, adduct_mass, mol_count, ion_charge) : """Calculates the molecular mass of a molecule given an ion species, its m/z value and other parameters from the adducts table. """ return round(((input_mz*abs(ion_charge)) - adduct_mass)/mol_count, 4) def Samplewise_export(neg_csv_file, pos_csv_file, out_path, merged_edge_table, merged_node_table) : print("Exporting sample-wise tables...") neg_csv = pd.read_csv(neg_csv_file, index_col ="row ID") pos_csv = pd.read_csv(pos_csv_file, index_col ="row ID") neg_csv = Column_correction(neg_csv) pos_csv = Column_correction(pos_csv) neg_csv.columns = neg_csv.columns.str.replace(".mzXML Peak area", "").str.replace('NEG_', '', regex = False) pos_csv.columns = pos_csv.columns.str.replace(".mzXML Peak area", "").str.replace('POS_', '', regex = False) neg_csv.drop(["row m/z", "row retention time"], axis = 1, inplace = True) pos_csv.drop(["row m/z", "row retention time"], axis = 1, inplace = True) samples = list(set(list(neg_csv.columns) + list(pos_csv.columns))) samples.sort() for sample in tqdm(samples): #sample = samples[0] ion_ids_neg = neg_csv.index[neg_csv[sample] > 0.0] ion_ids_pos = pos_csv.index[pos_csv[sample] > 0.0] #convert feature_ids to the new indexes tmp_table = merged_node_table[merged_node_table['status'] != "neg_neutral"] tmp_table = tmp_table[tmp_table['status'] != "pos_neutral"] tmp_table = tmp_table[tmp_table['status'] != "mix_neutral"] tmp_table_pos = tmp_table[tmp_table['ion_mode'] == "POS"] tmp_table_neg = tmp_table[tmp_table['ion_mode'] == "NEG"] ion_idx_neg = pd.Series(tmp_table_neg.index, index = tmp_table_neg['feature_id']) ion_idx_neg = list(ion_idx_neg[ion_ids_neg]) ion_idx_pos = pd.Series(tmp_table_pos.index, index = tmp_table_pos['feature_id']) ion_idx_pos = list(ion_idx_pos[ion_ids_pos]) ion_idx_mix = ion_idx_neg + ion_idx_pos # Get sample neutrals neutral_edges = merged_edge_table.loc[merged_edge_table["Adnotation"].dropna().index] kept_edges = [i for i in neutral_edges.index if neutral_edges.loc[i, "node_2"] in ion_idx_mix] # Get ion edges ion_edges = merged_edge_table[merged_edge_table['status'] != "neg_add_edge"] ion_edges = ion_edges[ion_edges['status'] != "pos_add_edge"] for i in ion_edges.index: if ion_edges.loc[i, "node_1"] in ion_idx_mix: if ion_edges.loc[i, "node_2"] in ion_idx_mix: kept_edges.append(i) kept_edges.sort() sample_edges = merged_edge_table.loc[kept_edges] sample_edges.sort_values('node_1', inplace = True) sample_edges.reset_index(inplace = True, drop = True) kept_nodes = list(set(list(sample_edges['node_1']) + list(sample_edges['node_2']))) kept_nodes.sort() sample_nodes = merged_node_table.loc[kept_nodes].copy() sample_nodes.drop(pd.Series(samples) + ".mzXML Peak area", axis = 1, inplace = True) sample_nodes[sample] = merged_node_table[sample + ".mzXML Peak area"] sample_nodes.to_csv(out_path + "MIX_" + sample + "_nodes.csv", index_label = "Index") sample_edges.to_csv(out_path + "MIX_" + sample + "_edges.csv", index_label = "Index") return import os import pandas as pd from pandas.core.common import flatten import sys from tqdm import tqdm from matchms.importing import load_from_mgf from matchms.filtering import default_filters def Spectrum_processing(s): s = default_filters(s) return s # Load parameters: in_path_full_neg= params['neg_out_0'] in_path_full_pos= params['pos_out_0'] neg_mgf= params['neg_mgf'] pos_mgf= params['pos_mgf'] pos_csv= params['pos_csv'] neg_csv= params['neg_csv'] adnotation_pos_full= params['pos_out_3_1'] adnotation_neg_full= params['neg_out_3_1'] out_full= params['mix_out_4_1'] out_samples= params['mix_out_4_2'] neg_nodes_full = "NEG_full_nodes.csv" neg_edges_full = "NEG_full_edges.csv" pos_nodes_full = "POS_full_nodes.csv" pos_edges_full = "POS_full_edges.csv" adduct_table_primary_neg= params['mm_addtable_primary_neg'] adduct_table_secondary_neg= params['mm_addtable_secondary_neg'] adduct_table_primary_pos= params['mm_addtable_primary_pos'] adduct_table_secondary_pos= params['mm_addtable_secondary_pos'] mass_error= params['mm_mass_error'] prec_mass_error = params['mm_prec_mass_error'] rt_error= params['mm_rt_error'] bnr_list_neg = params['mm_bnr_neg'] bnr_list_pos = params['mm_bnr_pos'] #Load and filter MGF files print("Loading and filtering NEG MGF file...") mgf_file_neg = list(load_from_mgf(in_path_full_neg + neg_mgf)) mgf_file_neg = [Spectrum_processing(s) for s in mgf_file_neg] print("Loading and filtering POS MGF file...") mgf_file_pos = list(load_from_mgf(in_path_full_pos + pos_mgf)) mgf_file_pos = [Spectrum_processing(s) for s in mgf_file_pos] #Load adduct tables adduct_table_primary_neg = pd.read_csv("./params/" + adduct_table_primary_neg, sep = "\t") adduct_table_secondary_neg = pd.read_csv("./params/" + adduct_table_secondary_neg, sep = "\t") adduct_table_merged_neg = adduct_table_primary_neg.append(adduct_table_secondary_neg, ignore_index = True) adduct_table_primary_pos = pd.read_csv("./params/" + adduct_table_primary_pos, sep = "\t") adduct_table_secondary_pos = pd.read_csv("./params/" + adduct_table_secondary_pos, sep = "\t") adduct_table_merged_pos = adduct_table_primary_pos.append(adduct_table_secondary_pos, ignore_index = True) # Produce base neutral adduct tables adduct_table_base_neg = [adduct_table_merged_neg.index[adduct_table_merged_neg['Adduct'] == adduct][0] for adduct in bnr_list_neg] adduct_table_base_neg = adduct_table_merged_neg.loc[adduct_table_base_neg] adduct_table_base_pos = [adduct_table_merged_pos.index[adduct_table_merged_pos['Adduct'] == adduct][0] for adduct in bnr_list_pos] adduct_table_base_pos = adduct_table_merged_pos.loc[adduct_table_base_pos] # Loading files: POS and NEG node tables, edge tables and MZmine CSV output neg_mzmine_csv = pd.read_csv(in_path_full_neg + neg_csv, index_col = "row ID") neg_mzmine_csv = Column_correction(neg_mzmine_csv) pos_mzmine_csv = pd.read_csv(in_path_full_pos + pos_csv, index_col = "row ID") pos_mzmine_csv = Column_correction(pos_mzmine_csv) edge_table_all_neg = pd.read_csv(adnotation_neg_full + neg_edges_full, index_col = "Index") node_table_all_neg = pd.read_csv(adnotation_neg_full + neg_nodes_full, index_col = "feature_id") edge_table_all_pos = pd.read_csv(adnotation_pos_full + pos_edges_full, index_col = "Index") node_table_all_pos = pd.read_csv(adnotation_pos_full + pos_nodes_full, index_col = "feature_id") # Setting ion modes in tables node_table_all_neg['ion_mode'] = ['NEG']*len(node_table_all_neg) edge_table_all_neg['ion_mode'] = ['NEG']*len(edge_table_all_neg) node_table_all_pos['ion_mode'] = ['POS']*len(node_table_all_pos) edge_table_all_pos['ion_mode'] = ['POS']*len(edge_table_all_pos) # New indexes will be used when merging POS and NEG tables, feature_IDs are saved in a dedicated column node_table_all_neg['feature_id'] = node_table_all_neg.index node_table_all_pos['feature_id'] = node_table_all_pos.index # Set samples in node tables : neg_mzmine_csv.drop(['row m/z', 'row retention time'], axis = 1, inplace = True) pos_mzmine_csv.drop(['row m/z', 'row retention time'], axis = 1, inplace = True) neg_mzmine_csv.columns = pd.Series(neg_mzmine_csv.columns).str.replace('NEG_', '', regex = False) pos_mzmine_csv.columns = pd.Series(pos_mzmine_csv.columns).str.replace('POS_', '', regex = False) node_table_all_neg["samples"] = ['']*len(node_table_all_neg) node_table_all_pos["samples"] = ['']*len(node_table_all_pos) neg_ions_idx = node_table_all_neg[node_table_all_neg['status'] != "neutral"].index pos_ions_idx = node_table_all_pos[node_table_all_pos['status'] != "neutral"].index print("Adding samples to neg ions...") for ion in tqdm(neg_ions_idx): samples = list(neg_mzmine_csv.columns[neg_mzmine_csv.loc[ion] > 0]) node_table_all_neg.loc[ion, "samples"] = '|'.join(samples) print("Adding samples to pos ions...") for ion in tqdm(pos_ions_idx): samples = list(pos_mzmine_csv.columns[pos_mzmine_csv.loc[ion] > 0]) node_table_all_pos.loc[ion, "samples"] = '|'.join(samples) # Add samples to neutrals neg_neutrals_idx = node_table_all_neg[node_table_all_neg['status'] == "neutral"].index pos_neutrals_idx = node_table_all_pos[node_table_all_pos['status'] == "neutral"].index print("Adding samples to neg neutrals...") for neutral in tqdm(neg_neutrals_idx): tmp_ions = list(edge_table_all_neg['node_2'][edge_table_all_neg['node_1'] == neutral]) tmp_samples = [] for ion in tmp_ions: tmp_samples += node_table_all_neg.loc[ion, "samples"].split('|') tmp_samples = list(set(tmp_samples)) tmp_samples.sort() tmp_samples = '|'.join(tmp_samples) node_table_all_neg.loc[neutral, "samples"] = tmp_samples print("Adding samples to pos neutrals...") for neutral in tqdm(pos_neutrals_idx): tmp_ions = list(edge_table_all_pos['node_2'][edge_table_all_pos['node_1'] == neutral]) tmp_samples = [] for ion in tmp_ions: tmp_samples += node_table_all_pos.loc[ion, "samples"].split('|') tmp_samples = list(set(tmp_samples)) tmp_samples.sort() tmp_samples = '|'.join(tmp_samples) node_table_all_pos.loc[neutral, "samples"] = tmp_samples # Produce the merged mode edge and node tables node_table_ions_neg= node_table_all_neg[node_table_all_neg['status'] != "neutral"] node_table_ions_pos= node_table_all_pos[node_table_all_pos['status'] != "neutral"] merged_node_table = pd.DataFrame() merged_node_table = merged_node_table.append(node_table_ions_neg, ignore_index = True) merged_node_table = merged_node_table.append(node_table_ions_pos, ignore_index = True) merged_edge_table = pd.DataFrame() merged_edge_table = merged_edge_table.append(edge_table_all_neg, ignore_index = True) merged_edge_table = merged_edge_table.append(edge_table_all_pos, ignore_index = True) #Chekc from NEG to POS if there are neutral nodes that might match neg_neutrals = node_table_all_neg[node_table_all_neg['status'] == "neutral"].copy() neg_neutrals['feature_id'] = [None]*len(neg_neutrals) pos_neutrals = node_table_all_pos[node_table_all_pos['status'] == "neutral"].copy() pos_neutrals['feature_id'] = [None]*len(pos_neutrals) merged_neutrals = [] for neutral in tqdm(neg_neutrals_idx): # NEG -> POS #neutral = neg_neutrals_idx[0] mz_neg = neg_neutrals.loc[neutral, "mz"] rt_neg = neg_neutrals.loc[neutral, "rt"] samples_neg = set(neg_neutrals.loc[neutral, "samples"].split('|')) counter_pos = pos_neutrals[pos_neutrals["mz"].between(mz_neg - mass_error, mz_neg + mass_error, inclusive = "both")] counter_pos = counter_pos[counter_pos["rt"].between(rt_neg - rt_error, rt_neg + rt_error, inclusive = "both")] if len(counter_pos) == 0 : continue counter_pos['d_rt'] = abs(counter_pos['rt']-rt_neg) shared_samples = [] for i in counter_pos.index: samples_pos = counter_pos.loc[i, "samples"].split('|') shared_samples.append(len(samples_neg.intersection(samples_pos))) counter_pos['shared_samples'] = shared_samples counter_pos = counter_pos[counter_pos['shared_samples'] > 0] counter_pos = counter_pos[counter_pos['shared_samples'] == counter_pos['shared_samples'].max()] counter_pos = counter_pos[counter_pos['d_rt'] == counter_pos['d_rt'].min()] if len(counter_pos) > 1 : sys.exit("MORE THAN 1 COUTNER NEUTRAL AT SAME RT") elif len(counter_pos) == 0 : continue else: mz_pos = counter_pos["mz"].iloc[0] rt_pos = counter_pos["rt"].iloc[0] merged_neutrals.append((neutral, mz_neg, rt_neg, counter_pos.index[0], mz_pos, rt_pos)) merged_neutrals = pd.DataFrame(merged_neutrals, columns = ['neg_neutral', 'mass_neg', 'rt_neg', 'pos_neutral', 'mass_pos', 'rt_pos']) merged_neutrals['d_rt'] = abs(merged_neutrals['rt_pos'] - merged_neutrals['rt_neg']) # Sometimes, several NEG neutrals might match the same POS neutral. # The NEG neutral with the closest RT to the POS neutral is chosen for neutral in merged_neutrals['pos_neutral'].unique(): tmp_table = merged_neutrals[merged_neutrals['pos_neutral'] == neutral].copy() if len(tmp_table) > 1 : tmp_table.sort_values('d_rt', inplace = True) for i in tmp_table.index[1:]: merged_neutrals.drop(i, inplace = True) # A transitions table is produced containing the neutrals to be merged and their # new ID. Later will also contain non-merged neutrals and their new IDs transitions_table = list() print("Adding merged neutrals to the merged node table...") for i in tqdm(merged_neutrals.index): new_idx = merged_node_table.index.max() + 1 neutral_neg = merged_neutrals.loc[i, "neg_neutral"] neutral_pos = merged_neutrals.loc[i, "pos_neutral"] neg_ions = list(edge_table_all_neg['node_2'][edge_table_all_neg['node_1'] == neutral_neg]) neg_count = len(neg_ions) neg_mz = node_table_all_neg.loc[neutral_neg, "mz"] neg_rt = node_table_all_neg.loc[neutral_neg, "rt"] neg_tic = node_table_all_neg.loc[neutral_neg, "TIC"] neg_samples = node_table_all_neg.loc[neutral_neg, "samples"].split('|') pos_ions = list(edge_table_all_pos['node_2'][edge_table_all_pos['node_1'] == neutral_pos]) pos_count = len(pos_ions) pos_mz = node_table_all_pos.loc[neutral_pos, "mz"] pos_rt = node_table_all_pos.loc[neutral_pos, "rt"] pos_tic = node_table_all_pos.loc[neutral_pos, "TIC"] pos_samples = node_table_all_pos.loc[neutral_pos, "samples"].split('|') mix_mz = round(((neg_mz*neg_count) + (pos_mz*pos_count))/(neg_count + pos_count), 4) mix_rt = round(((neg_rt*neg_count) + (pos_rt*pos_count))/(neg_count + pos_count), 3) mix_tic = neg_tic + pos_tic mix_samples = list(set(neg_samples + pos_samples)) mix_samples.sort() mix_samples = '|'.join(mix_samples) merged_node_table.loc[new_idx] = [mix_mz, mix_rt, mix_tic, 0, None, 0, "neutral", len(neg_ions) + len(pos_ions), None, "MIX", None, mix_samples] transitions_table.append((new_idx, neutral_neg, neutral_pos)) transitions_table = pd.DataFrame(transitions_table, columns = ['MIX', 'NEG', 'POS']) # Drop neutrals that were merged and redo the process for the remaining neutrals # that might have escaped, this time in POS to NEG for a change. neg_neutrals.drop(transitions_table['NEG'], inplace = True) pos_neutrals.drop(transitions_table['POS'], inplace = True) merged_neutrals = [] for neutral in tqdm(pos_neutrals.index): # POS -> NEG #neutral = pos_neutrals.index[0] mz_pos = pos_neutrals.loc[neutral, "mz"] rt_pos = pos_neutrals.loc[neutral, "rt"] samples_pos = set(pos_neutrals.loc[neutral, "samples"].split('|')) counter_neg = neg_neutrals[neg_neutrals["mz"].between(mz_pos - mass_error, mz_pos + mass_error, inclusive = "both")] counter_neg = counter_neg[counter_neg["rt"].between(rt_pos - rt_error, rt_pos + rt_error, inclusive = "both")] if len(counter_neg) == 0 : continue counter_neg['d_rt'] = abs(counter_neg['rt']-rt_pos) shared_samples = [] for i in counter_neg.index: samples_neg = counter_neg.loc[i, "samples"].split('|') shared_samples.append(len(samples_pos.intersection(samples_neg))) counter_neg['shared_samples'] = shared_samples counter_neg = counter_neg[counter_neg['shared_samples'] > 0] counter_neg = counter_neg[counter_neg['shared_samples'] == counter_neg['shared_samples'].max()] counter_neg = counter_neg[counter_neg['d_rt'] == counter_neg['d_rt'].min()] if len(counter_neg) > 1 : sys.exit("MORE THAN 1 COUTNER NEUTRAL AT SAME RT") elif len(counter_neg) == 0 : continue else: mz_neg = counter_neg["mz"].iloc[0] rt_neg = counter_neg["rt"].iloc[0] merged_neutrals.append((counter_neg.index[0], mz_neg, rt_neg, neutral, mz_pos, rt_pos)) merged_neutrals = pd.DataFrame(merged_neutrals, columns = ['neg_neutral', 'mass_neg', 'rt_neg', 'pos_neutral', 'mass_pos', 'rt_pos']) merged_neutrals['d_rt'] = abs(merged_neutrals['rt_pos'] - merged_neutrals['rt_neg']) # Same as before, if there are several POS neutrals per NEG neutral, choose the # closest one by RT for neutral in merged_neutrals['pos_neutral'].unique(): tmp_table = merged_neutrals[merged_neutrals['pos_neutral'] == neutral].copy() if len(tmp_table) > 1 : tmp_table.sort_values('d_rt', inplace = True) for i in tmp_table.index[1:]: merged_neutrals.drop(i, inplace = True) # Add the new merged neutrals to the transitions table print("Adding merged neutrals to the merged node table...") for i in tqdm(merged_neutrals.index): new_idx = merged_node_table.index.max() + 1 neutral_neg = merged_neutrals.loc[i, "neg_neutral"] neutral_pos = merged_neutrals.loc[i, "pos_neutral"] neg_ions = list(edge_table_all_neg['node_2'][edge_table_all_neg['node_1'] == neutral_neg]) neg_count = len(neg_ions) neg_mz = node_table_all_neg.loc[neutral_neg, "mz"] neg_rt = node_table_all_neg.loc[neutral_neg, "rt"] neg_tic = node_table_all_neg.loc[neutral_neg, "TIC"] neg_samples = node_table_all_neg.loc[neutral_neg, "samples"].split('|') pos_ions = list(edge_table_all_pos['node_2'][edge_table_all_pos['node_1'] == neutral_pos]) pos_count = len(pos_ions) pos_mz = node_table_all_pos.loc[neutral_pos, "mz"] pos_rt = node_table_all_pos.loc[neutral_pos, "rt"] pos_tic = node_table_all_pos.loc[neutral_pos, "TIC"] pos_samples = node_table_all_pos.loc[neutral_pos, "samples"].split('|') mix_mz = round(((neg_mz*neg_count) + (pos_mz*pos_count))/(neg_count + pos_count), 4) mix_rt = round(((neg_rt*neg_count) + (pos_rt*pos_count))/(neg_count + pos_count), 3) mix_tic = neg_tic + pos_tic mix_samples = list(set(neg_samples + pos_samples)) mix_samples.sort() mix_samples = '|'.join(mix_samples) merged_node_table.loc[new_idx] = [mix_mz, mix_rt, mix_tic, 0, None, 0, "neutral", len(neg_ions) + len(pos_ions), None, "MIX", None, mix_samples] transitions_table.loc[transitions_table.index.max() + 1] = [new_idx, neutral_neg, neutral_pos] # Add non merged neutrals to the merged_node_table (using their new IDs) and # to the transitions table # First, eliminate merged_neutrals intersect_neutrals = set(neg_neutrals.index) intersect_neutrals = intersect_neutrals.intersection(transitions_table['NEG']) neg_neutrals.drop(intersect_neutrals, inplace = True) intersect_neutrals = set(pos_neutrals.index) intersect_neutrals = intersect_neutrals.intersection(transitions_table['POS']) pos_neutrals.drop(intersect_neutrals, inplace = True) print('Adding non-merged neg neutrals to the merged node table...') for neutral in tqdm(neg_neutrals.index): new_idx = merged_node_table.index.max() + 1 merged_node_table.loc[new_idx] = neg_neutrals.loc[neutral].copy() new_row = pd.Series([new_idx, neutral, None], index = ["MIX", "NEG", "POS"]) transitions_table = transitions_table.append(new_row, ignore_index = True) print('Adding non-merged pos neutrals to the merged node table...') for neutral in tqdm(pos_neutrals.index): new_idx = merged_node_table.index.max() + 1 merged_node_table.loc[new_idx] = pos_neutrals.loc[neutral].copy() new_row = pd.Series([new_idx, None, neutral], index = ["MIX", "NEG", "POS"]) transitions_table = transitions_table.append(new_row, ignore_index = True) # Replace old IDs by new ones in the merged edge table. print('Resetting edge table IDs...') for i in tqdm(merged_edge_table.index): ion_mode = merged_edge_table.loc[i, "ion_mode"] if ion_mode == "NEG" : opposed_mode = "POS" else : opposed_mode = "NEG" merged_node_table_sub = merged_node_table[merged_node_table['ion_mode'] != opposed_mode] if merged_edge_table.loc[i, "status"] == "add_edge": node_1 = merged_edge_table.loc[i, "node_1"] node_2 = merged_edge_table.loc[i, "node_2"] new_node_1 = int(transitions_table["MIX"][transitions_table[ion_mode] == node_1].iloc[0]) new_node_2 = merged_node_table_sub.index[merged_node_table_sub["feature_id"] == node_2][0] merged_edge_table.loc[i, "node_1"] = new_node_1 merged_edge_table.loc[i, "node_2"] = new_node_2 else: node_1 = merged_edge_table.loc[i, "node_1"] node_2 = merged_edge_table.loc[i, "node_2"] new_node_1 = merged_node_table_sub.index[merged_node_table_sub["feature_id"] == node_1][0] new_node_2 = merged_node_table_sub.index[merged_node_table_sub["feature_id"] == node_2][0] merged_edge_table.loc[i, "node_1"] = new_node_1 merged_edge_table.loc[i, "node_2"] = new_node_2 # Search for remaining ion annotations remains_table_pos = merged_node_table[merged_node_table['status'] != "neutral"] remains_table_pos = remains_table_pos[remains_table_pos['status'] != "adduct"] remains_table_pos = remains_table_pos[remains_table_pos['ion_mode'] == "POS"] remains_table_neg = merged_node_table[merged_node_table['status'] != "neutral"] remains_table_neg = remains_table_neg[remains_table_neg['status'] != "adduct"] remains_table_neg = remains_table_neg[remains_table_neg['ion_mode'] == "NEG"] node_table_neutrals_pos = merged_node_table[merged_node_table["status"] == "neutral"] node_table_neutrals_pos = node_table_neutrals_pos[node_table_neutrals_pos["ion_mode"] == "POS"] node_table_neutrals_neg = merged_node_table[merged_node_table["status"] == "neutral"] node_table_neutrals_neg = node_table_neutrals_neg[node_table_neutrals_neg["ion_mode"] == "NEG"] print('Linking NEG neutrals to single POS ions...') candidates_table = list() for i in tqdm(node_table_neutrals_neg.index): mol_mass = node_table_neutrals_neg.loc[i, "mz"] mol_rt = node_table_neutrals_neg.loc[i, "rt"] mol_samples = set(node_table_neutrals_neg.loc[i, "samples"].split('|')) ion_table = Ion_table(mol_mass, adduct_table_merged_pos) ion_hits = list() hit_table_rt = remains_table_pos[remains_table_pos['rt'].between(mol_rt - rt_error, mol_rt + rt_error, inclusive = "both")].copy() shares_samples_list = list() for j in hit_table_rt.index: ion_samples = hit_table_rt.loc[j, "samples"].split('|') shared_samples = len(list(mol_samples.intersection(ion_samples))) shares_samples_list.append(shared_samples) hit_table_rt['shared_samples'] = shares_samples_list hit_table_rt = hit_table_rt[hit_table_rt['shared_samples'] > 0] for j in ion_table.index: ion_mz = ion_table.loc[j, "ion_mz"] hit_table = hit_table_rt[hit_table_rt['mz'].between(ion_mz - mass_error, ion_mz + mass_error, inclusive = "both")].copy() if len(hit_table) >0 : ion_hits.append('|'.join(hit_table.index.astype(str))) else: ion_hits.append(None) ion_table['ion_hits'] = ion_hits ion_table = ion_table[~ion_table['ion_hits'].isnull()] for j in ion_table.index: adduct = ion_table.loc[j, "Adduct"] for k in ion_table.loc[j, "ion_hits"].split('|'): k = int(k) d_rt = abs(mol_rt - remains_table_pos.loc[k, 'rt']) d_mz = abs(mol_mass - remains_table_pos.loc[k, 'mz']) candidates_table.append((k, i, adduct, d_rt, d_mz)) candidates_table = pd.DataFrame(candidates_table, columns = ['ion_idx', 'neutral', 'adduct', 'd_rt', 'd_mz']) # Migration of ions: unique_hits = candidates_table['ion_idx'].unique().tolist() selected_neutrals = list() selected_adducts = list() delta_rts = list() delta_mzs = list() for i in unique_hits: tmp_table = candidates_table[candidates_table['ion_idx'] == i] selected_neutral = tmp_table['d_rt'].idxmin() selected_neutrals.append(tmp_table.loc[selected_neutral, "neutral"]) selected_adducts.append(tmp_table.loc[selected_neutral, "adduct"]) delta_rts.append(tmp_table.loc[selected_neutral, "d_rt"]) delta_mzs.append(tmp_table.loc[selected_neutral, "d_mz"]) candidates_table= list(zip(unique_hits, selected_neutrals, selected_adducts, delta_rts, delta_mzs)) candidates_table = pd.DataFrame(candidates_table, columns = ['ion_idx', 'neutral', 'adduct', 'd_rt', 'd_mz']) # Report results and node and edge tables: print('Updating node and edge tables...') for i in tqdm(candidates_table.index): # Retrieve data for ion and neutral ion_idx = candidates_table.loc[i, "ion_idx"] neutral_idx = candidates_table.loc[i, "neutral"] adduct = candidates_table.loc[i, "adduct"] d_rt = candidates_table.loc[i, "d_rt"] d_mz = candidates_table.loc[i, "d_mz"] mgf_idx = int(merged_node_table.loc[ion_idx, "mgf_index"]) adduct_code = adduct_table_merged_pos['Adduct_code'][adduct_table_merged_pos['Adduct'] == adduct].iloc[0] Species_rule = Validator_choice(adduct_code, "POS") rule_points = Species_rule(mgf_idx, mgf_file_pos) ion_tic = merged_node_table.loc[ion_idx, 'TIC'] # Update node table with ion data merged_node_table.loc[ion_idx, 'status'] = "adduct" merged_node_table.loc[ion_idx, 'Adnotation'] = adduct merged_node_table.loc[ion_idx, 'rule_points'] = rule_points # Update node table with neutral data merged_node_table.loc[neutral_idx, "TIC"] += ion_tic merged_node_table.loc[neutral_idx, "adduct_count"] += 1 merged_node_table.loc[neutral_idx, "ion_mode"] = "MIX" tmp_samples = merged_node_table.loc[neutral_idx, "samples"].split('|') tmp_samples += merged_node_table.loc[ion_idx, "samples"].split('|') tmp_samples = list(set(tmp_samples)) tmp_samples.sort() tmp_samples = '|'.join(tmp_samples) merged_node_table.loc[neutral_idx, "samples"] = tmp_samples # Update edge table : del_edge = merged_edge_table[merged_edge_table['node_1'] == ion_idx] del_edge = del_edge.index[del_edge['node_2'] == ion_idx] if len(del_edge) > 0 : merged_edge_table.drop(del_edge[0], inplace = True) new_idx = merged_edge_table.index.max() + 1 merged_edge_table.loc[new_idx] = [neutral_idx, ion_idx, 0, 0, 0, d_rt, d_mz, "add_edge", None, adduct, adduct, "POS"] print('Linking POS neutrals to single NEG ions...') candidates_table = list() for i in tqdm(node_table_neutrals_pos.index): mol_mass = node_table_neutrals_pos.loc[i, "mz"] mol_rt = node_table_neutrals_pos.loc[i, "rt"] mol_samples = set(node_table_neutrals_pos.loc[i, "samples"].split('|')) ion_table = Ion_table(mol_mass, adduct_table_merged_neg) ion_hits = list() hit_table_rt = remains_table_neg[remains_table_neg['rt'].between(mol_rt - rt_error, mol_rt + rt_error, inclusive = "both")].copy() shares_samples_list = list() for j in hit_table_rt.index: ion_samples = hit_table_rt.loc[j, "samples"].split('|') shared_samples = len(list(mol_samples.intersection(ion_samples))) shares_samples_list.append(shared_samples) hit_table_rt['shared_samples'] = shares_samples_list hit_table_rt = hit_table_rt[hit_table_rt['shared_samples'] > 0] for j in ion_table.index: ion_mz = ion_table.loc[j, "ion_mz"] hit_table = hit_table_rt[hit_table_rt['mz'].between(ion_mz - mass_error, ion_mz + mass_error, inclusive = "both")].copy() if len(hit_table) >0 : ion_hits.append('|'.join(hit_table.index.astype(str))) else: ion_hits.append(None) ion_table['ion_hits'] = ion_hits ion_table = ion_table[~ion_table['ion_hits'].isnull()] for j in ion_table.index: adduct = ion_table.loc[j, "Adduct"] for k in ion_table.loc[j, "ion_hits"].split('|'): k = int(k) d_rt = abs(mol_rt - remains_table_neg.loc[k, 'rt']) d_mz = abs(mol_mass - remains_table_neg.loc[k, 'mz']) candidates_table.append((k, i, adduct, d_rt, d_mz)) candidates_table = pd.DataFrame(candidates_table, columns = ['ion_idx', 'neutral', 'adduct', 'd_rt', 'd_mz']) # Migration of ions: unique_hits = candidates_table['ion_idx'].unique().tolist() selected_neutrals = list() selected_adducts = list() delta_rts = list() delta_mzs = list() for i in unique_hits: tmp_table = candidates_table[candidates_table['ion_idx'] == i] selected_neutral = tmp_table['d_rt'].idxmin() selected_neutrals.append(tmp_table.loc[selected_neutral, "neutral"]) selected_adducts.append(tmp_table.loc[selected_neutral, "adduct"]) delta_rts.append(tmp_table.loc[selected_neutral, "d_rt"]) delta_mzs.append(tmp_table.loc[selected_neutral, "d_mz"]) candidates_table= list(zip(unique_hits, selected_neutrals, selected_adducts, delta_rts, delta_mzs)) candidates_table = pd.DataFrame(candidates_table, columns = ['ion_idx', 'neutral', 'adduct', 'd_rt', 'd_mz']) # Report results and node and edge tables: print('Updating node and edge tables...') for i in tqdm(candidates_table.index): # Retrieve data for ion and neutral ion_idx = candidates_table.loc[i, "ion_idx"] neutral_idx = candidates_table.loc[i, "neutral"] adduct = candidates_table.loc[i, "adduct"] d_rt = candidates_table.loc[i, "d_rt"] d_mz = candidates_table.loc[i, "d_mz"] mgf_idx = int(merged_node_table.loc[ion_idx, "mgf_index"]) adduct_code = adduct_table_merged_neg['Adduct_code'][adduct_table_merged_neg['Adduct'] == adduct].iloc[0] Species_rule = Validator_choice(adduct_code, "NEG") rule_points = Species_rule(mgf_idx, mgf_file_neg) ion_tic = merged_node_table.loc[ion_idx, 'TIC'] # Update node table with ion data merged_node_table.loc[ion_idx, 'status'] = "adduct" merged_node_table.loc[ion_idx, 'Adnotation'] = adduct merged_node_table.loc[ion_idx, 'rule_points'] = rule_points # Update node table with neutral data merged_node_table.loc[neutral_idx, "TIC"] += ion_tic merged_node_table.loc[neutral_idx, "adduct_count"] += 1 merged_node_table.loc[neutral_idx, "ion_mode"] = "MIX" tmp_samples = merged_node_table.loc[neutral_idx, "samples"].split('|') tmp_samples += merged_node_table.loc[ion_idx, "samples"].split('|') tmp_samples = list(set(tmp_samples)) tmp_samples.sort() tmp_samples = '|'.join(tmp_samples) merged_node_table.loc[neutral_idx, "samples"] = tmp_samples # Update edge table : del_edge = merged_edge_table[merged_edge_table['node_1'] == ion_idx] del_edge = del_edge.index[del_edge['node_2'] == ion_idx] if len(del_edge) > 0 : merged_edge_table.drop(del_edge[0], inplace = True) new_idx = merged_edge_table.index.max() + 1 merged_edge_table.loc[new_idx] = [neutral_idx, ion_idx, 0, 0, 0, d_rt, d_mz, "add_edge", None, adduct, adduct, "NEG"] # Produce cluster IDs. Making these is essential before opposed mode singletons # search, to filter out singletons already present in molecular clusters. node_pool = list(merged_node_table.index) singletons = list(merged_edge_table["node_1"][merged_edge_table['status'] == "self_edge"]) node_pool = list(set(node_pool) - set(singletons)) cluster_list = [] cluster_size_list = [] total_nodes = len(node_pool) while len(node_pool) > 0: new_cluster = [node_pool[0]] cluster_size = 0 perc = round((1-(len(node_pool)/total_nodes))*100,1) sys.stdout.write("\rDefining new clusters : {0}%".format(perc)) sys.stdout.flush() while cluster_size != len(new_cluster): cluster_size = len(new_cluster) tmp_idx = [] for i in new_cluster: tmp_idx += list(merged_edge_table.index[merged_edge_table['node_1'] == i]) tmp_idx += list(merged_edge_table.index[merged_edge_table['node_2'] == i]) new_cluster += list(merged_edge_table.loc[tmp_idx, 'node_1']) new_cluster += list(merged_edge_table.loc[tmp_idx, 'node_2']) new_cluster = list(set(new_cluster)) new_cluster.sort() node_pool = list(set(node_pool) - set(new_cluster)) cluster_size_list.append(len(new_cluster)) cluster_list.append('|'.join(list(map(str, new_cluster)))) cluster_table= pd.DataFrame() cluster_table['cluster'] = cluster_list cluster_table['cluster_size'] = cluster_size_list cluster_table.sort_values('cluster_size', ascending = False, inplace = True) cluster_table.reset_index(drop = True, inplace = True) # Identify molecular clusters cluster_molecular = list() for i in cluster_table.index: node_list = cluster_table.loc[i, "cluster"].split('|') node_list = list(map(int, node_list)) tmp_table_1 = merged_node_table.loc[node_list] if sum(tmp_table_1['status'] == "neutral") > 0 : cluster_molecular.append(True) else: cluster_molecular.append(False) cluster_table["molecular_cluster"] = cluster_molecular merged_node_table['cluster_id'] = [-1]*len(merged_node_table) print('Assigning new cluster indexes...') for i in tqdm(cluster_table.index): node_list = list(map(int, cluster_table.loc[i, 'cluster'].split('|'))) for j in node_list : merged_node_table.loc[j, 'cluster_id'] = i # Connect singletons to singletons (only precursors and nodes from non molecular clusters) remains_table = cluster_table.index[~cluster_table["molecular_cluster"]].tolist() remains_table = [merged_node_table.index[merged_node_table['cluster_id'] == i].tolist() for i in remains_table] remains_table = list(flatten(remains_table)) # Added precursors and fragments from non-molecular clusters remains_table += merged_node_table.index[merged_node_table['cluster_id'] == -1].tolist() # Added singleton nodes precursor_ions = list(set(merged_node_table.index) - set(remains_table)) precursor_ions = merged_node_table.loc[precursor_ions] precursor_ions = precursor_ions.index[precursor_ions['status'] == "precursor"].tolist() remains_table += precursor_ions # Added precursors from molecular clusters remains_table.sort() remains_table = merged_node_table.loc[remains_table] remains_table_pos = remains_table[remains_table['ion_mode'] == "POS"] remains_table_neg = remains_table[remains_table['ion_mode'] == "NEG"] print('Linking NEG singletons to POS singletons...') candidates_table = list() for i in tqdm(remains_table_neg.index): ion_1_mz = remains_table_neg.loc[i, "mz"] ion_1_rt = remains_table_neg.loc[i, "rt"] ion_1_samples = set(remains_table_neg.loc[i, "samples"].split('|')) neutral_table = Neutral_table(ion_1_mz, adduct_table_base_neg) hit_table_rt = remains_table_pos[remains_table_pos['rt'].between(ion_1_rt - rt_error, ion_1_rt + rt_error, inclusive = "both")].copy() shares_samples_list = list() for j in hit_table_rt.index: ion_samples = hit_table_rt.loc[j, "samples"].split('|') shared_samples = len(list(ion_1_samples.intersection(ion_samples))) shares_samples_list.append(shared_samples) hit_table_rt['shared_samples'] = shares_samples_list hit_table_rt = hit_table_rt[hit_table_rt['shared_samples'] > 0] if len(hit_table_rt) == 0 : continue for j in neutral_table.index: ion_table = Ion_table(neutral_table.loc[j, "neutral_mass"], adduct_table_base_pos) for k in ion_table.index: hit_table = hit_table_rt[hit_table_rt['mz'].between(ion_table.loc[k, "ion_mz"] - mass_error, ion_table.loc[k, "ion_mz"] + mass_error, inclusive = "both")] for l in hit_table.index: candidates_table.append((i, neutral_table.loc[j, "Adduct"], neutral_table.loc[j, "Complexity"], l, ion_table.loc[k, "Adduct"], ion_table.loc[k, "Complexity"])) candidates_table = pd.DataFrame(candidates_table, columns = ['neg_ion', 'neg_adduct', 'neg_complexity', 'pos_ion', 'pos_adduct', 'pos_complexity']) # Get the best hypotheses unique_negs = candidates_table['neg_ion'].unique().tolist() neg_ion_list = list() neg_adduct_list = list() neg_complexity_list = list() pos_ion_list = list() pos_adduct_list = list() pos_complexity_list = list() print('Selecting best NEG annotations...') for i in tqdm(unique_negs) : tmp_table_1 = candidates_table[candidates_table['neg_ion'] == i] unique_adducts = tmp_table_1['neg_adduct'].unique().tolist() point_list = list() for adduct in unique_adducts: tmp_table_2 = tmp_table_1[tmp_table_1['neg_adduct'] == adduct] points = 2*len(tmp_table_2) / (tmp_table_2['neg_complexity'].sum() + tmp_table_2['pos_complexity'].sum()) point_list.append(points) selected_adduct = unique_adducts[point_list.index(max(point_list))] tmp_table_1 = tmp_table_1[tmp_table_1['neg_adduct'] == selected_adduct] for j in tmp_table_1.index: neg_ion_list.append(tmp_table_1.loc[j, "neg_ion"]) neg_adduct_list.append(tmp_table_1.loc[j, "neg_adduct"]) neg_complexity_list.append(tmp_table_1.loc[j, "neg_complexity"]) pos_ion_list.append(tmp_table_1.loc[j, "pos_ion"]) pos_adduct_list.append(tmp_table_1.loc[j, "pos_adduct"]) pos_complexity_list.append(tmp_table_1.loc[j, "pos_complexity"]) candidates_table = list(zip(neg_ion_list, neg_adduct_list, neg_complexity_list, pos_ion_list, pos_adduct_list, pos_complexity_list)) candidates_table = pd.DataFrame(candidates_table, columns = ['neg_ion', 'neg_adduct', 'neg_complexity', 'pos_ion', 'pos_adduct', 'pos_complexity']) # Resolve POS ions with multiple annotations unique_pos = candidates_table['pos_ion'].unique().tolist() neg_ion_list = list() neg_adduct_list = list() neg_complexity_list = list() pos_ion_list = list() pos_adduct_list = list() pos_complexity_list = list() print('Selecting best POS annotations...') for i in tqdm(unique_pos): tmp_table_1 = candidates_table[candidates_table['pos_ion'] == i] unique_adducts = tmp_table_1['pos_adduct'].unique().tolist() point_list = list() for adduct in unique_adducts: tmp_table_2 = tmp_table_1[tmp_table_1['pos_adduct'] == adduct] points = 2*len(tmp_table_2) / (tmp_table_2['neg_complexity'].sum() + tmp_table_2['pos_complexity'].sum()) point_list.append(points) selected_adduct = unique_adducts[point_list.index(max(point_list))] tmp_table_1 = tmp_table_1[tmp_table_1['pos_adduct'] == selected_adduct] for j in tmp_table_1.index: neg_ion_list.append(tmp_table_1.loc[j, "neg_ion"]) neg_adduct_list.append(tmp_table_1.loc[j, "neg_adduct"]) neg_complexity_list.append(tmp_table_1.loc[j, "neg_complexity"]) pos_ion_list.append(tmp_table_1.loc[j, "pos_ion"]) pos_adduct_list.append(tmp_table_1.loc[j, "pos_adduct"]) pos_complexity_list.append(tmp_table_1.loc[j, "pos_complexity"]) candidates_table = list(zip(neg_ion_list, neg_adduct_list, neg_complexity_list, pos_ion_list, pos_adduct_list, pos_complexity_list)) candidates_table = pd.DataFrame(candidates_table, columns = ['neg_ion', 'neg_adduct', 'neg_complexity', 'pos_ion', 'pos_adduct', 'pos_complexity']) # Make a neutral table: neutral_idx = 0 neutral_table = list() while len(candidates_table) > 0 : idx = candidates_table.index[0] neg_pool = list() pos_pool = list() idx_pool = list() neg_pool.append(candidates_table.loc[idx, "neg_ion"]) pos_pool.append(candidates_table.loc[idx, "pos_ion"]) new_neg_pool = neg_pool new_pos_pool = pos_pool idx_pool.append(idx) len_0 = 0 while len_0 != len(idx_pool): len_0 = len(idx_pool) for i in new_neg_pool: idx_pool += candidates_table.index[candidates_table['neg_ion'] == i].tolist() for i in new_pos_pool: idx_pool += candidates_table.index[candidates_table['pos_ion'] == i].tolist() idx_pool = list(set(idx_pool)) tmp_table_1 = candidates_table.loc[idx_pool] for i in tmp_table_1['neg_ion'].unique(): idx = tmp_table_1.index[tmp_table_1['neg_ion'] == i][0] mgf_idx = int(merged_node_table.loc[i, "mgf_index"]) ion_mz = merged_node_table.loc[i, "mz"] ion_rt = merged_node_table.loc[i, "rt"] ion_tic = merged_node_table.loc[i, "TIC"] ion_adduct = tmp_table_1.loc[idx, "neg_adduct"] ion_samples = merged_node_table.loc[i, "samples"] adduct_idx = adduct_table_base_neg.index[adduct_table_base_neg["Adduct"] == ion_adduct][0] ion_adduct_code = adduct_table_base_neg.loc[adduct_idx, "Adduct_code"] mol_mass = Neutral_mass_calculator(ion_mz, adduct_table_base_neg.loc[adduct_idx, "Adduct_mass"], adduct_table_base_neg.loc[adduct_idx, "Mol_multiplier"], adduct_table_base_neg.loc[adduct_idx, "Charge"]) Species_rule = Validator_choice(ion_adduct_code, "NEG") ion_rule_points = Species_rule(mgf_idx, mgf_file_neg) neutral_table.append((neutral_idx, mol_mass, ion_mz, ion_rt, i, ion_adduct, ion_tic, ion_rule_points, ion_samples, "NEG")) for i in tmp_table_1['pos_ion'].unique(): idx = tmp_table_1.index[tmp_table_1['pos_ion'] == i][0] mgf_idx = int(merged_node_table.loc[i, "mgf_index"]) ion_mz = merged_node_table.loc[i, "mz"] ion_rt = merged_node_table.loc[i, "rt"] ion_tic = merged_node_table.loc[i, "TIC"] ion_adduct = tmp_table_1.loc[idx, "pos_adduct"] ion_samples = merged_node_table.loc[i, "samples"] adduct_idx = adduct_table_base_pos.index[adduct_table_base_pos["Adduct"] == ion_adduct][0] ion_adduct_code = adduct_table_base_pos.loc[adduct_idx, "Adduct_code"] mol_mass = Neutral_mass_calculator(ion_mz, adduct_table_base_pos.loc[adduct_idx, "Adduct_mass"], adduct_table_base_pos.loc[adduct_idx, "Mol_multiplier"], adduct_table_base_pos.loc[adduct_idx, "Charge"]) Species_rule = Validator_choice(ion_adduct_code, "POS") ion_rule_points = Species_rule(mgf_idx, mgf_file_pos) neutral_table.append((neutral_idx, mol_mass, ion_mz, ion_rt, i, ion_adduct, ion_tic, ion_rule_points, ion_samples, "POS")) candidates_table.drop(idx_pool, inplace = True) neutral_idx += 1 neutral_table = pd.DataFrame(neutral_table, columns = ['neutral_idx', 'neutral_mass', 'ion_mz', 'ion_rt', 'ion_idx', 'adduct', 'TIC', 'rule_points', 'samples', 'ion_mode']) # Report the results: print('Reporting results for NEG singletons paired to POS singletons...') for i in tqdm(neutral_table['neutral_idx'].unique()): tmp_table_1 = neutral_table[neutral_table['neutral_idx'] == i].copy() mol_mass = tmp_table_1['neutral_mass'].mean() mol_rt = tmp_table_1['ion_rt'].mean() mol_tic = tmp_table_1['TIC'].sum() mol_cluster = merged_node_table['cluster_id'].max() + 1 adduct_count = len(tmp_table_1) tmp_table_1['mz_gap'] = abs(mol_mass - tmp_table_1['ion_mz']) tmp_table_1['rt_gap'] = abs(mol_rt - tmp_table_1['ion_rt']) mol_samples = '|'.join(tmp_table_1['samples']) mol_samples = list(set(mol_samples.split('|'))) mol_samples.sort() mol_samples = '|'.join(mol_samples) new_idx = merged_node_table.index.max() + 1 merged_node_table.loc[new_idx] = [mol_mass, mol_rt, mol_tic, 0, None, 0, "neutral", adduct_count, None, "MIX", None, mol_samples, mol_cluster] for j in tmp_table_1.index: ion_idx = tmp_table_1.loc[j, 'ion_idx'] adduct = tmp_table_1.loc[j, 'adduct'] rule_points = tmp_table_1.loc[j, 'rule_points'] mz_gap = tmp_table_1.loc[j, 'mz_gap'] rt_gap = tmp_table_1.loc[j, 'rt_gap'] tmp_mode = tmp_table_1.loc[j, "ion_mode"] merged_node_table.loc[ion_idx, 'rule_points'] = rule_points merged_node_table.loc[ion_idx, 'status'] = "adduct" merged_node_table.loc[ion_idx, 'Adnotation'] = adduct merged_node_table.loc[ion_idx, 'cluster_id'] = mol_cluster new_edge = merged_edge_table.index.max() + 1 merged_edge_table.loc[new_edge] = [new_idx, ion_idx, 0 ,0 ,0 , rt_gap, mz_gap, "add_edge", None, adduct, adduct, tmp_mode] del_edge = merged_edge_table[merged_edge_table['node_1'] == ion_idx] del_edge = del_edge[del_edge['node_2'] == ion_idx].index if len(del_edge) > 0 : merged_edge_table.drop(del_edge[0], inplace = True) # Connect singletons to singletons (only precursors and nodes from non molecular clusters) remains_table = cluster_table.index[~cluster_table["molecular_cluster"]].tolist() remains_table = [merged_node_table.index[merged_node_table['cluster_id'] == i].tolist() for i in remains_table] remains_table = list(flatten(remains_table)) # Added precursors and fragments from non-molecular clusters remains_table += merged_node_table.index[merged_node_table['cluster_id'] == -1].tolist() # Added singleton nodes precursor_ions = list(set(merged_node_table.index) - set(remains_table)) precursor_ions = merged_node_table.loc[precursor_ions] precursor_ions = precursor_ions.index[precursor_ions['status'] == "precursor"].tolist() remains_table += precursor_ions # Added precursors from molecular clusters remains_table.sort() remains_table = merged_node_table.loc[remains_table] remains_table_pos = remains_table[remains_table['ion_mode'] == "POS"] remains_table_neg = remains_table[remains_table['ion_mode'] == "NEG"] print('Linking POS singletons to NEG singletons...') candidates_table = list() for i in tqdm(remains_table_pos.index): ion_1_mz = remains_table_pos.loc[i, "mz"] ion_1_rt = remains_table_pos.loc[i, "rt"] ion_1_samples = set(remains_table_pos.loc[i, "samples"].split('|')) neutral_table = Neutral_table(ion_1_mz, adduct_table_base_pos) hit_table_rt = remains_table_neg[remains_table_neg['rt'].between(ion_1_rt - rt_error, ion_1_rt + rt_error, inclusive = "both")].copy() shares_samples_list = list() for j in hit_table_rt.index: ion_samples = hit_table_rt.loc[j, "samples"].split('|') shared_samples = len(list(ion_1_samples.intersection(ion_samples))) shares_samples_list.append(shared_samples) hit_table_rt['shared_samples'] = shares_samples_list hit_table_rt = hit_table_rt[hit_table_rt['shared_samples'] > 0] if len(hit_table_rt) == 0 : continue for j in neutral_table.index: ion_table = Ion_table(neutral_table.loc[j, "neutral_mass"], adduct_table_base_neg) for k in ion_table.index: hit_table = hit_table_rt[hit_table_rt['mz'].between(ion_table.loc[k, "ion_mz"] - mass_error, ion_table.loc[k, "ion_mz"] + mass_error, inclusive = "both")] for l in hit_table.index: candidates_table.append((i, neutral_table.loc[j, "Adduct"], neutral_table.loc[j, "Complexity"], l, ion_table.loc[k, "Adduct"], ion_table.loc[k, "Complexity"])) candidates_table = pd.DataFrame(candidates_table, columns = ['pos_ion', 'pos_adduct', 'pos_complexity', 'neg_ion', 'neg_adduct', 'neg_complexity']) # Get the best hypotheses unique_pos = candidates_table['pos_ion'].unique().tolist() pos_ion_list = list() pos_adduct_list = list() pos_complexity_list = list() neg_ion_list = list() neg_adduct_list = list() neg_complexity_list = list() print('Selecting best POS annotations...') for i in tqdm(unique_pos) : tmp_table_1 = candidates_table[candidates_table['pos_ion'] == i] unique_adducts = tmp_table_1['pos_adduct'].unique().tolist() point_list = list() for adduct in unique_adducts: tmp_table_2 = tmp_table_1[tmp_table_1['pos_adduct'] == adduct] points = 2*len(tmp_table_2) / (tmp_table_2['pos_complexity'].sum() + tmp_table_2['neg_complexity'].sum()) point_list.append(points) selected_adduct = unique_adducts[point_list.index(max(point_list))] tmp_table_1 = tmp_table_1[tmp_table_1['pos_adduct'] == selected_adduct] for j in tmp_table_1.index: pos_ion_list.append(tmp_table_1.loc[j, "pos_ion"]) pos_adduct_list.append(tmp_table_1.loc[j, "pos_adduct"]) pos_complexity_list.append(tmp_table_1.loc[j, "pos_complexity"]) neg_ion_list.append(tmp_table_1.loc[j, "neg_ion"]) neg_adduct_list.append(tmp_table_1.loc[j, "neg_adduct"]) neg_complexity_list.append(tmp_table_1.loc[j, "neg_complexity"]) candidates_table = list(zip(pos_ion_list, pos_adduct_list, pos_complexity_list, neg_ion_list, neg_adduct_list, neg_complexity_list)) candidates_table = pd.DataFrame(candidates_table, columns = ['pos_ion', 'pos_adduct', 'pos_complexity', 'neg_ion', 'neg_adduct', 'neg_complexity']) # Resolve NEG ions with multiple annotations unique_neg = candidates_table['neg_ion'].unique().tolist() pos_ion_list = list() pos_adduct_list = list() pos_complexity_list = list() neg_ion_list = list() neg_adduct_list = list() neg_complexity_list = list() print('Selecting best NEG annotations...') for i in tqdm(unique_neg): tmp_table_1 = candidates_table[candidates_table['neg_ion'] == i] unique_adducts = tmp_table_1['neg_adduct'].unique().tolist() point_list = list() for adduct in unique_adducts: tmp_table_2 = tmp_table_1[tmp_table_1['neg_adduct'] == adduct] points = 2*len(tmp_table_2) / (tmp_table_2['pos_complexity'].sum() + tmp_table_2['neg_complexity'].sum()) point_list.append(points) selected_adduct = unique_adducts[point_list.index(max(point_list))] tmp_table_1 = tmp_table_1[tmp_table_1['neg_adduct'] == selected_adduct] for j in tmp_table_1.index: pos_ion_list.append(tmp_table_1.loc[j, "pos_ion"]) pos_adduct_list.append(tmp_table_1.loc[j, "pos_adduct"]) pos_complexity_list.append(tmp_table_1.loc[j, "pos_complexity"]) neg_ion_list.append(tmp_table_1.loc[j, "neg_ion"]) neg_adduct_list.append(tmp_table_1.loc[j, "neg_adduct"]) neg_complexity_list.append(tmp_table_1.loc[j, "neg_complexity"]) candidates_table = list(zip(pos_ion_list, pos_adduct_list, pos_complexity_list, neg_ion_list, neg_adduct_list, neg_complexity_list)) candidates_table = pd.DataFrame(candidates_table, columns = ['pos_ion', 'pos_adduct', 'pos_complexity', 'neg_ion', 'neg_adduct', 'neg_complexity']) # Make a neutral table: neutral_idx = 0 neutral_table = list() while len(candidates_table) > 0 : idx = candidates_table.index[0] pos_pool = list() neg_pool = list() idx_pool = list() pos_pool.append(candidates_table.loc[idx, "pos_ion"]) neg_pool.append(candidates_table.loc[idx, "neg_ion"]) new_pos_pool = pos_pool new_neg_pool = neg_pool idx_pool.append(idx) len_0 = 0 while len_0 != len(idx_pool): len_0 = len(idx_pool) for i in new_pos_pool: idx_pool += candidates_table.index[candidates_table['pos_ion'] == i].tolist() for i in new_neg_pool: idx_pool += candidates_table.index[candidates_table['neg_ion'] == i].tolist() idx_pool = list(set(idx_pool)) tmp_table_1 = candidates_table.loc[idx_pool] for i in tmp_table_1['pos_ion'].unique(): idx = tmp_table_1.index[tmp_table_1['pos_ion'] == i][0] mgf_idx = int(merged_node_table.loc[i, "mgf_index"]) ion_mz = merged_node_table.loc[i, "mz"] ion_rt = merged_node_table.loc[i, "rt"] ion_tic = merged_node_table.loc[i, "TIC"] ion_adduct = tmp_table_1.loc[idx, "pos_adduct"] ion_samples = merged_node_table.loc[i, "samples"] adduct_idx = adduct_table_base_pos.index[adduct_table_base_pos["Adduct"] == ion_adduct][0] ion_adduct_code = adduct_table_base_pos.loc[adduct_idx, "Adduct_code"] mol_mass = Neutral_mass_calculator(ion_mz, adduct_table_base_pos.loc[adduct_idx, "Adduct_mass"], adduct_table_base_pos.loc[adduct_idx, "Mol_multiplier"], adduct_table_base_pos.loc[adduct_idx, "Charge"]) Species_rule = Validator_choice(ion_adduct_code, "POS") ion_rule_points = Species_rule(mgf_idx, mgf_file_pos) neutral_table.append((neutral_idx, mol_mass, ion_mz, ion_rt, i, ion_adduct, ion_tic, ion_rule_points, ion_samples, "POS")) for i in tmp_table_1['neg_ion'].unique(): idx = tmp_table_1.index[tmp_table_1['neg_ion'] == i][0] mgf_idx = int(merged_node_table.loc[i, "mgf_index"]) ion_mz = merged_node_table.loc[i, "mz"] ion_rt = merged_node_table.loc[i, "rt"] ion_tic = merged_node_table.loc[i, "TIC"] ion_adduct = tmp_table_1.loc[idx, "neg_adduct"] ion_samples = merged_node_table.loc[i, "samples"] adduct_idx = adduct_table_base_neg.index[adduct_table_base_neg["Adduct"] == ion_adduct][0] ion_adduct_code = adduct_table_base_neg.loc[adduct_idx, "Adduct_code"] mol_mass = Neutral_mass_calculator(ion_mz, adduct_table_base_neg.loc[adduct_idx, "Adduct_mass"], adduct_table_base_neg.loc[adduct_idx, "Mol_multiplier"], adduct_table_base_neg.loc[adduct_idx, "Charge"]) Species_rule = Validator_choice(ion_adduct_code, "NEG") ion_rule_points = Species_rule(mgf_idx, mgf_file_neg) neutral_table.append((neutral_idx, mol_mass, ion_mz, ion_rt, i, ion_adduct, ion_tic, ion_rule_points, ion_samples, "NEG")) candidates_table.drop(idx_pool, inplace = True) neutral_idx += 1 neutral_table = pd.DataFrame(neutral_table, columns = ['neutral_idx', 'neutral_mass', 'ion_mz', 'ion_rt', 'ion_idx', 'adduct', 'TIC', 'rule_points', 'samples', 'ion_mode']) # Report the results: print('Reporting results for POS singletons paired to NEG singletons...') for i in tqdm(neutral_table['neutral_idx'].unique()): tmp_table_1 = neutral_table[neutral_table['neutral_idx'] == i].copy() mol_mass = tmp_table_1['neutral_mass'].mean() mol_rt = tmp_table_1['ion_rt'].mean() mol_tic = tmp_table_1['TIC'].sum() mol_cluster = merged_node_table['cluster_id'].max() + 1 adduct_count = len(tmp_table_1) tmp_table_1['mz_gap'] = abs(mol_mass - tmp_table_1['ion_mz']) tmp_table_1['rt_gap'] = abs(mol_rt - tmp_table_1['ion_rt']) mol_samples = '|'.join(tmp_table_1['samples']) mol_samples = list(set(mol_samples.split('|'))) mol_samples.sort() mol_samples = '|'.join(mol_samples) new_idx = merged_node_table.index.max() + 1 merged_node_table.loc[new_idx] = [mol_mass, mol_rt, mol_tic, 0, None, 0, "neutral", adduct_count, None, "MIX", None, mol_samples, mol_cluster] for j in tmp_table_1.index: ion_idx = tmp_table_1.loc[j, 'ion_idx'] adduct = tmp_table_1.loc[j, 'adduct'] rule_points = tmp_table_1.loc[j, 'rule_points'] mz_gap = tmp_table_1.loc[j, 'mz_gap'] rt_gap = tmp_table_1.loc[j, 'rt_gap'] tmp_mode = tmp_table_1.loc[j, "ion_mode"] merged_node_table.loc[ion_idx, 'rule_points'] = rule_points merged_node_table.loc[ion_idx, 'status'] = "adduct" merged_node_table.loc[ion_idx, 'Adnotation'] = adduct merged_node_table.loc[ion_idx, 'cluster_id'] = mol_cluster new_edge = merged_edge_table.index.max() + 1 merged_edge_table.loc[new_edge] = [new_idx, ion_idx, 0 ,0 ,0 , rt_gap, mz_gap, "add_edge", None, adduct, adduct, tmp_mode] del_edge = merged_edge_table[merged_edge_table['node_1'] == ion_idx] del_edge = del_edge[del_edge['node_2'] == ion_idx].index if len(del_edge) > 0 : merged_edge_table.drop(del_edge[0], inplace = True) # Update status node nodes (pos neutrals, neg neutrals, pos adducts_ neg_adducts) merged_node_table.insert(merged_node_table.columns.get_loc('status') + 1, "status_universal", merged_node_table['status'].copy()) merged_node_table['status'] = merged_node_table['ion_mode'].str.lower() + "_" + merged_node_table['status'] # Update status for edges (pos add, neg add, pos frag, neg frag, pos single, neg single) merged_edge_table.insert(merged_edge_table.columns.get_loc('status') + 1, "status_universal", merged_edge_table['status'].copy()) merged_edge_table['status'] = merged_edge_table['ion_mode'].str.lower() + "_" + merged_edge_table['status'] # Round values: merged_node_table['mz'] = merged_node_table['mz'].round(4) merged_node_table['rt'] = merged_node_table['rt'].round(3) merged_edge_table['mz_gap'] = merged_edge_table['mz_gap'].round(4) merged_node_table.drop("samples", axis = 1, inplace = True) # Adding MZmine csv columns to the node table (sample intensities) neutrals_idx = list(merged_node_table.index[merged_node_table['status'] == "neg_neutral"]) neutrals_idx += list(merged_node_table.index[merged_node_table['status'] == "pos_neutral"]) neutrals_idx += list(merged_node_table.index[merged_node_table['status'] == "mix_neutral"]) pos_ions_idx = list(set(merged_node_table.index[merged_node_table['ion_mode'] == "POS"]) - set(neutrals_idx)) neg_ions_idx = list(set(merged_node_table.index[merged_node_table['ion_mode'] == "NEG"]) - set(neutrals_idx)) samples = list(neg_mzmine_csv.columns) + list(pos_mzmine_csv.columns) samples = list(set(samples)) samples.sort() for sample in samples: merged_node_table[sample] = [0.0]*len(merged_node_table) print("Adding POS sample intensities to the merged node table...") for i in tqdm(pos_ions_idx): ion_id = merged_node_table.loc[i, "feature_id"] for sample in samples: merged_node_table.loc[i, sample] = pos_mzmine_csv.loc[ion_id, sample] print("Adding NEG sample intensities to the merged node table...") for i in tqdm(neg_ions_idx): ion_id = merged_node_table.loc[i, "feature_id"] for sample in samples: merged_node_table.loc[i, sample] = neg_mzmine_csv.loc[ion_id, sample] print("Adding neutral sample intensities to the merged node table...") for i in tqdm(neutrals_idx): ion_ids = list(merged_edge_table['node_2'][merged_edge_table['node_1'] == i]) #ion_ids = merged_node_table.loc[ion_ids, "feature_id"] for sample in samples: merged_node_table.loc[i, sample] = merged_node_table.loc[ion_ids, sample].sum() #export the data if not os.path.isdir(out_full) : os.mkdir(out_full) if not os.path.isdir(out_samples) : os.mkdir(out_samples) merged_edge_table.to_csv(out_full + 'MIX_edges.csv', index_label = "Index") merged_node_table.to_csv(out_full + 'MIX_nodes.csv', index_label = "Index") if params['mm_export_samples'] : Samplewise_export(neg_csv_file = in_path_full_neg + neg_csv, pos_csv_file = in_path_full_pos + pos_csv, out_path = out_samples, merged_edge_table = merged_edge_table, merged_node_table = merged_node_table) return
65.068686
186
0.644665
21,527
152,521
4.225902
0.021508
0.076574
0.108606
0.093107
0.888008
0.860703
0.818228
0.761451
0.728188
0.716074
0
0.078781
0.233424
152,521
2,343
187
65.096458
0.699288
0.023269
0
0.565174
0
0
0.062507
0.000655
0
0
0
0
0
1
0.028358
false
0
0.003483
0.000498
0.059701
0.01393
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
e9d7e4d2f8de4076d09872c47c9b0fa0b4106fa5
2,616
py
Python
2016/day18/code.py
Fadi88/AoC
8b24f2f2cc7b4e1c63758e81e63d8670a261cc7c
[ "Unlicense" ]
12
2019-12-15T21:53:19.000Z
2021-12-24T17:03:41.000Z
2016/day18/code.py
Fadi88/adventofcode19
dd2456bdd163beb02dbfe9dcea2b021061c7671e
[ "Unlicense" ]
1
2021-12-15T20:40:51.000Z
2021-12-15T22:19:48.000Z
2016/day18/code.py
Fadi88/adventofcode19
dd2456bdd163beb02dbfe9dcea2b021061c7671e
[ "Unlicense" ]
5
2020-12-11T06:00:24.000Z
2021-12-20T21:37:46.000Z
import time import re import hashlib def profiler(method): def wrapper_method(*arg, **kw): t = time.time() ret = method(*arg, **kw) print('Method ' + method.__name__ + ' took : ' + "{:2.5f}".format(time.time()-t) + ' sec') return ret return wrapper_method @profiler def part1(): Traps = [] Traps.append([c == '^' for c in open('input.txt').read().strip()]) #Traps.append([c == '^' for c in '.^^.^.^^^^']) # Traps.append([False,False,True,True,False]) for l in range(1, 40): Traps.append([]) for x in range(len(Traps[0])): center = Traps[l-1][x] if 0 < x < len(Traps[0]) - 1: left = Traps[l-1][x-1] right = Traps[l-1][x+1] elif x == 0: left = False right = Traps[l-1][x+1] elif x == len(Traps[0]) - 1: left = Traps[l-1][x-1] right = False if left == center == True and right == False: Traps[l].append(True) elif center == right == True and left == False: Traps[l].append(True) elif left == True and center == right == False: Traps[l].append(True) elif right == True and center == left == False: Traps[l].append(True) else: Traps[l].append(False) print(len(Traps)*len(Traps[0]) - sum(map(sum, Traps))) @profiler def part2(): Traps = [] Traps.append([c == '^' for c in open('input.txt').read().strip()]) for l in range(1, 400000): Traps.append([]) for x in range(len(Traps[0])): center = Traps[l-1][x] if 0 < x < len(Traps[0]) - 1: left = Traps[l-1][x-1] right = Traps[l-1][x+1] elif x == 0: left = False right = Traps[l-1][x+1] elif x == len(Traps[0]) - 1: left = Traps[l-1][x-1] right = False if left == center == True and right == False: Traps[l].append(True) elif center == right == True and left == False: Traps[l].append(True) elif left == True and center == right == False: Traps[l].append(True) elif right == True and center == left == False: Traps[l].append(True) else: Traps[l].append(False) print(len(Traps)*len(Traps[0]) - sum(map(sum, Traps))) if __name__ == "__main__": part1() part2()
29.066667
70
0.457187
332
2,616
3.560241
0.156627
0.101523
0.059222
0.067682
0.780034
0.759729
0.744501
0.744501
0.744501
0.744501
0
0.030826
0.379969
2,616
89
71
29.393258
0.697904
0.034404
0
0.742857
0
0
0.021395
0
0
0
0
0
0
1
0.057143
false
0
0.042857
0
0.128571
0.042857
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
e9d952e31300f5b8bfcf6237cdca79070255023d
5,307
py
Python
tests/test_clingy.py
mtkennerly/clingy
39454bcf535127ee80ca3e9fb1580dfefcb8aad9
[ "MIT" ]
1
2017-03-24T09:19:18.000Z
2017-03-24T09:19:18.000Z
tests/test_clingy.py
mtkennerly/clingy
39454bcf535127ee80ca3e9fb1580dfefcb8aad9
[ "MIT" ]
null
null
null
tests/test_clingy.py
mtkennerly/clingy
39454bcf535127ee80ca3e9fb1580dfefcb8aad9
[ "MIT" ]
null
null
null
import six try: from unittest import mock except ImportError: import mock import pytest import clingy builtins_name = six.moves.builtins.__name__ def test__parse_args_need_at_least_one_filename(): with pytest.raises(SystemExit): clingy._parse_args([]) def test__parse_args_one_email(): argv = ["email.txt"] args = clingy._parse_args(argv) assert args.filenames == argv def test__parse_args_multiple_emails(): argv = ["email1.txt", "email2.txt"] args = clingy._parse_args(argv) assert args.filenames == argv def test__parse_args_directory_short(): argv = ["email.txt", "-d", "out"] args = clingy._parse_args(argv) assert args.filenames == ["email.txt"] assert args.directory == "out" def test__parse_args_directory_long(): argv = ["email.txt", "--directory", "out"] args = clingy._parse_args(argv) assert args.filenames == ["email.txt"] assert args.directory == "out" def test__parse_args_glob_short(): argv = ["email.txt", "-g", "*.txt"] args = clingy._parse_args(argv) assert args.filenames == ["email.txt"] assert args.glob == "*.txt" def test__parse_args_glob_long(): argv = ["email.txt", "--glob", "*.txt"] args = clingy._parse_args(argv) assert args.filenames == ["email.txt"] assert args.glob == "*.txt" def test__parse_args_regex_short(): argv = ["email.txt", "-r", r"\.txt$"] args = clingy._parse_args(argv) assert args.filenames == ["email.txt"] assert args.regex == "\.txt$" def test__parse_args_regex_long(): argv = ["email.txt", "--regex", r"\.txt$"] args = clingy._parse_args(argv) assert args.filenames == ["email.txt"] assert args.regex == "\.txt$" def test_find_with_filename(): attachments = clingy.find("email.txt") assert len(attachments) == 2 assert attachments[0].get_filename() == "foo.txt" assert attachments[1].get_filename() == "bar.txt" def test_find_with_glob(): attachments = clingy.find("email.txt", glob="foo*") assert len(attachments) == 1 assert attachments[0].get_filename() == "foo.txt" def test_find_with_regex(): attachments = clingy.find("email.txt", regex=r"^foo") assert len(attachments) == 1 assert attachments[0].get_filename() == "foo.txt" def test_find_with_string(): with open("email.txt") as file: attachments = clingy.find(file.read()) assert len(attachments) == 2 assert attachments[0].get_filename() == "foo.txt" assert attachments[1].get_filename() == "bar.txt" def test_match_none(): assert clingy.match("") is True assert clingy.match("foo") is True def test_match_glob(): assert clingy.match("foo.txt", glob="*.txt") is True assert clingy.match("foo.txt", glob="*.pdf") is False def test_match_regex(): assert clingy.match("foo.txt", regex=r"^.+\.txt$") is True assert clingy.match("foo.txt", regex=r"^.+\.pdf$") is False def test_match_both(): assert clingy.match("foo.txt", glob="*.txt", regex=r"\.txt") is True assert clingy.match("foo.txt", glob="*.txt", regex=r"\.pdf") is False def test_save_with_filename(): with open("email.txt") as file: email = file.read() mo = mock.mock_open(read_data=email) with mock.patch("{}.open".format(builtins_name), mo): clingy.save(email) # Output filenames assert mock.call("foo.txt", "wb") in mo.mock_calls assert mock.call("bar.txt", "wb") in mo.mock_calls # Output file content handle = mo() assert mock.call(b"foo") in handle.write.mock_calls assert mock.call(b"bar") in handle.write.mock_calls def test_save_with_glob(): with open("email.txt") as file: email = file.read() mo = mock.mock_open() with mock.patch("{}.open".format(builtins_name), mo): clingy.save(email, glob="bar*") # Output filenames assert mock.call("bar.txt", "wb") in mo.mock_calls # Output file content handle = mo() assert mock.call(b"bar") in handle.write.mock_calls def test_save_with_message_object(): attachments = clingy.find("email.txt") mo = mock.mock_open() with mock.patch("{}.open".format(builtins_name), mo): clingy.save(attachments[0]) # Output filenames assert mock.call("foo.txt", "wb") in mo.mock_calls # Output file content handle = mo() assert mock.call(b"foo") in handle.write.mock_calls def test_save_with_regex(): with open("email.txt") as file: email = file.read() mo = mock.mock_open() with mock.patch("{}.open".format(builtins_name), mo): clingy.save(email, glob="bar*") # Output filenames assert mock.call("bar.txt", "wb") in mo.mock_calls # Output file content handle = mo() assert mock.call(b"bar") in handle.write.mock_calls def test_save_with_string(): with open("email.txt") as file: email = file.read() mo = mock.mock_open() with mock.patch("{}.open".format(builtins_name), mo): clingy.save(email) # Output filenames assert mock.call("foo.txt", "wb") in mo.mock_calls assert mock.call("bar.txt", "wb") in mo.mock_calls # Output file content handle = mo() assert mock.call(b"foo") in handle.write.mock_calls assert mock.call(b"bar") in handle.write.mock_calls
25.762136
73
0.651027
750
5,307
4.422667
0.106667
0.046427
0.05909
0.043413
0.831776
0.784142
0.762436
0.748267
0.725957
0.698523
0
0.003027
0.190692
5,307
205
74
25.887805
0.769267
0.034671
0
0.585938
0
0
0.112307
0
0
0
0
0
0.359375
1
0.171875
false
0
0.046875
0
0.21875
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
756e0375de5bec14cdbdf2b29b644de8daa8e805
13,084
py
Python
tests/signatures/gc3_versioned_type/test_gc3_versioned_type.py
ericmharris/gc3-query
0bf5226130aafbb1974aeb96d93ee1996833e87d
[ "MIT" ]
null
null
null
tests/signatures/gc3_versioned_type/test_gc3_versioned_type.py
ericmharris/gc3-query
0bf5226130aafbb1974aeb96d93ee1996833e87d
[ "MIT" ]
null
null
null
tests/signatures/gc3_versioned_type/test_gc3_versioned_type.py
ericmharris/gc3-query
0bf5226130aafbb1974aeb96d93ee1996833e87d
[ "MIT" ]
null
null
null
from pathlib import Path import pytest from gc3_query.lib import gc3_cfg from gc3_query.lib.gc3_config import GC3Config from gc3_query.lib.iaas_classic.instances import Instances from gc3_query.lib.iaas_classic.sec_rules import SecRules # fixme? from gc3_query.lib.open_api import API_SPECS_DIR from gc3_query.lib.open_api.open_api_spec import OpenApiSpec from gc3_query.lib.signatures import GC3Type, GC3VersionedType # from pprint import pprint, pformat TEST_BASE_DIR: Path = Path(__file__).parent # config_dir = TEST_BASE_DIR.joinpath("config") config_dir = gc3_cfg.BASE_DIR.joinpath("etc/config") output_dir = TEST_BASE_DIR.joinpath('output') def test_setup(): assert TEST_BASE_DIR.exists() # assert API_SPECS_DIR.exists() if not config_dir.exists(): config_dir.mkdir() if not output_dir.exists(): output_dir.mkdir() def test_init(): service = 'Instances' gc3_config = GC3Config(atoml_config_dir=config_dir) service_cfg = gc3_config.iaas_classic.services.compute[service] api_catalog_config = gc3_config.iaas_classic.open_api_spec_catalog oapi_spec = OpenApiSpec(service_cfg=service_cfg, open_api_specs_cfg=api_catalog_config) assert oapi_spec.name == service gc3type = GC3Type(name='OpenApiSpec', descr="Some text", class_type=oapi_spec.__class__) gc3_ver_type = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=oapi_spec.__class__, version="18.1.2-20180126.052521") assert gc3type assert gc3_ver_type @pytest.fixture() def test_equality_setup(): idm_domain = 'gc30003' gc3_config = GC3Config(atoml_config_dir=config_dir) idm_cfg = gc3_config.idm.domains[idm_domain] api_catalog_config = gc3_config.iaas_classic.open_api_spec_catalog instances_service: str = 'Instances' instances_service_cfg = gc3_config.iaas_classic.services[instances_service] instances_oapi_spec = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg) assert instances_oapi_spec.name == instances_service secrules_service: str = 'SecRules' secrules_service_cfg = gc3_config.iaas_classic.services[secrules_service] sec_rules = SecRules(service_cfg=secrules_service_cfg, idm_cfg=idm_cfg, from_url=True) instances = Instances(service_cfg=instances_service_cfg, idm_cfg=idm_cfg, from_url=True) yield sec_rules, instances, idm_cfg, idm_domain, gc3_config def test_eqality(test_equality_setup): sec_rules, instances, idm_cfg, idm_domain, gc3_config = test_equality_setup api_catalog_config = gc3_config.iaas_classic.open_api_spec_catalog version = "18.1.2-20180126.052521" instances_service: str = 'Instances' instances_service_cfg = gc3_config.iaas_classic.services[instances_service] instances_oapi_spec = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg) assert instances_oapi_spec.name == instances_service instances_oapi_spec_type = GC3Type(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__) instances_oapi_spec_ver_type = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__, version=version) instances_oapi_spec_type_2 = GC3Type(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__) instances_oapi_spec_ver_type_2 = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__, version=version) assert instances_oapi_spec_type==instances_oapi_spec_type assert instances_oapi_spec_type==instances_oapi_spec_type_2 assert instances_oapi_spec_ver_type==instances_oapi_spec_ver_type assert instances_oapi_spec_ver_type==instances_oapi_spec_ver_type_2 secrules_service: str = 'SecRules' secrules_service_cfg = gc3_config.iaas_classic.services[secrules_service] secrules_oapi_spec = OpenApiSpec(service_cfg=secrules_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg) secrules_oapi_spec_2 = OpenApiSpec(service_cfg=secrules_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg) assert secrules_oapi_spec.name == secrules_service secrules_oapi_spec_type = GC3Type(name='OpenApiSpec', descr="Some text", class_type=secrules_oapi_spec.__class__) secrules_oapi_spec_ver_type = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=secrules_oapi_spec.__class__, version=version) secrules_oapi_spec_type_2 = GC3Type(name='OpenApiSpec', descr="Some text", class_type=secrules_oapi_spec_2.__class__) secrules_oapi_spec_ver_type_2 = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=secrules_oapi_spec.__class__, version=version) assert secrules_oapi_spec_type assert secrules_oapi_spec_type==secrules_oapi_spec_type assert secrules_oapi_spec_type==secrules_oapi_spec_type_2 assert secrules_oapi_spec_type==instances_oapi_spec_type assert secrules_oapi_spec_ver_type==secrules_oapi_spec_ver_type assert secrules_oapi_spec_ver_type==secrules_oapi_spec_ver_type_2 assert secrules_oapi_spec_ver_type==instances_oapi_spec_ver_type sec_rules_type = GC3Type(name='SecRules', descr="SecRules text", class_type=sec_rules.__class__) sec_rules_ver_type = GC3VersionedType(name='SecRules', descr="SecRules text", class_type=sec_rules.__class__, version=version) instances_type = GC3Type(name='Instances', descr="Instances text", class_type=instances.__class__) instances_ver_type = GC3VersionedType(name='Instances', descr="Instances text", class_type=instances.__class__, version=version) assert sec_rules_type!=secrules_oapi_spec_type assert sec_rules_type!=instances_type assert sec_rules_ver_type!=secrules_oapi_spec_ver_type assert sec_rules_type!=instances_ver_type assert sec_rules_ver_type!=instances_ver_type def test_gt_lt(test_equality_setup): sec_rules, instances, idm_cfg, idm_domain, gc3_config = test_equality_setup api_catalog_config = gc3_config.iaas_classic.open_api_spec_catalog version = "18.1.2-20180126.052521" i_version = "18.1.2-20180126.052521" i_version_eq = "18.1.2-20180126.052521" i_version_gt_00 = "18.1.2-20180126.052521" i_version_gt_01 = "19.1.2-20180126.052521" i_version_gt_02 = "18.2.2-20180126.052521" i_version_gt_03 = "18.1.3-20180126.052521" i_version_gt_04 = "18.1.2-22180126.052521" i_version_gt_05 = "18.1.2-20180126.052529" instances_service: str = 'Instances' instances_service_cfg = gc3_config.iaas_classic.services[instances_service] instances_oapi_spec = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg) assert instances_oapi_spec.name == instances_service i_ver_type = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__, version=version) i_ver_type_eq = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__, version=i_version_eq) i_ver_type_gt_00 = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__, version=i_version_gt_00) i_ver_type_gt_01 = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__, version=i_version_gt_01) i_ver_type_gt_02 = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__, version=i_version_gt_02) i_ver_type_gt_03 = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__, version=i_version_gt_03) i_ver_type_gt_04 = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__, version=i_version_gt_04) i_ver_type_gt_05 = GC3VersionedType(name='OpenApiSpec', descr="Some text", class_type=instances_oapi_spec.__class__, version=i_version_gt_05) assert i_ver_type == i_ver_type_eq assert i_ver_type == i_ver_type_gt_00 assert i_ver_type < i_ver_type_gt_01 assert i_ver_type < i_ver_type_gt_02 assert i_ver_type < i_ver_type_gt_03 assert i_ver_type < i_ver_type_gt_04 assert i_ver_type < i_ver_type_gt_05 @pytest.fixture() def test_equality_with_mixin_setup(): idm_domain = 'gc30003' gc3_config = GC3Config(atoml_config_dir=config_dir) idm_cfg = gc3_config.idm.domains[idm_domain] api_catalog_config = gc3_config.iaas_classic.open_api_spec_catalog instances_service: str = 'Instances' instances_service_cfg = gc3_config.iaas_classic.services[instances_service] instances_oapi_spec = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg) assert instances_oapi_spec.name == instances_service secrules_service: str = 'SecRules' secrules_service_cfg = gc3_config.iaas_classic.services[secrules_service] sec_rules = SecRules(service_cfg=secrules_service_cfg, idm_cfg=idm_cfg, from_url=True) instances = Instances(service_cfg=instances_service_cfg, idm_cfg=idm_cfg, from_url=True) yield sec_rules, instances, idm_cfg, idm_domain def test_equality_with_mixin(test_equality_with_mixin_setup): sec_rules, instances, idm_cfg, idm_domain = test_equality_with_mixin_setup idm_domain = 'gc30003' instances_service: str = 'Instances' gc3_config = GC3Config(atoml_config_dir=config_dir) idm_cfg = gc3_config.idm.domains[idm_domain] instances_service_cfg = gc3_config.iaas_classic.services[instances_service] api_catalog_config = gc3_config.iaas_classic.open_api_spec_catalog instances_oapi_spec = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg) instances_oapi_spec_2 = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg) assert instances_oapi_spec.name == instances_service assert instances_oapi_spec._spec_data['schemes'] == ['https'] assert instances_oapi_spec.title==instances_service secrules_service: str = 'SecRules' gc3_config = GC3Config(atoml_config_dir=config_dir) idm_cfg = gc3_config.idm.domains[idm_domain] sec_rules_service_cfg = gc3_config.iaas_classic.services[secrules_service] api_catalog_config = gc3_config.iaas_classic.open_api_spec_catalog sec_rules_oapi_spec = OpenApiSpec(service_cfg=sec_rules_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg) assert sec_rules_oapi_spec.name == secrules_service assert sec_rules_oapi_spec._spec_data['schemes'] == ['https'] assert sec_rules_oapi_spec.title==secrules_service assert instances_oapi_spec==instances_oapi_spec_2 assert sec_rules_oapi_spec!=instances_oapi_spec assert sec_rules_oapi_spec!=instances_oapi_spec_2 version = "18.1.2-20180126.052521" i_version = "18.1.2-20180126.052521" i_version_eq = "18.1.2-20180126.052521" i_version_gt_00 = "18.1.2-20180126.052521" i_version_gt_01 = "19.1.2-20180126.052521" i_version_gt_02 = "18.2.2-20180126.052521" i_version_gt_03 = "18.1.3-20180126.052521" i_version_gt_04 = "18.1.2-22180126.052521" i_version_gt_05 = "18.1.2-20180126.052529" instances_oapi_spec = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg) oapi_spec = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg, mock_version=version) oapi_spec_eq = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg, mock_version=i_version_eq) oapi_spec_gt_00 = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg, mock_version=i_version_gt_00) oapi_spec_gt_01 = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg, mock_version=i_version_gt_01) oapi_spec_gt_02 = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg, mock_version=i_version_gt_02) oapi_spec_gt_03 = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg, mock_version=i_version_gt_03) oapi_spec_gt_04 = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg, mock_version=i_version_gt_04) oapi_spec_gt_05 = OpenApiSpec(service_cfg=instances_service_cfg, open_api_specs_cfg=api_catalog_config, idm_cfg=idm_cfg, mock_version=i_version_gt_05) assert oapi_spec == oapi_spec_eq assert oapi_spec == oapi_spec_gt_00 assert oapi_spec < oapi_spec_gt_01 assert oapi_spec < oapi_spec_gt_02 assert oapi_spec < oapi_spec_gt_03 assert oapi_spec < oapi_spec_gt_04 assert oapi_spec < oapi_spec_gt_05
53.404082
154
0.796163
1,945
13,084
4.829306
0.048843
0.08517
0.079634
0.028106
0.894177
0.841584
0.784627
0.771
0.729054
0.686682
0
0.048629
0.12458
13,084
244
155
53.622951
0.771434
0.012687
0
0.423913
0
0
0.080189
0.03409
0
0
0
0.004098
0.26087
1
0.038043
false
0
0.043478
0
0.081522
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
75754a7f21e5a18e1ac88cf3f406b248054fa1a0
64
py
Python
venv/lib/python3.6/site-packages/ppb/vector.py
Karagusto/Game_ppg
f5f7eccaf46495e3872b94aba8df56abab83b622
[ "Artistic-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/ppb/vector.py
Karagusto/Game_ppg
f5f7eccaf46495e3872b94aba8df56abab83b622
[ "Artistic-2.0" ]
null
null
null
venv/lib/python3.6/site-packages/ppb/vector.py
Karagusto/Game_ppg
f5f7eccaf46495e3872b94aba8df56abab83b622
[ "Artistic-2.0" ]
null
null
null
from ppb_vector import Vector2 class Vector(Vector2): pass
12.8
30
0.765625
9
64
5.333333
0.777778
0
0
0
0
0
0
0
0
0
0
0.038462
0.1875
64
5
31
12.8
0.884615
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
1
0
1
0
0
6
75b6628bb089439a3c512fa625b437cbcdd5abad
152
py
Python
pyzipper/__init__.py
MatthewWalker/pyzipper
ce50a5f48c78da4a67da3b8408af87b00b58efab
[ "MIT" ]
71
2018-11-09T03:51:42.000Z
2022-03-30T06:06:28.000Z
pyzipper/__init__.py
MatthewWalker/pyzipper
ce50a5f48c78da4a67da3b8408af87b00b58efab
[ "MIT" ]
20
2019-02-05T12:56:47.000Z
2021-09-29T04:01:34.000Z
pyzipper/__init__.py
MatthewWalker/pyzipper
ce50a5f48c78da4a67da3b8408af87b00b58efab
[ "MIT" ]
15
2018-11-14T05:32:41.000Z
2022-01-31T11:32:21.000Z
from .zipfile import * # noqa: F401, F403 from .zipfile_aes import AESZipFile, WZ_AES # noqa: F401 from .__version__ import __version__ # noqa: F401
38
57
0.75
21
152
4.952381
0.47619
0.230769
0
0
0
0
0
0
0
0
0
0.095238
0.171053
152
3
58
50.666667
0.730159
0.25
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
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
6
75c55d22561bd2d08b756de57530b00b3e435b6f
9,248
py
Python
tests/unit/pack_encrypted/test_pack_encrypted_negative.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
8
2021-09-04T19:28:18.000Z
2021-12-22T16:00:18.000Z
tests/unit/pack_encrypted/test_pack_encrypted_negative.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
4
2021-07-27T23:44:33.000Z
2021-10-13T13:29:39.000Z
tests/unit/pack_encrypted/test_pack_encrypted_negative.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
7
2021-07-22T08:19:13.000Z
2022-01-04T14:46:38.000Z
import copy import pytest from didcomm.errors import ( DIDCommValueError, DIDDocNotResolvedError, SecretNotFoundError, DIDUrlNotFoundError, IncompatibleCryptoError, ) from didcomm.pack_encrypted import pack_encrypted from tests.test_vectors.common import BOB_DID, CHARLIE_DID, ALICE_DID from tests.test_vectors.didcomm_messages.messages import TEST_MESSAGE from tests.test_vectors.utils import ( get_key_agreement_methods_in_secrets, Person, KeyAgreementCurveType, get_key_agreement_methods_not_in_secrets, ) @pytest.mark.asyncio async def test_from_is_not_a_did_or_did_url(resolvers_config_alice): with pytest.raises(DIDCommValueError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=TEST_MESSAGE, frm="not-a-did", to=BOB_DID, ) @pytest.mark.asyncio async def test_to_is_not_a_did_or_did_url(resolvers_config_alice): with pytest.raises(DIDCommValueError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=TEST_MESSAGE, to="not-a-did", ) @pytest.mark.asyncio async def test_sign_frm_is_not_a_did_or_did_url(resolvers_config_alice): with pytest.raises(DIDCommValueError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=TEST_MESSAGE, frm=ALICE_DID, to=BOB_DID, sign_frm="not-a-did", ) @pytest.mark.asyncio async def test_from_differs_from_msg_from(resolvers_config_alice): msg = copy.deepcopy(TEST_MESSAGE) msg.frm = CHARLIE_DID with pytest.raises(DIDCommValueError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=msg, frm=ALICE_DID, to=BOB_DID, ) @pytest.mark.asyncio async def test_to_differs_from_msg_to(resolvers_config_alice): msg = copy.deepcopy(TEST_MESSAGE) msg.to = [CHARLIE_DID] with pytest.raises(DIDCommValueError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=msg, frm=ALICE_DID, to=BOB_DID, ) @pytest.mark.asyncio async def test_to_present_in_msg_to(resolvers_config_alice): msg = copy.deepcopy(TEST_MESSAGE) msg.to = [BOB_DID, CHARLIE_DID] await pack_encrypted( resolvers_config=resolvers_config_alice, message=msg, frm=ALICE_DID, to=BOB_DID ) @pytest.mark.asyncio async def test_from_is_not_a_did_or_did_url_in_msg(resolvers_config_alice): msg = copy.deepcopy(TEST_MESSAGE) msg.frm = "not-a-did" with pytest.raises(DIDCommValueError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=msg, frm="not-a-did", to=BOB_DID, ) @pytest.mark.asyncio async def test_to_is_not_a_did_or_did_url_in_msg(resolvers_config_alice): msg = copy.deepcopy(TEST_MESSAGE) msg.to = ["not-a-did"] with pytest.raises(DIDCommValueError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=msg, to="not-a-did", ) @pytest.mark.asyncio async def test_from_param_is_url_from_msg_is_did_positive(resolvers_config_alice): msg = copy.deepcopy(TEST_MESSAGE) msg.frm = ALICE_DID await pack_encrypted( resolvers_config=resolvers_config_alice, message=msg, frm=get_key_agreement_methods_in_secrets(Person.ALICE)[0].id, to=BOB_DID, ) @pytest.mark.asyncio async def test_to_param_is_url_to_msg_is_did_positive(resolvers_config_alice): msg = copy.deepcopy(TEST_MESSAGE) msg.to = [ALICE_DID, BOB_DID] await pack_encrypted( resolvers_config=resolvers_config_alice, message=msg, to=get_key_agreement_methods_in_secrets(Person.BOB)[0].id, ) @pytest.mark.asyncio async def test_sign_from_differs_from_msg_from_positive( resolvers_config_alice_with_new_did, ): await pack_encrypted( resolvers_config=resolvers_config_alice_with_new_did, message=TEST_MESSAGE, frm=ALICE_DID, to=BOB_DID, sign_frm=CHARLIE_DID, ) @pytest.mark.asyncio async def test_from_param_is_did_from_msg_is_did_url(resolvers_config_alice): msg = copy.deepcopy(TEST_MESSAGE) msg.frm = get_key_agreement_methods_in_secrets(Person.ALICE)[0].id with pytest.raises(DIDCommValueError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=msg, frm=ALICE_DID, to=BOB_DID, ) @pytest.mark.asyncio async def test_to_param_is_did_to_msg_is_did_url(resolvers_config_alice): msg = copy.deepcopy(TEST_MESSAGE) msg.to = [get_key_agreement_methods_in_secrets(Person.BOB)[0].id] with pytest.raises(DIDCommValueError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=msg, to=BOB_DID ) @pytest.mark.asyncio async def test_from_unknown_did(resolvers_config_alice): msg = copy.deepcopy(TEST_MESSAGE) msg.frm = "did:example:unknown" with pytest.raises(DIDDocNotResolvedError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=msg, frm="did:example:unknown", to=BOB_DID, ) @pytest.mark.asyncio async def test_from_unknown_did_url(resolvers_config_alice): with pytest.raises(SecretNotFoundError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=TEST_MESSAGE, frm=ALICE_DID + "#unknown-key", to=BOB_DID, ) @pytest.mark.asyncio async def test_to_unknown_did(resolvers_config_alice): msg = copy.deepcopy(TEST_MESSAGE) msg.to = ["did:example:unknown"] with pytest.raises(DIDDocNotResolvedError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=msg, frm=ALICE_DID, to="did:example:unknown", ) @pytest.mark.asyncio async def test_to_unknown_did_url(resolvers_config_alice): with pytest.raises(DIDUrlNotFoundError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=TEST_MESSAGE, frm=ALICE_DID, to=BOB_DID + "#unknown-key", ) @pytest.mark.asyncio async def test_sign_from_unknown_did(resolvers_config_alice): with pytest.raises(DIDDocNotResolvedError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=TEST_MESSAGE, frm=ALICE_DID, to=BOB_DID, sign_frm="did:example:unknown", ) @pytest.mark.asyncio async def test_sign_from_unknown_did_url(resolvers_config_alice): with pytest.raises(SecretNotFoundError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=TEST_MESSAGE, frm=ALICE_DID, to=BOB_DID, sign_frm=ALICE_DID + "#unknown-key", ) @pytest.mark.asyncio async def test_from_not_in_secrets(resolvers_config_alice): frm = get_key_agreement_methods_not_in_secrets(Person.ALICE)[0].id with pytest.raises(SecretNotFoundError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=TEST_MESSAGE, frm=frm, to=BOB_DID, ) @pytest.mark.asyncio async def test_sign_from_not_in_secrets(resolvers_config_alice): frm = get_key_agreement_methods_not_in_secrets(Person.ALICE)[0].id with pytest.raises(SecretNotFoundError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=TEST_MESSAGE, frm=ALICE_DID, to=BOB_DID, sign_frm=frm, ) @pytest.mark.asyncio async def test_to_not_in_secrets_positive(resolvers_config_alice): to = get_key_agreement_methods_not_in_secrets(Person.BOB)[0].id await pack_encrypted( resolvers_config=resolvers_config_alice, message=TEST_MESSAGE, frm=ALICE_DID, to=to, ) @pytest.mark.asyncio @pytest.mark.parametrize( "curve_type_sender", [ KeyAgreementCurveType.X25519, KeyAgreementCurveType.P256, KeyAgreementCurveType.P521, ], ) @pytest.mark.parametrize( "curve_type_recipient", [ KeyAgreementCurveType.X25519, KeyAgreementCurveType.P256, KeyAgreementCurveType.P521, ], ) async def test_frm_to_different_curves( curve_type_sender, curve_type_recipient, resolvers_config_alice ): if curve_type_sender == curve_type_recipient: return frm_kid = get_key_agreement_methods_in_secrets(Person.ALICE, curve_type_sender)[ 0 ].id to_kid = get_key_agreement_methods_in_secrets(Person.BOB, curve_type_recipient)[ 0 ].id with pytest.raises(IncompatibleCryptoError): await pack_encrypted( resolvers_config=resolvers_config_alice, message=TEST_MESSAGE, frm=frm_kid, to=to_kid, )
29.081761
87
0.691501
1,134
9,248
5.247795
0.064374
0.17392
0.154596
0.104352
0.888086
0.864056
0.813645
0.796505
0.767434
0.723912
0
0.004364
0.231942
9,248
317
88
29.173502
0.833451
0
0
0.591078
0
0
0.024978
0
0
0
0
0
0
1
0
false
0
0.026022
0
0.02974
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
f947801ad12f27d7b8bbcaafd1f69f89ca3c3cd2
281
py
Python
improvisers/__init__.py
mvcisback/improvisers
d7ccc9c560fbe939a24a7ad61f1d12a7c31157ae
[ "MIT" ]
null
null
null
improvisers/__init__.py
mvcisback/improvisers
d7ccc9c560fbe939a24a7ad61f1d12a7c31157ae
[ "MIT" ]
null
null
null
improvisers/__init__.py
mvcisback/improvisers
d7ccc9c560fbe939a24a7ad61f1d12a7c31157ae
[ "MIT" ]
null
null
null
"""Library for synthesizing Entropic Reactive Control Improvisers for stochastic games.""" # flake8: noqa from improvisers.game_graph import * from improvisers.implicit import * from improvisers.explicit import * from improvisers.tabular import * from improvisers.policy import *
28.1
69
0.811388
33
281
6.878788
0.575758
0.330396
0.370044
0
0
0
0
0
0
0
0
0.004049
0.120996
281
9
70
31.222222
0.91498
0.348754
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
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
6
f95504d8880230e5b6bce2d1fb610eca7848515f
7,065
py
Python
PartDesignTests/TestPolarPattern.py
haisenzhao/CarpentryCompiler
c9714310b7ce7523a25becd397265bfaa3ab7ea3
[ "FSFAP" ]
21
2019-12-06T09:57:10.000Z
2021-09-22T12:58:09.000Z
PartDesignTests/TestPolarPattern.py
haisenzhao/CarpentryCompiler
c9714310b7ce7523a25becd397265bfaa3ab7ea3
[ "FSFAP" ]
null
null
null
PartDesignTests/TestPolarPattern.py
haisenzhao/CarpentryCompiler
c9714310b7ce7523a25becd397265bfaa3ab7ea3
[ "FSFAP" ]
5
2020-11-18T00:09:30.000Z
2021-01-13T04:40:47.000Z
# (c) Juergen Riegel (FreeCAD@juergen-riegel.net) 2011 LGPL * # * # This file is part of the FreeCAD CAx development system. * # * # This program is free software; you can redistribute it and/or modify * # it under the terms of the GNU Lesser General Public License (LGPL) * # as published by the Free Software Foundation; either version 2 of * # the License, or (at your option) any later version. * # for detail see the LICENCE text file. * # * # FreeCAD is distributed in the hope that it will be useful, * # but WITHOUT ANY WARRANTY; without even the implied warranty of * # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * # GNU Library General Public License for more details. * # * # You should have received a copy of the GNU Library General Public * # License along with FreeCAD; if not, write to the Free Software * # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * # USA * #************************************************************************** import unittest import FreeCAD import TestSketcherApp class TestPolarPattern(unittest.TestCase): def setUp(self): self.Doc = FreeCAD.newDocument("PartDesignTestPolarPattern") def testXAxisPolarPattern(self): self.Body = self.Doc.addObject('PartDesign::Body','Body') self.Box = self.Doc.addObject('PartDesign::AdditiveBox','Box') self.Body.addObject(self.Box) self.Box.Length=10.00 self.Box.Width=10.00 self.Box.Height=10.00 self.Doc.recompute() self.PolarPattern = self.Doc.addObject("PartDesign::PolarPattern","PolarPattern") self.PolarPattern.Originals = [self.Box] self.PolarPattern.Axis = (self.Doc.X_Axis,[""]) self.PolarPattern.Angle = 360 self.PolarPattern.Occurrences = 4 self.Body.addObject(self.PolarPattern) self.Doc.recompute() self.assertAlmostEqual(self.PolarPattern.Shape.Volume, 4000) def testYAxisPolarPattern(self): self.Body = self.Doc.addObject('PartDesign::Body','Body') self.Box = self.Doc.addObject('PartDesign::AdditiveBox','Box') self.Body.addObject(self.Box) self.Box.Length=10.00 self.Box.Width=10.00 self.Box.Height=10.00 self.Doc.recompute() self.PolarPattern = self.Doc.addObject("PartDesign::PolarPattern","PolarPattern") self.PolarPattern.Originals = [self.Box] self.PolarPattern.Axis = (self.Doc.Y_Axis,[""]) self.PolarPattern.Angle = 360 self.PolarPattern.Occurrences = 4 self.Body.addObject(self.PolarPattern) self.Doc.recompute() self.assertAlmostEqual(self.PolarPattern.Shape.Volume, 4000) def testZAxisPolarPattern(self): self.Body = self.Doc.addObject('PartDesign::Body','Body') self.Box = self.Doc.addObject('PartDesign::AdditiveBox','Box') self.Body.addObject(self.Box) self.Box.Length=10.00 self.Box.Width=10.00 self.Box.Height=10.00 self.Doc.recompute() self.PolarPattern = self.Doc.addObject("PartDesign::PolarPattern","PolarPattern") self.PolarPattern.Originals = [self.Box] self.PolarPattern.Axis = (self.Doc.Z_Axis,[""]) self.PolarPattern.Angle = 360 self.PolarPattern.Occurrences = 4 self.Body.addObject(self.PolarPattern) self.Doc.recompute() self.assertAlmostEqual(self.PolarPattern.Shape.Volume, 4000) def testNormalSketchAxisPolarPattern(self): self.Body = self.Doc.addObject('PartDesign::Body','Body') self.PadSketch = self.Doc.addObject('Sketcher::SketchObject', 'SketchPad') self.Body.addObject(self.PadSketch) TestSketcherApp.CreateRectangleSketch(self.PadSketch, (0, 0), (10, 10)) self.Doc.recompute() self.Pad = self.Doc.addObject("PartDesign::Pad", "Pad") self.Body.addObject(self.Pad) self.Pad.Profile = self.PadSketch self.Pad.Length = 10 self.Doc.recompute() self.PolarPattern = self.Doc.addObject("PartDesign::PolarPattern","PolarPattern") self.PolarPattern.Originals = [self.Pad] self.PolarPattern.Axis = (self.PadSketch,["N_Axis"]) self.PolarPattern.Angle = 360 self.PolarPattern.Occurrences = 4 self.Body.addObject(self.PolarPattern) self.Doc.recompute() self.assertAlmostEqual(self.PolarPattern.Shape.Volume, 4000) def testVerticalSketchAxisPolarPattern(self): self.Body = self.Doc.addObject('PartDesign::Body','Body') self.PadSketch = self.Doc.addObject('Sketcher::SketchObject', 'SketchPad') self.Body.addObject(self.PadSketch) TestSketcherApp.CreateRectangleSketch(self.PadSketch, (0, 0), (10, 10)) self.Doc.recompute() self.Pad = self.Doc.addObject("PartDesign::Pad", "Pad") self.Body.addObject(self.Pad) self.Pad.Profile = self.PadSketch self.Pad.Length = 10 self.Doc.recompute() self.PolarPattern = self.Doc.addObject("PartDesign::PolarPattern","PolarPattern") self.PolarPattern.Originals = [self.Pad] self.PolarPattern.Axis = (self.PadSketch,["V_Axis"]) self.PolarPattern.Angle = 360 self.PolarPattern.Occurrences = 4 self.Body.addObject(self.PolarPattern) self.Doc.recompute() self.assertAlmostEqual(self.PolarPattern.Shape.Volume, 4000) def testHorizontalSketchAxisPolarPattern(self): self.Body = self.Doc.addObject('PartDesign::Body','Body') self.PadSketch = self.Doc.addObject('Sketcher::SketchObject', 'SketchPad') self.Body.addObject(self.PadSketch) TestSketcherApp.CreateRectangleSketch(self.PadSketch, (0, 0), (10, 10)) self.Doc.recompute() self.Pad = self.Doc.addObject("PartDesign::Pad", "Pad") self.Body.addObject(self.Pad) self.Pad.Profile = self.PadSketch self.Pad.Length = 10 self.Doc.recompute() self.PolarPattern = self.Doc.addObject("PartDesign::PolarPattern","PolarPattern") self.PolarPattern.Originals = [self.Pad] self.PolarPattern.Axis = (self.PadSketch,["H_Axis"]) self.PolarPattern.Angle = 360 self.PolarPattern.Occurrences = 4 self.Body.addObject(self.PolarPattern) self.Doc.recompute() self.assertAlmostEqual(self.PolarPattern.Shape.Volume, 4000) def tearDown(self): #closing doc FreeCAD.closeDocument("PartDesignTestPolarPattern") # print ("omit closing document for debugging")
48.390411
89
0.61741
739
7,065
5.894452
0.205683
0.15427
0.077135
0.107438
0.762397
0.762397
0.747245
0.747245
0.747245
0.747245
0
0.024255
0.258882
7,065
145
90
48.724138
0.807678
0.217127
0
0.823009
0
0
0.114623
0.060127
0
0
0
0
0.053097
1
0.070796
false
0
0.026549
0
0.106195
0
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
f960e17e7a4804bd248a9e4866f9fe09aabb64d9
337
py
Python
tests/utils.py
shrenik-jain/ComVEX
93622de3a4771cda13b14f8bba52990eb47c2409
[ "Apache-2.0" ]
29
2021-06-14T08:27:43.000Z
2022-02-07T13:40:27.000Z
tests/utils.py
shrenik-jain/ComVEX
93622de3a4771cda13b14f8bba52990eb47c2409
[ "Apache-2.0" ]
3
2021-11-23T16:11:51.000Z
2021-12-21T17:24:36.000Z
tests/utils.py
shrenik-jain/ComVEX
93622de3a4771cda13b14f8bba52990eb47c2409
[ "Apache-2.0" ]
3
2021-06-27T08:18:57.000Z
2021-12-17T07:29:59.000Z
import torch def assert_output_has_nan(x: torch.Tensor) -> None: assert torch.isnan(x).any() == False, "Output contains NaN." def assert_output_shape_wrong(x: torch.Tensor, expected_shape: tuple) -> None: assert ( x.shape == expected_shape ), f"Output's shape: {tuple(x.shape)} != Expected shape: {expected_shape}."
37.444444
79
0.691395
48
337
4.666667
0.416667
0.232143
0.241071
0.169643
0
0
0
0
0
0
0
0
0.163205
337
9
79
37.444444
0.794326
0
0
0
0
0
0.263314
0
0
0
0
0
0.571429
1
0.285714
false
0
0.142857
0
0.428571
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
1
0
1
0
0
0
0
0
0
0
6
f963a319b895bf4bc57d1d29c511bfb64ba84e76
177
py
Python
src/hrflow_connectors/connectors/destinations/flatchr/spec.py
Riminder/hrflow-connectors
6be229520657031a9dda5e6fc9680dc527d730ad
[ "Apache-2.0" ]
32
2021-02-15T15:17:28.000Z
2022-01-25T10:13:48.000Z
src/hrflow_connectors/connectors/destinations/flatchr/spec.py
Riminder/hrflow-connectors
6be229520657031a9dda5e6fc9680dc527d730ad
[ "Apache-2.0" ]
3
2021-12-29T19:26:58.000Z
2022-01-28T09:07:40.000Z
src/hrflow_connectors/connectors/destinations/flatchr/spec.py
Riminder/hrflow-connectors
6be229520657031a9dda5e6fc9680dc527d730ad
[ "Apache-2.0" ]
3
2021-12-17T08:49:58.000Z
2022-03-15T07:15:40.000Z
from pydantic import BaseModel from typing import Tuple from .actions import PushProfile, EnrichProfile class Spec(BaseModel): actions: Tuple[PushProfile, EnrichProfile]
19.666667
47
0.80791
20
177
7.15
0.55
0.335664
0
0
0
0
0
0
0
0
0
0
0.141243
177
8
48
22.125
0.940789
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.6
0
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
0
1
0
1
0
1
0
0
6
f9712042add1347337523977d3e1a54bdf870384
65
py
Python
Machine Learning/Projects/Pokemon_Classifier/helper.py
HackerLion123/Machine-Learning
71224ea97ba4aaded13a700e07b498469299964b
[ "MIT" ]
1
2018-07-21T15:41:40.000Z
2018-07-21T15:41:40.000Z
Machine Learning/Projects/Pokemon_Classifier/helper.py
HackerLion123/Machine-Learning
71224ea97ba4aaded13a700e07b498469299964b
[ "MIT" ]
null
null
null
Machine Learning/Projects/Pokemon_Classifier/helper.py
HackerLion123/Machine-Learning
71224ea97ba4aaded13a700e07b498469299964b
[ "MIT" ]
null
null
null
import numpy as np def resize(): pass def load_data(): pass
7.222222
18
0.676923
11
65
3.909091
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.230769
65
9
19
7.222222
0.86
0
0
0.4
0
0
0
0
0
0
0
0
0
1
0.4
true
0.4
0.2
0
0.6
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
1
0
0
6
ddd6e9ab89f145d7f012c7207822fb73a58ec2f3
114
py
Python
Easy/69 - Sqrt(x).py
gizemkurtoglu/LeetCode
5e4461e26b5d430c4ef50e7f820d22beea50a896
[ "MIT" ]
5
2022-01-03T10:22:26.000Z
2022-02-20T05:05:17.000Z
Easy/69 - Sqrt(x).py
gizemkurtoglu/LeetCode
5e4461e26b5d430c4ef50e7f820d22beea50a896
[ "MIT" ]
null
null
null
Easy/69 - Sqrt(x).py
gizemkurtoglu/LeetCode
5e4461e26b5d430c4ef50e7f820d22beea50a896
[ "MIT" ]
null
null
null
from math import floor, sqrt class Solution: def mySqrt(self, x: int) -> int: return floor(sqrt(x))
16.285714
36
0.631579
17
114
4.235294
0.764706
0.25
0
0
0
0
0
0
0
0
0
0
0.254386
114
6
37
19
0.847059
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.25
0.25
1
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
ddf2ef50766d7471233815664e1898ec383688a9
296
py
Python
odin/fuel/bio_data/__init__.py
trungnt13/odin-ai
9c6986a854e62da39637ea463667841378b7dd84
[ "MIT" ]
7
2020-12-29T19:35:58.000Z
2022-01-31T21:01:30.000Z
odin/fuel/bio_data/__init__.py
imito/odin-ai
9c6986a854e62da39637ea463667841378b7dd84
[ "MIT" ]
3
2020-02-06T16:44:17.000Z
2020-09-26T05:26:14.000Z
odin/fuel/bio_data/__init__.py
trungnt13/odin-ai
9c6986a854e62da39637ea463667841378b7dd84
[ "MIT" ]
6
2019-02-14T01:36:28.000Z
2020-10-30T13:16:32.000Z
from odin.fuel.bio_data._base import GeneDataset from odin.fuel.bio_data.atac_datasets import * from odin.fuel.bio_data.cortex import Cortex from odin.fuel.bio_data.human_embryos import HumanEmbryos from odin.fuel.bio_data.human_genome import HumanGenome from odin.fuel.bio_data.pbmc import PBMC
42.285714
57
0.85473
50
296
4.86
0.34
0.197531
0.296296
0.37037
0.510288
0.197531
0
0
0
0
0
0
0.081081
296
6
58
49.333333
0.893382
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
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
6
fb1247ee78c07eaeaeb04435e0d979f7fa61efc0
115
py
Python
python/src/algorithms/__init__.py
onyonkaclifford/jwt
e5bc6eab6724b9e76a52d8789f672889a5866fe9
[ "MIT" ]
null
null
null
python/src/algorithms/__init__.py
onyonkaclifford/jwt
e5bc6eab6724b9e76a52d8789f672889a5866fe9
[ "MIT" ]
null
null
null
python/src/algorithms/__init__.py
onyonkaclifford/jwt
e5bc6eab6724b9e76a52d8789f672889a5866fe9
[ "MIT" ]
null
null
null
from .algorithm import Algorithm from .hmac_algorithm import HMACAlgorithm from .rsa_algorithm import RSAAlgorithm
28.75
41
0.869565
14
115
7
0.5
0.459184
0
0
0
0
0
0
0
0
0
0
0.104348
115
3
42
38.333333
0.951456
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
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
6
34b587fd620e4f1c6fe733582b67551722b31664
94
py
Python
orderbook_veinte/orderbook/views/__init__.py
morwen1/hyperion
f0d77a6cce6a366555e9f0ca0080f3da134862bf
[ "MIT" ]
null
null
null
orderbook_veinte/orderbook/views/__init__.py
morwen1/hyperion
f0d77a6cce6a366555e9f0ca0080f3da134862bf
[ "MIT" ]
null
null
null
orderbook_veinte/orderbook/views/__init__.py
morwen1/hyperion
f0d77a6cce6a366555e9f0ca0080f3da134862bf
[ "MIT" ]
null
null
null
from .bids import * from .asks import * from .transaction import * from .orders_user import *
23.5
26
0.744681
13
94
5.307692
0.538462
0.434783
0
0
0
0
0
0
0
0
0
0
0.170213
94
4
27
23.5
0.884615
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
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
6
34b97a06077bc5a6ce5098d6132893c162e3d6a3
87
py
Python
Day9/String repeat.py
ColdTears619/My100DaysOfCode
aa33d721a0fa71b2e2c5ebf5b22594f40e443f68
[ "MIT" ]
1
2021-12-25T16:18:42.000Z
2021-12-25T16:18:42.000Z
Day9/String repeat.py
ColdTears619/My100DaysOfCode
aa33d721a0fa71b2e2c5ebf5b22594f40e443f68
[ "MIT" ]
null
null
null
Day9/String repeat.py
ColdTears619/My100DaysOfCode
aa33d721a0fa71b2e2c5ebf5b22594f40e443f68
[ "MIT" ]
null
null
null
def repeat_str(repeat, string): return repeat * string print(repeat_str(6,'I'))
29
31
0.689655
13
87
4.461538
0.615385
0.310345
0
0
0
0
0
0
0
0
0
0.013889
0.172414
87
3
32
29
0.791667
0
0
0
0
0
0.011364
0
0
0
0
0
0
1
0.333333
false
0
0
0.333333
0.666667
0.333333
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
0
1
1
0
0
6
551d8313af3bc436ad1047eaec2278a45e83086c
147
py
Python
modules/python-codes/modules/functions/src/02-say-hello.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
1
2020-09-06T22:17:19.000Z
2020-09-06T22:17:19.000Z
modules/python-codes/modules/functions/src/02-say-hello.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
null
null
null
modules/python-codes/modules/functions/src/02-say-hello.py
drigols/Studies
9c293156935b491ded24be6b511daac67fd43538
[ "MIT" ]
null
null
null
# Cria a função que diz "Hello". def say_hello(): print("Hello!!") if __name__ == "__main__": # Chama a função que diz "Hello". say_hello()
18.375
35
0.639456
22
147
3.818182
0.590909
0.166667
0.238095
0.309524
0.428571
0
0
0
0
0
0
0
0.197279
147
7
36
21
0.711864
0.421769
0
0
0
0
0.182927
0
0
0
0
0
0
1
0.25
true
0
0
0
0.25
0.25
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
1
1
0
0
0
0
0
0
6
9b366573ecba2f67af8ac2068bf9aa62e5e864bd
111
py
Python
pinballmap/exceptions.py
eyesee1/python-pinballmap
5605e6905e7feabf8fecda6fe0f5884e89d6412d
[ "MIT" ]
2
2017-02-17T18:39:42.000Z
2017-02-17T18:39:50.000Z
pinballmap/exceptions.py
eyesee1/python-pinballmap
5605e6905e7feabf8fecda6fe0f5884e89d6412d
[ "MIT" ]
3
2017-05-04T23:44:08.000Z
2022-01-23T02:23:23.000Z
pinballmap/exceptions.py
eyesee1/python-pinballmap
5605e6905e7feabf8fecda6fe0f5884e89d6412d
[ "MIT" ]
null
null
null
class TokenRequiredException(Exception): pass class PinballMapAuthenticationFailure(Exception): pass
15.857143
49
0.801802
8
111
11.125
0.625
0.292135
0
0
0
0
0
0
0
0
0
0
0.144144
111
6
50
18.5
0.936842
0
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
1
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
6
fd0a3585254c85443f75e40c004dafd9e2766585
1,002
py
Python
catkin_ws/build/mrta/cmake/mrta-genmsg-context.py
people-robots/MRTA
3e10eda5157c6cde8668128b640c1a8737afb9b4
[ "MIT" ]
2
2021-06-30T09:00:52.000Z
2021-12-17T09:45:33.000Z
catkin_ws/build/mrta/cmake/mrta-genmsg-context.py
people-robots/MRTA
3e10eda5157c6cde8668128b640c1a8737afb9b4
[ "MIT" ]
1
2020-02-25T03:51:54.000Z
2020-02-25T03:51:54.000Z
catkin_ws/build/mrta/cmake/mrta-genmsg-context.py
people-robots/MRTA
3e10eda5157c6cde8668128b640c1a8737afb9b4
[ "MIT" ]
null
null
null
# generated from genmsg/cmake/pkg-genmsg.context.in messages_str = "/home/kimwang/Desktop/MRTA-devel/catkin_ws/src/mrta/msg/Task.msg;/home/kimwang/Desktop/MRTA-devel/catkin_ws/src/mrta/msg/AuctionRequest.msg;/home/kimwang/Desktop/MRTA-devel/catkin_ws/src/mrta/msg/AuctionAck.msg;/home/kimwang/Desktop/MRTA-devel/catkin_ws/src/mrta/msg/Bid.msg;/home/kimwang/Desktop/MRTA-devel/catkin_ws/src/mrta/msg/Winner.msg;/home/kimwang/Desktop/MRTA-devel/catkin_ws/src/mrta/msg/ScheduledTasks.msg" services_str = "/home/kimwang/Desktop/MRTA-devel/catkin_ws/src/mrta/srv/TerminateRobot.srv" pkg_name = "mrta" dependencies_str = "std_msgs" langs = "gencpp;geneus;genlisp;gennodejs;genpy" dep_include_paths_str = "mrta;/home/kimwang/Desktop/MRTA-devel/catkin_ws/src/mrta/msg;std_msgs;/opt/ros/kinetic/share/std_msgs/cmake/../msg" PYTHON_EXECUTABLE = "/usr/bin/python" package_has_static_sources = '' == 'TRUE' genmsg_check_deps_script = "/opt/ros/kinetic/share/genmsg/cmake/../../../lib/genmsg/genmsg_check_deps.py"
83.5
433
0.799401
160
1,002
4.8375
0.3625
0.113695
0.186047
0.22739
0.488372
0.488372
0.488372
0.488372
0.488372
0.488372
0
0
0.033932
1,002
11
434
91.090909
0.799587
0.048902
0
0
1
0.333333
0.78654
0.753943
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
fd10471a0e39d6df4986a7cb4b86cddc3f7b4e97
117
py
Python
src/entities/__init__.py
Asa-Nisi-Masa/movie-recommender
92752aa302e166885ab3e39b3e9d2ac9185a013e
[ "MIT" ]
null
null
null
src/entities/__init__.py
Asa-Nisi-Masa/movie-recommender
92752aa302e166885ab3e39b3e9d2ac9185a013e
[ "MIT" ]
null
null
null
src/entities/__init__.py
Asa-Nisi-Masa/movie-recommender
92752aa302e166885ab3e39b3e9d2ac9185a013e
[ "MIT" ]
null
null
null
from .movie import Movie from .searched_movie import SearchedMovie from .recommended_movies import RecommendedMovies
29.25
49
0.871795
14
117
7.142857
0.571429
0.22
0
0
0
0
0
0
0
0
0
0
0.102564
117
3
50
39
0.952381
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
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
6
fd10f301aea3af92a6556abbfd73b8d429556cc4
146
py
Python
_benchmarks/hug_server.py
axegon/Milvago
4e05e54fa34190c8a5eb4d4913b5231e660e6711
[ "MIT" ]
null
null
null
_benchmarks/hug_server.py
axegon/Milvago
4e05e54fa34190c8a5eb4d4913b5231e660e6711
[ "MIT" ]
1
2020-08-11T12:50:50.000Z
2020-08-11T12:50:50.000Z
_benchmarks/hug_server.py
axegon/Milvago
4e05e54fa34190c8a5eb4d4913b5231e660e6711
[ "MIT" ]
null
null
null
import hug from common_data import CONTENTS @hug.get('/') @hug.format.content_type('application/json') def happy_birthday(): return CONTENTS
18.25
44
0.760274
20
146
5.4
0.8
0
0
0
0
0
0
0
0
0
0
0
0.116438
146
8
45
18.25
0.837209
0
0
0
0
0
0.115646
0
0
0
0
0
0
1
0.166667
true
0
0.333333
0.166667
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
1
1
0
0
6
fd46bb36c95d49583e23675149a4058ae6721e5d
152
py
Python
tests/asp/weakConstraints/weak_constraints_example3.gringo.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
19
2015-12-03T08:53:45.000Z
2022-03-31T02:09:43.000Z
tests/asp/weakConstraints/weak_constraints_example3.gringo.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
80
2017-11-25T07:57:32.000Z
2018-06-10T19:03:30.000Z
tests/asp/weakConstraints/weak_constraints_example3.gringo.test.py
bernardocuteri/wasp
05c8f961776dbdbf7afbf905ee00fc262eba51ad
[ "Apache-2.0" ]
6
2015-01-15T07:51:48.000Z
2020-06-18T14:47:48.000Z
input = """ 8 2 2 3 0 0 8 2 4 5 0 0 1 6 1 0 3 1 6 1 0 2 1 6 1 0 5 1 6 1 0 4 6 0 1 0 6 1 0 2 b 3 a 4 d 5 c 0 B+ 0 B- 1 0 1 """ output = """ COST 1@1 """
6.08
12
0.467105
59
152
1.20339
0.254237
0.197183
0.211268
0.225352
0
0
0
0
0
0
0
0.568182
0.421053
152
24
13
6.333333
0.238636
0
0
0.083333
0
0
0.796053
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
1
null
0
1
1
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
b5d040a2ee46a1d6a8dfdd8f333019e77ad5339d
6,411
py
Python
models/VGG_loss.py
qcw171717/cs236_pix2pix_cyclegan
364a13b57748ba04367c7329fe51640ed9f7712e
[ "BSD-3-Clause" ]
null
null
null
models/VGG_loss.py
qcw171717/cs236_pix2pix_cyclegan
364a13b57748ba04367c7329fe51640ed9f7712e
[ "BSD-3-Clause" ]
null
null
null
models/VGG_loss.py
qcw171717/cs236_pix2pix_cyclegan
364a13b57748ba04367c7329fe51640ed9f7712e
[ "BSD-3-Clause" ]
null
null
null
# class VGGPerceptualLoss(torch.nn.Module): # ## input (N, C, H, W) # ## output (N, C, H, W) # def __init__(self, mask=None, resolution=(32, 32) ,resize=True): # super(VGGPerceptualLoss, self).__init__() # blocks = [] # blocks.append(torchvision.models.vgg16(pretrained=True).features[:4].eval()) # blocks.append(torchvision.models.vgg16(pretrained=True).features[4:9].eval()) # blocks.append(torchvision.models.vgg16(pretrained=True).features[9:16].eval()) # blocks.append(torchvision.models.vgg16(pretrained=True).features[16:23].eval()) # for bl in blocks: # for p in bl.parameters(): # p.requires_grad = False # self.blocks = torch.nn.ModuleList(blocks) # self.transform = torch.nn.functional.interpolate # self.register_buffer('mean', torch.tensor([0.485, 0.456, 0.406]).view(1,3,1,1)) # self.register_buffer('std', torch.tensor([0.229, 0.224, 0.225]).view(1,3,1,1)) # # self.mean = torch.nn.Parameter(torch.tensor([0.485, 0.456, 0.406]).view(1,3,1,1)) # # self.std = torch.nn.Parameter(torch.tensor([0.229, 0.224, 0.225]).view(1,3,1,1)) # self.resize = resize # self.image_resolution = resolution # self.mask = mask # def forward(self, input, target, feature_layers=[0, 1, 2, 3], style_layers=[]): # def forward(self, model_output, gt, feature_layers=(0, 1, 2, 3), style_layers=()): # pred_img = dataio.lin2img(model_output['model_out'], self.image_resolution) # gt_img = dataio.lin2img(gt['img'], self.image_resolution) # if self.mask is not None: # pred_img = pred_img * self.mask # gt_img = gt_img * self.mask # if pred_img.shape[1] != 3: # pred_img = pred_img.repeat(1, 3, 1, 1) # gt_img = gt_img.repeat(1, 3, 1, 1) # pred_img = (pred_img-self.mean) / self.std # gt_img = (gt_img-self.mean) / self.std # if self.resize: # pred_img = self.transform(pred_img, mode='bilinear', size=(224, 224), align_corners=False) # gt_img = self.transform(gt_img, mode='bilinear', size=(224, 224), align_corners=False) # loss = 0.0 # x = pred_img # y = gt_img # for i, block in enumerate(self.blocks): # x = block(x) # y = block(y) # if i in feature_layers: # loss += torch.nn.functional.l1_loss(x, y) # if i in style_layers: # act_x = x.reshape(x.shape[0], x.shape[1], -1) # act_y = y.reshape(y.shape[0], y.shape[1], -1) # gram_x = act_x @ act_x.permute(0, 2, 1) # gram_y = act_y @ act_y.permute(0, 2, 1) # loss += torch.nn.functional.l1_loss(gram_x, gram_y) # return {'img_loss': loss} # def forward(self, fake, real, feature_layers=(0, 1, 2, 3), style_layers=()): # # pred_img = dataio.lin2img(model_output['model_out'], self.image_resolution) # # gt_img = dataio.lin2img(gt['img'], self.image_resolution) # if self.mask is not None: # fake= fake * self.mask # real = real * self.mask # if fake.shape[1] != 3: # fake = fake.repeat(1, 3, 1, 1) # real = real.repeat(1, 3, 1, 1) # fake = (pred_img-self.mean) / self.std # gt_img = (gt_img-self.mean) / self.std # if self.resize: # pred_img = self.transform(pred_img, mode='bilinear', size=(224, 224), align_corners=False) # gt_img = self.transform(gt_img, mode='bilinear', size=(224, 224), align_corners=False) # loss = 0.0 # x = pred_img # y = gt_img # for i, block in enumerate(self.blocks): # x = block(x) # y = block(y) # if i in feature_layers: # loss += torch.nn.functional.l1_loss(x, y) # if i in style_layers: # act_x = x.reshape(x.shape[0], x.shape[1], -1) # act_y = y.reshape(y.shape[0], y.shape[1], -1) # gram_x = act_x @ act_x.permute(0, 2, 1) # gram_y = act_y @ act_y.permute(0, 2, 1) # loss += torch.nn.functional.l1_loss(gram_x, gram_y) # return {'img_loss': loss} import torch import torchvision class VGGPerceptualLoss(torch.nn.Module): def __init__(self, resize=True): super(VGGPerceptualLoss, self).__init__() blocks = [] blocks.append(torchvision.models.vgg16(pretrained=True).features[:4].eval()) # blocks.append(torchvision.models.vgg16(pretrained=True).features[4:9].eval()) # blocks.append(torchvision.models.vgg16(pretrained=True).features[9:16].eval()) # blocks.append(torchvision.models.vgg16(pretrained=True).features[16:23].eval()) for bl in blocks: for p in bl.parameters(): p.requires_grad = False self.blocks = torch.nn.ModuleList(blocks) self.transform = torch.nn.functional.interpolate self.resize = resize self.register_buffer("mean", torch.tensor([0.485, 0.456, 0.406]).view(1, 3, 1, 1)) self.register_buffer("std", torch.tensor([0.229, 0.224, 0.225]).view(1, 3, 1, 1)) def forward(self, input, target, feature_layers=[0, 1, 2, 3], style_layers=[]): if input.shape[1] != 3: input = input.repeat(1, 3, 1, 1) target = target.repeat(1, 3, 1, 1) input = (input-self.mean) / self.std target = (target-self.mean) / self.std if self.resize: input = self.transform(input, mode='bilinear', size=(224, 224), align_corners=False) target = self.transform(target, mode='bilinear', size=(224, 224), align_corners=False) loss = 0.0 x = input y = target for i, block in enumerate(self.blocks): x = block(x) y = block(y) if i in feature_layers: loss += torch.nn.functional.l1_loss(x, y) if i in style_layers: act_x = x.reshape(x.shape[0], x.shape[1], -1) act_y = y.reshape(y.shape[0], y.shape[1], -1) gram_x = act_x @ act_x.permute(0, 2, 1) gram_y = act_y @ act_y.permute(0, 2, 1) loss += torch.nn.functional.l1_loss(gram_x, gram_y) return loss
50.085938
104
0.562939
905
6,411
3.853039
0.110497
0.010324
0.010324
0.013765
0.869229
0.826498
0.809865
0.802122
0.790938
0.790938
0
0.058708
0.282639
6,411
128
105
50.085938
0.6995
0.648417
0
0
0
0
0.010638
0
0
0
0
0
0
1
0.051282
false
0
0.051282
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
0
0
0
0
0
0
6
b5ddc010104e366893c1e863dc28aeee0aacc028
277
py
Python
ecommerce/webstore/views.py
SOORAJTS2001/HACKERCBS
3d3b0e5f58f5db0c50e8d9f581673c47d2add0ac
[ "MIT" ]
null
null
null
ecommerce/webstore/views.py
SOORAJTS2001/HACKERCBS
3d3b0e5f58f5db0c50e8d9f581673c47d2add0ac
[ "MIT" ]
null
null
null
ecommerce/webstore/views.py
SOORAJTS2001/HACKERCBS
3d3b0e5f58f5db0c50e8d9f581673c47d2add0ac
[ "MIT" ]
null
null
null
from django.shortcuts import render # Create your views here. def index(request): return render(request,'webstore/index.html') def details(request): return render(request,'webstore/details.html') def contact(request): return render(request,'webstore/contact.html')
30.777778
50
0.761733
36
277
5.861111
0.472222
0.184834
0.270142
0.369668
0.483412
0
0
0
0
0
0
0
0.119134
277
9
51
30.777778
0.864754
0.083032
0
0
0
0
0.241107
0.166008
0
0
0
0
0
1
0.428571
false
0
0.142857
0.428571
1
0
0
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
1
0
0
0
1
1
0
0
6
b5e88770bea50726818aa71a4901a63db3db8c96
135
py
Python
vicarui/src/vicarui/support/pipeline/__init__.py
joniumGit/moons
f5f8b7e23e707c8cf7e1081c4a1c0fcc22182d85
[ "MIT" ]
1
2021-07-16T06:30:37.000Z
2021-07-16T06:30:37.000Z
vicarui/src/vicarui/support/pipeline/__init__.py
joniumGit/moons
f5f8b7e23e707c8cf7e1081c4a1c0fcc22182d85
[ "MIT" ]
null
null
null
vicarui/src/vicarui/support/pipeline/__init__.py
joniumGit/moons
f5f8b7e23e707c8cf7e1081c4a1c0fcc22182d85
[ "MIT" ]
1
2021-05-26T03:53:41.000Z
2021-05-26T03:53:41.000Z
from .statsmodels_adapter import * from .adapter_interface import * from .partial import * from .pipe import * from .powerlaw import *
22.5
34
0.777778
17
135
6.058824
0.470588
0.38835
0
0
0
0
0
0
0
0
0
0
0.148148
135
5
35
27
0.895652
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
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
6
b5fabf2bde7a9a60aa5580128b8ea91b15f6f07e
79
py
Python
vnpy/app/chart_wizard/__init__.py
ChaunceyDong/vnpy
1c1b683ffc1c842bb7661e8194eca61af30cf586
[ "MIT" ]
19,529
2015-03-02T12:17:35.000Z
2022-03-31T17:18:27.000Z
vnpy/app/chart_wizard/__init__.py
ChaunceyDong/vnpy
1c1b683ffc1c842bb7661e8194eca61af30cf586
[ "MIT" ]
2,186
2015-03-04T23:16:33.000Z
2022-03-31T03:44:01.000Z
vnpy/app/chart_wizard/__init__.py
ChaunceyDong/vnpy
1c1b683ffc1c842bb7661e8194eca61af30cf586
[ "MIT" ]
8,276
2015-03-02T05:21:04.000Z
2022-03-31T13:13:13.000Z
import sys import vnpy_chartwizard sys.modules[__name__] = vnpy_chartwizard
11.285714
40
0.822785
10
79
5.9
0.6
0.508475
0
0
0
0
0
0
0
0
0
0
0.126582
79
6
41
13.166667
0.855072
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
1fc205f0a7ddf659616a67a25ceb06c5671a65a4
140
py
Python
hello.py
trintambogo/firstprogram
92fc1d0a93128afe466608747512ac18f1c16eaa
[ "MIT" ]
null
null
null
hello.py
trintambogo/firstprogram
92fc1d0a93128afe466608747512ac18f1c16eaa
[ "MIT" ]
null
null
null
hello.py
trintambogo/firstprogram
92fc1d0a93128afe466608747512ac18f1c16eaa
[ "MIT" ]
null
null
null
print("helloworld") print('my name is trinta') print('---------') print('________') print('| |') print('---------')
15.555556
27
0.442857
11
140
4.909091
0.545455
0.555556
0.555556
0
0
0
0
0
0
0
0
0
0.242857
140
8
28
17.5
0.509434
0
0
0.333333
0
0
0.469697
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
0
0
0
1
0
6
1fff8e6aba6effabba855f53bb10124200b97f2c
29
py
Python
lego/apps/feed/models.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
lego/apps/feed/models.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
lego/apps/feed/models.py
andrinelo/lego
9b53c8fe538d9107b980a70e2a21fb487cc3b290
[ "MIT" ]
null
null
null
from .verbs import * # noqa
14.5
28
0.655172
4
29
4.75
1
0
0
0
0
0
0
0
0
0
0
0
0.241379
29
1
29
29
0.863636
0.137931
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
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
6
1f39451f076aaf743137803618eb053a145f62ae
26,897
py
Python
mobotpy/models.py
botprof/agv-examples
a21b0f65fa50ad023864e18c40a37353f2a37f84
[ "MIT" ]
6
2021-11-06T11:14:39.000Z
2022-03-29T10:54:57.000Z
mobotpy/models.py
botprof/agv-examples
a21b0f65fa50ad023864e18c40a37353f2a37f84
[ "MIT" ]
3
2022-02-13T17:32:24.000Z
2022-02-13T22:50:30.000Z
mobotpy/models.py
botprof/agv-examples
a21b0f65fa50ad023864e18c40a37353f2a37f84
[ "MIT" ]
1
2022-01-21T10:48:22.000Z
2022-01-21T10:48:22.000Z
""" Python module models.py for various vehicle models. Author: Joshua A. Marshall <joshua.marshall@queensu.ca> GitHub: https://github.com/botprof/agv-examples """ import numpy as np from mobotpy import graphics import matplotlib.pyplot as plt import matplotlib.animation as animation from scipy.stats import chi2 from matplotlib import patches class Cart: """1D vehicle class (i.e., a simple cart). Parameters ---------- length : float Length of the cart [m]. """ def __init__(self, length): """Constructor method.""" self.d = length def draw(self, x): """Finds the points to draw simple rectangular cart. The cart has position x and length d. The resulting cart has a height that is half the length. """ X = np.array(5) Y = np.array(5) X = [ x - self.d / 2, x - self.d / 2, x + self.d / 2, x + self.d / 2, x - self.d / 2, ] Y = [-self.d / 4, self.d / 4, self.d / 4, -self.d / 4, -self.d / 4] return X, Y def animate(self, x, T, save_ani=False, filename="animate_cart.gif"): """Create an animation of a simple 1D cart. Returns animation object for array of 1D cart positions x with time increments T [s], cart width d [m]. To save the animation to a GIF file, set save_ani to True and give a filename (default filename is 'animate_cart.gif'). """ fig, ax = plt.subplots() plt.plot([np.min(x) - self.d, np.max(x) + self.d], [0, 0], "k--") plt.xlabel(r"$x$ [m]") ax.set_xlim([np.min(x) - self.d, np.max(x) + self.d]) plt.yticks([]) plt.axis("equal") (polygon,) = ax.fill([], [], "C0", alpha=0.5) (line,) = plt.plot([], [], "ko") time_text = ax.text(0.05, 0.9, "", transform=ax.transAxes) # Initialization funcion def init(): polygon.set_xy(np.empty([5, 2])) line.set_data([], []) time_text.set_text("") return polygon, line, time_text # Function to draw cart def movie(k): X, Y = self.draw(x[k]) a = [X, Y] polygon.set_xy(np.transpose(a)) line.set_data(x[k], 0) time_text.set_text(r"$t$ = %.1f s" % (k * T)) return polygon, line, time_text # Create the animation ani = animation.FuncAnimation( fig, movie, np.arange(1, len(x), max(1, int(1 / T / 10))), init_func=init, interval=T * 1000, blit=True, repeat=False, ) # Save to a file if requested if save_ani == True: ani.save(filename, fps=min(1 / T, 10)) # Return the figure object return ani class DiffDrive: """Differential-drive vehicle class. Parameters ---------- ell : float The track length of the vehicle [m]. """ def __init__(self, ell): """Constructor method.""" self.ell = ell def f(self, x, u): """Differential drive kinematic vehicle kinematic model. Parameters ---------- x : ndarray of length 3 The vehicle's state (x, y, theta). u : ndarray of length 2 The left and right wheel speeds (v_L, v_R). Returns ------- f : ndarray of length 3 The rate of change of the vehicle states. """ f = np.zeros(3) f[0] = 0.5 * (u[0] + u[1]) * np.cos(x[2]) f[1] = 0.5 * (u[0] + u[1]) * np.sin(x[2]) f[2] = 1.0 / self.ell * (u[1] - u[0]) return f def uni2diff(self, u_in): """ Convert speed and anular rate inputs to differential drive wheel speeds. Parameters ---------- u_in : ndarray of length 2 The speed and turning rate of the vehicle (v, omega). Returns ------- u_out : ndarray of length 2 The left and right wheel speeds (v_L, v_R). """ v = u_in[0] omega = u_in[1] v_L = v - self.ell / 2 * omega v_R = v + self.ell / 2 * omega u_out = np.array([v_L, v_R]) return u_out def draw(self, x, y, theta): """ Finds points that draw a differential drive vehicle. The centre of the wheel axle is (x, y), the vehicle has orientation theta, and the vehicle's track length is ell. Returns X_L, Y_L, X_R, Y_R, X_BD, Y_BD, X_C, Y_C, where L is for the left wheel, R for the right wheel, B for the body, and C for the caster. """ # Left and right wheels X_L, Y_L = graphics.draw_rectangle( x - 0.5 * self.ell * np.sin(theta), y + 0.5 * self.ell * np.cos(theta), 0.5 * self.ell, 0.25 * self.ell, theta, ) X_R, Y_R = graphics.draw_rectangle( x + 0.5 * self.ell * np.sin(theta), y - 0.5 * self.ell * np.cos(theta), 0.5 * self.ell, 0.25 * self.ell, theta, ) # Body X_BD, Y_BD = graphics.draw_circle(x, y, self.ell) # Caster X_C, Y_C = graphics.draw_circle( x + 0.5 * self.ell * np.cos(theta), y + 0.5 * self.ell * np.sin(theta), 0.125 * self.ell, ) # Return the arrays of points return X_L, Y_L, X_R, Y_R, X_BD, Y_BD, X_C, Y_C def animate(self, x, T, save_ani=False, filename="animate_diffdrive.gif"): """Create an animation of a differential drive vehicle. Returns animation object for array of vehicle positions x with time increments T [s], track ell [m]. To save the animation to a GIF file, set save_ani to True and provide a filename (default 'animate_diffdrive.gif'). """ fig, ax = plt.subplots() plt.xlabel(r"$x$ [m]") plt.ylabel(r"$y$ [m]") plt.axis("equal") (line,) = ax.plot([], [], "C0") (leftwheel,) = ax.fill([], [], color="k") (rightwheel,) = ax.fill([], [], color="k") (body,) = ax.fill([], [], color="C0", alpha=0.5) (castor,) = ax.fill([], [], color="k") time_text = ax.text(0.05, 0.9, "", transform=ax.transAxes) def init(): """Function that initializes the animation.""" line.set_data([], []) leftwheel.set_xy(np.empty([5, 2])) rightwheel.set_xy(np.empty([5, 2])) body.set_xy(np.empty([36, 2])) castor.set_xy(np.empty([36, 2])) time_text.set_text("") return line, leftwheel, rightwheel, body, castor, time_text def movie(k): """Function called at each step of the animation.""" # Draw the path followed by the vehicle line.set_data(x[0, 0 : k + 1], x[1, 0 : k + 1]) # Draw the differential drive vehicle X_L, Y_L, X_R, Y_R, X_B, Y_B, X_C, Y_C = self.draw( x[0, k], x[1, k], x[2, k] ) leftwheel.set_xy(np.transpose([X_L, Y_L])) rightwheel.set_xy(np.transpose([X_R, Y_R])) body.set_xy(np.transpose([X_B, Y_B])) castor.set_xy(np.transpose([X_C, Y_C])) # Add the simulation time time_text.set_text(r"$t$ = %.1f s" % (k * T)) # Dynamically set the axis limits ax.set_xlim(x[0, k] - 10 * self.ell, x[0, k] + 10 * self.ell) ax.set_ylim(x[1, k] - 10 * self.ell, x[1, k] + 10 * self.ell) ax.figure.canvas.draw() # Return the objects to animate return line, leftwheel, rightwheel, body, castor, time_text # Create the animation ani = animation.FuncAnimation( fig, movie, np.arange(1, len(x[0, :]), max(1, int(1 / T / 10))), init_func=init, interval=T * 1000, blit=True, repeat=False, ) if save_ani == True: ani.save(filename, fps=min(1 / T, 10)) # Return the figure object return ani def animate_trajectory( self, x, xd, T, save_ani=False, filename="animate_diffdrive.gif" ): """Create an animation of a differential drive vehicle with plots of actual and desired trajectories. Returns animation object for array of vehicle positions and desired positions x with time increments T [s], track ell [m]. To save the animation to a GIF file, set save_ani to True and provide a filename (default 'animate_diffdrive.gif'). """ fig, ax = plt.subplots() plt.xlabel(r"$x$ [m]") plt.ylabel(r"$y$ [m]") plt.axis("equal") (desired,) = ax.plot([], [], "--C1") (line,) = ax.plot([], [], "C0") (leftwheel,) = ax.fill([], [], color="k") (rightwheel,) = ax.fill([], [], color="k") (body,) = ax.fill([], [], color="C0", alpha=0.5) (castor,) = ax.fill([], [], color="k") time_text = ax.text(0.05, 0.9, "", transform=ax.transAxes) def init(): """Function that initializes the animation.""" desired.set_data([], []) line.set_data([], []) leftwheel.set_xy(np.empty([5, 2])) rightwheel.set_xy(np.empty([5, 2])) body.set_xy(np.empty([36, 2])) castor.set_xy(np.empty([36, 2])) time_text.set_text("") return desired, line, leftwheel, rightwheel, body, castor, time_text def movie(k): """Function called at each step of the animation.""" # Draw the desired trajectory desired.set_data(xd[0, 0 : k + 1], xd[1, 0 : k + 1]) # Draw the path followed by the vehicle line.set_data(x[0, 0 : k + 1], x[1, 0 : k + 1]) # Draw the differential drive vehicle X_L, Y_L, X_R, Y_R, X_B, Y_B, X_C, Y_C = self.draw( x[0, k], x[1, k], x[2, k] ) leftwheel.set_xy(np.transpose([X_L, Y_L])) rightwheel.set_xy(np.transpose([X_R, Y_R])) body.set_xy(np.transpose([X_B, Y_B])) castor.set_xy(np.transpose([X_C, Y_C])) # Add the simulation time time_text.set_text(r"$t$ = %.1f s" % (k * T)) # Dynamically set the axis limits ax.set_xlim(x[0, k] - 10 * self.ell, x[0, k] + 10 * self.ell) ax.set_ylim(x[1, k] - 10 * self.ell, x[1, k] + 10 * self.ell) ax.figure.canvas.draw() # Return the objects to animate return desired, line, leftwheel, rightwheel, body, castor, time_text # Create the animation ani = animation.FuncAnimation( fig, movie, np.arange(1, len(x[0, :]), max(1, int(1 / T / 10))), init_func=init, interval=T * 1000, blit=True, repeat=False, ) if save_ani == True: ani.save(filename, fps=min(1 / T, 10)) # Return the figure object return ani def animate_estimation( self, x, x_hat, P_hat, alpha, T, save_ani=False, filename="animate_diffdrive.gif", ): """Create an animation of a differential drive vehicle with plots of estimation uncertainty. Returns animation object for array of vehicle positions x with time increments T [s], track ell [m]. To save the animation to a GIF file, set save_ani to True and provide a filename (default 'animate_diffdrive.gif'). """ fig, ax = plt.subplots() plt.xlabel(r"$x$ [m]") plt.ylabel(r"$y$ [m]") plt.axis("equal") (estimated,) = ax.plot([], [], "--C1") (line,) = ax.plot([], [], "C0") (leftwheel,) = ax.fill([], [], color="k") (rightwheel,) = ax.fill([], [], color="k") (body,) = ax.fill([], [], color="C0", alpha=0.5) (castor,) = ax.fill([], [], color="k") time_text = ax.text(0.05, 0.9, "", transform=ax.transAxes) s2 = chi2.isf(alpha, 2) def init(): """Function that initializes the animation.""" estimated.set_data([], []) line.set_data([], []) leftwheel.set_xy(np.empty([5, 2])) rightwheel.set_xy(np.empty([5, 2])) body.set_xy(np.empty([36, 2])) castor.set_xy(np.empty([36, 2])) time_text.set_text("") return estimated, line, leftwheel, rightwheel, body, castor, time_text def movie(k): """Function called at each step of the animation.""" # Draw the desired trajectory estimated.set_data(x_hat[0, 0 : k + 1], x_hat[1, 0 : k + 1]) # Draw the path followed by the vehicle line.set_data(x[0, 0 : k + 1], x[1, 0 : k + 1]) # Draw the differential drive vehicle X_L, Y_L, X_R, Y_R, X_B, Y_B, X_C, Y_C = self.draw( x[0, k], x[1, k], x[2, k] ) leftwheel.set_xy(np.transpose([X_L, Y_L])) rightwheel.set_xy(np.transpose([X_R, Y_R])) body.set_xy(np.transpose([X_B, Y_B])) castor.set_xy(np.transpose([X_C, Y_C])) # Compute eigenvalues and eigenvectors to find axes for covariance ellipse W, V = np.linalg.eig(P_hat[0:2, 0:2, k]) # Find the index of the largest and smallest eigenvalues j_max = np.argmax(W) j_min = np.argmin(W) ell = patches.Ellipse( (x_hat[0, k], x_hat[1, k]), 2 * np.sqrt(s2 * W[j_max]), 2 * np.sqrt(s2 * W[j_min]), angle=np.arctan2(V[j_max, 1], V[j_max, 0]) * 180 / np.pi, alpha=0.2, color="C1", ) ax.add_artist(ell) # Add the simulation time time_text.set_text(r"$t$ = %.1f s" % (k * T)) # Dynamically set the axis limits ax.set_xlim(x[0, k] - 10 * self.ell, x[0, k] + 10 * self.ell) ax.set_ylim(x[1, k] - 10 * self.ell, x[1, k] + 10 * self.ell) ax.figure.canvas.draw() # Return the objects to animate return estimated, line, leftwheel, rightwheel, body, castor, time_text # Create the animation ani = animation.FuncAnimation( fig, movie, np.arange(1, len(x[0, :]), max(1, int(1 / T / 10))), init_func=init, interval=T * 1000, blit=True, repeat=False, ) if save_ani == True: ani.save(filename, fps=min(1 / T, 10)) # Return the figure object return ani class Tricycle: """Tricycle or planar bicycle vehicle class. Parameters ---------- ell_W : float The wheelbase of the vehicle [m]. ell_T : float The vehicle's track length [m]. """ def __init__(self, ell_W, ell_T): """Constructor method.""" self.ell_W = ell_W self.ell_T = ell_T def f(self, x, u): """Tricycle or planar bicycle vehicle kinematic model. Parameters ---------- x : ndarray of length 4 The vehicle's state (x, y, theta, phi). u : ndarray of length 2 Returns ------- f : ndarray of length 4 The rate of change of the vehicle states. """ f = np.zeros(4) f[0] = u[0] * np.cos(x[2]) f[1] = u[0] * np.sin(x[2]) f[2] = u[0] * 1.0 / self.ell_W * np.tan(x[3]) f[3] = u[1] return f def draw(self, x, y, theta, phi): """Finds points that draw a tricycle vehicle. The centre of the rear wheel axle is (x, y), the body has orientation theta, steering angle phi, wheelbase ell_W and track length ell_T. Returns X_L, Y_L, X_R, Y_R, X_F, Y_F, X_B, Y_B, where L is for the left wheel, R is for the right wheel, F is for the single front wheel, and BD is for the vehicle's body. """ # Left and right back wheels X_L, Y_L = graphics.draw_rectangle( x - 0.5 * self.ell_T * np.sin(theta), y + 0.5 * self.ell_T * np.cos(theta), 0.5 * self.ell_T, 0.25 * self.ell_T, theta, ) X_R, Y_R = graphics.draw_rectangle( x + 0.5 * self.ell_T * np.sin(theta), y - 0.5 * self.ell_T * np.cos(theta), 0.5 * self.ell_T, 0.25 * self.ell_T, theta, ) # Front wheel X_F, Y_F = graphics.draw_rectangle( x + self.ell_W * np.cos(theta), y + self.ell_W * np.sin(theta), 0.5 * self.ell_T, 0.25 * self.ell_T, theta + phi, ) # Body X_BD, Y_BD = graphics.draw_rectangle( x + self.ell_W / 2.0 * np.cos(theta), y + self.ell_W / 2.0 * np.sin(theta), 2.0 * self.ell_W, 2.0 * self.ell_T, theta, ) # Return the arrays of points return X_L, Y_L, X_R, Y_R, X_F, Y_F, X_BD, Y_BD def animate( self, x, T, save_ani=False, filename="animate_tricycle.gif", ): """Create an animation of a tricycle vehicle. Returns animation object for array of vehicle positions x with time increments T [s], wheelbase ell_W [m], and track ell_T [m]. To save the animation to a GIF file, set save_ani to True and give a filename (default 'animate_tricycle.gif'). """ fig, ax = plt.subplots() plt.xlabel(r"$x$ [m]") plt.ylabel(r"$y$ [m]") plt.axis("equal") (line,) = ax.plot([], [], "C0") (leftwheel,) = ax.fill([], [], color="k") (rightwheel,) = ax.fill([], [], color="k") (frontwheel,) = ax.fill([], [], color="k") (body,) = ax.fill([], [], color="C0", alpha=0.5) time_text = ax.text(0.05, 0.9, "", transform=ax.transAxes) def init(): """A function that initializes the animation.""" line.set_data([], []) leftwheel.set_xy(np.empty([5, 2])) rightwheel.set_xy(np.empty([5, 2])) frontwheel.set_xy(np.empty([5, 2])) body.set_xy(np.empty([5, 2])) time_text.set_text("") return line, leftwheel, rightwheel, frontwheel, body, time_text def movie(k): """The function called at each step of the animation.""" # Draw the path followed by the vehicle line.set_data(x[0, 0 : k + 1], x[1, 0 : k + 1]) # Draw the tricycle vehicle X_L, Y_L, X_R, Y_R, X_F, Y_F, X_B, Y_B = self.draw( x[0, k], x[1, k], x[2, k], x[3, k] ) leftwheel.set_xy(np.transpose([X_L, Y_L])) rightwheel.set_xy(np.transpose([X_R, Y_R])) frontwheel.set_xy(np.transpose([X_F, Y_F])) body.set_xy(np.transpose([X_B, Y_B])) # Add the simulation time time_text.set_text(r"$t$ = %.1f s" % (k * T)) # Dynamically set the axis limits ax.set_xlim(x[0, k] - 10 * self.ell_W, x[0, k] + 10 * self.ell_W) ax.set_ylim(x[1, k] - 10 * self.ell_W, x[1, k] + 10 * self.ell_W) ax.figure.canvas.draw() # Return the objects to animate return line, leftwheel, rightwheel, frontwheel, body, time_text # Create the animation ani = animation.FuncAnimation( fig, movie, np.arange(1, len(x[0, :]), max(1, int(1 / T / 10))), init_func=init, interval=T * 1000, blit=True, repeat=False, ) if save_ani == True: ani.save(filename, fps=min(1 / T, 10)) # Return the figure object return ani class Ackermann: """Ackermann steered vehicle class. Parameters ---------- ell_W : float The wheelbase of the vehicle [m]. ell_T : float The vehicle's track length [m]. """ def __init__(self, ell_W, ell_T): """Constructor method.""" self.ell_W = ell_W self.ell_T = ell_T def f(self, x, u): """Ackermann steered vehicle kinematic model. Parameters ---------- x : ndarray of length 4 The vehicle's state (x, y, theta, phi). u : ndarray of length 2 The vehicle's speed and steering angle rate. Returns ------- f : ndarray of length 4 The rate of change of the vehicle states. """ f = np.zeros(4) f[0] = u[0] * np.cos(x[2]) f[1] = u[0] * np.sin(x[2]) f[2] = u[0] * 1.0 / self.ell_W * np.tan(x[3]) f[3] = u[1] return f def ackermann(self, x): """Computes the Ackermann steering angles. Parameters ---------- x : ndarray of length 4 The vehicle's state (x, y, theta, phi). Returns ------- ackermann_angles : ndarray of length 2 The left and right wheel angles (phi_L, phi_R). """ phi_L = np.arctan( 2 * self.ell_W * np.tan(x[3]) / (2 * self.ell_W - self.ell_T * np.tan(x[3])) ) phi_R = np.arctan( 2 * self.ell_W * np.tan(x[3]) / (2 * self.ell_W + self.ell_T * np.tan(x[3])) ) ackermann_angles = np.array([phi_L, phi_R]) return ackermann_angles def draw(self, x, y, theta, phi_L, phi_R): """Finds points that draw an Ackermann steered (car-like) vehicle. The centre of the rear wheel axle is (x, y), the body has orientation theta, effective steering angle phi, wheelbase ell_W and track length ell_T. Returns X_BL, Y_BL, X_BR, Y_BR, X_FL, Y_FL, X_FR, Y_FR, X_BD, Y_BD, where L denotes left, R denotes right, B denotes back, F denotes front, and BD denotes the vehicle's body. """ # Left and right back wheels X_BL, Y_BL = graphics.draw_rectangle( x - 0.5 * self.ell_T * np.sin(theta), y + 0.5 * self.ell_T * np.cos(theta), 0.5 * self.ell_T, 0.25 * self.ell_T, theta, ) X_BR, Y_BR = graphics.draw_rectangle( x + 0.5 * self.ell_T * np.sin(theta), y - 0.5 * self.ell_T * np.cos(theta), 0.5 * self.ell_T, 0.25 * self.ell_T, theta, ) # Left and right front wheels X_FL, Y_FL = graphics.draw_rectangle( x + self.ell_W * np.cos(theta) - self.ell_T / 2 * np.sin(theta), y + self.ell_W * np.sin(theta) + self.ell_T / 2 * np.cos(theta), 0.5 * self.ell_T, 0.25 * self.ell_T, theta + phi_L, ) X_FR, Y_FR = graphics.draw_rectangle( x + self.ell_W * np.cos(theta) + self.ell_T / 2 * np.sin(theta), y + self.ell_W * np.sin(theta) - self.ell_T / 2 * np.cos(theta), 0.5 * self.ell_T, 0.25 * self.ell_T, theta + phi_R, ) # Body X_BD, Y_BD = graphics.draw_rectangle( x + self.ell_W / 2.0 * np.cos(theta), y + self.ell_W / 2.0 * np.sin(theta), 2.0 * self.ell_W, 2.0 * self.ell_T, theta, ) # Return the arrays of points return X_BL, Y_BL, X_BR, Y_BR, X_FL, Y_FL, X_FR, Y_FR, X_BD, Y_BD def animate( self, x, T, phi_L, phi_R, save_ani=False, filename="animate_ackermann.gif", ): """Create an animation of an Ackermann steered (car-like) vehicle. Returns animation object for array of vehicle positions x with time increments T [s], wheelbase ell_W [m], and track ell_T [m]. To save the animation to a GIF file, set save_ani to True and give a filename (default 'animate_ackermann.gif'). """ fig, ax = plt.subplots() plt.xlabel(r"$x$ [m]") plt.ylabel(r"$y$ [m]") plt.axis("equal") (line,) = ax.plot([], [], "C0") (BLwheel,) = ax.fill([], [], color="k") (BRwheel,) = ax.fill([], [], color="k") (FLwheel,) = ax.fill([], [], color="k") (FRwheel,) = ax.fill([], [], color="k") (body,) = ax.fill([], [], color="C0", alpha=0.5) time_text = ax.text(0.05, 0.9, "", transform=ax.transAxes) def init(): """A function that initializes the animation.""" line.set_data([], []) BLwheel.set_xy(np.empty([5, 2])) BRwheel.set_xy(np.empty([5, 2])) FLwheel.set_xy(np.empty([5, 2])) FRwheel.set_xy(np.empty([5, 2])) body.set_xy(np.empty([5, 2])) time_text.set_text("") return line, BLwheel, BRwheel, FLwheel, FRwheel, body, time_text def movie(k): """The function called at each step of the animation.""" # Draw the path followed by the vehicle line.set_data(x[0, 0 : k + 1], x[1, 0 : k + 1]) # Draw the Ackermann steered drive vehicle X_BL, Y_BL, X_BR, Y_BR, X_FL, Y_FL, X_FR, Y_FR, X_BD, Y_BD = self.draw( x[0, k], x[1, k], x[2, k], phi_L[k], phi_R[k] ) BLwheel.set_xy(np.transpose([X_BL, Y_BL])) BRwheel.set_xy(np.transpose([X_BR, Y_BR])) FLwheel.set_xy(np.transpose([X_FL, Y_FL])) FRwheel.set_xy(np.transpose([X_FR, Y_FR])) body.set_xy(np.transpose([X_BD, Y_BD])) # Add the simulation time time_text.set_text(r"$t$ = %.1f s" % (k * T)) # Dynamically set the axis limits ax.set_xlim(x[0, k] - 10 * self.ell_W, x[0, k] + 10 * self.ell_W) ax.set_ylim(x[1, k] - 10 * self.ell_W, x[1, k] + 10 * self.ell_W) ax.figure.canvas.draw() # Return the objects to animate return line, BLwheel, BRwheel, FLwheel, FRwheel, body, time_text # Create the animation ani = animation.FuncAnimation( fig, movie, np.arange(1, len(x[0, :]), max(1, int(1 / T / 10))), init_func=init, interval=T * 1000, blit=True, repeat=False, ) if save_ani == True: ani.save(filename, fps=min(1 / T, 10)) # Return the figure object return ani
35.067797
88
0.506413
3,868
26,897
3.400465
0.072389
0.04843
0.023417
0.015738
0.810081
0.777085
0.754125
0.738083
0.724626
0.710332
0
0.029667
0.353348
26,897
766
89
35.113577
0.726557
0.264676
0
0.663067
0
0
0.018932
0.004518
0
0
0
0
0
1
0.066955
false
0
0.012959
0
0.146868
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
1f42f52e17e69193369fe350fe87f8633f69b781
49
py
Python
HelloWorld.py
manikantavasupalli/python-practice
a4504efe3e294e8dfc4dee046778dea7d1c1e528
[ "MIT" ]
null
null
null
HelloWorld.py
manikantavasupalli/python-practice
a4504efe3e294e8dfc4dee046778dea7d1c1e528
[ "MIT" ]
null
null
null
HelloWorld.py
manikantavasupalli/python-practice
a4504efe3e294e8dfc4dee046778dea7d1c1e528
[ "MIT" ]
null
null
null
#Simple Hello World program print("Hello World")
16.333333
27
0.77551
7
49
5.428571
0.714286
0.526316
0
0
0
0
0
0
0
0
0
0
0.122449
49
2
28
24.5
0.883721
0.530612
0
0
0
0
0.5
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
0
0
0
1
0
6
2f7afaaa2acaf9301b0a6faac8f2b85c617d26fc
144
py
Python
ts_eval/viz/components/__init__.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
1
2021-07-12T08:58:07.000Z
2021-07-12T08:58:07.000Z
ts_eval/viz/components/__init__.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
null
null
null
ts_eval/viz/components/__init__.py
vshulyak/ts-eval
2049b1268cf4272f5fa1471851523f8da14dd84c
[ "MIT" ]
null
null
null
class BaseComponent: """ Base component """ def compute(self): return None def display(self): return None
13.090909
22
0.548611
14
144
5.642857
0.714286
0.253165
0.35443
0
0
0
0
0
0
0
0
0
0.361111
144
10
23
14.4
0.858696
0.097222
0
0.4
0
0
0
0
0
0
0
0
0
1
0.4
false
0
0
0.4
1
0
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
6
85e049f06154a7e80b92ddb3743aa33c8e68dc7e
146
py
Python
src/OOXMLParser/__init__.py
rjsmith/robot-ooxml
3cb957480eda39bd2ffe8659c6f0fa68f17189f5
[ "ECL-2.0", "Apache-2.0" ]
3
2015-03-06T11:07:48.000Z
2021-11-12T17:29:09.000Z
src/OOXMLParser/__init__.py
rjsmith/robot-ooxml
3cb957480eda39bd2ffe8659c6f0fa68f17189f5
[ "ECL-2.0", "Apache-2.0" ]
1
2015-03-06T09:08:02.000Z
2015-03-06T09:34:11.000Z
src/OOXMLParser/__init__.py
rjsmith/robot-ooxml
3cb957480eda39bd2ffe8659c6f0fa68f17189f5
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
''' Created on 28 Feb 2014 @author: richardsmith ''' from OOXMLParser.docxreader import DocxReader from OOXMLParser.xlsxreader import XlsxReader
18.25
45
0.808219
17
146
6.941176
0.705882
0.254237
0
0
0
0
0
0
0
0
0
0.046875
0.123288
146
7
46
20.857143
0.875
0.308219
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
1
0
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
6
c823571d5070355d8bb5ea83e1cc96c7d66cbdf8
699
py
Python
synth/constraint/__init__.py
lummax/switching-lattice-synth
47cf9e64c900cb179c392b46a392049e99dfebab
[ "MIT" ]
null
null
null
synth/constraint/__init__.py
lummax/switching-lattice-synth
47cf9e64c900cb179c392b46a392049e99dfebab
[ "MIT" ]
null
null
null
synth/constraint/__init__.py
lummax/switching-lattice-synth
47cf9e64c900cb179c392b46a392049e99dfebab
[ "MIT" ]
null
null
null
from synth.constraint import cardnet from synth.constraint.sequential_counter import at_most_one from synth.constraint.sequential_counter import at_least_one from synth.constraint.sequential_counter import equals_one def at_most(inputs, p, equivalent=None): if p == 1: yield from at_most_one(inputs, equivalent) else: yield from cardnet.at_most(inputs, p, equivalent) def at_least(inputs, p, equivalent=None): if p == 1: yield from at_least_one(inputs, equivalent) else: yield from cardnet.at_least(inputs, p, equivalent) def equals(inputs, p, equivalent=None): if p == 1: yield from equals_one(inputs, equivalent) else: yield from cardnet.equals(inputs, p, equivalent)
36.789474
60
0.771102
106
699
4.924528
0.198113
0.08046
0.195402
0.166667
0.802682
0.695402
0.695402
0.360153
0.203065
0.137931
0
0.005
0.141631
699
18
61
38.833333
0.865
0
0
0
0
0
0
0
0
0
0
0
0
1
0.230769
false
0
0.307692
0
0.538462
0
0
0
0
null
0
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
1
0
0
6
c8456dd3ec53541f568844c28b5deec50f7881d3
158
py
Python
data/__init__.py
iamVarunAnand/image_classification
58120a2a708e495b598cc97fe297e2071c8c4197
[ "MIT" ]
18
2019-10-17T10:30:40.000Z
2020-12-26T03:59:23.000Z
data/__init__.py
iamVarunAnand/image_classification
58120a2a708e495b598cc97fe297e2071c8c4197
[ "MIT" ]
2
2021-08-25T15:05:01.000Z
2022-02-09T23:41:44.000Z
data/__init__.py
iamVarunAnand/image_classification
58120a2a708e495b598cc97fe297e2071c8c4197
[ "MIT" ]
3
2020-09-18T19:29:13.000Z
2021-12-27T05:17:53.000Z
from .cifargenerator import CifarGenerator, CifarPreprocessor from .mixupcifargenerator import MixUpCifarGenerator from .datadispatcher import DataDispatcher
39.5
61
0.892405
13
158
10.846154
0.461538
0
0
0
0
0
0
0
0
0
0
0
0.082278
158
3
62
52.666667
0.972414
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
c85757385b0bcfc653355f569a3fd80306c30376
206
py
Python
students/K33422/Bondarenko_Gleb/NEW/lab_3/candy_project/candy_app/candy_app/admin.py
ArokhTheDragon/ITMO_ICT_WebDevelopment_2021-2022
c0dd905cf6f30c060310f5377b62a1125e697d40
[ "MIT" ]
null
null
null
students/K33422/Bondarenko_Gleb/NEW/lab_3/candy_project/candy_app/candy_app/admin.py
ArokhTheDragon/ITMO_ICT_WebDevelopment_2021-2022
c0dd905cf6f30c060310f5377b62a1125e697d40
[ "MIT" ]
null
null
null
students/K33422/Bondarenko_Gleb/NEW/lab_3/candy_project/candy_app/candy_app/admin.py
ArokhTheDragon/ITMO_ICT_WebDevelopment_2021-2022
c0dd905cf6f30c060310f5377b62a1125e697d40
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import * # Register your models here. admin.site.register(Candies) admin.site.register(Client) admin.site.register(Staff) admin.site.register(Request)
22.888889
33
0.771845
28
206
5.678571
0.5
0.226415
0.427673
0
0
0
0
0
0
0
0
0
0.126214
206
9
34
22.888889
0.883333
0.126214
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
0
0
0
6
c090686d289d2ce9df52481ccf9383891e2377d1
195
py
Python
python/print_string.py
sivasant/python_project
d148a1be177a634b25e571b1fc1b710276f3ef3b
[ "Apache-2.0" ]
null
null
null
python/print_string.py
sivasant/python_project
d148a1be177a634b25e571b1fc1b710276f3ef3b
[ "Apache-2.0" ]
null
null
null
python/print_string.py
sivasant/python_project
d148a1be177a634b25e571b1fc1b710276f3ef3b
[ "Apache-2.0" ]
null
null
null
print('My name is santhosh') print("We'er going to pheonix") print('He said "Hi.."') print('we\'er going to the store') print('Hi'+'you') print('Hi '+'you') print('Hi','you') print('Hi '+str(5))
21.666667
34
0.625641
35
195
3.485714
0.514286
0.229508
0.245902
0.368852
0.565574
0.303279
0.303279
0.303279
0
0
0
0.00578
0.112821
195
8
35
24.375
0.699422
0
0
0.25
0
0
0.394872
0
0
0
0
0
0
1
0
true
0
0
0
0
1
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
0
0
0
1
0
6
c0b95bab04d6dce8ff77a6963e666d2667d4621b
12,872
py
Python
hera_cal/tests/profile_logcal.py
LBJ-Wade/hera_cal
868122b04b8e7f627aa72317427f89ca3eaf7d60
[ "MIT" ]
10
2017-06-22T22:14:23.000Z
2022-03-08T17:33:45.000Z
hera_cal/tests/profile_logcal.py
LBJ-Wade/hera_cal
868122b04b8e7f627aa72317427f89ca3eaf7d60
[ "MIT" ]
610
2017-06-22T22:16:27.000Z
2022-03-31T16:11:34.000Z
hera_cal/tests/profile_logcal.py
LBJ-Wade/hera_cal
868122b04b8e7f627aa72317427f89ca3eaf7d60
[ "MIT" ]
8
2017-10-30T18:16:19.000Z
2021-04-01T09:20:18.000Z
from __future__ import print_function import hera_cal.redcal as om import hera_cal.omni import omnical.calib import numpy as np import unittest import time from copy import deepcopy import pstats import cProfile np.random.seed(0) # SHAPE = (1,1024) SHAPE = (60, 1024) # SHAPE = (2,1024) NANTS = 18 def build_linear_array(nants, sep=14.7): antpos = {i: np.array([sep * i, 0, 0]) for i in range(nants)} return antpos def build_hex_array(hexNum, sep=14.7): antpos, i = {}, 0 for row in range(hexNum - 1, -(hexNum), -1): for col in range(2 * hexNum - abs(row) - 1): xPos = ((-(2 * hexNum - abs(row)) + 2) / 2.0 + col) * sep yPos = row * sep * 3**.5 / 2 antpos[i] = np.array([xPos, yPos, 0]) i += 1 return antpos antpos = build_linear_array(NANTS) reds = om.get_reds(antpos, pols=['xx'], pol_mode='1pol') info = om.RedundantCalibrator(reds) gains, true_vis, d = om.sim_red_data(reds, shape=SHAPE, gain_scatter=.0099999) d = {key: value + 1e-3 * om.noise(value.shape) for key, value in d.items()} d = {key: value.astype(np.complex64) for key, value in d.items()} w = dict([(k, 1.) for k in d.keys()]) class TestRedundantCalibrator(unittest.TestCase): def setUp(self): self.pr = cProfile.Profile() self.pr.enable() def tearDown(self): p = pstats.Stats(self.pr) p.strip_dirs() p.sort_stats('cumtime') p.print_stats(20) def test_logcal(self): NANTS = 18 antpos = build_linear_array(NANTS) reds = om.get_reds(antpos, pols=['xx'], pol_mode='1pol') info = om.RedundantCalibrator(reds) gains, true_vis, d = om.sim_red_data(reds, shape=SHAPE, gain_scatter=.05) d = {key: value.astype(np.complex64) for key, value in d.items()} w = dict([(k, 1.) for k in d.keys()]) t0 = time.time() for i in xrange(1): sol = info.logcal(d) # print('logcal', time.time() - t0) for i in xrange(NANTS): self.assertEqual(sol[(i, 'x')].shape, SHAPE) for bls in reds: ubl = sol[bls[0]] self.assertEqual(ubl.shape, SHAPE) for bl in bls: d_bl = d[bl] mdl = sol[(bl[0], 'x')] * sol[(bl[1], 'x')].conj() * ubl # np.testing.assert_almost_equal(np.abs(d_bl), np.abs(mdl), 10) # np.testing.assert_almost_equal(np.angle(d_bl * mdl.conj()), 0, 10) np.testing.assert_almost_equal(np.abs(d_bl), np.abs(mdl), 5) np.testing.assert_almost_equal(np.angle(d_bl * mdl.conj()), 0, 5) def test_omnilogcal(self): NANTS = 18 antpos = build_linear_array(NANTS) hcreds = om.get_reds(antpos, pols=['xx'], pol_mode='1pol') pols = ['x'] antpos_ideal = np.array(antpos.values()) xs, ys, zs = antpos_ideal.T layout = np.arange(len(xs)) antpos = -np.ones((NANTS * len(pols), 3)) for ant, x, y in zip(layout.flatten(), xs.flatten(), ys.flatten()): for z, pol in enumerate(pols): z = 2**z # exponential ensures diff xpols aren't redundant w/ each other i = hera_cal.omni.Antpol(ant, pol, NANTS) antpos[int(i), 0], antpos[int(i), 1], antpos[int(i), 2] = x, y, z reds = hera_cal.omni.compute_reds(NANTS, pols, antpos[:NANTS], tol=.01) # reds = hera_cal.omni.filter_reds(reds, **kwargs) info = hera_cal.omni.RedundantInfo(NANTS) info.init_from_reds(reds, antpos_ideal) # info = om.RedundantCalibrator(reds) # gains, true_vis, d = om.sim_red_data(hcreds, shape=SHAPE, gain_scatter=.05) data = {} for key in d.keys(): if not data.has_key(key[:2]): data[key[:2]] = {} data[key[:2]][key[-1]] = d[key].astype(np.complex64) t0 = time.time() for i in xrange(1): m1, g1, v1 = omnical.calib.logcal(data, info) # print('omnilogcal', time.time() - t0) for i in xrange(NANTS): self.assertEqual(g1['x'][i].shape, SHAPE) for bls in reds: ubl = v1['xx'][(int(bls[0][0]), int(bls[0][1]))] self.assertEqual(ubl.shape, SHAPE) for bl in bls: d_bl = data[(int(bl[0]), int(bl[1]))]['xx'] mdl = g1['x'][bl[0]] * g1['x'][bl[1]].conj() * ubl np.testing.assert_almost_equal(np.abs(d_bl), np.abs(mdl), 5) np.testing.assert_almost_equal(np.angle(d_bl * mdl.conj()), 0, 5) def test_lincal(self): NANTS = 18 antpos = build_linear_array(NANTS) reds = om.get_reds(antpos, pols=['xx'], pol_mode='1pol') info = om.RedundantCalibrator(reds) gains, true_vis, d = om.sim_red_data(reds, shape=SHAPE, gain_scatter=.0099999) d = {key: value.astype(np.complex64) for key, value in d.items()} w = dict([(k, 1.) for k in d.keys()]) sol0 = dict([(k, np.ones_like(v)) for k, v in gains.items()]) sol0.update(info.compute_ubls(d, sol0)) sol0 = {k: v.astype(np.complex64) for k, v in sol0.items()} # sol0 = info.logcal(d) # for k in sol0: sol0[k] += .01*capo.oqe.noise(sol0[k].shape) meta, sol = info.lincal(d, sol0) for i in xrange(NANTS): self.assertEqual(sol[(i, 'x')].shape, SHAPE) for bls in reds: ubl = sol[bls[0]] self.assertEqual(ubl.shape, SHAPE) for bl in bls: d_bl = d[bl] mdl = sol[(bl[0], 'x')] * sol[(bl[1], 'x')].conj() * ubl np.testing.assert_almost_equal(np.abs(d_bl), np.abs(mdl), 5) np.testing.assert_almost_equal(np.angle(d_bl * mdl.conj()), 0, 5) def test_omnical(self): NANTS = 18 antpos = build_linear_array(NANTS) reds = om.get_reds(antpos, pols=['xx'], pol_mode='1pol') info = om.RedundantCalibrator(reds) # gains, true_vis, d = om.sim_red_data(reds, shape=SHAPE, gain_scatter=.0099999) # d = {key:value.astype(np.complex64) for key,value in d.items()} w = dict([(k, 1.) for k in d.keys()]) sol0 = dict([(k, np.ones_like(v)) for k, v in gains.items()]) sol0.update(info.compute_ubls(d, sol0)) sol0 = {k: v.astype(np.complex64) for k, v in sol0.items()} meta, sol = info.omnical(d, sol0, gain=.5, maxiter=500, check_after=30, check_every=6) # meta, sol = info.omnical(d, sol0, gain=.5, maxiter=50, check_after=1, check_every=1) # print(meta) for i in xrange(NANTS): self.assertEqual(sol[(i, 'x')].shape, SHAPE) for bls in reds: ubl = sol[bls[0]] self.assertEqual(ubl.shape, SHAPE) for bl in bls: d_bl = d[bl] mdl = sol[(bl[0], 'x')] * sol[(bl[1], 'x')].conj() * ubl np.testing.assert_almost_equal(np.abs(d_bl), np.abs(mdl), 5) np.testing.assert_almost_equal(np.angle(d_bl * mdl.conj()), 0, 5) def test_omnical_original(self): NANTS = 18 antpos = build_linear_array(NANTS) hcreds = om.get_reds(antpos, pols=['xx'], pol_mode='1pol') pols = ['x'] antpos_ideal = np.array(antpos.values()) xs, ys, zs = antpos_ideal.T layout = np.arange(len(xs)) antpos = -np.ones((NANTS * len(pols), 3)) for ant, x, y in zip(layout.flatten(), xs.flatten(), ys.flatten()): for z, pol in enumerate(pols): z = 2**z # exponential ensures diff xpols aren't redundant w/ each other i = hera_cal.omni.Antpol(ant, pol, NANTS) antpos[int(i), 0], antpos[int(i), 1], antpos[int(i), 2] = x, y, z reds = hera_cal.omni.compute_reds(NANTS, pols, antpos[:NANTS], tol=.01) # reds = hera_cal.omni.filter_reds(reds, **kwargs) info = hera_cal.omni.RedundantInfo(NANTS) info.init_from_reds(reds, antpos_ideal) # info = om.RedundantCalibrator(reds) # gains, true_vis, d = om.sim_red_data(hcreds, shape=SHAPE, gain_scatter=.0099999) data = {} for key in d.keys(): if not data.has_key(key[:2]): data[key[:2]] = {} data[key[:2]][key[-1]] = d[key].astype(np.complex64) t0 = time.time() for i in xrange(1): m1, g1, v1 = omnical.calib.lincal(data, info, maxiter=50) # print('omnilincal', time.time() - t0) for i in xrange(NANTS): self.assertEqual(g1['x'][i].shape, SHAPE) for bls in reds: ubl = v1['xx'][(int(bls[0][0]), int(bls[0][1]))] self.assertEqual(ubl.shape, SHAPE) for bl in bls: d_bl = data[(int(bl[0]), int(bl[1]))]['xx'] mdl = g1['x'][bl[0]] * g1['x'][bl[1]].conj() * ubl np.testing.assert_almost_equal(np.abs(d_bl), np.abs(mdl), 5) np.testing.assert_almost_equal(np.angle(d_bl * mdl.conj()), 0, 5) ''' def test_lincal_hex_end_to_end_1pol_with_remove_degen_and_firstcal(self): antpos = build_hex_array(3) reds = om.get_reds(antpos, pols=['xx'], pol_mode='1pol') rc = om.RedundantCalibrator(reds) freqs = np.linspace(.1, .2, 10) gains, true_vis, d = om.sim_red_data(reds, gain_scatter=.1, shape=(1, len(freqs))) fc_delays = {ant: 100 * np.random.randn() for ant in gains.keys()} # in ns fc_gains = {ant: np.reshape(np.exp(-2.0j * np.pi * freqs * delay), (1, len(freqs))) for ant, delay in fc_delays.items()} for ant1, ant2, pol in d.keys(): d[(ant1, ant2, pol)] *= fc_gains[(ant1, pol[0])] * np.conj(fc_gains[(ant2, pol[1])]) for ant in gains.keys(): gains[ant] *= fc_gains[ant] w = dict([(k, 1.) for k in d.keys()]) sol0 = rc.logcal(d, sol0=fc_gains, wgts=w) meta, sol = rc.lincal(d, sol0, wgts=w) np.testing.assert_array_less(meta['iter'], 50 * np.ones_like(meta['iter'])) np.testing.assert_almost_equal(meta['chisq'], np.zeros_like(meta['chisq']), decimal=10) np.testing.assert_almost_equal(meta['chisq'], 0, 10) for i in xrange(len(antpos)): self.assertEqual(sol[(i, 'x')].shape, (1, len(freqs))) for bls in reds: ubl = sol[bls[0]] self.assertEqual(ubl.shape, (1, len(freqs))) for bl in bls: d_bl = d[bl] mdl = sol[(bl[0], 'x')] * sol[(bl[1], 'x')].conj() * ubl np.testing.assert_almost_equal(np.abs(d_bl), np.abs(mdl), 10) np.testing.assert_almost_equal(np.angle(d_bl * mdl.conj()), 0, 10) sol_rd = rc.remove_degen(antpos, sol) g, v = om.get_gains_and_vis_from_sol(sol_rd) ants = [key for key in sol_rd.keys() if len(key) == 2] gainSols = np.array([sol_rd[ant] for ant in ants]) meanSqAmplitude = np.mean([np.abs(g[key1] * g[key2]) for key1 in g.keys() for key2 in g.keys() if key1[1] == 'x' and key2[1] == 'x' and key1[0] != key2[0]], axis=0) np.testing.assert_almost_equal(meanSqAmplitude, 1, 10) #np.testing.assert_almost_equal(np.mean(np.angle(gainSols), axis=0), 0, 10) for bls in reds: ubl = sol_rd[bls[0]] self.assertEqual(ubl.shape, (1, len(freqs))) for bl in bls: d_bl = d[bl] mdl = sol_rd[(bl[0], 'x')] * sol_rd[(bl[1], 'x')].conj() * ubl np.testing.assert_almost_equal(np.abs(d_bl), np.abs(mdl), 10) np.testing.assert_almost_equal(np.angle(d_bl * mdl.conj()), 0, 10) sol_rd = rc.remove_degen(antpos, sol, degen_sol=gains) g, v = om.get_gains_and_vis_from_sol(sol_rd) meanSqAmplitude = np.mean([np.abs(g[key1] * g[key2]) for key1 in g.keys() for key2 in g.keys() if key1[1] == 'x' and key2[1] == 'x' and key1[0] != key2[0]], axis=0) degenMeanSqAmplitude = np.mean([np.abs(gains[key1] * gains[key2]) for key1 in g.keys() for key2 in g.keys() if key1[1] == 'x' and key2[1] == 'x' and key1[0] != key2[0]], axis=0) np.testing.assert_almost_equal(meanSqAmplitude, degenMeanSqAmplitude, 10) #np.testing.assert_almost_equal(np.mean(np.angle(gainSols), axis=0), 0, 10) for key, val in sol_rd.items(): if len(key) == 2: np.testing.assert_almost_equal(val, gains[key], 10) if len(key) == 3: np.testing.assert_almost_equal(val, true_vis[key], 10) rc.pol_mode = 'unrecognized_pol_mode' with self.assertRaises(ValueError): sol_rd = rc.remove_degen(antpos, sol) ''' if __name__ == '__main__': unittest.main()
44.850174
130
0.556868
1,938
12,872
3.575851
0.114551
0.012121
0.054113
0.072727
0.75974
0.748196
0.731025
0.717027
0.713709
0.699423
0
0.037605
0.281075
12,872
286
131
45.006993
0.71126
0.081184
0
0.744318
0
0
0.009454
0
0
0
0
0
0.113636
1
0.051136
false
0
0.056818
0
0.125
0.011364
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
c0d16240c73e0424fa9b7307485b93f72168d941
2,474
py
Python
tests/functions/energies/test_anisotropy_energy.py
jdalzatec/llg
c0acd728d29a9a821ebadc4f1e17e0327d7e238c
[ "MIT" ]
4
2019-09-02T19:18:55.000Z
2021-05-05T15:04:54.000Z
tests/functions/energies/test_anisotropy_energy.py
lufvelasquezgo/llg
c0acd728d29a9a821ebadc4f1e17e0327d7e238c
[ "MIT" ]
116
2020-02-09T05:19:52.000Z
2022-03-27T18:47:17.000Z
tests/functions/energies/test_anisotropy_energy.py
lufvelasquezgo/llg
c0acd728d29a9a821ebadc4f1e17e0327d7e238c
[ "MIT" ]
null
null
null
from llg.functions import energy import pytest import numpy def compute_anisotropy_energy(num_sites, state, anisotropy_constant, anisotropy_vector): total = 0 for i in range(num_sites): total -= anisotropy_constant[i] * numpy.dot(state[i], anisotropy_vector[i]) ** 2 return total @pytest.mark.repeat(10) def test_anisotropy_energy_null_anisotropy_constant( random_state_spins, build_sample, random_anisotropy_vector ): num_sites, _, _, _ = build_sample anisotropy_constant = numpy.zeros(shape=num_sites) expected = compute_anisotropy_energy( num_sites, random_state_spins, anisotropy_constant, random_anisotropy_vector ) total = energy.compute_anisotropy_energy( random_state_spins, anisotropy_constant, random_anisotropy_vector ) assert numpy.allclose(expected, total) @pytest.mark.repeat(10) def test_anisotropy_energy_null_anisotropy_vector( random_state_spins, build_sample, random_anisotropy_constant ): num_sites, _, _, _ = build_sample anisotropy_vector = numpy.zeros(shape=(num_sites, 3)) expected = compute_anisotropy_energy( num_sites, random_state_spins, random_anisotropy_constant, anisotropy_vector ) total = energy.compute_anisotropy_energy( random_state_spins, random_anisotropy_constant, anisotropy_vector ) assert numpy.allclose(expected, total) @pytest.mark.repeat(10) def test_anisotropy_energy_random_anisotropy_constant( random_state_spins, build_sample, random_anisotropy_constant ): num_sites, _, _, _ = build_sample anisotropy_vector = numpy.ones(shape=(num_sites, 3)) expected = compute_anisotropy_energy( num_sites, random_state_spins, random_anisotropy_constant, anisotropy_vector ) total = energy.compute_anisotropy_energy( random_state_spins, random_anisotropy_constant, anisotropy_vector ) assert numpy.allclose(expected, total) @pytest.mark.repeat(10) def test_anisotropy_energy_random_anisotropy_vector( random_state_spins, build_sample, random_anisotropy_vector ): num_sites, _, _, _ = build_sample anisotropy_constants = numpy.ones(shape=num_sites) expected = compute_anisotropy_energy( num_sites, random_state_spins, anisotropy_constants, random_anisotropy_vector ) total = energy.compute_anisotropy_energy( random_state_spins, anisotropy_constants, random_anisotropy_vector ) assert numpy.allclose(expected, total)
34.361111
88
0.772433
292
2,474
6.078767
0.140411
0.144225
0.108169
0.073239
0.910986
0.855775
0.855775
0.855775
0.802817
0.787042
0
0.005761
0.158044
2,474
71
89
34.84507
0.846375
0
0
0.533333
0
0
0
0
0
0
0
0
0.066667
1
0.083333
false
0
0.05
0
0.15
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
c0d7042f1b706aab286fe0f597d5311228b117a9
298
py
Python
sentence_transformers/losses/__init__.py
coastalcph/sentence-transformers-for-analogies
e05e73d59c8f5840de8075e0e8c09a7c309fc3a2
[ "Apache-2.0" ]
2
2021-11-01T14:40:19.000Z
2021-11-01T14:57:29.000Z
sentence_transformers/losses/__init__.py
coastalcph/sentence-transformers-for-analogies
e05e73d59c8f5840de8075e0e8c09a7c309fc3a2
[ "Apache-2.0" ]
1
2021-11-19T15:37:15.000Z
2022-02-24T14:11:40.000Z
sentence_transformers/losses/__init__.py
coastalcph/sentence-transformers-for-analogies
e05e73d59c8f5840de8075e0e8c09a7c309fc3a2
[ "Apache-2.0" ]
null
null
null
from .CosineSimilarityLoss import * from .SoftmaxLoss import * from .BatchHardTripletLoss import * from .MultipleNegativesRankingLoss import * from .TripletLoss import * from .MSELoss import * from .AnalogyMSELoss import * from .AnalogyBatchHardTripletLoss import * from .AnalogyCosineLoss import *
33.111111
43
0.822148
27
298
9.074074
0.407407
0.326531
0
0
0
0
0
0
0
0
0
0
0.11745
298
9
44
33.111111
0.931559
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
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
6
2396c51005ef790157514cc8c9dfb46cb469f682
35
py
Python
pete/runner/__init__.py
ColCarroll/pete
066bc5c6e5706bc215038f835202d8fb5162033f
[ "MIT" ]
1
2020-10-28T03:39:56.000Z
2020-10-28T03:39:56.000Z
pete/runner/__init__.py
ColCarroll/pete
066bc5c6e5706bc215038f835202d8fb5162033f
[ "MIT" ]
2
2016-07-10T17:09:05.000Z
2021-04-20T17:58:12.000Z
pete/runner/__init__.py
ColCarroll/pete
066bc5c6e5706bc215038f835202d8fb5162033f
[ "MIT" ]
1
2016-08-15T13:33:15.000Z
2016-08-15T13:33:15.000Z
from .runner import Runner # noqa
17.5
34
0.742857
5
35
5.2
0.8
0
0
0
0
0
0
0
0
0
0
0
0.2
35
1
35
35
0.928571
0.114286
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
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
6
23b67147ab51bc41a447856f243cede88eba59df
112
py
Python
wallhaven/api/__init__.py
lucasshiva/wallhaven
444a04d3e574579b08cf1bc0fa7879b41621d916
[ "MIT" ]
5
2020-04-24T12:14:02.000Z
2021-06-21T15:29:37.000Z
wallhaven/api/__init__.py
lucasshiva/wallhaven
444a04d3e574579b08cf1bc0fa7879b41621d916
[ "MIT" ]
null
null
null
wallhaven/api/__init__.py
lucasshiva/wallhaven
444a04d3e574579b08cf1bc0fa7879b41621d916
[ "MIT" ]
2
2020-11-21T20:56:07.000Z
2021-06-12T14:03:07.000Z
# flake8: noqa from wallhaven.api.endpoints import API_ENDPOINTS from wallhaven.api.wallhaven import Wallhaven
22.4
49
0.839286
15
112
6.2
0.466667
0.27957
0.344086
0
0
0
0
0
0
0
0
0.01
0.107143
112
4
50
28
0.92
0.107143
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
0
0
0
6
23f5c05e0ebd27bf1be93d08b4f5525a594e55ac
2,641
py
Python
src/ctc/toolbox/twap_utils/twap_data_sources.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
94
2022-02-15T19:34:49.000Z
2022-03-26T19:26:22.000Z
src/ctc/toolbox/twap_utils/twap_data_sources.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-03-03T02:58:47.000Z
2022-03-11T18:41:05.000Z
src/ctc/toolbox/twap_utils/twap_data_sources.py
fei-protocol/checkthechain
ec838f3d0d44af228f45394d9ba8d8eb7f677520
[ "MIT" ]
7
2022-02-15T17:53:07.000Z
2022-03-17T19:14:17.000Z
from __future__ import annotations import typing from ctc import spec from . import twap_spec async def async_get_chainlink_data( data_source: twap_spec.DataSource, start_block: typing.Optional[spec.BlockNumberReference] = None, end_block: typing.Optional[spec.BlockNumberReference] = None, provider: spec.ProviderSpec = None, ) -> spec.Series: from ctc.protocols import chainlink_utils feed = data_source.get('feed') composite_feed = data_source.get('composite_feed') invert = data_source.get('invert') if invert is None: invert = False normalize = data_source.get('normalize') if normalize is None: normalize = False if feed is not None: return await chainlink_utils.async_get_feed_data( feed=feed, invert=invert, normalize=normalize, start_block=start_block, end_block=end_block, interpolate=True, fields='answer', provider=provider, ) elif composite_feed is not None: return await chainlink_utils.async_get_composite_feed_data( composite_feed=composite_feed, invert=invert, start_block=start_block, end_block=end_block, provider=provider, ) else: raise Exception('must specify feed or composite_feed') # async def async_get_uniswap_v2_data( # data_source: twap_spec.DataSource, # start_block: typing.Optional[spec.BlockNumberReference] = None, # end_block: typing.Optional[spec.BlockNumberReference] = None, # provider: spec.ProviderSpec = None, # ) -> spec.Series: # from ctc.protocols import uniswap_v2_utils # feed = data_source.get('feed') # composite_feed = data_source.get('composite_feed') # invert = data_source.get('invert') # normalize = data_source.get('normalize') # if feed is not None: # return await uniswap_v2_utils.async_get_feed_data( # feed=feed, # invert=invert, # normalize=normalize, # start_block=start_block, # end_block=end_block, # interpolate=True, # provider=provider, # ) # elif composite_feed is not None: # return await uniswap_v2_utils.async_get_composite_feed_data( # composite_feed=composite_feed, # invert=invert, # normalize=normalize, # start_block=start_block, # end_block=end_block, # provider=provider, # ) # else: # raise Exception('must specify feed or composite_feed')
30.709302
70
0.638773
294
2,641
5.469388
0.166667
0.113184
0.064677
0.057214
0.870647
0.870647
0.830846
0.828358
0.828358
0.828358
0
0.002096
0.277546
2,641
85
71
31.070588
0.840671
0.450208
0
0.2
0
0
0.052186
0
0
0
0
0
0
1
0
false
0
0.125
0
0.175
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
f1d5114d561f8656216b6c66641f6d28da8c2e96
2,373
py
Python
tests/test_network_patch_api.py
vaporyproject/pytest-asyncio-network-simulator
7a7ee136c8e47cde751c1a5af9739b1099810608
[ "MIT" ]
4
2019-06-05T23:53:04.000Z
2021-11-04T14:24:21.000Z
tests/test_network_patch_api.py
vaporyproject/pytest-asyncio-network-simulator
7a7ee136c8e47cde751c1a5af9739b1099810608
[ "MIT" ]
5
2018-07-20T20:34:04.000Z
2019-04-26T23:02:40.000Z
tests/test_network_patch_api.py
vaporyproject/pytest-asyncio-network-simulator
7a7ee136c8e47cde751c1a5af9739b1099810608
[ "MIT" ]
4
2018-08-23T07:43:12.000Z
2020-10-01T03:00:27.000Z
import asyncio import pytest from pytest_asyncio_network_simulator.network import ( Network, ) class sentinal_a: pass class sentinal_b: pass @pytest.fixture(autouse=True) def _pre_patch(monkeypatch): monkeypatch.setattr(asyncio, 'start_server', sentinal_a) monkeypatch.setattr(asyncio, 'open_connection', sentinal_b) def test_network_patch_asyncio_context_manager_api(): network = Network('test', None, 'localhost') assert asyncio.start_server == sentinal_a assert asyncio.open_connection == sentinal_b with network.patch_asyncio(): assert asyncio.start_server == network.start_server assert asyncio.open_connection == network.open_connection assert asyncio.start_server == sentinal_a assert asyncio.open_connection == sentinal_b def test_network_patch_asyncio_context_manager_api_with_error(): network = Network('test', None, 'localhost') assert asyncio.start_server == sentinal_a assert asyncio.open_connection == sentinal_b with pytest.raises(AssertionError): with network.patch_asyncio(): assert asyncio.start_server == network.start_server assert asyncio.open_connection == network.open_connection raise AssertionError('failed') assert asyncio.start_server == sentinal_a assert asyncio.open_connection == sentinal_b def test_explicit_patching(): network = Network('test', None, 'localhost') assert asyncio.start_server == sentinal_a assert asyncio.open_connection == sentinal_b network.patch_asyncio() assert asyncio.start_server == network.start_server assert asyncio.open_connection == network.open_connection # assert we can idempotently call this multiple times network.patch_asyncio() assert asyncio.start_server == network.start_server assert asyncio.open_connection == network.open_connection network.unpatch_asynio() assert asyncio.start_server == sentinal_a assert asyncio.open_connection == sentinal_b with pytest.raises(RuntimeError): # should raise now that it has been unpatched. network.unpatch_asynio() def test_cannot_unpatch_if_never_patched(): network = Network('test', None, 'localhost') with pytest.raises(RuntimeError): # should raise now that it has been unpatched. network.unpatch_asynio()
27.275862
69
0.738727
281
2,373
5.957295
0.209964
0.155317
0.11828
0.143369
0.789725
0.755078
0.755078
0.755078
0.755078
0.755078
0
0
0.182048
2,373
86
70
27.593023
0.862442
0.059418
0
0.673077
0
0
0.038151
0
0
0
0
0
0.423077
1
0.096154
false
0.038462
0.057692
0
0.192308
0
0
0
0
null
0
0
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
1
0
0
0
0
0
0
0
0
0
6
f1deb642a8987ae4cb18087b9fe8b023c2ecc7a6
210
py
Python
api/handlers/google.py
LostLuma/repo-import-test
45273fc3543d21366ed3cc5007dc5680b1e3e546
[ "MIT" ]
1
2020-01-27T17:42:30.000Z
2020-01-27T17:42:30.000Z
api/handlers/google.py
LostLuma/repo-import-test
45273fc3543d21366ed3cc5007dc5680b1e3e546
[ "MIT" ]
59
2021-11-17T08:21:59.000Z
2022-03-29T08:29:55.000Z
api/handlers/google.py
SpoopySite/SpoopySite
da68e454eee2a242e3df2ae8ef31bf1e50da571b
[ "MIT" ]
3
2020-01-26T23:19:24.000Z
2021-09-25T07:07:59.000Z
import urllib.parse from urllib.parse import ParseResult def google(parsed: ParseResult): if "url" in urllib.parse.parse_qs(parsed.query): return urllib.parse.parse_qs(parsed.query).get("url")[0]
26.25
64
0.738095
31
210
4.935484
0.516129
0.287582
0.20915
0.235294
0.379085
0.379085
0
0
0
0
0
0.005525
0.138095
210
7
65
30
0.839779
0
0
0
0
0
0.028571
0
0
0
0
0
0
1
0.2
false
0
0.4
0
0.8
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
0
0
1
0
1
0
0
6
9e4679793090dba80590974ea169a6b1458e6f70
102
py
Python
ambra_sdk/service/entrypoints/npi.py
dyens/sdk-python
24bf05268af2832c70120b84fd53bf44862cffec
[ "Apache-2.0" ]
null
null
null
ambra_sdk/service/entrypoints/npi.py
dyens/sdk-python
24bf05268af2832c70120b84fd53bf44862cffec
[ "Apache-2.0" ]
null
null
null
ambra_sdk/service/entrypoints/npi.py
dyens/sdk-python
24bf05268af2832c70120b84fd53bf44862cffec
[ "Apache-2.0" ]
null
null
null
from ambra_sdk.service.entrypoints.generated.npi import Npi as GNpi class Npi(GNpi): """Npi."""
17
67
0.715686
15
102
4.8
0.733333
0
0
0
0
0
0
0
0
0
0
0
0.147059
102
5
68
20.4
0.827586
0.039216
0
0
1
0
0
0
0
0
0
0
0
1
0
true
0
0.5
0
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
1
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
9e6f34ed2e2acb79719987855982f7a1fc4d43a1
83
py
Python
01-basics/app-strings-esc.py
vitoOmbero/python-notes
062c05c216d8a59678868d62dd5aacea6249e0b2
[ "Unlicense" ]
null
null
null
01-basics/app-strings-esc.py
vitoOmbero/python-notes
062c05c216d8a59678868d62dd5aacea6249e0b2
[ "Unlicense" ]
null
null
null
01-basics/app-strings-esc.py
vitoOmbero/python-notes
062c05c216d8a59678868d62dd5aacea6249e0b2
[ "Unlicense" ]
null
null
null
msg = 'Python "New string"' print(msg) msg2 = "Python \"New string\"" print(msg2)
13.833333
30
0.650602
12
83
4.5
0.5
0.333333
0.555556
0.740741
0
0
0
0
0
0
0
0.028571
0.156627
83
5
31
16.6
0.742857
0
0
0
0
0
0.325301
0
0
0
0
0
0
1
0
false
0
0
0
0
0.5
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
6
9eb1161de0edaef257758a92b4c4827735532701
78
py
Python
cfscan/__init__.py
cloudhound-io/cftest
d26eb06ea274b20a91f121d726c0696d5c5fe910
[ "BSD-2-Clause" ]
5
2018-02-26T21:24:59.000Z
2018-03-07T19:49:50.000Z
cfscan/__init__.py
cloudhound-io/cftest
d26eb06ea274b20a91f121d726c0696d5c5fe910
[ "BSD-2-Clause" ]
null
null
null
cfscan/__init__.py
cloudhound-io/cftest
d26eb06ea274b20a91f121d726c0696d5c5fe910
[ "BSD-2-Clause" ]
1
2020-10-29T21:22:03.000Z
2020-10-29T21:22:03.000Z
from scanner import Scanner, test, PASS, FAIL from cfscanner import CFScanner
26
45
0.820513
11
78
5.818182
0.636364
0
0
0
0
0
0
0
0
0
0
0
0.141026
78
2
46
39
0.955224
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
1
0
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
0
1
1
1
0
1
0
0
6
7b467a336099359bcd58b14e903a9a3f9aeca01e
46
py
Python
src/cho_util/math/__init__.py
yycho0108/cho-util
331efc7aac8cddfb4258620b80cb7fc5f0688d1f
[ "MIT" ]
null
null
null
src/cho_util/math/__init__.py
yycho0108/cho-util
331efc7aac8cddfb4258620b80cb7fc5f0688d1f
[ "MIT" ]
null
null
null
src/cho_util/math/__init__.py
yycho0108/cho-util
331efc7aac8cddfb4258620b80cb7fc5f0688d1f
[ "MIT" ]
null
null
null
from .common import * from . import transform
15.333333
23
0.76087
6
46
5.833333
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.173913
46
2
24
23
0.921053
0
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
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
6
7b634839466ca4a147780f7a1bd356ef63e14374
25,870
py
Python
code/prolate_ellipsoid.py
pinga-lab/magnetic-ellipsoid
2907042175d1a4b4b9864408671ddcfd4097dab4
[ "BSD-3-Clause" ]
14
2017-03-20T17:58:01.000Z
2021-06-30T13:18:15.000Z
code/prolate_ellipsoid.py
pinga-lab/magnetic-ellipsoid
2907042175d1a4b4b9864408671ddcfd4097dab4
[ "BSD-3-Clause" ]
4
2017-03-20T20:52:46.000Z
2017-05-11T20:08:39.000Z
code/prolate_ellipsoid.py
pinga-lab/magnetic-ellipsoid
2907042175d1a4b4b9864408671ddcfd4097dab4
[ "BSD-3-Clause" ]
6
2018-01-18T14:17:52.000Z
2021-04-22T06:33:40.000Z
r""" The potential fields of a homogeneous prolate ellipsoid. """ from __future__ import division, absolute_import import numpy as np from fatiando.constants import CM, T2NT from fatiando import utils def tf(xp, yp, zp, ellipsoids, F, inc, dec, demag=True, pmag=None): r""" The total-field anomaly produced by prolate ellipsoids. .. math:: \Delta T = |\mathbf{T}| - |\mathbf{F}|, where :math:`\mathbf{T}` is the measured field and :math:`\mathbf{F}` is the local-geomagnetic field. The anomaly of a homogeneous ellipsoid can be calculated as: .. math:: \Delta T \approx \hat{\mathbf{F}}\cdot\mathbf{B}. where :math:`\mathbf{B}` is the magnetic induction produced by the ellipsoid. This code follows the approach presented by Emerson et al. (1985). The coordinate system of the input parameters is x -> North, y -> East and z -> Down. Input units should be SI. Output is in nT. Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the anomaly will be calculated. * ellipsoids : list of :class:`mesher.ProlateEllipsoid` The ellipsoids. Ellipsoids must have the physical properties ``'principal susceptibilities'`` and ``'susceptibility angles'`` as prerequisite to calculate the self-demagnetization. Ellipsoids that are ``None`` will be ignored. * F, inc, dec : floats The intensity (in nT), inclination and declination (in degrees) of the local-geomagnetic field. * demag : boolean If True, will include the self-demagnetization. * pmag : [mx, my, mz] or None A magnetization vector. If not None, will use this value instead of calculating the magnetization of the ellipsoid. Use this, e.g., for sensitivity matrix building. Returns: * tf : array The total-field anomaly References: Emerson, D. W., Clark, D., and Saul, S.: Magnetic exploration models incorporating remanence, demagnetization and anisotropy: HP 41C handheld computer algorithms, Exploration Geophysics, 16, 1-122, 1985. """ fx, fy, fz = utils.dircos(inc, dec) Bx = bx(xp, yp, zp, ellipsoids, F, inc, dec, demag, pmag) By = by(xp, yp, zp, ellipsoids, F, inc, dec, demag, pmag) Bz = bz(xp, yp, zp, ellipsoids, F, inc, dec, demag, pmag) return fx*Bx + fy*By + fz*Bz def bx(xp, yp, zp, ellipsoids, F, inc, dec, demag=True, pmag=None): r""" The x component of the magnetic induction produced by prolate ellipsoids. This code follows the approach presented by Emerson et al. (1985). The coordinate system of the input parameters is x -> North, y -> East and z -> Down. Input units should be SI. Output is in nT. Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the anomaly will be calculated * ellipsoids : list of :class:`mesher.ProlateEllipsoid` The ellipsoids. Ellipsoids must have the physical properties ``'principal susceptibilities'`` and ``'susceptibility angles'`` as prerequisite to calculate the self-demagnetization. Ellipsoids that are ``None`` will be ignored. * F, inc, dec : floats The intensity (in nT), inclination and declination (in degrees) of the local-geomagnetic field. * demag : boolean If True, will include the self-demagnetization. * pmag : [mx, my, mz] or None A magnetization vector. If not None, will use this value instead of the resultant magnetization of the ellipsoids. Use this, e.g., for sensitivity matrix building. Returns: * bx: array The x component of the magnetic induction References: Emerson, D. W., Clark, D., and Saul, S.: Magnetic exploration models incorporating remanence, demagnetization and anisotropy: HP 41C handheld computer algorithms, Exploration Geophysics, 16, 1-122, 1985. """ res = 0 for ellipsoid in ellipsoids: if ellipsoid is None: continue b1 = _bx(xp, yp, zp, ellipsoid, F, inc, dec, demag, pmag) b2 = _by(xp, yp, zp, ellipsoid, F, inc, dec, demag, pmag) b3 = _bz(xp, yp, zp, ellipsoid, F, inc, dec, demag, pmag) res += ellipsoid.transf_matrix[0, 0]*b1 \ + ellipsoid.transf_matrix[0, 1]*b2 \ + ellipsoid.transf_matrix[0, 2]*b3 return res def by(xp, yp, zp, ellipsoids, F, inc, dec, demag=True, pmag=None): r""" The y component of the magnetic induction produced by prolate ellipsoids. This code follows the approach presented by Emerson et al. (1985). The coordinate system of the input parameters is x -> North, y -> East and z -> Down. Input units should be SI. Output is in nT. Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the anomaly will be calculated * ellipsoids : list of :class:`mesher.ProlateEllipsoid` The ellipsoids. Ellipsoids must have the physical properties ``'principal susceptibilities'`` and ``'susceptibility angles'`` as prerequisite to calculate the self-demagnetization. Ellipsoids that are ``None`` will be ignored. * F, inc, dec : floats The intensity (in nT), inclination and declination (in degrees) of the local-geomagnetic field. * demag : boolean If True, will include the self-demagnetization. * pmag : [mx, my, mz] or None A magnetization vector. If not None, will use this value instead of the resultant magnetization of the ellipsoids. Use this, e.g., for sensitivity matrix building. Returns: * by: array The y component of the magnetic induction References: Emerson, D. W., Clark, D., and Saul, S.: Magnetic exploration models incorporating remanence, demagnetization and anisotropy: HP 41C handheld computer algorithms, Exploration Geophysics, 16, 1-122, 1985. """ res = 0 for ellipsoid in ellipsoids: if ellipsoid is None: continue b1 = _bx(xp, yp, zp, ellipsoid, F, inc, dec, demag, pmag) b2 = _by(xp, yp, zp, ellipsoid, F, inc, dec, demag, pmag) b3 = _bz(xp, yp, zp, ellipsoid, F, inc, dec, demag, pmag) res += ellipsoid.transf_matrix[1, 0]*b1 \ + ellipsoid.transf_matrix[1, 1]*b2 \ + ellipsoid.transf_matrix[1, 2]*b3 return res def bz(xp, yp, zp, ellipsoids, F, inc, dec, demag=True, pmag=None): r""" The z component of the magnetic induction produced by prolate ellipsoids. This code follows the approach presented by Emerson et al. (1985). The coordinate system of the input parameters is x -> North, y -> East and z -> Down. Input units should be SI. Output is in nT. Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the anomaly will be calculated * ellipsoids : list of :class:`mesher.ProlateEllipsoid` The ellipsoids. Ellipsoids must have the physical properties ``'principal susceptibilities'`` and ``'susceptibility angles'`` as prerequisite to calculate the self-demagnetization. Ellipsoids that are ``None`` will be ignored. * F, inc, dec : floats The intensity (in nT), inclination and declination (in degrees) of the local-geomagnetic field. * demag : boolean If True, will include the self-demagnetization. * pmag : [mx, my, mz] or None A magnetization vector. If not None, will use this value instead of the resultant magnetization of the ellipsoids. Use this, e.g., for sensitivity matrix building. Returns: * bz: array The z component of the magnetic induction References: Emerson, D. W., Clark, D., and Saul, S.: Magnetic exploration models incorporating remanence, demagnetization and anisotropy: HP 41C handheld computer algorithms, Exploration Geophysics, 16, 1-122, 1985. """ res = 0 for ellipsoid in ellipsoids: if ellipsoid is None: continue b1 = _bx(xp, yp, zp, ellipsoid, F, inc, dec, demag, pmag) b2 = _by(xp, yp, zp, ellipsoid, F, inc, dec, demag, pmag) b3 = _bz(xp, yp, zp, ellipsoid, F, inc, dec, demag, pmag) res += ellipsoid.transf_matrix[2, 0]*b1 \ + ellipsoid.transf_matrix[2, 1]*b2 \ + ellipsoid.transf_matrix[2, 2]*b3 return res def _bx(xp, yp, zp, ellipsoid, F, inc, dec, demag=True, pmag=None): r""" The x component of the magnetic induction produced by prolate ellipsoids in the ellipsoid system. This code follows the approach presented by Emerson et al. (1985). The coordinate system of the input parameters is x -> semi-axis a, y -> semi-axis b and z -> semi-axis c. Input units should be SI. Output is in nT. Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the anomaly will be calculated * ellipsoid : element of :class:`mesher.ProlateEllipsoid`. The ellipsoid. It must have the physical properties ``'principal susceptibilities'`` and ``'susceptibility angles'`` as prerequisite to calculate the self-demagnetization. If the ellipsoid is ``None``, it will be ignored. * F, inc, dec : floats The intensity (in nT), inclination and declination (in degrees) of the local-geomagnetic field. * demag : boolean If True, include the self-demagnetization. * pmag : [mx, my, mz] or None A magnetization vector. If not None, will use this value instead of the resultant magnetization of the ellipsoid. Use this, e.g., for sensitivity matrix building. Returns: * bx : array The x component of the magnetic induction in the ellipsoid system. References: Emerson, D. W., Clark, D., and Saul, S.: Magnetic exploration models incorporating remanence, demagnetization and anisotropy: HP 41C handheld computer algorithms, Exploration Geophysics, 16, 1-122, 1985. """ if pmag is None: mx, my, mz = magnetization(ellipsoid, F, inc, dec, demag) else: assert demag is not True, 'the use of a forced magnetization \ impedes the computation of self-demagnetization' mx, my, mz = pmag # Transform the magnetization to the local coordinate system V = ellipsoid.transf_matrix mx_local = V[0, 0]*mx + V[1, 0]*my + V[2, 0]*mz my_local = V[0, 1]*mx + V[1, 1]*my + V[2, 1]*mz mz_local = V[0, 2]*mx + V[1, 2]*my + V[2, 2]*mz x1, x2, x3 = x1x2x3(xp, yp, zp, ellipsoid) lamb = _lamb(x1, x2, x3, ellipsoid) denominator = _dlamb_aux(x1, x2, x3, ellipsoid, lamb) dlamb = _dlamb(x1, x2, x3, ellipsoid, lamb, denominator, deriv='x') h1 = _hv(ellipsoid, lamb, v='x') h2 = _hv(ellipsoid, lamb, v='y') h3 = _hv(ellipsoid, lamb, v='z') g = _gv(ellipsoid, lamb, v='x') res = dlamb*(h1*x1*mx_local + h2*x2*my_local + h3*x3*mz_local) res += g*mx_local a = ellipsoid.large_axis b = ellipsoid.small_axis volume = 4*np.pi*a*b*b/3 res *= -1.5*volume*CM*T2NT return res def _by(xp, yp, zp, ellipsoid, F, inc, dec, demag=True, pmag=None): r""" The y component of the magnetic induction produced by prolate ellipsoids in the ellipsoid system. This code follows the approach presented by Emerson et al. (1985). The coordinate system of the input parameters is x -> semi-axis a, y -> semi-axis b and z -> semi-axis c. Input units should be SI. Output is in nT. Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the anomaly will be calculated * ellipsoid : element of :class:`mesher.ProlateEllipsoid` The ellipsoid. It must have the physical properties ``'principal susceptibilities'`` and ``'susceptibility angles'`` as prerequisite to calculate the self-demagnetization. If the ellipsoid is ``None``, it will be ignored. * F, inc, dec : floats The intensity (in nT), inclination and declination (in degrees) of the local-geomagnetic field. * demag : boolean If True, include the self-demagnetization. * pmag : [mx, my, mz] or None A magnetization vector. If not None, will use this value instead of the resultant magnetization of the ellipsoid. Use this, e.g., for sensitivity matrix building. Returns: * by : array The y component of the magnetic induction in the ellipsoid system. References: Emerson, D. W., Clark, D., and Saul, S.: Magnetic exploration models incorporating remanence, demagnetization and anisotropy: HP 41C handheld computer algorithms, Exploration Geophysics, 16, 1-122, 1985. """ if pmag is None: mx, my, mz = magnetization(ellipsoid, F, inc, dec, demag) else: assert demag is not True, 'the use of a forced magnetization \ impedes the computation of self-demagnetization' mx, my, mz = pmag # Transform the magnetization to the local coordinate system V = ellipsoid.transf_matrix mx_local = V[0, 0]*mx + V[1, 0]*my + V[2, 0]*mz my_local = V[0, 1]*mx + V[1, 1]*my + V[2, 1]*mz mz_local = V[0, 2]*mx + V[1, 2]*my + V[2, 2]*mz x1, x2, x3 = x1x2x3(xp, yp, zp, ellipsoid) lamb = _lamb(x1, x2, x3, ellipsoid) denominator = _dlamb_aux(x1, x2, x3, ellipsoid, lamb) dlamb = _dlamb(x1, x2, x3, ellipsoid, lamb, denominator, deriv='y') h1 = _hv(ellipsoid, lamb, v='x') h2 = _hv(ellipsoid, lamb, v='y') h3 = _hv(ellipsoid, lamb, v='z') g = _gv(ellipsoid, lamb, v='y') res = dlamb*(h1*x1*mx_local + h2*x2*my_local + h3*x3*mz_local) res += g*my_local a = ellipsoid.large_axis b = ellipsoid.small_axis volume = 4*np.pi*a*b*b/3 res *= -1.5*volume*CM*T2NT return res def _bz(xp, yp, zp, ellipsoid, F, inc, dec, demag=True, pmag=None): r""" The z component of the magnetic induction produced by prolate ellipsoids in the ellipsoid system. This code follows the approach presented by Emerson et al. (1985). The coordinate system of the input parameters is x -> semi-axis a, y -> semi-axis b and z -> semi-axis c. Input units should be SI. Output is in nT. Parameters: * xp, yp, zp : arrays The x, y, and z coordinates where the anomaly will be calculated * ellipsoid : element of :class:`mesher.ProlateEllipsoid` The ellipsoid. It must have the physical properties ``'principal susceptibilities'`` and ``'susceptibility angles'`` as prerequisite to calculate the self-demagnetization. If the ellipsoid is ``None``, it will be ignored. * F, inc, dec : floats The intensity (in nT), inclination and declination (in degrees) of the local-geomagnetic field. * demag : boolean If True, will include the self-demagnetization. * pmag : [mx, my, mz] or None A magnetization vector. If not None, will use this value instead of the resultant magnetization of the ellipsoid. Use this, e.g., for sensitivity matrix building. Returns: * bz : array The z component of the magnetic induction in the ellipsoid system. References: Emerson, D. W., Clark, D., and Saul, S.: Magnetic exploration models incorporating remanence, demagnetization and anisotropy: HP 41C handheld computer algorithms, Exploration Geophysics, 16, 1-122, 1985. """ if pmag is None: mx, my, mz = magnetization(ellipsoid, F, inc, dec, demag) else: assert demag is not True, 'the use of a forced magnetization \ impedes the computation of self-demagnetization' mx, my, mz = pmag # Transform the magnetization to the local coordinate system V = ellipsoid.transf_matrix mx_local = V[0, 0]*mx + V[1, 0]*my + V[2, 0]*mz my_local = V[0, 1]*mx + V[1, 1]*my + V[2, 1]*mz mz_local = V[0, 2]*mx + V[1, 2]*my + V[2, 2]*mz x1, x2, x3 = x1x2x3(xp, yp, zp, ellipsoid) lamb = _lamb(x1, x2, x3, ellipsoid) denominator = _dlamb_aux(x1, x2, x3, ellipsoid, lamb) dlamb = _dlamb(x1, x2, x3, ellipsoid, lamb, denominator, deriv='z') h1 = _hv(ellipsoid, lamb, v='x') h2 = _hv(ellipsoid, lamb, v='y') h3 = _hv(ellipsoid, lamb, v='z') g = _gv(ellipsoid, lamb, v='z') res = dlamb*(h1*x1*mx_local + h2*x2*my_local + h3*x3*mz_local) res += g*mz_local a = ellipsoid.large_axis b = ellipsoid.small_axis volume = 4*np.pi*a*b*b/3 res *= -1.5*volume*CM*T2NT return res def x1x2x3(xp, yp, zp, ellipsoid): ''' Calculates the x, y and z coordinates referred to the ellipsoid coordinate system. Parameters: * xp, yp, zp: numpy arrays 1D x, y and z coordinates of points referred to the main system (in meters). * ellipsoid : element of :class:`mesher.ProlateEllipsoid`. Returns: * x1, x2, x3: numpy arrays 1D x, y and z coordinates of points referred to the ellipsoid system (in meters). ''' assert xp.size == yp.size == zp.size, \ 'xp, yp and zp must have the same size' dx = xp - ellipsoid.x dy = yp - ellipsoid.y dz = zp - ellipsoid.z x1 = ellipsoid.transf_matrix[0, 0]*dx + \ ellipsoid.transf_matrix[1, 0]*dy + \ ellipsoid.transf_matrix[2, 0]*dz x2 = ellipsoid.transf_matrix[0, 1]*dx + \ ellipsoid.transf_matrix[1, 1]*dy + \ ellipsoid.transf_matrix[2, 1]*dz x3 = ellipsoid.transf_matrix[0, 2]*dx + \ ellipsoid.transf_matrix[1, 2]*dy + \ ellipsoid.transf_matrix[2, 2]*dz return x1, x2, x3 def _lamb(x1, x2, x3, ellipsoid): ''' Calculates the parameter lambda for a prolate ellipsoid. The parameter lambda is defined as the largest root of the quadratic equation defining the surface of the prolate ellipsoid. Parameters: * x1, x2, x3: numpy arrays 1D x, y and z coordinates of points referred to the ellipsoid system (in meters). * ellipsoid : element of :class:`mesher.ProlateEllipsoid`. Returns: * lamb: numpy array 1D Parameter lambda for each point in the ellipsoid system. ''' a = ellipsoid.large_axis b = ellipsoid.small_axis # auxiliary variables (http://mathworld.wolfram.com/QuadraticFormula.html) p1 = a*a + b*b - x1*x1 - x2*x2 - x3*x3 p0 = a*a*b*b - b*b*x1*x1 - a*a*(x2*x2 + x3*x3) delta = np.sqrt(p1*p1 - 4*p0) lamb = (-p1 + delta)/2. return lamb def _dlamb(x1, x2, x3, ellipsoid, lamb, denominator, deriv='x'): ''' Calculates the spatial derivative of the parameter lambda with respect to the coordinates x, y or z in the ellipsoid system. Parameters: * x1, x2, x3: numpy arrays 1D x, y and z coordinates of points referred to the ellipsoid system (in meters). * ellipsoid : element of :class:`mesher.ProlateEllipsoid`. * lamb: numpy array 1D Parameter lambda for each point in the ellipsoid system. * denominator: numpy array 1D Denominator of the expression used to calculate the spatial derivative of the parameter lambda. * deriv: string Defines the coordinate with respect to which the derivative will be calculated. It must be 'x', 'y' or 'z'. Returns: * dlamb_dv: numpy array 1D Derivative of lambda with respect to the coordinate v = x, y, z in the ellipsoid system. ''' assert deriv in ['x', 'y', 'z'], 'deriv must represent a coordinate \ x, y or z' assert denominator.size == lamb.size == x1.size == x2.size == x3.size, \ 'x1, x2, x3, lamb and denominator must have the same size' a = ellipsoid.large_axis b = ellipsoid.small_axis if deriv is 'x': dlamb_dv = (2*x1/(a*a + lamb))/denominator if deriv is 'y': dlamb_dv = (2*x2/(b*b + lamb))/denominator if deriv is 'z': dlamb_dv = (2*x3/(b*b + lamb))/denominator return dlamb_dv def _dlamb_aux(x1, x2, x3, ellipsoid, lamb): ''' Calculates an auxiliary variable used to calculate the spatial derivatives of the parameter lambda with respect to the coordinates x, y and z in the ellipsoid system. Parameters: * x1, x2, x3: numpy arrays 1D x, y and z coordinates of points referred to the ellipsoid system (in meters). * ellipsoid : element of :class:`mesher.ProlateEllipsoid`. * lamb: numpy array 1D Parameter lambda for each point in the ellipsoid system. Returns: * aux: numpy array 1D Denominator of the expression used to calculate the spatial derivative of the parameter lambda. ''' a = ellipsoid.large_axis b = ellipsoid.small_axis aux1 = x1/(a*a + lamb) aux2 = x2/(b*b + lamb) aux3 = x3/(b*b + lamb) aux = aux1*aux1 + aux2*aux2 + aux3*aux3 return aux def demag_factors(ellipsoid): ''' Calculates the demagnetizing factors n11 and n22. Parameters: * ellipsoid : element of :class:`mesher.ProlateEllipsoid`. Returns: * n11, n22: floats Demagnetizing factors (in SI) along, respectively, the large and small axes of the prolate ellipsoid. ''' a = ellipsoid.large_axis b = ellipsoid.small_axis m = a/b aux1 = m*m - 1 aux2 = np.sqrt(aux1) n11 = (1/aux1)*((m/aux2)*np.log(m + aux2) - 1) n22 = 0.5*(1 - n11) return n11, n22 def magnetization(ellipsoid, F, inc, dec, demag): ''' Calculates the resultant magnetization corrected from demagnetizing in the main system. Parameters: * ellipsoid: element of :class:`mesher.ProlateEllipsoid`. * F, inc, dec : floats The intensity (in nT), inclination and declination (in degrees) of the local-geomagnetic field. * demag : boolean If True, will include the self-demagnetization. Returns: * resultant_mag: numpy array 1D Resultant magnetization (in A/m) in the main system. ''' # Remanent magnetization if 'remanent magnetization' in ellipsoid.props: intensity = ellipsoid.props['remanent magnetization'][0] inclination = ellipsoid.props['remanent magnetization'][1] declination = ellipsoid.props['remanent magnetization'][2] remanent_mag = utils.ang2vec(intensity, inclination, declination) else: remanent_mag = np.zeros(3) suscep = ellipsoid.susceptibility_tensor # Induced magnetization if suscep is not None: geomag_field = utils.ang2vec(F/(4*np.pi*100), inc, dec) induced_mag = np.dot(suscep, geomag_field) else: induced_mag = np.zeros(3) # Self-demagnetization if demag is True: assert suscep is not None, 'self-demagnetization requires a \ susceptibility tensor' n11, n22 = demag_factors(ellipsoid) coord_transf_matrix = ellipsoid.transf_matrix suscep_tilde = np.dot(np.dot(coord_transf_matrix.T, suscep), coord_transf_matrix) aux = np.linalg.inv(np.identity(3) + np.dot(suscep_tilde, np.diag([n11, n22, n22]))) Lambda = np.dot(np.dot(coord_transf_matrix, aux), coord_transf_matrix.T) # resultant magnetization in the main system resultant_mag = np.dot(Lambda, induced_mag + remanent_mag) else: assert (suscep is not None) or ('remanent magnetization' in ellipsoid.props), 'neglecting \ self-demagnetization requires a susceptibility tensor or a rem\ anent magnetization' # resultant magnetization in the main system resultant_mag = induced_mag + remanent_mag return resultant_mag def _hv(ellipsoid, lamb, v='x'): ''' Calculates an auxiliary variable used to calculate the depolarization tensor outside the ellipsoidal body. Parameters: * ellipsoid : element of :class:`mesher.ProlateEllipsoid`. * lamb: numpy array 1D Parameter lambda for each point in the ellipsoid system. * v: string Defines the coordinate with respect to which the variable hv will be calculated. It must be 'x', 'y' or 'z'. Returns: * hv: numpy array 1D Auxiliary variable. ''' assert v in ['x', 'y', 'z'], "v must be 'x', 'y' or 'z'" a = ellipsoid.large_axis b = ellipsoid.small_axis aux1 = a*a + lamb aux2 = b*b + lamb if v is 'x': hv = -1./(np.sqrt(aux1*aux1*aux1)*aux2) if v is 'y' or 'z': hv = -1./(np.sqrt(aux1)*aux2*aux2) return hv def _gv(ellipsoid, lamb, v='x'): ''' Diagonal term of the depolarization tensor defined outside the ellipsoidal body. Parameters: * ellipsoid : element of :class:`mesher.ProlateEllipsoid`. * lamb: numpy array 1D Parameter lambda for each point in the ellipsoid system. * v: string Defines the coordinate with respect to which the variable gv will be calculated. It must be 'x', 'y' or 'z'. Returns: * gv: numpy array 1D Diagonal term of the depolarization tensor calculated for each lambda. ''' assert v in ['x', 'y', 'z'], "v must be 'x', 'y' or 'z'" a = ellipsoid.large_axis b = ellipsoid.small_axis log = np.log((np.sqrt(a*a-b*b)+np.sqrt(a*a+lamb))/np.sqrt(b*b+lamb)) aux1 = 1./np.sqrt((a*a - b*b)*(a*a - b*b)*(a*a - b*b)) if v is 'x': aux2 = np.sqrt((a*a - b*b)/(a*a + lamb)) gv = 2*aux1*(log - aux2) if v is 'y' or 'z': aux2 = np.sqrt((a*a - b*b)*(a*a + lamb))/(b*b + lamb) gv = aux1*(aux2 - log) return gv
31.781327
78
0.63564
3,644
25,870
4.473655
0.079857
0.015642
0.01141
0.01693
0.834376
0.786591
0.772237
0.755797
0.735922
0.720648
0
0.024863
0.264631
25,870
813
79
31.820418
0.832054
0.557518
0
0.454918
0
0
0.028938
0
0
0
0
0
0.040984
1
0.061475
false
0
0.016393
0
0.139344
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
7b7909e2ee9799a2d86a5c21cf935f2095fac549
32
py
Python
__init__.py
sumankumar0091/gdplot
ed66b2ff2e2dece84761fae80589c90ab80753e5
[ "MIT" ]
null
null
null
__init__.py
sumankumar0091/gdplot
ed66b2ff2e2dece84761fae80589c90ab80753e5
[ "MIT" ]
null
null
null
__init__.py
sumankumar0091/gdplot
ed66b2ff2e2dece84761fae80589c90ab80753e5
[ "MIT" ]
null
null
null
from gdplot import create_chart
16
31
0.875
5
32
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.125
32
1
32
32
0.964286
0
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
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
6
7bc9b92d3e3130aa9e9e43cf548d1e5d8b3212d1
34,094
py
Python
geo_prior/geo_prior/SpatialRelationEncoder.py
gengchenmai/space2vec
a29793336e6a1ebdb497289c286a0b4d5a83079f
[ "Apache-2.0" ]
80
2020-02-15T17:50:38.000Z
2022-03-29T04:17:18.000Z
geo_prior/geo_prior/SpatialRelationEncoder.py
gengchenmai/space2vec
a29793336e6a1ebdb497289c286a0b4d5a83079f
[ "Apache-2.0" ]
1
2020-08-01T01:28:05.000Z
2020-10-23T20:01:06.000Z
geo_prior/geo_prior/SpatialRelationEncoder.py
gengchenmai/space2vec
a29793336e6a1ebdb497289c286a0b4d5a83079f
[ "Apache-2.0" ]
12
2020-03-12T12:09:35.000Z
2021-12-19T08:08:54.000Z
import torch import torch.nn as nn from torch.nn import init import torch.nn.functional as F import numpy as np import math from module import * from data_utils import * """ A Set of position encoder """ def _cal_freq_list(freq_init, frequency_num, max_radius, min_radius): if freq_init == "random": # the frequence we use for each block, alpha in ICLR paper # freq_list shape: (frequency_num) freq_list = np.random.random(size=[frequency_num]) * max_radius elif freq_init == "geometric": # freq_list = [] # for cur_freq in range(frequency_num): # base = 1.0/(np.power(max_radius, cur_freq*1.0/(frequency_num-1))) # freq_list.append(base) # freq_list = np.asarray(freq_list) log_timescale_increment = (math.log(float(max_radius) / float(min_radius)) / (frequency_num*1.0 - 1)) timescales = min_radius * np.exp( np.arange(frequency_num).astype(float) * log_timescale_increment) freq_list = 1.0/timescales return freq_list class GridCellSpatialRelationEncoder(nn.Module): """ Given a list of (deltaX,deltaY), encode them using the position encoding function """ def __init__(self, spa_embed_dim, coord_dim = 2, frequency_num = 16, max_radius = 10000, min_radius = 10, freq_init = "geometric", ffn=None, device = "cuda"): """ Args: spa_embed_dim: the output spatial relation embedding dimention coord_dim: the dimention of space, 2D, 3D, or other frequency_num: the number of different sinusoidal with different frequencies/wavelengths max_radius: the largest context radius this model can handle """ super(GridCellSpatialRelationEncoder, self).__init__() self.spa_embed_dim = spa_embed_dim self.coord_dim = coord_dim self.frequency_num = frequency_num self.freq_init = freq_init self.max_radius = max_radius self.min_radius = min_radius # the frequence we use for each block, alpha in ICLR paper self.cal_freq_list() self.cal_freq_mat() self.input_embed_dim = self.cal_input_dim() self.ffn = ffn self.device = device def cal_elementwise_angle(self, coord, cur_freq): ''' Args: coord: the deltaX or deltaY cur_freq: the frequency ''' return coord/(np.power(self.max_radius, cur_freq*1.0/(self.frequency_num-1))) def cal_coord_embed(self, coords_tuple): embed = [] for coord in coords_tuple: for cur_freq in range(self.frequency_num): embed.append(math.sin(self.cal_elementwise_angle(coord, cur_freq))) embed.append(math.cos(self.cal_elementwise_angle(coord, cur_freq))) # embed: shape (input_embed_dim) return embed def cal_input_dim(self): # compute the dimention of the encoded spatial relation embedding return int(self.coord_dim * self.frequency_num * 2) def cal_freq_list(self): # if self.freq_init == "random": # # the frequence we use for each block, alpha in ICLR paper # # self.freq_list shape: (frequency_num) # self.freq_list = np.random.random(size=[self.frequency_num]) * self.max_radius # elif self.freq_init == "geometric": # self.freq_list = [] # for cur_freq in range(self.frequency_num): # base = 1.0/(np.power(self.max_radius, cur_freq*1.0/(self.frequency_num-1))) # self.freq_list.append(base) # self.freq_list = np.asarray(self.freq_list) self.freq_list = _cal_freq_list(self.freq_init, self.frequency_num, self.max_radius, self.min_radius) def cal_freq_mat(self): # freq_mat shape: (frequency_num, 1) freq_mat = np.expand_dims(self.freq_list, axis = 1) # self.freq_mat shape: (frequency_num, 2) self.freq_mat = np.repeat(freq_mat, 2, axis = 1) def make_input_embeds(self, coords): if type(coords) == np.ndarray: assert self.coord_dim == np.shape(coords)[2] coords = list(coords) elif type(coords) == list: assert self.coord_dim == len(coords[0][0]) else: raise Exception("Unknown coords data type for GridCellSpatialRelationEncoder") # coords_mat: shape (batch_size, num_context_pt, 2) coords_mat = np.asarray(coords).astype(float) batch_size = coords_mat.shape[0] num_context_pt = coords_mat.shape[1] # coords_mat: shape (batch_size, num_context_pt, 2, 1) coords_mat = np.expand_dims(coords_mat, axis = 3) # coords_mat: shape (batch_size, num_context_pt, 2, 1, 1) coords_mat = np.expand_dims(coords_mat, axis = 4) # coords_mat: shape (batch_size, num_context_pt, 2, frequency_num, 1) coords_mat = np.repeat(coords_mat, self.frequency_num, axis = 3) # coords_mat: shape (batch_size, num_context_pt, 2, frequency_num, 2) coords_mat = np.repeat(coords_mat, 2, axis = 4) # spr_embeds: shape (batch_size, num_context_pt, 2, frequency_num, 2) spr_embeds = coords_mat * self.freq_mat # make sinuniod function # sin for 2i, cos for 2i+1 # spr_embeds: (batch_size, num_context_pt, 2*frequency_num*2=input_embed_dim) spr_embeds[:, :, :, :, 0::2] = np.sin(spr_embeds[:, :, :, :, 0::2]) # dim 2i spr_embeds[:, :, :, :, 1::2] = np.cos(spr_embeds[:, :, :, :, 1::2]) # dim 2i+1 # (batch_size, num_context_pt, 2*frequency_num*2) spr_embeds = np.reshape(spr_embeds, (batch_size, num_context_pt, -1)) return spr_embeds def forward(self, coords): """ Given a list of coords (deltaX, deltaY), give their spatial relation embedding Args: coords: a python list with shape (batch_size, num_context_pt, coord_dim) Return: sprenc: Tensor shape (batch_size, num_context_pt, spa_embed_dim) """ spr_embeds = self.make_input_embeds(coords) # # loop over all batches # spr_embeds = [] # for cur_batch in coords: # # loop over N context points # cur_embeds = [] # for coords_tuple in cur_batch: # cur_embeds.append(self.cal_coord_embed(coords_tuple)) # spr_embeds.append(cur_embeds) # spr_embeds: shape (batch_size, num_context_pt, input_embed_dim) spr_embeds = torch.FloatTensor(spr_embeds).to(self.device) # sprenc: shape (batch_size, num_context_pt, spa_embed_dim) # sprenc = torch.einsum("bnd,dk->bnk", (spr_embeds, self.post_mat)) # sprenc = self.f_act(self.dropout(self.post_linear(spr_embeds))) # return sprenc if self.ffn is not None: return self.ffn(spr_embeds) else: return spr_embeds class HexagonGridCellSpatialRelationEncoder(nn.Module): """ Given a list of (deltaX,deltaY), encode them using the position encoding function """ def __init__(self, spa_embed_dim, coord_dim = 2, frequency_num = 16, max_radius = 10000, dropout = 0.5, f_act = "sigmoid", device = "cuda"): """ Args: spa_embed_dim: the output spatial relation embedding dimention coord_dim: the dimention of space, 2D, 3D, or other frequency_num: the number of different sinusoidal with different frequencies/wavelengths max_radius: the largest context radius this model can handle """ super(HexagonGridCellSpatialRelationEncoder, self).__init__() self.frequency_num = frequency_num self.coord_dim = coord_dim self.max_radius = max_radius self.spa_embed_dim = spa_embed_dim self.input_embed_dim = self.cal_input_dim() self.post_linear = nn.Linear(self.input_embed_dim, self.spa_embed_dim) nn.init.xavier_uniform(self.post_linear.weight) self.dropout = nn.Dropout(p=dropout) # self.dropout_ = nn.Dropout(p=dropout) # self.post_mat = nn.Parameter(torch.FloatTensor(self.input_embed_dim, self.spa_embed_dim)) # init.xavier_uniform_(self.post_mat) # self.register_parameter("spa_postmat", self.post_mat) self.f_act = get_activation_function(f_act, "HexagonGridCellSpatialRelationEncoder") self.device = device def cal_elementwise_angle(self, coord, cur_freq): ''' Args: coord: the deltaX or deltaY cur_freq: the frequency ''' return coord/(np.power(self.max_radius, cur_freq*1.0/(self.frequency_num-1))) def cal_coord_embed(self, coords_tuple): embed = [] for coord in coords_tuple: for cur_freq in range(self.frequency_num): embed.append(math.sin(self.cal_elementwise_angle(coord, cur_freq))) embed.append(math.sin(self.cal_elementwise_angle(coord, cur_freq) + math.pi*2.0/3)) embed.append(math.sin(self.cal_elementwise_angle(coord, cur_freq) + math.pi*4.0/3)) # embed: shape (input_embed_dim) return embed def cal_input_dim(self): # compute the dimention of the encoded spatial relation embedding return int(self.coord_dim * self.frequency_num * 3) def forward(self, coords): """ Given a list of coords (deltaX, deltaY), give their spatial relation embedding Args: coords: a python list with shape (batch_size, num_context_pt, coord_dim) Return: sprenc: Tensor shape (batch_size, num_context_pt, spa_embed_dim) """ if type(coords) == np.ndarray: assert self.coord_dim == np.shape(coords)[2] coords = list(coords) elif type(coords) == list: assert self.coord_dim == len(coords[0][0]) else: raise Exception("Unknown coords data type for GridCellSpatialRelationEncoder") # loop over all batches spr_embeds = [] for cur_batch in coords: # loop over N context points cur_embeds = [] for coords_tuple in cur_batch: cur_embeds.append(self.cal_coord_embed(coords_tuple)) spr_embeds.append(cur_embeds) # spr_embeds: shape (batch_size, num_context_pt, input_embed_dim) spr_embeds = torch.FloatTensor(spr_embeds).to(self.device) # sprenc: shape (batch_size, num_context_pt, spa_embed_dim) # sprenc = torch.einsum("bnd,dk->bnk", (spr_embeds, self.post_mat)) sprenc = self.f_act(self.dropout(self.post_linear(spr_embeds))) return sprenc """ The theory based Grid cell spatial relation encoder, See https://openreview.net/forum?id=Syx0Mh05YQ Learning Grid Cells as Vector Representation of Self-Position Coupled with Matrix Representation of Self-Motion """ class TheoryGridCellSpatialRelationEncoder(nn.Module): """ Given a list of (deltaX,deltaY), encode them using the position encoding function """ def __init__(self, spa_embed_dim, coord_dim = 2, frequency_num = 16, max_radius = 10000, min_radius = 1000, freq_init = "geometric", ffn = None, device = "cuda"): """ Args: spa_embed_dim: the output spatial relation embedding dimention coord_dim: the dimention of space, 2D, 3D, or other frequency_num: the number of different sinusoidal with different frequencies/wavelengths max_radius: the largest context radius this model can handle """ super(TheoryGridCellSpatialRelationEncoder, self).__init__() self.frequency_num = frequency_num self.coord_dim = coord_dim self.max_radius = max_radius self.min_radius = min_radius self.spa_embed_dim = spa_embed_dim self.freq_init = freq_init # the frequence we use for each block, alpha in ICLR paper self.cal_freq_list() self.cal_freq_mat() # there unit vectors which is 120 degree apart from each other self.unit_vec1 = np.asarray([1.0, 0.0]) # 0 self.unit_vec2 = np.asarray([-1.0/2.0, math.sqrt(3)/2.0]) # 120 degree self.unit_vec3 = np.asarray([-1.0/2.0, -math.sqrt(3)/2.0]) # 240 degree self.input_embed_dim = self.cal_input_dim() # self.f_act = get_activation_function(f_act, "TheoryGridCellSpatialRelationEncoder") # self.dropout = nn.Dropout(p=dropout) # self.use_post_mat = use_post_mat # if self.use_post_mat: # self.post_linear_1 = nn.Linear(self.input_embed_dim, 64) # nn.init.xavier_uniform(self.post_linear_1.weight) # self.post_linear_2 = nn.Linear(64, self.spa_embed_dim) # nn.init.xavier_uniform(self.post_linear_2.weight) # self.dropout_ = nn.Dropout(p=dropout) # else: # self.post_linear = nn.Linear(self.input_embed_dim, self.spa_embed_dim) # nn.init.xavier_uniform(self.post_linear.weight) self.ffn = ffn self.device = device def cal_freq_list(self): self.freq_list = _cal_freq_list(self.freq_init, self.frequency_num, self.max_radius, self.min_radius) def cal_freq_mat(self): # freq_mat shape: (frequency_num, 1) freq_mat = np.expand_dims(self.freq_list, axis = 1) # self.freq_mat shape: (frequency_num, 6) self.freq_mat = np.repeat(freq_mat, 6, axis = 1) def cal_input_dim(self): # compute the dimention of the encoded spatial relation embedding return int(6 * self.frequency_num) def make_input_embeds(self, coords): if type(coords) == np.ndarray: assert self.coord_dim == np.shape(coords)[2] coords = list(coords) elif type(coords) == list: assert self.coord_dim == len(coords[0][0]) else: raise Exception("Unknown coords data type for GridCellSpatialRelationEncoder") # (batch_size, num_context_pt, coord_dim) coords_mat = np.asarray(coords).astype(float) batch_size = coords_mat.shape[0] num_context_pt = coords_mat.shape[1] # compute the dot product between [deltaX, deltaY] and each unit_vec # (batch_size, num_context_pt, 1) angle_mat1 = np.expand_dims(np.matmul(coords_mat, self.unit_vec1), axis = -1) # (batch_size, num_context_pt, 1) angle_mat2 = np.expand_dims(np.matmul(coords_mat, self.unit_vec2), axis = -1) # (batch_size, num_context_pt, 1) angle_mat3 = np.expand_dims(np.matmul(coords_mat, self.unit_vec3), axis = -1) # (batch_size, num_context_pt, 6) angle_mat = np.concatenate([angle_mat1, angle_mat1, angle_mat2, angle_mat2, angle_mat3, angle_mat3], axis = -1) # (batch_size, num_context_pt, 1, 6) angle_mat = np.expand_dims(angle_mat, axis = -2) # (batch_size, num_context_pt, frequency_num, 6) angle_mat = np.repeat(angle_mat, self.frequency_num, axis = -2) # (batch_size, num_context_pt, frequency_num, 6) angle_mat = angle_mat * self.freq_mat # (batch_size, num_context_pt, frequency_num*6) spr_embeds = np.reshape(angle_mat, (batch_size, num_context_pt, -1)) # make sinuniod function # sin for 2i, cos for 2i+1 # spr_embeds: (batch_size, num_context_pt, frequency_num*6=input_embed_dim) spr_embeds[:, :, 0::2] = np.sin(spr_embeds[:, :, 0::2]) # dim 2i spr_embeds[:, :, 1::2] = np.cos(spr_embeds[:, :, 1::2]) # dim 2i+1 return spr_embeds def forward(self, coords): """ Given a list of coords (deltaX, deltaY), give their spatial relation embedding Args: coords: a python list with shape (batch_size, num_context_pt, coord_dim) Return: sprenc: Tensor shape (batch_size, num_context_pt, spa_embed_dim) """ spr_embeds = self.make_input_embeds(coords) # spr_embeds: (batch_size, num_context_pt, input_embed_dim) spr_embeds = torch.FloatTensor(spr_embeds).to(self.device) # sprenc: shape (batch_size, num_context_pt, spa_embed_dim) # sprenc = torch.einsum("bnd,dk->bnk", (spr_embeds, self.post_mat)) # if self.use_post_mat: # sprenc = self.post_linear_1(spr_embeds) # sprenc = self.post_linear_2(self.dropout(sprenc)) # sprenc = self.f_act(self.dropout(sprenc)) # else: # sprenc = self.post_linear(spr_embeds) # sprenc = self.f_act(self.dropout(sprenc)) if self.ffn is not None: return self.ffn(spr_embeds) else: return spr_embeds """ The theory based Grid cell spatial relation encoder, See https://openreview.net/forum?id=Syx0Mh05YQ Learning Grid Cells as Vector Representation of Self-Position Coupled with Matrix Representation of Self-Motion We retrict the linear layer is block diagonal """ class TheoryDiagGridCellSpatialRelationEncoder(nn.Module): """ Given a list of (deltaX,deltaY), encode them using the position encoding function """ def __init__(self, spa_embed_dim, coord_dim = 2, frequency_num = 16, max_radius = 10000, min_radius = 10, dropout = 0.5, f_act = "sigmoid", freq_init = "geometric", use_layn=False, use_post_mat = False, device = "cuda"): """ Args: spa_embed_dim: the output spatial relation embedding dimention coord_dim: the dimention of space, 2D, 3D, or other frequency_num: the number of different sinusoidal with different frequencies/wavelengths max_radius: the largest context radius this model can handle """ super(TheoryDiagGridCellSpatialRelationEncoder, self).__init__() self.frequency_num = frequency_num self.coord_dim = coord_dim self.max_radius = max_radius self.min_radius = min_radius self.spa_embed_dim = spa_embed_dim self.freq_init = freq_init self.device = device # the frequence we use for each block, alpha in ICLR paper self.cal_freq_list() self.cal_freq_mat() # there unit vectors which is 120 degree apart from each other self.unit_vec1 = np.asarray([1.0, 0.0]) # 0 self.unit_vec2 = np.asarray([-1.0/2.0, math.sqrt(3)/2.0]) # 120 degree self.unit_vec3 = np.asarray([-1.0/2.0, -math.sqrt(3)/2.0]) # 240 degree self.input_embed_dim = self.cal_input_dim() assert self.spa_embed_dim % self.frequency_num == 0 # self.post_linear = nn.Linear(self.frequency_num, 6, self.spa_embed_dim//self.frequency_num) # a block diagnal matrix self.post_mat = nn.Parameter(torch.FloatTensor(self.frequency_num, 6, self.spa_embed_dim//self.frequency_num).to(device)) init.xavier_uniform_(self.post_mat) self.register_parameter("spa_postmat", self.post_mat) self.dropout = nn.Dropout(p=dropout) self.use_post_mat = use_post_mat if self.use_post_mat: self.post_linear = nn.Linear(self.spa_embed_dim, self.spa_embed_dim) self.dropout_ = nn.Dropout(p=dropout) self.f_act = get_activation_function(f_act, "TheoryDiagGridCellSpatialRelationEncoder") def cal_freq_list(self): # if self.freq_init == "random": # # the frequence we use for each block, alpha in ICLR paper # # self.freq_list shape: (frequency_num) # self.freq_list = np.random.random(size=[self.frequency_num]) * self.max_radius # elif self.freq_init == "geometric": # self.freq_list = [] # for cur_freq in range(self.frequency_num): # base = 1.0/(np.power(self.max_radius, cur_freq*1.0/(self.frequency_num-1))) # self.freq_list.append(base) # self.freq_list = np.asarray(self.freq_list) self.freq_list = _cal_freq_list(self.freq_init, self.frequency_num, self.max_radius, self.min_radius) def cal_freq_mat(self): # freq_mat shape: (frequency_num, 1) freq_mat = np.expand_dims(self.freq_list, axis = 1) # self.freq_mat shape: (frequency_num, 6) self.freq_mat = np.repeat(freq_mat, 6, axis = 1) def cal_input_dim(self): # compute the dimention of the encoded spatial relation embedding return int(6 * self.frequency_num) def make_input_embeds(self, coords): if type(coords) == np.ndarray: assert self.coord_dim == np.shape(coords)[2] coords = list(coords) elif type(coords) == list: assert self.coord_dim == len(coords[0][0]) else: raise Exception("Unknown coords data type for GridCellSpatialRelationEncoder") # (batch_size, num_context_pt, coord_dim) coords_mat = np.asarray(coords).astype(float) batch_size = coords_mat.shape[0] num_context_pt = coords_mat.shape[1] # compute the dot product between [deltaX, deltaY] and each unit_vec # (batch_size, num_context_pt, 1) angle_mat1 = np.expand_dims(np.matmul(coords_mat, self.unit_vec1), axis = -1) # (batch_size, num_context_pt, 1) angle_mat2 = np.expand_dims(np.matmul(coords_mat, self.unit_vec2), axis = -1) # (batch_size, num_context_pt, 1) angle_mat3 = np.expand_dims(np.matmul(coords_mat, self.unit_vec3), axis = -1) # (batch_size, num_context_pt, 6) angle_mat = np.concatenate([angle_mat1, angle_mat1, angle_mat2, angle_mat2, angle_mat3, angle_mat3], axis = -1) # (batch_size, num_context_pt, 1, 6) angle_mat = np.expand_dims(angle_mat, axis = -2) # (batch_size, num_context_pt, frequency_num, 6) angle_mat = np.repeat(angle_mat, self.frequency_num, axis = -2) # (batch_size, num_context_pt, frequency_num, 6) spr_embeds = angle_mat * self.freq_mat # make sinuniod function # sin for 2i, cos for 2i+1 # spr_embeds: (batch_size, num_context_pt, frequency_num, 6) spr_embeds[:, :, :, 0::2] = np.sin(spr_embeds[:, :, :, 0::2]) # dim 2i spr_embeds[:, :, :, 1::2] = np.cos(spr_embeds[:, :, :, 1::2]) # dim 2i+1 return spr_embeds def forward(self, coords): """ Given a list of coords (deltaX, deltaY), give their spatial relation embedding Args: coords: a python list with shape (batch_size, num_context_pt, coord_dim) Return: sprenc: Tensor shape (batch_size, num_context_pt, spa_embed_dim) """ # (batch_size, num_context_pt, coord_dim) coords_mat = np.asarray(coords).astype(float) batch_size = coords_mat.shape[0] num_context_pt = coords_mat.shape[1] spr_embeds = self.make_input_embeds(coords) # spr_embeds: (batch_size, num_context_pt, frequency_num, 6) spr_embeds = torch.FloatTensor(spr_embeds).to(self.device) # sprenc: shape (batch_size, num_context_pt, frequency_num, spa_embed_dim//frequency_num) sprenc = torch.einsum("bnfs,fsd->bnfd", (spr_embeds, self.post_mat)) # sprenc: shape (batch_size, num_context_pt, spa_embed_dim) sprenc = sprenc.contiguous().view(batch_size, num_context_pt, self.spa_embed_dim) if self.use_post_mat: sprenc = self.dropout(sprenc) sprenc = self.f_act(self.dropout_(self.post_linear(sprenc))) else: # print(sprenc.size()) sprenc = self.f_act(self.dropout(sprenc)) return sprenc class NaiveSpatialRelationEncoder(nn.Module): """ Given a list of (deltaX,deltaY), encode them using the position encoding function """ def __init__(self, spa_embed_dim, extent, coord_dim = 2, ffn = None, device = "cuda"): """ Args: spa_embed_dim: the output spatial relation embedding dimention coord_dim: the dimention of space, 2D, 3D, or other extent: (x_min, x_max, y_min, y_max) """ super(NaiveSpatialRelationEncoder, self).__init__() self.spa_embed_dim = spa_embed_dim self.coord_dim = coord_dim self.extent = extent # self.post_linear = nn.Linear(self.coord_dim, self.spa_embed_dim) # nn.init.xavier_uniform(self.post_linear.weight) # self.dropout = nn.Dropout(p=dropout) # self.f_act = get_activation_function(f_act, "NaiveSpatialRelationEncoder") self.ffn = ffn self.device = device def forward(self, coords): """ Given a list of coords (deltaX, deltaY), give their spatial relation embedding Args: coords: a python list with shape (batch_size, num_context_pt, coord_dim) Return: sprenc: Tensor shape (batch_size, num_context_pt, spa_embed_dim) """ if type(coords) == np.ndarray: assert self.coord_dim == np.shape(coords)[2] coords = list(coords) elif type(coords) == list: assert self.coord_dim == len(coords[0][0]) else: raise Exception("Unknown coords data type for GridCellSpatialRelationEncoder") coords_mat = coord_normalize(coords, self.extent) # spr_embeds: shape (batch_size, num_context_pt, coord_dim) spr_embeds = torch.FloatTensor(coords_mat).to(self.device) # sprenc: shape (batch_size, num_context_pt, spa_embed_dim) # sprenc = torch.einsum("bnd,dk->bnk", (spr_embeds, self.post_mat)) # sprenc = self.f_act(self.dropout(self.post_linear(spr_embeds))) if self.ffn is not None: return self.ffn(spr_embeds) else: return spr_embeds # return sprenc class RBFSpatialRelationEncoder(nn.Module): """ Given a list of (X,Y), compute the distance from each pt to each RBF anchor points Feed into a MLP This is for global position encoding or relative/spatial context position encoding """ def __init__(self, model_type, train_locs, spa_embed_dim, coord_dim = 2, num_rbf_anchor_pts = 100, rbf_kernal_size = 10e2, rbf_kernal_size_ratio = 0.0, max_radius = 10000, ffn = None, rbf_anchor_pt_ids = None, device = "cuda"): """ Args: train_locs: np.arrary, [batch_size, 2], location data spa_embed_dim: the output spatial relation embedding dimention coord_dim: the dimention of space, 2D, 3D, or other num_rbf_anchor_pts: the number of RBF anchor points rbf_kernal_size: the RBF kernal size The sigma in https://en.wikipedia.org/wiki/Radial_basis_function_kernel rbf_kernal_size_ratio: if not None, (only applied on relative model) different anchor pts have different kernal size : dist(anchot_pt, origin) * rbf_kernal_size_ratio + rbf_kernal_size max_radius: the relative spatial context size in spatial context model """ super(RBFSpatialRelationEncoder, self).__init__() self.model_type = model_type self.train_locs = train_locs self.spa_embed_dim = spa_embed_dim self.coord_dim = coord_dim self.num_rbf_anchor_pts = num_rbf_anchor_pts self.rbf_kernal_size = rbf_kernal_size self.rbf_kernal_size_ratio = rbf_kernal_size_ratio self.max_radius = max_radius self.rbf_anchor_pt_ids = rbf_anchor_pt_ids # calculate the coordinate matrix for each RBF anchor points self.cal_rbf_anchor_coord_mat() self.input_embed_dim = self.num_rbf_anchor_pts # self.use_layn = use_layn # self.use_post_mat = use_post_mat # if self.use_post_mat: # self.post_linear1 = nn.Linear(self.input_embed_dim, 64) # self.post_linear2 = nn.Linear(64, self.spa_embed_dim) # nn.init.xavier_uniform(self.post_linear1.weight) # nn.init.xavier_uniform(self.post_linear2.weight) # else: # self.post_linear = nn.Linear(self.input_embed_dim, self.spa_embed_dim) # nn.init.xavier_uniform(self.post_linear.weight) # self.dropout = nn.Dropout(p=dropout) # self.f_act = get_activation_function(f_act, "RBFSpatialRelationEncoder") self.ffn = ffn self.device = device def _random_sampling(self, item_tuple, num_sample): ''' poi_type_tuple: (Type1, Type2,...TypeM) ''' type_list = list(item_tuple) if len(type_list) > num_sample: return list(np.random.choice(type_list, num_sample, replace=False)) elif len(type_list) == num_sample: return item_tuple else: return list(np.random.choice(type_list, num_sample, replace=True)) def cal_rbf_anchor_coord_mat(self): if self.model_type == "global": assert self.rbf_kernal_size_ratio == 0 # If we do RBF on location/global model, # we need to random sample M RBF anchor points from training point dataset if self.rbf_anchor_pt_ids == None: self.rbf_anchor_pt_ids = self._random_sampling(np.arange(len(self.train_locs)), self.num_rbf_anchor_pts) # coords = [] # for pid in rbf_anchor_pt_ids: # coord = list(self.pointset.pt_dict[pid].coord) # coords.append(coord) # self.rbf_coords: (num_rbf_anchor_pts, 2) # self.rbf_coords_mat = np.asarray(coords).astype(float) self.rbf_coords_mat = self.train_locs[self.rbf_anchor_pt_ids] elif self.model_type == "relative": # If we do RBF on spatial context/relative model, # We just random sample M-1 RBF anchor point in the relative spatial context defined by max_radius # The (0,0) is also an anchor point x_list = np.random.uniform(-self.max_radius, self.max_radius, self.num_rbf_anchor_pts) x_list[0] = 0.0 y_list = np.random.uniform(-self.max_radius, self.max_radius, self.num_rbf_anchor_pts) y_list[0] = 0.0 # self.rbf_coords: (num_rbf_anchor_pts, 2) self.rbf_coords_mat = np.transpose(np.stack([x_list, y_list], axis=0)) if self.rbf_kernal_size_ratio > 0: dist_mat = np.sqrt(np.sum(np.power(self.rbf_coords_mat, 2), axis = -1)) # rbf_kernal_size_mat: (num_rbf_anchor_pts) self.rbf_kernal_size_mat = dist_mat * self.rbf_kernal_size_ratio + self.rbf_kernal_size def make_input_embeds(self, coords): """ Given a list of coords (deltaX, deltaY), give their spatial relation embedding Args: coords: a python list with shape (batch_size, num_context_pt=1, coord_dim) Return: sprenc: Tensor shape (batch_size, num_context_pt, input_embed_dim) """ if type(coords) == np.ndarray: assert self.coord_dim == np.shape(coords)[2] coords = list(coords) elif type(coords) == list: assert self.coord_dim == len(coords[0][0]) else: raise Exception("Unknown coords data type for RBFSpatialRelationEncoder") # coords_mat: shape (batch_size, num_context_pt, 2) coords_mat = np.asarray(coords).astype(float) batch_size = coords_mat.shape[0] num_context_pt = coords_mat.shape[1] # coords_mat: shape (batch_size, num_context_pt, 1, 2) coords_mat = np.expand_dims(coords_mat, axis = 2) # coords_mat: shape (batch_size, num_context_pt, num_rbf_anchor_pts, 2) coords_mat = np.repeat(coords_mat, self.num_rbf_anchor_pts, axis = 2) # compute (deltaX, deltaY) between each point and each RBF anchor points # coords_mat: shape (batch_size, num_context_pt, num_rbf_anchor_pts, 2) coords_mat = coords_mat - self.rbf_coords_mat # coords_mat: shape (batch_size, num_context_pt, num_rbf_anchor_pts=input_embed_dim) coords_mat = np.sum(np.power(coords_mat, 2), axis = 3) if self.rbf_kernal_size_ratio > 0: spr_embeds = np.exp((-1*coords_mat)/(2.0 * np.power(self.rbf_kernal_size_mat, 2))) else: # spr_embeds: shape (batch_size, num_context_pt, num_rbf_anchor_pts=input_embed_dim) spr_embeds = np.exp((-1*coords_mat)/(2.0 * np.power(self.rbf_kernal_size, 2))) return spr_embeds def forward(self, coords): """ Given a list of coords (deltaX, deltaY), give their spatial relation embedding Args: coords: a python list with shape (batch_size, num_context_pt=1, coord_dim) Return: sprenc: Tensor shape (batch_size, num_context_pt, spa_embed_dim) """ spr_embeds = self.make_input_embeds(coords) # spr_embeds: shape (batch_size, num_context_pt, input_embed_dim) spr_embeds = torch.FloatTensor(spr_embeds).to(self.device) # sprenc: shape (batch_size, num_context_pt, spa_embed_dim) # sprenc = torch.einsum("bnd,dk->bnk", (spr_embeds, self.post_mat)) # if self.use_post_mat: # spr_embeds = self.dropout(self.post_linear1(spr_embeds)) # spr_embeds = self.post_linear2(spr_embeds) # sprenc = self.f_act(spr_embeds) # else: # sprenc = self.f_act(self.dropout(self.post_linear(spr_embeds))) if self.ffn is not None: return self.ffn(spr_embeds) else: return spr_embeds
40.636472
129
0.635097
4,619
34,094
4.412427
0.066248
0.034444
0.040626
0.059663
0.841077
0.824248
0.796281
0.764045
0.744713
0.731171
0
0.016046
0.266997
34,094
838
130
40.684964
0.799488
0.384906
0
0.627976
0
0
0.028252
0.013063
0
0
0
0
0.041667
1
0.098214
false
0
0.02381
0.011905
0.217262
0
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
c88f2474838ca64f3d74402d8ea422556407e473
48
py
Python
__init__.py
SDL-player/Rede_Neural_Numpy
4bb088c19573db24834ca2f3d46841248eb4debf
[ "Apache-2.0" ]
1
2021-07-24T14:00:53.000Z
2021-07-24T14:00:53.000Z
__init__.py
SDL-player/Rede_Neural_Numpy
4bb088c19573db24834ca2f3d46841248eb4debf
[ "Apache-2.0" ]
null
null
null
__init__.py
SDL-player/Rede_Neural_Numpy
4bb088c19573db24834ca2f3d46841248eb4debf
[ "Apache-2.0" ]
null
null
null
from model import Model from layer import Layer
16
23
0.833333
8
48
5
0.5
0
0
0
0
0
0
0
0
0
0
0
0.166667
48
2
24
24
1
0
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
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
6
cda2158dabec0abae86539d3941ba7ce0be9ae31
126
py
Python
page_velocity.py
philers/stringer-1
6e172a0d815f90774b9035bf5ab7a7df89d71918
[ "MIT" ]
null
null
null
page_velocity.py
philers/stringer-1
6e172a0d815f90774b9035bf5ab7a7df89d71918
[ "MIT" ]
null
null
null
page_velocity.py
philers/stringer-1
6e172a0d815f90774b9035bf5ab7a7df89d71918
[ "MIT" ]
null
null
null
import streamlit as st def page_velocity(): st.text('page_velocity') st.subheader('Work in Progress!') return
12.6
37
0.674603
17
126
4.882353
0.764706
0.289157
0.337349
0
0
0
0
0
0
0
0
0
0.214286
126
9
38
14
0.838384
0
0
0
0
0
0.238095
0
0
0
0
0
0
1
0.2
true
0
0.2
0
0.6
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
0
0
1
0
0
6
cda93de2e581be278f8a7bb6f769fb54708d1c2c
120
py
Python
server/exception/BaseException.py
ue007/3d-model-convert-to-gltf
fcbea97d5979b67769df12da813587f194fc8f34
[ "Apache-2.0" ]
null
null
null
server/exception/BaseException.py
ue007/3d-model-convert-to-gltf
fcbea97d5979b67769df12da813587f194fc8f34
[ "Apache-2.0" ]
null
null
null
server/exception/BaseException.py
ue007/3d-model-convert-to-gltf
fcbea97d5979b67769df12da813587f194fc8f34
[ "Apache-2.0" ]
null
null
null
class BaseException(Exception): def __init__(self, err="Program exec error"): Exception.__init__(self, err)
30
49
0.708333
14
120
5.5
0.714286
0.207792
0.285714
0
0
0
0
0
0
0
0
0
0.175
120
3
50
40
0.777778
0
0
0
0
0
0.15
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
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
0
1
0
0
6
a832b79d2c782634287284e7ef8d221f16ee73c8
232
py
Python
nxbt/controller/__init__.py
zfghterb721/nxbt
f27f9aec539199aad92a0edd2bf875649b31ea5b
[ "MIT" ]
257
2020-09-16T05:29:05.000Z
2022-03-31T07:38:01.000Z
nxbt/controller/__init__.py
zfghterb721/nxbt
f27f9aec539199aad92a0edd2bf875649b31ea5b
[ "MIT" ]
48
2020-10-18T00:52:13.000Z
2022-03-27T02:02:21.000Z
nxbt/controller/__init__.py
zfghterb721/nxbt
f27f9aec539199aad92a0edd2bf875649b31ea5b
[ "MIT" ]
37
2020-09-16T05:50:05.000Z
2022-03-31T21:39:55.000Z
from .server import ControllerServer from .controller import ControllerTypes from .controller import Controller from .protocol import ControllerProtocol from .protocol import SwitchReportParser from .protocol import SwitchResponses
33.142857
40
0.87069
24
232
8.416667
0.416667
0.178218
0.267327
0
0
0
0
0
0
0
0
0
0.103448
232
6
41
38.666667
0.971154
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
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
6
b53fe72e3cfd4e0b1dee61a0b62d801e5aa718fc
232
py
Python
semeval2020/preprocessor/umap_preprocessor.py
DavidRother/semeval2020-task1
715f82afb8b282669d59ff610b63714d19db4618
[ "MIT" ]
8
2020-12-02T23:18:59.000Z
2021-12-19T11:19:28.000Z
semeval2020/preprocessor/umap_preprocessor.py
DavidRother/semeval2020-task1
715f82afb8b282669d59ff610b63714d19db4618
[ "MIT" ]
1
2020-05-24T15:22:26.000Z
2020-05-25T08:08:07.000Z
semeval2020/preprocessor/umap_preprocessor.py
DavidRother/semeval2020-task1
715f82afb8b282669d59ff610b63714d19db4618
[ "MIT" ]
null
null
null
from semeval2020.factory_hub import preprocessor_factory import umap preprocessor_factory.register("UMAP", umap.UMAP) preprocessor_factory.register("UMAP_AE", umap.UMAP) preprocessor_factory.register("UMAP_AE_Language", umap.UMAP)
33.142857
60
0.849138
30
232
6.3
0.333333
0.402116
0.365079
0.492063
0.619048
0.433862
0.433862
0
0
0
0
0.018265
0.056034
232
6
61
38.666667
0.844749
0
0
0
0
0
0.116379
0
0
0
0
0
0
1
0
true
0
0.4
0
0.4
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
0
0
0
6
b541e34106cccb7a89be7796f23c102b2ea32b6e
30
py
Python
mt3d/mt3d/__init__.py
ExtensionEngineArchive/xblock_3d_viewer
ca688a042819c68f196e84f863bd803093efac8c
[ "MIT" ]
3
2015-03-09T23:38:22.000Z
2019-04-24T00:05:07.000Z
mt3d/mt3d/__init__.py
ExtensionEngineArchive/xblock_3d_viewer
ca688a042819c68f196e84f863bd803093efac8c
[ "MIT" ]
1
2017-05-11T17:25:10.000Z
2017-05-11T17:25:10.000Z
mt3d/mt3d/__init__.py
ExtensionEngine/xblock_3d_viewer
ca688a042819c68f196e84f863bd803093efac8c
[ "MIT" ]
4
2015-01-17T16:59:06.000Z
2018-07-27T16:58:08.000Z
from .mt3d import ModelViewer
15
29
0.833333
4
30
6.25
1
0
0
0
0
0
0
0
0
0
0
0.038462
0.133333
30
1
30
30
0.923077
0
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
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
6
b55351e26ed2656924c0c1393dcf8924d6b5772d
53
py
Python
tests/test_cache.py
hzdg/django-combocache
2d4ee482c2cf60f18e9a44262a8eac644b89919b
[ "MIT" ]
1
2019-01-21T11:20:18.000Z
2019-01-21T11:20:18.000Z
tests/test_cache.py
hzdg/django-combocache
2d4ee482c2cf60f18e9a44262a8eac644b89919b
[ "MIT" ]
null
null
null
tests/test_cache.py
hzdg/django-combocache
2d4ee482c2cf60f18e9a44262a8eac644b89919b
[ "MIT" ]
null
null
null
# TODO: add tests! def test_cache(): assert True
13.25
18
0.660377
8
53
4.25
1
0
0
0
0
0
0
0
0
0
0
0
0.226415
53
3
19
17.666667
0.829268
0.301887
0
0
0
0
0
0
0
0
0
0.333333
0.5
1
0.5
true
0
0
0
0.5
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
1
1
0
1
1
0
0
0
0
0
0
6
b579e2eb0663ec25a15f36ea1bc2012c3a8d6224
184
py
Python
basetestcase/__init__.py
Spleeding1/django-basetestcase
341bb0921c9eb3699f44ca59b6d0b1dbfa32bd00
[ "MIT" ]
1
2019-07-30T12:55:47.000Z
2019-07-30T12:55:47.000Z
basetestcase/__init__.py
Spleeding1/django-basetestcase
341bb0921c9eb3699f44ca59b6d0b1dbfa32bd00
[ "MIT" ]
null
null
null
basetestcase/__init__.py
Spleeding1/django-basetestcase
341bb0921c9eb3699f44ca59b6d0b1dbfa32bd00
[ "MIT" ]
null
null
null
name = 'basetestcase' __version__ = '1.1.8' from .base_FormTestCase import * from .base_FunctionalTestCase import * from .base_ModelTestCase import * from .base_ViewTestCase import *
23
38
0.788043
22
184
6.227273
0.545455
0.233577
0.306569
0
0
0
0
0
0
0
0
0.018634
0.125
184
8
39
23
0.832298
0
0
0
0
0
0.091892
0
0
0
0
0
0
1
0
false
0
0.666667
0
0.666667
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
0
0
1
0
1
0
0
6
b5962682bf3988b31d330d931b2c6173fd91eebf
311
py
Python
test.py
chq-matteo/Ropper
b8171300096b086495b6d17f9e046b9aee6f829d
[ "BSD-3-Clause" ]
1
2019-09-20T05:16:19.000Z
2019-09-20T05:16:19.000Z
test.py
chq-matteo/Ropper
b8171300096b086495b6d17f9e046b9aee6f829d
[ "BSD-3-Clause" ]
null
null
null
test.py
chq-matteo/Ropper
b8171300096b086495b6d17f9e046b9aee6f829d
[ "BSD-3-Clause" ]
1
2019-09-20T05:16:15.000Z
2019-09-20T05:16:15.000Z
from testcases.test_general import * from testcases.test_x86_64 import * from testcases.test_x86 import * from testcases.test_arm import * from testcases.test_arm64 import * from testcases.test_mips import * from testcases.test_ppc import * from testcases.test_console import * import unittest unittest.main()
25.916667
36
0.823151
45
311
5.488889
0.311111
0.421053
0.550607
0.651822
0.210526
0
0
0
0
0
0
0.029091
0.115756
311
11
37
28.272727
0.869091
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.9
0
0.9
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
0
0
0
1
0
1
0
1
0
0
6
a923a37da16c3fc1767a6bcd63a60b29f678be1a
95
py
Python
tests/lambda/hello_world.py
ebridges/lgw
c5a0b51bb6d3e5e9d6c1fa10ba186ba7f56c8de4
[ "Apache-2.0" ]
1
2020-05-25T19:01:26.000Z
2020-05-25T19:01:26.000Z
tests/lambda/hello_world.py
ebridges/lgw
c5a0b51bb6d3e5e9d6c1fa10ba186ba7f56c8de4
[ "Apache-2.0" ]
5
2019-12-05T10:55:56.000Z
2020-06-05T17:48:12.000Z
tests/lambda/hello_world.py
ebridges/lgw
c5a0b51bb6d3e5e9d6c1fa10ba186ba7f56c8de4
[ "Apache-2.0" ]
null
null
null
from botocore.vendored import requests def handler(event, context): return 'hello world'
15.833333
38
0.757895
12
95
6
1
0
0
0
0
0
0
0
0
0
0
0
0.168421
95
5
39
19
0.911392
0
0
0
0
0
0.115789
0
0
0
0
0
0
1
0.333333
false
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
0
0
1
1
1
0
0
6
a9386206b77198c97af693d4bc381af69a2bf3a0
46
py
Python
flow_vae/__init__.py
artsobolev/IWHVI
3a8b5631fe5b08587c594bd0aac43f84dc261579
[ "MIT" ]
7
2019-10-18T21:21:15.000Z
2021-03-08T15:27:09.000Z
flow_vae/__init__.py
artsobolev/IWHVI
3a8b5631fe5b08587c594bd0aac43f84dc261579
[ "MIT" ]
null
null
null
flow_vae/__init__.py
artsobolev/IWHVI
3a8b5631fe5b08587c594bd0aac43f84dc261579
[ "MIT" ]
1
2020-03-15T09:24:27.000Z
2020-03-15T09:24:27.000Z
from .model import FlowVAE from . import utils
23
26
0.804348
7
46
5.285714
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.152174
46
2
27
23
0.948718
0
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
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
6
a94e21841fedcd06f6eee8ba841517e0a5a060ca
35
py
Python
gmail_sender/__init__.py
Pydevoleper/mail-sender-program
7abfab94c4af6135fa771719f1b6a91287292e3d
[ "MIT" ]
2
2021-06-16T17:00:29.000Z
2021-09-29T09:31:01.000Z
gmail_sender/__init__.py
Pydevoleper/mail-sender-program
7abfab94c4af6135fa771719f1b6a91287292e3d
[ "MIT" ]
null
null
null
gmail_sender/__init__.py
Pydevoleper/mail-sender-program
7abfab94c4af6135fa771719f1b6a91287292e3d
[ "MIT" ]
null
null
null
from .mail_sender_program import *
17.5
34
0.828571
5
35
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.114286
35
1
35
35
0.870968
0
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
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
6