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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
708c063202c9e062e9a2ddedcc1091406dc29a47
| 889
|
py
|
Python
|
aula05/operadores_aritmeticos.py
|
LeandroMelloo/curso_python_udemy
|
8ba5ba67b7d5bc4cbe223d8c4fc36a22883ef2b2
|
[
"Apache-2.0"
] | null | null | null |
aula05/operadores_aritmeticos.py
|
LeandroMelloo/curso_python_udemy
|
8ba5ba67b7d5bc4cbe223d8c4fc36a22883ef2b2
|
[
"Apache-2.0"
] | null | null | null |
aula05/operadores_aritmeticos.py
|
LeandroMelloo/curso_python_udemy
|
8ba5ba67b7d5bc4cbe223d8c4fc36a22883ef2b2
|
[
"Apache-2.0"
] | null | null | null |
"""
+ = soma
- = subtração
* = multiplicação
/ = divisão
// = divisão inteira
** = exponenciação ou potenciação
% = resto da divisão
() = parenteses
"""
print('Soma entre 10 + 10 =', 10 + 10)
print('Subtracao entre 10 - 10 =', 10 - 10)
print('Multiplicacao entre 10 * 10 =', 10 * 10)
print('Divisao entre 10 / 10 =', 10 / 10)
print('Divisao inteira 10 // 10 =', 10 // 10)
print('Exponenciacao entre 10 ** 10 =', 10 ** 10)
print('Resto da divisao entre 10 % 10 =', 10 % 10)
print('Parenteses entre 10 + (10 / 10 * 10) =', 10 + (10 / 10 * 10))
print('Precedencia entre 5 + 2 * 10 =', 5 + 2 * 10) # resolve primeiro 2 * 10 e depois soma com o numero 5
print('Precedencia entre (5 + 2) * 10 =', (5 + 2) * 10) # resolve primeiro (5 + 2) e depois multiplica com o numero 10
print('Leandro' + ' ' + 'Mello' + ' ' + 'ele tem' + ' ' + str(35) + ' ' + 'anos', end='.') # sinal de + faz concatenação
| 40.409091
| 120
| 0.595051
| 128
| 889
| 4.132813
| 0.320313
| 0.21172
| 0.226843
| 0.181474
| 0.47448
| 0.440454
| 0.338374
| 0.166352
| 0.166352
| 0.166352
| 0
| 0.141007
| 0.218223
| 889
| 22
| 120
| 40.409091
| 0.620144
| 0.322835
| 0
| 0
| 0
| 0
| 0.527825
| 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
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
7099d9b89402703035c3bf5f7f6168bed200018e
| 32
|
py
|
Python
|
tests/import/subpkg/subsubpkg2/subsub2.py
|
ktok07b6/polyphony
|
657c5c7440520db6b4985970bd50547407693ac4
|
[
"MIT"
] | 83
|
2015-11-30T09:59:13.000Z
|
2021-08-03T09:12:28.000Z
|
tests/import/subpkg/subsubpkg2/subsub2.py
|
jesseclin/polyphony
|
657c5c7440520db6b4985970bd50547407693ac4
|
[
"MIT"
] | 4
|
2017-02-10T01:43:11.000Z
|
2020-07-14T03:52:25.000Z
|
tests/import/subpkg/subsubpkg2/subsub2.py
|
jesseclin/polyphony
|
657c5c7440520db6b4985970bd50547407693ac4
|
[
"MIT"
] | 11
|
2016-11-18T14:39:15.000Z
|
2021-02-23T10:05:20.000Z
|
def func2(x):
return x + 20
| 10.666667
| 17
| 0.5625
| 6
| 32
| 3
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 0.3125
| 32
| 2
| 18
| 16
| 0.681818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 5
|
70a10af69ec359dcf43dc3a444c38d847b9d1ada
| 203
|
py
|
Python
|
service_streamer/__init__.py
|
wking-tao/service-streamer
|
131b1d7ee8b259cc4d5a1b36652a891b189c40b6
|
[
"Apache-2.0"
] | 1,068
|
2019-08-05T11:56:18.000Z
|
2022-03-28T19:51:31.000Z
|
service_streamer/__init__.py
|
wking-tao/service-streamer
|
131b1d7ee8b259cc4d5a1b36652a891b189c40b6
|
[
"Apache-2.0"
] | 68
|
2019-08-05T12:13:06.000Z
|
2022-02-11T08:40:24.000Z
|
service_streamer/__init__.py
|
wking-tao/service-streamer
|
131b1d7ee8b259cc4d5a1b36652a891b189c40b6
|
[
"Apache-2.0"
] | 172
|
2019-08-05T11:59:06.000Z
|
2022-03-28T04:50:56.000Z
|
# coding=utf-8
# Created by Meteorix at 2019/7/22
from .service_streamer import ThreadedStreamer, Streamer, RedisStreamer, RedisWorker, run_redis_workers_forever
from .managed_model import ManagedModel
| 33.833333
| 111
| 0.837438
| 27
| 203
| 6.111111
| 0.888889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043956
| 0.103448
| 203
| 5
| 112
| 40.6
| 0.862637
| 0.221675
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
56402cb304c0a20961d81aa5a840c6800355c1f7
| 125
|
py
|
Python
|
django_youtube_app/views.py
|
sguzman/django-backend
|
7269eed00541eea80a249b54d337f2a2eb81ef75
|
[
"Unlicense"
] | null | null | null |
django_youtube_app/views.py
|
sguzman/django-backend
|
7269eed00541eea80a249b54d337f2a2eb81ef75
|
[
"Unlicense"
] | null | null | null |
django_youtube_app/views.py
|
sguzman/django-backend
|
7269eed00541eea80a249b54d337f2a2eb81ef75
|
[
"Unlicense"
] | null | null | null |
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("<h1>Test</h1>")
| 20.833333
| 40
| 0.736
| 17
| 125
| 5.411765
| 0.882353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018692
| 0.144
| 125
| 6
| 40
| 20.833333
| 0.841122
| 0.184
| 0
| 0
| 0
| 0
| 0.128713
| 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
| 0
| 0
|
0
| 5
|
5671cb34edce1cc423ba48c98b14f048b0466ce8
| 112
|
py
|
Python
|
test_hello.py
|
ngngeek/Pynet_testx
|
2b8d6606b77993f914dc13a5b63190d331dfdceb
|
[
"Apache-2.0"
] | null | null | null |
test_hello.py
|
ngngeek/Pynet_testx
|
2b8d6606b77993f914dc13a5b63190d331dfdceb
|
[
"Apache-2.0"
] | null | null | null |
test_hello.py
|
ngngeek/Pynet_testx
|
2b8d6606b77993f914dc13a5b63190d331dfdceb
|
[
"Apache-2.0"
] | null | null | null |
print "Hello World"
print "Adding something to test hello"
for i in range(10):
print i
print "Adding loop"
| 11.2
| 38
| 0.714286
| 19
| 112
| 4.210526
| 0.684211
| 0.275
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022472
| 0.205357
| 112
| 9
| 39
| 12.444444
| 0.876404
| 0
| 0
| 0
| 0
| 0
| 0.468468
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.8
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
56764ff1262e4473649365bacd6e1ec6d647964e
| 25
|
py
|
Python
|
gentle/util/__init__.py
|
geoffjukes/gentle
|
59c8c31938cabdf528b0696caa6cf33c5b66701d
|
[
"MIT"
] | 1,126
|
2015-11-24T18:28:16.000Z
|
2022-03-30T07:47:55.000Z
|
gentle/util/__init__.py
|
geoffjukes/gentle
|
59c8c31938cabdf528b0696caa6cf33c5b66701d
|
[
"MIT"
] | 266
|
2015-10-23T19:00:28.000Z
|
2022-03-24T10:50:13.000Z
|
gentle/util/__init__.py
|
geoffjukes/gentle
|
59c8c31938cabdf528b0696caa6cf33c5b66701d
|
[
"MIT"
] | 292
|
2015-10-23T18:57:02.000Z
|
2022-03-16T05:11:29.000Z
|
# nothing here right now
| 12.5
| 24
| 0.76
| 4
| 25
| 4.75
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 25
| 1
| 25
| 25
| 0.95
| 0.88
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
567895ecb2a3ab8b06fec0b254f8f5fe63bd1a17
| 441
|
py
|
Python
|
Curso Python/PythonExercicios/ex008.py
|
marcos-saba/Cursos
|
1c063392867e9ed86d141dad8861a2a35488b1c6
|
[
"MIT"
] | null | null | null |
Curso Python/PythonExercicios/ex008.py
|
marcos-saba/Cursos
|
1c063392867e9ed86d141dad8861a2a35488b1c6
|
[
"MIT"
] | null | null | null |
Curso Python/PythonExercicios/ex008.py
|
marcos-saba/Cursos
|
1c063392867e9ed86d141dad8861a2a35488b1c6
|
[
"MIT"
] | null | null | null |
print('='*5, 'Conversor', '='*5)
m = int(input('Digite uma distância em metros: '))
print(' A distância digitada foi: {}(m). \n Distância em centímetros: {}(cm). \n Distância em milímetro: {}(mm).'.format(m, m*100, m*1000))
print(f' Distância em quilômetros: {m/1000}(km).')
print(f' Distância em hectômetro: {m/100}(hm). \n Distância em decâmetro: {m/10}(dam).')
print('='*10, '+++', '='*10)
#km=1000m, hm=100m, dam=10m, cm=0.01m, mm=0.001m
| 63
| 139
| 0.630385
| 72
| 441
| 3.861111
| 0.5
| 0.23741
| 0.129496
| 0.122302
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.097436
| 0.115646
| 441
| 7
| 140
| 63
| 0.615385
| 0.106576
| 0
| 0
| 0
| 0.333333
| 0.687817
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.833333
| 0
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 5
|
569678ee680c7e291144775306c01ebe9b1d226d
| 122
|
py
|
Python
|
eval_kinetic_models/__init__.py
|
Lyle-zhang/eval_kinetic_models
|
186980a78c618c8887c7188915da156adf50235e
|
[
"MIT"
] | null | null | null |
eval_kinetic_models/__init__.py
|
Lyle-zhang/eval_kinetic_models
|
186980a78c618c8887c7188915da156adf50235e
|
[
"MIT"
] | null | null | null |
eval_kinetic_models/__init__.py
|
Lyle-zhang/eval_kinetic_models
|
186980a78c618c8887c7188915da156adf50235e
|
[
"MIT"
] | 1
|
2021-08-14T13:47:55.000Z
|
2021-08-14T13:47:55.000Z
|
from .simulation import Simulation
from .parse_files import read_experiment
__all__ = ['Simulation', 'read_experiment']
| 20.333333
| 43
| 0.803279
| 14
| 122
| 6.5
| 0.571429
| 0.307692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114754
| 122
| 5
| 44
| 24.4
| 0.842593
| 0
| 0
| 0
| 0
| 0
| 0.206612
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
3b0c4c7f445386a4492c2977b97889566eeae334
| 104
|
py
|
Python
|
src/anchor_python_utilities/fixture/__init__.py
|
anchoranalysis/anchor-python-utilities
|
fd73bf91ebaab642f8d73e86cf418b1c8665773f
|
[
"MIT"
] | null | null | null |
src/anchor_python_utilities/fixture/__init__.py
|
anchoranalysis/anchor-python-utilities
|
fd73bf91ebaab642f8d73e86cf418b1c8665773f
|
[
"MIT"
] | null | null | null |
src/anchor_python_utilities/fixture/__init__.py
|
anchoranalysis/anchor-python-utilities
|
fd73bf91ebaab642f8d73e86cf418b1c8665773f
|
[
"MIT"
] | null | null | null |
"""Utility functions may be useful for testing."""
from .call import call_with_arguments # noqa: F401
| 26
| 51
| 0.75
| 15
| 104
| 5.066667
| 0.933333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.034091
| 0.153846
| 104
| 3
| 52
| 34.666667
| 0.829545
| 0.538462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
3b57255fdf5ba5ff7e83ab7df01ea1b295f577df
| 31
|
py
|
Python
|
src/phl_budget_data/etl/utils/__init__.py
|
PhilaController/phl-budget-data
|
fd249937c843aaff2375624160e2bec0b8043e3c
|
[
"MIT"
] | 1
|
2022-03-08T18:59:04.000Z
|
2022-03-08T18:59:04.000Z
|
src/phl_budget_data/etl/utils/__init__.py
|
PhilaController/phl-budget-data
|
fd249937c843aaff2375624160e2bec0b8043e3c
|
[
"MIT"
] | null | null | null |
src/phl_budget_data/etl/utils/__init__.py
|
PhilaController/phl-budget-data
|
fd249937c843aaff2375624160e2bec0b8043e3c
|
[
"MIT"
] | null | null | null |
"""Module for ETL utilities."""
| 31
| 31
| 0.677419
| 4
| 31
| 5.25
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 31
| 1
| 31
| 31
| 0.75
| 0.806452
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
3b8ed4dbf3597a6256f97a30fd288f738b8bacc3
| 377
|
py
|
Python
|
api/errors.py
|
rit-sse/api
|
4dbd04db98284225510d9ae8249514be80d4706a
|
[
"MIT"
] | 1
|
2015-07-17T19:20:45.000Z
|
2015-07-17T19:20:45.000Z
|
api/errors.py
|
rit-sse/api
|
4dbd04db98284225510d9ae8249514be80d4706a
|
[
"MIT"
] | 33
|
2015-07-18T02:31:51.000Z
|
2015-08-04T02:07:41.000Z
|
api/errors.py
|
rit-sse/api
|
4dbd04db98284225510d9ae8249514be80d4706a
|
[
"MIT"
] | 7
|
2015-07-17T16:29:18.000Z
|
2021-08-31T01:03:53.000Z
|
from api import app
from flask import request, jsonify
@app.errorhandler(400)
def _error_400(error):
return jsonify({"error": "bad request", "details": str(error)}), 400
@app.errorhandler(404)
def _error_404(error):
return jsonify({"error": "not found"}), 404
@app.errorhandler(405)
def _error_405(error):
return jsonify({"error": "method not allowed"}), 405
| 20.944444
| 72
| 0.702918
| 52
| 377
| 4.980769
| 0.403846
| 0.173745
| 0.208494
| 0.266409
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083591
| 0.143236
| 377
| 17
| 73
| 22.176471
| 0.718266
| 0
| 0
| 0
| 0
| 0
| 0.159151
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0
| 0.181818
| 0.272727
| 0.727273
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
8e60252c6871287ab07206c521d04cfb9a89b548
| 619
|
py
|
Python
|
applications/Rekall/controllers/hunts.py
|
scudette/rekall-agent-server
|
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
|
[
"BSD-3-Clause"
] | 21
|
2018-02-16T17:43:59.000Z
|
2021-12-29T12:08:28.000Z
|
applications/Rekall/controllers/hunts.py
|
scudette/rekall-agent-server
|
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
|
[
"BSD-3-Clause"
] | 12
|
2017-11-01T14:54:29.000Z
|
2018-02-01T22:02:12.000Z
|
applications/Rekall/controllers/hunts.py
|
scudette/rekall-agent-server
|
e553f1ae5279f75a8f5b0c0c4847766b60ed86eb
|
[
"BSD-3-Clause"
] | 8
|
2018-10-08T03:48:00.000Z
|
2022-03-31T12:13:01.000Z
|
def view():
return dict()
def list():
return dict(hunt_id=request.vars.hunt_id)
def approve_request():
"""Approves a request from another user."""
hunt_id = request.vars.hunt_id
user = request.vars.user
if hunt_id and user:
return dict(hunt_id=hunt_id, user=user)
def hunts_clients():
hunt_id = request.vars.hunt_id
if hunt_id:
return dict(hunt_id=hunt_id)
def describe_client():
client_id = request.vars.client_id
hunt_id = request.vars.hunt_id
if client_id and hunt_id:
return dict(client_id=client_id,
hunt_id=hunt_id)
| 20.633333
| 47
| 0.660743
| 95
| 619
| 4.042105
| 0.221053
| 0.265625
| 0.169271
| 0.177083
| 0.364583
| 0.364583
| 0.130208
| 0
| 0
| 0
| 0
| 0
| 0.242326
| 619
| 29
| 48
| 21.344828
| 0.818763
| 0.059774
| 0
| 0.157895
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.263158
| false
| 0
| 0
| 0.105263
| 0.526316
| 0
| 0
| 0
| 0
| null | 1
| 0
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
8ea1512bee97a3fbec1009d4abad25dcd973c77c
| 2,390
|
py
|
Python
|
run_atari.py
|
yfletberliac/Ssup
|
b3ce5f421aa916cc1e1908a5c72dbae5eebb5330
|
[
"MIT"
] | null | null | null |
run_atari.py
|
yfletberliac/Ssup
|
b3ce5f421aa916cc1e1908a5c72dbae5eebb5330
|
[
"MIT"
] | null | null | null |
run_atari.py
|
yfletberliac/Ssup
|
b3ce5f421aa916cc1e1908a5c72dbae5eebb5330
|
[
"MIT"
] | null | null | null |
from stable_baselines import PPO2_SSup
from stable_baselines import PPO2
for seed in [1, 123, 1245, 1256]:
model_ppo2 = PPO2('CnnPolicy', 'SpaceInvaders-v0', verbose=1, tensorboard_log="./logs/ppo2_SpaceInvaders/",
n_steps=128, cliprange=0.1, cliprange_vf=-1, seed=seed)
model_ppo2_ssup_cf05_sp08_sg01 = PPO2_SSup('CnnPolicy', 'SpaceInvaders-v0', verbose=1, n_steps=128,
tensorboard_log="./logs/ppo2_ssup_SpaceInvaders/",
cliprange=0.1, cliprange_vf=-1,
ssup_coef=0.5, ssup_sample=0.8, ssup_sigma=0.1, seed=seed)
model_ppo2_ssup_cf08_sp08_sg01 = PPO2_SSup('CnnPolicy', 'SpaceInvaders-v0', verbose=1, n_steps=128,
tensorboard_log="./logs/ppo2_ssup_SpaceInvaders/",
cliprange=0.1, cliprange_vf=-1,
ssup_coef=0.8, ssup_sample=0.8, ssup_sigma=0.1, seed=seed)
model_ppo2_ssup_cf05_sp08_sg001 = PPO2_SSup('CnnPolicy', 'SpaceInvaders-v0', verbose=1, n_steps=128,
tensorboard_log="./logs/ppo2_ssup_SpaceInvaders/",
cliprange=0.1, cliprange_vf=-1,
ssup_coef=0.5, ssup_sample=0.8, ssup_sigma=0.01, seed=seed)
model_ppo2_ssup_cf08_sp08_sg001 = PPO2_SSup('CnnPolicy', 'SpaceInvaders-v0', verbose=1, n_steps=128,
tensorboard_log="./logs/ppo2_ssup_SpaceInvaders/",
cliprange=0.1, cliprange_vf=-1,
ssup_coef=0.8, ssup_sample=0.8, ssup_sigma=0.01, seed=seed)
model_ppo2.learn(total_timesteps=1000000, tb_log_name="baseline_s%d" % seed)
model_ppo2_ssup_cf05_sp08_sg01.learn(total_timesteps=1000000, tb_log_name="ssup_cf05_sp08_sg01_s%d" % seed)
model_ppo2_ssup_cf08_sp08_sg01.learn(total_timesteps=1000000, tb_log_name="ssup_cf08_sp08_sg01_s%d" % seed)
model_ppo2_ssup_cf05_sp08_sg001.learn(total_timesteps=1000000, tb_log_name="ssup_cf05_sp08_sg001_s%d" % seed)
model_ppo2_ssup_cf08_sp08_sg001.learn(total_timesteps=1000000, tb_log_name="ssup_cf08_sp08_sg001_s%d" % seed)
| 82.413793
| 113
| 0.594979
| 303
| 2,390
| 4.306931
| 0.155116
| 0.104215
| 0.089655
| 0.104215
| 0.931034
| 0.849808
| 0.83295
| 0.796935
| 0.697318
| 0.697318
| 0
| 0.128391
| 0.305858
| 2,390
| 28
| 114
| 85.357143
| 0.658228
| 0
| 0
| 0.307692
| 0
| 0
| 0.159414
| 0.102092
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.076923
| 0
| 0.076923
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
8ebd4f7914c94ccc8fb8f3ed61d7d21a706ee212
| 105
|
py
|
Python
|
enthought/mayavi/modules/warp_vector_cut_plane.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 3
|
2016-12-09T06:05:18.000Z
|
2018-03-01T13:00:29.000Z
|
enthought/mayavi/modules/warp_vector_cut_plane.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | 1
|
2020-12-02T00:51:32.000Z
|
2020-12-02T08:48:55.000Z
|
enthought/mayavi/modules/warp_vector_cut_plane.py
|
enthought/etsproxy
|
4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347
|
[
"BSD-3-Clause"
] | null | null | null |
# proxy module
from __future__ import absolute_import
from mayavi.modules.warp_vector_cut_plane import *
| 26.25
| 50
| 0.857143
| 15
| 105
| 5.466667
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104762
| 105
| 3
| 51
| 35
| 0.87234
| 0.114286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
d908fdb8bebcc390d46bb2221cbc76d738834dcd
| 116
|
py
|
Python
|
cli.py
|
antibagr/pomodoro-tracker
|
2f042dc0a3056b4ceeca76bc66a060c9e3578ff3
|
[
"MIT"
] | null | null | null |
cli.py
|
antibagr/pomodoro-tracker
|
2f042dc0a3056b4ceeca76bc66a060c9e3578ff3
|
[
"MIT"
] | null | null | null |
cli.py
|
antibagr/pomodoro-tracker
|
2f042dc0a3056b4ceeca76bc66a060c9e3578ff3
|
[
"MIT"
] | null | null | null |
import sys
from pomodoro_tracker.__main__ import run_tracker
if __name__ == '__main__':
run_tracker(*sys.argv)
| 19.333333
| 49
| 0.775862
| 16
| 116
| 4.6875
| 0.625
| 0.266667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 116
| 5
| 50
| 23.2
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0.068966
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 0
|
0
| 5
|
d91b38a858dbab7e6c37894f6c674e3c6364a673
| 88
|
py
|
Python
|
ontology/logistic_regression/sherlock/listify_circuits_k48_reverse.py
|
ehbeam/neuro-knowledge-engine
|
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
|
[
"MIT"
] | 15
|
2020-07-17T07:10:26.000Z
|
2022-02-18T05:51:45.000Z
|
ontology/neural_network/sherlock/listify_circuits_k48_reverse.py
|
YifeiCAO/neuro-knowledge-engine
|
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
|
[
"MIT"
] | 2
|
2022-01-14T09:10:12.000Z
|
2022-01-28T17:32:42.000Z
|
ontology/neural_network/sherlock/listify_circuits_k48_reverse.py
|
YifeiCAO/neuro-knowledge-engine
|
9dc56ade0bbbd8d14f0660774f787c3f46d7e632
|
[
"MIT"
] | 4
|
2021-12-22T13:27:32.000Z
|
2022-02-18T05:51:47.000Z
|
#!/bin/python
import listify_circuits
listify_circuits.optimize_circuits(48, 'reverse')
| 22
| 49
| 0.829545
| 11
| 88
| 6.363636
| 0.727273
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024096
| 0.056818
| 88
| 4
| 49
| 22
| 0.819277
| 0.136364
| 0
| 0
| 0
| 0
| 0.092105
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 0
|
0
| 5
|
d93aede5b1333b50c2bb02802ce12f424bfbee77
| 67
|
py
|
Python
|
lm_explorer/lm/__init__.py
|
vickyliin/lm-explorer
|
333550cee218396fdbb3f296d5b82c82c322f28f
|
[
"Apache-2.0"
] | null | null | null |
lm_explorer/lm/__init__.py
|
vickyliin/lm-explorer
|
333550cee218396fdbb3f296d5b82c82c322f28f
|
[
"Apache-2.0"
] | null | null | null |
lm_explorer/lm/__init__.py
|
vickyliin/lm-explorer
|
333550cee218396fdbb3f296d5b82c82c322f28f
|
[
"Apache-2.0"
] | null | null | null |
from .language_model import LanguageModel
from . import gpt2, bert
| 22.333333
| 41
| 0.820896
| 9
| 67
| 6
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017241
| 0.134328
| 67
| 2
| 42
| 33.5
| 0.913793
| 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
| 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
| 5
|
d94b66a48c9bcd29f49a8f93c6301749b4f7d963
| 43
|
py
|
Python
|
PythonDesafios/d112/utilidadescev/__init__.py
|
adaatii/Python-Curso-em-Video-
|
30b37713b3685469558babb93b557b53210f010c
|
[
"MIT"
] | null | null | null |
PythonDesafios/d112/utilidadescev/__init__.py
|
adaatii/Python-Curso-em-Video-
|
30b37713b3685469558babb93b557b53210f010c
|
[
"MIT"
] | null | null | null |
PythonDesafios/d112/utilidadescev/__init__.py
|
adaatii/Python-Curso-em-Video-
|
30b37713b3685469558babb93b557b53210f010c
|
[
"MIT"
] | null | null | null |
from d112.utilidadescev import moeda, dado
| 21.5
| 42
| 0.837209
| 6
| 43
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078947
| 0.116279
| 43
| 1
| 43
| 43
| 0.868421
| 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
| 0
| 0
|
0
| 5
|
79563790a2f3809ab65037b146e4c35d89ac7d24
| 2,148
|
py
|
Python
|
devicedata/device/tests/test_views.py
|
sreeks87/devicedata
|
530032e949828d5949319c8889183c362133684e
|
[
"Apache-2.0"
] | null | null | null |
devicedata/device/tests/test_views.py
|
sreeks87/devicedata
|
530032e949828d5949319c8889183c362133684e
|
[
"Apache-2.0"
] | null | null | null |
devicedata/device/tests/test_views.py
|
sreeks87/devicedata
|
530032e949828d5949319c8889183c362133684e
|
[
"Apache-2.0"
] | null | null | null |
from django.test import TestCase
from django.urls import reverse
from device.models import Device
class DeviceAPIViewTest(TestCase):
@classmethod
def setUpTestData(cls):
Device.objects.create(device_id="1dae7442-a8ac-47d8-83f9-70672cdb0694",customer_id="1dae7442-a8ac-47d8-83f9-70672cdb0694",timestamp="2021-11-20T14:25:00Z",reading="158.323")
def test_get(self):
data=self.client.get(reverse('deviceapi'))
print(data.content)
self.assertEqual(data.status_code,200)
def test_post(self):
data=self.client.post(reverse('deviceapi'),[{
"device_id": "1dae7442-a8ac-47d8-83f9-70672cdb0694",
"customer_id": "5866c3e9-89cf-4955-b7cc-b39762af5d0c",
"timestamp":"2021-11-20T14:25:00Z",
"reading":"56.32"
}],follow=True,content_type="application/json")
print(data.status_code)
self.assertEqual(data.status_code,201)
def test_post400(self):
data=self.client.post(reverse('deviceapi'),[{
"device_id": "",
"customer_id": "wewqfwfwf",
"timestamp":"2021-11-20T14:25:00Z",
"reading":"56.32"
}],follow=True,content_type="application/json")
print(data.status_code)
self.assertEqual(data.status_code,400)
def test_post400_reading(self):
data=self.client.post(reverse('deviceapi'),[{
"device_id": "1dae7442-a8ac-47d8-83f9-70672cdb0694",
"customer_id": "1dae7442-a8ac-47d8-83f9-70672cdb0694",
"timestamp":"2021-11-20T14:25:00Z",
"reading":""
}],follow=True,content_type="application/json")
print(data.status_code)
self.assertEqual(data.status_code,400)
def test_post400_reading(self):
data=self.client.post(reverse('deviceapi'),[{
"device_id": "1dae7442-a8ac-47d8-83f9-70672cdb0694",
"customer_id": "1dae7442-a8ac-47d8-83f9-70672cdb0694",
"timestamp":"",
"reading":"53.65"
}],follow=True,content_type="application/json")
print(data.status_code)
self.assertEqual(data.status_code,400)
| 40.528302
| 181
| 0.638268
| 249
| 2,148
| 5.385542
| 0.253012
| 0.067114
| 0.09396
| 0.09396
| 0.758389
| 0.736764
| 0.736764
| 0.736764
| 0.736764
| 0.702461
| 0
| 0.156619
| 0.212291
| 2,148
| 53
| 182
| 40.528302
| 0.635934
| 0
| 0
| 0.574468
| 0
| 0
| 0.303397
| 0.134016
| 0
| 0
| 0
| 0
| 0.106383
| 1
| 0.12766
| false
| 0
| 0.06383
| 0
| 0.212766
| 0.106383
| 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
| 0
| 0
|
0
| 5
|
795e884de095b86234ac56fa4e92abfaf19fd012
| 218
|
py
|
Python
|
contact_form/urls.py
|
joebos/django-cbv-contact-form
|
a4905de7081906af7bb1ceac24a9c3243e07e536
|
[
"BSD-3-Clause"
] | 1
|
2015-10-05T01:25:36.000Z
|
2015-10-05T01:25:36.000Z
|
contact_form/urls.py
|
joebos/django-cbv-contact-form
|
a4905de7081906af7bb1ceac24a9c3243e07e536
|
[
"BSD-3-Clause"
] | null | null | null |
contact_form/urls.py
|
joebos/django-cbv-contact-form
|
a4905de7081906af7bb1ceac24a9c3243e07e536
|
[
"BSD-3-Clause"
] | null | null | null |
"""Django urls for contact form."""
from django.conf.urls import patterns, url
from contact_form.views import ContactFormView
urlpatterns = patterns('', url(r'^$', ContactFormView.as_view(), name='contact_form'), )
| 27.25
| 88
| 0.743119
| 28
| 218
| 5.678571
| 0.607143
| 0.207547
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.110092
| 218
| 7
| 89
| 31.142857
| 0.819588
| 0.133028
| 0
| 0
| 0
| 0
| 0.076503
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
797040b3e75190b0927e99c0980f904c37b99d11
| 392
|
py
|
Python
|
tests/run.py
|
Starainrt/talebook
|
0fa65da39b48fd84cfd56524b87b7156807f08b3
|
[
"BSD-2-Clause"
] | 1
|
2022-03-23T06:35:13.000Z
|
2022-03-23T06:35:13.000Z
|
tests/run.py
|
Whichbfj28/talebook
|
dabaa3f6638eddd10b0f06176ba648911892d7da
|
[
"BSD-2-Clause"
] | null | null | null |
tests/run.py
|
Whichbfj28/talebook
|
dabaa3f6638eddd10b0f06176ba648911892d7da
|
[
"BSD-2-Clause"
] | null | null | null |
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
import sys, os
sys.path.append(os.path.dirname(os.path.dirname(os.path.realpath(__file__))))
from tests.test_baike import *
from tests.test_douban import *
from tests.test_main import *
from tests.test_models import *
from tests.test_upload import *
from tests.test_ssl_crt import *
import unittest
if __name__ == "__main__":
unittest.main()
| 23.058824
| 77
| 0.747449
| 60
| 392
| 4.566667
| 0.45
| 0.19708
| 0.284672
| 0.346715
| 0.116788
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005814
| 0.122449
| 392
| 16
| 78
| 24.5
| 0.790698
| 0.09949
| 0
| 0
| 0
| 0
| 0.022792
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.727273
| 0
| 0.727273
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
79733d4e6db4866ea31ec9ab686f6d44fc58045c
| 33
|
py
|
Python
|
test/agent_based/test.py
|
jiuka/build-checkmk-extension
|
66290ef4db004c03052282fe656e97774c3a78f0
|
[
"MIT"
] | null | null | null |
test/agent_based/test.py
|
jiuka/build-checkmk-extension
|
66290ef4db004c03052282fe656e97774c3a78f0
|
[
"MIT"
] | 3
|
2021-01-29T09:05:05.000Z
|
2021-05-02T02:15:57.000Z
|
test/agent_based/test.py
|
jiuka/build-checkmk-extension
|
66290ef4db004c03052282fe656e97774c3a78f0
|
[
"MIT"
] | 1
|
2021-01-25T13:21:30.000Z
|
2021-01-25T13:21:30.000Z
|
from .agent_based_api.v1 import *
| 33
| 33
| 0.818182
| 6
| 33
| 4.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.033333
| 0.090909
| 33
| 1
| 33
| 33
| 0.8
| 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
| 0
| 0
|
0
| 5
|
797ac305c7f621448493528bebcf4e52354b23bb
| 324
|
py
|
Python
|
tests/integration/conftest.py
|
egret85/echovr-api
|
e135f25fb5b188e2931133d04c47c5e66e83a6c5
|
[
"MIT"
] | 7
|
2018-11-02T18:12:18.000Z
|
2021-03-08T10:47:59.000Z
|
tests/integration/conftest.py
|
egret85/echovr-api
|
e135f25fb5b188e2931133d04c47c5e66e83a6c5
|
[
"MIT"
] | null | null | null |
tests/integration/conftest.py
|
egret85/echovr-api
|
e135f25fb5b188e2931133d04c47c5e66e83a6c5
|
[
"MIT"
] | 4
|
2018-11-02T18:12:08.000Z
|
2020-06-19T19:42:39.000Z
|
import pytest
from echovr_api.game_state import GameState
@pytest.fixture
def single_player_private_gamestate(single_player_private_data):
return GameState(**single_player_private_data)
@pytest.fixture
def standard_public_match_gamestate(standard_public_match_data):
return GameState(**standard_public_match_data)
| 29.454545
| 64
| 0.861111
| 43
| 324
| 6.023256
| 0.418605
| 0.138996
| 0.220077
| 0.216216
| 0.494208
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.080247
| 324
| 10
| 65
| 32.4
| 0.869128
| 0
| 0
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 0.75
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
8de40b56ef6b6507167de38348fc2b5d10f6ea3b
| 5,376
|
py
|
Python
|
arm_preprocessing.py
|
srivastavaprashant/ARM
|
8d3abc75c8604d9e30a946478168822812389e89
|
[
"Unlicense"
] | 2
|
2021-11-24T22:00:47.000Z
|
2021-12-15T15:52:48.000Z
|
arm_preprocessing.py
|
srivastavaprashant/ARM
|
8d3abc75c8604d9e30a946478168822812389e89
|
[
"Unlicense"
] | null | null | null |
arm_preprocessing.py
|
srivastavaprashant/ARM
|
8d3abc75c8604d9e30a946478168822812389e89
|
[
"Unlicense"
] | null | null | null |
import pandas as pd
import numpy as np
import re
def generate_word_list(df):
if_match = lambda x, y: True if x.lower() in y.lower() else False
df['list_of_words'] = df.sentence.apply(lambda x: [i for i in x.split(' ') if len(i) > 0])
df['n_words'] = list(df.list_of_words.apply(lambda x: len(x)))
return(df)
def vocab_generator(list_of_words, lowered = True, VOCAB = {}):
if lowered == True:
for word in list_of_words:
if word.lower() in VOCAB.keys():
pass
else:
VOCAB[word.lower()] = len(VOCAB)
else:
for word in list_of_words:
if word in VOCAB.keys():
pass
else:
VOCAB[word] = len(VOCAB)
print('VOCAB size =', len(VOCAB))
return(VOCAB)
def generate_typed_encodings(df, maxl, VOCAB, interaction_dict):
def match_ent_in_list(word_list, match_list):
if_match = lambda x, y: True if x in y else False
indexes = []
for string in match_list:
for idx, word in enumerate(word_list):
if if_match(string.lower(), word.lower()):
indexes.append(idx)
else:
pass
return set(indexes)
def match_int_in_list(word_list, match_list):
if_match = lambda x, y: True if x in y else False
indexes = []
d = dict.fromkeys([j for i in interaction_dict.values() for j in i], [])
for string in match_list:
for idx, word in enumerate(word_list):
if if_match(string.lower(), word.lower()):
d[string] = d[string] + [idx]
else:
pass
return d
df = df[df.n_words < maxl]
df['tokens'] = df.list_of_words.apply(lambda x: [VOCAB[i.lower()] for i in x])
df['int_words'] = df.apply(lambda x: match_int_in_list(x.list_of_words, [j for i in interaction_dict.values() for j in i]), axis = 1)
df['source_words'] = df.apply(lambda x: match_ent_in_list(x.list_of_words, [x.source]), axis = 1)
df['target_words'] = df.apply(lambda x: match_ent_in_list(x.list_of_words, [x.target]), axis = 1)
def f_int_embd(interaction_dict, interaction, int_words, n_words):
if interaction in interaction_dict.keys():
int_keys = interaction_dict[interaction]
int_key_pos = [int_words[i] for i in int_keys]
int_key_pos = [j for i in int_key_pos for j in i]
if sum(int_key_pos) > 0:
e = [1 if idx in int_key_pos else 0 for idx in range(n_words)]
else:
e = [0 for idx in range(n_words)]
return(e)
df['int_embd'] = df.apply(lambda x: f_int_embd(interaction_dict, x.interaction, x.int_words, x.n_words), axis = 1)
df['source_embd'] = df.apply(lambda x: [1 if idx in x.source_words else 0 for idx in range(x.n_words)], axis = 1)
df['target_embd'] = df.apply(lambda x: [1 if idx in x.target_words else 0 for idx in range(x.n_words)], axis = 1)
df['n_int'] = df.int_embd.apply(lambda x: sum(x))
df['n_source'] = df.source_embd.apply(lambda x: sum(x))
df['n_target'] = df.target_embd.apply(lambda x: sum(x))
df['sing_rel'] = ((df.n_int == 1) & (df.n_source == 1) & (df.n_target == 1))*1
df['tokens'] = df.apply(lambda x: list(np.pad(x['tokens'], (0, (maxl - x['n_words'])))), axis = 1)
df['int_embd'] = df.apply(lambda x: list(np.pad(x['int_embd'], (0, (maxl - x['n_words'])))), axis = 1)
df['source_embd'] = df.apply(lambda x: list(np.pad(x['source_embd'], (0, (maxl - x['n_words'])))), axis = 1)
df['target_embd'] = df.apply(lambda x: list(np.pad(x['target_embd'], (0, (maxl - x['n_words'])))), axis = 1)
return(df)
def generate_untyped_encodings(df, maxl, VOCAB):
def match_ent_in_list(word_list, match_list):
if_match = lambda x, y: True if x in y else False
indexes = []
for string in match_list:
for idx, word in enumerate(word_list):
if if_match(string.lower(), word.lower()):
indexes.append(idx)
else:
pass
return set(indexes)
df['tokens'] = df.list_of_words.apply(lambda x: [VOCAB[i.lower()] for i in x])
df['source_words'] = df.apply(lambda x: match_ent_in_list(x.list_of_words, [x.source]), axis = 1)
df['target_words'] = df.apply(lambda x: match_ent_in_list(x.list_of_words, [x.target]), axis = 1)
df['source_embd'] = df.apply(lambda x: [1 if idx in x.source_words else 0 for idx in range(x.n_words)], axis = 1)
df['target_embd'] = df.apply(lambda x: [1 if idx in x.target_words else 0 for idx in range(x.n_words)], axis = 1)
df['n_source'] = df.source_embd.apply(lambda x: sum(x))
df['n_target'] = df.target_embd.apply(lambda x: sum(x))
df['sing_rel'] = ((df.n_source == 1) & (df.n_target == 1))*1
df['tokens'] = df.apply(lambda x: list(np.pad(x['tokens'], (0, (maxl - x['n_words'])))), axis = 1)
df['source_embd'] = df.apply(lambda x: list(np.pad(x['source_embd'], (0, (maxl - x['n_words'])))), axis = 1)
df['target_embd'] = df.apply(lambda x: list(np.pad(x['target_embd'], (0, (maxl - x['n_words'])))), axis = 1)
return(df)
| 47.575221
| 137
| 0.577381
| 864
| 5,376
| 3.409722
| 0.084491
| 0.071283
| 0.105906
| 0.080788
| 0.765105
| 0.749491
| 0.733876
| 0.683978
| 0.652071
| 0.641208
| 0
| 0.011273
| 0.273996
| 5,376
| 113
| 138
| 47.575221
| 0.743531
| 0
| 0
| 0.610526
| 1
| 0
| 0.071415
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.084211
| false
| 0.052632
| 0.031579
| 0
| 0.147368
| 0.010526
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 5
|
8df38055014565cef895923e1973a9cd65edc55b
| 149
|
py
|
Python
|
contracts/abstractBaseRS.py
|
falconsmilie/Raspberry-Pi-3-Weather
|
132ed29d7d717e1597d1c5e8dcb5fcf716c81d17
|
[
"MIT"
] | null | null | null |
contracts/abstractBaseRS.py
|
falconsmilie/Raspberry-Pi-3-Weather
|
132ed29d7d717e1597d1c5e8dcb5fcf716c81d17
|
[
"MIT"
] | null | null | null |
contracts/abstractBaseRS.py
|
falconsmilie/Raspberry-Pi-3-Weather
|
132ed29d7d717e1597d1c5e8dcb5fcf716c81d17
|
[
"MIT"
] | null | null | null |
from abc import ABCMeta, abstractmethod
class AbstractBaseRS(metaclass=ABCMeta):
@abstractmethod
def set_weather_list(self):
pass
| 16.555556
| 40
| 0.738255
| 16
| 149
| 6.75
| 0.875
| 0.388889
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.201342
| 149
| 8
| 41
| 18.625
| 0.907563
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.2
| 0
| 0.6
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
8df75fe01c4a7dea72054db0ffa1e33733d4ad6e
| 144
|
py
|
Python
|
02- Templates/blog/__init__.py
|
alok-sriv/Flask-Blog
|
27ac2c63a289ef448ffa9a2321b3c51a3d8c7c64
|
[
"MIT"
] | null | null | null |
02- Templates/blog/__init__.py
|
alok-sriv/Flask-Blog
|
27ac2c63a289ef448ffa9a2321b3c51a3d8c7c64
|
[
"MIT"
] | null | null | null |
02- Templates/blog/__init__.py
|
alok-sriv/Flask-Blog
|
27ac2c63a289ef448ffa9a2321b3c51a3d8c7c64
|
[
"MIT"
] | null | null | null |
from flask import Flask
# print(f"In __init__.py: {__name__}") o/p : In __init__.py: blog
app = Flask(__name__)
from blog import routes
| 20.571429
| 66
| 0.694444
| 23
| 144
| 3.652174
| 0.608696
| 0.142857
| 0.190476
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.194444
| 144
| 7
| 67
| 20.571429
| 0.724138
| 0.4375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 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
| 0
| 1
| 0
|
0
| 5
|
5c2defc2711432201133ba429e8ebfc258a77460
| 91
|
py
|
Python
|
civis/utils/__init__.py
|
mcoirad-gmmb/civis-python
|
4286da93496cc7d15d876c9001ea3aa1ad359972
|
[
"BSD-3-Clause"
] | 31
|
2016-11-14T14:26:24.000Z
|
2021-11-19T15:43:45.000Z
|
civis/utils/__init__.py
|
mcoirad-gmmb/civis-python
|
4286da93496cc7d15d876c9001ea3aa1ad359972
|
[
"BSD-3-Clause"
] | 296
|
2016-11-11T20:52:59.000Z
|
2022-02-23T13:34:37.000Z
|
civis/utils/__init__.py
|
zacharydfriedlander/civis-python
|
a1c21e96aa1a2b633ddf9b229d51fe7c00c1df7a
|
[
"BSD-3-Clause"
] | 40
|
2016-11-11T20:48:13.000Z
|
2021-04-22T17:47:09.000Z
|
from civis.utils._jobs import run_job, run_template
__all__ = ['run_job', 'run_template']
| 22.75
| 51
| 0.769231
| 14
| 91
| 4.357143
| 0.642857
| 0.196721
| 0.295082
| 0.557377
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10989
| 91
| 3
| 52
| 30.333333
| 0.753086
| 0
| 0
| 0
| 0
| 0
| 0.208791
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 0
|
0
| 5
|
5c44d1952595196c5de2e2aaa2e15e02c4d1a662
| 152
|
py
|
Python
|
ari/entry/__init__.py
|
gieseladev/ari-player
|
64a030956f6d35ea48275448df42228c38b2fa88
|
[
"MIT"
] | 1
|
2019-08-04T00:48:52.000Z
|
2019-08-04T00:48:52.000Z
|
ari/entry/__init__.py
|
gieseladev/ari-player
|
64a030956f6d35ea48275448df42228c38b2fa88
|
[
"MIT"
] | 1
|
2021-06-02T00:24:45.000Z
|
2021-06-02T00:24:45.000Z
|
ari/entry/__init__.py
|
gieseladev/ari-player
|
64a030956f6d35ea48275448df42228c38b2fa88
|
[
"MIT"
] | null | null | null |
"""This module contains Ari's entry model including an entry collection."""
from .entry import *
from .list import *
from .redis import RedisEntryList
| 25.333333
| 75
| 0.763158
| 21
| 152
| 5.52381
| 0.714286
| 0.172414
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151316
| 152
| 5
| 76
| 30.4
| 0.899225
| 0.453947
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
30927973d8494c7120558a35781a2d083184dcf4
| 90
|
py
|
Python
|
sudoku/admin.py
|
dan-brown/RiddleBase
|
b2260f96024c687e5d7cb32021938a706d3ed388
|
[
"MIT"
] | 1
|
2020-07-25T10:03:40.000Z
|
2020-07-25T10:03:40.000Z
|
sudoku/admin.py
|
dan-brown/RiddleBase
|
b2260f96024c687e5d7cb32021938a706d3ed388
|
[
"MIT"
] | 81
|
2018-08-19T10:12:23.000Z
|
2020-10-05T14:07:22.000Z
|
sudoku/admin.py
|
dan-brown/RiddleBase
|
b2260f96024c687e5d7cb32021938a706d3ed388
|
[
"MIT"
] | 1
|
2018-08-19T09:55:56.000Z
|
2018-08-19T09:55:56.000Z
|
from django.contrib import admin
from .models import Sudoku
admin.site.register(Sudoku)
| 15
| 32
| 0.811111
| 13
| 90
| 5.615385
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.122222
| 90
| 5
| 33
| 18
| 0.924051
| 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 | 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
| 5
|
309290f200b58e4311dff46ef9ca3150d32149ce
| 225
|
py
|
Python
|
src/harrastuspassi/harrastuspassi/settings.py
|
jussih/harrastuspassi-backend
|
f35c26926a0ce3fde7a6151aa5d00cb6e1c1c069
|
[
"MIT"
] | null | null | null |
src/harrastuspassi/harrastuspassi/settings.py
|
jussih/harrastuspassi-backend
|
f35c26926a0ce3fde7a6151aa5d00cb6e1c1c069
|
[
"MIT"
] | null | null | null |
src/harrastuspassi/harrastuspassi/settings.py
|
jussih/harrastuspassi-backend
|
f35c26926a0ce3fde7a6151aa5d00cb6e1c1c069
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
from django.conf import settings
AUTH_USER_MODEL = settings.AUTH_USER_MODEL
LINKED_COURSES_URL = getattr(settings, 'HARRASTUSPASSI_LINKED_COURSES_URL', 'https://api.hel.fi/linkedcourses/v1/event/')
| 28.125
| 121
| 0.777778
| 31
| 225
| 5.354839
| 0.741935
| 0.144578
| 0.192771
| 0.253012
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009756
| 0.088889
| 225
| 7
| 122
| 32.142857
| 0.8
| 0.093333
| 0
| 0
| 0
| 0
| 0.373134
| 0.164179
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.333333
| 0.333333
| 0
| 0.333333
| 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
| 0
| 1
| 1
| 0
| 0
| 0
|
0
| 5
|
30b147a95464b55f55a0dd1dc8555ca69ebec358
| 69
|
py
|
Python
|
ofa_module/__init__.py
|
zhaoguangxiang/OFA
|
cc1719df2713f0a046f34acb0afd8782e08ea6be
|
[
"Apache-2.0"
] | 367
|
2022-02-07T10:46:36.000Z
|
2022-03-31T14:20:57.000Z
|
ofa_module/__init__.py
|
zhaoguangxiang/OFA
|
cc1719df2713f0a046f34acb0afd8782e08ea6be
|
[
"Apache-2.0"
] | 29
|
2022-02-16T03:43:33.000Z
|
2022-03-31T03:23:35.000Z
|
ofa_module/__init__.py
|
zhaoguangxiang/OFA
|
cc1719df2713f0a046f34acb0afd8782e08ea6be
|
[
"Apache-2.0"
] | 44
|
2022-02-11T05:14:59.000Z
|
2022-03-30T19:54:33.000Z
|
import data
import models
import tasks
import criterions
import utils
| 13.8
| 17
| 0.869565
| 10
| 69
| 6
| 0.6
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.130435
| 69
| 5
| 18
| 13.8
| 1
| 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
| 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
| 5
|
30b8d0cfdb4725e741206c1dc9c8ec66d95094bd
| 69
|
py
|
Python
|
pymdp/distributions/__init__.py
|
Arun-Niranjan/pymdp
|
2f7ca7e90254f0ea26f6ceb947f3b45280d18307
|
[
"MIT"
] | null | null | null |
pymdp/distributions/__init__.py
|
Arun-Niranjan/pymdp
|
2f7ca7e90254f0ea26f6ceb947f3b45280d18307
|
[
"MIT"
] | null | null | null |
pymdp/distributions/__init__.py
|
Arun-Niranjan/pymdp
|
2f7ca7e90254f0ea26f6ceb947f3b45280d18307
|
[
"MIT"
] | 1
|
2021-08-16T08:25:55.000Z
|
2021-08-16T08:25:55.000Z
|
from .categorical import Categorical
from .dirichlet import Dirichlet
| 34.5
| 36
| 0.869565
| 8
| 69
| 7.5
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.101449
| 69
| 2
| 37
| 34.5
| 0.967742
| 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
| 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
| 5
|
30d71c92f96a57f1ff0a23a7e38d82ef52849e01
| 32
|
py
|
Python
|
app/__init__.py
|
cymoo/flask-base
|
cf41bc0887324dada8e4f0444a35fe68a5e7c43e
|
[
"MIT"
] | 1
|
2017-11-13T14:18:55.000Z
|
2017-11-13T14:18:55.000Z
|
app/__init__.py
|
cymoo/flask-base
|
cf41bc0887324dada8e4f0444a35fe68a5e7c43e
|
[
"MIT"
] | null | null | null |
app/__init__.py
|
cymoo/flask-base
|
cf41bc0887324dada8e4f0444a35fe68a5e7c43e
|
[
"MIT"
] | null | null | null |
from .creator import create_app
| 16
| 31
| 0.84375
| 5
| 32
| 5.2
| 1
| 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
| 0
| 0
|
0
| 5
|
30fbc5224e4aa943f4637d7f7586f2cc629a3152
| 50
|
py
|
Python
|
mmt_retrieval/evaluation/__init__.py
|
UKPLab/MMT-Retrieval
|
a31caaeb0da680131bf39dc855e38fdda949f38e
|
[
"MIT"
] | 98
|
2021-03-17T15:57:37.000Z
|
2022-03-11T21:13:02.000Z
|
mmt_retrieval/evaluation/__init__.py
|
UKPLab/MMT-Retrieval
|
a31caaeb0da680131bf39dc855e38fdda949f38e
|
[
"MIT"
] | 5
|
2021-07-15T02:24:21.000Z
|
2021-12-12T15:18:15.000Z
|
mmt_retrieval/evaluation/__init__.py
|
UKPLab/MMT-Retrieval
|
a31caaeb0da680131bf39dc855e38fdda949f38e
|
[
"MIT"
] | 10
|
2021-03-23T05:24:04.000Z
|
2022-03-09T11:34:15.000Z
|
from mmt_retrieval.evaluation.evaluations import *
| 50
| 50
| 0.88
| 6
| 50
| 7.166667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.06
| 50
| 1
| 50
| 50
| 0.914894
| 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
| 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
| 5
|
eb575dc275834bfc875318224af5f754e314f64d
| 59
|
py
|
Python
|
explorer/utils/__init__.py
|
cryptassic/dex-explorer
|
1588011db1666b8f1ffb6499d909e4eff3f6b09b
|
[
"MIT"
] | null | null | null |
explorer/utils/__init__.py
|
cryptassic/dex-explorer
|
1588011db1666b8f1ffb6499d909e4eff3f6b09b
|
[
"MIT"
] | null | null | null |
explorer/utils/__init__.py
|
cryptassic/dex-explorer
|
1588011db1666b8f1ffb6499d909e4eff3f6b09b
|
[
"MIT"
] | null | null | null |
from .logger import CustomLogger
from . import misc_helpers
| 29.5
| 32
| 0.847458
| 8
| 59
| 6.125
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.118644
| 59
| 2
| 33
| 29.5
| 0.942308
| 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
| 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
| 5
|
eb61c641dca9b42d11d0f7483b6aa902b30d522e
| 73
|
py
|
Python
|
rmidi/dataset/__init__.py
|
rushike/rmidipy
|
7d80dc2cc584cb2e8b8df0eeedc34e9e11ab0de7
|
[
"MIT"
] | 5
|
2019-11-30T11:12:14.000Z
|
2021-08-15T00:47:23.000Z
|
rmidi/dataset/__init__.py
|
rushike/rmidipy
|
7d80dc2cc584cb2e8b8df0eeedc34e9e11ab0de7
|
[
"MIT"
] | 3
|
2020-03-14T04:45:38.000Z
|
2020-05-31T15:07:13.000Z
|
rmidi/dataset/__init__.py
|
rushike/rmidipy
|
7d80dc2cc584cb2e8b8df0eeedc34e9e11ab0de7
|
[
"MIT"
] | null | null | null |
from .piano_roll import PianoRoll
from .note_sequence import NoteSequence
| 36.5
| 39
| 0.876712
| 10
| 73
| 6.2
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.09589
| 73
| 2
| 39
| 36.5
| 0.939394
| 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
| 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
| 5
|
eb6b1d7bcf586bf27354adf8be3b15867d009115
| 192
|
py
|
Python
|
08/home.py
|
lize240810/Python-Frontend
|
a151f12ae7a3664b61b4d2e5b438db8416757c5b
|
[
"MIT"
] | null | null | null |
08/home.py
|
lize240810/Python-Frontend
|
a151f12ae7a3664b61b4d2e5b438db8416757c5b
|
[
"MIT"
] | null | null | null |
08/home.py
|
lize240810/Python-Frontend
|
a151f12ae7a3664b61b4d2e5b438db8416757c5b
|
[
"MIT"
] | null | null | null |
from flask import Blueprint
# url_prefix 默认为 '', 所以可以省略
# bp = Blueprint('index', __name__, url_prefix='')
bp = Blueprint('index', __name__)
@bp.route('/')
def view_index():
return "首页"
| 19.2
| 50
| 0.671875
| 25
| 192
| 4.72
| 0.64
| 0.152542
| 0.271186
| 0.338983
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.15625
| 192
| 10
| 51
| 19.2
| 0.728395
| 0.385417
| 0
| 0
| 0
| 0
| 0.068966
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0.2
| 0.2
| 0.6
| 0.4
| 1
| 0
| 0
| null | 0
| 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
| 0
| 1
| 1
| 0
|
0
| 5
|
eb8029ef0c337ff32ccdbbffd22a4c6ea019104c
| 88
|
py
|
Python
|
lib/contrast_max/__init__.py
|
tub-rip/event_utils
|
1ae06397b17bca32036155b80da64d295d4fe09f
|
[
"MIT"
] | 43
|
2021-01-12T14:59:15.000Z
|
2022-03-31T04:36:17.000Z
|
lib/contrast_max/__init__.py
|
TimoStoff/event_utils
|
dc0a0712156bb0c3659d90b33e211fa58a83a75f
|
[
"MIT"
] | 1
|
2021-11-24T18:21:41.000Z
|
2021-11-24T18:21:41.000Z
|
lib/contrast_max/__init__.py
|
tub-rip/event_utils
|
1ae06397b17bca32036155b80da64d295d4fe09f
|
[
"MIT"
] | 11
|
2020-12-17T11:58:51.000Z
|
2022-02-11T17:51:43.000Z
|
# __init__.py
from .events_cmax import *
from .warps import *
from .objectives import *
| 17.6
| 26
| 0.75
| 12
| 88
| 5.083333
| 0.666667
| 0.327869
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.159091
| 88
| 4
| 27
| 22
| 0.824324
| 0.125
| 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
| 0
| 0
|
0
| 5
|
ebb561c760bcf0ea1fad4bfeae524dfa941f2ad0
| 246
|
py
|
Python
|
textabstractor/__init__.py
|
textractortechnologies/omop-abstractor-nlp
|
deda52558865311ece2e54c28b766c7d0f3e022c
|
[
"MIT"
] | null | null | null |
textabstractor/__init__.py
|
textractortechnologies/omop-abstractor-nlp
|
deda52558865311ece2e54c28b766c7d0f3e022c
|
[
"MIT"
] | 1
|
2021-06-02T04:13:17.000Z
|
2021-06-02T04:13:17.000Z
|
textabstractor/__init__.py
|
textractortechnologies/omop-abstractor-nlp
|
deda52558865311ece2e54c28b766c7d0f3e022c
|
[
"MIT"
] | null | null | null |
from textabstractor.about import __project_name__, __version__ # noqa F401
import pluggy
hookimpl = pluggy.HookimplMarker(__project_name__)
from textabstractor import app # noqa: E402, F401
from textabstractor import nlp # noqa: E402, F401
| 27.333333
| 75
| 0.804878
| 30
| 246
| 6.133333
| 0.5
| 0.293478
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.07109
| 0.142276
| 246
| 8
| 76
| 30.75
| 0.800948
| 0.174797
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.8
| 0
| 0.8
| 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
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
ebb5cb7a1bb96d0889b9cd7da5cc2ec7a87e48ae
| 117
|
py
|
Python
|
reportlab/run_test.py
|
nikicc/anaconda-recipes
|
9c611a5854bf41bbc5e7ed9853dc71c0851a62ef
|
[
"BSD-3-Clause"
] | 130
|
2015-07-28T03:41:21.000Z
|
2022-03-16T03:07:41.000Z
|
reportlab/run_test.py
|
nikicc/anaconda-recipes
|
9c611a5854bf41bbc5e7ed9853dc71c0851a62ef
|
[
"BSD-3-Clause"
] | 119
|
2015-08-01T00:54:06.000Z
|
2021-01-05T13:00:46.000Z
|
reportlab/run_test.py
|
nikicc/anaconda-recipes
|
9c611a5854bf41bbc5e7ed9853dc71c0851a62ef
|
[
"BSD-3-Clause"
] | 72
|
2015-07-29T02:35:56.000Z
|
2022-02-26T14:31:15.000Z
|
import reportlab
print("reportlab.__version__: %r" % reportlab.__version__)
assert reportlab.__version__ == '3.4.0'
| 23.4
| 58
| 0.769231
| 14
| 117
| 5.571429
| 0.642857
| 0.615385
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.028302
| 0.094017
| 117
| 4
| 59
| 29.25
| 0.707547
| 0
| 0
| 0
| 0
| 0
| 0.25641
| 0.188034
| 0
| 0
| 0
| 0
| 0.333333
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 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
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 5
|
ebc1b7098f4d7648fc4ab2b0e05587d911aa35e0
| 70
|
py
|
Python
|
tfbasemodels/models/densenet/__init__.py
|
ldfrancis/tfbasemodels
|
cbdd13f907dfd4c32b7d5aa9e147bd71b0243368
|
[
"MIT"
] | null | null | null |
tfbasemodels/models/densenet/__init__.py
|
ldfrancis/tfbasemodels
|
cbdd13f907dfd4c32b7d5aa9e147bd71b0243368
|
[
"MIT"
] | 1
|
2021-02-15T22:16:23.000Z
|
2021-02-15T22:16:23.000Z
|
tfbasemodels/models/densenet/__init__.py
|
ldfrancis/tfbasemodels
|
cbdd13f907dfd4c32b7d5aa9e147bd71b0243368
|
[
"MIT"
] | null | null | null |
from .densenet import DenseNet, DenseNet121, DenseNet201, DenseNet169
| 35
| 69
| 0.842857
| 7
| 70
| 8.428571
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0.1
| 70
| 1
| 70
| 70
| 0.793651
| 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
| 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
| 5
|
ebc548615e16e3191df77d712ee1105cb58a99e5
| 226
|
py
|
Python
|
syspy/__init__.py
|
mrgarelli/PySys
|
f5e61b01ab43525b66f104ef3140b6d1c68e2ebc
|
[
"MIT"
] | 1
|
2019-09-02T17:18:26.000Z
|
2019-09-02T17:18:26.000Z
|
syspy/__init__.py
|
mrgarelli/PySys
|
f5e61b01ab43525b66f104ef3140b6d1c68e2ebc
|
[
"MIT"
] | null | null | null |
syspy/__init__.py
|
mrgarelli/PySys
|
f5e61b01ab43525b66f104ef3140b6d1c68e2ebc
|
[
"MIT"
] | null | null | null |
# new school
from .DeclarativeShell import DeclarativeShell
from declarativeOpts import DeclarativeOptions, DeclarativeCommands, DeclarativeCLI
from .shell import Shell, extend
import syspy.implementations
import syspy.tools
| 28.25
| 83
| 0.862832
| 23
| 226
| 8.478261
| 0.608696
| 0.112821
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10177
| 226
| 7
| 84
| 32.285714
| 0.960591
| 0.044248
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
ebc93edc8f3e0823b8d36bdb3c7e87837536c611
| 304
|
py
|
Python
|
script/modules/stnm.py
|
kwon-young/stnm.pytorch
|
293610604786c3156e32ed4993fa774b2324c6c4
|
[
"MIT"
] | 34
|
2017-06-09T22:34:03.000Z
|
2021-06-19T11:30:16.000Z
|
script/modules/stnm.py
|
kwon-young/stnm.pytorch
|
293610604786c3156e32ed4993fa774b2324c6c4
|
[
"MIT"
] | 3
|
2017-09-11T10:34:15.000Z
|
2018-12-27T08:39:13.000Z
|
script/modules/stnm.py
|
kwon-young/stnm.pytorch
|
293610604786c3156e32ed4993fa774b2324c6c4
|
[
"MIT"
] | 9
|
2017-09-01T13:29:26.000Z
|
2019-05-27T02:06:34.000Z
|
from torch.nn.modules.module import Module
from functions.stnm import STNMFunction
class STNM(Module):
def __init__(self):
super(STNM, self).__init__()
self.f = STNMFunction()
def forward(self, canvas, fgimg, fggrid, fgmask):
return self.f(canvas, fgimg, fggrid, fgmask)
| 30.4
| 53
| 0.690789
| 39
| 304
| 5.179487
| 0.538462
| 0.079208
| 0.168317
| 0.227723
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.200658
| 304
| 9
| 54
| 33.777778
| 0.831276
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.125
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 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
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
ccf5db6a72d9bb04a4fe6fb5bb2104ac9e4f8ae0
| 273
|
py
|
Python
|
volunteers/views.py
|
hanhanhan/volunteer_signup
|
d5d03cab81e25c60fe00cb5041547c1fe3d68c4e
|
[
"MIT"
] | null | null | null |
volunteers/views.py
|
hanhanhan/volunteer_signup
|
d5d03cab81e25c60fe00cb5041547c1fe3d68c4e
|
[
"MIT"
] | null | null | null |
volunteers/views.py
|
hanhanhan/volunteer_signup
|
d5d03cab81e25c60fe00cb5041547c1fe3d68c4e
|
[
"MIT"
] | null | null | null |
from django.shortcuts import render
def user_profile(request, user):
return render(request, template_name='profile.html')
def profile(request):
if request.user.is_anonymous:
# return redirect()
return
else:
return render(request, template_name='profile.html')
| 19.5
| 54
| 0.765568
| 36
| 273
| 5.694444
| 0.5
| 0.136585
| 0.185366
| 0.263415
| 0.409756
| 0.409756
| 0.409756
| 0
| 0
| 0
| 0
| 0
| 0.128205
| 273
| 13
| 55
| 21
| 0.861345
| 0.062271
| 0
| 0.25
| 0
| 0
| 0.094488
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.125
| 0.125
| 0.75
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
6914325966c33bea658d04ecd671e3ef5a830c1a
| 264
|
py
|
Python
|
stock/filter/utils.py
|
shenzhongqiang/cnstock_py
|
2bb557657a646acb9d20d3ce78e15cf68390f8ea
|
[
"MIT"
] | 2
|
2016-10-31T04:05:11.000Z
|
2017-04-17T08:46:53.000Z
|
stock/filter/utils.py
|
shenzhongqiang/cnstock_py
|
2bb557657a646acb9d20d3ce78e15cf68390f8ea
|
[
"MIT"
] | null | null | null |
stock/filter/utils.py
|
shenzhongqiang/cnstock_py
|
2bb557657a646acb9d20d3ce78e15cf68390f8ea
|
[
"MIT"
] | null | null | null |
# float number 0.5 is represented as 0.4999999999998 in python
def get_zt_price(price):
zt_price = int(price * 1.1 * 100 + 0.50001) /100.0
return zt_price
def get_dt_price(price):
zt_price = int(price * 0.9 * 100 + 0.50001) /100.0
return zt_price
| 29.333333
| 62
| 0.681818
| 49
| 264
| 3.510204
| 0.428571
| 0.203488
| 0.139535
| 0.197674
| 0.593023
| 0.593023
| 0.302326
| 0.302326
| 0
| 0
| 0
| 0.220096
| 0.208333
| 264
| 8
| 63
| 33
| 0.602871
| 0.227273
| 0
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
6927938fcbb306a4f0b56d2bf2c3163ac7a2c128
| 2,630
|
py
|
Python
|
aioregex/__init__.py
|
Wirtos/aioregex
|
b426fb99769d54d627e189bd058c4b724559fb80
|
[
"MIT"
] | null | null | null |
aioregex/__init__.py
|
Wirtos/aioregex
|
b426fb99769d54d627e189bd058c4b724559fb80
|
[
"MIT"
] | null | null | null |
aioregex/__init__.py
|
Wirtos/aioregex
|
b426fb99769d54d627e189bd058c4b724559fb80
|
[
"MIT"
] | null | null | null |
import re, asyncio
from typing import Union, AnyStr
from inspect import iscoroutinefunction
REPATTERN_TYPE = type(re.compile(''))
REFLAGS_TYPE = type(re.I)
async def _lookahead(iterable):
# looks for objects remained after iterated one to emulate ''.join() behaviour
it = iter(iterable)
try:
last = next(it)
except StopIteration:
return
for val in it:
yield last, True
last = val
yield last, False
async def aiosub(pattern: Union[str, REPATTERN_TYPE],
repl: Union[str, callable, asyncio.coroutine],
string: str,
count: int = 0,
flags: REFLAGS_TYPE = 0):
temp = []
last_end = 0
loookahead_matches = _lookahead(
pattern.finditer(string) if isinstance(pattern, REPATTERN_TYPE)
else re.finditer(pattern, string, flags=flags))
async for match, items_left in loookahead_matches:
if not count < 1 and len(temp) > count:
temp.append(match.string[last_end:])
await loookahead_matches.aclose()
break
temp.append(string[last_end:match.start()])
if iscoroutinefunction(repl):
temp.append(await repl(match))
elif callable(repl):
temp.append(repl(match))
else:
temp.append(match.expand(repl))
if not items_left:
temp.append(match.string[match.end():])
last_end = match.end()
return ''.join(temp) if temp else string
async def aiosubn(pattern: Union[str, REPATTERN_TYPE],
repl: Union[str, callable, asyncio.coroutine],
string: str,
count: int = 0,
flags: REFLAGS_TYPE = 0):
temp = []
last_end = 0
repl_counter = 0
loookahead_matches = _lookahead(
pattern.finditer(string) if isinstance(pattern, REPATTERN_TYPE)
else re.finditer(pattern, string, flags=flags))
async for match, items_left in loookahead_matches:
if not count < 1 and len(temp) > count:
temp.append(match.string[last_end:])
await loookahead_matches.aclose()
break
temp.append(string[last_end:match.start()])
if iscoroutinefunction(repl):
temp.append(await repl(match))
elif callable(repl):
temp.append(repl(match))
else:
temp.append(match.expand(repl))
repl_counter += 1
if not items_left:
temp.append(match.string[match.end():])
last_end = match.end()
return ''.join(temp) if temp else string, repl_counter
| 30.941176
| 82
| 0.6
| 309
| 2,630
| 5.003236
| 0.249191
| 0.07762
| 0.058215
| 0.054334
| 0.762613
| 0.762613
| 0.762613
| 0.762613
| 0.762613
| 0.762613
| 0
| 0.005444
| 0.301521
| 2,630
| 84
| 83
| 31.309524
| 0.836146
| 0.028897
| 0
| 0.695652
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.043478
| 0
| 0.086957
| 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
| 0
| 0
|
0
| 5
|
693d28e91ac0efa09815767b4e96a3c8a42ad4a8
| 99
|
py
|
Python
|
twitteruser/admin.py
|
marcornett/twitter-clone
|
bcee2828311ffeb598a5740edcd576d562135981
|
[
"MIT"
] | null | null | null |
twitteruser/admin.py
|
marcornett/twitter-clone
|
bcee2828311ffeb598a5740edcd576d562135981
|
[
"MIT"
] | null | null | null |
twitteruser/admin.py
|
marcornett/twitter-clone
|
bcee2828311ffeb598a5740edcd576d562135981
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import TwitterUser
admin.site.register(TwitterUser)
| 19.8
| 32
| 0.838384
| 13
| 99
| 6.384615
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10101
| 99
| 4
| 33
| 24.75
| 0.932584
| 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 | 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
| 5
|
15c8fc94c9d282630500bc3bd92ddfe006460cdc
| 235
|
py
|
Python
|
Labels/labelMainChain.py
|
MooersLab/jupyterlabpymolpysnipsplus
|
b886750d63372434df53d4d6d7cdad6cb02ae4e7
|
[
"MIT"
] | null | null | null |
Labels/labelMainChain.py
|
MooersLab/jupyterlabpymolpysnipsplus
|
b886750d63372434df53d4d6d7cdad6cb02ae4e7
|
[
"MIT"
] | null | null | null |
Labels/labelMainChain.py
|
MooersLab/jupyterlabpymolpysnipsplus
|
b886750d63372434df53d4d6d7cdad6cb02ae4e7
|
[
"MIT"
] | null | null | null |
# Description: Label the main chain atoms with the following: resn,resi,atom name.
# Source: placeHolder
"""
cmd.do('label name n+c+o+ca,"%s%s%s" % (resn,resi,name);')
"""
cmd.do('label name n+c+o+ca,"%s%s%s" % (resn,resi,name);')
| 26.111111
| 83
| 0.638298
| 43
| 235
| 3.488372
| 0.488372
| 0.053333
| 0.133333
| 0.186667
| 0.453333
| 0.453333
| 0.453333
| 0.453333
| 0.453333
| 0.453333
| 0
| 0
| 0.131915
| 235
| 8
| 84
| 29.375
| 0.735294
| 0.689362
| 0
| 0
| 0
| 1
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
15e08aa325ca9962492ef76e7a320b24168e4c3a
| 145
|
py
|
Python
|
GuardabosquesUSB/GuardabosquesUSB/admin.py
|
prengifo/GuardabosquesUSB
|
e8357fbdac04c3ac7d9dc8ae6fba103fd03dd138
|
[
"MIT"
] | null | null | null |
GuardabosquesUSB/GuardabosquesUSB/admin.py
|
prengifo/GuardabosquesUSB
|
e8357fbdac04c3ac7d9dc8ae6fba103fd03dd138
|
[
"MIT"
] | null | null | null |
GuardabosquesUSB/GuardabosquesUSB/admin.py
|
prengifo/GuardabosquesUSB
|
e8357fbdac04c3ac7d9dc8ae6fba103fd03dd138
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Actividad, TipoActividad
admin.site.register(Actividad)
admin.site.register(TipoActividad)
| 24.166667
| 44
| 0.841379
| 18
| 145
| 6.777778
| 0.555556
| 0.147541
| 0.278689
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082759
| 145
| 5
| 45
| 29
| 0.917293
| 0
| 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 | 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
| 0
| 0
|
0
| 5
|
15eff12e938dc6e49a6629bf334f8b73fa09df34
| 123
|
py
|
Python
|
vintagecafe-main/Home/admin.py
|
Snehal0203/lecafevinatage
|
4b40b5673c6940b04358015a9a019ca042c70397
|
[
"MIT"
] | 2
|
2021-10-01T09:08:55.000Z
|
2021-10-01T19:40:51.000Z
|
vintagecafe-main/Home/admin.py
|
Snehal0203/lecafevinatage
|
4b40b5673c6940b04358015a9a019ca042c70397
|
[
"MIT"
] | 2
|
2021-09-28T06:51:16.000Z
|
2021-09-28T06:58:38.000Z
|
vintagecafe-main/Home/admin.py
|
Snehal0203/lecafevinatage
|
4b40b5673c6940b04358015a9a019ca042c70397
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from Home.models import Contact
# Register your models here.
admin.site.register(Contact)
| 24.6
| 32
| 0.821138
| 18
| 123
| 5.611111
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113821
| 123
| 5
| 33
| 24.6
| 0.926606
| 0.211382
| 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 | 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
| 5
|
15f2e99f89d95be74452c05a7bfe64816f358136
| 68
|
py
|
Python
|
flask_wings/__init__.py
|
vmlaker/flask-wings
|
4adcf84322c715b2d37be3d57f1bb99d1347d047
|
[
"MIT"
] | 3
|
2018-09-06T06:06:41.000Z
|
2019-07-11T14:33:47.000Z
|
flask_wings/__init__.py
|
vmlaker/flask-wings
|
4adcf84322c715b2d37be3d57f1bb99d1347d047
|
[
"MIT"
] | null | null | null |
flask_wings/__init__.py
|
vmlaker/flask-wings
|
4adcf84322c715b2d37be3d57f1bb99d1347d047
|
[
"MIT"
] | null | null | null |
from .FlaskWings import FlaskWings
from .version import __version__
| 22.666667
| 34
| 0.852941
| 8
| 68
| 6.75
| 0.5
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117647
| 68
| 2
| 35
| 34
| 0.9
| 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
| 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
| 5
|
c62d8f85eb02dedf7ae0bdf63fe4e72b89b253ed
| 98
|
py
|
Python
|
{{cookiecutter.project_slug}}/app/services/echo.py
|
kabirkhan/cookiecutter-hug
|
2ae9e70d1fff91da90e47f7e298a9529adc9a9e8
|
[
"MIT"
] | 1
|
2019-02-02T11:44:52.000Z
|
2019-02-02T11:44:52.000Z
|
{{cookiecutter.project_slug}}/app/services/echo.py
|
kabirkhan/cookiecutter-hug
|
2ae9e70d1fff91da90e47f7e298a9529adc9a9e8
|
[
"MIT"
] | null | null | null |
{{cookiecutter.project_slug}}/app/services/echo.py
|
kabirkhan/cookiecutter-hug
|
2ae9e70d1fff91da90e47f7e298a9529adc9a9e8
|
[
"MIT"
] | null | null | null |
class EchoService:
@staticmethod
def echo(text):
return { 'text': text }
| 16.333333
| 31
| 0.540816
| 9
| 98
| 5.888889
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.357143
| 98
| 6
| 32
| 16.333333
| 0.84127
| 0
| 0
| 0
| 0
| 0
| 0.040404
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0.25
| 0.75
| 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
| 0
| 1
| 1
| 0
|
0
| 5
|
c64d01eb51006f35b4e55001f2b1bb59398394c0
| 99
|
py
|
Python
|
tensortrade/features/indicators/__init__.py
|
nithasha-samad/tensortrade
|
16f69d314c343e3d5a7e25051f4bfc1ec34ba470
|
[
"Apache-2.0"
] | 6
|
2019-10-18T17:36:29.000Z
|
2021-11-24T03:06:42.000Z
|
tensortrade/features/indicators/__init__.py
|
dioconnoi/tensortrade
|
16f69d314c343e3d5a7e25051f4bfc1ec34ba470
|
[
"Apache-2.0"
] | null | null | null |
tensortrade/features/indicators/__init__.py
|
dioconnoi/tensortrade
|
16f69d314c343e3d5a7e25051f4bfc1ec34ba470
|
[
"Apache-2.0"
] | 3
|
2019-12-24T21:40:22.000Z
|
2020-07-27T00:05:44.000Z
|
from .simple_moving_average import SimpleMovingAverage
from .talib_indicator import TAlibIndicator
| 33
| 54
| 0.89899
| 11
| 99
| 7.818182
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.080808
| 99
| 2
| 55
| 49.5
| 0.945055
| 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
| 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
| 5
|
d67e5d42837874ca6c763d7e028b64ad489f4d94
| 47
|
py
|
Python
|
problem/10000~19999/14924/14924.py3.py
|
njw1204/BOJ-AC
|
1de41685725ae4657a7ff94e413febd97a888567
|
[
"MIT"
] | 1
|
2019-04-19T16:37:44.000Z
|
2019-04-19T16:37:44.000Z
|
problem/10000~19999/14924/14924.py3.py
|
njw1204/BOJ-AC
|
1de41685725ae4657a7ff94e413febd97a888567
|
[
"MIT"
] | 1
|
2019-04-20T11:42:44.000Z
|
2019-04-20T11:42:44.000Z
|
problem/10000~19999/14924/14924.py3.py
|
njw1204/BOJ-AC
|
1de41685725ae4657a7ff94e413febd97a888567
|
[
"MIT"
] | 3
|
2019-04-19T16:37:47.000Z
|
2021-10-25T00:45:00.000Z
|
S,T,D=map(int,input().split())
print(D//S//2*T)
| 23.5
| 30
| 0.595745
| 12
| 47
| 2.333333
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021739
| 0.021277
| 47
| 2
| 31
| 23.5
| 0.586957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 0
| 1
|
0
| 5
|
d68269302c1c30f2f92a88d2238176da69245533
| 4,065
|
py
|
Python
|
day3.py
|
ecnerwala/aoc-2019
|
9a8a273804395da1d269bea94f260e320946f26c
|
[
"CC0-1.0"
] | 5
|
2021-01-26T03:25:01.000Z
|
2021-04-12T21:56:13.000Z
|
day3.py
|
ecnerwala/aoc-2019
|
9a8a273804395da1d269bea94f260e320946f26c
|
[
"CC0-1.0"
] | null | null | null |
day3.py
|
ecnerwala/aoc-2019
|
9a8a273804395da1d269bea94f260e320946f26c
|
[
"CC0-1.0"
] | 1
|
2021-03-02T19:33:51.000Z
|
2021-03-02T19:33:51.000Z
|
from functools import *
from collections import *
from itertools import *
from math import *
from sys import exit
from dataclasses import dataclass
import re
from builtins import pow
from heapq import heappush, heappop, heappushpop, heapify, heapreplace
import pyperclip
def cprint(a):
print(a)
pyperclip.copy(a)
def main(inp, is_real):
inp = inp.strip()
inp = inp.split('\n')
def get_pts(ops):
x, y = 0,0
t = 0
res = {}
for op in ops.split(','):
(dx,dy), amt = {'R':(1,0),'U':(0,1),'L':(-1,0),'D':(0,-1)}[op[0]], int(op[1:])
for _ in range(amt):
x += dx
y += dy
t += 1
if (x,y) not in res:
res[x,y] = t
return res
a = get_pts(inp[0])
b = get_pts(inp[1])
inter = set(a) & set(b)
cprint(min(a[p] + b[p] for p in inter))
#exit(0)
samp_inp = r"""
R75,D30,R83,U83,L12,D49,R71,U7,L72
U62,R66,U55,R34,D71,R55,D58,R83
"""
real_inp = r"""
R998,U547,L703,D251,L776,U837,R100,U240,R197,D216,L220,U606,L437,U56,R940,U800,L968,D464,L870,D797,L545,D824,R790,U5,R347,D794,R204,U538,L247,U385,L103,D260,L590,U813,L549,U309,L550,U321,R862,D686,R368,D991,R451,D836,R264,D138,L292,D319,L784,D369,R849,U865,R776,D726,R223,D118,L790,D208,L836,D592,R310,D36,R991,U674,L205,U407,R422,U350,L126,D320,L239,U353,L509,U48,R521,D544,L157,D551,R614,D493,R407,D965,R498,U248,R826,U573,L782,D589,R616,D992,L806,D745,R28,U142,L333,D849,L858,D617,R167,U341,R46,U940,L615,D997,L447,D604,R148,U561,R925,D673,R441,U200,R458,U193,L805,D723,L208,U600,L926,U614,R660,D183,L408,D834,R248,U354,L110,U391,L37,U599,L287,U28,R859,D936,L404,D952,R11,U20,R708,U218,L800,U750,R936,D213,R6,D844,R728,D391,R114,U406,R390,U791,L199,D397,R476,D583,R99,U419,R575,D836,L896,U780,L77,U964,R441,U723,R248,D170,R527,D94,L39,U645,L338,D728,R503,U641,L358,D287,R171,U368,R176,D986,R821,U912,L231,D206,L451,U900,L35,D490,R190,D180,L937,D500,R157,U989,L336,U202,R178,U52,R931,U306,L85,D866,R756,U715,L521,D977,R936,U4,R207,D384,L785,U138,L682,U488,L537,U250,L877,D446,R849,U35,R258,U784,R263,D494,L324,U601,R302,U473,L737,D143,R184,D967,R95,U51,L713,U733,R297,U740,R677,D715,R750,U143,L980,U260,R915,D535,R202,U460,R365,U956,L73,U441,R182,D982,L869,D755,L837,D933,L856,D341,R189,D519,L387,D144,R575,U682,R317,U838,R154,D201,R237,D410,L43,U853,L495,U983,L953,U220,R697,D592,R355,U377,R792,U824,L441,U783,R258,D955,R451,D178,L151,D435,L232,U923,L663,U283,L92,D229,R514
L995,U122,R472,U470,R725,U906,L83,U672,R448,U781,L997,U107,R66,D966,L780,D181,L662,U158,R804,D837,L237,U164,L98,U582,R925,D806,L153,D843,R601,U941,L968,D528,R482,D586,R15,U370,L592,U836,R828,U676,R606,D20,R841,U117,L262,U377,R375,U503,R166,D398,R161,D9,R140,D188,R895,D226,R77,U28,L727,D72,L51,U425,R370,D377,L801,D525,R102,D568,L416,D300,R415,U199,R941,U211,R285,U719,L259,U872,L959,U350,L196,D830,R515,U899,R298,U875,R946,U797,R108,U461,R999,D49,L369,D472,R83,D265,L825,D163,R162,U906,L816,D241,L587,D801,R601,D630,R937,U954,L379,D347,R831,D337,L192,D649,L853,U270,R162,D892,L26,D663,L276,U891,R843,U67,R225,D88,R686,U662,R794,D814,L200,D887,R567,U363,L863,U16,R975,D470,R714,U771,L267,D402,R75,U98,L686,U565,R584,D402,L824,D927,R71,U39,L174,D494,L358,D626,R616,D369,R471,U881,L428,U53,R862,U749,L847,D944,L887,D695,R442,U870,L993,U315,L878,U100,L480,D354,L12,D533,L236,D364,R450,U679,L926,D391,R313,D953,L560,D740,L974,D119,L370,U404,R339,U233,R901,U514,R584,D495,R308,U170,R759,U592,R388,U396,R477,U670,R906,D687,L874,U352,R124,U700,R289,D524,L93,D817,R408,D776,L235,D928,L534,D296,R116,U995,L63,D903,R758,U881,L530,U498,R573,D626,L26,U269,R237,U287,L840,D603,R948,D567,R89,U552,L299,D774,R863,D182,R773,D108,L137,U88,L731,U793,L267,U902,L41,U258,L156,U361,R389,D839,L976,U960,L342,D489,R816,U391,L393,U601,R255,D629,R832,U877,L34,D373,L809,D679,L104,U901,R157,U468,R143,U896,L637,D577,L545,D486,L970,D130,L305,D909,R984,D500,L935,U949,R525,D547,L786,U106,L269,D511,L919
"""
print("Sample:")
main(samp_inp, False)
print("Actual:")
main(real_inp, True)
| 67.75
| 1,476
| 0.724723
| 778
| 4,065
| 3.775064
| 0.825193
| 0.013619
| 0.006129
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.482038
| 0.082411
| 4,065
| 59
| 1,477
| 68.898305
| 0.305362
| 0.001722
| 0
| 0.044444
| 0
| 0.044444
| 0.749815
| 0.74316
| 0
| 0
| 0
| 0
| 0
| 1
| 0.066667
| false
| 0
| 0.222222
| 0
| 0.311111
| 0.111111
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
d697b8238c0da784f0f9c09b690ac6d1545ad685
| 95
|
py
|
Python
|
lib/FtsLib/FtsOperations.py
|
cgghali/TAF
|
1de8dec77ad781c373e18d9c285befd534ac203a
|
[
"Apache-2.0"
] | null | null | null |
lib/FtsLib/FtsOperations.py
|
cgghali/TAF
|
1de8dec77ad781c373e18d9c285befd534ac203a
|
[
"Apache-2.0"
] | null | null | null |
lib/FtsLib/FtsOperations.py
|
cgghali/TAF
|
1de8dec77ad781c373e18d9c285befd534ac203a
|
[
"Apache-2.0"
] | null | null | null |
from FtsLib.FtsOperations_Rest import CBASHelper as FtsLib
class FtsHelper(FtsLib):
pass
| 15.833333
| 58
| 0.8
| 12
| 95
| 6.25
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.157895
| 95
| 5
| 59
| 19
| 0.9375
| 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
| 0
| 0
|
0
| 5
|
d69820e71facc84cbec34c62db9ba68aaed6b989
| 338
|
py
|
Python
|
model.py
|
gmargari/pymvc
|
d7e9737b772905530b5ff8f04bcdbb343c3e2f5e
|
[
"MIT"
] | null | null | null |
model.py
|
gmargari/pymvc
|
d7e9737b772905530b5ff8f04bcdbb343c3e2f5e
|
[
"MIT"
] | null | null | null |
model.py
|
gmargari/pymvc
|
d7e9737b772905530b5ff8f04bcdbb343c3e2f5e
|
[
"MIT"
] | null | null | null |
from typing import List, Tuple
class Model(object):
def __init__(self) -> None:
pass
def add_object(self, object: str) -> None:
raise NotImplemented
def remove_object(self, object: str) -> None:
raise NotImplemented
def get_objects(self) -> List[Tuple[str, int]]:
raise NotImplemented
| 21.125
| 51
| 0.642012
| 41
| 338
| 5.121951
| 0.512195
| 0.271429
| 0.152381
| 0.180952
| 0.428571
| 0.428571
| 0.428571
| 0.428571
| 0
| 0
| 0
| 0
| 0.260355
| 338
| 15
| 52
| 22.533333
| 0.84
| 0
| 0
| 0.3
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.4
| false
| 0.1
| 0.1
| 0
| 0.6
| 0
| 0
| 0
| 0
| null | 1
| 0
| 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
| 1
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 5
|
d6a39f1428e678499ca7efe9f3eecad2510dec88
| 129
|
py
|
Python
|
institutions/admin.py
|
CASDON-MYSTERY/studentapp
|
0fd942e963a10a02a6c9f358dd362cfd646eecc3
|
[
"MIT"
] | null | null | null |
institutions/admin.py
|
CASDON-MYSTERY/studentapp
|
0fd942e963a10a02a6c9f358dd362cfd646eecc3
|
[
"MIT"
] | null | null | null |
institutions/admin.py
|
CASDON-MYSTERY/studentapp
|
0fd942e963a10a02a6c9f358dd362cfd646eecc3
|
[
"MIT"
] | null | null | null |
from django.contrib import admin
from .models import Institution
# Register your models here.
admin.site.register(Institution)
| 21.5
| 33
| 0.813953
| 17
| 129
| 6.176471
| 0.647059
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.124031
| 129
| 6
| 33
| 21.5
| 0.929204
| 0.20155
| 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 | 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
| 5
|
d6a819e43b4b6a33e171a678080f56e1af1ad39a
| 2,348
|
py
|
Python
|
words/dal_views.py
|
vanyh/handkeinzungen-app
|
8996b6aa2b6131f405f519c19aae245b0cf1298f
|
[
"MIT"
] | 1
|
2017-10-17T10:05:44.000Z
|
2017-10-17T10:05:44.000Z
|
words/dal_views.py
|
vanyh/handkeinzungen-app
|
8996b6aa2b6131f405f519c19aae245b0cf1298f
|
[
"MIT"
] | 15
|
2017-10-17T09:57:10.000Z
|
2021-12-13T19:48:46.000Z
|
words/dal_views.py
|
vanyh/handkeinzungen-app
|
8996b6aa2b6131f405f519c19aae245b0cf1298f
|
[
"MIT"
] | 1
|
2017-11-09T11:18:24.000Z
|
2017-11-09T11:18:24.000Z
|
from dal import autocomplete
from .models import GermanLemma, ForeignLemma, Quote
from vocabs.models import SkosConcept, SkosConceptScheme
from . import dal_views
class ForeignLemmaGermanAC(autocomplete.Select2QuerySetView):
def get_queryset(self):
qs = GermanLemma.objects.all()
if self.q:
qs = qs.filter(lemma__icontains=self.q)
return qs
class ForeignLemmaPOSAC(autocomplete.Select2QuerySetView):
def get_queryset(self):
try:
selected_scheme = SkosConceptScheme.objects.get(
dc_title='POS'
)
qs = SkosConcept.objects.filter(scheme=selected_scheme)
except:
qs = SkosConcept.objects.all()
if self.q:
qs = qs.filter(pref_label__icontains=self.q)
return qs
class ForeignLemmaLanguageAC(autocomplete.Select2QuerySetView):
def get_queryset(self):
try:
selected_scheme = SkosConceptScheme.objects.get(
dc_title='Sprachen'
)
qs = SkosConcept.objects.filter(scheme=selected_scheme)
except:
qs = SkosConcept.objects.all()
if self.q:
qs = qs.filter(pref_label__icontains=self.q)
return qs
class ForeignLemmaUsedInAC(autocomplete.Select2QuerySetView):
def get_queryset(self):
qs = Quote.objects.all()
if self.q:
qs = qs.filter(text__icontains=self.q)
return qs
class GermanLemmaPOSAC(autocomplete.Select2QuerySetView):
def get_queryset(self):
try:
selected_scheme = SkosConceptScheme.objects.get(
dc_title='POS'
)
qs = SkosConcept.objects.filter(scheme=selected_scheme)
except:
qs = SkosConcept.objects.all()
if self.q:
qs = qs.filter(pref_label__icontains=self.q)
return qs
class GermanLemmaLanguageAC(autocomplete.Select2QuerySetView):
def get_queryset(self):
try:
selected_scheme = SkosConceptScheme.objects.get(
dc_title='Sprachen'
)
qs = SkosConcept.objects.filter(scheme=selected_scheme)
except:
qs = SkosConcept.objects.all()
if self.q:
qs = qs.filter(pref_label__icontains=self.q)
return qs
| 24.715789
| 67
| 0.620528
| 236
| 2,348
| 6.025424
| 0.186441
| 0.042194
| 0.112518
| 0.156118
| 0.800985
| 0.800985
| 0.76301
| 0.69128
| 0.653305
| 0.653305
| 0
| 0.003643
| 0.298552
| 2,348
| 94
| 68
| 24.978723
| 0.859745
| 0
| 0
| 0.71875
| 0
| 0
| 0.00937
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.09375
| false
| 0
| 0.0625
| 0
| 0.34375
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 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
| 5
|
d6b27d261a07d85ea6008fec7538aebf435a8445
| 24,841
|
py
|
Python
|
nova/tests/unit/virt/vmwareapi/test_imagecache.py
|
bopopescu/nova-token
|
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
|
[
"Apache-2.0"
] | null | null | null |
nova/tests/unit/virt/vmwareapi/test_imagecache.py
|
bopopescu/nova-token
|
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
|
[
"Apache-2.0"
] | null | null | null |
nova/tests/unit/virt/vmwareapi/test_imagecache.py
|
bopopescu/nova-token
|
ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2
|
[
"Apache-2.0"
] | 2
|
2017-07-20T17:31:34.000Z
|
2020-07-24T02:42:19.000Z
|
begin_unit
comment|'# Copyright (c) 2014 VMware, Inc.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# http://www.apache.org/licenses/LICENSE-2.0'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Unless required by applicable law or agreed to in writing, software'
nl|'\n'
comment|'# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT'
nl|'\n'
comment|'# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the'
nl|'\n'
comment|'# License for the specific language governing permissions and limitations'
nl|'\n'
comment|'# under the License.'
nl|'\n'
nl|'\n'
name|'import'
name|'datetime'
newline|'\n'
nl|'\n'
name|'import'
name|'mock'
newline|'\n'
name|'from'
name|'oslo_config'
name|'import'
name|'cfg'
newline|'\n'
name|'from'
name|'oslo_utils'
name|'import'
name|'fixture'
name|'as'
name|'utils_fixture'
newline|'\n'
name|'from'
name|'oslo_vmware'
op|'.'
name|'objects'
name|'import'
name|'datastore'
name|'as'
name|'ds_obj'
newline|'\n'
name|'from'
name|'oslo_vmware'
name|'import'
name|'vim_util'
name|'as'
name|'vutil'
newline|'\n'
nl|'\n'
name|'from'
name|'nova'
name|'import'
name|'objects'
newline|'\n'
name|'from'
name|'nova'
name|'import'
name|'test'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'tests'
op|'.'
name|'unit'
name|'import'
name|'fake_instance'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'tests'
op|'.'
name|'unit'
op|'.'
name|'virt'
op|'.'
name|'vmwareapi'
name|'import'
name|'fake'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'tests'
name|'import'
name|'uuidsentinel'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'virt'
op|'.'
name|'vmwareapi'
name|'import'
name|'ds_util'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'virt'
op|'.'
name|'vmwareapi'
name|'import'
name|'imagecache'
newline|'\n'
nl|'\n'
DECL|variable|CONF
name|'CONF'
op|'='
name|'cfg'
op|'.'
name|'CONF'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|class|ImageCacheManagerTestCase
name|'class'
name|'ImageCacheManagerTestCase'
op|'('
name|'test'
op|'.'
name|'NoDBTestCase'
op|')'
op|':'
newline|'\n'
nl|'\n'
DECL|variable|REQUIRES_LOCKING
indent|' '
name|'REQUIRES_LOCKING'
op|'='
name|'True'
newline|'\n'
nl|'\n'
DECL|member|setUp
name|'def'
name|'setUp'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'super'
op|'('
name|'ImageCacheManagerTestCase'
op|','
name|'self'
op|')'
op|'.'
name|'setUp'
op|'('
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_session'
op|'='
name|'mock'
op|'.'
name|'Mock'
op|'('
name|'name'
op|'='
string|"'session'"
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_imagecache'
op|'='
name|'imagecache'
op|'.'
name|'ImageCacheManager'
op|'('
name|'self'
op|'.'
name|'_session'
op|','
nl|'\n'
string|"'fake-base-folder'"
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_time'
op|'='
name|'datetime'
op|'.'
name|'datetime'
op|'('
number|'2012'
op|','
number|'11'
op|','
number|'22'
op|','
number|'12'
op|','
number|'00'
op|','
number|'00'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_file_name'
op|'='
string|"'ts-2012-11-22-12-00-00'"
newline|'\n'
name|'fake'
op|'.'
name|'reset'
op|'('
op|')'
newline|'\n'
nl|'\n'
DECL|member|tearDown
dedent|''
name|'def'
name|'tearDown'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'super'
op|'('
name|'ImageCacheManagerTestCase'
op|','
name|'self'
op|')'
op|'.'
name|'tearDown'
op|'('
op|')'
newline|'\n'
name|'fake'
op|'.'
name|'reset'
op|'('
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_timestamp_cleanup
dedent|''
name|'def'
name|'test_timestamp_cleanup'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|fake_get_timestamp
indent|' '
name|'def'
name|'fake_get_timestamp'
op|'('
name|'ds_browser'
op|','
name|'ds_path'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'fake-ds-browser'"
op|','
name|'ds_browser'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'[fake-ds] fake-path'"
op|','
name|'str'
op|'('
name|'ds_path'
op|')'
op|')'
newline|'\n'
name|'if'
name|'not'
name|'self'
op|'.'
name|'exists'
op|':'
newline|'\n'
indent|' '
name|'return'
newline|'\n'
dedent|''
name|'ts'
op|'='
string|"'%s%s'"
op|'%'
op|'('
name|'imagecache'
op|'.'
name|'TIMESTAMP_PREFIX'
op|','
nl|'\n'
name|'self'
op|'.'
name|'_time'
op|'.'
name|'strftime'
op|'('
name|'imagecache'
op|'.'
name|'TIMESTAMP_FORMAT'
op|')'
op|')'
newline|'\n'
name|'return'
name|'ts'
newline|'\n'
nl|'\n'
dedent|''
name|'with'
name|'test'
op|'.'
name|'nested'
op|'('
nl|'\n'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'self'
op|'.'
name|'_imagecache'
op|','
string|"'_get_timestamp'"
op|','
nl|'\n'
name|'fake_get_timestamp'
op|')'
op|','
nl|'\n'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'ds_util'
op|','
string|"'file_delete'"
op|')'
nl|'\n'
op|')'
name|'as'
op|'('
name|'_get_timestamp'
op|','
name|'_file_delete'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'exists'
op|'='
name|'False'
newline|'\n'
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'timestamp_cleanup'
op|'('
nl|'\n'
string|"'fake-dc-ref'"
op|','
string|"'fake-ds-browser'"
op|','
nl|'\n'
name|'ds_obj'
op|'.'
name|'DatastorePath'
op|'('
string|"'fake-ds'"
op|','
string|"'fake-path'"
op|')'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
number|'0'
op|','
name|'_file_delete'
op|'.'
name|'call_count'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'exists'
op|'='
name|'True'
newline|'\n'
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'timestamp_cleanup'
op|'('
nl|'\n'
string|"'fake-dc-ref'"
op|','
string|"'fake-ds-browser'"
op|','
nl|'\n'
name|'ds_obj'
op|'.'
name|'DatastorePath'
op|'('
string|"'fake-ds'"
op|','
string|"'fake-path'"
op|')'
op|')'
newline|'\n'
name|'expected_ds_path'
op|'='
name|'ds_obj'
op|'.'
name|'DatastorePath'
op|'('
nl|'\n'
string|"'fake-ds'"
op|','
string|"'fake-path'"
op|','
name|'self'
op|'.'
name|'_file_name'
op|')'
newline|'\n'
name|'_file_delete'
op|'.'
name|'assert_called_once_with'
op|'('
name|'self'
op|'.'
name|'_session'
op|','
nl|'\n'
name|'expected_ds_path'
op|','
string|"'fake-dc-ref'"
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_get_timestamp
dedent|''
dedent|''
name|'def'
name|'test_get_timestamp'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|fake_get_sub_folders
indent|' '
name|'def'
name|'fake_get_sub_folders'
op|'('
name|'session'
op|','
name|'ds_browser'
op|','
name|'ds_path'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'fake-ds-browser'"
op|','
name|'ds_browser'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'[fake-ds] fake-path'"
op|','
name|'str'
op|'('
name|'ds_path'
op|')'
op|')'
newline|'\n'
name|'if'
name|'self'
op|'.'
name|'exists'
op|':'
newline|'\n'
indent|' '
name|'files'
op|'='
name|'set'
op|'('
op|')'
newline|'\n'
name|'files'
op|'.'
name|'add'
op|'('
name|'self'
op|'.'
name|'_file_name'
op|')'
newline|'\n'
name|'return'
name|'files'
newline|'\n'
nl|'\n'
dedent|''
dedent|''
name|'with'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'ds_util'
op|','
string|"'get_sub_folders'"
op|','
nl|'\n'
name|'fake_get_sub_folders'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'exists'
op|'='
name|'True'
newline|'\n'
name|'ts'
op|'='
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'_get_timestamp'
op|'('
nl|'\n'
string|"'fake-ds-browser'"
op|','
nl|'\n'
name|'ds_obj'
op|'.'
name|'DatastorePath'
op|'('
string|"'fake-ds'"
op|','
string|"'fake-path'"
op|')'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'self'
op|'.'
name|'_file_name'
op|','
name|'ts'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'exists'
op|'='
name|'False'
newline|'\n'
name|'ts'
op|'='
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'_get_timestamp'
op|'('
nl|'\n'
string|"'fake-ds-browser'"
op|','
nl|'\n'
name|'ds_obj'
op|'.'
name|'DatastorePath'
op|'('
string|"'fake-ds'"
op|','
string|"'fake-path'"
op|')'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertIsNone'
op|'('
name|'ts'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_get_timestamp_filename
dedent|''
dedent|''
name|'def'
name|'test_get_timestamp_filename'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'useFixture'
op|'('
name|'utils_fixture'
op|'.'
name|'TimeFixture'
op|'('
name|'self'
op|'.'
name|'_time'
op|')'
op|')'
newline|'\n'
name|'fn'
op|'='
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'_get_timestamp_filename'
op|'('
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'self'
op|'.'
name|'_file_name'
op|','
name|'fn'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_get_datetime_from_filename
dedent|''
name|'def'
name|'test_get_datetime_from_filename'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'t'
op|'='
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'_get_datetime_from_filename'
op|'('
name|'self'
op|'.'
name|'_file_name'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'self'
op|'.'
name|'_time'
op|','
name|'t'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_get_ds_browser
dedent|''
name|'def'
name|'test_get_ds_browser'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
indent|' '
name|'cache'
op|'='
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'_ds_browser'
newline|'\n'
name|'ds_browser'
op|'='
name|'mock'
op|'.'
name|'Mock'
op|'('
op|')'
newline|'\n'
name|'moref'
op|'='
name|'fake'
op|'.'
name|'ManagedObjectReference'
op|'('
string|"'datastore-100'"
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertIsNone'
op|'('
name|'cache'
op|'.'
name|'get'
op|'('
name|'moref'
op|'.'
name|'value'
op|')'
op|')'
newline|'\n'
name|'mock_get_method'
op|'='
name|'mock'
op|'.'
name|'Mock'
op|'('
name|'return_value'
op|'='
name|'ds_browser'
op|')'
newline|'\n'
name|'with'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'vutil'
op|','
string|"'get_object_property'"
op|','
name|'mock_get_method'
op|')'
op|':'
newline|'\n'
indent|' '
name|'ret'
op|'='
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'_get_ds_browser'
op|'('
name|'moref'
op|')'
newline|'\n'
name|'mock_get_method'
op|'.'
name|'assert_called_once_with'
op|'('
name|'mock'
op|'.'
name|'ANY'
op|','
name|'moref'
op|','
string|"'browser'"
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertIs'
op|'('
name|'ds_browser'
op|','
name|'ret'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertIs'
op|'('
name|'ds_browser'
op|','
name|'cache'
op|'.'
name|'get'
op|'('
name|'moref'
op|'.'
name|'value'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_list_base_images
dedent|''
dedent|''
name|'def'
name|'test_list_base_images'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|fake_get_object_property
indent|' '
name|'def'
name|'fake_get_object_property'
op|'('
name|'vim'
op|','
name|'mobj'
op|','
name|'property_name'
op|')'
op|':'
newline|'\n'
indent|' '
name|'return'
string|"'fake-ds-browser'"
newline|'\n'
nl|'\n'
DECL|function|fake_get_sub_folders
dedent|''
name|'def'
name|'fake_get_sub_folders'
op|'('
name|'session'
op|','
name|'ds_browser'
op|','
name|'ds_path'
op|')'
op|':'
newline|'\n'
indent|' '
name|'files'
op|'='
name|'set'
op|'('
op|')'
newline|'\n'
name|'files'
op|'.'
name|'add'
op|'('
string|"'image-ref-uuid'"
op|')'
newline|'\n'
name|'return'
name|'files'
newline|'\n'
nl|'\n'
dedent|''
name|'with'
name|'test'
op|'.'
name|'nested'
op|'('
nl|'\n'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'vutil'
op|','
string|"'get_object_property'"
op|','
nl|'\n'
name|'fake_get_object_property'
op|')'
op|','
nl|'\n'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'ds_util'
op|','
string|"'get_sub_folders'"
op|','
nl|'\n'
name|'fake_get_sub_folders'
op|')'
nl|'\n'
op|')'
name|'as'
op|'('
name|'_get_dynamic'
op|','
name|'_get_sub_folders'
op|')'
op|':'
newline|'\n'
indent|' '
name|'fake_ds_ref'
op|'='
name|'fake'
op|'.'
name|'ManagedObjectReference'
op|'('
string|"'fake-ds-ref'"
op|')'
newline|'\n'
name|'datastore'
op|'='
name|'ds_obj'
op|'.'
name|'Datastore'
op|'('
name|'name'
op|'='
string|"'ds'"
op|','
name|'ref'
op|'='
name|'fake_ds_ref'
op|')'
newline|'\n'
name|'ds_path'
op|'='
name|'datastore'
op|'.'
name|'build_path'
op|'('
string|"'base_folder'"
op|')'
newline|'\n'
name|'images'
op|'='
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'_list_datastore_images'
op|'('
nl|'\n'
name|'ds_path'
op|','
name|'datastore'
op|')'
newline|'\n'
name|'originals'
op|'='
name|'set'
op|'('
op|')'
newline|'\n'
name|'originals'
op|'.'
name|'add'
op|'('
string|"'image-ref-uuid'"
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
op|'{'
string|"'originals'"
op|':'
name|'originals'
op|','
nl|'\n'
string|"'unexplained_images'"
op|':'
op|'['
op|']'
op|'}'
op|','
nl|'\n'
name|'images'
op|')'
newline|'\n'
nl|'\n'
dedent|''
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'imagecache'
op|'.'
name|'ImageCacheManager'
op|','
string|"'timestamp_folder_get'"
op|')'
newline|'\n'
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'imagecache'
op|'.'
name|'ImageCacheManager'
op|','
string|"'timestamp_cleanup'"
op|')'
newline|'\n'
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'imagecache'
op|'.'
name|'ImageCacheManager'
op|','
string|"'_get_ds_browser'"
op|')'
newline|'\n'
DECL|member|test_enlist_image
name|'def'
name|'test_enlist_image'
op|'('
name|'self'
op|','
nl|'\n'
name|'mock_get_ds_browser'
op|','
nl|'\n'
name|'mock_timestamp_cleanup'
op|','
nl|'\n'
name|'mock_timestamp_folder_get'
op|')'
op|':'
newline|'\n'
indent|' '
name|'image_id'
op|'='
string|'"fake_image_id"'
newline|'\n'
name|'dc_ref'
op|'='
string|'"fake_dc_ref"'
newline|'\n'
name|'fake_ds_ref'
op|'='
name|'mock'
op|'.'
name|'Mock'
op|'('
op|')'
newline|'\n'
name|'ds'
op|'='
name|'ds_obj'
op|'.'
name|'Datastore'
op|'('
nl|'\n'
name|'ref'
op|'='
name|'fake_ds_ref'
op|','
name|'name'
op|'='
string|"'fake_ds'"
op|','
nl|'\n'
name|'capacity'
op|'='
number|'1'
op|','
nl|'\n'
name|'freespace'
op|'='
number|'1'
op|')'
newline|'\n'
nl|'\n'
name|'ds_browser'
op|'='
name|'mock'
op|'.'
name|'Mock'
op|'('
op|')'
newline|'\n'
name|'mock_get_ds_browser'
op|'.'
name|'return_value'
op|'='
name|'ds_browser'
newline|'\n'
name|'timestamp_folder_path'
op|'='
name|'mock'
op|'.'
name|'Mock'
op|'('
op|')'
newline|'\n'
name|'mock_timestamp_folder_get'
op|'.'
name|'return_value'
op|'='
name|'timestamp_folder_path'
newline|'\n'
nl|'\n'
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'enlist_image'
op|'('
name|'image_id'
op|','
name|'ds'
op|','
name|'dc_ref'
op|')'
newline|'\n'
nl|'\n'
name|'cache_root_folder'
op|'='
name|'ds'
op|'.'
name|'build_path'
op|'('
string|'"fake-base-folder"'
op|')'
newline|'\n'
name|'mock_get_ds_browser'
op|'.'
name|'assert_called_once_with'
op|'('
nl|'\n'
name|'ds'
op|'.'
name|'ref'
op|')'
newline|'\n'
name|'mock_timestamp_folder_get'
op|'.'
name|'assert_called_once_with'
op|'('
nl|'\n'
name|'cache_root_folder'
op|','
string|'"fake_image_id"'
op|')'
newline|'\n'
name|'mock_timestamp_cleanup'
op|'.'
name|'assert_called_once_with'
op|'('
nl|'\n'
name|'dc_ref'
op|','
name|'ds_browser'
op|','
name|'timestamp_folder_path'
op|')'
newline|'\n'
nl|'\n'
DECL|member|test_age_cached_images
dedent|''
name|'def'
name|'test_age_cached_images'
op|'('
name|'self'
op|')'
op|':'
newline|'\n'
DECL|function|fake_get_ds_browser
indent|' '
name|'def'
name|'fake_get_ds_browser'
op|'('
name|'ds_ref'
op|')'
op|':'
newline|'\n'
indent|' '
name|'return'
string|"'fake-ds-browser'"
newline|'\n'
nl|'\n'
DECL|function|fake_get_timestamp
dedent|''
name|'def'
name|'fake_get_timestamp'
op|'('
name|'ds_browser'
op|','
name|'ds_path'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'_get_timestamp_called'
op|'+='
number|'1'
newline|'\n'
name|'path'
op|'='
name|'str'
op|'('
name|'ds_path'
op|')'
newline|'\n'
name|'if'
name|'path'
op|'=='
string|"'[fake-ds] fake-path/fake-image-1'"
op|':'
newline|'\n'
comment|'# No time stamp exists'
nl|'\n'
indent|' '
name|'return'
newline|'\n'
dedent|''
name|'if'
name|'path'
op|'=='
string|"'[fake-ds] fake-path/fake-image-2'"
op|':'
newline|'\n'
comment|'# Timestamp that will be valid => no deletion'
nl|'\n'
indent|' '
name|'return'
string|"'ts-2012-11-22-10-00-00'"
newline|'\n'
dedent|''
name|'if'
name|'path'
op|'=='
string|"'[fake-ds] fake-path/fake-image-3'"
op|':'
newline|'\n'
comment|'# Timestamp that will be invalid => deletion'
nl|'\n'
indent|' '
name|'return'
string|"'ts-2012-11-20-12-00-00'"
newline|'\n'
dedent|''
name|'self'
op|'.'
name|'fail'
op|'('
op|')'
newline|'\n'
nl|'\n'
DECL|function|fake_mkdir
dedent|''
name|'def'
name|'fake_mkdir'
op|'('
name|'session'
op|','
name|'ts_path'
op|','
name|'dc_ref'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
nl|'\n'
string|"'[fake-ds] fake-path/fake-image-1/ts-2012-11-22-12-00-00'"
op|','
nl|'\n'
name|'str'
op|'('
name|'ts_path'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|function|fake_file_delete
dedent|''
name|'def'
name|'fake_file_delete'
op|'('
name|'session'
op|','
name|'ds_path'
op|','
name|'dc_ref'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'[fake-ds] fake-path/fake-image-3'"
op|','
name|'str'
op|'('
name|'ds_path'
op|')'
op|')'
newline|'\n'
nl|'\n'
DECL|function|fake_timestamp_cleanup
dedent|''
name|'def'
name|'fake_timestamp_cleanup'
op|'('
name|'dc_ref'
op|','
name|'ds_browser'
op|','
name|'ds_path'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'[fake-ds] fake-path/fake-image-4'"
op|','
name|'str'
op|'('
name|'ds_path'
op|')'
op|')'
newline|'\n'
nl|'\n'
dedent|''
name|'with'
name|'test'
op|'.'
name|'nested'
op|'('
nl|'\n'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'self'
op|'.'
name|'_imagecache'
op|','
string|"'_get_ds_browser'"
op|','
nl|'\n'
name|'fake_get_ds_browser'
op|')'
op|','
nl|'\n'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'self'
op|'.'
name|'_imagecache'
op|','
string|"'_get_timestamp'"
op|','
nl|'\n'
name|'fake_get_timestamp'
op|')'
op|','
nl|'\n'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'ds_util'
op|','
string|"'mkdir'"
op|','
nl|'\n'
name|'fake_mkdir'
op|')'
op|','
nl|'\n'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'ds_util'
op|','
string|"'file_delete'"
op|','
nl|'\n'
name|'fake_file_delete'
op|')'
op|','
nl|'\n'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'self'
op|'.'
name|'_imagecache'
op|','
string|"'timestamp_cleanup'"
op|','
nl|'\n'
name|'fake_timestamp_cleanup'
op|')'
op|','
nl|'\n'
op|')'
name|'as'
op|'('
name|'_get_ds_browser'
op|','
name|'_get_timestamp'
op|','
name|'_mkdir'
op|','
name|'_file_delete'
op|','
nl|'\n'
name|'_timestamp_cleanup'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'useFixture'
op|'('
name|'utils_fixture'
op|'.'
name|'TimeFixture'
op|'('
name|'self'
op|'.'
name|'_time'
op|')'
op|')'
newline|'\n'
name|'datastore'
op|'='
name|'ds_obj'
op|'.'
name|'Datastore'
op|'('
name|'name'
op|'='
string|"'ds'"
op|','
name|'ref'
op|'='
string|"'fake-ds-ref'"
op|')'
newline|'\n'
name|'dc_info'
op|'='
name|'ds_util'
op|'.'
name|'DcInfo'
op|'('
name|'ref'
op|'='
string|"'dc_ref'"
op|','
name|'name'
op|'='
string|"'name'"
op|','
nl|'\n'
name|'vmFolder'
op|'='
string|"'vmFolder'"
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_get_timestamp_called'
op|'='
number|'0'
newline|'\n'
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'originals'
op|'='
name|'set'
op|'('
op|'['
string|"'fake-image-1'"
op|','
string|"'fake-image-2'"
op|','
nl|'\n'
string|"'fake-image-3'"
op|','
string|"'fake-image-4'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'used_images'
op|'='
name|'set'
op|'('
op|'['
string|"'fake-image-4'"
op|']'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'_age_cached_images'
op|'('
nl|'\n'
string|"'fake-context'"
op|','
name|'datastore'
op|','
name|'dc_info'
op|','
nl|'\n'
name|'ds_obj'
op|'.'
name|'DatastorePath'
op|'('
string|"'fake-ds'"
op|','
string|"'fake-path'"
op|')'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
number|'3'
op|','
name|'self'
op|'.'
name|'_get_timestamp_called'
op|')'
newline|'\n'
nl|'\n'
dedent|''
dedent|''
op|'@'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'objects'
op|'.'
name|'block_device'
op|'.'
name|'BlockDeviceMappingList'
op|','
nl|'\n'
string|"'bdms_by_instance_uuid'"
op|','
name|'return_value'
op|'='
op|'{'
op|'}'
op|')'
newline|'\n'
DECL|member|test_update
name|'def'
name|'test_update'
op|'('
name|'self'
op|','
name|'mock_bdms_by_inst'
op|')'
op|':'
newline|'\n'
DECL|function|fake_list_datastore_images
indent|' '
name|'def'
name|'fake_list_datastore_images'
op|'('
name|'ds_path'
op|','
name|'datastore'
op|')'
op|':'
newline|'\n'
indent|' '
name|'return'
op|'{'
string|"'unexplained_images'"
op|':'
op|'['
op|']'
op|','
nl|'\n'
string|"'originals'"
op|':'
name|'self'
op|'.'
name|'images'
op|'}'
newline|'\n'
nl|'\n'
DECL|function|fake_age_cached_images
dedent|''
name|'def'
name|'fake_age_cached_images'
op|'('
name|'context'
op|','
name|'datastore'
op|','
nl|'\n'
name|'dc_info'
op|','
name|'ds_path'
op|')'
op|':'
newline|'\n'
indent|' '
name|'self'
op|'.'
name|'assertEqual'
op|'('
string|"'[ds] fake-base-folder'"
op|','
name|'str'
op|'('
name|'ds_path'
op|')'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'self'
op|'.'
name|'images'
op|','
nl|'\n'
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'used_images'
op|')'
newline|'\n'
name|'self'
op|'.'
name|'assertEqual'
op|'('
name|'self'
op|'.'
name|'images'
op|','
nl|'\n'
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'originals'
op|')'
newline|'\n'
nl|'\n'
dedent|''
name|'with'
name|'test'
op|'.'
name|'nested'
op|'('
nl|'\n'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'self'
op|'.'
name|'_imagecache'
op|','
string|"'_list_datastore_images'"
op|','
nl|'\n'
name|'fake_list_datastore_images'
op|')'
op|','
nl|'\n'
name|'mock'
op|'.'
name|'patch'
op|'.'
name|'object'
op|'('
name|'self'
op|'.'
name|'_imagecache'
op|','
nl|'\n'
string|"'_age_cached_images'"
op|','
nl|'\n'
name|'fake_age_cached_images'
op|')'
nl|'\n'
op|')'
name|'as'
op|'('
name|'_list_base'
op|','
name|'_age_and_verify'
op|')'
op|':'
newline|'\n'
indent|' '
name|'instances'
op|'='
op|'['
op|'{'
string|"'image_ref'"
op|':'
string|"'1'"
op|','
nl|'\n'
string|"'host'"
op|':'
name|'CONF'
op|'.'
name|'host'
op|','
nl|'\n'
string|"'name'"
op|':'
string|"'inst-1'"
op|','
nl|'\n'
string|"'uuid'"
op|':'
name|'uuidsentinel'
op|'.'
name|'foo'
op|','
nl|'\n'
string|"'vm_state'"
op|':'
string|"''"
op|','
nl|'\n'
string|"'task_state'"
op|':'
string|"''"
op|'}'
op|','
nl|'\n'
op|'{'
string|"'image_ref'"
op|':'
string|"'2'"
op|','
nl|'\n'
string|"'host'"
op|':'
name|'CONF'
op|'.'
name|'host'
op|','
nl|'\n'
string|"'name'"
op|':'
string|"'inst-2'"
op|','
nl|'\n'
string|"'uuid'"
op|':'
name|'uuidsentinel'
op|'.'
name|'bar'
op|','
nl|'\n'
string|"'vm_state'"
op|':'
string|"''"
op|','
nl|'\n'
string|"'task_state'"
op|':'
string|"''"
op|'}'
op|']'
newline|'\n'
name|'all_instances'
op|'='
op|'['
name|'fake_instance'
op|'.'
name|'fake_instance_obj'
op|'('
name|'None'
op|','
op|'**'
name|'instance'
op|')'
nl|'\n'
name|'for'
name|'instance'
name|'in'
name|'instances'
op|']'
newline|'\n'
name|'self'
op|'.'
name|'images'
op|'='
name|'set'
op|'('
op|'['
string|"'1'"
op|','
string|"'2'"
op|']'
op|')'
newline|'\n'
name|'datastore'
op|'='
name|'ds_obj'
op|'.'
name|'Datastore'
op|'('
name|'name'
op|'='
string|"'ds'"
op|','
name|'ref'
op|'='
string|"'fake-ds-ref'"
op|')'
newline|'\n'
name|'dc_info'
op|'='
name|'ds_util'
op|'.'
name|'DcInfo'
op|'('
name|'ref'
op|'='
string|"'dc_ref'"
op|','
name|'name'
op|'='
string|"'name'"
op|','
nl|'\n'
name|'vmFolder'
op|'='
string|"'vmFolder'"
op|')'
newline|'\n'
name|'datastores_info'
op|'='
op|'['
op|'('
name|'datastore'
op|','
name|'dc_info'
op|')'
op|']'
newline|'\n'
name|'self'
op|'.'
name|'_imagecache'
op|'.'
name|'update'
op|'('
string|"'context'"
op|','
name|'all_instances'
op|','
name|'datastores_info'
op|')'
newline|'\n'
dedent|''
dedent|''
dedent|''
endmarker|''
end_unit
| 12.5333
| 88
| 0.601828
| 3,731
| 24,841
| 3.886626
| 0.062182
| 0.168402
| 0.079305
| 0.071443
| 0.848562
| 0.803669
| 0.714985
| 0.656369
| 0.578512
| 0.530377
| 0
| 0.004655
| 0.10064
| 24,841
| 1,981
| 89
| 12.539626
| 0.644421
| 0
| 0
| 0.936396
| 0
| 0.000505
| 0.375025
| 0.049434
| 0
| 0
| 0
| 0
| 0.01262
| 0
| null | null | 0
| 0.006562
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
d6f1b0e37c84862dd285e29fc25c70595f4a7b91
| 45
|
py
|
Python
|
016-Power digit sum/16-Power digit sum-BAHADIR54.py
|
BAHADIR54/project_euler
|
9631e3a1a38b2360dc7905054d7d00e84ff78ddf
|
[
"MIT"
] | 8
|
2021-05-04T17:53:04.000Z
|
2021-06-21T10:47:48.000Z
|
016-Power digit sum/16-Power digit sum-BAHADIR54.py
|
BAHADIR54/project-euler-me
|
9631e3a1a38b2360dc7905054d7d00e84ff78ddf
|
[
"MIT"
] | null | null | null |
016-Power digit sum/16-Power digit sum-BAHADIR54.py
|
BAHADIR54/project-euler-me
|
9631e3a1a38b2360dc7905054d7d00e84ff78ddf
|
[
"MIT"
] | 1
|
2021-05-04T18:01:40.000Z
|
2021-05-04T18:01:40.000Z
|
print(sum([int(a)for a in str(pow(2,1000))]))
| 45
| 45
| 0.644444
| 11
| 45
| 2.636364
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119048
| 0.066667
| 45
| 1
| 45
| 45
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 5
|
ba72cc747f470f17e875f945f3c488b7eb36240b
| 32,792
|
py
|
Python
|
tests/SymSpellCppPyTest.py
|
deltalite/SymSpellCppPy
|
7c749fa59a9fa5c73b27f7e622db3261f5b20730
|
[
"Apache-2.0"
] | null | null | null |
tests/SymSpellCppPyTest.py
|
deltalite/SymSpellCppPy
|
7c749fa59a9fa5c73b27f7e622db3261f5b20730
|
[
"Apache-2.0"
] | null | null | null |
tests/SymSpellCppPyTest.py
|
deltalite/SymSpellCppPy
|
7c749fa59a9fa5c73b27f7e622db3261f5b20730
|
[
"Apache-2.0"
] | null | null | null |
import unittest
from SymSpellCppPy import SymSpell, Verbosity, SuggestItem
import os
import sys
class SymSpellCppPyTests(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.symSpell = SymSpell()
cls.symSpell.load_dictionary("resources/frequency_dictionary_en_82_765.txt", 0, 1, " ")
cls.fortests_path = "tests/fortests"
cls.dictionary_path = "resources/frequency_dictionary_en_82_765.txt"
cls.bigram_path = "resources/frequency_bigramdictionary_en_243_342.txt"
def test_negative_max_dictionary_edit_distance(self):
self.assertRaisesRegex(ValueError, ".*max_dictionary_edit_distance cannot be negative.*",
SymSpell, -1, 3)
def test_invalid_prefix_length(self):
self.assertRaisesRegex(ValueError, ".*prefix_length.*", SymSpell, 1, 0)
self.assertRaisesRegex(ValueError, ".*prefix_length.*", SymSpell, 1, -1)
self.assertRaisesRegex(ValueError, ".*prefix_length.*", SymSpell, 2, 2)
def test_negative_count_threshold(self):
self.assertRaisesRegex(ValueError, ".*count_threshold.*", SymSpell, 1, 3, -1)
def test_create_dictionary_entry_negative_count(self):
sym_spell = SymSpell(1, 3)
self.assertEqual(False, sym_spell.create_dictionary_entry("pipe", 0))
self.assertEqual(False,
sym_spell.create_dictionary_entry("pipe", -1))
sym_spell = SymSpell(1, 3, count_threshold=0)
self.assertEqual(True, sym_spell.create_dictionary_entry("pipe", 0))
def test_deletes(self):
sym_spell = SymSpell()
sym_spell.create_dictionary_entry("steama", 4)
sym_spell.create_dictionary_entry("steamb", 6)
sym_spell.create_dictionary_entry("steamc", 2)
result = sym_spell.lookup("stream", Verbosity.TOP, 2)
self.assertEqual(1, len(result))
self.assertEqual("steamb", result[0].term)
self.assertEqual(6, result[0].count)
self.assertTrue(sym_spell.entry_count())
def test_words_with_shared_prefix_should_retain_counts(self):
sym_spell = SymSpell(1, 3)
sym_spell.create_dictionary_entry("pipe", 5)
sym_spell.create_dictionary_entry("pips", 10)
result = sym_spell.lookup("pipe", Verbosity.ALL, 1)
self.assertEqual(2, len(result))
self.assertEqual("pipe", result[0].term)
self.assertEqual(5, result[0].count)
self.assertEqual("pips", result[1].term)
self.assertEqual(10, result[1].count)
result = sym_spell.lookup("pips", Verbosity.ALL, 1)
self.assertEqual(2, len(result))
self.assertEqual("pips", result[0].term)
self.assertEqual(10, result[0].count)
self.assertEqual("pipe", result[1].term)
self.assertEqual(5, result[1].count)
result = sym_spell.lookup("pip", Verbosity.ALL, 1)
self.assertEqual(2, len(result))
self.assertEqual("pips", result[0].term)
self.assertEqual(10, result[0].count)
self.assertEqual("pipe", result[1].term)
self.assertEqual(5, result[1].count)
def test_add_additional_counts_should_not_add_word_again(self):
sym_spell = SymSpell()
word = "hello"
sym_spell.create_dictionary_entry(word, 11)
self.assertEqual(1, sym_spell.word_count())
sym_spell.create_dictionary_entry(word, 3)
self.assertEqual(1, sym_spell.word_count())
def test_add_additional_counts_should_increase_count(self):
sym_spell = SymSpell()
word = "hello"
sym_spell.create_dictionary_entry(word, 11)
result = sym_spell.lookup(word, Verbosity.ALL)
count = result[0].count if len(result) == 1 else 0
self.assertEqual(11, count)
sym_spell.create_dictionary_entry(word, 3)
result = sym_spell.lookup(word, Verbosity.ALL)
count = result[0].count if len(result) == 1 else 0
self.assertEqual(11 + 3, count)
def test_add_additional_counts_should_not_overflow(self):
sym_spell = SymSpell()
word = "hello"
sym_spell.create_dictionary_entry(word, sys.maxsize - 10)
result = sym_spell.lookup(word, Verbosity.ALL)
count = result[0].count if len(result) == 1 else 0
self.assertEqual(sys.maxsize - 10, count)
sym_spell.create_dictionary_entry(word, 11)
result = sym_spell.lookup(word, Verbosity.ALL)
count = result[0].count if len(result) == 1 else 0
self.assertEqual(sys.maxsize, count)
def test_verbosity_should_control_lookup_results(self):
sym_spell = SymSpell()
sym_spell.create_dictionary_entry("steam", 1)
sym_spell.create_dictionary_entry("steams", 2)
sym_spell.create_dictionary_entry("steem", 3)
result = sym_spell.lookup("steems", Verbosity.TOP, 2)
self.assertEqual(1, len(result))
result = sym_spell.lookup("steems", Verbosity.CLOSEST, 2)
self.assertEqual(2, len(result))
result = sym_spell.lookup("steems", Verbosity.ALL, 2)
self.assertEqual(3, len(result))
def test_lookup_should_return_most_frequent(self):
sym_spell = SymSpell()
sym_spell.create_dictionary_entry("steama", 4)
sym_spell.create_dictionary_entry("steamb", 6)
sym_spell.create_dictionary_entry("steamc", 2)
result = sym_spell.lookup("stream", Verbosity.TOP, 2)
self.assertEqual(1, len(result))
self.assertEqual("steamb", result[0].term)
self.assertEqual(6, result[0].count)
def test_lookup_should_find_exact_match(self):
sym_spell = SymSpell()
sym_spell.create_dictionary_entry("steama", 4)
sym_spell.create_dictionary_entry("steamb", 6)
sym_spell.create_dictionary_entry("steamc", 2)
result = sym_spell.lookup("streama", Verbosity.TOP, 2)
self.assertEqual(1, len(result))
self.assertEqual("steama", result[0].term)
def test_lookup_should_not_return_non_word_delete(self):
sym_spell = SymSpell(2, 7, 10)
sym_spell.create_dictionary_entry("pawn", 10)
result = sym_spell.lookup("paw", Verbosity.TOP, 0)
self.assertEqual(0, len(result))
result = sym_spell.lookup("awn", Verbosity.TOP, 0)
self.assertEqual(0, len(result))
def test_lookup_should_not_return_low_count_word(self):
sym_spell = SymSpell(2, 7, 10)
sym_spell.create_dictionary_entry("pawn", 1)
result = sym_spell.lookup("pawn", Verbosity.TOP, 0)
self.assertEqual(0, len(result))
def test_lookup_should_not_return_low_count_word_that_are_also_delete_word(self):
sym_spell = SymSpell(2, 7, 10)
sym_spell.create_dictionary_entry("flame", 20)
sym_spell.create_dictionary_entry("flam", 1)
result = sym_spell.lookup("flam", Verbosity.TOP, 0)
self.assertEqual(0, len(result))
def test_lookup_max_edit_distance_too_large(self):
sym_spell = SymSpell(2, 7, 10)
sym_spell.create_dictionary_entry("flame", 20)
sym_spell.create_dictionary_entry("flam", 1)
self.assertRaisesRegex(ValueError, ".*Distance too large.*", sym_spell.lookup, "flam",
Verbosity.TOP, 3)
def test_lookup_include_unknown(self):
sym_spell = SymSpell(2, 7, 10)
sym_spell.create_dictionary_entry("flame", 20)
sym_spell.create_dictionary_entry("flam", 1)
result = sym_spell.lookup("flam", Verbosity.TOP, 0, True)
self.assertEqual(1, len(result))
self.assertEqual("flam", result[0].term)
def test_load_bigram_dictionary_invalid_path(self):
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
self.assertEqual(False, sym_spell.load_bigram_dictionary(
"invalid/dictionary/path.txt", 0, 2))
def test_loading_dictionary_from_fileobject(self):
big_words_path = os.path.join(self.fortests_path, "big_words.txt")
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
self.assertEqual(True, sym_spell.create_dictionary(big_words_path))
def test_load_bigram_dictionary_bad_dict(self):
dictionary_path = os.path.join(self.fortests_path,
"bad_dict.txt")
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
self.assertEqual(True, sym_spell.load_bigram_dictionary(
dictionary_path, 0, 2))
def test_load_bigram_dictionary_separator(self):
dictionary_path = os.path.join(self.fortests_path,
"separator_dict.txt")
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
self.assertEqual(True, sym_spell.load_bigram_dictionary(
dictionary_path, 0, 1, "$"))
def test_load_dictionary_invalid_path(self):
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
self.assertEqual(False, sym_spell.load_dictionary(
"invalid/dictionary/path.txt", 0, 1))
def test_load_dictionary_bad_dictionary(self):
dictionary_path = os.path.join(self.fortests_path, "bad_dict.txt")
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
self.assertEqual(True, sym_spell.load_dictionary(
dictionary_path, 0, 1))
self.assertEqual(7, sym_spell.word_count())
def test_load_dictionary_separator(self):
dictionary_path = os.path.join(self.fortests_path,
"separator_dict.txt")
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
self.assertEqual(True, sym_spell.load_dictionary(
dictionary_path, 0, 1, "$"))
self.assertEqual(5, sym_spell.word_count())
def test_lookup_should_replicate_noisy_results(self):
query_path = os.path.join(self.fortests_path,
"noisy_query_en_1000.txt")
edit_distance_max = 2
prefix_length = 7
verbosity = Verbosity.CLOSEST
test_list = []
with open(query_path, "r") as infile:
for line in infile.readlines():
line_parts = line.rstrip().split(" ")
if len(line_parts) >= 2:
test_list.append(line_parts[0])
result_sum = 0
for phrase in test_list:
result_sum += len(self.symSpell.lookup(phrase, verbosity,
edit_distance_max))
self.assertEqual(4945, result_sum)
def test_lookup_compound(self):
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.load_dictionary(self.dictionary_path, 0, 1)
sym_spell.load_bigram_dictionary(self.bigram_path, 0, 2)
typo = "whereis th elove"
correction = "where is the love"
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(2, results[0].distance)
self.assertEqual(585, results[0].count)
typo = "the bigjest playrs"
correction = "the biggest players"
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(2, results[0].distance)
self.assertEqual(34, results[0].count)
typo = "can yu readthis"
correction = "can you read this"
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(2, results[0].distance)
self.assertEqual(11440, results[0].count)
typo = ("whereis th elove hehad dated forImuch of thepast who "
"couqdn'tread in sixthgrade and ins pired him")
correction = ("where is the love he had dated for much of the past "
"who couldn't read in sixth grade and inspired him")
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(9, results[0].distance)
self.assertEqual(0, results[0].count)
typo = "in te dhird qarter oflast jear he hadlearned ofca sekretplan"
correction = ("in the third quarter of last year he had learned of a "
"secret plan")
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(9, results[0].distance)
self.assertEqual(0, results[0].count)
typo = ("the bigjest playrs in te strogsommer film slatew ith plety "
"of funn")
correction = ("the biggest players in the strong summer film slate "
"with plenty of fun")
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(9, results[0].distance)
self.assertEqual(0, results[0].count)
typo = ("can yu readthis messa ge despite thehorible sppelingmsitakes")
correction = ("can you read this message despite the horrible "
"spelling mistakes")
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(9, results[0].distance)
self.assertEqual(0, results[0].count)
def test_lookup_compound_no_bigram(self):
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.load_dictionary(self.dictionary_path, 0, 1)
typo = "whereis th elove"
correction = "whereas the love"
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(2, results[0].distance)
self.assertEqual(64, results[0].count)
typo = "the bigjest playrs"
correction = "the biggest players"
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(2, results[0].distance)
self.assertEqual(34, results[0].count)
typo = "can yu readthis"
correction = "can you read this"
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(2, results[0].distance)
self.assertEqual(3, results[0].count)
typo = ("whereis th elove hehad dated forImuch of thepast who "
"couqdn'tread in sixthgrade and ins pired him")
correction = ("whereas the love head dated for much of the past who "
"couldn't read in sixth grade and inspired him")
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(9, results[0].distance)
self.assertEqual(0, results[0].count)
typo = "in te dhird qarter oflast jear he hadlearned ofca sekretplan"
correction = ("in the third quarter of last year he had learned of "
"a secret plan")
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(9, results[0].distance)
self.assertEqual(0, results[0].count)
typo = ("the bigjest playrs in te strogsommer film slatew ith plety "
"of funn")
correction = ("the biggest players in the strong summer film slate "
"with plenty of fun")
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(9, results[0].distance)
self.assertEqual(0, results[0].count)
typo = ("can yu readthis messa ge despite thehorible sppelingmsitakes")
correction = ("can you read this message despite the horrible "
"spelling mistakes")
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
self.assertEqual(9, results[0].distance)
self.assertEqual(0, results[0].count)
def test_lookup_compound_only_combi(self):
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.create_dictionary_entry("steam", 1)
sym_spell.create_dictionary_entry("machine", 1)
typo = "ste am machie"
correction = "steam machine"
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(correction, results[0].term)
def test_lookup_compound_no_suggestion(self):
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.create_dictionary_entry("steam", 1)
sym_spell.create_dictionary_entry("machine", 1)
typo = "qwer erty ytui a"
results = sym_spell.lookup_compound(typo, edit_distance_max)
self.assertEqual(1, len(results))
self.assertEqual(typo, results[0].term)
def test_load_dictionary_encoding(self):
dictionary_path = os.path.join(self.fortests_path, "non_en_dict.txt")
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.load_dictionary(dictionary_path, 0, 1)
result = sym_spell.lookup("АБ", Verbosity.TOP, 2)
self.assertEqual(1, len(result))
self.assertEqual("АБИ", result[0].term)
def test_word_segmentation(self):
edit_distance_max = 0
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.load_dictionary(self.dictionary_path, 0, 1)
typo = "thequickbrownfoxjumpsoverthelazydog"
correction = "the quick brown fox jumps over the lazy dog"
result = sym_spell.word_segmentation(typo)
self.assertEqual(correction, result.corrected_string)
typo = "itwasabrightcolddayinaprilandtheclockswerestrikingthirteen"
correction = ("it was a bright cold day in april and the clocks "
"were striking thirteen")
result = sym_spell.word_segmentation(typo)
self.assertEqual(correction, result.segmented_string)
typo = ("itwasthebestoftimesitwastheworstoftimesitwastheageofwisdom"
"itwastheageoffoolishness")
correction = ("it was the best of times it was the worst of times "
"it was the age of wisdom it was the age of foolishness")
result = sym_spell.word_segmentation(typo)
self.assertEqual(correction, result.segmented_string)
def test_word_segmentation_with_arguments(self):
edit_distance_max = 0
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.load_dictionary(self.dictionary_path, 0, 1)
typo = "thequickbrownfoxjumpsoverthelazydog"
correction = "the quick brown fox jumps over the lazy dog"
result = sym_spell.word_segmentation(typo, edit_distance_max, 11)
self.assertEqual(correction, result.corrected_string)
typo = "itwasabrightcolddayinaprilandtheclockswerestrikingthirteen"
correction = ("it was a bright cold day in april and the clocks "
"were striking thirteen")
result = sym_spell.word_segmentation(typo, edit_distance_max, 11)
self.assertEqual(correction, result.corrected_string)
typo = (" itwasthebestoftimesitwastheworstoftimesitwastheageofwisdom"
"itwastheageoffoolishness")
correction = ("it was the best of times it was the worst of times "
"it was the age of wisdom it was the age of foolishness")
result = sym_spell.word_segmentation(typo, edit_distance_max, 11)
self.assertEqual(correction, result.corrected_string)
def test_word_segmentation_capitalize(self):
edit_distance_max = 0
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.load_dictionary(self.dictionary_path, 0, 1)
typo = "Thequickbrownfoxjumpsoverthelazydog"
correction = "The quick brown fox jumps over the lazy dog"
result = sym_spell.word_segmentation(typo)
self.assertEqual(correction, result.corrected_string)
typo = "Itwasabrightcolddayinaprilandtheclockswerestrikingthirteen"
correction = ("It was a bright cold day in april and the clocks "
"were striking thirteen")
result = sym_spell.word_segmentation(typo)
self.assertEqual(correction, result.segmented_string)
typo = ("Itwasthebestoftimesitwastheworstoftimesitwastheageofwisdom"
"itwastheageoffoolishness")
correction = ("It was the best of times it was the worst of times "
"it was the age of wisdom it was the age of foolishness")
result = sym_spell.word_segmentation(typo)
self.assertEqual(correction, result.segmented_string)
def test_word_segmentation_apostrophe(self):
edit_distance_max = 0
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.load_dictionary(self.dictionary_path, 0, 1)
typo = "There'resomewords"
correction = ("There' re some words")
result = sym_spell.word_segmentation(typo)
self.assertEqual(correction, result.corrected_string)
def test_suggest_item(self):
si_1 = SuggestItem("asdf", 12, 34)
si_2 = SuggestItem("sdfg", 12, 34)
si_3 = SuggestItem("dfgh", 56, 78)
self.assertTrue(si_1 == si_1)
self.assertFalse(si_2 == si_3)
self.assertEqual("asdf", si_1.term)
si_1.term = "qwer"
self.assertEqual("qwer", si_1.term)
self.assertEqual(34, si_1.count)
si_1.count = 78
self.assertEqual(78, si_1.count)
self.assertEqual("qwer, 12, 78", str(si_1))
def test_create_dictionary_invalid_path(self):
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
self.assertEqual(False, sym_spell.create_dictionary(
"invalid/dictionary/path.txt"))
def test_create_dictionary(self):
corpus_path = os.path.join(self.fortests_path, "big_modified.txt")
big_words_path = os.path.join(self.fortests_path, "big_words.txt")
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.create_dictionary(corpus_path)
self.assertEqual(68, sym_spell.max_length())
def test_pickle_compressed(self):
pickle_path = os.path.join(self.fortests_path, "dictionary.pickle")
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.load_dictionary(self.dictionary_path, 0, 1)
sym_spell.save_pickle(pickle_path)
sym_spell_2 = SymSpell(edit_distance_max, prefix_length)
sym_spell_2.load_pickle(pickle_path)
self.assertEqual(sym_spell.max_length(), sym_spell_2.max_length())
self.assertEqual(sym_spell.lookup("flam", Verbosity.TOP, 0, True)[0].term,
sym_spell_2.lookup("flam", Verbosity.TOP, 0, True)[0].term)
os.remove(pickle_path)
def test_delete_dictionary_entry(self):
sym_spell = SymSpell()
sym_spell.create_dictionary_entry("stea", 1)
sym_spell.create_dictionary_entry("steama", 2)
sym_spell.create_dictionary_entry("steem", 3)
result = sym_spell.lookup("steama", Verbosity.TOP, 2)
self.assertEqual(1, len(result))
self.assertEqual("steama", result[0].term)
self.assertEqual(len("steama"), sym_spell.max_length())
self.assertEqual(3, sym_spell.word_count())
self.assertTrue(sym_spell.delete_dictionary_entry("steama"))
self.assertEqual(len("steem"), sym_spell.max_length())
self.assertEqual(2, sym_spell.word_count())
result = sym_spell.lookup("steama", Verbosity.TOP, 2)
self.assertEqual(1, len(result))
self.assertEqual("steem", result[0].term)
self.assertTrue(sym_spell.delete_dictionary_entry("stea"))
self.assertEqual(len("steem"), sym_spell.max_length())
self.assertEqual(1, sym_spell.word_count())
result = sym_spell.lookup("steama", Verbosity.TOP, 2)
self.assertEqual(1, len(result))
self.assertEqual("steem", result[0].term)
def test_delete_dictionary_entry_invalid_word(self):
sym_spell = SymSpell()
sym_spell.create_dictionary_entry("stea", 1)
sym_spell.create_dictionary_entry("steama", 2)
sym_spell.create_dictionary_entry("steem", 3)
result = sym_spell.lookup("steama", Verbosity.TOP, 2)
self.assertEqual(1, len(result))
self.assertEqual("steama", result[0].term)
self.assertEqual(len("steama"), sym_spell.max_length())
self.assertFalse(sym_spell.delete_dictionary_entry("steamab"))
result = sym_spell.lookup("steama", Verbosity.TOP, 2)
self.assertEqual(1, len(result))
self.assertEqual("steama", result[0].term)
self.assertEqual(len("steama"), sym_spell.max_length())
def test_lookup_compound_transfer_casing(self):
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.load_dictionary(self.dictionary_path, 0, 1)
sym_spell.load_bigram_dictionary(self.bigram_path, 0, 2)
typo = ("Whereis th elove hehaD Dated forImuch of thepast who "
"couqdn'tread in sixthgrade AND ins pired him")
correction = ("Where is the love he haD Dated for much of the past "
"who couldn't read in sixth grade AND inspired him")
results = sym_spell.lookup_compound(typo, edit_distance_max,
transfer_casing=True)
self.assertEqual(correction, results[0].term)
def test_lookup_compound_transfer_casing_no_bigram(self):
edit_distance_max = 2
prefix_length = 7
sym_spell = SymSpell(edit_distance_max, prefix_length)
sym_spell.load_dictionary(self.dictionary_path, 0, 1)
typo = ("Whereis th elove hehaD Dated forImuch of thepast who "
"couqdn'tread in sixthgrade AND ins pired him")
correction = ("Whereas the love heaD Dated for much of the past "
"who couldn't read in sixth grade AND inspired him")
results = sym_spell.lookup_compound(typo, edit_distance_max,
transfer_casing=True)
self.assertEqual(correction, results[0].term)
# TODO: test_create_dictionary_entry_below_threshold
# TODO: test_lookup_avoid_exact_match_early_exit
# TODO: test_lookup_compound_replaced_words
# TODO: test_lookup_compound_replaced_words_no_bigram
# TODO: test_lookup_compound_ignore_non_words
# TODO: test_lookup_compound_ignore_non_words_no_bigram
# TODO: test_word_segmentation_ignore_token
# TODO: test_word_segmentation_ligature
# TODO: test_lookup_compound_transfer_casing_ignore_nonwords
# TODO: test_lookup_compound_transfer_casing_ignore_nonwords_no_bigram
def test_lookup(self):
self.assertEqual(self.symSpell.lookup("tke", Verbosity.CLOSEST)[0].term, "the")
self.assertEqual(self.symSpell.lookup("abolution", Verbosity.CLOSEST)[0].term, "abolition")
self.assertEqual(self.symSpell.lookup("intermedaite", Verbosity.CLOSEST)[0].term, "intermediate")
def test_lookup_distance(self):
self.assertEqual(self.symSpell.lookup("extrine", Verbosity.CLOSEST, 2)[0].term, "extreme")
self.assertListEqual(self.symSpell.lookup("extrine", Verbosity.CLOSEST, 1), [])
self.assertListEqual(self.symSpell.lookup("elipnaht", Verbosity.CLOSEST), [])
self.assertListEqual(self.symSpell.lookup("aotocrasie", Verbosity.CLOSEST), [])
def test_compound_mistakes(self):
self.assertEqual(self.symSpell.lookup_compound(
"whereis th elove hehad dated forImuch of thepast who couqdn'tread in sixthgrade and ins pired him")[
0].term,
"whereas the love head dated for much of the past who couldn't read in sixth grade and inspired "
"him")
self.assertEqual(self.symSpell.lookup_compound(
"in te dhird qarter oflast jear he hadlearned ofca sekretplan")[0].term,
"in the third quarter of last year he had learned of a secret plan")
self.assertEqual(self.symSpell.lookup_compound(
"the bigjest playrs in te strogsommer film slatew ith plety of funn")[0].term,
"the biggest players in the strong summer film slate with plenty of fun")
def test_word_segementation(self):
self.assertEqual(self.symSpell.word_segmentation(
"thequickbrownfoxjumpsoverthelazydog").corrected_string,
"the quick brown fox jumps over the lazy dog")
self.assertEqual(self.symSpell.word_segmentation(
"itwasabrightcolddayinaprilandtheclockswerestrikingthirteen").corrected_string,
"it was bright holiday in april and the clocks were striking thirteen")
self.assertEqual(self.symSpell.word_segmentation(
"itwasthebestoftimesitwastheworstoftimesitwastheageofwisdomitwastheageoffoolishness").corrected_string,
"iowa the best of times it waste worst of times it was thereof wisdom it was thereof "
"foolishness")
def test_save_load(self):
before_save = self.symSpell.lookup("tke", Verbosity.CLOSEST)[0].term
before_max_length = self.symSpell.max_length()
os.makedirs("temp", exist_ok=True)
self.symSpell.save_pickle("temp/temp.bin")
load_sym_spell = SymSpell()
load_sym_spell.load_pickle("temp/temp.bin")
after_load = load_sym_spell.lookup("tke", Verbosity.CLOSEST)[0].term
after_max_length = load_sym_spell.max_length()
os.remove("temp/temp.bin")
os.rmdir("temp")
assert (before_save == after_load)
assert (before_max_length == after_max_length)
def test_lookup_transfer_casing(self):
sym_spell = SymSpell()
sym_spell.create_dictionary_entry("steam", 4)
result = sym_spell.lookup("Stream", Verbosity.TOP, 2,
transfer_casing=True)
self.assertEqual("Steam", result[0].term)
sym_spell = SymSpell()
sym_spell.create_dictionary_entry("steam", 4)
result = sym_spell.lookup("StreaM", Verbosity.TOP, 2,
transfer_casing=True)
self.assertEqual("SteaM", result[0].term)
sym_spell = SymSpell()
sym_spell.create_dictionary_entry("steam", 4)
result = sym_spell.lookup("STREAM", Verbosity.TOP, 2,
transfer_casing=True)
self.assertEqual("STEAM", result[0].term)
sym_spell = SymSpell()
sym_spell.create_dictionary_entry("i", 4)
result = sym_spell.lookup("I", Verbosity.TOP, 2,
transfer_casing=True)
self.assertEqual("I", result[0].term)
if __name__ == '__main__':
unittest.main()
| 45.230345
| 122
| 0.662357
| 4,009
| 32,792
| 5.180843
| 0.087054
| 0.074338
| 0.047665
| 0.055465
| 0.847039
| 0.803322
| 0.757487
| 0.724988
| 0.686904
| 0.677997
| 0
| 0.018985
| 0.240242
| 32,792
| 724
| 123
| 45.292818
| 0.814683
| 0.015156
| 0
| 0.613223
| 0
| 0
| 0.156672
| 0.030139
| 0
| 0
| 0
| 0.001381
| 0.302479
| 1
| 0.080992
| false
| 0
| 0.006612
| 0
| 0.089256
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
ba814c5503b8e019f8ea33810ef5524a35de2f74
| 4,654
|
py
|
Python
|
systembridge/objects/network.py
|
bdraco/system-bridge-connector-py
|
fba1c74217c706501fafe0185f05430e2240590a
|
[
"MIT"
] | null | null | null |
systembridge/objects/network.py
|
bdraco/system-bridge-connector-py
|
fba1c74217c706501fafe0185f05430e2240590a
|
[
"MIT"
] | 10
|
2021-06-06T00:34:47.000Z
|
2022-01-06T08:01:18.000Z
|
systembridge/objects/network.py
|
bdraco/system-bridge-connector-py
|
fba1c74217c706501fafe0185f05430e2240590a
|
[
"MIT"
] | 2
|
2021-04-13T21:10:40.000Z
|
2021-11-04T16:27:29.000Z
|
"""
Class object for Network
Documentation: https://system-bridge.timmo.dev
"""
from __future__ import annotations
from typing import Dict, List
from .base import BridgeBase
class Connections(BridgeBase):
@property
def protocol(self) -> str | None:
return self.attributes.get("protocol")
@property
def localAddress(self) -> str | None:
return self.attributes.get("localAddress")
@property
def localPort(self) -> str | None:
return self.attributes.get("localPort")
@property
def peerAddress(self) -> str | None:
return self.attributes.get("peerAddress")
@property
def peerPort(self) -> str | None:
return self.attributes.get("peerPort")
@property
def state(self) -> str | None:
return self.attributes.get("state")
@property
def pid(self) -> str | None:
return self.attributes.get("pid")
@property
def process(self) -> str | None:
return self.attributes.get("process")
class Interface(BridgeBase):
@property
def iface(self) -> str | None:
return self.attributes.get("iface")
@property
def ifaceName(self) -> str | None:
return self.attributes.get("ifaceName")
@property
def ip4(self) -> str | None:
return self.attributes.get("ip4")
@property
def ip4subnet(self) -> str | None:
return self.attributes.get("ip4subnet")
@property
def ip6(self) -> str | None:
return self.attributes.get("ip6")
@property
def ip6subnet(self) -> str | None:
return self.attributes.get("ip6subnet")
@property
def mac(self) -> str | None:
return self.attributes.get("mac")
@property
def internal(self) -> bool | None:
return self.attributes.get("internal")
@property
def virtual(self) -> bool | None:
return self.attributes.get("virtual")
@property
def operstate(self) -> str | None:
return self.attributes.get("operstate")
@property
def type(self) -> str | None:
return self.attributes.get("type")
@property
def duplex(self) -> str | None:
return self.attributes.get("duplex")
@property
def mtu(self) -> str | None:
return self.attributes.get("mtu")
@property
def speed(self) -> int | None:
return self.attributes.get("speed")
@property
def dhcp(self) -> bool | None:
return self.attributes.get("dhcp")
@property
def dnsSuffix(self) -> str | None:
return self.attributes.get("dnsSuffix")
@property
def ieee8021xAuth(self) -> str | None:
return self.attributes.get("ieee8021xAuth")
@property
def ieee8021xState(self) -> str | None:
return self.attributes.get("ieee8021xState")
@property
def carrierChanges(self) -> int | None:
return self.attributes.get("carrierChanges")
class Stat(BridgeBase):
@property
def iface(self) -> str | None:
return self.attributes.get("iface")
@property
def operstate(self) -> str | None:
return self.attributes.get("operstate")
@property
def rx_bytes(self) -> int | None:
return self.attributes.get("rx_bytes")
@property
def rx_dropped(self) -> int | None:
return self.attributes.get("rx_dropped")
@property
def rx_errors(self) -> int | None:
return self.attributes.get("rx_errors")
@property
def tx_bytes(self) -> int | None:
return self.attributes.get("tx_bytes")
@property
def tx_dropped(self) -> int | None:
return self.attributes.get("tx_dropped")
@property
def tx_errors(self) -> int | None:
return self.attributes.get("tx_errors")
@property
def rx_sec(self) -> int | None:
return self.attributes.get("rx_sec")
@property
def tx_sec(self) -> int | None:
return self.attributes.get("tx_sec")
@property
def ms(self) -> int | None:
return self.attributes.get("ms")
class Network(BridgeBase):
@property
def connections(self) -> List[Connections] | None:
return [Connections(x) for x in self.attributes.get("connections", [])]
@property
def gatewayDefault(self) -> str | None:
return self.attributes.get("gatewayDefault")
@property
def interfaceDefault(self) -> str | None:
return self.attributes.get("interfaceDefault")
@property
def interfaces(self) -> Dict[str, Interface] | None:
return self.attributes.get("interfaces")
@property
def stats(self) -> Dict[str, Stat] | None:
return self.attributes.get("stats")
| 24.624339
| 79
| 0.621831
| 534
| 4,654
| 5.382022
| 0.134831
| 0.164579
| 0.254349
| 0.350731
| 0.566458
| 0.547669
| 0.547669
| 0.215379
| 0.100557
| 0.100557
| 0
| 0.006867
| 0.249033
| 4,654
| 188
| 80
| 24.755319
| 0.815451
| 0.015256
| 0
| 0.375
| 0
| 0
| 0.07388
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.316176
| false
| 0
| 0.022059
| 0.316176
| 0.683824
| 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
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 5
|
bae92f7954eae53475f8145762f09474f11c9419
| 8,046
|
py
|
Python
|
tests/test_generators.py
|
argos-education/piicatcher
|
7370cad8a4938762311926e8ab3bc286232e7106
|
[
"Apache-2.0"
] | 4
|
2019-07-10T08:52:56.000Z
|
2019-10-23T13:58:18.000Z
|
tests/test_generators.py
|
argos-education/piicatcher
|
7370cad8a4938762311926e8ab3bc286232e7106
|
[
"Apache-2.0"
] | 11
|
2019-03-21T11:28:07.000Z
|
2019-08-30T12:13:28.000Z
|
tests/test_generators.py
|
argos-education/piicatcher
|
7370cad8a4938762311926e8ab3bc286232e7106
|
[
"Apache-2.0"
] | 2
|
2019-03-21T11:06:49.000Z
|
2019-03-27T06:05:52.000Z
|
from typing import Any, Generator, Tuple
import pytest
from dbcat.catalog import Catalog, CatColumn, CatSchema, CatSource, CatTable
from sqlalchemy import create_engine
from piicatcher.dbinfo import get_dbinfo
from piicatcher.generators import (
_get_query,
_get_table_count,
_row_generator,
column_generator,
data_generator,
)
@pytest.fixture(scope="module")
def sqlalchemy_engine(
load_data_and_pull,
) -> Generator[Tuple[Catalog, CatSource, Any], None, None]:
catalog, source_id = load_data_and_pull
with catalog.managed_session:
source = catalog.get_source_by_id(source_id)
engine = create_engine(source.conn_string)
with engine.connect() as conn:
yield catalog, source, conn
@pytest.fixture(scope="module")
def load_source(load_data_and_pull) -> Generator[Tuple[Catalog, CatSource], None, None]:
catalog, source_id = load_data_and_pull
with catalog.managed_session:
source = catalog.get_source_by_id(source_id)
yield catalog, source
def test_column_generator(load_source):
catalog, source = load_source
count = 0
for tpl in column_generator(catalog=catalog, source=source):
count += 1
assert count == 8
def test_column_generator_include_schema(load_source):
catalog, source = load_source
schemata = catalog.search_schema(source_like=source.name, schema_like="%")
count = 0
for tpl in column_generator(
catalog=catalog, source=source, include_schema_regex_str=[schemata[0].name]
):
count += 1
assert count == 8
def test_column_generator_exclude_schema(load_source):
catalog, source = load_source
schemata = catalog.search_schema(source_like=source.name, schema_like="%")
count = 0
for tpl in column_generator(
catalog=catalog, source=source, exclude_schema_regex_str=[schemata[0].name]
):
count += 1
assert count == 0
def test_column_generator_include_table(load_source):
catalog, source = load_source
count = 0
for tpl in column_generator(
catalog=catalog, source=source, include_table_regex_str=["full.*"]
):
count += 1
assert count == 2
def test_column_generator_exclude_table(load_source):
catalog, source = load_source
count = 0
for tpl in column_generator(
catalog=catalog, source=source, exclude_table_regex_str=["full.*"]
):
count += 1
assert count == 6
def test_get_table_count(sqlalchemy_engine):
catalog, source, conn = sqlalchemy_engine
schemata = catalog.search_schema(source_like=source.name, schema_like="%")
table = catalog.get_table(
source_name=source.name, schema_name=schemata[0].name, table_name="full_pii"
)
table_count = _get_table_count(
schema=table.schema,
table=table,
dbinfo=get_dbinfo(source.source_type),
connection=conn,
)
assert table_count == 2
def test_get_query(sqlalchemy_engine):
catalog, source, conn = sqlalchemy_engine
schemata = catalog.search_schema(source_like=source.name, schema_like="%")
table = catalog.get_table(
source_name=source.name, schema_name=schemata[0].name, table_name="full_pii"
)
query = _get_query(
schema=schemata[0],
table=table,
column_list=catalog.get_columns_for_table(table),
dbinfo=get_dbinfo(source.source_type),
connection=conn,
)
if source.source_type == "mysql":
assert query == """select `name`,`state` from piidb.full_pii"""
elif source.source_type == "postgresql":
assert query == """select "name","state" from public.full_pii"""
elif source.source_type == "sqlite":
assert query == """select "name","state" from full_pii"""
def test_get_sample_query(sqlalchemy_engine):
catalog, source, conn = sqlalchemy_engine
schemata = catalog.search_schema(source_like=source.name, schema_like="%")
table = catalog.get_table(
source_name=source.name, schema_name=schemata[0].name, table_name="full_pii"
)
query = _get_query(
schema=schemata[0],
table=table,
column_list=catalog.get_columns_for_table(table),
dbinfo=get_dbinfo(source.source_type),
connection=conn,
sample_size=1,
)
if source.source_type == "mysql":
assert query == """select `name`,`state` from piidb.full_pii limit 1"""
elif source.source_type == "postgresql":
assert (
query
== """SELECT "name","state" FROM public.full_pii TABLESAMPLE BERNOULLI (10) LIMIT 1"""
)
elif source.source_type == "sqlite":
assert query == """select "name","state" from full_pii"""
@pytest.mark.parametrize(
("source_type", "expected_query"),
[
(
"redshift",
'SELECT "column" FROM public.table TABLESAMPLE BERNOULLI (10) LIMIT 1',
),
("snowflake", "SELECT column FROM public.table TABLESAMPLE BERNOULLI (1 ROWS)"),
(
"athena",
'SELECT "column" FROM public.table TABLESAMPLE BERNOULLI (10) LIMIT 1',
),
],
)
def test_get_sample_query_redshift(mocker, source_type, expected_query):
source = CatSource(name="src", source_type=source_type)
schema = CatSchema(source=source, name="public")
table = CatTable(schema=schema, name="table")
column = CatColumn(table=table, name="column")
mocker.patch("piicatcher.generators._get_table_count", return_value=100)
query = _get_query(
schema=schema,
table=table,
column_list=[column],
dbinfo=get_dbinfo(source_type=source.source_type),
connection=None,
sample_size=1,
)
assert query == expected_query
def test_row_generator(sqlalchemy_engine):
catalog, source, conn = sqlalchemy_engine
schemata = catalog.search_schema(source_like=source.name, schema_like="%")
table = catalog.get_table(
source_name=source.name, schema_name=schemata[0].name, table_name="full_pii"
)
count = 0
for row in _row_generator(
source=source,
schema=schemata[0],
table=table,
column_list=catalog.get_columns_for_table(table),
):
count += 1
assert row[0] is not None
assert row[1] is not None
assert count == 2
def test_data_generator(sqlalchemy_engine):
catalog, source, conn = sqlalchemy_engine
count = 0
for tpl in data_generator(catalog=catalog, source=source):
count += 1
assert count == 14
def test_data_generator_include_schema(load_source):
catalog, source = load_source
schemata = catalog.search_schema(source_like=source.name, schema_like="%")
count = 0
for tpl in data_generator(
catalog=catalog, source=source, include_schema_regex_str=[schemata[0].name]
):
count += 1
assert count == 14
def test_data_generator_exclude_schema(load_source):
catalog, source = load_source
schemata = catalog.search_schema(source_like=source.name, schema_like="%")
count = 0
for tpl in data_generator(
catalog=catalog, source=source, exclude_schema_regex_str=[schemata[0].name]
):
count += 1
assert count == 0
def test_data_generator_include_table(load_source):
catalog, source = load_source
count = 0
for tpl in data_generator(
catalog=catalog, source=source, include_table_regex_str=["full.*"]
):
count += 1
assert count == 4
def test_data_generator_exclude_table(load_source):
catalog, source = load_source
count = 0
for tpl in data_generator(
catalog=catalog, source=source, exclude_table_regex_str=["full.*"]
):
count += 1
assert count == 10
def test_data_generator_include_int_table(load_source):
catalog, source = load_source
count = 0
for tpl in data_generator(
catalog=catalog, source=source, include_table_regex_str=["partial_data_type"]
):
count += 1
assert count == 2
| 28.034843
| 98
| 0.674248
| 1,003
| 8,046
| 5.141575
| 0.103689
| 0.075625
| 0.020942
| 0.025596
| 0.789219
| 0.748109
| 0.745782
| 0.736669
| 0.706225
| 0.68916
| 0
| 0.011031
| 0.222595
| 8,046
| 286
| 99
| 28.132867
| 0.813429
| 0
| 0
| 0.612903
| 0
| 0
| 0.089237
| 0.004723
| 0
| 0
| 0
| 0
| 0.101382
| 1
| 0.082949
| false
| 0
| 0.02765
| 0
| 0.110599
| 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
| 0
| 0
|
0
| 5
|
bae9acac0ef0db51fce02d43b9dfe899cb4ba642
| 353
|
py
|
Python
|
rlssm/__init__.py
|
birgovanandrei/rlssm
|
32f3deaa2b69b6cf974a4334ab39b0d3822cf29f
|
[
"MIT"
] | 11
|
2021-02-25T11:02:13.000Z
|
2021-11-09T00:49:05.000Z
|
rlssm/__init__.py
|
birgovanandrei/rlssm
|
32f3deaa2b69b6cf974a4334ab39b0d3822cf29f
|
[
"MIT"
] | null | null | null |
rlssm/__init__.py
|
birgovanandrei/rlssm
|
32f3deaa2b69b6cf974a4334ab39b0d3822cf29f
|
[
"MIT"
] | 10
|
2021-03-27T13:14:45.000Z
|
2022-03-19T15:58:23.000Z
|
from __future__ import absolute_import, division, print_function
from .version import __version__ # noqa
from .models_RL import * # noqa
from .models_DDM import *
from .models_RDM import *
from .models_LBA import *
from .models_ARDM import *
from .models_ALBA import *
from .utils import load_model_results
from .load_data import load_example_dataset
| 32.090909
| 64
| 0.810198
| 51
| 353
| 5.196078
| 0.45098
| 0.226415
| 0.241509
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135977
| 353
| 10
| 65
| 35.3
| 0.868852
| 0.025496
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0.1
| 0
| 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
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
bafb96c441c546dc7482af0ec6f296687a6596b3
| 290
|
py
|
Python
|
benchmarks/HPCCUDA/config_gen.py
|
DependableSystemsLab/GPU-Trident
|
c734cd8a18146869fc915af73a6ca13ceca35c0b
|
[
"MIT"
] | 1
|
2021-01-17T10:36:21.000Z
|
2021-01-17T10:36:21.000Z
|
benchmarks/HPCCUDA/config_gen.py
|
DependableSystemsLab/GPU-Trident
|
c734cd8a18146869fc915af73a6ca13ceca35c0b
|
[
"MIT"
] | null | null | null |
benchmarks/HPCCUDA/config_gen.py
|
DependableSystemsLab/GPU-Trident
|
c734cd8a18146869fc915af73a6ca13ceca35c0b
|
[
"MIT"
] | null | null | null |
X_threads = 16*33
Y_threads = 32*14
Invoc_count = 1
start_index = 0
end_index = 0
src_list = []
SHARED_MEM_USE = False
total_shared_mem_size = 1024
domi_list = [25, 27,31,33,37,41,88,90,94,132,176,178,182,220,222,226,264,266,295,297]
domi_val = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
| 20.714286
| 85
| 0.689655
| 72
| 290
| 2.597222
| 0.611111
| 0.203209
| 0.28877
| 0.363636
| 0.106952
| 0.106952
| 0.106952
| 0.106952
| 0.106952
| 0.106952
| 0
| 0.335938
| 0.117241
| 290
| 13
| 86
| 22.307692
| 0.394531
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 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
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
24301d7d5a832c4ccbf77a11711a482075280d9c
| 209
|
py
|
Python
|
pyflux/garch/__init__.py
|
ThomasHoppe/pyflux
|
297f2afc2095acd97c12e827dd500e8ea5da0c0f
|
[
"BSD-3-Clause"
] | 2,091
|
2016-04-01T02:52:10.000Z
|
2022-03-29T11:38:15.000Z
|
pyflux/garch/__init__.py
|
EricSchles/pyflux
|
297f2afc2095acd97c12e827dd500e8ea5da0c0f
|
[
"BSD-3-Clause"
] | 160
|
2016-04-26T14:52:18.000Z
|
2022-03-15T02:09:07.000Z
|
pyflux/garch/__init__.py
|
EricSchles/pyflux
|
297f2afc2095acd97c12e827dd500e8ea5da0c0f
|
[
"BSD-3-Clause"
] | 264
|
2016-05-02T14:03:31.000Z
|
2022-03-29T07:48:20.000Z
|
from .garch import GARCH
from .egarch import EGARCH
from .egarchm import EGARCHM
from .lmegarch import LMEGARCH
from .egarchmreg import EGARCHMReg
from .segarch import SEGARCH
from .segarchm import SEGARCHM
| 20.9
| 34
| 0.822967
| 28
| 209
| 6.142857
| 0.321429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.143541
| 209
| 9
| 35
| 23.222222
| 0.960894
| 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
| 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
| 5
|
244716ebe7d1dbdd60b3ef3992c838d5c9b16772
| 33
|
py
|
Python
|
plugins/flytekit-aws-batch/flytekitplugins/awsbatch/__init__.py
|
ggydush-fn/flytekit
|
6530601c2538a5d804127a97f63291730b1ba1d8
|
[
"Apache-2.0"
] | null | null | null |
plugins/flytekit-aws-batch/flytekitplugins/awsbatch/__init__.py
|
ggydush-fn/flytekit
|
6530601c2538a5d804127a97f63291730b1ba1d8
|
[
"Apache-2.0"
] | null | null | null |
plugins/flytekit-aws-batch/flytekitplugins/awsbatch/__init__.py
|
ggydush-fn/flytekit
|
6530601c2538a5d804127a97f63291730b1ba1d8
|
[
"Apache-2.0"
] | null | null | null |
from .task import AWSBatchConfig
| 16.5
| 32
| 0.848485
| 4
| 33
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 33
| 1
| 33
| 33
| 0.965517
| 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
| 0
| 0
|
0
| 5
|
79f90e5b798800fdf2f50162ecb0ec8483ff1c54
| 293
|
py
|
Python
|
noiseplanet/matcher/model/__init__.py
|
jks-liu/noiseplanet
|
907b2bb9a93df48a266ad01c7cad0d8ef2367e78
|
[
"Apache-2.0"
] | 27
|
2020-06-13T21:00:53.000Z
|
2022-03-29T03:22:06.000Z
|
noiseplanet/matcher/model/__init__.py
|
voodooed/noiseplanet
|
fca79ef3b81826a5286d566ebf3bf9340df13201
|
[
"Apache-2.0"
] | 12
|
2020-12-24T08:14:00.000Z
|
2022-02-06T18:01:51.000Z
|
noiseplanet/matcher/model/__init__.py
|
voodooed/noiseplanet
|
fca79ef3b81826a5286d566ebf3bf9340df13201
|
[
"Apache-2.0"
] | 9
|
2020-08-28T16:06:54.000Z
|
2022-01-26T01:05:02.000Z
|
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 18 22:16:19 2019
@author: Utilisateur
"""
from noiseplanet.matcher.model.leuven import match_leuven
from noiseplanet.matcher.model.nearest import match_nearest_edge
from noiseplanet.matcher.model.route import graph_from_track, route_from_track
| 26.636364
| 78
| 0.795222
| 43
| 293
| 5.255814
| 0.604651
| 0.199115
| 0.292035
| 0.358407
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.049618
| 0.105802
| 293
| 10
| 79
| 29.3
| 0.812977
| 0.273038
| 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
| 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
| 5
|
030c6334117f344b75d4702c8aeba730aba53a17
| 227
|
py
|
Python
|
django-multitenant/customer/urls.py
|
sarath196/django-multi-tenant-demo
|
45130ab576f68aabcc334c07a54a82f62172f465
|
[
"MIT"
] | null | null | null |
django-multitenant/customer/urls.py
|
sarath196/django-multi-tenant-demo
|
45130ab576f68aabcc334c07a54a82f62172f465
|
[
"MIT"
] | null | null | null |
django-multitenant/customer/urls.py
|
sarath196/django-multi-tenant-demo
|
45130ab576f68aabcc334c07a54a82f62172f465
|
[
"MIT"
] | null | null | null |
from django.conf.urls import url, include
from django.conf.urls.static import static
from .import views
urlpatterns = [
url(r'^register/', views.register_customer, name='registercustomer'),
]
| 25.222222
| 82
| 0.660793
| 26
| 227
| 5.730769
| 0.576923
| 0.134228
| 0.187919
| 0.241611
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.237885
| 227
| 9
| 83
| 25.222222
| 0.861272
| 0
| 0
| 0
| 0
| 0
| 0.118182
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 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
| 0
| 0
|
0
| 5
|
031513a92edb8d02e93ec38600902331e9468d0e
| 1,774
|
py
|
Python
|
tests/test_site_parser/test_find_wallpapers_urls.py
|
PavliukKonstantin/wallpaper-downloader
|
104b5ca1bfdb26b9132f7619406d4e756eb3654c
|
[
"MIT"
] | null | null | null |
tests/test_site_parser/test_find_wallpapers_urls.py
|
PavliukKonstantin/wallpaper-downloader
|
104b5ca1bfdb26b9132f7619406d4e756eb3654c
|
[
"MIT"
] | null | null | null |
tests/test_site_parser/test_find_wallpapers_urls.py
|
PavliukKonstantin/wallpaper-downloader
|
104b5ca1bfdb26b9132f7619406d4e756eb3654c
|
[
"MIT"
] | null | null | null |
from wallpaper_downloader import site_parser
def test_page_with_wallpapers_urls(
get_page_html_from_file,
get_wallpapers_urls_from_file,
get_wallpapers_names_from_file,
):
"""
Test '_find_wallpapers_urls' function of site_parser module.
Function is tested with the HTML where URLs of wallpapers are exist.
Args:
get_page_html_from_file (Fixture): fixture that return HTML.
get_wallpapers_urls_from_file (Fixture): fixture that return URLs of
wallpapers in format {'wallpaper_filename': 'wallpaper_url'}.
get_wallpapers_names_from_file (Fixture): fixture that return
names of wallpapers.
"""
page_html = get_page_html_from_file("page_with_wallpapers.html")
wallpapers_names = get_wallpapers_names_from_file
wallpapers_urls = site_parser._find_wallpapers_urls(
page_html,
wallpapers_names,
"1920x1080",
)
expected_wallpapers_urls = get_wallpapers_urls_from_file
assert wallpapers_urls == expected_wallpapers_urls
def test_page_without_wallpapers_urls(
get_page_html_from_file,
get_wallpapers_names_from_file,
):
"""
Test '_find_wallpapers_urls' function of site_parser module.
Function is tested with the HTML where URLs of wallpapers are not exist.
Args:
get_page_html_from_file (Fixture): fixture that return HTML.
get_wallpapers_names_from_file (Fixture): fixture that return
names of wallpapers.
"""
page_html = get_page_html_from_file("first_main_page.html")
wallpapers_names = get_wallpapers_names_from_file
wallpapers_urls = site_parser._find_wallpapers_urls(
page_html,
wallpapers_names,
"1920x1080",
)
assert wallpapers_urls == {}
| 32.851852
| 76
| 0.735062
| 227
| 1,774
| 5.268722
| 0.180617
| 0.175585
| 0.055184
| 0.075251
| 0.796823
| 0.769231
| 0.742475
| 0.742475
| 0.742475
| 0.68311
| 0
| 0.011404
| 0.209132
| 1,774
| 53
| 77
| 33.471698
| 0.841055
| 0.418264
| 0
| 0.592593
| 0
| 0
| 0.066107
| 0.026233
| 0
| 0
| 0
| 0
| 0.074074
| 1
| 0.074074
| false
| 0
| 0.037037
| 0
| 0.111111
| 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
| 0
| 0
|
0
| 5
|
033b795209698a0482171ed59b5161f8580d0277
| 128,004
|
py
|
Python
|
parser/team05/proyecto/parsetab.py
|
mr8ug/tytus
|
a09abe4095e49d333a8ed9ca81cb3d88f90872ba
|
[
"MIT"
] | null | null | null |
parser/team05/proyecto/parsetab.py
|
mr8ug/tytus
|
a09abe4095e49d333a8ed9ca81cb3d88f90872ba
|
[
"MIT"
] | null | null | null |
parser/team05/proyecto/parsetab.py
|
mr8ug/tytus
|
a09abe4095e49d333a8ed9ca81cb3d88f90872ba
|
[
"MIT"
] | null | null | null |
# parsetab.py
# This file is automatically generated. Do not edit.
# pylint: disable=W,C,R
_tabversion = '3.10'
_lr_method = 'LALR'
_lr_signature = 'leftORleftANDrightNOTnonassocISISNULLNOTNULLleftMENORIGUALMAYORIGUALIGUALDIFDIF1MENORMAYORleftMASMENOSleftPORDIVIDIDOMODULOleftEXPrightUMENOSUMASnonassocBETWEENNOTBABS ACOS ACOSD ACOSH ADD ALL ALTER AND ANY AS ASC ASIN ASIND ASINH ATAN ATAN2 ATAN2D ATAND ATANH AVG BAnd BETWEEN BIGINT BNot BOOLEAN BOTH BOr BXor BY CADENA CADENASI CASE CBRT CEIL CEILING CHAR CHARACTER CHECK COLUMN COMA CONSTRAINT CONVERT COS COSD COSH COT COTD COUNT CREATE CURRENT_DATE CURRENT_TIME DATABASE DATE DATE_PART DAY DECIMAL DECODE DEFAULT DEGREES DELETE DESC DIF DIF1 DISTINCT DIV DIVIDIDO DOUBLE DROP DesplazaD DesplazaI ELSE ENCODE END ENUM EXCEPT EXISTS EXP EXTRACT FACTORIAL FALSE FEXP FIRST FLOOR FOREIGN FROM GCD GETBYTE GREATEST GROUP HAVING HOUR ID IDALIAS IF IGUAL IN INHERITS INSERT INTEGER INTERSECT INTERVAL INTO IS ISNULL KEY LAST LEADING LEAST LENGTH LIKE LIMIT LN LOG MAS MAX MAYOR MAYORIGUAL MENOR MENORIGUAL MENOS MIN MINUTE MOD MODE MODULO MONEY MONTH NOT NOTNULL NOW NULL NULLS NUMERIC NUMERO OFFSET OR ORDER OWNER PABRE PCIERRA PCOMA PI POR POWER PRIMARY PUNTO RADIANS RANDOM REAL REFERENCES RENAME REPLACE ROUND SECOND SELECT SET SETBYTE SHA256 SHOW SIGN SIMMETRIC SIN SIND SINH SMALLINT SOME SQRT SUBSTR SUBSTRING SUM TABLE TAN TAND TANH TEXT THEN TIME TIMESTAMP TO TRAILING TRIM TRUE TRUNC TYPE UNION UNIQUE UNKNOWN UPDATE USE VALUES VARCHAR VARYING WHEN WHERE WIDTH_BUCKET YEAR raizCuadrada raizCubicaINSTRUCCIONES : INSTRUCCIONES INSTRUCCION INSTRUCCIONES : INSTRUCCION INSTRUCCION : I_SELECT COMPLEMENTOSELECT INSTRUCCION : I_CREATE INSTRUCCION : I_DROP INSTRUCCION : I_INSERT INSTRUCCION : I_ALTER INSTRUCCION : I_UPDATE INSTRUCCION : I_SHOW INSTRUCCION : I_DELETE INSTRUCCION : I_USE I_USE : USE DATABASE ID PCOMAI_CREATE : CREATE I_TCREATEI_TCREATE : I_REPLACEI_TCREATE : I_CTABLEI_TCREATE : I_CTYPEI_CTYPE : TYPE ID AS ENUM PABRE I_LCAD PCIERRAI_LCAD : I_LCAD CADENASI I_LCAD : CADENASI I_CTABLE : TABLE ID PABRE I_LTATRIBUTOS PCIERRA I_INHERITSI_INHERITS : INHERITS PABRE ID PCIERRA PCOMAI_LTATRIBUTOS : I_LTATRIBUTOS COMA I_TATRIBUTOSI_LTATRIBUTOS : I_TATRIBUTOSI_TATRIBUTOS : ID I_TIPO I_LLAVESI_TATRIBUTOS : PRIMARY KEY PABRE I_LIDS PCIERRAI_TATRIBUTOS : FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRAI_TATRIBUTOS : CONSTRAINT ID CHECK I_CCHECKI_TATRIBUTOS : CHECK I_CCHECKI_CCHECK : PABRE CONDICION PCIERRAI_TATRIBUTOS : UNIQUE I_UNIQUEI_UNIQUE : PABRE I_LIDS PCIERRAI_LLAVES : PRIMARY KEY I_DEFAULTI_DEFAULT : DEFAULT I_VALOR I_NULLI_DEFAULT : I_NULLI_NULL : NOT NULL I_CUNIQUE I_NULL : NULL I_CUNIQUE I_NULL : I_CUNIQUE I_CUNIQUE : CONSTRAINT ID UNIQUE I_CHECKI_CHECK : CONSTRAINT ID CHECK PABRE CONDICION PCIERRAI_CHECK : CHECK PABRE CONDICION PCIERRAI_CHECK : I_LLAVES : REFERENCES ID PABRE I_CREFERENCE PCIERRA I_DEFAULTI_CREFERENCE : I_CREFERENCE COMA IDI_CREFERENCE : IDI_LLAVES : REFERENCES ID I_DEFAULTI_LLAVES : I_DEFAULTI_LIDS : I_LIDS COMA IDI_LIDS : IDI_TIPO : SMALLINTI_TIPO : INTEGERI_TIPO : BIGINTI_TIPO : DECIMALI_TIPO : NUMERICI_TIPO : REALI_TIPO : DOUBLE I_PRECI_TIPO : MONEYI_TIPO : CHARACTER I_TCHARI_TIPO : VARCHAR PABRE NUMERO PCIERRAI_TIPO : CHAR PABRE NUMERO PCIERRAI_TIPO : TEXTI_TIPO : TIMESTAMP I_PRECI_TIPO : TIME I_PRECI_TIPO : DATEI_TIPO : INTERVAL I_FIELDS I_PRECI_TIPO : BOOLEANI_TIPO : IDI_TCHAR : VARYING PABRE NUMERO PCIERRAI_TCHAR : PABRE NUMERO PCIERRAI_PREC : PABRE NUMERO PCIERRAI_PREC : I_FIELDS : MONTHI_FIELDS : HOURI_FIELDS : MINUTEI_FIELDS : SECONDI_FIELDS : YEARI_INHERITS : PCOMAI_REPLACE : OR REPLACE DATABASE I_EXISTI_REPLACE : DATABASE I_EXISTI_DROP : DROP I_TDROP I_ALTER : ALTER I_TALTERI_TALTER : I_ALTERDBI_TALTER : I_ALTERTBI_ALTERTB : TABLE ID I_OPALTER I_OPALTER : I_LADDC PCOMAI_OPALTER : I_LDROPC PCOMAI_OPALTER : ADD I_TALTER PCOMAI_OPALTER : ALTER COLUMN ID SET NOT NULL PCOMAI_OPALTER : DROP CONSTRAINT ID PCOMAI_OPALTER : ID I_LCOL PCOMAI_LCOL : I_LCOL COMA I_PCOLI_LCOL : I_PCOLI_PCOL : ALTER COLUMN ID TYPE VARCHAR PABRE NUMERO PCIERRAI_TALTER : CHECK CONDICION I_TALTER : UNIQUE PABRE I_LIDS PCIERRAI_TALTER : FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA I_TALTER : CONSTRAINT ID I_TCONST I_TCONST : CHECK CONDICION I_TCONST : UNIQUE PABRE I_LIDS PCIERRAI_TCONST : FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA I_LDROPC : I_LDROPC COMA I_DROPCI_LDROPC : I_DROPCI_DROPC : DROP COLUMN IDI_LADDC : I_LADDC COMA I_ADDCI_LADDC : I_ADDCI_ADDC : ADD COLUMN ID I_TIPOI_TDROP : I_DROPDBI_TDROP : I_DROPTBI_DROPDB : DATABASE I_IFEXISTI_IFEXIST : IF EXISTS ID PCOMAI_IFEXIST : ID PCOMAI_EXIST : IF NOT EXISTS ID I_OWMOD I_EXIST : ID PCOMAI_OWMOD : OWNER IGUAL ID I_MODEI_OWMOD : MODE IGUAL ID I_OWNERI_OWMOD : PCOMAI_MODE : MODE IGUAL ID PCOMAI_MODE : PCOMAI_OWNER : OWNER IGUAL ID PCOMAI_OWNER : PCOMAI_ALTERDB : ALTER DATABASE ID I_OPALTERDB I_VALALTDBI_OPALTERDB : RENAME TOI_OPALTERDB : OWNER TOI_VALALTDB : IDI_VALALTDB : CADENASII_DROPTB : TABLE ID PCOMAI_INSERT : INSERT INTO ID VALUES PABRE I_LVALT PCIERRA PCOMAI_LVALT : I_LVALT COMA I_VALTABI_UPDATE : UPDATE ID SET I_LUPDATE PWHERE I_LUPDATE : I_LUPDATE COMA I_VALUPDATEI_LUPDATE : I_VALUPDATEI_VALUPDATE : ID IGUAL I_VALORI_VALOR : CADENASII_VALOR : NUMEROI_SHOW : SHOW DATABASE PCOMAI_DELETE : DELETE FROM ID PWHEREI_LVALT : I_VALTABI_VALTAB : NUMEROI_VALTAB : CADENASII_SELECT : SELECT VALORES PFROM COMPLEMENTO I_SELECT : SELECT VALORES PFROM PWHERE COMPLEMENTO I_SELECT : SELECT DISTINCT VALORES PFROM COMPLEMENTO I_SELECT : SELECT DISTINCT VALORES PFROM PWHERE COMPLEMENTO I_SELECT : SELECT VALORES COMPLEMENTO : PGROUPBY PHAVING COMPLEMENTO : PGROUPBY PHAVING PLIMIT COMPLEMENTO : PGROUPBY COMPLEMENTO : PGROUPBY PLIMIT COMPLEMENTO : PORDERBY COMPLEMENTO : PORDERBY PLIMIT COMPLEMENTO : PLIMIT COMPLEMENTO : EMPTY COMPLEMENTOSELECT : UNION I_SELECT PCOMA COMPLEMENTOSELECT : UNION ALL I_SELECT PCOMA COMPLEMENTOSELECT : INTERSECT I_SELECT PCOMA COMPLEMENTOSELECT : INTERSECT ALL I_SELECT PCOMA COMPLEMENTOSELECT : EXCEPT I_SELECT PCOMA COMPLEMENTOSELECT : EXCEPT ALL I_SELECT PCOMA COMPLEMENTOSELECT : PCOMA PLIMIT : LIMIT CONDICION PLIMIT : LIMIT CONDICION OFFSET CONDICION PORDERBY : ORDER BY LCOMPLEMENTOORDERBY LCOMPLEMENTOORDERBY : LCOMPLEMENTOORDERBY COMA COMPLEMENTOORDERBY LCOMPLEMENTOORDERBY : COMPLEMENTOORDERBY COMPLEMENTOORDERBY : ID COMPLEMENTOORDERBY1 COMPLEMENTOORDERBY1 : COMPLEMENTOORDER COMPLEMENTOORDERBY1 : PUNTO ID COMPLEMENTOORDER COMPLEMENTOORDER : ASC COMPLEMENTOORDER : DESC COMPLEMENTOORDER : ASC NULLS FIRST COMPLEMENTOORDER : ASC NULLS LAST COMPLEMENTOORDER : DESC NULLS FIRST COMPLEMENTOORDER : DESC NULLS LAST COMPLEMENTOORDER : EMPTY PHAVING : HAVING CONDICION PGROUPBY : GROUP BY LCOMPLEMENTOGROUP LCOMPLEMENTOGROUP : LCOMPLEMENTOGROUP COMA COMPLEMENTOGROUP LCOMPLEMENTOGROUP : COMPLEMENTOGROUP COMPLEMENTOGROUP : ID COMPLEMENTOGROUP : ID PUNTO ID VALORES : POR VALORES : LISTAVALORES LISTAVALORES : LISTAVALORES COMA VALOR LISTAVALORES : VALOR VALOR : PABRE SUBCONSULTA PCIERRA ALIASVALOR : PABRE SUBCONSULTA PCIERRA VALOR : COUNT PABRE POR PCIERRA ALIASVALOR : COUNT PABRE ID PCIERRA ALIASVALOR : COUNT PABRE POR PCIERRA VALOR : COUNT PABRE ID PCIERRA VALOR : COUNT PABRE ID PUNTO ID PCIERRA ALIASVALOR : COUNT PABRE ID PUNTO ID PCIERRAVALOR : FUNCION PABRE ID PUNTO ID PCIERRAVALOR : FUNCION PABRE ID PCIERRAVALOR : FUNCION PABRE ID PUNTO ID PCIERRA ALIASVALOR : FUNCION PABRE ID PCIERRA ALIASVALOR : CONDICIONVALOR : CONDICION ALIAS VALOR : FTRIGONOMETRICAS PABRE LNUM PCIERRA VALOR : FTRIGONOMETRICAS PABRE LNUM PCIERRA ALIAS VALOR : GREATEST PABRE LNUM PCIERRA VALOR : LEAST PABRE LNUM PCIERRA VALOR : GREATEST PABRE LNUM PCIERRA ALIASVALOR : LEAST PABRE LNUM PCIERRA ALIASVALOR : RANDOM PABRE PCIERRA ALIASVALOR : RANDOM PABRE PCIERRA VALOR : PI PABRE PCIERRA ALIAS VALOR : PI PABRE PCIERRA VALOR : DECODE PABRE CADENA COMA CADENA PCIERRA ALIAS VALOR : DECODE PABRE CADENA COMA CADENA PCIERRA VALOR : ENCODE PABRE CADENA COMA CADENA PCIERRA ALIAS VALOR : ENCODE PABRE CADENA COMA CADENA PCIERRA VALOR : CONVERT PABRE CADENA AS DATE PCIERRA VALOR : CONVERT PABRE CADENA AS INTEGER PCIERRA VALOR : CONVERT PABRE CADENA AS DATE PCIERRA ALIAS VALOR : CONVERT PABRE CADENA AS INTEGER PCIERRA ALIAS VALOR : SHA256 PABRE CADENA PCIERRA VALOR : SHA256 PABRE CADENA PCIERRA ALIAS VALOR : NUM OPERADOR NUM ALIAS VALOR : NUM OPERADOR NUM VALOR : BNot NUM ALIAS VALOR : BNot NUM VALOR : raizCuadrada NUM ALIAS VALOR : raizCuadrada NUM VALOR : raizCubica NUM ALIAS VALOR : raizCubica NUM VALOR : GETBYTE PABRE CADENA COMA NUMERO PCIERRA VALOR : GETBYTE PABRE CADENA COMA NUMERO PCIERRA ALIAS VALOR : SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA VALOR : SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA ALIAS VALOR : CASE LWHEN END VALOR : CASE LWHEN END ALIASVALOR : ID_VALOR PABRE LCONDICION_FUNCION PCIERRA ALIAS VALOR : ID_VALOR PABRE LCONDICION_FUNCION PCIERRA LWHEN : WHEN CONDICION THEN CONDICION LWHEN LWHEN : WHEN CONDICION THEN CONDICION LWHEN : ELSE CONDICION ID_VALOR : DEGREES ID_VALOR : DIV ID_VALOR : FEXP ID_VALOR : FACTORIAL ID_VALOR : FLOOR ID_VALOR : GCD ID_VALOR : LN ID_VALOR : LOG ID_VALOR : MOD ID_VALOR : POWER ID_VALOR : RADIANS ID_VALOR : ROUND ID_VALOR : SIGN ID_VALOR : SQRT ID_VALOR : WIDTH_BUCKET ID_VALOR : TRUNC OPERADOR : BAnd OPERADOR : BOr OPERADOR : BXor OPERADOR : DesplazaI OPERADOR : DesplazaD LNUM : LNUM COMA NUMLNUM : NUMNUM : NUMERO NUM : DECIMAL NUM : CADENA FTRIGONOMETRICAS : ACOS FTRIGONOMETRICAS : ACOSD FTRIGONOMETRICAS : ASIN FTRIGONOMETRICAS : ASIND FTRIGONOMETRICAS : ATAN FTRIGONOMETRICAS : ATAND FTRIGONOMETRICAS : ATAN2 FTRIGONOMETRICAS : ATAN2D FTRIGONOMETRICAS : COS FTRIGONOMETRICAS : COSD FTRIGONOMETRICAS : COT FTRIGONOMETRICAS : COTD FTRIGONOMETRICAS : SIN FTRIGONOMETRICAS : SIND FTRIGONOMETRICAS : TAN FTRIGONOMETRICAS : TAND FTRIGONOMETRICAS : SINH FTRIGONOMETRICAS : COSH FTRIGONOMETRICAS : TANH FTRIGONOMETRICAS : ASINH FTRIGONOMETRICAS : ACOSH FTRIGONOMETRICAS : ATANH FUNCION : AVGFUNCION : SUMFUNCION : MINFUNCION : MAXALIAS : AS ID ALIAS : ID ALIAS : AS IDALIASALIAS : IDALIASPFROM : FROM ID ALIAS PFROM : FROM ID PFROM : FROM PABRE SUBCONSULTA PCIERRA ALIAS SUBCONSULTA : SELECT VALORES PFROM COMPLEMENTO SUBCONSULTA : SELECT VALORES PFROM PWHERE COMPLEMENTO PWHERE : WHERE CONDICION CONDICION : CONDICION IGUAL CONDICION CONDICION : CONDICION DIF CONDICION CONDICION : CONDICION DIF1 CONDICION CONDICION : CONDICION MENOR CONDICION CONDICION : CONDICION MENORIGUAL CONDICION CONDICION : CONDICION MAYOR CONDICION CONDICION : CONDICION MAYORIGUAL CONDICION CONDICION : CONDICION AND CONDICION CONDICION : CONDICION OR CONDICION CONDICION : NOT CONDICION CONDICION : PABRE CONDICION PCIERRA CONDICION : CONDICION MAS CONDICION CONDICION : CONDICION MENOS CONDICION CONDICION : CONDICION POR CONDICION CONDICION : CONDICION DIVIDIDO CONDICION CONDICION : CONDICION MODULO CONDICION CONDICION : CONDICION EXP CONDICION CONDICION : CONDICION IS CONDICION CONDICION : CONDICION ISNULL CONDICION CONDICION : CONDICION NOTNULL CONDICION CONDICION : MENOS CONDICION %prec UMENOSCONDICION : MAS CONDICION %prec UMASCONDICION : EXTRACT PABRE DATETIME FROM PTIMESTAMP PCIERRA CONDICION : FUNCIONES_WHERE CONDICION : NUMERO CONDICION : DECIMALCONDICION : CADENA CONDICION : TRUE CONDICION : FALSE CONDICION : ID CONDICION : ID PUNTO ID CONDICION : FUNCIONES_SISTEMA CONDICION : DATE_PART PABRE CADENA COMA INTERVAL CADENA PCIERRA CONDICION : CURRENT_DATE CONDICION : CURRENT_TIME CONDICION : TIMESTAMP CADENA CONDICION : CONDICION BETWEEN CONDICION CONDICION : CONDICION NOT BETWEEN CONDICION %prec NOTBCONDICION : CONDICION BETWEEN SIMMETRIC CONDICION CONDICION : CONDICION NOT BETWEEN SIMMETRIC CONDICION %prec NOTBCONDICION : CONDICION IS DISTINCT FROM CONDICION CONDICION : CONDICION IS NOT DISTINCT FROM CONDICION CONDICION : NULL CONDICION : UNKNOWN CONDICION : PABRE SUBCONSULTA PCIERRA CONDICION : FUNCION PABRE ID PCIERRACONDICION : FUNCION PABRE ID PUNTO ID PCIERRACONDICION : NOW PABRE PCIERRA FUNCIONES_SISTEMA : ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA ALIAS FUNCIONES_SISTEMA : ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA FUNCIONES_SISTEMA : ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA ALIAS FUNCIONES_SISTEMA : ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA FUNCIONES_SISTEMA : TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA ALIAS FUNCIONES_SISTEMA : TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA FUNCIONES_SISTEMA : TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA ALIAS FUNCIONES_SISTEMA : TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA ID_FUNCION_S : SUBSTRING ID_FUNCION_S : LENGTH ID_FUNCION_S : SUBSTR LBOTH : LEADING LBOTH : TRAILING LBOTH : BOTH LCONDICION_FUNCION_S : CONDICION LCONDICION_FUNCION_S : CONDICION COMA NUMERO COMA NUMERO ID_FUNCION : ABS ID_FUNCION : CBRT ID_FUNCION : CEIL ID_FUNCION : CEILING LCONDICION_FUNCION : CONDICION LCONDICION_FUNCION : LCONDICION_FUNCION COMA CONDICION DATETIME : YEAR DATETIME : HOUR DATETIME : MINUTE DATETIME : SECOND DATETIME : MONTH DATETIME : DAY FUNCIONES_WHERE : EXISTS PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION IN PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION NOT IN PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION OPERATOR_FW ANY PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION OPERATOR_FW ALL PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION OPERATOR_FW SOME PABRE SUBCONSULTA PCIERRA FUNCIONES_WHERE : CONDICION LIKE CADENA FUNCIONES_WHERE : CONDICION NOT LIKE CADENA OPERATOR_FW : MENOR OPERATOR_FW : MAYOR OPERATOR_FW : MENORIGUAL OPERATOR_FW : MAYORIGUAL OPERATOR_FW : IGUAL OPERATOR_FW : DIF OPERATOR_FW : DIF1 PTIMESTAMP : TIMESTAMP CADENA PTIMESTAMP : TIMESTAMP ID PTIMESTAMP : TIMESTAMP ID PUNTO ID PTIMESTAMP : CADENA PTIMESTAMP : ID PTIMESTAMP : ID PUNTO ID EMPTY :'
_lr_action_items = {'SELECT':([0,1,2,4,5,6,7,8,9,10,11,21,22,23,24,25,26,32,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,153,155,157,162,166,167,168,198,199,227,228,229,232,234,239,244,250,256,259,261,263,276,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,313,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,419,420,422,423,424,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[12,12,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,12,-158,12,12,165,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,12,12,12,165,-323,-324,-325,-290,-292,-308,-320,-319,-334,165,-78,-108,-93,-134,-152,-154,-156,165,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,165,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,165,-382,165,165,165,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'CREATE':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[13,13,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'DROP':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,254,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,478,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[14,14,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,381,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,589,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'INSERT':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[15,15,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'ALTER':([0,1,2,4,5,6,7,8,9,10,11,16,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,254,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,375,376,379,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,584,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[16,16,-2,-4,-5,-6,-7,-8,-9,-10,-11,139,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,380,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,474,-83,139,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,474,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'UPDATE':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[17,17,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'SHOW':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[18,18,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'DELETE':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[19,19,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'USE':([0,1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[20,20,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'$end':([1,2,4,5,6,7,8,9,10,11,21,22,24,34,64,66,67,68,70,71,73,74,125,126,127,128,133,134,135,140,141,142,166,167,168,198,199,227,228,229,232,239,244,250,256,259,261,263,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,360,364,365,371,376,387,388,389,390,391,397,405,416,417,420,444,445,446,450,466,469,475,477,485,500,507,509,511,534,535,569,574,575,576,583,590,614,615,616,617,618,626,634,637,663,665,677,683,690,701,703,725,727,740,741,763,764,766,767,769,781,788,790,802,803,807,],[0,-2,-4,-5,-6,-7,-8,-9,-10,-11,-1,-3,-158,-328,-322,-326,-327,-330,-332,-333,-341,-342,-13,-14,-15,-16,-79,-106,-107,-80,-81,-82,-323,-324,-325,-290,-292,-308,-320,-319,-334,-78,-108,-93,-134,-152,-154,-156,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-112,-110,-125,-96,-83,-135,-12,-153,-155,-157,-298,-343,-337,-336,-382,-375,-348,-350,-77,-94,-97,-84,-85,-128,-344,-339,-338,-376,-347,-349,-109,-123,-120,-124,-89,-86,-340,-377,-378,-379,-380,-321,-111,-115,-20,-76,-98,-88,-345,-331,-352,-17,-126,-351,-354,-353,-113,-117,-114,-119,-87,-21,-95,-116,-118,-99,]),'UNION':([3,27,29,30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,158,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,265,266,267,268,269,270,275,277,278,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,330,331,332,333,336,349,392,393,394,396,397,400,401,403,404,405,406,409,410,413,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,487,488,489,490,491,492,493,494,497,500,502,503,506,507,509,511,515,517,518,523,527,534,535,602,603,605,606,607,608,609,612,613,614,615,616,617,618,619,620,621,622,623,626,684,685,686,687,690,691,692,693,694,695,696,697,701,703,733,734,735,736,737,738,740,741,762,763,],[23,-143,-180,-181,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-396,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,-139,-396,-146,-150,-148,-151,-294,-396,-182,-185,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-205,-207,-219,-220,-222,-224,-230,-346,-140,-144,-147,-149,-298,-159,-293,-141,-396,-343,-184,-188,-189,-193,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,-145,-174,-175,-177,-178,-161,-163,-396,-142,-344,-186,-187,-195,-339,-338,-376,-199,-202,-203,-217,-232,-347,-349,-164,-165,-167,-168,-173,-160,-295,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-176,-179,-162,-396,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-166,-169,-170,-171,-172,-228,-351,-354,-229,-353,]),'INTERSECT':([3,27,29,30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,158,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,265,266,267,268,269,270,275,277,278,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,330,331,332,333,336,349,392,393,394,396,397,400,401,403,404,405,406,409,410,413,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,487,488,489,490,491,492,493,494,497,500,502,503,506,507,509,511,515,517,518,523,527,534,535,602,603,605,606,607,608,609,612,613,614,615,616,617,618,619,620,621,622,623,626,684,685,686,687,690,691,692,693,694,695,696,697,701,703,733,734,735,736,737,738,740,741,762,763,],[25,-143,-180,-181,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-396,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,-139,-396,-146,-150,-148,-151,-294,-396,-182,-185,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-205,-207,-219,-220,-222,-224,-230,-346,-140,-144,-147,-149,-298,-159,-293,-141,-396,-343,-184,-188,-189,-193,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,-145,-174,-175,-177,-178,-161,-163,-396,-142,-344,-186,-187,-195,-339,-338,-376,-199,-202,-203,-217,-232,-347,-349,-164,-165,-167,-168,-173,-160,-295,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-176,-179,-162,-396,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-166,-169,-170,-171,-172,-228,-351,-354,-229,-353,]),'EXCEPT':([3,27,29,30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,158,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,265,266,267,268,269,270,275,277,278,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,330,331,332,333,336,349,392,393,394,396,397,400,401,403,404,405,406,409,410,413,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,487,488,489,490,491,492,493,494,497,500,502,503,506,507,509,511,515,517,518,523,527,534,535,602,603,605,606,607,608,609,612,613,614,615,616,617,618,619,620,621,622,623,626,684,685,686,687,690,691,692,693,694,695,696,697,701,703,733,734,735,736,737,738,740,741,762,763,],[26,-143,-180,-181,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-396,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,-139,-396,-146,-150,-148,-151,-294,-396,-182,-185,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-205,-207,-219,-220,-222,-224,-230,-346,-140,-144,-147,-149,-298,-159,-293,-141,-396,-343,-184,-188,-189,-193,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,-145,-174,-175,-177,-178,-161,-163,-396,-142,-344,-186,-187,-195,-339,-338,-376,-199,-202,-203,-217,-232,-347,-349,-164,-165,-167,-168,-173,-160,-295,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-176,-179,-162,-396,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-166,-169,-170,-171,-172,-228,-351,-354,-229,-353,]),'PCOMA':([3,27,29,30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,141,142,149,152,154,156,158,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,241,246,247,250,258,260,262,264,265,266,267,268,269,270,275,277,278,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,330,331,332,333,336,349,371,376,377,378,382,383,392,393,394,396,397,400,401,403,404,405,406,409,410,413,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,461,466,469,472,473,475,477,479,487,488,489,490,491,492,493,494,497,500,502,503,506,507,509,511,515,517,518,523,527,534,535,539,540,542,543,544,545,546,547,548,549,553,554,555,556,558,559,574,575,576,583,586,588,590,593,594,602,603,605,606,607,608,609,612,613,614,615,616,617,618,619,620,621,622,623,626,648,650,655,656,657,658,659,660,661,662,674,677,679,681,683,684,685,686,687,690,691,692,693,694,695,696,697,701,703,718,733,734,735,736,737,738,740,741,742,743,750,752,753,754,761,762,763,775,776,781,790,793,794,801,807,],[24,-143,-180,-181,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-81,-82,256,259,261,263,-396,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,360,364,365,-93,388,389,390,391,-139,-396,-146,-150,-148,-151,-294,-396,-182,-185,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-205,-207,-219,-220,-222,-224,-230,-346,-96,-83,475,477,-104,-101,-140,-144,-147,-149,-298,-159,-293,-141,-396,-343,-184,-188,-189,-193,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,569,-94,-97,583,-91,-84,-85,590,-145,-174,-175,-177,-178,-161,-163,-396,-142,-344,-186,-187,-195,-339,-338,-376,-199,-202,-203,-217,-232,-347,-349,637,-66,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,665,-123,-120,-124,-89,-103,-100,-86,683,-102,-164,-165,-167,-168,-173,-160,-295,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,727,-98,-90,-105,-88,-176,-179,-162,-396,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-64,-166,-169,-170,-171,-172,-228,-351,-354,766,769,-69,-68,-58,-59,781,-229,-353,-67,788,-87,-95,802,803,-92,-99,]),'DISTINCT':([12,189,305,],[28,304,415,]),'POR':([12,28,34,36,43,52,64,65,66,67,68,70,71,73,74,164,165,166,167,168,170,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[29,29,-328,185,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,185,29,-323,-324,-325,284,-290,-292,185,-320,-319,-334,185,-343,-309,-329,185,185,185,185,185,185,185,185,185,185,185,-312,-313,-314,-315,185,185,185,-335,-381,-289,-291,185,185,185,-346,185,185,185,-343,-344,185,-336,-382,-375,-348,-350,185,185,-344,185,-338,-376,185,185,-347,-349,185,-345,185,-377,-378,-379,-380,-321,185,-345,-331,-352,-351,-354,-353,185,185,]),'PABRE':([12,28,32,33,35,37,38,39,40,41,42,44,45,46,51,53,55,56,57,58,59,60,61,62,63,69,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,143,144,159,161,162,165,169,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,194,224,225,226,235,236,242,252,271,274,305,309,310,311,314,315,316,366,372,373,395,414,418,439,441,458,459,460,471,495,508,548,550,551,552,554,555,561,562,565,651,657,658,659,660,661,662,664,669,708,729,760,774,779,787,789,797,804,],[32,32,162,170,172,200,201,202,203,204,205,206,207,208,221,222,226,-285,-286,-287,-288,162,162,162,230,231,233,-263,-264,-265,-266,-267,-268,-269,-270,-271,-272,-273,-274,-275,-276,-277,-278,-279,-280,-281,-282,-283,-284,-237,-238,-239,-240,-241,-242,-243,-244,-245,-246,-247,-248,-249,-250,-251,-252,234,235,236,237,-363,-364,-365,-366,-355,-356,-357,162,251,276,32,162,32,283,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,313,162,162,162,162,162,361,370,162,162,162,162,162,419,422,423,424,462,162,470,162,162,162,162,162,565,567,568,582,162,162,649,652,653,654,649,649,667,668,162,714,649,-71,-72,-73,-74,-75,719,565,745,758,780,787,791,162,799,804,162,]),'COUNT':([12,28,161,165,],[33,33,33,33,]),'GREATEST':([12,28,161,165,],[38,38,38,38,]),'LEAST':([12,28,161,165,],[39,39,39,39,]),'RANDOM':([12,28,161,165,],[40,40,40,40,]),'PI':([12,28,161,165,],[41,41,41,41,]),'DECODE':([12,28,161,165,],[42,42,42,42,]),'ENCODE':([12,28,161,165,],[44,44,44,44,]),'CONVERT':([12,28,161,165,],[45,45,45,45,]),'SHA256':([12,28,161,165,],[46,46,46,46,]),'BNot':([12,28,161,165,],[48,48,48,48,]),'raizCuadrada':([12,28,161,165,],[49,49,49,49,]),'raizCubica':([12,28,161,165,],[50,50,50,50,]),'GETBYTE':([12,28,161,165,],[51,51,51,51,]),'SETBYTE':([12,28,161,165,],[53,53,53,53,]),'CASE':([12,28,161,165,],[54,54,54,54,]),'AVG':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,]),'SUM':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,]),'MIN':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,]),'MAX':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,59,]),'NOT':([12,28,32,34,36,43,52,60,61,62,64,65,66,67,68,70,71,73,74,143,161,162,164,165,166,167,168,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,198,199,224,225,226,227,228,229,232,235,236,240,250,271,274,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,305,306,307,308,309,310,317,318,319,337,338,340,349,353,372,395,397,400,405,413,414,416,417,418,420,439,441,444,445,446,469,488,495,500,507,508,509,511,526,528,534,535,540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,565,596,597,608,613,614,615,616,617,618,626,648,650,655,656,657,658,659,660,661,662,670,682,690,701,703,707,708,709,718,740,741,750,752,753,754,763,775,784,787,798,804,808,],[60,60,60,-328,193,-325,-323,60,60,60,-322,-324,-326,-327,-330,-332,-333,-341,-342,60,60,60,193,60,-323,-324,-325,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,305,60,60,60,-290,-292,60,60,60,193,-320,-319,-334,60,60,359,193,60,60,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,193,193,-310,-311,-312,-313,-314,-315,-316,60,-317,-318,-335,60,60,-381,-289,-291,193,193,193,-346,193,60,60,193,193,-343,-344,60,193,-336,60,-382,60,60,-375,-348,-350,193,193,60,-344,193,60,-338,-376,193,193,-347,-349,-66,644,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,60,-132,-133,193,-345,193,-377,-378,-379,-380,-321,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,193,732,-345,-331,-352,644,644,644,-64,-351,-354,-69,-68,-58,-59,-353,-67,644,60,193,60,193,]),'MENOS':([12,28,32,34,36,43,52,60,61,62,64,65,66,67,68,70,71,73,74,143,161,162,164,165,166,167,168,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,198,199,224,225,226,227,228,229,232,235,236,250,271,274,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,305,306,307,308,309,310,317,318,319,337,338,340,349,353,372,395,397,400,405,413,414,416,417,418,420,439,441,444,445,446,469,488,495,500,507,508,509,511,526,528,534,535,565,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,787,798,804,808,],[62,62,62,-328,184,-325,-323,62,62,62,-322,-324,-326,-327,-330,-332,-333,-341,-342,62,62,62,184,62,-323,-324,-325,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,62,-290,-292,62,62,62,184,-320,-319,-334,62,62,184,62,62,-343,-309,-329,184,184,184,184,184,184,184,184,184,-310,-311,-312,-313,-314,-315,184,62,184,184,-335,62,62,-381,-289,-291,184,184,184,-346,184,62,62,184,184,-343,-344,62,184,-336,62,-382,62,62,-375,-348,-350,184,184,62,-344,184,62,-338,-376,184,184,-347,-349,62,184,-345,184,-377,-378,-379,-380,-321,184,-345,-331,-352,-351,-354,-353,62,184,62,184,]),'MAS':([12,28,32,34,36,43,52,60,61,62,64,65,66,67,68,70,71,73,74,143,161,162,164,165,166,167,168,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,198,199,224,225,226,227,228,229,232,235,236,250,271,274,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,305,306,307,308,309,310,317,318,319,337,338,340,349,353,372,395,397,400,405,413,414,416,417,418,420,439,441,444,445,446,469,488,495,500,507,508,509,511,526,528,534,535,565,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,787,798,804,808,],[61,61,61,-328,183,-325,-323,61,61,61,-322,-324,-326,-327,-330,-332,-333,-341,-342,61,61,61,183,61,-323,-324,-325,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,61,-290,-292,61,61,61,183,-320,-319,-334,61,61,183,61,61,-343,-309,-329,183,183,183,183,183,183,183,183,183,-310,-311,-312,-313,-314,-315,183,61,183,183,-335,61,61,-381,-289,-291,183,183,183,-346,183,61,61,183,183,-343,-344,61,183,-336,61,-382,61,61,-375,-348,-350,183,183,61,-344,183,61,-338,-376,183,183,-347,-349,61,183,-345,183,-377,-378,-379,-380,-321,183,-345,-331,-352,-351,-354,-353,61,183,61,183,]),'EXTRACT':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,63,]),'NUMERO':([12,28,32,48,49,50,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,200,201,202,209,210,211,212,213,214,224,225,226,235,236,271,274,305,309,310,372,395,414,418,426,436,437,439,441,447,462,484,495,508,565,624,631,642,649,652,653,654,675,714,780,787,804,],[52,52,166,216,216,216,166,166,166,166,52,166,52,166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,216,216,216,216,-253,-254,-255,-256,-257,166,166,166,166,166,166,166,166,166,166,166,166,166,166,216,524,525,166,166,536,572,597,166,166,166,698,702,597,713,715,716,717,572,751,792,166,166,]),'DECIMAL':([12,28,32,48,49,50,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,200,201,202,209,210,211,212,213,214,224,225,226,235,236,271,274,305,309,310,372,395,414,418,426,439,441,452,495,508,565,591,787,804,],[65,65,167,217,217,217,167,167,167,167,65,167,65,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,167,217,217,217,217,-253,-254,-255,-256,-257,167,167,167,167,167,167,167,167,167,167,167,167,167,167,217,167,167,545,167,167,167,545,167,167,]),'CADENA':([12,28,32,48,49,50,60,61,62,72,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,196,200,201,202,205,206,207,208,209,210,211,212,213,214,221,222,224,225,226,231,235,236,271,274,305,309,310,312,354,355,356,357,372,395,414,418,426,431,432,439,441,442,449,495,508,530,533,537,565,633,787,804,],[43,43,168,218,218,218,168,168,168,232,168,43,168,43,168,168,168,168,168,168,168,168,168,168,168,168,168,168,168,168,168,168,168,317,218,218,218,326,327,328,329,218,-253,-254,-255,-256,-257,334,335,168,168,168,348,168,168,168,168,168,168,168,420,448,-358,-359,-360,168,168,168,168,218,519,520,168,168,531,538,168,168,627,630,632,168,704,168,168,]),'TRUE':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,66,]),'FALSE':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,67,]),'ID':([12,17,28,32,34,36,43,52,60,61,62,64,65,66,67,68,70,71,73,74,130,131,132,136,137,138,143,146,147,150,151,159,161,162,165,166,167,168,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,197,198,199,215,216,217,218,219,220,224,225,226,227,228,229,232,235,236,249,251,254,255,271,274,275,280,281,283,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,305,306,307,308,309,310,317,318,319,324,325,330,336,349,358,361,363,370,372,395,398,399,405,409,410,411,412,413,414,416,417,418,420,425,427,428,434,439,440,441,442,444,445,446,451,452,457,463,467,470,480,481,482,483,486,495,496,500,501,507,508,509,511,530,534,535,560,565,567,577,578,582,585,591,599,600,601,604,612,613,614,615,616,617,618,619,620,621,622,623,626,629,641,647,667,668,676,690,699,701,703,705,706,719,738,740,741,745,758,759,763,772,777,782,783,785,787,791,799,804,],[34,148,34,34,-328,198,-325,-323,34,34,34,-322,-324,-326,-327,-330,-332,-333,-341,-342,241,242,243,246,247,248,34,253,254,257,258,275,34,34,34,-323,-324,-325,285,286,287,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,318,-290,-292,198,-260,-261,-262,198,198,34,34,34,-308,-320,-319,-334,34,34,367,369,375,384,34,34,198,198,-309,408,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,34,-317,-318,-335,34,34,-381,-289,-291,198,198,198,198,-346,241,452,461,369,34,34,491,494,-343,198,198,504,505,198,34,-337,-336,34,-382,198,198,198,198,34,198,34,532,-375,198,198,539,540,563,574,579,369,591,592,593,594,384,34,198,-344,611,-339,34,-338,-376,628,-347,-349,452,34,369,-121,-122,369,680,540,491,685,494,687,198,198,-340,-377,-378,-379,-380,198,198,198,198,198,-321,700,708,712,369,369,729,-345,739,-331,198,742,743,755,198,-351,198,770,369,779,-353,786,789,793,794,796,34,369,369,34,]),'DATE_PART':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,69,]),'CURRENT_DATE':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,70,]),'CURRENT_TIME':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,71,]),'TIMESTAMP':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,442,452,495,508,565,591,787,804,],[72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,72,530,554,72,72,72,554,72,72,]),'NULL':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,565,596,597,644,648,650,655,656,657,658,659,660,661,662,707,708,709,718,732,750,752,753,754,775,784,787,804,],[73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,73,-66,645,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,73,-132,-133,710,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,645,645,645,-64,761,-69,-68,-58,-59,-67,645,73,73,]),'UNKNOWN':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,74,]),'NOW':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,75,]),'ACOS':([12,28,161,165,],[76,76,76,76,]),'ACOSD':([12,28,161,165,],[77,77,77,77,]),'ASIN':([12,28,161,165,],[78,78,78,78,]),'ASIND':([12,28,161,165,],[79,79,79,79,]),'ATAN':([12,28,161,165,],[80,80,80,80,]),'ATAND':([12,28,161,165,],[81,81,81,81,]),'ATAN2':([12,28,161,165,],[82,82,82,82,]),'ATAN2D':([12,28,161,165,],[83,83,83,83,]),'COS':([12,28,161,165,],[84,84,84,84,]),'COSD':([12,28,161,165,],[85,85,85,85,]),'COT':([12,28,161,165,],[86,86,86,86,]),'COTD':([12,28,161,165,],[87,87,87,87,]),'SIN':([12,28,161,165,],[88,88,88,88,]),'SIND':([12,28,161,165,],[89,89,89,89,]),'TAN':([12,28,161,165,],[90,90,90,90,]),'TAND':([12,28,161,165,],[91,91,91,91,]),'SINH':([12,28,161,165,],[92,92,92,92,]),'COSH':([12,28,161,165,],[93,93,93,93,]),'TANH':([12,28,161,165,],[94,94,94,94,]),'ASINH':([12,28,161,165,],[95,95,95,95,]),'ACOSH':([12,28,161,165,],[96,96,96,96,]),'ATANH':([12,28,161,165,],[97,97,97,97,]),'DEGREES':([12,28,161,165,],[98,98,98,98,]),'DIV':([12,28,161,165,],[99,99,99,99,]),'FEXP':([12,28,161,165,],[100,100,100,100,]),'FACTORIAL':([12,28,161,165,],[101,101,101,101,]),'FLOOR':([12,28,161,165,],[102,102,102,102,]),'GCD':([12,28,161,165,],[103,103,103,103,]),'LN':([12,28,161,165,],[104,104,104,104,]),'LOG':([12,28,161,165,],[105,105,105,105,]),'MOD':([12,28,161,165,],[106,106,106,106,]),'POWER':([12,28,161,165,],[107,107,107,107,]),'RADIANS':([12,28,161,165,],[108,108,108,108,]),'ROUND':([12,28,161,165,],[109,109,109,109,]),'SIGN':([12,28,161,165,],[110,110,110,110,]),'SQRT':([12,28,161,165,],[111,111,111,111,]),'WIDTH_BUCKET':([12,28,161,165,],[112,112,112,112,]),'TRUNC':([12,28,161,165,],[113,113,113,113,]),'EXISTS':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,245,271,274,305,309,310,359,372,395,414,418,439,441,495,508,565,787,804,],[114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,363,114,114,114,114,114,451,114,114,114,114,114,114,114,114,114,114,114,]),'TRIM':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,]),'ABS':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,]),'CBRT':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,]),'CEIL':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,]),'CEILING':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,]),'SUBSTRING':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,]),'LENGTH':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,]),'SUBSTR':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,]),'OR':([13,34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[129,-328,182,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,182,-323,-324,-325,-290,-292,-308,-320,-319,-334,182,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,182,182,182,-346,182,182,182,-343,-344,182,-336,-382,-375,-348,-350,182,182,-344,182,-338,-376,182,182,-347,-349,182,-345,182,-377,-378,-379,-380,-321,182,-345,-331,-352,-351,-354,-353,182,182,]),'DATABASE':([13,14,18,20,139,238,],[130,136,149,151,249,358,]),'TABLE':([13,14,16,379,],[131,137,147,147,]),'TYPE':([13,680,],[132,731,]),'INTO':([15,],[138,]),'CHECK':([16,253,361,379,560,563,749,786,],[143,372,458,143,458,669,774,797,]),'UNIQUE':([16,253,361,379,560,712,],[144,373,459,144,459,749,]),'FOREIGN':([16,253,361,379,560,],[145,374,456,145,456,]),'CONSTRAINT':([16,361,379,381,540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,560,596,597,645,648,650,655,656,657,658,659,660,661,662,707,708,709,710,718,749,750,752,753,754,775,784,],[146,457,146,482,-66,647,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,457,-132,-133,647,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,647,647,647,647,-64,772,-69,-68,-58,-59,-67,647,]),'FROM':([19,27,29,30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,160,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,278,280,281,282,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,306,307,308,317,318,319,324,325,330,331,332,333,336,341,342,343,344,345,346,347,349,354,355,356,357,405,406,409,410,413,415,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,448,500,502,503,506,507,509,511,515,517,518,523,527,534,535,612,613,614,615,616,617,618,619,620,621,622,623,626,690,691,692,693,694,695,696,697,701,703,738,740,741,762,763,],[150,159,-180,-181,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,159,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,-182,-185,-309,159,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,414,-317,-318,-335,-381,-289,-291,-205,-207,-219,-220,-222,-224,-230,442,-369,-370,-371,-372,-373,-374,-346,449,-358,-359,-360,-343,-184,-188,-189,-193,508,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,537,-344,-186,-187,-195,-339,-338,-376,-199,-202,-203,-217,-232,-347,-349,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-228,-351,-354,-229,-353,]),'ALL':([23,25,26,174,175,176,177,178,179,180,195,],[153,155,157,-387,-388,-389,-383,-385,-384,-386,315,]),'COMA':([30,31,34,36,43,52,64,65,66,67,68,70,71,73,74,166,167,168,173,198,199,215,216,217,218,219,220,227,228,229,232,278,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,320,321,322,323,324,325,326,327,330,331,332,333,334,335,336,339,340,348,349,351,353,368,369,377,378,382,383,385,386,405,406,409,410,413,416,417,420,425,427,428,429,430,434,435,438,440,444,445,446,453,454,468,472,473,489,490,491,492,493,494,500,502,503,506,507,509,511,515,516,517,518,523,525,527,528,534,535,536,538,540,542,543,544,545,546,547,548,549,553,554,555,556,558,564,566,570,571,572,573,579,581,586,588,594,595,596,597,598,602,603,605,606,607,612,613,614,615,616,617,618,619,620,621,622,623,626,638,640,643,646,648,650,655,656,657,658,659,660,661,662,666,671,678,679,681,684,685,686,687,690,691,692,693,694,695,696,697,701,703,711,718,720,721,722,723,724,728,733,734,735,736,737,738,740,741,744,746,747,748,749,750,752,753,754,756,762,763,770,771,773,775,778,795,796,800,801,805,806,809,810,],[161,-183,-328,-196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-197,-290,-292,-221,-260,-261,-262,-223,-225,-308,-320,-319,-334,-182,-185,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,426,-259,426,426,-205,-207,431,432,-219,-220,-222,-224,436,437,-230,441,-367,443,-346,441,447,467,-48,476,478,-104,-101,486,-130,-343,-184,-188,-189,-193,-337,-336,-382,-198,-200,-201,-204,-206,-216,-218,-231,-233,-375,-348,-350,560,-23,467,584,-91,599,-177,-178,601,-163,-396,-344,-186,-187,-195,-339,-338,-376,-199,-258,-202,-203,-217,624,-232,-368,-347,-349,631,633,-66,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,-28,-30,675,-136,-137,-138,-47,467,-103,-100,-102,-131,-132,-133,-129,-164,-165,-167,-168,-173,-191,-192,-340,-377,-378,-379,-380,-209,-211,-212,-213,-226,-321,-24,-46,-34,-37,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,-22,467,467,-90,-105,-176,-179,-162,-396,-345,-190,-194,-208,-210,-214,-215,-227,-331,-352,-36,-64,467,467,-27,-29,-31,-127,-166,-169,-170,-171,-172,-228,-351,-354,-32,-45,-33,-35,-41,-69,-68,-58,-59,-25,-229,-353,-44,785,-38,-67,467,-42,-43,467,-92,-40,467,-26,-39,]),'IGUAL':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,384,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,635,636,670,690,701,703,740,741,763,765,768,798,808,],[-328,174,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,174,-323,-324,-325,-290,-292,174,-320,-319,-334,174,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,174,174,-310,-311,-312,-313,-314,-315,174,174,174,-335,-381,-289,-291,174,174,174,-346,174,484,174,174,-343,-344,174,-336,-382,-375,-348,-350,174,174,-344,174,-338,-376,174,174,-347,-349,174,-345,174,-377,-378,-379,-380,-321,705,706,174,-345,-331,-352,-351,-354,-353,782,783,174,174,]),'DIF':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,175,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,175,-323,-324,-325,-290,-292,175,-320,-319,-334,175,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,175,175,-310,-311,-312,-313,-314,-315,175,175,175,-335,-381,-289,-291,175,175,175,-346,175,175,175,-343,-344,175,-336,-382,-375,-348,-350,175,175,-344,175,-338,-376,175,175,-347,-349,175,-345,175,-377,-378,-379,-380,-321,175,-345,-331,-352,-351,-354,-353,175,175,]),'DIF1':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,176,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,176,-323,-324,-325,-290,-292,176,-320,-319,-334,176,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,176,176,-310,-311,-312,-313,-314,-315,176,176,176,-335,-381,-289,-291,176,176,176,-346,176,176,176,-343,-344,176,-336,-382,-375,-348,-350,176,176,-344,176,-338,-376,176,176,-347,-349,176,-345,176,-377,-378,-379,-380,-321,176,-345,-331,-352,-351,-354,-353,176,176,]),'MENOR':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,177,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,177,-323,-324,-325,-290,-292,177,-320,-319,-334,177,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,177,177,-310,-311,-312,-313,-314,-315,177,177,177,-335,-381,-289,-291,177,177,177,-346,177,177,177,-343,-344,177,-336,-382,-375,-348,-350,177,177,-344,177,-338,-376,177,177,-347,-349,177,-345,177,-377,-378,-379,-380,-321,177,-345,-331,-352,-351,-354,-353,177,177,]),'MENORIGUAL':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,178,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,178,-323,-324,-325,-290,-292,178,-320,-319,-334,178,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,178,178,-310,-311,-312,-313,-314,-315,178,178,178,-335,-381,-289,-291,178,178,178,-346,178,178,178,-343,-344,178,-336,-382,-375,-348,-350,178,178,-344,178,-338,-376,178,178,-347,-349,178,-345,178,-377,-378,-379,-380,-321,178,-345,-331,-352,-351,-354,-353,178,178,]),'MAYOR':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,179,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,179,-323,-324,-325,-290,-292,179,-320,-319,-334,179,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,179,179,-310,-311,-312,-313,-314,-315,179,179,179,-335,-381,-289,-291,179,179,179,-346,179,179,179,-343,-344,179,-336,-382,-375,-348,-350,179,179,-344,179,-338,-376,179,179,-347,-349,179,-345,179,-377,-378,-379,-380,-321,179,-345,-331,-352,-351,-354,-353,179,179,]),'MAYORIGUAL':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,180,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,180,-323,-324,-325,-290,-292,180,-320,-319,-334,180,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,180,180,-310,-311,-312,-313,-314,-315,180,180,180,-335,-381,-289,-291,180,180,180,-346,180,180,180,-343,-344,180,-336,-382,-375,-348,-350,180,180,-344,180,-338,-376,180,180,-347,-349,180,-345,180,-377,-378,-379,-380,-321,180,-345,-331,-352,-351,-354,-353,180,180,]),'AND':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,181,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,181,-323,-324,-325,-290,-292,-308,-320,-319,-334,181,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,181,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,181,181,181,-346,181,181,181,-343,-344,181,-336,-382,-375,-348,-350,181,181,-344,181,-338,-376,181,181,-347,-349,181,-345,181,-377,-378,-379,-380,-321,181,-345,-331,-352,-351,-354,-353,181,181,]),'DIVIDIDO':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,186,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,186,-323,-324,-325,-290,-292,186,-320,-319,-334,186,-343,-309,-329,186,186,186,186,186,186,186,186,186,186,186,-312,-313,-314,-315,186,186,186,-335,-381,-289,-291,186,186,186,-346,186,186,186,-343,-344,186,-336,-382,-375,-348,-350,186,186,-344,186,-338,-376,186,186,-347,-349,186,-345,186,-377,-378,-379,-380,-321,186,-345,-331,-352,-351,-354,-353,186,186,]),'MODULO':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,187,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,187,-323,-324,-325,-290,-292,187,-320,-319,-334,187,-343,-309,-329,187,187,187,187,187,187,187,187,187,187,187,-312,-313,-314,-315,187,187,187,-335,-381,-289,-291,187,187,187,-346,187,187,187,-343,-344,187,-336,-382,-375,-348,-350,187,187,-344,187,-338,-376,187,187,-347,-349,187,-345,187,-377,-378,-379,-380,-321,187,-345,-331,-352,-351,-354,-353,187,187,]),'EXP':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,188,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,188,-323,-324,-325,-290,-292,188,-320,-319,-334,188,-343,-309,-329,188,188,188,188,188,188,188,188,188,188,188,188,188,188,-315,188,188,188,-335,-381,-289,-291,188,188,188,-346,188,188,188,-343,-344,188,-336,-382,-375,-348,-350,188,188,-344,188,-338,-376,188,188,-347,-349,188,-345,188,-377,-378,-379,-380,-321,188,-345,-331,-352,-351,-354,-353,188,188,]),'IS':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,189,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,189,-323,-324,-325,-290,-292,189,-320,-319,-334,189,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,189,189,-310,-311,-312,-313,-314,-315,189,189,189,-335,-381,-289,-291,189,189,189,-346,189,189,189,-343,-344,189,-336,-382,-375,-348,-350,189,189,-344,189,-338,-376,189,189,-347,-349,189,-345,189,-377,-378,-379,-380,-321,189,-345,-331,-352,-351,-354,-353,189,189,]),'ISNULL':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,190,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,190,-323,-324,-325,-290,-292,190,-320,-319,-334,190,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,190,190,-310,-311,-312,-313,-314,-315,None,None,None,-335,-381,-289,-291,190,190,190,-346,190,190,190,-343,-344,190,-336,-382,-375,-348,-350,190,190,-344,190,-338,-376,190,190,-347,-349,190,-345,190,-377,-378,-379,-380,-321,190,-345,-331,-352,-351,-354,-353,190,190,]),'NOTNULL':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,191,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,191,-323,-324,-325,-290,-292,191,-320,-319,-334,191,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,191,191,-310,-311,-312,-313,-314,-315,None,None,None,-335,-381,-289,-291,191,191,191,-346,191,191,191,-343,-344,191,-336,-382,-375,-348,-350,191,191,-344,191,-338,-376,191,191,-347,-349,191,-345,191,-377,-378,-379,-380,-321,191,-345,-331,-352,-351,-354,-353,191,191,]),'BETWEEN':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,193,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,192,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,192,-323,-324,-325,310,-290,-292,192,192,192,-334,192,-343,-309,-329,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,192,-381,-289,-291,192,192,192,-346,192,192,192,-343,-344,192,192,-382,-375,-348,-350,192,192,-344,192,192,-376,192,192,-347,-349,192,-345,192,-377,-378,-379,-380,-321,192,-345,-331,-352,-351,-354,-353,192,192,]),'IN':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,193,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,194,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,194,-323,-324,-325,311,-290,-292,-308,-320,-319,-334,194,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,194,194,194,-346,194,194,194,-343,-344,194,-336,-382,-375,-348,-350,194,194,-344,194,-338,-376,194,194,-347,-349,194,-345,194,-377,-378,-379,-380,-321,194,-345,-331,-352,-351,-354,-353,194,194,]),'LIKE':([34,36,43,52,64,65,66,67,68,70,71,73,74,164,166,167,168,193,198,199,227,228,229,232,250,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,338,340,349,353,397,400,405,413,416,417,420,444,445,446,469,488,500,507,509,511,526,528,534,535,608,613,614,615,616,617,618,626,670,690,701,703,740,741,763,798,808,],[-328,196,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,196,-323,-324,-325,312,-290,-292,-308,-320,-319,-334,196,-343,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,196,196,196,-346,196,196,196,-343,-344,196,-336,-382,-375,-348,-350,196,196,-344,196,-338,-376,196,196,-347,-349,196,-345,196,-377,-378,-379,-380,-321,196,-345,-331,-352,-351,-354,-353,196,196,]),'AS':([34,36,43,52,64,65,66,67,68,70,71,73,74,166,167,168,198,199,215,216,217,218,219,220,227,228,229,232,243,275,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,328,330,336,349,405,409,410,413,416,417,420,425,427,428,434,440,444,445,446,496,500,507,509,511,534,535,612,613,614,615,616,617,618,619,620,621,622,623,626,690,701,703,738,740,741,763,],[-328,197,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,197,-260,-261,-262,197,197,-308,-320,-319,-334,362,197,197,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,197,197,433,197,197,-346,-343,197,197,197,-337,-336,-382,197,197,197,197,197,-375,197,197,197,-344,-339,-338,-376,-347,-349,197,197,-340,-377,-378,-379,-380,197,197,197,197,197,-321,-345,-331,197,197,-351,197,-353,]),'IDALIAS':([34,36,43,52,64,65,66,67,68,70,71,73,74,166,167,168,197,198,199,215,216,217,218,219,220,227,228,229,232,275,280,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,324,325,330,336,349,405,409,410,413,416,417,420,425,427,428,434,440,444,445,446,496,500,507,509,511,534,535,612,613,614,615,616,617,618,619,620,621,622,623,626,690,701,703,738,740,741,763,],[-328,199,-325,-323,-322,-324,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,319,-290,-292,199,-260,-261,-262,199,199,-308,-320,-319,-334,199,199,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,199,199,199,199,-346,-343,199,199,199,-337,-336,-382,199,199,199,199,199,-375,199,199,199,-344,-339,-338,-376,-347,-349,199,199,-340,-377,-378,-379,-380,199,199,199,199,199,-321,-345,-331,199,199,-351,199,-353,]),'PCIERRA':([34,64,66,67,68,70,71,73,74,163,164,166,167,168,198,199,203,204,216,217,218,227,228,229,232,233,267,268,269,270,275,279,281,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,320,321,322,323,329,339,340,349,350,351,352,353,368,369,393,394,396,397,400,401,402,405,407,408,416,417,420,421,444,445,446,453,454,468,487,488,489,490,491,492,493,494,498,499,500,504,505,507,509,510,511,512,513,514,516,519,520,521,522,524,528,529,531,532,534,535,564,566,570,571,572,573,579,581,602,603,605,606,607,608,609,610,611,614,615,616,617,618,626,627,628,630,632,638,640,643,646,666,670,671,672,673,678,684,685,686,687,690,698,700,701,702,703,704,711,713,715,716,717,720,721,722,723,724,726,728,733,734,735,736,737,739,740,741,744,746,747,748,749,751,755,756,763,770,771,773,778,792,795,796,798,800,805,806,808,809,810,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,280,281,-323,-324,-325,-290,-292,324,325,-260,-261,-262,-308,-320,-319,-334,349,-146,-150,-148,-151,-294,405,-309,409,410,-329,413,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,425,-259,427,428,434,440,-367,-346,444,445,446,-361,466,-48,-144,-147,-149,-298,-159,-293,496,-343,-396,500,-337,-336,-382,511,-375,-348,-350,559,-23,580,-145,-174,-175,-177,-178,-161,-163,-396,-296,-396,-344,612,613,-339,-338,615,-376,616,617,618,-258,619,620,621,622,623,-368,626,-393,-394,-347,-349,-28,-30,674,-136,-137,-138,-47,677,-164,-165,-167,-168,-173,-160,-295,-297,690,-340,-377,-378,-379,-380,-321,-390,-391,701,703,-24,-46,-34,-37,-22,723,724,725,-19,730,-176,-179,-162,-396,-345,738,-395,-331,-362,-352,741,-36,750,752,753,754,756,757,-27,-29,-31,-18,-127,-166,-169,-170,-171,-172,-392,-351,-354,-32,-45,-33,-35,-41,775,776,-25,-353,-44,784,-38,790,801,-42,-43,805,807,-40,809,810,-26,-39,]),'THEN':([34,64,66,67,68,70,71,73,74,166,167,168,198,199,227,228,229,232,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,337,349,405,416,417,420,444,445,446,500,507,509,511,534,535,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,-308,-320,-319,-334,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,439,-346,-343,-337,-336,-382,-375,-348,-350,-344,-339,-338,-376,-347,-349,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'END':([34,64,66,67,68,70,71,73,74,166,167,168,198,199,223,227,228,229,232,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,338,349,405,416,417,420,444,445,446,500,507,509,511,526,534,535,614,615,616,617,618,625,626,690,701,703,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,336,-308,-320,-319,-334,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-236,-346,-343,-337,-336,-382,-375,-348,-350,-344,-339,-338,-376,-235,-347,-349,-340,-377,-378,-379,-380,-234,-321,-345,-331,-352,-351,-354,-353,]),'GROUP':([34,64,66,67,68,70,71,73,74,158,166,167,168,198,199,227,228,229,232,266,275,277,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,397,401,404,405,407,416,417,420,444,445,446,499,500,507,509,511,534,535,609,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,272,-323,-324,-325,-290,-292,-308,-320,-319,-334,272,-294,272,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-298,-293,272,-343,272,-337,-336,-382,-375,-348,-350,272,-344,-339,-338,-376,-347,-349,-295,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'ORDER':([34,64,66,67,68,70,71,73,74,158,166,167,168,198,199,227,228,229,232,266,275,277,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,397,401,404,405,407,416,417,420,444,445,446,499,500,507,509,511,534,535,609,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,273,-323,-324,-325,-290,-292,-308,-320,-319,-334,273,-294,273,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-298,-293,273,-343,273,-337,-336,-382,-375,-348,-350,273,-344,-339,-338,-376,-347,-349,-295,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'LIMIT':([34,64,66,67,68,70,71,73,74,158,166,167,168,198,199,227,228,229,232,266,267,269,275,277,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,393,397,401,404,405,407,416,417,420,444,445,446,488,489,490,491,492,493,494,499,500,507,509,511,534,535,602,603,605,606,607,609,614,615,616,617,618,626,684,685,686,687,690,701,703,733,734,735,736,737,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,274,-323,-324,-325,-290,-292,-308,-320,-319,-334,274,274,274,-294,274,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,274,-298,-293,274,-343,274,-337,-336,-382,-375,-348,-350,-174,-175,-177,-178,-161,-163,-396,274,-344,-339,-338,-376,-347,-349,-164,-165,-167,-168,-173,-295,-340,-377,-378,-379,-380,-321,-176,-179,-162,-396,-345,-331,-352,-166,-169,-170,-171,-172,-351,-354,-353,]),'OFFSET':([34,64,66,67,68,70,71,73,74,166,167,168,198,199,227,228,229,232,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,400,405,416,417,420,444,445,446,500,507,509,511,534,535,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,-322,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,-308,-320,-319,-334,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,495,-343,-337,-336,-382,-375,-348,-350,-344,-339,-338,-376,-347,-349,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'WHEN':([34,54,64,66,67,68,70,71,73,74,166,167,168,198,199,227,228,229,232,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,405,416,417,420,444,445,446,500,507,509,511,526,534,535,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,224,-322,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,-308,-320,-319,-334,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-343,-337,-336,-382,-375,-348,-350,-344,-339,-338,-376,224,-347,-349,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'ELSE':([34,54,64,66,67,68,70,71,73,74,166,167,168,198,199,227,228,229,232,281,286,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,317,318,319,349,405,416,417,420,444,445,446,500,507,509,511,526,534,535,614,615,616,617,618,626,690,701,703,740,741,763,],[-328,225,-322,-326,-327,-330,-332,-333,-341,-342,-323,-324,-325,-290,-292,-308,-320,-319,-334,-309,-329,-299,-300,-301,-302,-303,-304,-305,-306,-307,-310,-311,-312,-313,-314,-315,-316,-317,-318,-335,-381,-289,-291,-346,-343,-337,-336,-382,-375,-348,-350,-344,-339,-338,-376,225,-347,-349,-340,-377,-378,-379,-380,-321,-345,-331,-352,-351,-354,-353,]),'PUNTO':([34,285,287,408,491,494,532,628,],[171,411,412,501,600,604,629,699,]),'BAnd':([43,47,52,65,],[-262,210,-260,-261,]),'BOr':([43,47,52,65,],[-262,211,-260,-261,]),'BXor':([43,47,52,65,],[-262,212,-260,-261,]),'DesplazaI':([43,47,52,65,],[-262,213,-260,-261,]),'DesplazaD':([43,47,52,65,],[-262,214,-260,-261,]),'REPLACE':([129,],[238,]),'IF':([130,136,358,],[240,245,240,]),'KEY':([145,374,455,456,639,],[252,471,561,562,707,]),'SET':([148,592,],[255,682,]),'WHERE':([158,198,199,257,275,277,318,319,385,386,401,407,595,596,597,598,609,],[271,-290,-292,271,-294,271,-289,-291,271,-130,-293,271,-131,-132,-133,-129,-295,]),'ANY':([174,175,176,177,178,179,180,195,],[-387,-388,-389,-383,-385,-384,-386,314,]),'SOME':([174,175,176,177,178,179,180,195,],[-387,-388,-389,-383,-385,-384,-386,316,]),'SIMMETRIC':([192,310,],[309,418,]),'YEAR':([230,557,],[342,662,]),'HOUR':([230,557,],[343,659,]),'MINUTE':([230,557,],[344,660,]),'SECOND':([230,557,],[345,661,]),'MONTH':([230,557,],[346,658,]),'DAY':([230,],[347,]),'LEADING':([237,],[355,]),'TRAILING':([237,],[356,]),'BOTH':([237,],[357,]),'VALUES':([248,],[366,]),'ADD':([254,476,],[379,587,]),'HAVING':([267,489,490,491,684,685,],[395,-175,-177,-178,-176,-179,]),'BY':([272,273,],[398,399,]),'PRIMARY':([361,540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,560,648,650,655,656,657,658,659,660,661,662,718,750,752,753,754,775,],[455,-66,639,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,455,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,-64,-69,-68,-58,-59,-67,]),'ENUM':([362,],[460,]),'RENAME':([367,],[464,]),'OWNER':([367,539,743,],[465,635,768,]),'COLUMN':([379,380,381,474,587,589,],[480,481,483,585,480,483,]),'DATE':([433,452,591,],[521,556,556,]),'INTEGER':([433,452,591,],[522,543,543,]),'INTERVAL':([443,452,591,],[533,557,557,]),'SMALLINT':([452,591,],[542,542,]),'BIGINT':([452,591,],[544,544,]),'NUMERIC':([452,591,],[546,546,]),'REAL':([452,591,],[547,547,]),'DOUBLE':([452,591,],[548,548,]),'MONEY':([452,591,],[549,549,]),'CHARACTER':([452,591,],[550,550,]),'VARCHAR':([452,591,731,],[551,551,760,]),'CHAR':([452,591,],[552,552,]),'TEXT':([452,591,],[553,553,]),'TIME':([452,591,],[555,555,]),'BOOLEAN':([452,591,],[558,558,]),'CADENASI':([462,463,484,568,577,578,642,672,673,675,726,],[573,576,596,673,-121,-122,596,726,-19,573,-18,]),'TO':([464,465,],[577,578,]),'ASC':([494,687,],[605,605,]),'DESC':([494,687,],[606,606,]),'MODE':([539,742,],[636,765,]),'REFERENCES':([540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,580,648,650,655,656,657,658,659,660,661,662,718,730,750,752,753,754,757,775,],[-66,641,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,676,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,-64,759,-69,-68,-58,-59,777,-67,]),'DEFAULT':([540,541,542,543,544,545,546,547,548,549,553,554,555,556,558,648,650,655,656,657,658,659,660,661,662,707,708,718,750,752,753,754,775,784,],[-66,642,-49,-50,-51,-52,-53,-54,-70,-56,-60,-70,-70,-63,-65,-55,-57,-61,-62,-70,-71,-72,-73,-74,-75,642,642,-64,-69,-68,-58,-59,-67,642,]),'VARYING':([550,],[651,]),'INHERITS':([559,],[664,]),'NULLS':([605,606,],[688,689,]),'FIRST':([688,689,],[734,736,]),'LAST':([688,689,],[735,737,]),}
_lr_action = {}
for _k, _v in _lr_action_items.items():
for _x,_y in zip(_v[0],_v[1]):
if not _x in _lr_action: _lr_action[_x] = {}
_lr_action[_x][_k] = _y
del _lr_action_items
_lr_goto_items = {'INSTRUCCIONES':([0,],[1,]),'INSTRUCCION':([0,1,],[2,21,]),'I_SELECT':([0,1,23,25,26,153,155,157,],[3,3,152,154,156,260,262,264,]),'I_CREATE':([0,1,],[4,4,]),'I_DROP':([0,1,],[5,5,]),'I_INSERT':([0,1,],[6,6,]),'I_ALTER':([0,1,],[7,7,]),'I_UPDATE':([0,1,],[8,8,]),'I_SHOW':([0,1,],[9,9,]),'I_DELETE':([0,1,],[10,10,]),'I_USE':([0,1,],[11,11,]),'COMPLEMENTOSELECT':([3,],[22,]),'VALORES':([12,28,165,],[27,160,282,]),'LISTAVALORES':([12,28,165,],[30,30,30,]),'VALOR':([12,28,161,165,],[31,31,278,31,]),'FUNCION':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[35,35,169,169,169,169,169,35,169,35,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,169,]),'CONDICION':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[36,36,164,227,228,229,250,36,164,36,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,337,338,340,340,353,397,400,227,416,417,469,488,507,509,526,528,608,614,670,798,808,]),'FTRIGONOMETRICAS':([12,28,161,165,],[37,37,37,37,]),'NUM':([12,28,48,49,50,161,165,200,201,202,209,426,],[47,47,215,219,220,47,47,321,321,321,330,516,]),'ID_VALOR':([12,28,161,165,],[55,55,55,55,]),'FUNCIONES_WHERE':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,64,]),'FUNCIONES_SISTEMA':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,68,]),'ID_FUNCION':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,]),'ID_FUNCION_S':([12,28,32,60,61,62,143,161,162,165,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,224,225,226,235,236,271,274,305,309,310,372,395,414,418,439,441,495,508,565,787,804,],[116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,]),'I_TCREATE':([13,],[125,]),'I_REPLACE':([13,],[126,]),'I_CTABLE':([13,],[127,]),'I_CTYPE':([13,],[128,]),'I_TDROP':([14,],[133,]),'I_DROPDB':([14,],[134,]),'I_DROPTB':([14,],[135,]),'I_TALTER':([16,379,],[140,479,]),'I_ALTERDB':([16,379,],[141,141,]),'I_ALTERTB':([16,379,],[142,142,]),'PFROM':([27,160,282,],[158,277,407,]),'SUBCONSULTA':([32,162,234,276,313,419,422,423,424,],[163,279,350,402,421,510,512,513,514,]),'ALIAS':([36,215,219,220,275,280,324,325,330,336,409,410,413,425,427,428,434,440,445,446,496,612,613,619,620,621,622,623,703,738,741,],[173,331,332,333,401,406,429,430,435,438,502,503,506,515,517,518,523,527,534,535,609,691,692,693,694,695,696,697,740,762,763,]),'OPERATOR_FW':([36,164,227,228,229,250,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,306,307,308,337,338,340,353,397,400,416,417,469,488,507,509,526,528,608,614,670,798,808,],[195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,195,]),'OPERADOR':([47,],[209,]),'LWHEN':([54,526,],[223,625,]),'I_EXIST':([130,358,],[239,450,]),'I_IFEXIST':([136,],[244,]),'COMPLEMENTO':([158,266,277,404,407,499,],[265,392,403,497,498,610,]),'PWHERE':([158,257,277,385,407,],[266,387,404,485,499,]),'PGROUPBY':([158,266,277,404,407,499,],[267,267,267,267,267,267,]),'PLIMIT':([158,266,267,269,277,393,404,407,499,],[268,268,394,396,268,487,268,268,268,]),'PORDERBY':([158,266,277,404,407,499,],[269,269,269,269,269,269,]),'EMPTY':([158,266,277,404,407,494,499,687,],[270,270,270,270,270,607,270,607,]),'LNUM':([200,201,202,],[320,322,323,]),'LCONDICION_FUNCION':([226,235,],[339,351,]),'DATETIME':([230,],[341,]),'LCONDICION_FUNCION_S':([236,],[352,]),'LBOTH':([237,],[354,]),'I_LIDS':([251,370,470,567,582,667,668,758,791,799,],[368,468,581,671,678,720,721,778,800,806,]),'I_TCONST':([253,],[371,]),'I_OPALTER':([254,],[376,]),'I_LADDC':([254,],[377,]),'I_LDROPC':([254,],[378,]),'I_ADDC':([254,476,],[382,586,]),'I_DROPC':([254,478,],[383,588,]),'I_LUPDATE':([255,],[385,]),'I_VALUPDATE':([255,486,],[386,598,]),'PHAVING':([267,],[393,]),'I_LTATRIBUTOS':([361,],[453,]),'I_TATRIBUTOS':([361,560,],[454,666,]),'I_OPALTERDB':([367,],[463,]),'I_LCOL':([375,],[472,]),'I_PCOL':([375,584,],[473,679,]),'LCOMPLEMENTOGROUP':([398,],[489,]),'COMPLEMENTOGROUP':([398,599,],[490,684,]),'LCOMPLEMENTOORDERBY':([399,],[492,]),'COMPLEMENTOORDERBY':([399,601,],[493,686,]),'PTIMESTAMP':([442,],[529,]),'I_TIPO':([452,591,],[541,681,]),'I_CCHECK':([458,669,],[564,722,]),'I_UNIQUE':([459,],[566,]),'I_LVALT':([462,],[570,]),'I_VALTAB':([462,675,],[571,728,]),'I_VALALTDB':([463,],[575,]),'I_VALOR':([484,642,],[595,709,]),'COMPLEMENTOORDERBY1':([494,],[602,]),'COMPLEMENTOORDER':([494,687,],[603,733,]),'I_OWMOD':([539,],[634,]),'I_LLAVES':([541,],[638,]),'I_DEFAULT':([541,707,708,784,],[640,744,746,795,]),'I_NULL':([541,707,708,709,784,],[643,643,643,747,643,]),'I_CUNIQUE':([541,645,707,708,709,710,784,],[646,711,646,646,646,748,646,]),'I_PREC':([548,554,555,657,],[648,655,656,718,]),'I_TCHAR':([550,],[650,]),'I_FIELDS':([557,],[657,]),'I_INHERITS':([559,],[663,]),'I_LCAD':([568,],[672,]),'I_MODE':([742,],[764,]),'I_OWNER':([743,],[767,]),'I_CREFERENCE':([745,],[771,]),'I_CHECK':([749,],[773,]),}
_lr_goto = {}
for _k, _v in _lr_goto_items.items():
for _x, _y in zip(_v[0], _v[1]):
if not _x in _lr_goto: _lr_goto[_x] = {}
_lr_goto[_x][_k] = _y
del _lr_goto_items
_lr_productions = [
("S' -> INSTRUCCIONES","S'",1,None,None,None),
('INSTRUCCIONES -> INSTRUCCIONES INSTRUCCION','INSTRUCCIONES',2,'p_Inicio','Lexico.py',358),
('INSTRUCCIONES -> INSTRUCCION','INSTRUCCIONES',1,'p_Inicio1','Lexico.py',362),
('INSTRUCCION -> I_SELECT COMPLEMENTOSELECT','INSTRUCCION',2,'p_Instruccion','Lexico.py',365),
('INSTRUCCION -> I_CREATE','INSTRUCCION',1,'p_Instruccion1','Lexico.py',368),
('INSTRUCCION -> I_DROP','INSTRUCCION',1,'p_Instruccion2','Lexico.py',371),
('INSTRUCCION -> I_INSERT','INSTRUCCION',1,'p_Instruccion3','Lexico.py',374),
('INSTRUCCION -> I_ALTER','INSTRUCCION',1,'p_Instruccion4','Lexico.py',377),
('INSTRUCCION -> I_UPDATE','INSTRUCCION',1,'p_Instruccion5','Lexico.py',380),
('INSTRUCCION -> I_SHOW','INSTRUCCION',1,'p_Instruccion6','Lexico.py',383),
('INSTRUCCION -> I_DELETE','INSTRUCCION',1,'p_Instruccion7','Lexico.py',386),
('INSTRUCCION -> I_USE','INSTRUCCION',1,'p_Instruccion8','Lexico.py',389),
('I_USE -> USE DATABASE ID PCOMA','I_USE',4,'p_use','Lexico.py',392),
('I_CREATE -> CREATE I_TCREATE','I_CREATE',2,'p_Create','Lexico.py',395),
('I_TCREATE -> I_REPLACE','I_TCREATE',1,'p_tCreate','Lexico.py',399),
('I_TCREATE -> I_CTABLE','I_TCREATE',1,'p_tCreate1','Lexico.py',402),
('I_TCREATE -> I_CTYPE','I_TCREATE',1,'p_tCreate2','Lexico.py',405),
('I_CTYPE -> TYPE ID AS ENUM PABRE I_LCAD PCIERRA','I_CTYPE',7,'p_ctype','Lexico.py',408),
('I_LCAD -> I_LCAD CADENASI','I_LCAD',2,'p_lcad','Lexico.py',411),
('I_LCAD -> CADENASI','I_LCAD',1,'p_lcad1','Lexico.py',414),
('I_CTABLE -> TABLE ID PABRE I_LTATRIBUTOS PCIERRA I_INHERITS','I_CTABLE',6,'p_cTable','Lexico.py',417),
('I_INHERITS -> INHERITS PABRE ID PCIERRA PCOMA','I_INHERITS',5,'p_inherits','Lexico.py',420),
('I_LTATRIBUTOS -> I_LTATRIBUTOS COMA I_TATRIBUTOS','I_LTATRIBUTOS',3,'p_tAtributos','Lexico.py',423),
('I_LTATRIBUTOS -> I_TATRIBUTOS','I_LTATRIBUTOS',1,'p_tAtributos1','Lexico.py',426),
('I_TATRIBUTOS -> ID I_TIPO I_LLAVES','I_TATRIBUTOS',3,'p_atributosT','Lexico.py',429),
('I_TATRIBUTOS -> PRIMARY KEY PABRE I_LIDS PCIERRA','I_TATRIBUTOS',5,'p_atributosT1','Lexico.py',432),
('I_TATRIBUTOS -> FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA','I_TATRIBUTOS',10,'p_atributosT2','Lexico.py',435),
('I_TATRIBUTOS -> CONSTRAINT ID CHECK I_CCHECK','I_TATRIBUTOS',4,'p_atributosT3','Lexico.py',438),
('I_TATRIBUTOS -> CHECK I_CCHECK','I_TATRIBUTOS',2,'p_atributosT4','Lexico.py',441),
('I_CCHECK -> PABRE CONDICION PCIERRA','I_CCHECK',3,'p_ccheck','Lexico.py',444),
('I_TATRIBUTOS -> UNIQUE I_UNIQUE','I_TATRIBUTOS',2,'p_atributosT5','Lexico.py',447),
('I_UNIQUE -> PABRE I_LIDS PCIERRA','I_UNIQUE',3,'p_unique','Lexico.py',450),
('I_LLAVES -> PRIMARY KEY I_DEFAULT','I_LLAVES',3,'p_llave','Lexico.py',453),
('I_DEFAULT -> DEFAULT I_VALOR I_NULL','I_DEFAULT',3,'p_default','Lexico.py',456),
('I_DEFAULT -> I_NULL','I_DEFAULT',1,'p_default1','Lexico.py',459),
('I_NULL -> NOT NULL I_CUNIQUE','I_NULL',3,'p_null','Lexico.py',462),
('I_NULL -> NULL I_CUNIQUE','I_NULL',2,'p_null1','Lexico.py',465),
('I_NULL -> I_CUNIQUE','I_NULL',1,'p_null2','Lexico.py',468),
('I_CUNIQUE -> CONSTRAINT ID UNIQUE I_CHECK','I_CUNIQUE',4,'p_cunique','Lexico.py',471),
('I_CHECK -> CONSTRAINT ID CHECK PABRE CONDICION PCIERRA','I_CHECK',6,'p_check','Lexico.py',474),
('I_CHECK -> CHECK PABRE CONDICION PCIERRA','I_CHECK',4,'p_check1','Lexico.py',477),
('I_CHECK -> <empty>','I_CHECK',0,'p_check2','Lexico.py',480),
('I_LLAVES -> REFERENCES ID PABRE I_CREFERENCE PCIERRA I_DEFAULT','I_LLAVES',6,'p_llave2','Lexico.py',483),
('I_CREFERENCE -> I_CREFERENCE COMA ID','I_CREFERENCE',3,'p_cRef','Lexico.py',486),
('I_CREFERENCE -> ID','I_CREFERENCE',1,'p_cRef2','Lexico.py',489),
('I_LLAVES -> REFERENCES ID I_DEFAULT','I_LLAVES',3,'p_llave3','Lexico.py',492),
('I_LLAVES -> I_DEFAULT','I_LLAVES',1,'p_llave4','Lexico.py',495),
('I_LIDS -> I_LIDS COMA ID','I_LIDS',3,'p_lIds','Lexico.py',498),
('I_LIDS -> ID','I_LIDS',1,'p_lIds1','Lexico.py',501),
('I_TIPO -> SMALLINT','I_TIPO',1,'p_tipo','Lexico.py',504),
('I_TIPO -> INTEGER','I_TIPO',1,'p_tipo2','Lexico.py',507),
('I_TIPO -> BIGINT','I_TIPO',1,'p_tipo3','Lexico.py',510),
('I_TIPO -> DECIMAL','I_TIPO',1,'p_tipo4','Lexico.py',513),
('I_TIPO -> NUMERIC','I_TIPO',1,'p_tipo5','Lexico.py',516),
('I_TIPO -> REAL','I_TIPO',1,'p_tipo6','Lexico.py',519),
('I_TIPO -> DOUBLE I_PREC','I_TIPO',2,'p_tipo7','Lexico.py',522),
('I_TIPO -> MONEY','I_TIPO',1,'p_tipo8','Lexico.py',525),
('I_TIPO -> CHARACTER I_TCHAR','I_TIPO',2,'p_tipo9','Lexico.py',528),
('I_TIPO -> VARCHAR PABRE NUMERO PCIERRA','I_TIPO',4,'p_tipo11','Lexico.py',531),
('I_TIPO -> CHAR PABRE NUMERO PCIERRA','I_TIPO',4,'p_tipo22','Lexico.py',534),
('I_TIPO -> TEXT','I_TIPO',1,'p_tipo33','Lexico.py',537),
('I_TIPO -> TIMESTAMP I_PREC','I_TIPO',2,'p_tipo44','Lexico.py',540),
('I_TIPO -> TIME I_PREC','I_TIPO',2,'p_tipo55','Lexico.py',543),
('I_TIPO -> DATE','I_TIPO',1,'p_tipo66','Lexico.py',546),
('I_TIPO -> INTERVAL I_FIELDS I_PREC','I_TIPO',3,'p_tipo77','Lexico.py',549),
('I_TIPO -> BOOLEAN','I_TIPO',1,'p_tipo88','Lexico.py',552),
('I_TIPO -> ID','I_TIPO',1,'p_tipo99','Lexico.py',555),
('I_TCHAR -> VARYING PABRE NUMERO PCIERRA','I_TCHAR',4,'p_tchar','Lexico.py',558),
('I_TCHAR -> PABRE NUMERO PCIERRA','I_TCHAR',3,'p_tchar1','Lexico.py',561),
('I_PREC -> PABRE NUMERO PCIERRA','I_PREC',3,'p_prec','Lexico.py',564),
('I_PREC -> <empty>','I_PREC',0,'p_prec1','Lexico.py',567),
('I_FIELDS -> MONTH','I_FIELDS',1,'p_fields','Lexico.py',570),
('I_FIELDS -> HOUR','I_FIELDS',1,'p_fields1','Lexico.py',573),
('I_FIELDS -> MINUTE','I_FIELDS',1,'p_fields2','Lexico.py',576),
('I_FIELDS -> SECOND','I_FIELDS',1,'p_fields3','Lexico.py',579),
('I_FIELDS -> YEAR','I_FIELDS',1,'p_fields4','Lexico.py',582),
('I_INHERITS -> PCOMA','I_INHERITS',1,'p_inherits1','Lexico.py',585),
('I_REPLACE -> OR REPLACE DATABASE I_EXIST','I_REPLACE',4,'p_Replace','Lexico.py',590),
('I_REPLACE -> DATABASE I_EXIST','I_REPLACE',2,'p_Replace1','Lexico.py',593),
('I_DROP -> DROP I_TDROP','I_DROP',2,'p_drop','Lexico.py',597),
('I_ALTER -> ALTER I_TALTER','I_ALTER',2,'p_alter','Lexico.py',600),
('I_TALTER -> I_ALTERDB','I_TALTER',1,'p_tAlter','Lexico.py',603),
('I_TALTER -> I_ALTERTB','I_TALTER',1,'p_tAlter1','Lexico.py',606),
('I_ALTERTB -> TABLE ID I_OPALTER','I_ALTERTB',3,'p_alterTB','Lexico.py',609),
('I_OPALTER -> I_LADDC PCOMA','I_OPALTER',2,'p_opAlterTB','Lexico.py',612),
('I_OPALTER -> I_LDROPC PCOMA','I_OPALTER',2,'p_opAlterTB1','Lexico.py',615),
('I_OPALTER -> ADD I_TALTER PCOMA','I_OPALTER',3,'p_opAlterTB2','Lexico.py',618),
('I_OPALTER -> ALTER COLUMN ID SET NOT NULL PCOMA','I_OPALTER',7,'p_opAlterTB3','Lexico.py',621),
('I_OPALTER -> DROP CONSTRAINT ID PCOMA','I_OPALTER',4,'p_opAlterTB4','Lexico.py',624),
('I_OPALTER -> ID I_LCOL PCOMA','I_OPALTER',3,'p_opAlterTB5','Lexico.py',627),
('I_LCOL -> I_LCOL COMA I_PCOL','I_LCOL',3,'p_lCol','Lexico.py',630),
('I_LCOL -> I_PCOL','I_LCOL',1,'p_lCol2','Lexico.py',633),
('I_PCOL -> ALTER COLUMN ID TYPE VARCHAR PABRE NUMERO PCIERRA','I_PCOL',8,'p_pCol3','Lexico.py',636),
('I_TALTER -> CHECK CONDICION','I_TALTER',2,'p_tipAlterC','Lexico.py',639),
('I_TALTER -> UNIQUE PABRE I_LIDS PCIERRA','I_TALTER',4,'p_tipAlterU','Lexico.py',642),
('I_TALTER -> FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA','I_TALTER',10,'p_tipAlterFK','Lexico.py',645),
('I_TALTER -> CONSTRAINT ID I_TCONST','I_TALTER',3,'p_tipAlterCo','Lexico.py',648),
('I_TCONST -> CHECK CONDICION','I_TCONST',2,'p_tipoConstraintC','Lexico.py',651),
('I_TCONST -> UNIQUE PABRE I_LIDS PCIERRA','I_TCONST',4,'p_tipoConstraintU','Lexico.py',654),
('I_TCONST -> FOREIGN KEY PABRE I_LIDS PCIERRA REFERENCES ID PABRE I_LIDS PCIERRA','I_TCONST',10,'p_tipoConstraintFK','Lexico.py',657),
('I_LDROPC -> I_LDROPC COMA I_DROPC','I_LDROPC',3,'p_lCDrop','Lexico.py',660),
('I_LDROPC -> I_DROPC','I_LDROPC',1,'p_lCDrop1','Lexico.py',663),
('I_DROPC -> DROP COLUMN ID','I_DROPC',3,'p_cDrop','Lexico.py',666),
('I_LADDC -> I_LADDC COMA I_ADDC','I_LADDC',3,'p_lCAdd','Lexico.py',669),
('I_LADDC -> I_ADDC','I_LADDC',1,'p_lCAdd2','Lexico.py',672),
('I_ADDC -> ADD COLUMN ID I_TIPO','I_ADDC',4,'p_cAdd','Lexico.py',675),
('I_TDROP -> I_DROPDB','I_TDROP',1,'p_tDrop','Lexico.py',678),
('I_TDROP -> I_DROPTB','I_TDROP',1,'p_tDrop2','Lexico.py',681),
('I_DROPDB -> DATABASE I_IFEXIST','I_DROPDB',2,'p_dropDB','Lexico.py',684),
('I_IFEXIST -> IF EXISTS ID PCOMA','I_IFEXIST',4,'p_ifExist','Lexico.py',687),
('I_IFEXIST -> ID PCOMA','I_IFEXIST',2,'p_ifExist2','Lexico.py',690),
('I_EXIST -> IF NOT EXISTS ID I_OWMOD','I_EXIST',5,'p_Exist','Lexico.py',693),
('I_EXIST -> ID PCOMA','I_EXIST',2,'p_Exist1','Lexico.py',696),
('I_OWMOD -> OWNER IGUAL ID I_MODE','I_OWMOD',4,'p_Owmod','Lexico.py',700),
('I_OWMOD -> MODE IGUAL ID I_OWNER','I_OWMOD',4,'p_Owmod1','Lexico.py',703),
('I_OWMOD -> PCOMA','I_OWMOD',1,'p_Owmod2','Lexico.py',706),
('I_MODE -> MODE IGUAL ID PCOMA','I_MODE',4,'p_Mode','Lexico.py',709),
('I_MODE -> PCOMA','I_MODE',1,'p_Mode1','Lexico.py',712),
('I_OWNER -> OWNER IGUAL ID PCOMA','I_OWNER',4,'p_Owner','Lexico.py',715),
('I_OWNER -> PCOMA','I_OWNER',1,'p_Owner1','Lexico.py',718),
('I_ALTERDB -> ALTER DATABASE ID I_OPALTERDB I_VALALTDB','I_ALTERDB',5,'p_AlterDB','Lexico.py',721),
('I_OPALTERDB -> RENAME TO','I_OPALTERDB',2,'p_opAlterDB','Lexico.py',724),
('I_OPALTERDB -> OWNER TO','I_OPALTERDB',2,'p_opAlterDB2','Lexico.py',727),
('I_VALALTDB -> ID','I_VALALTDB',1,'p_valAlterDb','Lexico.py',730),
('I_VALALTDB -> CADENASI','I_VALALTDB',1,'p_valAlterDb1','Lexico.py',733),
('I_DROPTB -> TABLE ID PCOMA','I_DROPTB',3,'p_dropTB','Lexico.py',736),
('I_INSERT -> INSERT INTO ID VALUES PABRE I_LVALT PCIERRA PCOMA','I_INSERT',8,'p_insertTB','Lexico.py',739),
('I_LVALT -> I_LVALT COMA I_VALTAB','I_LVALT',3,'p_lValt','Lexico.py',742),
('I_UPDATE -> UPDATE ID SET I_LUPDATE PWHERE','I_UPDATE',5,'p_update','Lexico.py',745),
('I_LUPDATE -> I_LUPDATE COMA I_VALUPDATE','I_LUPDATE',3,'p_lUpdate','Lexico.py',748),
('I_LUPDATE -> I_VALUPDATE','I_LUPDATE',1,'p_lUpdate1','Lexico.py',751),
('I_VALUPDATE -> ID IGUAL I_VALOR','I_VALUPDATE',3,'p_valUpdate','Lexico.py',754),
('I_VALOR -> CADENASI','I_VALOR',1,'p_valor','Lexico.py',757),
('I_VALOR -> NUMERO','I_VALOR',1,'p_valor1','Lexico.py',760),
('I_SHOW -> SHOW DATABASE PCOMA','I_SHOW',3,'p_show','Lexico.py',763),
('I_DELETE -> DELETE FROM ID PWHERE','I_DELETE',4,'p_delete','Lexico.py',766),
('I_LVALT -> I_VALTAB','I_LVALT',1,'p_lValt1','Lexico.py',769),
('I_VALTAB -> NUMERO','I_VALTAB',1,'p_valTab','Lexico.py',772),
('I_VALTAB -> CADENASI','I_VALTAB',1,'p_valTab1','Lexico.py',775),
('I_SELECT -> SELECT VALORES PFROM COMPLEMENTO','I_SELECT',4,'p_ISelect','Lexico.py',778),
('I_SELECT -> SELECT VALORES PFROM PWHERE COMPLEMENTO','I_SELECT',5,'p_ISelect1','Lexico.py',781),
('I_SELECT -> SELECT DISTINCT VALORES PFROM COMPLEMENTO','I_SELECT',5,'p_ISelect2','Lexico.py',784),
('I_SELECT -> SELECT DISTINCT VALORES PFROM PWHERE COMPLEMENTO','I_SELECT',6,'p_ISelect3','Lexico.py',787),
('I_SELECT -> SELECT VALORES','I_SELECT',2,'p_ISelect4','Lexico.py',790),
('COMPLEMENTO -> PGROUPBY PHAVING','COMPLEMENTO',2,'p_ComplementoH','Lexico.py',793),
('COMPLEMENTO -> PGROUPBY PHAVING PLIMIT','COMPLEMENTO',3,'p_ComplementoHL','Lexico.py',796),
('COMPLEMENTO -> PGROUPBY','COMPLEMENTO',1,'p_ComplementoG','Lexico.py',799),
('COMPLEMENTO -> PGROUPBY PLIMIT','COMPLEMENTO',2,'p_ComplementoGL','Lexico.py',802),
('COMPLEMENTO -> PORDERBY','COMPLEMENTO',1,'p_ComplementoO','Lexico.py',805),
('COMPLEMENTO -> PORDERBY PLIMIT','COMPLEMENTO',2,'p_ComplementoOL','Lexico.py',808),
('COMPLEMENTO -> PLIMIT','COMPLEMENTO',1,'p_ComplementoL','Lexico.py',811),
('COMPLEMENTO -> EMPTY','COMPLEMENTO',1,'p_ComplementoE','Lexico.py',814),
('COMPLEMENTOSELECT -> UNION I_SELECT PCOMA','COMPLEMENTOSELECT',3,'p_ComplementoSelectUnion','Lexico.py',817),
('COMPLEMENTOSELECT -> UNION ALL I_SELECT PCOMA','COMPLEMENTOSELECT',4,'p_ComplementoSelectUnionAll','Lexico.py',820),
('COMPLEMENTOSELECT -> INTERSECT I_SELECT PCOMA','COMPLEMENTOSELECT',3,'p_ComplementoSelectIntersect','Lexico.py',823),
('COMPLEMENTOSELECT -> INTERSECT ALL I_SELECT PCOMA','COMPLEMENTOSELECT',4,'p_ComplementoSelectIntersectALL','Lexico.py',826),
('COMPLEMENTOSELECT -> EXCEPT I_SELECT PCOMA','COMPLEMENTOSELECT',3,'p_ComplementoSelectExcept','Lexico.py',829),
('COMPLEMENTOSELECT -> EXCEPT ALL I_SELECT PCOMA','COMPLEMENTOSELECT',4,'p_ComplementoSelectExceptAll','Lexico.py',832),
('COMPLEMENTOSELECT -> PCOMA','COMPLEMENTOSELECT',1,'p_ComplementoSelectExceptPcoma','Lexico.py',835),
('PLIMIT -> LIMIT CONDICION','PLIMIT',2,'p_Limit','Lexico.py',838),
('PLIMIT -> LIMIT CONDICION OFFSET CONDICION','PLIMIT',4,'p_LimitOff','Lexico.py',841),
('PORDERBY -> ORDER BY LCOMPLEMENTOORDERBY','PORDERBY',3,'p_OrderBy','Lexico.py',844),
('LCOMPLEMENTOORDERBY -> LCOMPLEMENTOORDERBY COMA COMPLEMENTOORDERBY','LCOMPLEMENTOORDERBY',3,'p_ComplementoOrderL','Lexico.py',847),
('LCOMPLEMENTOORDERBY -> COMPLEMENTOORDERBY','LCOMPLEMENTOORDERBY',1,'p_ComplementoOrderL1','Lexico.py',850),
('COMPLEMENTOORDERBY -> ID COMPLEMENTOORDERBY1','COMPLEMENTOORDERBY',2,'p_ComplementoOrderCI','Lexico.py',853),
('COMPLEMENTOORDERBY1 -> COMPLEMENTOORDER','COMPLEMENTOORDERBY1',1,'p_ComplementoOrderCOBC','Lexico.py',856),
('COMPLEMENTOORDERBY1 -> PUNTO ID COMPLEMENTOORDER','COMPLEMENTOORDERBY1',3,'p_ComplementoOrderCOBP','Lexico.py',859),
('COMPLEMENTOORDER -> ASC','COMPLEMENTOORDER',1,'p_ComplementoOrder','Lexico.py',863),
('COMPLEMENTOORDER -> DESC','COMPLEMENTOORDER',1,'p_ComplementoOD','Lexico.py',866),
('COMPLEMENTOORDER -> ASC NULLS FIRST','COMPLEMENTOORDER',3,'p_ComplementoOANF','Lexico.py',869),
('COMPLEMENTOORDER -> ASC NULLS LAST','COMPLEMENTOORDER',3,'p_ComplementoOANL','Lexico.py',872),
('COMPLEMENTOORDER -> DESC NULLS FIRST','COMPLEMENTOORDER',3,'p_ComplementoODNF','Lexico.py',875),
('COMPLEMENTOORDER -> DESC NULLS LAST','COMPLEMENTOORDER',3,'p_ComplementoODNL','Lexico.py',878),
('COMPLEMENTOORDER -> EMPTY','COMPLEMENTOORDER',1,'p_ComplementoEm','Lexico.py',881),
('PHAVING -> HAVING CONDICION','PHAVING',2,'p_Having','Lexico.py',885),
('PGROUPBY -> GROUP BY LCOMPLEMENTOGROUP','PGROUPBY',3,'p_GroupBy','Lexico.py',888),
('LCOMPLEMENTOGROUP -> LCOMPLEMENTOGROUP COMA COMPLEMENTOGROUP','LCOMPLEMENTOGROUP',3,'p_ComplementoGroupL','Lexico.py',891),
('LCOMPLEMENTOGROUP -> COMPLEMENTOGROUP','LCOMPLEMENTOGROUP',1,'p_ComplementoGroupLS','Lexico.py',894),
('COMPLEMENTOGROUP -> ID','COMPLEMENTOGROUP',1,'p_ComplementoGroupC','Lexico.py',897),
('COMPLEMENTOGROUP -> ID PUNTO ID','COMPLEMENTOGROUP',3,'p_ComplementoGroupC1','Lexico.py',900),
('VALORES -> POR','VALORES',1,'p_Valores','Lexico.py',903),
('VALORES -> LISTAVALORES','VALORES',1,'p_ValoresLista','Lexico.py',906),
('LISTAVALORES -> LISTAVALORES COMA VALOR','LISTAVALORES',3,'p_ListaValores','Lexico.py',909),
('LISTAVALORES -> VALOR','LISTAVALORES',1,'p_ListaValoresS','Lexico.py',912),
('VALOR -> PABRE SUBCONSULTA PCIERRA ALIAS','VALOR',4,'p_ValorSub','Lexico.py',916),
('VALOR -> PABRE SUBCONSULTA PCIERRA','VALOR',3,'p_ValorSub1','Lexico.py',919),
('VALOR -> COUNT PABRE POR PCIERRA ALIAS','VALOR',5,'p_ValorCountAa','Lexico.py',922),
('VALOR -> COUNT PABRE ID PCIERRA ALIAS','VALOR',5,'p_ValorCounta','Lexico.py',925),
('VALOR -> COUNT PABRE POR PCIERRA','VALOR',4,'p_ValorCountA','Lexico.py',928),
('VALOR -> COUNT PABRE ID PCIERRA','VALOR',4,'p_ValorCount','Lexico.py',931),
('VALOR -> COUNT PABRE ID PUNTO ID PCIERRA ALIAS','VALOR',7,'p_ValorCountAliasId','Lexico.py',934),
('VALOR -> COUNT PABRE ID PUNTO ID PCIERRA','VALOR',6,'p_ValorCountIdP','Lexico.py',937),
('VALOR -> FUNCION PABRE ID PUNTO ID PCIERRA','VALOR',6,'p_ValorFunciones','Lexico.py',940),
('VALOR -> FUNCION PABRE ID PCIERRA','VALOR',4,'p_ValorFunciones1','Lexico.py',943),
('VALOR -> FUNCION PABRE ID PUNTO ID PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesA','Lexico.py',946),
('VALOR -> FUNCION PABRE ID PCIERRA ALIAS','VALOR',5,'p_ValorFunciones1A','Lexico.py',949),
('VALOR -> CONDICION','VALOR',1,'p_ValorCondicion','Lexico.py',952),
('VALOR -> CONDICION ALIAS','VALOR',2,'p_ValorCondicionAlias','Lexico.py',955),
('VALOR -> FTRIGONOMETRICAS PABRE LNUM PCIERRA','VALOR',4,'p_ValorFTrigonometricas','Lexico.py',958),
('VALOR -> FTRIGONOMETRICAS PABRE LNUM PCIERRA ALIAS','VALOR',5,'p_ValorFTrigonometricasAlias','Lexico.py',961),
('VALOR -> GREATEST PABRE LNUM PCIERRA','VALOR',4,'p_ValorGreatest','Lexico.py',964),
('VALOR -> LEAST PABRE LNUM PCIERRA','VALOR',4,'p_ValorLeast','Lexico.py',967),
('VALOR -> GREATEST PABRE LNUM PCIERRA ALIAS','VALOR',5,'p_ValorGreatestAlias','Lexico.py',970),
('VALOR -> LEAST PABRE LNUM PCIERRA ALIAS','VALOR',5,'p_ValorLeastAlias','Lexico.py',973),
('VALOR -> RANDOM PABRE PCIERRA ALIAS','VALOR',4,'p_ValorRandomA','Lexico.py',976),
('VALOR -> RANDOM PABRE PCIERRA','VALOR',3,'p_ValorRandom','Lexico.py',979),
('VALOR -> PI PABRE PCIERRA ALIAS','VALOR',4,'p_ValorPiAlias','Lexico.py',982),
('VALOR -> PI PABRE PCIERRA','VALOR',3,'p_ValorPi','Lexico.py',985),
('VALOR -> DECODE PABRE CADENA COMA CADENA PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesDecodeA','Lexico.py',988),
('VALOR -> DECODE PABRE CADENA COMA CADENA PCIERRA','VALOR',6,'p_ValorFuncionesDecode','Lexico.py',991),
('VALOR -> ENCODE PABRE CADENA COMA CADENA PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesEncodeA','Lexico.py',994),
('VALOR -> ENCODE PABRE CADENA COMA CADENA PCIERRA','VALOR',6,'p_ValorFuncionesEncode','Lexico.py',997),
('VALOR -> CONVERT PABRE CADENA AS DATE PCIERRA','VALOR',6,'p_ValorFuncionesConvertDate','Lexico.py',1000),
('VALOR -> CONVERT PABRE CADENA AS INTEGER PCIERRA','VALOR',6,'p_ValorFuncionesConvertInt','Lexico.py',1003),
('VALOR -> CONVERT PABRE CADENA AS DATE PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesConvertDateA','Lexico.py',1006),
('VALOR -> CONVERT PABRE CADENA AS INTEGER PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesConvertIntA','Lexico.py',1009),
('VALOR -> SHA256 PABRE CADENA PCIERRA','VALOR',4,'p_ValorFuncionesSha','Lexico.py',1012),
('VALOR -> SHA256 PABRE CADENA PCIERRA ALIAS','VALOR',5,'p_ValorFuncionesShaA','Lexico.py',1015),
('VALOR -> NUM OPERADOR NUM ALIAS','VALOR',4,'p_ValorOperadorMatAlias','Lexico.py',1018),
('VALOR -> NUM OPERADOR NUM','VALOR',3,'p_ValorOperadorMat','Lexico.py',1021),
('VALOR -> BNot NUM ALIAS','VALOR',3,'p_ValorOperadorNotA','Lexico.py',1024),
('VALOR -> BNot NUM','VALOR',2,'p_ValorOperadorNot','Lexico.py',1027),
('VALOR -> raizCuadrada NUM ALIAS','VALOR',3,'p_ValorRaizCuadradaA','Lexico.py',1030),
('VALOR -> raizCuadrada NUM','VALOR',2,'p_ValorRaizCuadrada','Lexico.py',1033),
('VALOR -> raizCubica NUM ALIAS','VALOR',3,'p_ValorRaizCubicaA','Lexico.py',1036),
('VALOR -> raizCubica NUM','VALOR',2,'p_ValorRaizCubica','Lexico.py',1039),
('VALOR -> GETBYTE PABRE CADENA COMA NUMERO PCIERRA','VALOR',6,'p_ValorFuncionesGetByte','Lexico.py',1042),
('VALOR -> GETBYTE PABRE CADENA COMA NUMERO PCIERRA ALIAS','VALOR',7,'p_ValorFuncionesGetByteA','Lexico.py',1045),
('VALOR -> SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA','VALOR',8,'p_ValorFuncionesSetByte','Lexico.py',1048),
('VALOR -> SETBYTE PABRE CADENA COMA NUMERO COMA NUMERO PCIERRA ALIAS','VALOR',9,'p_ValorFuncionesSetByteA','Lexico.py',1051),
('VALOR -> CASE LWHEN END','VALOR',3,'p_ValorCase','Lexico.py',1054),
('VALOR -> CASE LWHEN END ALIAS','VALOR',4,'p_ValorCaseAlias','Lexico.py',1057),
('VALOR -> ID_VALOR PABRE LCONDICION_FUNCION PCIERRA ALIAS','VALOR',5,'p_ValorFunAlias','Lexico.py',1060),
('VALOR -> ID_VALOR PABRE LCONDICION_FUNCION PCIERRA','VALOR',4,'p_ValorFun','Lexico.py',1063),
('LWHEN -> WHEN CONDICION THEN CONDICION LWHEN','LWHEN',5,'p_LWHEN','Lexico.py',1066),
('LWHEN -> WHEN CONDICION THEN CONDICION','LWHEN',4,'p_LWHENSimple','Lexico.py',1069),
('LWHEN -> ELSE CONDICION','LWHEN',2,'p_LWHENElse','Lexico.py',1072),
('ID_VALOR -> DEGREES','ID_VALOR',1,'p_IdFuncionDegrees','Lexico.py',1075),
('ID_VALOR -> DIV','ID_VALOR',1,'p_IdFuncionDiv','Lexico.py',1078),
('ID_VALOR -> FEXP','ID_VALOR',1,'p_IdFuncionExp','Lexico.py',1081),
('ID_VALOR -> FACTORIAL','ID_VALOR',1,'p_IdFuncionFactorial','Lexico.py',1084),
('ID_VALOR -> FLOOR','ID_VALOR',1,'p_IdFuncionFloor','Lexico.py',1087),
('ID_VALOR -> GCD','ID_VALOR',1,'p_IdFuncionGcd','Lexico.py',1090),
('ID_VALOR -> LN','ID_VALOR',1,'p_IdFuncionLn','Lexico.py',1093),
('ID_VALOR -> LOG','ID_VALOR',1,'p_IdFuncionLog','Lexico.py',1096),
('ID_VALOR -> MOD','ID_VALOR',1,'p_IdFuncionMod','Lexico.py',1099),
('ID_VALOR -> POWER','ID_VALOR',1,'p_IdFuncionPower','Lexico.py',1102),
('ID_VALOR -> RADIANS','ID_VALOR',1,'p_IdFuncionRadians','Lexico.py',1105),
('ID_VALOR -> ROUND','ID_VALOR',1,'p_IdFuncionRound','Lexico.py',1108),
('ID_VALOR -> SIGN','ID_VALOR',1,'p_IdFuncionSign','Lexico.py',1111),
('ID_VALOR -> SQRT','ID_VALOR',1,'p_IdFuncionSqrt','Lexico.py',1114),
('ID_VALOR -> WIDTH_BUCKET','ID_VALOR',1,'p_IdFuncionWidth_bucket','Lexico.py',1117),
('ID_VALOR -> TRUNC','ID_VALOR',1,'p_IdFuncionTrunc','Lexico.py',1120),
('OPERADOR -> BAnd','OPERADOR',1,'p_OPERADORAnd','Lexico.py',1123),
('OPERADOR -> BOr','OPERADOR',1,'p_OPERADOROr','Lexico.py',1126),
('OPERADOR -> BXor','OPERADOR',1,'p_OPERADORXor','Lexico.py',1129),
('OPERADOR -> DesplazaI','OPERADOR',1,'p_OPERADORDIz','Lexico.py',1132),
('OPERADOR -> DesplazaD','OPERADOR',1,'p_OPERADORDDe','Lexico.py',1135),
('LNUM -> LNUM COMA NUM','LNUM',3,'p_LNumNumLNum','Lexico.py',1138),
('LNUM -> NUM','LNUM',1,'p_LNumNum','Lexico.py',1141),
('NUM -> NUMERO','NUM',1,'p_NumNumero','Lexico.py',1144),
('NUM -> DECIMAL','NUM',1,'p_NumDecimal','Lexico.py',1147),
('NUM -> CADENA','NUM',1,'p_NumCadena','Lexico.py',1150),
('FTRIGONOMETRICAS -> ACOS','FTRIGONOMETRICAS',1,'p_FTrigonometricasAcos','Lexico.py',1153),
('FTRIGONOMETRICAS -> ACOSD','FTRIGONOMETRICAS',1,'p_FTrigonometricasAcosd','Lexico.py',1156),
('FTRIGONOMETRICAS -> ASIN','FTRIGONOMETRICAS',1,'p_FTrigonometricasAsin','Lexico.py',1159),
('FTRIGONOMETRICAS -> ASIND','FTRIGONOMETRICAS',1,'p_FTrigonometricasAsind','Lexico.py',1162),
('FTRIGONOMETRICAS -> ATAN','FTRIGONOMETRICAS',1,'p_FTrigonometricasAtan','Lexico.py',1165),
('FTRIGONOMETRICAS -> ATAND','FTRIGONOMETRICAS',1,'p_FTrigonometricasAtand','Lexico.py',1168),
('FTRIGONOMETRICAS -> ATAN2','FTRIGONOMETRICAS',1,'p_FTrigonometricasAtan2','Lexico.py',1171),
('FTRIGONOMETRICAS -> ATAN2D','FTRIGONOMETRICAS',1,'p_FTrigonometricasAtan2d','Lexico.py',1174),
('FTRIGONOMETRICAS -> COS','FTRIGONOMETRICAS',1,'p_FTrigonometricasCos','Lexico.py',1177),
('FTRIGONOMETRICAS -> COSD','FTRIGONOMETRICAS',1,'p_FTrigonometricasCosd','Lexico.py',1180),
('FTRIGONOMETRICAS -> COT','FTRIGONOMETRICAS',1,'p_FTrigonometricasCot','Lexico.py',1183),
('FTRIGONOMETRICAS -> COTD','FTRIGONOMETRICAS',1,'p_FTrigonometricasCotd','Lexico.py',1186),
('FTRIGONOMETRICAS -> SIN','FTRIGONOMETRICAS',1,'p_FTrigonometricasSin','Lexico.py',1189),
('FTRIGONOMETRICAS -> SIND','FTRIGONOMETRICAS',1,'p_FTrigonometricasSind','Lexico.py',1192),
('FTRIGONOMETRICAS -> TAN','FTRIGONOMETRICAS',1,'p_FTrigonometricasTan','Lexico.py',1195),
('FTRIGONOMETRICAS -> TAND','FTRIGONOMETRICAS',1,'p_FTrigonometricasTand','Lexico.py',1198),
('FTRIGONOMETRICAS -> SINH','FTRIGONOMETRICAS',1,'p_FTrigonometricasSinh','Lexico.py',1201),
('FTRIGONOMETRICAS -> COSH','FTRIGONOMETRICAS',1,'p_FTrigonometricasCosh','Lexico.py',1204),
('FTRIGONOMETRICAS -> TANH','FTRIGONOMETRICAS',1,'p_FTrigonometricasTanh','Lexico.py',1207),
('FTRIGONOMETRICAS -> ASINH','FTRIGONOMETRICAS',1,'p_FTrigonometricasAsinh','Lexico.py',1210),
('FTRIGONOMETRICAS -> ACOSH','FTRIGONOMETRICAS',1,'p_FTrigonometricasAcosh','Lexico.py',1213),
('FTRIGONOMETRICAS -> ATANH','FTRIGONOMETRICAS',1,'p_FTrigonometricasAtanh','Lexico.py',1216),
('FUNCION -> AVG','FUNCION',1,'p_funcionAvg','Lexico.py',1219),
('FUNCION -> SUM','FUNCION',1,'p_funcionSum','Lexico.py',1222),
('FUNCION -> MIN','FUNCION',1,'p_funcionMin','Lexico.py',1225),
('FUNCION -> MAX','FUNCION',1,'p_funcionMax','Lexico.py',1228),
('ALIAS -> AS ID','ALIAS',2,'p_Alias','Lexico.py',1231),
('ALIAS -> ID','ALIAS',1,'p_AliasS','Lexico.py',1234),
('ALIAS -> AS IDALIAS','ALIAS',2,'p_AliasC','Lexico.py',1237),
('ALIAS -> IDALIAS','ALIAS',1,'p_AliasCS','Lexico.py',1240),
('PFROM -> FROM ID ALIAS','PFROM',3,'p_FromIdA','Lexico.py',1243),
('PFROM -> FROM ID','PFROM',2,'p_FromId','Lexico.py',1246),
('PFROM -> FROM PABRE SUBCONSULTA PCIERRA ALIAS','PFROM',5,'p_FromSub','Lexico.py',1249),
('SUBCONSULTA -> SELECT VALORES PFROM COMPLEMENTO','SUBCONSULTA',4,'p_SubconsultaFrom','Lexico.py',1252),
('SUBCONSULTA -> SELECT VALORES PFROM PWHERE COMPLEMENTO','SUBCONSULTA',5,'p_SubconsultaFromW','Lexico.py',1255),
('PWHERE -> WHERE CONDICION','PWHERE',2,'p_Where','Lexico.py',1259),
('CONDICION -> CONDICION IGUAL CONDICION','CONDICION',3,'p_CondicionIgual','Lexico.py',1262),
('CONDICION -> CONDICION DIF CONDICION','CONDICION',3,'p_CondicionDif','Lexico.py',1265),
('CONDICION -> CONDICION DIF1 CONDICION','CONDICION',3,'p_CondicionDif1','Lexico.py',1268),
('CONDICION -> CONDICION MENOR CONDICION','CONDICION',3,'p_CondicionMenor','Lexico.py',1271),
('CONDICION -> CONDICION MENORIGUAL CONDICION','CONDICION',3,'p_CondicionMenorI','Lexico.py',1274),
('CONDICION -> CONDICION MAYOR CONDICION','CONDICION',3,'p_CondicionMayor','Lexico.py',1277),
('CONDICION -> CONDICION MAYORIGUAL CONDICION','CONDICION',3,'p_CondicionMayorI','Lexico.py',1280),
('CONDICION -> CONDICION AND CONDICION','CONDICION',3,'p_CondicionAnd','Lexico.py',1283),
('CONDICION -> CONDICION OR CONDICION','CONDICION',3,'p_CondicionOr','Lexico.py',1286),
('CONDICION -> NOT CONDICION','CONDICION',2,'p_CondicionNot','Lexico.py',1289),
('CONDICION -> PABRE CONDICION PCIERRA','CONDICION',3,'p_CondicionParentesis','Lexico.py',1292),
('CONDICION -> CONDICION MAS CONDICION','CONDICION',3,'p_CondicionMas','Lexico.py',1295),
('CONDICION -> CONDICION MENOS CONDICION','CONDICION',3,'p_CondicionMenos','Lexico.py',1298),
('CONDICION -> CONDICION POR CONDICION','CONDICION',3,'p_CondicionPor','Lexico.py',1301),
('CONDICION -> CONDICION DIVIDIDO CONDICION','CONDICION',3,'p_CondicionDiv','Lexico.py',1304),
('CONDICION -> CONDICION MODULO CONDICION','CONDICION',3,'p_CondicionMod','Lexico.py',1307),
('CONDICION -> CONDICION EXP CONDICION','CONDICION',3,'p_CondicionExp','Lexico.py',1310),
('CONDICION -> CONDICION IS CONDICION','CONDICION',3,'p_CondicionIs','Lexico.py',1313),
('CONDICION -> CONDICION ISNULL CONDICION','CONDICION',3,'p_CondicionIsN','Lexico.py',1316),
('CONDICION -> CONDICION NOTNULL CONDICION','CONDICION',3,'p_CondicionNotN','Lexico.py',1319),
('CONDICION -> MENOS CONDICION','CONDICION',2,'p_CondicionM','Lexico.py',1322),
('CONDICION -> MAS CONDICION','CONDICION',2,'p_CondicionP','Lexico.py',1325),
('CONDICION -> EXTRACT PABRE DATETIME FROM PTIMESTAMP PCIERRA','CONDICION',6,'p_CondicionExtract','Lexico.py',1328),
('CONDICION -> FUNCIONES_WHERE','CONDICION',1,'p_CondicionFuncionWhere','Lexico.py',1331),
('CONDICION -> NUMERO','CONDICION',1,'p_CondicionNum','Lexico.py',1334),
('CONDICION -> DECIMAL','CONDICION',1,'p_CondicionDec','Lexico.py',1337),
('CONDICION -> CADENA','CONDICION',1,'p_CondicionCad','Lexico.py',1340),
('CONDICION -> TRUE','CONDICION',1,'p_CondicionTrue','Lexico.py',1343),
('CONDICION -> FALSE','CONDICION',1,'p_CondicionFalse','Lexico.py',1346),
('CONDICION -> ID','CONDICION',1,'p_CondicionId','Lexico.py',1349),
('CONDICION -> ID PUNTO ID','CONDICION',3,'p_CondicionIdP','Lexico.py',1352),
('CONDICION -> FUNCIONES_SISTEMA','CONDICION',1,'p_CondicionFuncionSistema','Lexico.py',1355),
('CONDICION -> DATE_PART PABRE CADENA COMA INTERVAL CADENA PCIERRA','CONDICION',7,'p_CondicionDatePart','Lexico.py',1358),
('CONDICION -> CURRENT_DATE','CONDICION',1,'p_CondicionCurrentDate','Lexico.py',1361),
('CONDICION -> CURRENT_TIME','CONDICION',1,'p_CondicionCurrentTime','Lexico.py',1364),
('CONDICION -> TIMESTAMP CADENA','CONDICION',2,'p_CondicionTimeStamp','Lexico.py',1367),
('CONDICION -> CONDICION BETWEEN CONDICION','CONDICION',3,'p_CondicionBetween','Lexico.py',1370),
('CONDICION -> CONDICION NOT BETWEEN CONDICION','CONDICION',4,'p_CondicionNotBetween','Lexico.py',1373),
('CONDICION -> CONDICION BETWEEN SIMMETRIC CONDICION','CONDICION',4,'p_CondicionBetweenSimetric','Lexico.py',1376),
('CONDICION -> CONDICION NOT BETWEEN SIMMETRIC CONDICION','CONDICION',5,'p_CondicionBetweenNotSimetric','Lexico.py',1379),
('CONDICION -> CONDICION IS DISTINCT FROM CONDICION','CONDICION',5,'p_CondicionIsDistinct','Lexico.py',1382),
('CONDICION -> CONDICION IS NOT DISTINCT FROM CONDICION','CONDICION',6,'p_CondicionIsNotDistinct','Lexico.py',1385),
('CONDICION -> NULL','CONDICION',1,'p_CondicionNull','Lexico.py',1388),
('CONDICION -> UNKNOWN','CONDICION',1,'p_CondicionUnknown','Lexico.py',1391),
('CONDICION -> PABRE SUBCONSULTA PCIERRA','CONDICION',3,'p_CondicionSubConsulta','Lexico.py',1394),
('CONDICION -> FUNCION PABRE ID PCIERRA','CONDICION',4,'p_CondicionFunciones','Lexico.py',1397),
('CONDICION -> FUNCION PABRE ID PUNTO ID PCIERRA','CONDICION',6,'p_CondicionFunciones1','Lexico.py',1400),
('CONDICION -> NOW PABRE PCIERRA','CONDICION',3,'p_CondicionNow','Lexico.py',1403),
('FUNCIONES_SISTEMA -> ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA ALIAS','FUNCIONES_SISTEMA',5,'p_FuncionesSistemaAlias','Lexico.py',1406),
('FUNCIONES_SISTEMA -> ID_FUNCION PABRE LCONDICION_FUNCION PCIERRA','FUNCIONES_SISTEMA',4,'p_FuncionesSistema','Lexico.py',1409),
('FUNCIONES_SISTEMA -> ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA ALIAS','FUNCIONES_SISTEMA',5,'p_FuncionesSistemaString','Lexico.py',1412),
('FUNCIONES_SISTEMA -> ID_FUNCION_S PABRE LCONDICION_FUNCION_S PCIERRA','FUNCIONES_SISTEMA',4,'p_FuncionesSistemaString1','Lexico.py',1415),
('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA ALIAS','FUNCIONES_SISTEMA',8,'p_FuncionesSistemaTrimA','Lexico.py',1418),
('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH CADENA FROM CADENA PCIERRA','FUNCIONES_SISTEMA',7,'p_FuncionesSistemaTrim','Lexico.py',1421),
('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA ALIAS','FUNCIONES_SISTEMA',9,'p_FuncionesSistemaTrimA1','Lexico.py',1424),
('FUNCIONES_SISTEMA -> TRIM PABRE LBOTH FROM CADENA COMA CADENA PCIERRA','FUNCIONES_SISTEMA',8,'p_FuncionesSistemaTrim1','Lexico.py',1427),
('ID_FUNCION_S -> SUBSTRING','ID_FUNCION_S',1,'p_Id_FuncionSubstring','Lexico.py',1430),
('ID_FUNCION_S -> LENGTH','ID_FUNCION_S',1,'p_Id_FuncionLength','Lexico.py',1433),
('ID_FUNCION_S -> SUBSTR','ID_FUNCION_S',1,'p_Id_FuncionSubstr','Lexico.py',1436),
('LBOTH -> LEADING','LBOTH',1,'p_LBOTHLeading','Lexico.py',1439),
('LBOTH -> TRAILING','LBOTH',1,'p_LBOTHTrailing','Lexico.py',1442),
('LBOTH -> BOTH','LBOTH',1,'p_LBOTHBoth','Lexico.py',1445),
('LCONDICION_FUNCION_S -> CONDICION','LCONDICION_FUNCION_S',1,'p_LCondicionFuncion_Condicion','Lexico.py',1448),
('LCONDICION_FUNCION_S -> CONDICION COMA NUMERO COMA NUMERO','LCONDICION_FUNCION_S',5,'p_LCondicionFuncion_S','Lexico.py',1451),
('ID_FUNCION -> ABS','ID_FUNCION',1,'p_IdFuncionAbs','Lexico.py',1454),
('ID_FUNCION -> CBRT','ID_FUNCION',1,'p_IdFuncionCBRT','Lexico.py',1457),
('ID_FUNCION -> CEIL','ID_FUNCION',1,'p_IdFuncionCeil','Lexico.py',1460),
('ID_FUNCION -> CEILING','ID_FUNCION',1,'p_IdFuncionCeiling','Lexico.py',1463),
('LCONDICION_FUNCION -> CONDICION','LCONDICION_FUNCION',1,'p_LCondicionFuncion1','Lexico.py',1466),
('LCONDICION_FUNCION -> LCONDICION_FUNCION COMA CONDICION','LCONDICION_FUNCION',3,'p_LCondicionFuncion','Lexico.py',1469),
('DATETIME -> YEAR','DATETIME',1,'p_DateTimeYear','Lexico.py',1472),
('DATETIME -> HOUR','DATETIME',1,'p_DateTimeHour','Lexico.py',1475),
('DATETIME -> MINUTE','DATETIME',1,'p_DateTimeMinute','Lexico.py',1478),
('DATETIME -> SECOND','DATETIME',1,'p_DateTimeSecond','Lexico.py',1481),
('DATETIME -> MONTH','DATETIME',1,'p_DateTimeMonth','Lexico.py',1484),
('DATETIME -> DAY','DATETIME',1,'p_DateTimeDay','Lexico.py',1487),
('FUNCIONES_WHERE -> EXISTS PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',4,'p_FuncionesWhereExist','Lexico.py',1490),
('FUNCIONES_WHERE -> CONDICION IN PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',5,'p_FuncionesWhereIn','Lexico.py',1493),
('FUNCIONES_WHERE -> CONDICION NOT IN PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',6,'p_FuncionesWhereNotIn','Lexico.py',1496),
('FUNCIONES_WHERE -> CONDICION OPERATOR_FW ANY PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',6,'p_FuncionesWhereAny','Lexico.py',1499),
('FUNCIONES_WHERE -> CONDICION OPERATOR_FW ALL PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',6,'p_FuncionesWhereAll','Lexico.py',1502),
('FUNCIONES_WHERE -> CONDICION OPERATOR_FW SOME PABRE SUBCONSULTA PCIERRA','FUNCIONES_WHERE',6,'p_FuncionesWhereSome','Lexico.py',1505),
('FUNCIONES_WHERE -> CONDICION LIKE CADENA','FUNCIONES_WHERE',3,'p_FuncionesWhereLike','Lexico.py',1508),
('FUNCIONES_WHERE -> CONDICION NOT LIKE CADENA','FUNCIONES_WHERE',4,'p_FuncionesWhereNotLike','Lexico.py',1511),
('OPERATOR_FW -> MENOR','OPERATOR_FW',1,'p_OperatorFwMenor','Lexico.py',1514),
('OPERATOR_FW -> MAYOR','OPERATOR_FW',1,'p_OperatorFwMayor','Lexico.py',1517),
('OPERATOR_FW -> MENORIGUAL','OPERATOR_FW',1,'p_OperatorFwMenorIgual','Lexico.py',1520),
('OPERATOR_FW -> MAYORIGUAL','OPERATOR_FW',1,'p_OperatorFwMayorIgual','Lexico.py',1523),
('OPERATOR_FW -> IGUAL','OPERATOR_FW',1,'p_OperatorFwIgual','Lexico.py',1526),
('OPERATOR_FW -> DIF','OPERATOR_FW',1,'p_OperatorFwDif','Lexico.py',1529),
('OPERATOR_FW -> DIF1','OPERATOR_FW',1,'p_OperatorFwDif1','Lexico.py',1532),
('PTIMESTAMP -> TIMESTAMP CADENA','PTIMESTAMP',2,'p_PTimestamC','Lexico.py',1535),
('PTIMESTAMP -> TIMESTAMP ID','PTIMESTAMP',2,'p_PTimestamId','Lexico.py',1538),
('PTIMESTAMP -> TIMESTAMP ID PUNTO ID','PTIMESTAMP',4,'p_PTimestamIdPId','Lexico.py',1541),
('PTIMESTAMP -> CADENA','PTIMESTAMP',1,'p_PTimestamCadena','Lexico.py',1544),
('PTIMESTAMP -> ID','PTIMESTAMP',1,'p_PTimestamId1','Lexico.py',1547),
('PTIMESTAMP -> ID PUNTO ID','PTIMESTAMP',3,'p_PTimestamIdP','Lexico.py',1550),
('EMPTY -> <empty>','EMPTY',0,'p_empty','Lexico.py',1553),
]
| 299.775176
| 70,968
| 0.684065
| 24,666
| 128,004
| 3.495135
| 0.072002
| 0.036747
| 0.009918
| 0.013223
| 0.610491
| 0.530849
| 0.490123
| 0.464268
| 0.447147
| 0.428843
| 0
| 0.422101
| 0.050131
| 128,004
| 426
| 70,969
| 300.478873
| 0.286947
| 0.000656
| 0
| 0.004808
| 1
| 0.002404
| 0.333604
| 0.016104
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
0350cb668d1199e24b116015330955f9c1338cec
| 22
|
py
|
Python
|
puppy/data/p/PuppyCourse/Calc/sample.py
|
y-akinobu/puppy
|
08a83b770d79984b1626b1f98613256ffd31fc82
|
[
"MIT"
] | 3
|
2019-08-27T11:39:06.000Z
|
2022-03-05T14:09:22.000Z
|
puppy/data/p/PuppyCourse/Calc/sample.py
|
y-akinobu/puppy
|
08a83b770d79984b1626b1f98613256ffd31fc82
|
[
"MIT"
] | 32
|
2019-06-19T06:01:43.000Z
|
2021-03-09T08:40:32.000Z
|
puppy/data/p/PuppyCourse/Calc/sample.py
|
y-akinobu/puppy
|
08a83b770d79984b1626b1f98613256ffd31fc82
|
[
"MIT"
] | 6
|
2019-06-18T07:58:46.000Z
|
2019-11-28T08:04:48.000Z
|
# 計算してみよう
print(1+2)
| 5.5
| 10
| 0.636364
| 4
| 22
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 0.181818
| 22
| 3
| 11
| 7.333333
| 0.666667
| 0.318182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 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
| 5
|
cefc88d377e1bfa5f293c7602653afc2f5ce381a
| 54
|
py
|
Python
|
carla/models/catalog/Linear_TORCH/__init__.py
|
jayanthyetukuri/CARLA
|
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
|
[
"MIT"
] | 140
|
2021-08-03T21:53:32.000Z
|
2022-03-20T08:52:02.000Z
|
carla/models/catalog/Linear_TORCH/__init__.py
|
jayanthyetukuri/CARLA
|
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
|
[
"MIT"
] | 54
|
2021-03-07T18:22:16.000Z
|
2021-08-03T12:06:31.000Z
|
carla/models/catalog/Linear_TORCH/__init__.py
|
jayanthyetukuri/CARLA
|
c3f3aaf11a5a8499c4bec5065e0c17ec8e6f5950
|
[
"MIT"
] | 16
|
2021-08-23T12:14:58.000Z
|
2022-03-01T00:52:58.000Z
|
# flake8: noqa
from .model_linear import LinearModel
| 13.5
| 37
| 0.796296
| 7
| 54
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021739
| 0.148148
| 54
| 3
| 38
| 18
| 0.891304
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
3001b6f654ef0e95351a383efc87801752a5ffd1
| 292
|
py
|
Python
|
leaderboard_entries/pytorch_CB_log.py
|
philomenec/reco-gym
|
f8553d197f42ec2f415aefce48525d0e9b10ddaa
|
[
"Apache-2.0"
] | 413
|
2018-09-18T17:49:44.000Z
|
2022-03-23T12:25:41.000Z
|
leaderboard_entries/pytorch_CB_log.py
|
aliang-rec/reco-gym
|
f8553d197f42ec2f415aefce48525d0e9b10ddaa
|
[
"Apache-2.0"
] | 15
|
2018-11-08T17:04:21.000Z
|
2021-11-30T19:20:27.000Z
|
leaderboard_entries/pytorch_CB_log.py
|
aliang-rec/reco-gym
|
f8553d197f42ec2f415aefce48525d0e9b10ddaa
|
[
"Apache-2.0"
] | 81
|
2018-09-22T02:28:55.000Z
|
2022-03-30T14:03:01.000Z
|
from recogym import build_agent_init
from recogym.agents import PyTorchMLRAgent, pytorch_mlr_args
pytorch_mlr_args['n_epochs'] = 30
pytorch_mlr_args['learning_rate'] = 0.01
pytorch_mlr_args['logIPS'] = True
agent = build_agent_init('PyTorchMLRAgent', PyTorchMLRAgent, {**pytorch_mlr_args})
| 32.444444
| 82
| 0.815068
| 41
| 292
| 5.414634
| 0.487805
| 0.225225
| 0.315315
| 0.261261
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018727
| 0.085616
| 292
| 8
| 83
| 36.5
| 0.812734
| 0
| 0
| 0
| 0
| 0
| 0.143836
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 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
| 0
| 0
|
0
| 5
|
3078d1db363b7c4adf202b9e11446a242c32431e
| 183
|
py
|
Python
|
backend/webapp/views.py
|
MarcoLagalla/marette_backend
|
d01458028da151d6ee583a080b1146792e81f01b
|
[
"MIT"
] | 1
|
2020-06-26T14:34:03.000Z
|
2020-06-26T14:34:03.000Z
|
backend/webapp/views.py
|
MarcoLagalla/marette_backend
|
d01458028da151d6ee583a080b1146792e81f01b
|
[
"MIT"
] | 26
|
2020-06-12T14:36:59.000Z
|
2020-07-10T08:39:53.000Z
|
backend/webapp/views.py
|
MarcoLagalla/marette_backend
|
d01458028da151d6ee583a080b1146792e81f01b
|
[
"MIT"
] | null | null | null |
from django.shortcuts import get_object_or_404, redirect, render
from django.views.generic import TemplateView, View, CreateView, ListView
from backend.account.models import Business
| 45.75
| 73
| 0.852459
| 25
| 183
| 6.12
| 0.8
| 0.130719
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018072
| 0.092896
| 183
| 3
| 74
| 61
| 0.903614
| 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
| 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
| 5
|
0623b03cd8cf182f873856c46c8510894d2c3791
| 106
|
py
|
Python
|
better_id3/clean/__init__.py
|
AymericBebert/Better-ID3
|
d30480738bbef3d64a2c88386fbce9fef1fa35bc
|
[
"MIT"
] | null | null | null |
better_id3/clean/__init__.py
|
AymericBebert/Better-ID3
|
d30480738bbef3d64a2c88386fbce9fef1fa35bc
|
[
"MIT"
] | null | null | null |
better_id3/clean/__init__.py
|
AymericBebert/Better-ID3
|
d30480738bbef3d64a2c88386fbce9fef1fa35bc
|
[
"MIT"
] | null | null | null |
from .file_name_blacklist import FileNameBlacklist
from .check_cover import EachDirectoryShouldHaveACover
| 35.333333
| 54
| 0.90566
| 11
| 106
| 8.454545
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.075472
| 106
| 2
| 55
| 53
| 0.94898
| 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
| 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
| 5
|
0628927f4a2ac73189bb9863f1918f42db8e9cb9
| 440
|
py
|
Python
|
MNIST_bit/count_table.py
|
ryos36/polyphony-tutorial
|
8937f2b8e8136c3b5d55b2a6be6e8b6ab35b04e7
|
[
"MIT"
] | 4
|
2018-05-04T01:08:49.000Z
|
2021-01-21T07:09:00.000Z
|
MNIST_bit/count_table.py
|
ryos36/polyphony-tutorial
|
8937f2b8e8136c3b5d55b2a6be6e8b6ab35b04e7
|
[
"MIT"
] | null | null | null |
MNIST_bit/count_table.py
|
ryos36/polyphony-tutorial
|
8937f2b8e8136c3b5d55b2a6be6e8b6ab35b04e7
|
[
"MIT"
] | 1
|
2020-06-02T08:41:54.000Z
|
2020-06-02T08:41:54.000Z
|
from polyphony.typing import List, bit32, bit8, bit6, bit
xbit4_to_n:List[bit6] = [
0, # 0000
1, # 0001
1, # 0010
2, # 0011
1, # 0100
2, # 0101
2, # 0110
3, # 0111
1, # 1000
2, # 1001
2, # 1010
3, # 1011
2, # 1100
3, # 1101
3, # 1110
4 # 1111
]
| 20
| 57
| 0.325
| 46
| 440
| 3.065217
| 0.717391
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.464865
| 0.579545
| 440
| 21
| 58
| 20.952381
| 0.297297
| 0.179545
| 0
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.052632
| 0
| 0.052632
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
0664200a62fc8a477e8c1aa3c1bb713731adff59
| 171
|
py
|
Python
|
dsql/api/models/table.py
|
gustavwilliam/discordSQL
|
95ba62dd9b9d7bffa1e8c2a9fc60d35c916b7b45
|
[
"MIT"
] | 4
|
2021-07-08T12:24:39.000Z
|
2022-03-03T02:51:18.000Z
|
dsql/api/models/table.py
|
gustavwilliam/discordSQL
|
95ba62dd9b9d7bffa1e8c2a9fc60d35c916b7b45
|
[
"MIT"
] | 1
|
2021-12-28T00:13:33.000Z
|
2021-12-28T00:13:33.000Z
|
dsql/api/models/table.py
|
gustavwilliam/discordSQL
|
95ba62dd9b9d7bffa1e8c2a9fc60d35c916b7b45
|
[
"MIT"
] | null | null | null |
from dsql.api.models import Component
class Table(Component):
def __init__(self, id: str) -> None:
super().__init__(id)
# TODO: Fetch and set table (category) name
| 21.375
| 45
| 0.71345
| 25
| 171
| 4.56
| 0.84
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.163743
| 171
| 7
| 46
| 24.428571
| 0.797203
| 0.239766
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.142857
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0
| 0.75
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 5
|
06a63e2801f125fea6260f1d90c7843622b520a8
| 72
|
py
|
Python
|
Python_ABC/2-7dictionary/test.py
|
Chandler-Song/Python_Awesome
|
a44b8b79de7b429a00ac5798e7ecdc26c79a09ed
|
[
"MIT"
] | null | null | null |
Python_ABC/2-7dictionary/test.py
|
Chandler-Song/Python_Awesome
|
a44b8b79de7b429a00ac5798e7ecdc26c79a09ed
|
[
"MIT"
] | null | null | null |
Python_ABC/2-7dictionary/test.py
|
Chandler-Song/Python_Awesome
|
a44b8b79de7b429a00ac5798e7ecdc26c79a09ed
|
[
"MIT"
] | null | null | null |
import census2010
print(census2010.allData['AK']['Anchorage']['pop'])
| 14.4
| 51
| 0.722222
| 8
| 72
| 6.5
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119403
| 0.069444
| 72
| 4
| 52
| 18
| 0.656716
| 0
| 0
| 0
| 0
| 0
| 0.197183
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 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
| 0
| 0
| 1
|
0
| 5
|
23099fbe79f19d27fab65085b8d52c00604ded21
| 45
|
py
|
Python
|
wrappers/python/indy_crypto/__init__.py
|
WeDPR-Team/indy-crypto
|
2f22b581dc00d8ac9077e3b699a661247dbac1c2
|
[
"Apache-2.0"
] | 42
|
2017-10-24T17:18:03.000Z
|
2020-05-18T07:36:25.000Z
|
wrappers/python/indy_crypto/__init__.py
|
WeDPR-Team/indy-crypto
|
2f22b581dc00d8ac9077e3b699a661247dbac1c2
|
[
"Apache-2.0"
] | 23
|
2017-08-31T17:02:36.000Z
|
2019-01-18T08:59:27.000Z
|
wrappers/python/indy_crypto/__init__.py
|
AYCH-Inc/aych.hyperindy.crypto
|
5e9db5cf58dcf39f94db52aab4f101e6d6e7e546
|
[
"Apache-2.0"
] | 59
|
2017-08-31T17:01:45.000Z
|
2020-05-15T17:20:09.000Z
|
from indy_crypto.error import IndyCryptoError
| 45
| 45
| 0.911111
| 6
| 45
| 6.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.066667
| 45
| 1
| 45
| 45
| 0.952381
| 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
| 0
| 0
|
0
| 5
|
230f52e3c183149c8790001a413a7f775ff100a3
| 35
|
py
|
Python
|
littlenn/optimizers/__init__.py
|
qbeer/littlenn
|
e783cb5d713f5669449fa993b3001848c028309b
|
[
"MIT"
] | null | null | null |
littlenn/optimizers/__init__.py
|
qbeer/littlenn
|
e783cb5d713f5669449fa993b3001848c028309b
|
[
"MIT"
] | null | null | null |
littlenn/optimizers/__init__.py
|
qbeer/littlenn
|
e783cb5d713f5669449fa993b3001848c028309b
|
[
"MIT"
] | null | null | null |
from .sgd_factory import SGDFactory
| 35
| 35
| 0.885714
| 5
| 35
| 6
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.085714
| 35
| 1
| 35
| 35
| 0.9375
| 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
| 0
| 0
|
0
| 5
|
23484848d0cb234b913160e7170bcaf73c7a71d7
| 595
|
py
|
Python
|
Standard_Libraries/Chapter 4/04_03/randcryp_start.py
|
RiddhiDamani/Python
|
06cba66aeafd9dc0fa849ec2112c0786a3e8f001
|
[
"MIT"
] | 1
|
2019-07-06T08:41:43.000Z
|
2019-07-06T08:41:43.000Z
|
Standard_Libraries/Chapter 4/04_03/randcryp_start.py
|
RiddhiDamani/Python
|
06cba66aeafd9dc0fa849ec2112c0786a3e8f001
|
[
"MIT"
] | null | null | null |
Standard_Libraries/Chapter 4/04_03/randcryp_start.py
|
RiddhiDamani/Python
|
06cba66aeafd9dc0fa849ec2112c0786a3e8f001
|
[
"MIT"
] | 1
|
2019-07-06T08:41:43.000Z
|
2019-07-06T08:41:43.000Z
|
# Using cryptographic-appropriate methods to generate random data
# that may be sensitive. secrets module introduced in Python 3.6
import os
import secrets
# TODO: the urandom() function in the OS module produces random numbers that
# are cryptographically safe to use for sensitive purposes
# TODO: secrets.choice is the same as random.choice but more secure
moves = ["rock", "paper", "scissors"]
# TODO: secrets.token_bytes generates random bytes
# TODO: secrets.token_hex creates a random string in hexadecimal
# TODO: secrets.token_urlsafe generates characters that can be in URLs
| 27.045455
| 76
| 0.781513
| 87
| 595
| 5.310345
| 0.643678
| 0.095238
| 0.103896
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004008
| 0.161345
| 595
| 21
| 77
| 28.333333
| 0.921844
| 0.84874
| 0
| 0
| 1
| 0
| 0.209877
| 0
| 0
| 0
| 0
| 0.047619
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
88c3a1f76a6fb86d01cb154f7f9eef05cb66be33
| 137
|
py
|
Python
|
test/integration/__init__.py
|
casastorta/python-throttle
|
1a741071e8897321c5fc497ea481a3e6377df7eb
|
[
"MIT"
] | 1
|
2021-09-19T08:06:22.000Z
|
2021-09-19T08:06:22.000Z
|
test/integration/__init__.py
|
casastorta/python-throttle
|
1a741071e8897321c5fc497ea481a3e6377df7eb
|
[
"MIT"
] | null | null | null |
test/integration/__init__.py
|
casastorta/python-throttle
|
1a741071e8897321c5fc497ea481a3e6377df7eb
|
[
"MIT"
] | null | null | null |
import logging
logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.DEBUG)
logging.getLogger().setLevel(logging.DEBUG)
| 27.4
| 76
| 0.788321
| 17
| 137
| 6.352941
| 0.647059
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043796
| 137
| 4
| 77
| 34.25
| 0.824427
| 0
| 0
| 0
| 0
| 0
| 0.182482
| 0.182482
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 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
| 0
| 0
|
0
| 5
|
88d14efb446b29b0c1ad1c38a93749a5157b75f0
| 437
|
py
|
Python
|
pydantic_argparse/argparse/__init__.py
|
SupImDos/pydantic-argparse
|
725163c8b4a01b45202f64c669fa31e3cdb5782b
|
[
"MIT"
] | 9
|
2021-10-04T15:51:24.000Z
|
2022-03-29T16:08:47.000Z
|
pydantic_argparse/argparse/__init__.py
|
SupImDos/pydantic-argparse
|
725163c8b4a01b45202f64c669fa31e3cdb5782b
|
[
"MIT"
] | 10
|
2021-12-09T21:02:16.000Z
|
2022-03-31T07:03:36.000Z
|
pydantic_argparse/argparse/__init__.py
|
SupImDos/pydantic-argparse
|
725163c8b4a01b45202f64c669fa31e3cdb5782b
|
[
"MIT"
] | 1
|
2022-03-29T16:08:48.000Z
|
2022-03-29T16:08:48.000Z
|
"""Declarative and Typed Argument Parsing.
This package contains the classes and methods required for declarative and
typed argument parsing.
The public interface exposed by this package is the `ArgumentParser` class,
which is intended to be a *near* drop-in replacement for the Python standard
library `argparse.ArgumentParser` - while providing declarative and typed
argument parsing.
"""
# Local
from .parser import ArgumentParser
| 31.214286
| 76
| 0.80778
| 59
| 437
| 5.983051
| 0.661017
| 0.11898
| 0.161473
| 0.229462
| 0.288952
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144165
| 437
| 13
| 77
| 33.615385
| 0.94385
| 0.897025
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 5
|
88dae62017b8e785c45b9e7e5f963ed1bacf1054
| 128
|
py
|
Python
|
RunToolkit/for_math/patterns.py
|
Ijustwantyouhappy/RunToolkit
|
c8245db0fc6f45e6847f9c2266a9f501966331e7
|
[
"MIT"
] | null | null | null |
RunToolkit/for_math/patterns.py
|
Ijustwantyouhappy/RunToolkit
|
c8245db0fc6f45e6847f9c2266a9f501966331e7
|
[
"MIT"
] | null | null | null |
RunToolkit/for_math/patterns.py
|
Ijustwantyouhappy/RunToolkit
|
c8245db0fc6f45e6847f9c2266a9f501966331e7
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# @Time : 2019/10/12 9:33
# @Author : Run
# @File : patterns.py
# @Software : PyCharm
# todo
| 18.285714
| 29
| 0.523438
| 17
| 128
| 3.941176
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.129032
| 0.273438
| 128
| 7
| 30
| 18.285714
| 0.591398
| 0.898438
| 0
| null | 0
| null | 0
| 0
| null | 0
| 0
| 0.142857
| null | 1
| null | true
| 0
| 0
| null | null | null | 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
000540c2434e8ae2f24779b859f4d3367c40f5b5
| 172
|
py
|
Python
|
tests/tuulyaml/parse_test.py
|
dksmiffs/tuulbachs
|
c9a82ed38514697c7c07afef99eadaf4dd2d4897
|
[
"MIT"
] | null | null | null |
tests/tuulyaml/parse_test.py
|
dksmiffs/tuulbachs
|
c9a82ed38514697c7c07afef99eadaf4dd2d4897
|
[
"MIT"
] | 16
|
2020-05-30T20:36:51.000Z
|
2021-05-31T20:42:42.000Z
|
tests/tuulyaml/parse_test.py
|
dksmiffs/tuulbachs
|
c9a82ed38514697c7c07afef99eadaf4dd2d4897
|
[
"MIT"
] | null | null | null |
from tuulyaml.parse import parse_yaml
def test_parse_yaml():
"""unit test parse_yaml"""
cfg = parse_yaml('version.yaml')
assert cfg['product_name'] == 'tuul'
| 21.5
| 40
| 0.686047
| 24
| 172
| 4.666667
| 0.583333
| 0.321429
| 0.232143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.174419
| 172
| 7
| 41
| 24.571429
| 0.788732
| 0.116279
| 0
| 0
| 0
| 0
| 0.191781
| 0
| 0
| 0
| 0
| 0
| 0.25
| 1
| 0.25
| false
| 0
| 0.25
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
00152852049f795b90fd91c170ce9107b1fa4ee5
| 5,180
|
py
|
Python
|
epytope/Data/pssms/arb/mat/A_3002_10.py
|
christopher-mohr/epytope
|
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
|
[
"BSD-3-Clause"
] | 7
|
2021-02-01T18:11:28.000Z
|
2022-01-31T19:14:07.000Z
|
epytope/Data/pssms/arb/mat/A_3002_10.py
|
christopher-mohr/epytope
|
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
|
[
"BSD-3-Clause"
] | 22
|
2021-01-02T15:25:23.000Z
|
2022-03-14T11:32:53.000Z
|
epytope/Data/pssms/arb/mat/A_3002_10.py
|
christopher-mohr/epytope
|
8ac9fe52c0b263bdb03235a5a6dffcb72012a4fd
|
[
"BSD-3-Clause"
] | 4
|
2021-05-28T08:50:38.000Z
|
2022-03-14T11:45:32.000Z
|
A_3002_10 = {0: {'A': 0.39333725000071124, 'C': -0.11505008416252092, 'E': -0.14634156996051909, 'D': -0.29208252721670014, 'G': 0.2297770849117627, 'F': -0.178089859563813, 'I': 0.6654381662569561, 'H': 0.26538418425045796, 'K': 0.5510735479747528, 'M': 0.14394235562135677, 'L': 0.0867283262365844, 'N': -0.34701849580747063, 'Q': -0.5215215842183232, 'P': -0.5452466257591754, 'S': -0.15014362451140723, 'R': 0.666817914544606, 'T': -0.10924578663448153, 'W': -0.3068704496433948, 'V': -0.11587213334552243, 'Y': -0.2964119839816296}, 1: {'A': 0.5284044962164268, 'C': 0.4904274749620329, 'E': -0.7762041022823268, 'D': -0.6473567372618739, 'G': 0.3458488220900019, 'F': -0.6794516893053058, 'I': 0.3172266379035649, 'H': -0.6861348246145323, 'K': -0.6861348246145323, 'M': 0.7988951348101119, 'L': 0.4284152933121104, 'N': -0.4709952034136344, 'Q': -0.5300698213615012, 'P': -1.5428209273442215, 'S': 1.1926159812216712, 'R': -1.3195221628654847, 'T': 0.6348254729996547, 'W': -0.5768659098203825, 'V': 0.08033702915786153, 'Y': -0.4845340284612711}, 2: {'A': 0.25610018089146624, 'C': -0.9374942778100421, 'E': -0.07713318840910385, 'D': -0.002916329083594915, 'G': 0.3473846646671456, 'F': 0.23901342643100612, 'I': -0.24706956229282914, 'H': -0.3532099921517737, 'K': -0.4739425237855576, 'M': 0.6530935973181025, 'L': -0.15518188472649572, 'N': -0.22079801571707255, 'Q': 0.014536876995418236, 'P': -0.9744560755095775, 'S': 0.3641462094024131, 'R': -0.2332889752779864, 'T': -0.29289796456114175, 'W': 0.33242702671037894, 'V': -0.535433287945095, 'Y': 0.7545163629330636}, 3: {'A': -0.1439557080266458, 'C': -1.0495581528163807, 'E': 0.1663224594151957, 'D': -0.11961148139580341, 'G': 0.5106673326616742, 'F': 0.21791647031005063, 'I': -0.3167769820114023, 'H': -0.07721376578687145, 'K': -0.42379640173983846, 'M': -0.2910237111840939, 'L': 0.31061721388551083, 'N': 0.34459711018011585, 'Q': 0.4182548259550453, 'P': -0.10093307760142031, 'S': 0.1824953403915569, 'R': 0.05769158278614578, 'T': -0.3084645315843602, 'W': -0.8284013091309139, 'V': -0.3239529187036497, 'Y': -0.13451194239152206}, 4: {'A': -0.20435164499317135, 'C': 0.13827872444919975, 'E': -0.1131327299502812, 'D': -0.07737469553146396, 'G': 0.28784943254438744, 'F': 0.2798609646445623, 'I': 0.2755532249148594, 'H': -0.347600705944471, 'K': -0.29628897802491005, 'M': 0.048787819351795624, 'L': -0.21286131305621114, 'N': -0.0267388754059701, 'Q': -0.008731604815363477, 'P': 0.3973185926813665, 'S': -0.25960422642268527, 'R': -0.08620332377306544, 'T': -0.023511880457269384, 'W': -0.5281913021621696, 'V': -0.04323170638645574, 'Y': 0.36827492536479167}, 5: {'A': 0.029643546081228576, 'C': -0.07379558215477902, 'E': -0.20095111861456594, 'D': 0.05680083678198747, 'G': 0.15214824652612283, 'F': 0.17506287809104742, 'I': 0.715847972050082, 'H': -0.4214665920123683, 'K': 0.35894177533900307, 'M': -0.510069603048613, 'L': -0.5402953546560884, 'N': -0.20703005428301954, 'Q': 0.1778643045903658, 'P': 0.14426230644343008, 'S': 0.24798084804675247, 'R': -0.579522833308723, 'T': -0.17956732876251047, 'W': 0.6792330836609204, 'V': 0.34736253250887705, 'Y': -0.10382963086903273}, 6: {'A': -0.08847928107664417, 'C': 0.603540418008244, 'E': -1.0100631646381921, 'D': 0.10151790941257824, 'G': -0.2351627186139346, 'F': -0.36631631899468675, 'I': -0.1248590827242326, 'H': -0.5939445753045791, 'K': 0.12700843263737105, 'M': -0.2595746581758151, 'L': 0.4468758033505257, 'N': 0.33549214140331235, 'Q': 0.42570757764006434, 'P': -0.13388369434876424, 'S': 0.1757082741273335, 'R': -0.428517106656247, 'T': 0.18962574641822538, 'W': 0.824758063083044, 'V': -0.25835562652984784, 'Y': 0.38847017732536765}, 7: {'A': 0.561075933723987, 'C': 0.35853575750986605, 'E': -0.6105565875219876, 'D': 0.19816374517996146, 'G': 1.0274691548332535, 'F': -0.3242235091206887, 'I': -0.4423220252185286, 'H': 0.2158222116713463, 'K': -0.05063317261171939, 'M': 0.3375901888273228, 'L': -0.5036802445047593, 'N': -0.17057942087964834, 'Q': 0.4424509823823099, 'P': 0.047829630841876726, 'S': 0.33594225499506514, 'R': -0.8102214407607227, 'T': -0.39823724379121106, 'W': 0.5562644018191493, 'V': -0.3957943657181846, 'Y': 0.036521186555418333}, 8: {'A': -0.27881049074147685, 'C': 0.28017281679144723, 'E': 0.14710663860767165, 'D': 0.17898416630038633, 'G': -0.5356449944058479, 'F': 0.787384498220075, 'I': -0.21064185027362822, 'H': -0.40743921177818043, 'K': 0.3663644869792481, 'M': 0.6583335141304806, 'L': 0.005688665795137416, 'N': 0.3341009446812898, 'Q': -0.11908218954923205, 'P': -0.15133738446542008, 'S': 0.18712307479313608, 'R': -0.0309166925653196, 'T': -0.3263125430679885, 'W': 0.3470826410090526, 'V': -0.47998547023163174, 'Y': 0.13417933962783915}, 9: {'A': -4.0, 'C': -4.0, 'E': -4.0, 'D': -4.0, 'G': -4.0, 'F': -0.8529711177995177, 'I': -1.205566644428163, 'H': -1.0095677508571927, 'K': -0.9969906704817362, 'M': -1.1949513084705956, 'L': -0.9507179236175828, 'N': -4.0, 'Q': -4.0, 'P': -4.0, 'S': -4.0, 'R': -0.9775647989379047, 'T': -4.0, 'W': -1.3680155260902453, 'V': -0.7030482260889588, 'Y': 1.7290689831621604}, -1: {'slope': 0.15852214529898243, 'intercept': -0.5408504673831436}}
| 5,180
| 5,180
| 0.695174
| 620
| 5,180
| 5.804839
| 0.362903
| 0.005557
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.710327
| 0.080309
| 5,180
| 1
| 5,180
| 5,180
| 0.04513
| 0
| 0
| 0
| 0
| 0
| 0.041305
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
00349b17842439dfd1599041a38fca4057b9182a
| 1,906
|
py
|
Python
|
testo.py
|
radiojam11/tavoli
|
53374f131bdaa7db498d443a1cb35b5d1bdb0537
|
[
"Apache-2.0"
] | null | null | null |
testo.py
|
radiojam11/tavoli
|
53374f131bdaa7db498d443a1cb35b5d1bdb0537
|
[
"Apache-2.0"
] | null | null | null |
testo.py
|
radiojam11/tavoli
|
53374f131bdaa7db498d443a1cb35b5d1bdb0537
|
[
"Apache-2.0"
] | null | null | null |
banner = """
_______ _____ _ _
|__ __| / ____| | | | |
| | ___ ___ _ __ ___ | | __ ___ _ __ _ __ ___| |_| |_ ___
| |/ _ \/ __| '_ \ / _ \| | |_ |/ _ \ '_ \| '_ \ / _ \ __| __/ _ \
| | __/ (__| | | | (_) | |__| | __/ |_) | |_) | __/ |_| || (_) |
|_|\___|\___|_| |_|\___/ \_____|\___| .__/| .__/ \___|\__|\__\___/
| | | |
_____ _ |_| |_| _______ _ _
| __ \ | | (_) |__ __| | (_)
| |__) | __ ___ _ __ ___ | |_ __ _ _____ ___ _ __ ___ | | __ ___ _____ | |_
| ___/ '__/ _ \ '_ \ / _ \| __/ _` |_ / |/ _ \| '_ \ / _ \ | |/ _` \ \ / / _ \| | |
| | | | | __/ | | | (_) | || (_| |/ /| | (_) | | | | __/ | | (_| |\ V / (_) | | |
|_| |_| \___|_| |_|\___/ \__\__,_/___|_|\___/|_| |_|\___| |_|\__,_| \_/ \___/|_|_|
_ _ _ _
(_) | | | | (_)
__ __ _ __ _ ___| |_ ___ _ __ __ _ _ __ | |_ _
\ \/ / | '__| / __| __/ _ \| '__/ _` | '_ \| __| |
> < | | | \__ \ || (_) | | | (_| | | | | |_| |
/_/\_\ |_| |_|___/\__\___/|_| \__,_|_| |_|\__|_|
"""
| 82.869565
| 89
| 0.170514
| 2
| 1,906
| 3.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.659496
| 1,906
| 23
| 90
| 82.869565
| 0.010786
| 0
| 0
| 0
| 0
| 0.52381
| 0.99161
| 0.012061
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 5
|
00408e618b7f5270f2fe26c9f9ca2c22a7f9b314
| 85
|
py
|
Python
|
ramda/private/_pipe.py
|
zydmayday/pamda
|
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
|
[
"MIT"
] | 1
|
2022-03-14T07:35:13.000Z
|
2022-03-14T07:35:13.000Z
|
ramda/private/_pipe.py
|
zydmayday/pamda
|
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
|
[
"MIT"
] | 3
|
2022-03-24T02:30:18.000Z
|
2022-03-31T07:46:04.000Z
|
ramda/private/_pipe.py
|
zydmayday/pamda
|
6740d0294f3bedbeeef3bbc3042a43dceb3239b2
|
[
"MIT"
] | null | null | null |
def _pipe(f, g):
def inner(*arguments):
return g(f(*arguments))
return inner
| 17
| 27
| 0.647059
| 13
| 85
| 4.153846
| 0.538462
| 0.555556
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 85
| 4
| 28
| 21.25
| 0.794118
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 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
| 0
| 0
|
0
| 5
|
cc595fc04e6e3b5e410d190be1f23daf9943f1e5
| 24,616
|
py
|
Python
|
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ncs1k_mxp_oper.py
|
Maikor/ydk-py
|
b86c4a7c570ae3b2c5557d098420446df5de4929
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ncs1k_mxp_oper.py
|
Maikor/ydk-py
|
b86c4a7c570ae3b2c5557d098420446df5de4929
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
cisco-ios-xr/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ncs1k_mxp_oper.py
|
Maikor/ydk-py
|
b86c4a7c570ae3b2c5557d098420446df5de4929
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
""" Cisco_IOS_XR_ncs1k_mxp_oper
This module contains a collection of YANG definitions
for Cisco IOS\-XR ncs1k\-mxp package operational data.
This module contains definitions
for the following management objects\:
hw\-module\: mxp hw\-module command chain
Copyright (c) 2013\-2018 by Cisco Systems, Inc.
All rights reserved.
"""
from collections import OrderedDict
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.filters import YFilter
from ydk.errors import YError, YModelError
from ydk.errors.error_handler import handle_type_error as _handle_type_error
class ClientDataRate(Enum):
"""
ClientDataRate (Enum Class)
Client data rate
.. data:: ten_gig = 1
Ten Gig
.. data:: forty_gig = 2
Forty Gig
.. data:: hundred_gig = 3
Hundread Gig
.. data:: ten_and_hundred_gig = 4
Ten and Hundread Gig
"""
ten_gig = Enum.YLeaf(1, "ten-gig")
forty_gig = Enum.YLeaf(2, "forty-gig")
hundred_gig = Enum.YLeaf(3, "hundred-gig")
ten_and_hundred_gig = Enum.YLeaf(4, "ten-and-hundred-gig")
class HwModuleSliceStatus(Enum):
"""
HwModuleSliceStatus (Enum Class)
Hw module slice status
.. data:: not_provisioned = 0
Not Provisioned
.. data:: provisioning_in_progress = 1
Provisioning In-Progress
.. data:: provisioned = 2
Provisioned
.. data:: provisioning_failed = 3
Provisioning Failed
.. data:: provisioning_scheduled = 4
Provisioning Scheduled
.. data:: reprovisioning_aborted = 5
Reprovisioning Aborted
"""
not_provisioned = Enum.YLeaf(0, "not-provisioned")
provisioning_in_progress = Enum.YLeaf(1, "provisioning-in-progress")
provisioned = Enum.YLeaf(2, "provisioned")
provisioning_failed = Enum.YLeaf(3, "provisioning-failed")
provisioning_scheduled = Enum.YLeaf(4, "provisioning-scheduled")
reprovisioning_aborted = Enum.YLeaf(5, "reprovisioning-aborted")
class TrunkDataRate(Enum):
"""
TrunkDataRate (Enum Class)
Trunk data rate
.. data:: fifty_gig = 1
FiftyGig
.. data:: hundred_gig = 2
HundredGig
.. data:: two_hundred_gig = 3
TwoHundredGig
.. data:: two_hundred_fifty_gig = 4
TwoHundredFiftyGig
"""
fifty_gig = Enum.YLeaf(1, "fifty-gig")
hundred_gig = Enum.YLeaf(2, "hundred-gig")
two_hundred_gig = Enum.YLeaf(3, "two-hundred-gig")
two_hundred_fifty_gig = Enum.YLeaf(4, "two-hundred-fifty-gig")
class HwModule(Entity):
"""
mxp hw\-module command chain
.. attribute:: slice_ids
Slice information
**type**\: :py:class:`SliceIds <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.HwModule.SliceIds>`
.. attribute:: slice_all
Information for all slices
**type**\: :py:class:`SliceAll <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.HwModule.SliceAll>`
"""
_prefix = 'ncs1k-mxp-oper'
_revision = '2015-11-09'
def __init__(self):
super(HwModule, self).__init__()
self._top_entity = None
self.yang_name = "hw-module"
self.yang_parent_name = "Cisco-IOS-XR-ncs1k-mxp-oper"
self.is_top_level_class = True
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("slice-ids", ("slice_ids", HwModule.SliceIds)), ("slice-all", ("slice_all", HwModule.SliceAll))])
self._leafs = OrderedDict()
self.slice_ids = HwModule.SliceIds()
self.slice_ids.parent = self
self._children_name_map["slice_ids"] = "slice-ids"
self.slice_all = HwModule.SliceAll()
self.slice_all.parent = self
self._children_name_map["slice_all"] = "slice-all"
self._segment_path = lambda: "Cisco-IOS-XR-ncs1k-mxp-oper:hw-module"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(HwModule, [], name, value)
class SliceIds(Entity):
"""
Slice information
.. attribute:: slice_id
Per slice num data
**type**\: list of :py:class:`SliceId <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.HwModule.SliceIds.SliceId>`
"""
_prefix = 'ncs1k-mxp-oper'
_revision = '2015-11-09'
def __init__(self):
super(HwModule.SliceIds, self).__init__()
self.yang_name = "slice-ids"
self.yang_parent_name = "hw-module"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("slice-id", ("slice_id", HwModule.SliceIds.SliceId))])
self._leafs = OrderedDict()
self.slice_id = YList(self)
self._segment_path = lambda: "slice-ids"
self._absolute_path = lambda: "Cisco-IOS-XR-ncs1k-mxp-oper:hw-module/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(HwModule.SliceIds, [], name, value)
class SliceId(Entity):
"""
Per slice num data
.. attribute:: slice_num (key)
Details associated with a particular slice number
**type**\: int
**range:** 0..4294967295
.. attribute:: slice_id
SliceId
**type**\: int
**range:** 0..4294967295
.. attribute:: client_rate
ClientRate
**type**\: :py:class:`ClientDataRate <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.ClientDataRate>`
.. attribute:: trunk_rate
TrunkRate
**type**\: :py:class:`TrunkDataRate <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.TrunkDataRate>`
.. attribute:: hardware_status
HardwareStatus
**type**\: :py:class:`HwModuleSliceStatus <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.HwModuleSliceStatus>`
.. attribute:: dp_fpga_fw_type
DpFpgaFwType
**type**\: str
**length:** 0..10
.. attribute:: dp_fpga_fw_ver
DpFpgaFwVer
**type**\: str
**length:** 0..10
.. attribute:: need_upg
NeedUpg
**type**\: int
**range:** 0..4294967295
.. attribute:: encryption_supported
EncryptionSupported
**type**\: bool
.. attribute:: lldp_drop_status
LldpDropStatus
**type**\: bool
.. attribute:: client_port
client port
**type**\: list of :py:class:`ClientPort <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.HwModule.SliceIds.SliceId.ClientPort>`
"""
_prefix = 'ncs1k-mxp-oper'
_revision = '2015-11-09'
def __init__(self):
super(HwModule.SliceIds.SliceId, self).__init__()
self.yang_name = "slice-id"
self.yang_parent_name = "slice-ids"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = ['slice_num']
self._child_classes = OrderedDict([("client-port", ("client_port", HwModule.SliceIds.SliceId.ClientPort))])
self._leafs = OrderedDict([
('slice_num', (YLeaf(YType.uint32, 'slice-num'), ['int'])),
('slice_id', (YLeaf(YType.uint32, 'slice-id'), ['int'])),
('client_rate', (YLeaf(YType.enumeration, 'client-rate'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper', 'ClientDataRate', '')])),
('trunk_rate', (YLeaf(YType.enumeration, 'trunk-rate'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper', 'TrunkDataRate', '')])),
('hardware_status', (YLeaf(YType.enumeration, 'hardware-status'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper', 'HwModuleSliceStatus', '')])),
('dp_fpga_fw_type', (YLeaf(YType.str, 'dp-fpga-fw-type'), ['str'])),
('dp_fpga_fw_ver', (YLeaf(YType.str, 'dp-fpga-fw-ver'), ['str'])),
('need_upg', (YLeaf(YType.uint32, 'need-upg'), ['int'])),
('encryption_supported', (YLeaf(YType.boolean, 'encryption-supported'), ['bool'])),
('lldp_drop_status', (YLeaf(YType.boolean, 'lldp-drop-status'), ['bool'])),
])
self.slice_num = None
self.slice_id = None
self.client_rate = None
self.trunk_rate = None
self.hardware_status = None
self.dp_fpga_fw_type = None
self.dp_fpga_fw_ver = None
self.need_upg = None
self.encryption_supported = None
self.lldp_drop_status = None
self.client_port = YList(self)
self._segment_path = lambda: "slice-id" + "[slice-num='" + str(self.slice_num) + "']"
self._absolute_path = lambda: "Cisco-IOS-XR-ncs1k-mxp-oper:hw-module/slice-ids/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(HwModule.SliceIds.SliceId, ['slice_num', u'slice_id', u'client_rate', u'trunk_rate', u'hardware_status', u'dp_fpga_fw_type', u'dp_fpga_fw_ver', u'need_upg', u'encryption_supported', u'lldp_drop_status'], name, value)
class ClientPort(Entity):
"""
client port
.. attribute:: client_name
ClientName
**type**\: str
**length:** 0..64
.. attribute:: if_index
IfIndex
**type**\: int
**range:** 0..4294967295
.. attribute:: trunk_port
trunk port
**type**\: list of :py:class:`TrunkPort <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.HwModule.SliceIds.SliceId.ClientPort.TrunkPort>`
"""
_prefix = 'ncs1k-mxp-oper'
_revision = '2015-11-09'
def __init__(self):
super(HwModule.SliceIds.SliceId.ClientPort, self).__init__()
self.yang_name = "client-port"
self.yang_parent_name = "slice-id"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([("trunk-port", ("trunk_port", HwModule.SliceIds.SliceId.ClientPort.TrunkPort))])
self._leafs = OrderedDict([
('client_name', (YLeaf(YType.str, 'client-name'), ['str'])),
('if_index', (YLeaf(YType.uint32, 'if-index'), ['int'])),
])
self.client_name = None
self.if_index = None
self.trunk_port = YList(self)
self._segment_path = lambda: "client-port"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(HwModule.SliceIds.SliceId.ClientPort, [u'client_name', u'if_index'], name, value)
class TrunkPort(Entity):
"""
trunk port
.. attribute:: trunk_name
TrunkName
**type**\: str
**length:** 0..64
.. attribute:: if_index
IfIndex
**type**\: int
**range:** 0..4294967295
.. attribute:: percentage
Percentage
**type**\: str
**length:** 0..8
"""
_prefix = 'ncs1k-mxp-oper'
_revision = '2015-11-09'
def __init__(self):
super(HwModule.SliceIds.SliceId.ClientPort.TrunkPort, self).__init__()
self.yang_name = "trunk-port"
self.yang_parent_name = "client-port"
self.is_top_level_class = False
self.has_list_ancestor = True
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('trunk_name', (YLeaf(YType.str, 'trunk-name'), ['str'])),
('if_index', (YLeaf(YType.uint32, 'if-index'), ['int'])),
('percentage', (YLeaf(YType.str, 'percentage'), ['str'])),
])
self.trunk_name = None
self.if_index = None
self.percentage = None
self._segment_path = lambda: "trunk-port"
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(HwModule.SliceIds.SliceId.ClientPort.TrunkPort, [u'trunk_name', u'if_index', u'percentage'], name, value)
class SliceAll(Entity):
"""
Information for all slices
.. attribute:: slice_info
slice info
**type**\: list of :py:class:`SliceInfo <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.HwModule.SliceAll.SliceInfo>`
"""
_prefix = 'ncs1k-mxp-oper'
_revision = '2015-11-09'
def __init__(self):
super(HwModule.SliceAll, self).__init__()
self.yang_name = "slice-all"
self.yang_parent_name = "hw-module"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("slice-info", ("slice_info", HwModule.SliceAll.SliceInfo))])
self._leafs = OrderedDict()
self.slice_info = YList(self)
self._segment_path = lambda: "slice-all"
self._absolute_path = lambda: "Cisco-IOS-XR-ncs1k-mxp-oper:hw-module/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(HwModule.SliceAll, [], name, value)
class SliceInfo(Entity):
"""
slice info
.. attribute:: slice_id
SliceId
**type**\: int
**range:** 0..4294967295
.. attribute:: client_rate
ClientRate
**type**\: :py:class:`ClientDataRate <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.ClientDataRate>`
.. attribute:: trunk_rate
TrunkRate
**type**\: :py:class:`TrunkDataRate <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.TrunkDataRate>`
.. attribute:: hardware_status
HardwareStatus
**type**\: :py:class:`HwModuleSliceStatus <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.HwModuleSliceStatus>`
.. attribute:: dp_fpga_fw_type
DpFpgaFwType
**type**\: str
**length:** 0..10
.. attribute:: dp_fpga_fw_ver
DpFpgaFwVer
**type**\: str
**length:** 0..10
.. attribute:: need_upg
NeedUpg
**type**\: int
**range:** 0..4294967295
.. attribute:: encryption_supported
EncryptionSupported
**type**\: bool
.. attribute:: lldp_drop_status
LldpDropStatus
**type**\: bool
.. attribute:: client_port
client port
**type**\: list of :py:class:`ClientPort <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.HwModule.SliceAll.SliceInfo.ClientPort>`
"""
_prefix = 'ncs1k-mxp-oper'
_revision = '2015-11-09'
def __init__(self):
super(HwModule.SliceAll.SliceInfo, self).__init__()
self.yang_name = "slice-info"
self.yang_parent_name = "slice-all"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("client-port", ("client_port", HwModule.SliceAll.SliceInfo.ClientPort))])
self._leafs = OrderedDict([
('slice_id', (YLeaf(YType.uint32, 'slice-id'), ['int'])),
('client_rate', (YLeaf(YType.enumeration, 'client-rate'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper', 'ClientDataRate', '')])),
('trunk_rate', (YLeaf(YType.enumeration, 'trunk-rate'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper', 'TrunkDataRate', '')])),
('hardware_status', (YLeaf(YType.enumeration, 'hardware-status'), [('ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper', 'HwModuleSliceStatus', '')])),
('dp_fpga_fw_type', (YLeaf(YType.str, 'dp-fpga-fw-type'), ['str'])),
('dp_fpga_fw_ver', (YLeaf(YType.str, 'dp-fpga-fw-ver'), ['str'])),
('need_upg', (YLeaf(YType.uint32, 'need-upg'), ['int'])),
('encryption_supported', (YLeaf(YType.boolean, 'encryption-supported'), ['bool'])),
('lldp_drop_status', (YLeaf(YType.boolean, 'lldp-drop-status'), ['bool'])),
])
self.slice_id = None
self.client_rate = None
self.trunk_rate = None
self.hardware_status = None
self.dp_fpga_fw_type = None
self.dp_fpga_fw_ver = None
self.need_upg = None
self.encryption_supported = None
self.lldp_drop_status = None
self.client_port = YList(self)
self._segment_path = lambda: "slice-info"
self._absolute_path = lambda: "Cisco-IOS-XR-ncs1k-mxp-oper:hw-module/slice-all/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(HwModule.SliceAll.SliceInfo, [u'slice_id', u'client_rate', u'trunk_rate', u'hardware_status', u'dp_fpga_fw_type', u'dp_fpga_fw_ver', u'need_upg', u'encryption_supported', u'lldp_drop_status'], name, value)
class ClientPort(Entity):
"""
client port
.. attribute:: client_name
ClientName
**type**\: str
**length:** 0..64
.. attribute:: if_index
IfIndex
**type**\: int
**range:** 0..4294967295
.. attribute:: trunk_port
trunk port
**type**\: list of :py:class:`TrunkPort <ydk.models.cisco_ios_xr.Cisco_IOS_XR_ncs1k_mxp_oper.HwModule.SliceAll.SliceInfo.ClientPort.TrunkPort>`
"""
_prefix = 'ncs1k-mxp-oper'
_revision = '2015-11-09'
def __init__(self):
super(HwModule.SliceAll.SliceInfo.ClientPort, self).__init__()
self.yang_name = "client-port"
self.yang_parent_name = "slice-info"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([("trunk-port", ("trunk_port", HwModule.SliceAll.SliceInfo.ClientPort.TrunkPort))])
self._leafs = OrderedDict([
('client_name', (YLeaf(YType.str, 'client-name'), ['str'])),
('if_index', (YLeaf(YType.uint32, 'if-index'), ['int'])),
])
self.client_name = None
self.if_index = None
self.trunk_port = YList(self)
self._segment_path = lambda: "client-port"
self._absolute_path = lambda: "Cisco-IOS-XR-ncs1k-mxp-oper:hw-module/slice-all/slice-info/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(HwModule.SliceAll.SliceInfo.ClientPort, [u'client_name', u'if_index'], name, value)
class TrunkPort(Entity):
"""
trunk port
.. attribute:: trunk_name
TrunkName
**type**\: str
**length:** 0..64
.. attribute:: if_index
IfIndex
**type**\: int
**range:** 0..4294967295
.. attribute:: percentage
Percentage
**type**\: str
**length:** 0..8
"""
_prefix = 'ncs1k-mxp-oper'
_revision = '2015-11-09'
def __init__(self):
super(HwModule.SliceAll.SliceInfo.ClientPort.TrunkPort, self).__init__()
self.yang_name = "trunk-port"
self.yang_parent_name = "client-port"
self.is_top_level_class = False
self.has_list_ancestor = False
self.ylist_key_names = []
self._child_classes = OrderedDict([])
self._leafs = OrderedDict([
('trunk_name', (YLeaf(YType.str, 'trunk-name'), ['str'])),
('if_index', (YLeaf(YType.uint32, 'if-index'), ['int'])),
('percentage', (YLeaf(YType.str, 'percentage'), ['str'])),
])
self.trunk_name = None
self.if_index = None
self.percentage = None
self._segment_path = lambda: "trunk-port"
self._absolute_path = lambda: "Cisco-IOS-XR-ncs1k-mxp-oper:hw-module/slice-all/slice-info/client-port/%s" % self._segment_path()
self._is_frozen = True
def __setattr__(self, name, value):
self._perform_setattr(HwModule.SliceAll.SliceInfo.ClientPort.TrunkPort, [u'trunk_name', u'if_index', u'percentage'], name, value)
def clone_ptr(self):
self._top_entity = HwModule()
return self._top_entity
| 34.965909
| 254
| 0.504225
| 2,366
| 24,616
| 4.949704
| 0.084108
| 0.034156
| 0.042695
| 0.038425
| 0.791649
| 0.752028
| 0.735035
| 0.723252
| 0.723252
| 0.716164
| 0
| 0.019314
| 0.381622
| 24,616
| 703
| 255
| 35.015647
| 0.750033
| 0.240128
| 0
| 0.654762
| 0
| 0.015873
| 0.178539
| 0.05024
| 0
| 0
| 0
| 0
| 0
| 1
| 0.075397
| false
| 0
| 0.019841
| 0
| 0.210317
| 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
| 0
| 0
|
0
| 5
|
cc92c67252dc8302efa9bc1d7e1d7265e20bdfa0
| 4,677
|
py
|
Python
|
tests/test_yacfg/output/test_new_profile_rendered.py
|
gaohoward/YamlConfiger
|
d5548ec6ca70e6646ea135454c503eff4da8a85e
|
[
"Apache-2.0"
] | null | null | null |
tests/test_yacfg/output/test_new_profile_rendered.py
|
gaohoward/YamlConfiger
|
d5548ec6ca70e6646ea135454c503eff4da8a85e
|
[
"Apache-2.0"
] | 20
|
2020-11-16T16:40:04.000Z
|
2022-03-28T19:16:53.000Z
|
tests/test_yacfg/output/test_new_profile_rendered.py
|
gaohoward/YamlConfiger
|
d5548ec6ca70e6646ea135454c503eff4da8a85e
|
[
"Apache-2.0"
] | null | null | null |
# Copyright 2018 Red Hat Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import mock as mock
import pytest
import yacfg.output
from yacfg.output import new_profile_rendered
from yacfg.meta import NAME
from ..profiles.fakes import (
fake_load_tuned_profile_with_defaults,
fake_load_tuned_profile_no_defaults,
)
@mock.patch('yacfg.output.get_tuned_profile',
side_effect=fake_load_tuned_profile_with_defaults)
@mock.patch('yacfg.output.write_output', mock.Mock())
@mock.patch('yacfg.output.ensure_output_path', mock.Mock())
def test_true_defaults(*_):
profile_name = 'product/1.0.0/my_profile.yaml'
destination_name = 'destination_profile.yaml'
destination_path = '/profile/destination/path'
destination = os.path.join(destination_path, destination_name)
_, expected_data = fake_load_tuned_profile_no_defaults()
expected_data = '# {} tuning file generated from profile {}{}---{}{}'.format(
NAME, profile_name, os.linesep, os.linesep, expected_data
)
new_profile_rendered(profile_name, destination, None)
# noinspection PyUnresolvedReferences
yacfg.output.ensure_output_path.assert_called_with(destination_path)
# noinspection PyUnresolvedReferences
yacfg.output.write_output.assert_called_with(destination_name,
destination_path,
expected_data)
@mock.patch('yacfg.output.get_tuned_profile',
side_effect=fake_load_tuned_profile_no_defaults)
@mock.patch('yacfg.output.write_output', mock.Mock())
@mock.patch('yacfg.output.ensure_output_path', mock.Mock())
def test_true_no_defaults(*_):
profile_name = 'product/1.0.0/my_profile.yaml'
destination_name = 'destination_profile.yaml'
destination_path = '/profile/destination/path'
destination = os.path.join(destination_path, destination_name)
_, expected_data = fake_load_tuned_profile_no_defaults()
expected_data = '# {} tuning file generated from profile {}{}---{}{}'.format(
NAME, profile_name, os.linesep, os.linesep, expected_data
)
new_profile_rendered(profile_name, destination, None)
# noinspection PyUnresolvedReferences
yacfg.output.ensure_output_path.assert_called_with(destination_path)
# noinspection PyUnresolvedReferences
yacfg.output.write_output.assert_called_with(destination_name,
destination_path,
expected_data)
@mock.patch('yacfg.output.get_tuned_profile',
side_effect=fake_load_tuned_profile_with_defaults)
@mock.patch('yacfg.output.write_output', mock.Mock())
@mock.patch('yacfg.output.ensure_output_path', mock.Mock())
def test_true_no_destination(*_):
profile_name = 'product/1.0.0/my_profile.yaml'
destination = ''
_, expected_data = fake_load_tuned_profile_no_defaults()
expected_data = '# {} tuning file generated from profile {}{}---{}{}'.format(
NAME, profile_name, os.linesep, os.linesep, expected_data
)
new_profile_rendered(profile_name, destination, None)
# noinspection PyUnresolvedReferences
yacfg.output.ensure_output_path.assert_not_called()
# noinspection PyUnresolvedReferences
yacfg.output.write_output.assert_called_with(destination,
destination,
expected_data)
@mock.patch('yacfg.output.get_tuned_profile',
side_effect=fake_load_tuned_profile_with_defaults)
@mock.patch('yacfg.output.ensure_output_path',
side_effect=OSError('[Errno 13] Permission denied: \'path\''))
@mock.patch('yacfg.output.write_output', mock.Mock())
def test_destination_problem_exception(*_):
profile_name = 'product/1.0.0/my_profile.yaml'
destination = '/problematic/destination'
with pytest.raises(OSError):
new_profile_rendered(profile_name, destination, None)
# noinspection PyUnresolvedReferences
yacfg.output.ensure_output_path.assert_called()
# noinspection PyUnresolvedReferences
yacfg.output.write_output.assert_not_called()
| 42.518182
| 81
| 0.716271
| 561
| 4,677
| 5.672014
| 0.212121
| 0.076053
| 0.052797
| 0.075424
| 0.769642
| 0.769642
| 0.759585
| 0.754557
| 0.72093
| 0.72093
| 0
| 0.005797
| 0.188582
| 4,677
| 109
| 82
| 42.908257
| 0.832675
| 0.178747
| 0
| 0.621622
| 0
| 0
| 0.200576
| 0.152396
| 0
| 0
| 0
| 0
| 0.108108
| 1
| 0.054054
| false
| 0
| 0.094595
| 0
| 0.148649
| 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
| 0
| 0
|
0
| 5
|
ccbf5500a80da7142467f936eba30235d1d88bd8
| 187
|
py
|
Python
|
restless_client/__init__.py
|
gjeusel/flask-restless-client
|
8c78d256e095467183bf50dfa38babf5ce03123c
|
[
"MIT"
] | 4
|
2019-11-06T20:46:51.000Z
|
2021-09-07T11:51:50.000Z
|
restless_client/__init__.py
|
gjeusel/flask-restless-client
|
8c78d256e095467183bf50dfa38babf5ce03123c
|
[
"MIT"
] | 28
|
2019-11-13T05:38:37.000Z
|
2021-11-05T18:29:59.000Z
|
restless_client/__init__.py
|
gjeusel/flask-restless-client
|
8c78d256e095467183bf50dfa38babf5ce03123c
|
[
"MIT"
] | 3
|
2019-11-13T05:36:20.000Z
|
2021-11-05T10:09:45.000Z
|
__all__ = ('__version__', 'Client', 'inspect')
from .client import Client # noqa F401
from .inspect import inspect # noqa F401
from .utils import VERSION
__version__ = VERSION
| 23.375
| 47
| 0.71123
| 22
| 187
| 5.5
| 0.409091
| 0.132231
| 0.198347
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.04
| 0.197861
| 187
| 7
| 48
| 26.714286
| 0.766667
| 0.101604
| 0
| 0
| 0
| 0
| 0.151899
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.6
| 0
| 0.6
| 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
| 0
| 1
| 0
|
0
| 5
|
ccd03c703c701ad9b2b766ee18d3d7273a898667
| 122
|
py
|
Python
|
software_packages/libvips-8.2.2/python/example/try13.py
|
keiserlab/consensus-learning-paper
|
2d204362569489b9ab4c861b6cb6c5b819659ada
|
[
"MIT"
] | null | null | null |
software_packages/libvips-8.2.2/python/example/try13.py
|
keiserlab/consensus-learning-paper
|
2d204362569489b9ab4c861b6cb6c5b819659ada
|
[
"MIT"
] | null | null | null |
software_packages/libvips-8.2.2/python/example/try13.py
|
keiserlab/consensus-learning-paper
|
2d204362569489b9ab4c861b6cb6c5b819659ada
|
[
"MIT"
] | 1
|
2022-02-16T19:12:02.000Z
|
2022-02-16T19:12:02.000Z
|
#!/usr/bin/python
import sys
import logging
logging.basicConfig(level = logging.DEBUG)
from gi.repository import Vips
| 13.555556
| 42
| 0.778689
| 17
| 122
| 5.588235
| 0.764706
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.131148
| 122
| 8
| 43
| 15.25
| 0.896226
| 0.131148
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 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
| 0
| 1
| 0
|
0
| 5
|
aea6134d79b2c66cbf98585cca16196ee133e77a
| 8,056
|
py
|
Python
|
analyses/Outdated/past_ch4_integrations/monthlySort.py
|
ARLlab/Summit
|
1aa0d85cedebe85fab969df004409cc8f28595b3
|
[
"Apache-2.0"
] | null | null | null |
analyses/Outdated/past_ch4_integrations/monthlySort.py
|
ARLlab/Summit
|
1aa0d85cedebe85fab969df004409cc8f28595b3
|
[
"Apache-2.0"
] | 4
|
2020-04-30T01:43:09.000Z
|
2022-02-12T07:05:51.000Z
|
analyses/Outdated/past_ch4_integrations/monthlySort.py
|
ARLlab/Summit
|
1aa0d85cedebe85fab969df004409cc8f28595b3
|
[
"Apache-2.0"
] | 4
|
2019-05-13T20:23:03.000Z
|
2020-01-24T23:51:45.000Z
|
"""
Created on Thursday, April 4th, 2019.
This is a learning script. It was developed for the purpose of categorizing
methane chroms and log files into distinct yearly and monthly folders. It
handles only this specific goal and is not adaptable.
Created in Spyder 3.3.2 in Anaconda Distribution, Python 3.7
"""
## Import Libraries
import os
import shutil
years = [2016, 2017, 2018]
months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
# create initial folders
for yrs in years:
path = r'C:\Users\ARL\Desktop\pastch4\%i'%yrs
os.mkdir(path)
for mo in months:
path = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yrs,mo)
os.mkdir(path)
path = r'C:\Users\ARL\Desktop\pastch4\%i\%s\log.txt'%(yrs,mo)
# move files into respective folders
source = r'C:\Users\ARL\Desktop\pastch4BUP'
files = [file for file in os.listdir(source) if '.chr' in file]
from isleapyear import isleapyear
for f in files: # iterate over all the files
for yr in years: # iterate over years
if f[:4] == '%i'%yr: # if first four letters indicate yr
if isleapyear(yr): # leap year julian dates are different than normal
if int(f[4:7]) >= 1 and int(f[4:7]) <= 31:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[0])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 32 and int(f[4:7]) <= 60:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[1])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 61 and int(f[4:7]) <= 91:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[2])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 92 and int(f[4:7]) <= 121:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[3])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 122 and int(f[4:7]) <= 152:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[4])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 153 and int(f[4:7]) <= 182:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[5])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 183 and int(f[4:7]) <= 213:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[6])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 214 and int(f[4:7]) <= 244:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[7])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 245 and int(f[4:7]) <= 274:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[8])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 275 and int(f[4:7]) <= 305:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[9])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 306 and int(f[4:7]) <= 335:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[10])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
else:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[11])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
else:
if int(f[4:7]) >= 1 and int(f[4:7]) <= 31:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[0])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 32 and int(f[4:7]) <= 59:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[1])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 60 and int(f[4:7]) <= 90:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[2])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 91 and int(f[4:7]) <= 120:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[3])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 121 and int(f[4:7]) <= 151:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[4])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 152 and int(f[4:7]) <= 181:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[5])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 182 and int(f[4:7]) <= 212:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[6])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 213 and int(f[4:7]) <= 243:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[7])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 244 and int(f[4:7]) <= 273:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[8])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 274 and int(f[4:7]) <= 304:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[9])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
elif int(f[4:7]) >= 305 and int(f[4:7]) <= 334:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[10])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
else:
dest = r'C:\Users\ARL\Desktop\pastch4\%i\%s'%(yr,months[11])
f = r'C:\Users\ARL\Desktop\pastch4BUP\%s'%(f)
shutil.copy2(f,dest) # move the files
| 60.119403
| 86
| 0.456306
| 1,130
| 8,056
| 3.253097
| 0.133628
| 0.028292
| 0.099021
| 0.141458
| 0.79815
| 0.740479
| 0.733134
| 0.733134
| 0.725245
| 0.708923
| 0
| 0.065871
| 0.376241
| 8,056
| 133
| 87
| 60.571429
| 0.665672
| 0.10787
| 0
| 0.686957
| 0
| 0
| 0.253533
| 0.247656
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.026087
| 0
| 0.026087
| 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
| 0
| 0
|
0
| 5
|
9d8fe43e9fea1594d887ef2bd73931e9d5c19838
| 106
|
py
|
Python
|
maddux/__init__.py
|
emielke12/maddux
|
fed7770c54124c14935523e6bcdba81ad9538cbc
|
[
"MIT"
] | 23
|
2016-04-23T18:13:24.000Z
|
2021-12-14T23:37:09.000Z
|
maddux/__init__.py
|
emielke12/maddux
|
fed7770c54124c14935523e6bcdba81ad9538cbc
|
[
"MIT"
] | 12
|
2016-04-14T23:59:51.000Z
|
2019-05-25T10:00:14.000Z
|
maddux/__init__.py
|
emielke12/maddux
|
fed7770c54124c14935523e6bcdba81ad9538cbc
|
[
"MIT"
] | 8
|
2018-10-19T13:52:27.000Z
|
2020-10-31T23:30:24.000Z
|
import robots
import objects
import plot
import utils
import examples
from environment import Environment
| 15.142857
| 35
| 0.867925
| 14
| 106
| 6.571429
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.132075
| 106
| 6
| 36
| 17.666667
| 1
| 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
| 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
| 5
|
9da77ac39d452dee674079d20eb9ff50be3f5d24
| 124
|
py
|
Python
|
gw_bot/api/commands/gw/GW_Commands.py
|
filetrust/GW-Bot
|
af90e083cc91f1a22dfe5a927882c2cae228f943
|
[
"Apache-2.0"
] | 1
|
2020-01-06T11:48:20.000Z
|
2020-01-06T11:48:20.000Z
|
gw_bot/api/commands/gw/GW_Commands.py
|
filetrust/GW-Bot
|
af90e083cc91f1a22dfe5a927882c2cae228f943
|
[
"Apache-2.0"
] | 5
|
2020-02-01T19:18:03.000Z
|
2020-03-09T23:40:13.000Z
|
gw_bot/api/commands/gw/GW_Commands.py
|
filetrust/GW-Bot
|
af90e083cc91f1a22dfe5a927882c2cae228f943
|
[
"Apache-2.0"
] | 1
|
2020-02-27T18:43:11.000Z
|
2020-02-27T18:43:11.000Z
|
class GW_Commands:
@staticmethod
def ping(slack_id=None, channel=None, params=None) :
return 'pong',None
| 17.714286
| 56
| 0.66129
| 16
| 124
| 5
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.233871
| 124
| 6
| 57
| 20.666667
| 0.842105
| 0
| 0
| 0
| 0
| 0
| 0.03252
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0.25
| 0.75
| 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
| 0
| 1
| 1
| 0
|
0
| 5
|
9dcb09f3f9ac527d44b10724eb6395deb82eac95
| 103
|
py
|
Python
|
ridt/plot/__init__.py
|
riskaware-ltd/ridt
|
c0288a2f814b2749bdf73de7157f7477ca271aff
|
[
"MIT"
] | null | null | null |
ridt/plot/__init__.py
|
riskaware-ltd/ridt
|
c0288a2f814b2749bdf73de7157f7477ca271aff
|
[
"MIT"
] | 9
|
2020-09-18T08:22:39.000Z
|
2021-07-20T09:39:59.000Z
|
ridt/plot/__init__.py
|
riskaware-ltd/ridt
|
c0288a2f814b2749bdf73de7157f7477ca271aff
|
[
"MIT"
] | 1
|
2021-06-22T21:53:20.000Z
|
2021-06-22T21:53:20.000Z
|
from .pointplot import PointPlot
from .contourplot import ContourPlot
from .lineplot import LinePlot
| 17.166667
| 36
| 0.834951
| 12
| 103
| 7.166667
| 0.416667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135922
| 103
| 5
| 37
| 20.6
| 0.966292
| 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
| 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
| 5
|
9ddd78c66d0f7aba3b2cb18723c8c6f70fbb1a94
| 61
|
py
|
Python
|
filterflow/observation/__init__.py
|
lll6924/VMPF
|
7c5970d11ffb63c5231965d9ceb8f0df70292003
|
[
"MIT"
] | null | null | null |
filterflow/observation/__init__.py
|
lll6924/VMPF
|
7c5970d11ffb63c5231965d9ceb8f0df70292003
|
[
"MIT"
] | null | null | null |
filterflow/observation/__init__.py
|
lll6924/VMPF
|
7c5970d11ffb63c5231965d9ceb8f0df70292003
|
[
"MIT"
] | null | null | null |
from .base import ObservationModelBase
from .adapter import *
| 30.5
| 38
| 0.836066
| 7
| 61
| 7.285714
| 0.714286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114754
| 61
| 2
| 39
| 30.5
| 0.944444
| 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
| 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
| 5
|
d1b04a887f0407125ba949cb149126a17dafdc83
| 67
|
py
|
Python
|
gm-pepm-2018/script/test/sloc-example.py
|
nuprl/retic_performance
|
621211c2f40251ce5364c33e72e4067e34a32013
|
[
"MIT"
] | 3
|
2018-08-03T02:41:29.000Z
|
2021-03-19T03:18:47.000Z
|
gm-pepm-2018/script/test/sloc-example.py
|
nuprl/retic_performance
|
621211c2f40251ce5364c33e72e4067e34a32013
|
[
"MIT"
] | 3
|
2018-02-04T17:53:56.000Z
|
2018-11-10T17:06:57.000Z
|
gm-pepm-2018/script/test/sloc-example.py
|
nuprl/retic_performance
|
621211c2f40251ce5364c33e72e4067e34a32013
|
[
"MIT"
] | 1
|
2018-08-04T00:14:12.000Z
|
2018-08-04T00:14:12.000Z
|
def f(x):
return x * x
#def g(x):
# return
# Should be 2 SLOC
| 8.375
| 18
| 0.552239
| 14
| 67
| 2.642857
| 0.642857
| 0.378378
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021277
| 0.298507
| 67
| 7
| 19
| 9.571429
| 0.765957
| 0.507463
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 1
| 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
| 0
| 0
|
0
| 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.