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
2a8b148c32e02ed52154cfd52c0605d99687fd17
76
py
Python
atcoder/abc/a035.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
atcoder/abc/a035.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
atcoder/abc/a035.py
tomato-300yen/coding
db6f440a96d8c83f486005c650461a69f27e3926
[ "MIT" ]
null
null
null
W, H = map(int, input().split()) print("4:3" if 4 * H == 3 * W else "16:9")
25.333333
42
0.5
17
76
2.235294
0.764706
0
0
0
0
0
0
0
0
0
0
0.116667
0.210526
76
2
43
38
0.516667
0
0
0
0
0
0.092105
0
0
0
0
0
0
1
0
true
0
0
0
0
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
0
0
0
1
0
4
aa53b31e51246da4e5cbdd1eaa930f83edb36fc7
533
py
Python
Maior_e_Menor.py
PedroFelipe-G-Arruda/Grupo-python
a43e6575cf3b7c0de22aa3b19995a86ccab37ad2
[ "MIT" ]
null
null
null
Maior_e_Menor.py
PedroFelipe-G-Arruda/Grupo-python
a43e6575cf3b7c0de22aa3b19995a86ccab37ad2
[ "MIT" ]
null
null
null
Maior_e_Menor.py
PedroFelipe-G-Arruda/Grupo-python
a43e6575cf3b7c0de22aa3b19995a86ccab37ad2
[ "MIT" ]
null
null
null
a = float(input('digite um numero:')) b = float(input('digite um numero:')) c = float(input('digite um numero:')) if a > b: if a > c: ma = a if b > c: mi = c if c > b: mi = b if b > a: if b > c: ma = b if a > c: mi = c if c > a: mi = a if c > b: if c > a: ma = c if b > a: mi = a if a > b: mi = b print('O menor numero e : {} e o maior e {}'.format(mi, ma))
18.37931
60
0.348968
84
533
2.214286
0.202381
0.064516
0.258065
0.290323
0.462366
0
0
0
0
0
0
0
0.5197
533
29
60
18.37931
0.726563
0
0
0.72
0
0
0.162921
0
0
0
0
0
0
1
0
false
0
0
0
0
0.04
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
aa5cac558a4f7f7ce93e05bc22da8c8c1d651763
88
py
Python
Ara_Ara/apps.py
ksdfg/ARA-ARA
408c5d55f670279c6d92826fdf78d5f26f8b6bcc
[ "MIT" ]
null
null
null
Ara_Ara/apps.py
ksdfg/ARA-ARA
408c5d55f670279c6d92826fdf78d5f26f8b6bcc
[ "MIT" ]
null
null
null
Ara_Ara/apps.py
ksdfg/ARA-ARA
408c5d55f670279c6d92826fdf78d5f26f8b6bcc
[ "MIT" ]
null
null
null
from django.apps import AppConfig class AraAraConfig(AppConfig): name = "Ara_Ara"
14.666667
33
0.75
11
88
5.909091
0.818182
0
0
0
0
0
0
0
0
0
0
0
0.170455
88
5
34
17.6
0.890411
0
0
0
0
0
0.079545
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
aa7b7c8babb6becd9e4e564c3c915d139ea9f52e
50
py
Python
tests/regressiontests/auth_decorators/__init__.py
mdornseif/huDjango
ce6f256b2e3e9fec4af749aebcae81a973e8874b
[ "BSD-2-Clause" ]
null
null
null
tests/regressiontests/auth_decorators/__init__.py
mdornseif/huDjango
ce6f256b2e3e9fec4af749aebcae81a973e8874b
[ "BSD-2-Clause" ]
1
2017-02-16T16:07:03.000Z
2017-02-17T09:49:20.000Z
tests/regressiontests/auth_decorators/__init__.py
hudora/huDjango
c99ce38517d706973df8e97df48274ab9392f52e
[ "BSD-2-Clause" ]
null
null
null
"""Test hudjango.auth.decorator functionality."""
25
49
0.76
5
50
7.6
1
0
0
0
0
0
0
0
0
0
0
0
0.06
50
1
50
50
0.808511
0.86
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
aa95d6856b327f32c668b348733f9e3447d221f2
104
py
Python
node_modules/python-shell/test/python/echo_json.py
brenocg29/TP1RedesInteligentes
3b73b3567089f9eb2e475ec8402113bf8803bb59
[ "Apache-2.0" ]
22
2016-08-23T11:27:37.000Z
2022-03-01T04:15:20.000Z
node_modules/python-shell/test/python/echo_json.py
brenocg29/TP1RedesInteligentes
3b73b3567089f9eb2e475ec8402113bf8803bb59
[ "Apache-2.0" ]
68
2015-06-25T17:13:22.000Z
2017-05-08T16:01:47.000Z
node_modules/python-shell/test/python/echo_json.py
brenocg29/TP1RedesInteligentes
3b73b3567089f9eb2e475ec8402113bf8803bb59
[ "Apache-2.0" ]
10
2017-05-06T19:09:41.000Z
2021-10-16T17:55:02.000Z
import sys, json # simple JSON echo script for line in sys.stdin: print json.dumps(json.loads(line))
17.333333
36
0.740385
18
104
4.277778
0.722222
0
0
0
0
0
0
0
0
0
0
0
0.163462
104
5
37
20.8
0.885057
0.221154
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0.333333
null
null
0.333333
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
1
0
0
0
1
0
0
0
0
4
aac10d4f658b5c83786e200cf1103c6f1cea1eed
785
py
Python
donor/models.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
donor/models.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
donor/models.py
noRubidium/VampirePty
69d9d42c0c5eddc3b363270287e468064d8b3d6c
[ "MIT" ]
null
null
null
from __future__ import unicode_literals from django.db import models from hospital.models import Hospital # Create your models here. class Donor(models.Model): name = models.CharField(max_length = 200) username = models.CharField(max_length = 200) password = models.CharField(max_length = 200) gender = models.CharField(max_length = 1) blood_type = models.CharField(max_length=3) linking_agent = models.ForeignKey(Hospital, on_delete = models.CASCADE) DOB = models.DateField() address = models.CharField(max_length = 200) phone = models.CharField(max_length = 200) last_verified = models.DateField() latitude = models.DecimalField(decimal_places = 2, max_digits = 5) longitude = models.DecimalField(decimal_places = 2, max_digits = 5)
39.25
75
0.742675
100
785
5.63
0.47
0.186501
0.223801
0.298401
0.388988
0.149201
0.149201
0.149201
0
0
0
0.032061
0.165605
785
19
76
41.315789
0.827481
0.030573
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0.0625
0.1875
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
0
1
0
0
1
0
0
4
2a9f13a70d3783da3197770a209618a00e0a33a0
585
py
Python
src/deviceinterface.py
nlitz88/metrics
a53cb0aa9bfbeea0dc9788f5461ff10905bc0352
[ "MIT" ]
null
null
null
src/deviceinterface.py
nlitz88/metrics
a53cb0aa9bfbeea0dc9788f5461ff10905bc0352
[ "MIT" ]
null
null
null
src/deviceinterface.py
nlitz88/metrics
a53cb0aa9bfbeea0dc9788f5461ff10905bc0352
[ "MIT" ]
null
null
null
class DeviceInterface: # This operation is used to initialize the device instance. Accepts a dictionary that is read in from the device's yaml definition. # This device_config_yaml may contain any number of parameters/fields necessary to initialize/setup the instance for data collection. def initialize(self, device_config_dict): pass # This is a standard operation that will return a dictionary to be converted to the appropriate format (json, plaintext, etc) for # use by endpoints or other publishing methods. def get_device_data(self): pass
65
137
0.760684
85
585
5.164706
0.658824
0.05467
0
0
0
0
0
0
0
0
0
0
0.2
585
9
138
65
0.938034
0.74359
0
0.4
0
0
0
0
0
0
0
0
0
1
0.4
false
0.4
0
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
2abcd921b69ac065ccb1607e10b4019c98f27da0
226
py
Python
catalog/bindings/gmd/circle_by_center_point_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/circle_by_center_point_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
catalog/bindings/gmd/circle_by_center_point_type.py
NIVANorge/s-enda-playground
56ae0a8978f0ba8a5546330786c882c31e17757a
[ "Apache-2.0" ]
null
null
null
from dataclasses import dataclass from bindings.gmd.arc_by_center_point_type import ArcByCenterPointType __NAMESPACE__ = "http://www.opengis.net/gml" @dataclass class CircleByCenterPointType(ArcByCenterPointType): pass
22.6
70
0.836283
25
226
7.24
0.84
0
0
0
0
0
0
0
0
0
0
0
0.097345
226
9
71
25.111111
0.887255
0
0
0
0
0
0.115044
0
0
0
0
0
0
1
0
false
0.166667
0.333333
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
1
0
0
0
0
4
2ad5e8acfb1924c4fca0cbad2cf3c61e5ea92167
203
py
Python
tests/common/scripts/cleaning/test_strip.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
42
2020-03-25T16:47:30.000Z
2022-01-31T21:26:38.000Z
tests/common/scripts/cleaning/test_strip.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
367
2020-04-08T12:46:34.000Z
2022-02-16T01:15:32.000Z
tests/common/scripts/cleaning/test_strip.py
arkhn/fhir-river
a12179c34fad131d16dedc20c61297ed83d805e6
[ "Apache-2.0" ]
3
2020-05-14T08:24:46.000Z
2021-08-04T05:00:16.000Z
from common.scripts.cleaning import strip def test_clean_identity(): assert strip(None) == "" assert strip("NaN") == "" row_input = "Holà chicanos" assert strip(row_input) == row_input
22.555556
41
0.674877
26
203
5.076923
0.653846
0.25
0
0
0
0
0
0
0
0
0
0
0.197044
203
8
42
25.375
0.809816
0
0
0
0
0
0.078818
0
0
0
0
0
0.5
1
0.166667
false
0
0.166667
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
1
0
0
0
0
0
0
0
0
0
4
2ae152f052fcede641510f72585c3855762a8eb7
119
py
Python
workflow/scripts/data/__init__.py
percyfal/wg-genealogy-smk
f9ed6e5876ca20c6693625237e57b22acd3f4cee
[ "MIT" ]
1
2022-03-21T17:43:08.000Z
2022-03-21T17:43:08.000Z
workflow/scripts/data/__init__.py
percyfal/wg-genealogy-smk
f9ed6e5876ca20c6693625237e57b22acd3f4cee
[ "MIT" ]
null
null
null
workflow/scripts/data/__init__.py
percyfal/wg-genealogy-smk
f9ed6e5876ca20c6693625237e57b22acd3f4cee
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- __all__ = ("natural_earth",) from .natural_earth import natural_earth
17
40
0.689076
16
119
4.6875
0.75
0.48
0
0
0
0
0
0
0
0
0
0.019417
0.134454
119
6
41
19.833333
0.708738
0.361345
0
0
0
0
0.175676
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
4
630383ff02afa466d04f39beea1550433314bef9
234
py
Python
project_opensource/nanodet-2020_11_27/nanodet-main/nanodet/data/dataset/__init__.py
yunshangyue71/mycodes
54b876004c32d38d9c0363fd292d745fee8dff3c
[ "Apache-2.0" ]
null
null
null
project_opensource/nanodet-2020_11_27/nanodet-main/nanodet/data/dataset/__init__.py
yunshangyue71/mycodes
54b876004c32d38d9c0363fd292d745fee8dff3c
[ "Apache-2.0" ]
null
null
null
project_opensource/nanodet-2020_11_27/nanodet-main/nanodet/data/dataset/__init__.py
yunshangyue71/mycodes
54b876004c32d38d9c0363fd292d745fee8dff3c
[ "Apache-2.0" ]
null
null
null
import copy from .coco import CocoDataset def build_dataset(cfg, mode): dataset_cfg = copy.deepcopy(cfg) if dataset_cfg['name'] == 'coco': dataset_cfg.pop('name') return CocoDataset(mode=mode, **dataset_cfg)
23.4
52
0.679487
31
234
4.967742
0.483871
0.324675
0.181818
0
0
0
0
0
0
0
0
0
0.196581
234
9
53
26
0.819149
0
0
0
0
0
0.051282
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
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
0
0
1
0
0
4
6327d98e619405f59bb76b328007d961e5267f30
655
py
Python
wofry/beamline/optical_elements/ideal_elements/screen.py
PaNOSC-ViNYL/wofry
779b5a738ee7738e959a58aafe01e7e49b03894a
[ "MIT" ]
null
null
null
wofry/beamline/optical_elements/ideal_elements/screen.py
PaNOSC-ViNYL/wofry
779b5a738ee7738e959a58aafe01e7e49b03894a
[ "MIT" ]
null
null
null
wofry/beamline/optical_elements/ideal_elements/screen.py
PaNOSC-ViNYL/wofry
779b5a738ee7738e959a58aafe01e7e49b03894a
[ "MIT" ]
null
null
null
""" Represents an ideal lens. """ from syned.beamline.optical_elements.ideal_elements.screen import Screen from wofry.beamline.decorators import OpticalElementDecorator class WOScreen(Screen, OpticalElementDecorator): def __init__(self, name="Undefined"): Screen.__init__(self, name=name) def applyOpticalElement(self, wavefront, parameters=None, element_index=None): return wavefront class WOScreen1D(Screen, OpticalElementDecorator): def __init__(self, name="Undefined"): Screen.__init__(self, name=name) def applyOpticalElement(self, wavefront, parameters=None, element_index=None): return wavefront
32.75
82
0.760305
70
655
6.828571
0.414286
0.066946
0.100418
0.150628
0.648536
0.648536
0.648536
0.648536
0.648536
0.648536
0
0.001789
0.146565
655
19
83
34.473684
0.853309
0.038168
0
0.666667
0
0
0.028939
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0.166667
0.833333
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
2d49e0003cf21961e6f6dc0b7737191d0a1bdba9
772
py
Python
src/sima/riflex/fileformatcode.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/fileformatcode.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
src/sima/riflex/fileformatcode.py
SINTEF/simapy
650b8c2f15503dad98e2bfc0d0788509593822c7
[ "MIT" ]
null
null
null
# Generated with FileFormatCode # from enum import Enum from enum import auto class FileFormatCode(Enum): """""" BINARY_OUTPUT_ONLY = auto() ASCII_OUTPUT_ONLY = auto() NO_ADDITIONAL_OUTPUT = auto() ASCII_OUTPUT = auto() BINARY_OUTPUT = auto() def label(self): if self == FileFormatCode.BINARY_OUTPUT_ONLY: return "Binary format" if self == FileFormatCode.ASCII_OUTPUT_ONLY: return "ASCII format" if self == FileFormatCode.NO_ADDITIONAL_OUTPUT: return "Outmod (IFNDYN) format" if self == FileFormatCode.ASCII_OUTPUT: return "Outmod (IFNDYN) and ASCII format" if self == FileFormatCode.BINARY_OUTPUT: return "Outmod (IFNDYN) and Binary format"
32.166667
55
0.650259
85
772
5.717647
0.270588
0.061728
0.205761
0.213992
0.45679
0.152263
0
0
0
0
0
0
0.265544
772
24
56
32.166667
0.857143
0.037565
0
0
1
0
0.152589
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.736842
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
4
2d5b33059a390f5db8e8df5de2be104977259c36
10,442
py
Python
lib/mpmath/tests/test_hp.py
np0212/Capstone-Project
424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7
[ "Apache-2.0" ]
4
2018-07-04T17:20:12.000Z
2019-07-14T18:07:25.000Z
lib/mpmath/tests/test_hp.py
np0212/Capstone-Project
424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7
[ "Apache-2.0" ]
7
2017-05-01T14:15:32.000Z
2017-09-06T20:44:24.000Z
lib/mpmath/tests/test_hp.py
np0212/Capstone-Project
424c4fd59b4d2d1b4ddbea3b78e93d7fa8575ca7
[ "Apache-2.0" ]
1
2018-09-03T03:02:06.000Z
2018-09-03T03:02:06.000Z
""" Check that the output from irrational functions is accurate for high-precision input, from 5 to 200 digits. The reference values were verified with Mathematica. """ import time from mpmath import * precs = [5, 15, 28, 35, 57, 80, 100, 150, 200] # sqrt(3) + pi/2 a = \ "3.302847134363773912758768033145623809041389953497933538543279275605"\ "841220051904536395163599428307109666700184672047856353516867399774243594"\ "67433521615861420725323528325327484262075464241255915238845599752675" # e + 1/euler**2 b = \ "5.719681166601007617111261398629939965860873957353320734275716220045750"\ "31474116300529519620938123730851145473473708966080207482581266469342214"\ "824842256999042984813905047895479210702109260221361437411947323431" # sqrt(a) sqrt_a = \ "1.817373691447021556327498239690365674922395036495564333152483422755"\ "144321726165582817927383239308173567921345318453306994746434073691275094"\ "484777905906961689902608644112196725896908619756404253109722911487" # sqrt(a+b*i).real sqrt_abi_real = \ "2.225720098415113027729407777066107959851146508557282707197601407276"\ "89160998185797504198062911768240808839104987021515555650875977724230130"\ "3584116233925658621288393930286871862273400475179312570274423840384" # sqrt(a+b*i).imag sqrt_abi_imag = \ "1.2849057639084690902371581529110949983261182430040898147672052833653668"\ "0629534491275114877090834296831373498336559849050755848611854282001250"\ "1924311019152914021365263161630765255610885489295778894976075186" # log(a) log_a = \ "1.194784864491089550288313512105715261520511949410072046160598707069"\ "4336653155025770546309137440687056366757650909754708302115204338077595203"\ "83005773986664564927027147084436553262269459110211221152925732612" # log(a+b*i).real log_abi_real = \ "1.8877985921697018111624077550443297276844736840853590212962006811663"\ "04949387789489704203167470111267581371396245317618589339274243008242708"\ "014251531496104028712866224020066439049377679709216784954509456421" # log(a+b*i).imag log_abi_imag = \ "1.0471204952840802663567714297078763189256357109769672185219334169734948"\ "4265809854092437285294686651806426649541504240470168212723133326542181"\ "8300136462287639956713914482701017346851009323172531601894918640" # exp(a) exp_a = \ "27.18994224087168661137253262213293847994194869430518354305430976149"\ "382792035050358791398632888885200049857986258414049540376323785711941636"\ "100358982497583832083513086941635049329804685212200507288797531143" # exp(a+b*i).real exp_abi_real = \ "22.98606617170543596386921087657586890620262522816912505151109385026"\ "40160179326569526152851983847133513990281518417211964710397233157168852"\ "4963130831190142571659948419307628119985383887599493378056639916701" # exp(a+b*i).imag exp_abi_imag = \ "-14.523557450291489727214750571590272774669907424478129280902375851196283"\ "3377162379031724734050088565710975758824441845278120105728824497308303"\ "6065619788140201636218705414429933685889542661364184694108251449" # a**b pow_a_b = \ "928.7025342285568142947391505837660251004990092821305668257284426997"\ "361966028275685583421197860603126498884545336686124793155581311527995550"\ "580229264427202446131740932666832138634013168125809402143796691154" # (a**(a+b*i)).real pow_a_abi_real = \ "44.09156071394489511956058111704382592976814280267142206420038656267"\ "67707916510652790502399193109819563864568986234654864462095231138500505"\ "8197456514795059492120303477512711977915544927440682508821426093455" # (a**(a+b*i)).imag pow_a_abi_imag = \ "27.069371511573224750478105146737852141664955461266218367212527612279886"\ "9322304536553254659049205414427707675802193810711302947536332040474573"\ "8166261217563960235014674118610092944307893857862518964990092301" # ((a+b*i)**(a+b*i)).real pow_abi_abi_real = \ "-0.15171310677859590091001057734676423076527145052787388589334350524"\ "8084195882019497779202452975350579073716811284169068082670778986235179"\ "0813026562962084477640470612184016755250592698408112493759742219150452"\ # ((a+b*i)**(a+b*i)).imag pow_abi_abi_imag = \ "1.2697592504953448936553147870155987153192995316950583150964099070426"\ "4736837932577176947632535475040521749162383347758827307504526525647759"\ "97547638617201824468382194146854367480471892602963428122896045019902" # sin(a) sin_a = \ "-0.16055653857469062740274792907968048154164433772938156243509084009"\ "38437090841460493108570147191289893388608611542655654723437248152535114"\ "528368009465836614227575701220612124204622383149391870684288862269631" # sin(1000*a) sin_1000a = \ "-0.85897040577443833776358106803777589664322997794126153477060795801"\ "09151695416961724733492511852267067419573754315098042850381158563024337"\ "216458577140500488715469780315833217177634490142748614625281171216863" # sin(a+b*i) sin_abi_real = \ "-24.4696999681556977743346798696005278716053366404081910969773939630"\ "7149215135459794473448465734589287491880563183624997435193637389884206"\ "02151395451271809790360963144464736839412254746645151672423256977064" sin_abi_imag = \ "-150.42505378241784671801405965872972765595073690984080160750785565810981"\ "8314482499135443827055399655645954830931316357243750839088113122816583"\ "7169201254329464271121058839499197583056427233866320456505060735" # cos cos_a = \ "-0.98702664499035378399332439243967038895709261414476495730788864004"\ "05406821549361039745258003422386169330787395654908532996287293003581554"\ "257037193284199198069707141161341820684198547572456183525659969145501" cos_1000a = \ "-0.51202523570982001856195696460663971099692261342827540426136215533"\ "52686662667660613179619804463250686852463876088694806607652218586060613"\ "951310588158830695735537073667299449753951774916401887657320950496820" # tan tan_a = \ "0.162666873675188117341401059858835168007137819495998960250142156848"\ "639654718809412181543343168174807985559916643549174530459883826451064966"\ "7996119428949951351938178809444268785629011625179962457123195557310" tan_abi_real = \ "6.822696615947538488826586186310162599974827139564433912601918442911"\ "1026830824380070400102213741875804368044342309515353631134074491271890"\ "467615882710035471686578162073677173148647065131872116479947620E-6" tan_abi_imag = \ "0.9999795833048243692245661011298447587046967777739649018690797625964167"\ "1446419978852235960862841608081413169601038230073129482874832053357571"\ "62702259309150715669026865777947502665936317953101462202542168429" def test_hp(): for dps in precs: mp.dps = dps + 8 aa = mpf(a) bb = mpf(b) a1000 = 1000*mpf(a) abi = mpc(aa, bb) mp.dps = dps assert (sqrt(3) + pi/2).ae(aa) assert (e + 1/euler**2).ae(bb) assert sqrt(aa).ae(mpf(sqrt_a)) assert sqrt(abi).ae(mpc(sqrt_abi_real, sqrt_abi_imag)) assert log(aa).ae(mpf(log_a)) assert log(abi).ae(mpc(log_abi_real, log_abi_imag)) assert exp(aa).ae(mpf(exp_a)) assert exp(abi).ae(mpc(exp_abi_real, exp_abi_imag)) assert (aa**bb).ae(mpf(pow_a_b)) assert (aa**abi).ae(mpc(pow_a_abi_real, pow_a_abi_imag)) assert (abi**abi).ae(mpc(pow_abi_abi_real, pow_abi_abi_imag)) assert sin(a).ae(mpf(sin_a)) assert sin(a1000).ae(mpf(sin_1000a)) assert sin(abi).ae(mpc(sin_abi_real, sin_abi_imag)) assert cos(a).ae(mpf(cos_a)) assert cos(a1000).ae(mpf(cos_1000a)) assert tan(a).ae(mpf(tan_a)) assert tan(abi).ae(mpc(tan_abi_real, tan_abi_imag)) # check that complex cancellation is avoided so that both # real and imaginary parts have high relative accuracy. # abs_eps should be 0, but has to be set to 1e-205 to pass the # 200-digit case, probably due to slight inaccuracy in the # precomputed input assert (tan(abi).real).ae(mpf(tan_abi_real), abs_eps=1e-205) assert (tan(abi).imag).ae(mpf(tan_abi_imag), abs_eps=1e-205) mp.dps = 460 assert str(log(3))[-20:] == '02166121184001409826' mp.dps = 15 # Since str(a) can differ in the last digit from rounded a, and I want # to compare the last digits of big numbers with the results in Mathematica, # I made this hack to get the last 20 digits of rounded a def last_digits(a): r = repr(a) s = str(a) #dps = mp.dps #mp.dps += 3 m = 10 r = r.replace(s[:-m],'') r = r.replace("mpf('",'').replace("')",'') num0 = 0 for c in r: if c == '0': num0 += 1 else: break b = float(int(r))/10**(len(r) - m) if b >= 10**m - 0.5: raise NotImplementedError n = int(round(b)) sn = str(n) s = s[:-m] + '0'*num0 + sn return s[-20:] # values checked with Mathematica def test_log_hp(): mp.dps = 2000 a = mpf(10)**15000/3 r = log(a) res = last_digits(r) # Mathematica N[Log[10^15000/3], 2000] # ...7443804441768333470331 assert res == '44380444176833347033' # see issue 145 r = log(mpf(3)/2) # Mathematica N[Log[3/2], 2000] # ...69653749808140753263288 res = last_digits(r) assert res == '53749808140753263288' mp.dps = 10000 r = log(2) res = last_digits(r) # Mathematica N[Log[2], 10000] # ...695615913401856601359655561 assert res == '91340185660135965556' r = log(mpf(10)**10/3) res = last_digits(r) # Mathematica N[Log[10^10/3], 10000] # ...587087654020631943060007154 assert res == '54020631943060007154', res r = log(mpf(10)**100/3) res = last_digits(r) # Mathematica N[Log[10^100/3], 10000] # ,,,59246336539088351652334666 assert res == '36539088351652334666', res mp.dps += 10 a = 1 - mpf(1)/10**10 mp.dps -= 10 r = log(a) res = last_digits(r) # ...3310334360482956137216724048322957404 # 372167240483229574038733026370 # Mathematica N[Log[1 - 10^-10]*10^10, 10000] # ...60482956137216724048322957404 assert res == '37216724048322957404', res mp.dps = 10000 mp.dps += 100 a = 1 + mpf(1)/10**100 mp.dps -= 100 r = log(a) res = last_digits(+r) # Mathematica N[Log[1 + 10^-100]*10^10, 10030] # ...3994733877377412241546890854692521568292338268273 10^-91 assert res == '39947338773774122415', res mp.dps = 15 def test_exp_hp(): mp.dps = 4000 r = exp(mpf(1)/10) # IntegerPart[N[Exp[1/10] * 10^4000, 4000]] # ...92167105162069688129 assert int(r * 10**mp.dps) % 10**20 == 92167105162069688129
35.638225
76
0.77648
898
10,442
8.91314
0.276169
0.003998
0.004873
0.012244
0.033108
0.024238
0.022739
0.016742
0.016492
0.008496
0
0.644712
0.126125
10,442
292
77
35.760274
0.232438
0.151887
0
0.068421
0
0
0.60657
0.587359
0
0
0
0
0.152632
1
0.021053
false
0
0.010526
0
0.036842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
1
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
2d5e1da162df4150bdc1aed06c46f5054aabf1f7
52
py
Python
test3a.py
naveen912014/pyneta
637bf25d39a8e773845dc57eac276382642d92d0
[ "Apache-2.0" ]
null
null
null
test3a.py
naveen912014/pyneta
637bf25d39a8e773845dc57eac276382642d92d0
[ "Apache-2.0" ]
null
null
null
test3a.py
naveen912014/pyneta
637bf25d39a8e773845dc57eac276382642d92d0
[ "Apache-2.0" ]
null
null
null
print print('This is Naveen') :q
2.26087
23
0.442308
6
52
3.833333
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.461538
52
22
24
2.363636
0.821429
0
0
0
0
0
0.285714
0
0
0
0
0
0
0
null
null
0
0
null
null
0.666667
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
1
0
4
2d9e596053cbf26c358f0b0d5fec8cd4ccabf164
114
py
Python
app/models.py
emmapraise/tweekners
c4c1af7bbf606d1e1b031482ebe9bed8fb62292a
[ "MIT" ]
1
2021-04-30T15:55:00.000Z
2021-04-30T15:55:00.000Z
app/models.py
emmapraise/tweekners
c4c1af7bbf606d1e1b031482ebe9bed8fb62292a
[ "MIT" ]
null
null
null
app/models.py
emmapraise/tweekners
c4c1af7bbf606d1e1b031482ebe9bed8fb62292a
[ "MIT" ]
null
null
null
from . import db class User(db.Model): """ Data Model for User Account""" __tablename__ = 'Users'
22.8
38
0.605263
14
114
4.642857
0.785714
0
0
0
0
0
0
0
0
0
0
0
0.27193
114
5
39
22.8
0.783133
0.236842
0
0
0
0
0.061728
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
2da05b7bb91fd333642597816cb7392931c551a1
276
py
Python
tests/_support/docstrings.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
null
null
null
tests/_support/docstrings.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
null
null
null
tests/_support/docstrings.py
techtonik/invoke
f776d27b3cac96f98dd5ad9d1bb3b41a3e54346a
[ "BSD-2-Clause" ]
null
null
null
from invoke import task @task def no_docstring(): pass @task def one_line(): """foo """ @task def two_lines(): """foo bar """ @task def leading_whitespace(): """ foo """ @task(aliases=('a', 'b')) def with_aliases(): """foo """
9.857143
25
0.514493
33
276
4.151515
0.606061
0.20438
0
0
0
0
0
0
0
0
0
0
0.289855
276
27
26
10.222222
0.69898
0.086957
0
0.333333
0
0
0.009662
0
0
0
0
0
0
1
0.416667
true
0.083333
0.083333
0
0.5
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
1
0
0
0
0
0
4
2da6673de1f45443b481635cfc357d6aa84b8b6e
10,180
py
Python
jax/_src/numpy/ndarray.py
tianjuchen/jax
4755dc3fee8a33030c0571ecf4217c5656e3170d
[ "Apache-2.0" ]
null
null
null
jax/_src/numpy/ndarray.py
tianjuchen/jax
4755dc3fee8a33030c0571ecf4217c5656e3170d
[ "Apache-2.0" ]
null
null
null
jax/_src/numpy/ndarray.py
tianjuchen/jax
4755dc3fee8a33030c0571ecf4217c5656e3170d
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # 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 # # https://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. # ndarray is defined as an virtual abstract base class. import abc from typing import Any, Optional, Tuple, Union from jax import core from jax.interpreters import pxla from jax._src import device_array import numpy as np class ArrayMeta(abc.ABCMeta): """Metaclass for overriding ndarray isinstance checks.""" def __instancecheck__(self, instance): # Allow tracer instances with avals that are instances of UnshapedArray. # We could instead just declare Tracer an instance of the ndarray type, but # there can be traced values that are not arrays. The main downside here is # that isinstance(x, ndarray) might return true but # issubclass(type(x), ndarray) might return false for an array tracer. try: return (hasattr(instance, "aval") and isinstance(instance.aval, core.UnshapedArray)) except AttributeError: super().__instancecheck__(instance) class ndarray(metaclass=ArrayMeta): dtype: np.dtype ndim: int shape: Tuple[int, ...] size: int def __init__(self, shape, dtype=None, buffer=None, offset=0, strides=None, order=None): raise TypeError("jax.numpy.ndarray() should not be instantiated explicitly." " Use jax.numpy.array, or jax.numpy.zeros instead.") @abc.abstractmethod def __getitem__(self, key, indices_are_sorted=False, unique_indices=False) -> Any: ... @abc.abstractmethod def __setitem__(self, key, value) -> Any: ... @abc.abstractmethod def __len__(self) -> Any: ... @abc.abstractmethod def __iter__(self) -> Any: ... @abc.abstractmethod def __reversed__(self) -> Any: ... # Comparisons @abc.abstractmethod def __lt__(self, other) -> Any: ... @abc.abstractmethod def __le__(self, other) -> Any: ... @abc.abstractmethod def __eq__(self, other) -> Any: ... @abc.abstractmethod def __ne__(self, other) -> Any: ... @abc.abstractmethod def __gt__(self, other) -> Any: ... @abc.abstractmethod def __ge__(self, other) -> Any: ... # Unary arithmetic @abc.abstractmethod def __neg__(self) -> Any: ... @abc.abstractmethod def __pos__(self) -> Any: ... @abc.abstractmethod def __abs__(self) -> Any: ... @abc.abstractmethod def __invert__(self) -> Any: ... # Binary arithmetic @abc.abstractmethod def __add__(self, other) -> Any: ... @abc.abstractmethod def __sub__(self, other) -> Any: ... @abc.abstractmethod def __mul__(self, other) -> Any: ... @abc.abstractmethod def __matmul__(self, other) -> Any: ... @abc.abstractmethod def __truediv__(self, other) -> Any: ... @abc.abstractmethod def __floordiv__(self, other) -> Any: ... @abc.abstractmethod def __mod__(self, other) -> Any: ... @abc.abstractmethod def __divmod__(self, other) -> Any: ... @abc.abstractmethod def __pow__(self, other) -> Any: ... @abc.abstractmethod def __lshift__(self, other) -> Any: ... @abc.abstractmethod def __rshift__(self, other) -> Any: ... @abc.abstractmethod def __and__(self, other) -> Any: ... @abc.abstractmethod def __xor__(self, other) -> Any: ... @abc.abstractmethod def __or__(self, other) -> Any: ... @abc.abstractmethod def __radd__(self, other) -> Any: ... @abc.abstractmethod def __rsub__(self, other) -> Any: ... @abc.abstractmethod def __rmul__(self, other) -> Any: ... @abc.abstractmethod def __rmatmul__(self, other) -> Any: ... @abc.abstractmethod def __rtruediv__(self, other) -> Any: ... @abc.abstractmethod def __rfloordiv__(self, other) -> Any: ... @abc.abstractmethod def __rmod__(self, other) -> Any: ... @abc.abstractmethod def __rdivmod__(self, other) -> Any: ... @abc.abstractmethod def __rpow__(self, other) -> Any: ... @abc.abstractmethod def __rlshift__(self, other) -> Any: ... @abc.abstractmethod def __rrshift__(self, other) -> Any: ... @abc.abstractmethod def __rand__(self, other) -> Any: ... @abc.abstractmethod def __rxor__(self, other) -> Any: ... @abc.abstractmethod def __ror__(self, other) -> Any: ... @abc.abstractmethod def __bool__(self) -> Any: ... @abc.abstractmethod def __complex__(self) -> Any: ... @abc.abstractmethod def __int__(self) -> Any: ... @abc.abstractmethod def __float__(self) -> Any: ... @abc.abstractmethod def __round__(self, ndigits=None) -> Any: ... @abc.abstractmethod def __index__(self) -> Any: ... # np.ndarray methods: @abc.abstractmethod def all(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, out=None, keepdims=None) -> Any: ... @abc.abstractmethod def any(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, out=None, keepdims=None) -> Any: ... @abc.abstractmethod def argmax(self, axis: Optional[int] = None, out=None, keepdims=None) -> Any: ... @abc.abstractmethod def argmin(self, axis: Optional[int] = None, out=None, keepdims=None) -> Any: ... @abc.abstractmethod def argpartition(self, kth, axis=-1, kind='introselect', order=None) -> Any: ... @abc.abstractmethod def argsort(self, axis: Optional[int] = -1, kind='quicksort', order=None) -> Any: ... @abc.abstractmethod def astype(self, dtype) -> Any: ... @abc.abstractmethod def choose(self, choices, out=None, mode='raise') -> Any: ... @abc.abstractmethod def clip(self, a_min=None, a_max=None, out=None) -> Any: ... @abc.abstractmethod def compress(self, condition, axis: Optional[int] = None, out=None) -> Any: ... @abc.abstractmethod def conj(self) -> Any: ... @abc.abstractmethod def conjugate(self) -> Any: ... @abc.abstractmethod def copy(self) -> Any: ... @abc.abstractmethod def cumprod(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, dtype=None, out=None) -> Any: ... @abc.abstractmethod def cumsum(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, dtype=None, out=None) -> Any: ... @abc.abstractmethod def diagonal(self, offset=0, axis1: int = 0, axis2: int = 1) -> Any: ... @abc.abstractmethod def dot(self, b, *, precision=None) -> Any: ... @abc.abstractmethod def flatten(self) -> Any: ... @property @abc.abstractmethod def imag(self) -> Any: ... @abc.abstractmethod def item(self, *args) -> Any: ... @abc.abstractmethod def max(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, out=None, keepdims=None, initial=None, where=None) -> Any: ... @abc.abstractmethod def mean(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, dtype=None, out=None, keepdims=False, *, where=None,) -> Any: ... @abc.abstractmethod def min(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, out=None, keepdims=None, initial=None, where=None) -> Any: ... @property @abc.abstractmethod def nbytes(self) -> Any: ... @abc.abstractmethod def nonzero(self, *, size=None, fill_value=None) -> Any: ... @abc.abstractmethod def prod(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, dtype=None, out=None, keepdims=None, initial=None, where=None) -> Any: ... @abc.abstractmethod def ptp(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, out=None, keepdims=False,) -> Any: ... @abc.abstractmethod def ravel(self, order='C') -> Any: ... @property @abc.abstractmethod def real(self) -> Any: ... @abc.abstractmethod def repeat(self, repeats, axis: Optional[int] = None, *, total_repeat_length=None) -> Any: ... @abc.abstractmethod def reshape(self, *args, order='C') -> Any: ... @abc.abstractmethod def round(self, decimals=0, out=None) -> Any: ... @abc.abstractmethod def searchsorted(self, v, side='left', sorter=None) -> Any: ... @abc.abstractmethod def sort(self, axis: Optional[int] = -1, kind='quicksort', order=None) -> Any: ... @abc.abstractmethod def squeeze(self, axis: Optional[Union[int, Tuple[int, ...]]] = None) -> Any: ... @abc.abstractmethod def std(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, dtype=None, out=None, ddof=0, keepdims=False, *, where=None) -> Any: ... @abc.abstractmethod def sum(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, dtype=None, out=None, keepdims=None, initial=None, where=None) -> Any: ... @abc.abstractmethod def swapaxes(self, axis1: int, axis2: int) -> Any: ... @abc.abstractmethod def take(self, indices, axis: Optional[int] = None, out=None, mode=None) -> Any: ... @abc.abstractmethod def tobytes(self, order='C') -> Any: ... @abc.abstractmethod def tolist(self) -> Any: ... @abc.abstractmethod def trace(self, offset=0, axis1: int = 0, axis2: int = 1, dtype=None, out=None) -> Any: ... @abc.abstractmethod def transpose(self, *args) -> Any: ... @abc.abstractmethod def var(self, axis: Optional[Union[int, Tuple[int, ...]]] = None, dtype=None, out=None, ddof=0, keepdims=False, *, where=None) -> Any: ... @abc.abstractmethod def view(self, dtype=None, type=None) -> Any: ... # Even though we don't always support the NumPy array protocol, e.g., for # tracer types, for type checking purposes we must declare support so we # implement the NumPy ArrayLike protocol. def __array__(self) -> Any: ... # JAX extensions @property @abc.abstractmethod def at(self) -> Any: ... @property @abc.abstractmethod def aval(self) -> Any: ... @property @abc.abstractmethod def weak_type(self) -> bool: ... ndarray.register(device_array.DeviceArray) for t in device_array.device_array_types: ndarray.register(t) ndarray.register(pxla._SDA_BASE_CLASS)
34.391892
87
0.654224
1,269
10,180
5.066982
0.234043
0.256454
0.301711
0.307621
0.566563
0.456299
0.234681
0.224106
0.206687
0.197667
0
0.003255
0.185265
10,180
295
88
34.508475
0.772004
0.123576
0
0.465021
0
0
0.017098
0
0
0
0
0
0
1
0.411523
false
0
0.024691
0
0.465021
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
4
2da83aad3727d404e8eb161796f19ec8b932423c
471
py
Python
tests/conftest.py
bcsummers/falcon-provider-redis
fb2644530196448aff6c1924d8bd533f0ce4ee8c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
bcsummers/falcon-provider-redis
fb2644530196448aff6c1924d8bd533f0ce4ee8c
[ "Apache-2.0" ]
null
null
null
tests/conftest.py
bcsummers/falcon-provider-redis
fb2644530196448aff6c1924d8bd533f0ce4ee8c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Testing conf module.""" # third-party import pytest from falcon import testing from .app import app_hook, app_middleware @pytest.fixture def client_hook() -> testing.TestClient: """Create testing client fixture for hook app""" return testing.TestClient(app_hook) @pytest.fixture def client_middleware() -> testing.TestClient: """Create testing client fixture for middleware app""" return testing.TestClient(app_middleware)
23.55
58
0.73673
59
471
5.779661
0.372881
0.199413
0.093842
0.129032
0.439883
0.269795
0.269795
0
0
0
0
0.002494
0.14862
471
19
59
24.789474
0.84788
0.312102
0
0.222222
0
0
0
0
0
0
0
0
0
1
0.222222
true
0
0.333333
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
1
0
1
0
0
4
2df53ea42aed1c3338e8b5cf86c170ffdfe06678
131
py
Python
magicdice/__init__.py
emre/magicdice
326512696b766248cfb8998aec5b0bd8bff393ba
[ "MIT" ]
5
2019-02-26T21:59:21.000Z
2019-05-28T06:32:06.000Z
magicdice/__init__.py
emre/magicdice
326512696b766248cfb8998aec5b0bd8bff393ba
[ "MIT" ]
null
null
null
magicdice/__init__.py
emre/magicdice
326512696b766248cfb8998aec5b0bd8bff393ba
[ "MIT" ]
null
null
null
class MagicDice: def __init__(self, account, active_key): self.account = account self.active_key = active_key
21.833333
44
0.671756
16
131
5.0625
0.5
0.333333
0
0
0
0
0
0
0
0
0
0
0.251908
131
5
45
26.2
0.826531
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0
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
1
0
0
0
0
0
0
0
4
2df6288c891a7e36cd3f5221f22fe8e36ca68a70
6,056
py
Python
regress/PORT_ME_TESTS/tests-glen.py
fp7-ofelia/VeRTIGO
11f39f819196c8352611852435dea17bc6a2292f
[ "BSD-3-Clause" ]
2
2016-10-12T08:20:00.000Z
2017-05-09T13:13:18.000Z
regress/PORT_ME_TESTS/tests-glen.py
fp7-ofelia/VeRTIGO
11f39f819196c8352611852435dea17bc6a2292f
[ "BSD-3-Clause" ]
null
null
null
regress/PORT_ME_TESTS/tests-glen.py
fp7-ofelia/VeRTIGO
11f39f819196c8352611852435dea17bc6a2292f
[ "BSD-3-Clause" ]
1
2020-10-01T07:57:34.000Z
2020-10-01T07:57:34.000Z
#!/usr/bin/python from fvregress import * import string # really? you have to do this? if len(sys.argv) > 1 : wantPause = True timeout=9999999 valgrindArgs= [] else: wantPause = False timeout=5 valgrindArgs= None # start up a flowvisor with 1 switch (default) and two guests #h= HyperTest(guests=[('localhost',54321)], # hyperargs=["-v0", "-a", "flowvisor-conf.d-glen", "ptcp:%d"% HyperTest.OFPORT],valgrind=valgrindArgs) h = FvRegress.parseConfig(configDir='flowvisor-conf.d-glen', valgrind=valgrindArgs) if wantPause: doPause("start tests") #################################### Start Tests try: feature_request = FvRegress.OFVERSION + '05 0008 2d47 c5eb' feature_request_after = FvRegress.OFVERSION + '05 0008 0001 0000' h.runTest(name="feature_request",timeout=timeout, events= [ TestEvent( "send","guest","openpipes", feature_request), TestEvent( "recv","switch","switch1", feature_request_after), ]) ############################################################## #flow_mod_del_all = FvRegress.OFVERSION + '''0e0048efbefeca000fffff00000000000000000000000000000000000000000000000000000000000000000003000000000000ffffffffffff000000000000''' flow_mod_del_all = FvRegress.OFVERSION + '''0e0048084a06b6ffffffff68e1b2080100000005f04e4f3cc1f9237cb79b6494c75a277565383900ecb2b70000000000000000000000000003000000000000ffff000000000000''' flow_mod_del_all_1 = FvRegress.OFVERSION + '''0e004802010000003820f768e100000000000000ff000000000000000000000000000000000000000000000000000000000000000000000003000000000000ffff000000000000''' flow_mod_del_all_2 = FvRegress.OFVERSION + '''0e004802010000003820f768e100000000000000ff000000010000000000000000000000000000000000000000000000000000000000000003000000000000ffff000000000000''' flow_mod_del_all_3 = FvRegress.OFVERSION + '''0e004802010000003820f768e100000000000000ff000000020000000000000000000000000000000000000000000000000000000000000003000000000000ffff000000000000''' flow_mod_del_all_4 = FvRegress.OFVERSION + '''0e004802010000003820f768e100000000000000ff000000030000000000000000000000000000000000000000000000000000000000000003000000000000ffff000000000000''' flow_mod_del_all_5 = FvRegress.OFVERSION + '''0e004802010000003820f768e100000000000000ff000000040000000000000000000000000000000000000000000000000000000000000003000000000000ffff000000000000''' flow_mod_del_all_6 = FvRegress.OFVERSION + '''0e004802010000003820f768e100000000000000ff000000050000000000000000000000000000000000000000000000000000000000000003000000000000ffff000000000000''' flow_mod_del_all_7 = FvRegress.OFVERSION + '''0e004802010000003820f768e100000000000000000c0000110000000000000000000000000000000000000000000000000000000000000003000000000000ffff000000000000''' flow_mod_del_all_8 = FvRegress.OFVERSION + '''0e004802010000003820f768e100000000000000188b2700010000000000000000000000000000000000000000000000000000000000000003000000000000ffff000000000000''' h.runTest(name="flow mod del all ", timeout=timeout, events= [ TestEvent( "send","guest","openpipes", flow_mod_del_all), TestEvent( "recv","switch","switch1", flow_mod_del_all_1), TestEvent( "recv","switch","switch1", flow_mod_del_all_2), TestEvent( "recv","switch","switch1", flow_mod_del_all_3), TestEvent( "recv","switch","switch1", flow_mod_del_all_4), TestEvent( "recv","switch","switch1", flow_mod_del_all_5), TestEvent( "recv","switch","switch1", flow_mod_del_all_6), TestEvent( "recv","switch","switch1", flow_mod_del_all_7), TestEvent( "recv","switch","switch1", flow_mod_del_all_8), ]) ############################################################## flow_mod = FvRegress.OFVERSION + '''0e0048000000000ffffffe00060000000000000000000000000000000000000000000000000000000000000000000000008000ffffffffffff06e8000000000000000800010000''' flow_mod_exp1 = FvRegress.OFVERSION + '''0e004803010000003820f6000600000000000000ff000000000000000000000000000000000000000000000000000000008000ffffffffffff06e8000000000000000800010000''' flow_mod_exp2 = FvRegress.OFVERSION + '''0e004803010000003820f6000600000000000000ff000000010000000000000000000000000000000000000000000000008000ffffffffffff06e8000000000000000800010000''' flow_mod_exp3 = FvRegress.OFVERSION + '''0e004803010000003820f6000600000000000000ff000000020000000000000000000000000000000000000000000000008000ffffffffffff06e8000000000000000800010000''' flow_mod_exp4 = FvRegress.OFVERSION + '''0e004803010000003820f6000600000000000000ff000000030000000000000000000000000000000000000000000000008000ffffffffffff06e8000000000000000800010000''' flow_mod_exp5 = FvRegress.OFVERSION + '''0e004803010000003820f6000600000000000000ff000000040000000000000000000000000000000000000000000000008000ffffffffffff06e8000000000000000800010000''' flow_mod_exp6 = FvRegress.OFVERSION + '''0e004803010000003820f6000600000000000000ff000000050000000000000000000000000000000000000000000000008000ffffffffffff06e8000000000000000800010000''' flow_mod_exp7 = FvRegress.OFVERSION + '''0e004803010000003820f6000600000000000000000c0000110000000000000000000000000000000000000000000000008000ffffffffffff06e8000000000000000800010000''' flow_mod_exp8 = FvRegress.OFVERSION + '''0e004803010000003820f6000600000000000000188b2700010000000000000000000000000000000000000000000000008000ffffffffffff06e8000000000000000800010000''' h.runTest(name="glen test 1", timeout=timeout, events= [ TestEvent( "send","guest","openpipes", flow_mod), TestEvent( "recv","switch","switch1", flow_mod_exp1), TestEvent( "recv","switch","switch1", flow_mod_exp2), TestEvent( "recv","switch","switch1", flow_mod_exp3), TestEvent( "recv","switch","switch1", flow_mod_exp4), TestEvent( "recv","switch","switch1", flow_mod_exp5), TestEvent( "recv","switch","switch1", flow_mod_exp6), TestEvent( "recv","switch","switch1", flow_mod_exp7), TestEvent( "recv","switch","switch1", flow_mod_exp8), ]) ######################################### # more tests for this setup HERE #################################### End Tests finally: if wantPause: doPause("start cleanup") h.cleanup()
67.288889
192
0.803831
424
6,056
11.212264
0.278302
0.055953
0.04207
0.054691
0.192049
0.166807
0.098233
0.088347
0.022718
0
0
0.440064
0.06605
6,056
89
193
68.044944
0.40046
0.078435
0
0.078125
0
0
0.566154
0.482946
0
0
0
0
0
1
0
false
0
0.03125
0
0.03125
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
93208a4a4fa8500fdf154d105073add88c48b822
151
py
Python
napari_bb_annotations/__init__.py
czbiohub/napari-bb-annotation
c316931de363e41c702e69316933b486d5f38cb2
[ "BSD-3-Clause" ]
3
2021-03-12T18:13:40.000Z
2021-04-27T00:22:03.000Z
napari_bb_annotations/__init__.py
czbiohub/napari-bb-annotation
c316931de363e41c702e69316933b486d5f38cb2
[ "BSD-3-Clause" ]
13
2021-04-05T20:32:08.000Z
2021-06-23T05:35:37.000Z
napari_bb_annotations/__init__.py
czbiohub/napari-bb-annotations
c316931de363e41c702e69316933b486d5f38cb2
[ "BSD-3-Clause" ]
null
null
null
try: from ._version import version as __version__ except ImportError: __version__ = "unknown" from . import _key_bindings del _key_bindings
15.1
48
0.761589
18
151
5.666667
0.611111
0.215686
0
0
0
0
0
0
0
0
0
0
0.192053
151
9
49
16.777778
0.836066
0
0
0
0
0
0.046358
0
0
0
0
0
0
1
0
false
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
0
0
1
0
0
0
0
4
93220f73e54d4401d09974fa1a394a20787d5fd3
137
py
Python
src/news_lk/upload_data.py
nuuuwan/news_lk
a2e60fd2dfb49f7c5e8d432cdd5fad0511575197
[ "MIT" ]
null
null
null
src/news_lk/upload_data.py
nuuuwan/news_lk
a2e60fd2dfb49f7c5e8d432cdd5fad0511575197
[ "MIT" ]
null
null
null
src/news_lk/upload_data.py
nuuuwan/news_lk
a2e60fd2dfb49f7c5e8d432cdd5fad0511575197
[ "MIT" ]
null
null
null
"""Uploaded data to nuuuwan/news_lk:data branch.""" from news_lk import scrape if __name__ == '__main__': scrape.scrape_and_dump()
19.571429
51
0.729927
20
137
4.4
0.75
0.136364
0
0
0
0
0
0
0
0
0
0
0.145985
137
6
52
22.833333
0.752137
0.328467
0
0
0
0
0.093023
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
0
0
0
4
fa8070ca6c33d7c997430f09e7d9b6f93e1c5af7
5,553
py
Python
ggtools/gg/__init__.py
richannan/GGTOOLS
7909da988d90de50c82532d97121a3fbcfc0263a
[ "MIT" ]
22
2019-12-16T01:30:29.000Z
2022-03-01T08:57:07.000Z
ggtools/gg/__init__.py
richannan/GGTOOLS
7909da988d90de50c82532d97121a3fbcfc0263a
[ "MIT" ]
3
2019-12-23T14:09:30.000Z
2022-03-29T01:52:53.000Z
ggtools/gg/__init__.py
richannan/GGTOOLS
7909da988d90de50c82532d97121a3fbcfc0263a
[ "MIT" ]
13
2019-12-19T07:01:19.000Z
2022-03-14T11:26:36.000Z
''' ggtools gg subpackage This subpackage defines the following functions: # ====================== fitting function ==================== # func - Define a linear function f(x) = a0 + a1/T*x to be fitted, where a0 and a1 are parameters for inter # ====================== estinate lovebums =================== # lovebums - Estimate Load Love Numbers(LLNs) # ===================== plotting functions =================== # plot_at_northpole - Plot grid data at the northpole. # ===================== mascon functions ===================== # mascon_download - Download GRACE mascon data from https://neptune.gsfc.nasa.gov/uploads/grace/mascons_2.4/ read_mascon - Read the GRACE mascon files. # ========== Compare DDK filter and Gaussian filter ========== # ddk_gausian - Given a specific type of DDK filter and the maximum SHC degree number, evaluate the 'equivalent' Gaussian filter radius. # ================= Tikhonov Regularization ================== # solve_lambda_x - Minimize the Lagrangian L(x,lambda) = || A*x - y||**2 + lambda*||x||**2 based on the idea of Tikhonov Regularization. Estimate the parameters x and Lagrange multiplier roughly. L_curve - Minimize the Lagrangian L(x,lambda) = || A*x - y||**2 + lambda*||x||**2 based on the idea of Tikhonov Regularization. Estimate the parameters x and Lagrange multiplier accurately. # ===================== Filter functions ===================== # filter_ddk - DDK filter used to attenuate noise described as striping patterns in GRACE GSM data. filter_gaussian - Gaussian filter used to attenuate noise described as striping patterns in GRACE GSM data. filter_gaussian_inverse - Inversion of Gaussian filter. It is used to recover the signal in the process of leakage correction in GRACE GSM data. # ================= Signal leakage correction ================ # scale_factor - Estimate the scale factor(gain factor) used in signal leakage correction. forward_model_initial - Expand the grid data to spherical harmonic coefficients and perform Gaussian filtering, then transfer it back to the grid data. forward_model - Iterative Forward Modeling used to perform signal leakage correction in GRACE data processing. space_domain - Space domain method used to perform signal leakage correction in GRACE data processing. spectral_domain - Spectrum domain method used to perform signal leakage correction in GRACE data processing. # ==================== Least square method =================== # lsqm - Linearly fit f(x) = a0 + a1/T*x using the Least Square algorithm. wlsqm - Linearly fit f(x) = a0 + a1/T*x using the Weighted Least Square algorithm. ilsqm - Linearly fit f(x) = a0 + a1/T*x using the Iterative Least Square method. The 3-sigma rule is used to eliminate outliers. iwlsqm - Linearly fit f(x) = a0 + a1/T*x using the Iterative Weighted Least Square algorithm. The 3-sigma rule is used to eliminate outliers. # ==================== GRACE data utilitues ================== # parse_gsm_filename - Parse GRACE GSM filenames. print_gsm_date_coverage - Print the date coverage for the GRACE GSM data from isdcftp.gfz-potsdam.de gsm_download - Download GRACE GSM data from isdcftp.gfz-potsdam.de parse_gsm_file - Parse the GRACE GSM Level-2 file. read_gsm - Read the GRACE GSM Level-2 files. gsm_average - Combine the (deaveraged) GSM solution from multiple institutions into an integrated one. # ==================== GLDAS data utilitues ================== # gldas_download - Download the GLDAS grid data over a period defined by the start date and end date and its documentation from urs.earthdata.nasa.gov read_gldas - Read the GLDAS files into a GLDAS class instance. regular_gldas - Normalize the GLDAS grid data to meet the requirements of spherical harmonic expansion with pyshtools based on the sampling theorem of Driscoll and Healy (1994). lsm - Calculate some land surface quantities from GLDAS grid data, such as Terrestrial Water Storage Changes(TWSC). landmask - Establish a land window function based on the global terrain data ETOPO5. # =================== SLR C20 data utilitues ================= # slr_c20_download - Download SLR C20 data from isdcftp.gfz-potsdam.de read_slr_c20 - Read the SLR C20 file. # ========================= Utilitues ======================== # print_error_grace - If source, D, and RL do not meet the input requirements, an error message will be printed. print_error_gldas - If source and res do not meet the input requirements, an error message will be printed. month2int - Given a list of month list, translate it to an array of month sequence. med(x) - Calculate the middle divisor. solid_angle_ratio - Calculate the ratio of a solid angle of an ellipse on a sphere to 4pi. crop_region - Crop the global grid data to a region of interested. yx2latlon - Transform index to latitudes and longitudes. latlon2yx - Transform latitudes and longitudes to index. generate_mascons - Create mascons within a study area using a set of points or polygons. ''' from .gsm_utils import print_gsm_date_coverage,gsm_download,read_gsm,gsm_average from .static_models import static_download from .slr_utils import slr_c20_download,read_slr_c20 from .gldas_utils import gldas_download,read_gldas from .plot import plot_at_northpole from .ddk_gaussian import ddk_gaussian from .leakage import scale_factor from .lcurve import L_curve from .utils import generate_nodes,solid_angle_ratio from .mascon import mascon_download,read_mascon from .ddk_gaussian import ddk_gaussian from .landmask import landmask
43.724409
193
0.715469
789
5,553
4.941698
0.334601
0.012311
0.00513
0.007694
0.288792
0.280072
0.271095
0.252629
0.234676
0.215183
0
0.00953
0.149649
5,553
127
194
43.724409
0.81618
0.901855
0
0.166667
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0.083333
0
0
0
null
0
0
0
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
4
fa9589b85e6ec9a294f76d78c7dade6ff939d964
119
py
Python
CodingBat/Python/Warmup-1 > not_string.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CodingBat/Python/Warmup-1 > not_string.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
CodingBat/Python/Warmup-1 > not_string.py
JLJTECH/TutorialTesting
f2dbbd49a86b3b086d0fc156ac3369fb74727f86
[ "MIT" ]
null
null
null
#Warmup-1 > not_string def not_string(str): if str.startswith('not'): return str else: return "not " + str
19.833333
27
0.638655
18
119
4.111111
0.555556
0.243243
0
0
0
0
0
0
0
0
0
0.01087
0.226891
119
6
28
19.833333
0.793478
0.176471
0
0
0
0
0.072165
0
0
0
0
0
0
1
0.2
false
0
0
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
0
0
0
1
0
0
4
facf32ca0ec852661f76a8129eb47cff600e9536
104
py
Python
boltstream/responses.py
geekpii/boltstream
3a107372ac7d67c18fd257c75769f125c855c5b6
[ "Apache-2.0" ]
1,735
2020-12-07T02:06:43.000Z
2022-03-18T01:47:06.000Z
boltstream/responses.py
sonrebmax/boltstream
10a4398b165cc4440c38ab4cd657a74e00cba38b
[ "Apache-2.0" ]
10
2020-12-07T02:41:23.000Z
2021-12-22T06:47:56.000Z
boltstream/responses.py
sonrebmax/boltstream
10a4398b165cc4440c38ab4cd657a74e00cba38b
[ "Apache-2.0" ]
126
2020-12-07T03:17:44.000Z
2022-03-12T18:06:27.000Z
from django.http import HttpResponse class HttpResponseNoContent(HttpResponse): status_code = 204
17.333333
42
0.807692
11
104
7.545455
0.909091
0
0
0
0
0
0
0
0
0
0
0.033708
0.144231
104
5
43
20.8
0.898876
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
fadaa73e2ce983f8ee457b6bf67edceb51e25ddc
197
py
Python
res/TensorFlowPythonExamples/examples/while/__init__.py
bogus-sudo/ONE-1
7052a817eff661ec2854ed2e7ee0de5e8ba82b55
[ "Apache-2.0" ]
255
2020-05-22T07:45:29.000Z
2022-03-29T23:58:22.000Z
res/TensorFlowPythonExamples/examples/while/__init__.py
bogus-sudo/ONE-1
7052a817eff661ec2854ed2e7ee0de5e8ba82b55
[ "Apache-2.0" ]
5,102
2020-05-22T07:48:33.000Z
2022-03-31T23:43:39.000Z
res/TensorFlowPythonExamples/examples/while/__init__.py
bogus-sudo/ONE-1
7052a817eff661ec2854ed2e7ee0de5e8ba82b55
[ "Apache-2.0" ]
120
2020-05-22T07:51:08.000Z
2022-02-16T19:08:05.000Z
import tensorflow as tf i = tf.compat.v1.constant(0, name="Hole") c = lambda i: tf.compat.v1.less(i, 10) b = lambda i: tf.compat.v1.add(i, 1) r = tf.compat.v1.while_loop(c, b, [i], name="While")
24.625
52
0.654822
41
197
3.121951
0.512195
0.25
0.3125
0.257813
0.265625
0
0
0
0
0
0
0.047337
0.142132
197
7
53
28.142857
0.710059
0
0
0
0
0
0.045685
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
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
0
0
0
0
0
4
4f0910b1680523eb838126b34d6516b834cc9d25
217
py
Python
test/test_mssql.py
samirsilwal/pyodbc
53f6bd17fe52a180729b4f0db2201a569f697582
[ "MIT" ]
20
2019-11-22T02:47:37.000Z
2022-03-18T19:25:28.000Z
test/test_mssql.py
samirsilwal/pyodbc
53f6bd17fe52a180729b4f0db2201a569f697582
[ "MIT" ]
29
2019-09-09T07:17:19.000Z
2020-08-06T04:18:13.000Z
test/test_mssql.py
samirsilwal/pyodbc
53f6bd17fe52a180729b4f0db2201a569f697582
[ "MIT" ]
19
2019-09-30T18:36:24.000Z
2022-01-04T16:53:42.000Z
''' Tests for MSSQL. ''' from util import exec_query, MSSQL def test_connection(): ''' Test connection to MSSQL Server. ''' result = exec_query(MSSQL, "SELECT 'It works!'") assert result == 'It works!'
21.7
52
0.645161
28
217
4.892857
0.642857
0.131387
0.20438
0
0
0
0
0
0
0
0
0
0.207373
217
9
53
24.111111
0.796512
0.230415
0
0
0
0
0.176471
0
0
0
0
0
0.25
1
0.25
false
0
0.25
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
1
0
0
0
0
0
0
0
4
4f0a4e418f04b1eac7667ced923ca16a38945606
234
py
Python
onos_ric_sdk_py/__init__.py
MatthewWEdwards/onos-ric-sdk-py
2c38542616b8c0d087315b05f12de6eefb2bb3f3
[ "Apache-2.0" ]
null
null
null
onos_ric_sdk_py/__init__.py
MatthewWEdwards/onos-ric-sdk-py
2c38542616b8c0d087315b05f12de6eefb2bb3f3
[ "Apache-2.0" ]
null
null
null
onos_ric_sdk_py/__init__.py
MatthewWEdwards/onos-ric-sdk-py
2c38542616b8c0d087315b05f12de6eefb2bb3f3
[ "Apache-2.0" ]
null
null
null
# SPDX-FileCopyrightText: © 2021 Open Networking Foundation <support@opennetworking.org> # SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from .e2 import E2Client, Subscription from .sdl import SDLClient
29.25
88
0.816239
30
234
6.233333
0.8
0
0
0
0
0
0
0
0
0
0
0.038462
0.111111
234
7
89
33.428571
0.855769
0.521368
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
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
4
87823ea34fec0208210e9f22e5e30fc8a7e93695
52
py
Python
vpos/exceptions.py
txiocoder/django-vpos
7ee39c7b90675689b0b1b9c83767d48149da539a
[ "MIT" ]
3
2021-11-18T16:31:05.000Z
2022-01-21T13:41:58.000Z
vpos/exceptions.py
txiocoder/django-vpos
7ee39c7b90675689b0b1b9c83767d48149da539a
[ "MIT" ]
1
2021-11-22T19:11:38.000Z
2021-11-22T20:21:29.000Z
vpos/exceptions.py
txiocoder/django-vpos
7ee39c7b90675689b0b1b9c83767d48149da539a
[ "MIT" ]
null
null
null
class VposConfigurationError(Exception): pass
10.4
40
0.769231
4
52
10
1
0
0
0
0
0
0
0
0
0
0
0
0.173077
52
4
41
13
0.930233
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
355886956231c917bdbdf9d2101a62ff5e3cd95d
293
py
Python
arcsecond/api/endpoints/satellites.py
onekiloparsec/arcsecond.python
e4b22bf055c7f089ca9f0d6c4bda6314350878e0
[ "MIT" ]
7
2018-08-29T15:31:25.000Z
2022-01-08T14:08:39.000Z
arcsecond/api/endpoints/satellites.py
onekiloparsec/arcsecond-python
e4b22bf055c7f089ca9f0d6c4bda6314350878e0
[ "MIT" ]
2
2018-10-21T07:42:26.000Z
2020-02-24T10:11:22.000Z
arcsecond/api/endpoints/satellites.py
onekiloparsec/arcsecond-python
e4b22bf055c7f089ca9f0d6c4bda6314350878e0
[ "MIT" ]
null
null
null
from ._base import APIEndPoint class SatellitesAPIEndPoint(APIEndPoint): name = 'satellites' def _list_url(self, **filters): return self._build_url('satellites', **filters) def _detail_url(self, norad_number): return self._build_url('satellites', norad_number)
24.416667
58
0.713311
33
293
6
0.545455
0.070707
0.151515
0.181818
0.282828
0
0
0
0
0
0
0
0.180887
293
11
59
26.636364
0.825
0
0
0
0
0
0.102389
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0.285714
1
0
0
0
0
null
0
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
4
357beddbd194c981ff7bfbba130b3a5fe87ac6d4
157
py
Python
aldryn_search/apps.py
lab360-ch/aldryn-search
15a319edac126aa1e44f22d34a7bcb5aec3e3dde
[ "BSD-3-Clause" ]
11
2019-03-29T10:32:13.000Z
2021-02-26T11:44:44.000Z
aldryn_search/apps.py
lab360-ch/aldryn-search
15a319edac126aa1e44f22d34a7bcb5aec3e3dde
[ "BSD-3-Clause" ]
23
2019-01-31T16:20:57.000Z
2021-11-10T19:57:58.000Z
aldryn_search/apps.py
lab360-ch/aldryn-search
15a319edac126aa1e44f22d34a7bcb5aec3e3dde
[ "BSD-3-Clause" ]
23
2019-02-14T09:59:40.000Z
2022-03-10T12:38:48.000Z
from django.apps import AppConfig class AldrynSearchConfig(AppConfig): name = 'aldryn_search' def ready(self): from . import conf # noqa
17.444444
36
0.687898
18
157
5.944444
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.235669
157
8
37
19.625
0.891667
0.025478
0
0
0
0
0.086093
0
0
0
0
0
0
1
0.2
false
0
0.4
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
0
0
1
0
1
0
0
4
3583587e857ba2e03f4dbec666f2d6bee6d2dba7
168
py
Python
loggo2/__init__.py
bitpanda-labs/loggo2
0e0d157b12a34a737ddfc0c9083241a6db03b78a
[ "MIT" ]
6
2018-05-15T13:30:02.000Z
2022-03-08T16:08:05.000Z
loggo2/__init__.py
bitpanda-labs/loggo2
0e0d157b12a34a737ddfc0c9083241a6db03b78a
[ "MIT" ]
102
2018-06-15T11:08:11.000Z
2022-01-21T11:12:11.000Z
loggo2/__init__.py
bitpanda-labs/loggo
0e0d157b12a34a737ddfc0c9083241a6db03b78a
[ "MIT" ]
10
2018-05-15T11:01:14.000Z
2022-02-06T20:58:56.000Z
from ._loggo2 import JsonLogFormatter, LocalLogFormatter, Loggo # noqa: F401 __version__ = "10.1.2" # DO NOT EDIT THIS LINE MANUALLY. LET bump2version UTILITY DO IT
42
88
0.767857
23
168
5.391304
0.956522
0
0
0
0
0
0
0
0
0
0
0.06383
0.160714
168
3
89
56
0.815603
0.434524
0
0
1
0
0.065217
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
4
35884559fa63fe01a4c1157a7757aab150c568df
3,979
py
Python
mlbgame/data/people.py
trevor-viljoen/mlbgame3
73e79aebad751b36773f01c93f09a422f69ef9cc
[ "MIT" ]
6
2018-03-23T02:51:10.000Z
2021-06-15T21:26:51.000Z
mlbgame/data/people.py
trevor-viljoen/mlbgame3
73e79aebad751b36773f01c93f09a422f69ef9cc
[ "MIT" ]
null
null
null
mlbgame/data/people.py
trevor-viljoen/mlbgame3
73e79aebad751b36773f01c93f09a422f69ef9cc
[ "MIT" ]
1
2019-02-23T07:11:51.000Z
2019-02-23T07:11:51.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """mlbgame functions for the people API endpoints. This module's functions gets the JSON payloads for the mlb.com games API endpoints. .. _Google Python Style Guide: http://google.github.io/styleguide/pyguide.html """ from mlbgame.data import request def get_person(person_id, params=None): """This endpoint allows you to pull the information for a player. Args: person_id (int): Unique Player Identifier params (dict): Contains the person_ids, season, group, and fields parameters described below. params: person_id (required) Description: Unique Player Identifier Parameter Type: path Data Type: integer person_ids Description: Comma delimited list of person ID. Format: 1234, 2345 Parameter Type: query Data Type: array[integer] season Description: Season of play Parameter Type: query Data Type: string group *may not yet do anything Description: Category of statistics to return. 0: hitting, 1: pitching, 2: fielding, 3: running Format: 0, 1, 2, 3 Parameter Type: query Data Type: array[string] fields Description: Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute Parameter Type: query Data Type: array[string] Returns: json """ return request(7, primary_key=person_id, params=params) def get_current_game_stats(person_id, params=None): """This endpoint allows you to pull the current game status for a given player. Args: person_id (int): Unique Player Identifier params (dict): Contains the person_ids, season, group, and fields parameters described below. params: person_id (required) Description: Unique Player Identifier Parameter Type: path Data Type: integer group *may not yet do anything Description: Category of statistics to return. 0: hitting, 1: pitching, 2: fielding, 3: running Format: 0, 1, 2, 3 Parameter Type: query Data Type: array[string] timecode Description: Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS fields Description: Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute Parameter Type: query Data Type: array[string] Returns: json """ return request(7, 'stats/game/current', primary_key=person_id, params=params) def get_game_stats(person_id, game_pk, params=None): """This endpoint allows you to pull the game stats for a given player and game. Args: person_id (int): Unique Player Identifier game_pk (int): Unique Primary Key representing a game. params (dict): Contains the group, and fields parameters described below. params: person_id (required) Description: Unique Player Identifier Parameter Type: path Data Type: integer game_pk (required) Description: Unique Primary Key representing a game. Parameter Type: path Data Type: integer group *may not yet do anything Description: Category of statistics to return. 0: hitting, 1: pitching, 2: fielding, 3: running Format: 0, 1, 2, 3 Parameter Type: query Data Type: array[string] fields Description: Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute Parameter Type: query Data Type: array[string] Returns: json """ return request(7, 'stats/game', primary_key=person_id, secondary_key=game_pk, params=params)
32.349593
79
0.642372
488
3,979
5.17418
0.254098
0.041188
0.05703
0.069703
0.751287
0.728713
0.690297
0.675644
0.647129
0.631287
0
0.013144
0.292536
3,979
122
80
32.614754
0.883837
0.783865
0
0
0
0
0.058577
0
0
0
0
0
0
1
0.333333
false
0
0.111111
0
0.777778
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
1
0
0
4
358a40fd5689697a1d8d1a2da43fe16bdb4a6fd3
87
py
Python
mypage/apps.py
shotastage/neco-sys
60816ceee3eaf36d8d278db72e741d45c3f4af41
[ "MIT" ]
2
2021-08-15T02:17:43.000Z
2022-01-31T14:46:20.000Z
rainy_project/mypage/apps.py
habijung/WEB_HeavyReading_Rainy
58b7429e88931175ddceab2c280161a267149a15
[ "MIT" ]
10
2020-02-12T00:37:45.000Z
2022-03-03T21:58:40.000Z
rainy_project/mypage/apps.py
habijung/WEB_HeavyReading_Rainy
58b7429e88931175ddceab2c280161a267149a15
[ "MIT" ]
2
2020-11-17T09:37:24.000Z
2021-10-04T05:59:02.000Z
from django.apps import AppConfig class MypageConfig(AppConfig): name = 'mypage'
14.5
33
0.747126
10
87
6.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.172414
87
5
34
17.4
0.902778
0
0
0
0
0
0.068966
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
35cba22e1908f51ae40f6b613a82f59b7cb71986
89
py
Python
apps/players/apps.py
xeroz/admin-django
e10c5eb87f9aea7a714e5be2307969a3b998706c
[ "MIT" ]
12
2018-03-20T21:38:53.000Z
2021-10-31T10:00:12.000Z
apps/players/apps.py
xeroz/admin-django
e10c5eb87f9aea7a714e5be2307969a3b998706c
[ "MIT" ]
79
2018-03-18T14:26:47.000Z
2022-03-01T15:51:40.000Z
apps/players/apps.py
xeroz/admin-django
e10c5eb87f9aea7a714e5be2307969a3b998706c
[ "MIT" ]
4
2018-05-18T15:39:56.000Z
2020-10-29T09:28:41.000Z
from django.apps import AppConfig class PlayersConfig(AppConfig): name = 'players'
14.833333
33
0.752809
10
89
6.7
0.9
0
0
0
0
0
0
0
0
0
0
0
0.168539
89
5
34
17.8
0.905405
0
0
0
0
0
0.078652
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
35db3c607e8460d5391f5e65c6e7e40b3c6921ac
7,147
py
Python
app/tests/functional/test_user.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
3
2019-11-16T06:51:17.000Z
2019-11-21T01:18:31.000Z
app/tests/functional/test_user.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
27
2019-11-17T13:56:49.000Z
2021-06-28T12:04:18.000Z
app/tests/functional/test_user.py
sun-fengcai/flask_template
fc6c5963ac9ac632c83d81c7b62ab74d7e99d02d
[ "MIT" ]
1
2021-04-23T23:57:28.000Z
2021-04-23T23:57:28.000Z
import json from app import utils def test_add_user(test_app, test_database): client = test_app.test_client() response = client.post( "/users", data=json.dumps( {"username": "onlinejudge95", "email": "onlinejudge95@gmail.com",} ), content_type="application/json", ) assert response.status_code == 201 data = json.loads(response.data.decode()) assert "success" in data["status"] assert "onlinejudge95@gmail.com was added!" in data["message"] assert "public_id" in data["data"].keys() def test_add_user_empty_data(test_app, test_database): client = test_app.test_client() response = client.post( "/users", data=json.dumps({}), content_type="application/json" ) assert response.status_code == 400 data = json.loads(response.data.decode()) assert "fail" in data["status"] assert "Empty payload" in data["message"] def test_add_user_invalid_payload(test_app, test_database): client = test_app.test_client() response = client.post( "/users", data=json.dumps({"email": "mayankdcoder@gmail.com"}), content_type="application/json", ) assert response.status_code == 400 data = json.loads(response.data.decode()) assert "fail" in data["status"] assert "Invalid payload" in data["message"] def test_add_user_duplicate_email(test_app, test_database): client = test_app.test_client() client.post( "/users", data=json.dumps( {"username": "onlinejudge95", "email": "onlinejudge95@gmail.com"} ), content_type="application/json", ) response = client.post( "/users", data=json.dumps( {"username": "onlinejudge95", "email": "onlinejudge95@gmail.com"} ), content_type="application/json", ) assert response.status_code == 400 data = json.loads(response.data.decode()) assert "fail" in data["status"] assert ( "User with email onlinejudge95@gmail.com already exists" in data["message"] ) def test_get_user(test_app, test_database): public_id = utils.add_user( {"username": "onlinejudge95", "email": "onlinejudge95@gmail.com"} ) client = test_app.test_client() response = client.get(f"/users/{public_id}") assert response.status_code == 200 data = json.loads(response.data.decode()) assert "success" in data["status"] assert "onlinejudge95" in data["data"]["username"], data["data"] assert "onlinejudge95@gmail.com" in data["data"]["email"] def test_get_user_invalid_id(test_app, test_database): client = test_app.test_client() response = client.get("/users/123") assert response.status_code == 404 data = json.loads(response.data.decode()) assert "fail" in data["status"] assert "User with id 123 does not exists" in data["message"] def test_get_users(test_app, test_database): utils.recreate_db() utils.add_user( {"username": "mayankdcoder", "email": "mayankdcoder@gmail.com"} ) utils.add_user( {"username": "mayankdcoder1", "email": "mayankdcoder1@gmail.com"} ) client = test_app.test_client() response = client.get("/users") assert response.status_code == 200 data = json.loads(response.data.decode()) assert "success" in data["status"] assert len(data["data"]["users"]) == 2 assert "mayankdcoder" in data["data"]["users"][0]["username"] assert "mayankdcoder1" in data["data"]["users"][1]["username"] assert "mayankdcoder@gmail.com" in data["data"]["users"][0]["email"] assert "mayankdcoder1@gmail.com" in data["data"]["users"][1]["email"] def test_remove_user(test_app, test_database): utils.recreate_db() public_id = utils.add_user( {"username": "removed", "email": "remove@gmail.com"} ) client = test_app.test_client() resp_one = client.get("/users") data = json.loads(resp_one.data.decode()) assert resp_one.status_code == 200 assert len(data["data"]["users"]) == 1 resp_two = client.delete(f"/users/{public_id}") data = json.loads(resp_two.data.decode()) assert resp_two.status_code == 200 assert "remove@gmail.com was removed!" in data["message"] assert "success" in data["status"] resp_three = client.get("/users") data = json.loads(resp_three.data.decode()) assert resp_three.status_code == 200 assert len(data["data"]["users"]) == 0 def test_remove_user_incorrect_id(test_app, test_database): client = test_app.test_client() resp = client.delete("/users/999") data = json.loads(resp.data.decode()) assert resp.status_code == 404 assert "User with id 999 does not exists" in data["message"] assert "fail" in data["status"] def test_update_user(test_app, test_database): utils.recreate_db() public_id = utils.add_user( {"username": "update", "email": "update@gmail.com"} ) client = test_app.test_client() resp_one = client.put( f"/users/{public_id}", data=json.dumps({"username": "me", "email": "me@gmail.com"}), content_type="application/json", ) data = json.loads(resp_one.data.decode()) assert resp_one.status_code == 200 assert f"{public_id} was updated!" in data["message"] assert "success" in data["status"] resp_two = client.get(f"/users/{public_id}") data = json.loads(resp_two.data.decode()) assert resp_two.status_code == 200 assert "me" in data["data"]["username"], data["data"] assert "me@gmail.com" in data["data"]["email"] assert "success" in data["status"] def test_update_user_wrong_permission(test_app, test_database): utils.recreate_db() public_id = utils.add_user( {"username": "update", "email": "update@gmail.com"} ) client = test_app.test_client() resp = client.put( f"/users/{public_id}", data=json.dumps({"public_id": "123"}), content_type="application/json", ) data = json.loads(resp.data.decode()) assert resp.status_code == 403 assert "Can not modify public_id attribute" in data["message"] assert "fail" in data["status"] def test_update_user_does_not_exist(test_app, test_database): client = test_app.test_client() resp = client.put( "/users/999", data=json.dumps({"username": "me", "email": "me@testdriven.io"}), content_type="application/json", ) data = json.loads(resp.data.decode()) assert resp.status_code == 404 assert "User with id 999 does not exists" in data["message"] assert "fail" in data["status"] def test_update_user_empty_json(test_app, test_database): utils.recreate_db() public_id = utils.add_user( {"username": "update", "email": "update@gmail.com"} ) client = test_app.test_client() resp = client.put( f"/users/{public_id}", data=json.dumps({}), content_type="application/json", ) data = json.loads(resp.data.decode()) assert resp.status_code == 400 assert "Empty payload" in data["message"] assert "fail" in data["status"]
31.484581
78
0.646705
922
7,147
4.83731
0.091106
0.04574
0.064126
0.055381
0.826457
0.806278
0.758744
0.697982
0.656951
0.619058
0
0.01821
0.200923
7,147
226
79
31.623894
0.762739
0
0
0.562842
0
0
0.234924
0.038198
0
0
0
0
0.289617
1
0.071038
false
0
0.010929
0
0.081967
0
0
0
0
null
0
0
0
1
1
1
0
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
4
ea1c8dc482231f31a61b11ef7f70060a085b4cca
227
py
Python
chanjet_openapi_python_sdk/exception/serialize_response_exception.py
Chanjet/chanjet-openapi-python-sdk-
a076ce11d6d1789e657b96d72bbbcff594dbb4e9
[ "MIT" ]
2
2021-08-12T05:22:56.000Z
2021-09-08T09:03:38.000Z
chanjet_openapi_python_sdk/exception/serialize_response_exception.py
Chanjet/chanjet-openapi-python-sdk
a076ce11d6d1789e657b96d72bbbcff594dbb4e9
[ "MIT" ]
null
null
null
chanjet_openapi_python_sdk/exception/serialize_response_exception.py
Chanjet/chanjet-openapi-python-sdk
a076ce11d6d1789e657b96d72bbbcff594dbb4e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021/8/6 15:01 # @Author : zc # @Desc : json格式的response序列化成实例对象异常 class SerializeResponseException(Exception): def __init__(self, err_msg): super().__init__(self, err_msg)
22.7
44
0.647577
26
227
5.269231
0.807692
0.116788
0.160584
0.20438
0
0
0
0
0
0
0
0.060773
0.202643
227
9
45
25.222222
0.696133
0.431718
0
0
0
0
0
0
0
0
0
0
0
1
0.333333
false
0
0
0
0.666667
0
1
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
0
0
0
0
4
ea22bbec328c45633bc90472df085445b7749a42
342
py
Python
dataentry/models.py
abrehman90/Integrate-SummerNote-in-Django
a588578f007e153b85e1b18e71fa37d05bdef7ef
[ "MIT" ]
1
2021-12-15T03:47:19.000Z
2021-12-15T03:47:19.000Z
dataentry/models.py
abrehman90/Integrate-SummerNote-in-Django
a588578f007e153b85e1b18e71fa37d05bdef7ef
[ "MIT" ]
null
null
null
dataentry/models.py
abrehman90/Integrate-SummerNote-in-Django
a588578f007e153b85e1b18e71fa37d05bdef7ef
[ "MIT" ]
null
null
null
from django.db import models # Create your models here. class user(models.Model): name = models.CharField(max_length=25) phone = models.CharField(max_length=25,default='+92') email = models.EmailField() city = models.CharField(max_length=20) content = models.TextField() def __str__(self): return self.name
24.428571
57
0.695906
45
342
5.133333
0.644444
0.194805
0.233766
0.311688
0.225108
0
0
0
0
0
0
0.028881
0.190058
342
13
58
26.307692
0.805054
0.070175
0
0
0
0
0.009494
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0.111111
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
0
0
0
1
1
0
0
4
ea3a1bdee6e7843b3236745c73bb61d6e0e2dd05
354
py
Python
py/priq.py
frasertweedale/drill
4e71b5348b633fd9beecb243c046f19ddfe131fe
[ "MIT" ]
1
2020-09-02T17:25:26.000Z
2020-09-02T17:25:26.000Z
py/priq.py
frasertweedale/drill
4e71b5348b633fd9beecb243c046f19ddfe131fe
[ "MIT" ]
null
null
null
py/priq.py
frasertweedale/drill
4e71b5348b633fd9beecb243c046f19ddfe131fe
[ "MIT" ]
null
null
null
import heap class _PriQ(object): def insert(self, x): self.heap.insert(x) def delete(self): return self.heap.delete() def __nonzero__(self): return bool(self.heap) class Max(_PriQ): def __init__(self): self.heap = heap.Max() class Min(_PriQ): def __init__(self): self.heap = heap.Min()
15.391304
33
0.59322
47
354
4.148936
0.340426
0.205128
0.112821
0.153846
0.276923
0.276923
0.276923
0
0
0
0
0
0.276836
354
22
34
16.090909
0.761719
0
0
0.142857
0
0
0
0
0
0
0
0
0
1
0.357143
false
0
0.071429
0.142857
0.785714
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
ea3cf21c67467cbaac5cfdc96125b0af5671f94a
326
py
Python
src/praxxis/model/update_model.py
blimongi/praxxis
4c2496c89d1d26d01b91896496342ca60f3d15ae
[ "MIT" ]
9
2019-07-31T23:50:16.000Z
2021-08-21T00:43:44.000Z
src/praxxis/model/update_model.py
blimongi/praxxis
4c2496c89d1d26d01b91896496342ca60f3d15ae
[ "MIT" ]
22
2019-08-01T00:37:53.000Z
2020-03-31T05:01:57.000Z
src/praxxis/model/update_model.py
blimongi/praxxis
4c2496c89d1d26d01b91896496342ca60f3d15ae
[ "MIT" ]
7
2020-01-03T02:28:36.000Z
2021-05-13T20:59:19.000Z
""" This file requests a new model from the storage pool. """ import os import urllib3 urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) import requests from requests.auth import HTTPBasicAuth from src.praxxis.sqlite import sqlite_telemetry def update_model(): """TODO: implement this""" pass
16.3
67
0.776074
41
326
6.097561
0.682927
0
0
0
0
0
0
0
0
0
0
0.010791
0.147239
326
19
68
17.157895
0.888489
0.226994
0
0
0
0
0
0
0
0
0
0.052632
0
1
0.125
true
0.125
0.625
0
0.75
0
0
0
0
null
0
0
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
1
0
0
0
1
1
1
0
0
0
0
4
ea4b5a3f51b0afdbeab25267ee595b2878076d5e
132
py
Python
salesforce_api/models/__init__.py
octopyth/python-salesforce-api
3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d
[ "MIT" ]
25
2019-05-20T06:38:45.000Z
2022-02-22T02:10:37.000Z
salesforce_api/models/__init__.py
octopyth/python-salesforce-api
3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d
[ "MIT" ]
19
2019-07-02T10:12:09.000Z
2022-01-09T23:33:21.000Z
salesforce_api/models/__init__.py
octopyth/python-salesforce-api
3f51995f7dc4ae965cb7a594f6f0fb8fcf35ec5d
[ "MIT" ]
16
2019-12-04T20:45:16.000Z
2021-12-17T23:29:29.000Z
from . import bulk, deploy, retrieve, tooling __all__ = [ 'bulk', 'deploy', 'retrieve', 'tooling', 'shared' ]
12
45
0.55303
12
132
5.75
0.666667
0.289855
0.521739
0.724638
0
0
0
0
0
0
0
0
0.287879
132
10
46
13.2
0.734043
0
0
0
0
0
0.234848
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
1
0
0
null
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
ea7b1fb5e109895783f00bbbc89f3c2e5c72c142
96
py
Python
docs/p3/setup.py
khchine5/atelier
25a287595d35b14f7eaa8379636b7538e1c4314f
[ "BSD-2-Clause" ]
1
2018-09-20T12:49:51.000Z
2018-09-20T12:49:51.000Z
docs/p3/setup.py
khchine5/atelier
25a287595d35b14f7eaa8379636b7538e1c4314f
[ "BSD-2-Clause" ]
2
2016-01-12T20:07:51.000Z
2016-01-13T22:55:19.000Z
docs/p3/setup.py
khchine5/atelier
25a287595d35b14f7eaa8379636b7538e1c4314f
[ "BSD-2-Clause" ]
2
2016-10-12T16:13:16.000Z
2021-02-28T07:15:59.000Z
from setuptools import setup if __name__ == '__main__': setup(name='foo', version='1.0.0')
19.2
38
0.677083
14
96
4.071429
0.785714
0
0
0
0
0
0
0
0
0
0
0.037037
0.15625
96
4
39
24
0.666667
0
0
0
0
0
0.168421
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
0
0
0
4
ea9492335887a907444003adbfacda8abe09f88a
18,763
py
Python
solver.py
itrosen/hall-solver
70ca5364b6c16bf62b7faa69ac30d14f972d7320
[ "MIT" ]
null
null
null
solver.py
itrosen/hall-solver
70ca5364b6c16bf62b7faa69ac30d14f972d7320
[ "MIT" ]
null
null
null
solver.py
itrosen/hall-solver
70ca5364b6c16bf62b7faa69ac30d14f972d7320
[ "MIT" ]
null
null
null
""" Created on Dec 16 2021 @author: Ilan Rosen Poisson equation solver for the Hall effect. Includes classes for Hall bars, Hall bars in a nonlocal geometry, and Corbino disks. The Hall bar class has build in methods for longitudinal and Hall 4-probe resistance measurements. Plotting functions assume coordinates are in microns, but the Poisson equation is scale-invariant. """ import time import math import numpy as np import scipy.sparse as sp # import sparse matrix library import matplotlib.pyplot as plt from scipy.sparse.linalg import spsolve # import the file where the differentiation matrix operators are defined from diff_matrices import Diff_mat_1D, Diff_mat_2D class hallbar(): """The class for a Hall bar device Source is the left terminal, drain is the right terminal. Args: Lx : length in x direction Ly : length in y direction Nx : number of points in grid along x Ny : number of points in grid along y """ def __init__(self, Lx, Ly, Nx = 301, Ny = 201): # Initiate with no contacts self.contacts = [] # Define coordinate variables self.Nx = Nx self.Ny = Ny self.Lx = Lx self.Ly = Ly self.x = np.linspace(0,self.Lx,self.Nx) self.y = np.linspace(0,self.Ly,self.Ny) self.dx = self.x[1] - self.x[0] # grid spacing along x direction self.dy = self.y[1] - self.y[0] # grid spacing along y direction self.X,self.Y = np.meshgrid(self.x,self.y) # 2D meshgrid # 1D indexing self.Xu = self.X.ravel() # Unravel 2D meshgrid to 1D array self.Yu = self.Y.ravel() # Search for boundary indices start_time = time.time() self.ind_unravel_L = np.squeeze(np.where(self.Xu==self.x[0])) # Left boundary self.ind_unravel_R = np.squeeze(np.where(self.Xu==self.x[self.Nx-1])) # Right boundary self.ind_unravel_B = np.squeeze(np.where(self.Yu==self.y[0])) # Bottom boundary self.ind_unravel_T = np.squeeze(np.where(self.Yu==self.y[self.Ny-1])) # Top boundary self.ind_boundary_unravel = np.squeeze(np.where((self.Xu==self.x[0]) | (self.Xu==self.x[self.Nx-1]) | (self.Yu==self.y[0]) | (self.Yu==self.y[self.Ny-1]))) # outer boundaries 1D unravel indices self.ind_boundary = np.where((self.X==self.x[0]) | (self.X==self.x[self.Nx-1]) | (self.Y==self.y[0]) | (self.Y==self.y[self.Ny-1])) # outer boundary print("Boundary search time = %1.4s" % (time.time()-start_time)) # Load finite difference matrix operators self.Dx_2d, self.Dy_2d, self.D2x_2d, self.D2y_2d = Diff_mat_2D(self.Nx,self.Ny) # Initiate empty solution matrix self.u = 0 def solve(self, lmbda): # constructs matrix problem and solves Poisson equation # Args: lmbda : sigma_xy / sigma_xx. Must be finite # Returns: self.u : electric potential self.lmbda = lmbda # Construct system matrix without boundary conditions start_time = time.time() I_sp = sp.eye(self.Nx*self.Ny).tocsr() L_sys = self.D2x_2d/self.dx**2 + self.D2y_2d/self.dy**2 # Boundary operators BD = I_sp # Dirichlet boundary operator BNx = self.Dx_2d / (2 * self.dx) # Neumann boundary operator for x component BNy = self.Dy_2d / (2 * self.dy) # Neumann boundary operator for y component # DIRICHLET BOUNDARY CONDITIONS FOR CONTACTS L_sys[self.ind_unravel_L,:] = BD[self.ind_unravel_L,:] # Boundaries at the left layer L_sys[self.ind_unravel_R,:] = BD[self.ind_unravel_R,:] # Boundaries at the right edges # CURRENT THROUGH EDGES L_sys[self.ind_unravel_T,:] = BNy[self.ind_unravel_T,:] - lmbda * BNx[self.ind_unravel_T,:] # Boundaries at the top layer L_sys[self.ind_unravel_B,:] = BNy[self.ind_unravel_B,:] - lmbda * BNx[self.ind_unravel_B,:] # Boundaries at the bottom layer # Source function (right hand side vector) g = np.zeros(self.Nx*self.Ny) # Insert boundary values at the boundary points g[self.ind_unravel_L] = 1 # Dirichlet boundary condition at source g[self.ind_unravel_R] = 0 # Dirichlet boundary condition at drain g[self.ind_unravel_T] = 0 # No current through top g[self.ind_unravel_B] = 0 # No current through bottom print("System matrix and right hand vector computation time = %1.6s" % (time.time()-start_time)) start_time = time.time() self.u = spsolve(L_sys,g).reshape(self.Ny,self.Nx).T print("spsolve() time = %1.6s" % (time.time()-start_time)) def voltage_measurement(self, x1, x2, side='top'): # Args: x1 : point of V_A # x2 : point of V_B # side ('top', 'bottom', or 'hall') : which side of Hall bar to measure # Returns: V_A - V_B if np.all(self.u==0): raise Exception('System has not been solved') if x1 > self.Lx or x1 < 0 or x2 > self.Lx or x2 < 0: raise Exception('Points out of bounds') if side=='top': ya = self.Ny-1 yb = self.Ny-1 elif side=='bottom': ya = 0 yb = 0 elif side=='hall': ya = 0 yb = self.Ny-1 else: raise Exception('Side must be top or bottom') # Find nearest index value to input coordinates xa = np.searchsorted(self.x, x1, side='left') xb = np.searchsorted(self.x, x2, side='left') return self.u[xa, ya] - self.u[xb, yb] def plot_potential(self): if np.all(self.u==0): raise Exception('System has not been solved') fig = plt.figure(figsize = [8,5]) plt.contourf(self.x,self.y,self.u.T,41,cmap = 'inferno') cbar = plt.colorbar(ticks = np.arange(0, 1.01, 0.2), label = r'$\phi / \phi_s$') plt.xlabel(r'x ($\mu$m)'); plt.ylabel(r'y ($\mu$m)'); plt.show() def plot_resistance(self): if np.all(self.u==0): raise Exception('System has not been solved') r_top = (self.u[0:-1, -1] - self.u[1:, -1]) * 25812 * self.Ly / self.dx r_bottom = (self.u[0:-1, 0] - self.u[1:, 0]) * 25812 * self.Ly / self.dx rxx = 25812 / self.lmbda fig = plt.figure(figsize = [8,5]) plt.plot(self.x[0:-1] - self.dx, r_top, 'r', label='top') plt.plot(self.x[0:-1] - self.dx, r_bottom, 'b', label='bottom') plt.hlines(rxx, self.x[0], self.x[-1], linestyle='dashed', color='grey', label=r'$\rho_{xx}$') plt.xlabel(r'x ($\mu$m)'); plt.ylabel(r'$\rho_{xx}$ $(\Omega)$'); plt.legend() plt.ylim([0, 12000]); plt.show() def add_contact(self, contact): if contact.x1 > self.Lx or contact.x2 > self.Lx: raise Exception('Contact out of bounds') self.contacts.append(contact) def measure_contact_voltageonly(self, contact): # Args: contact instance # Returns: measured resistivity # Voltage is averaged across voltage tap # THIS FUNCTION DOES NOT CHECK THE CURRENT! # This method assumes 2terminal resistance is h/e2, which in general is wrong if np.all(self.u==0): raise Exception('System has not been solved') if contact.side=='top': y = self.Ny-1 elif contact.side=='bottom': y = 0 else: raise Exception('Side must be top or bottom') # Average voltage A A_indices = np.where(np.abs(self.x - contact.x1) < contact.width)[0] A_voltage = self.u[A_indices, y].mean() # Average voltage A B_indices = np.where(np.abs(self.x - contact.x2) < contact.width)[0] B_voltage = self.u[B_indices, y].mean() # voltage difference v = A_voltage - B_voltage # length between contacts dx = np.abs(contact.x1 - contact.x2) # return apparent resistivity return 25812 * v * self.Ly / dx def measure_all_contacts_voltageonly(self): # Args: none # Returns: array; resistivity measurement of all contacts if np.all(self.u==0): raise Exception('System has not been solved') result = [] for contact in self.contacts: result.append(self.measure_contact_voltageonly(contact)) return result def measure_contact(self, contact, sxx, sxy): ''' Voltage is averaged across voltage tap This method checks the current and outputs resistivity. Args: contact : contact instance sxx : longitudinal sxy : hall. sxy/sxx should match self.lmbda Returns: measured resistivity ''' if np.all(self.u==0): raise Exception('System has not been solved') if contact.side=='top': ya = self.Ny-1 yb = self.Ny-1 elif contact.side=='bottom': ya = 0 yb = 0 elif contact.side=='hall': ya = 0 yb = self.Ny-1 else: raise Exception('Side must be top or bottom') # Average voltage A A_indices = np.where(np.abs(self.x - contact.x1) < contact.width)[0] A_voltage = self.u[A_indices, ya].mean() # Average voltage B B_indices = np.where(np.abs(self.x - contact.x2) < contact.width)[0] B_voltage = self.u[B_indices, yb].mean() # voltage difference v = A_voltage - B_voltage # length between contacts dx = np.abs(contact.x1 - contact.x2) i = self.measure_current(sxx, sxy) # return apparent resistivity if contact.side=='hall': return v / i else: return v / i * self.Ly / dx def measure_all_contacts(self, sxx, sxy): # Args: none # Returns: array; resistivity measurement of all contacts if np.all(self.u==0): raise Exception('System has not been solved') result = [] for contact in self.contacts: result.append(self.measure_contact(contact, sxx, sxy)) return result def measure_current(self, sxx, sxy): ''' ARGS : sxx and sxy : longitudinal and Hall conductivity. units e2/h Returns : current moving through device ''' # choose place to measure: halfway across Hallbar ind_x = int(self.Nx/2) # calculate electric field using E = -\nabla V # x electric field, using second order central finite difference E_x = 0.5 * (self.u[ind_x - 1, :] - self.u[ind_x + 1, :]) / self.dx # y electric field, need forward/backward differences for edges Dy_1d, D2y_1d = Diff_mat_1D(self.Ny) E_y = - 0.5 * Dy_1d.dot(self.u[ind_x, :]) / self.dy # calculate x current using j = sigma E; integrate and convert to SI units current = np.sum(sxx * E_x + sxy * E_y) * self.dy / 25812 return current class contact(): """The class for a voltage contact Args: x1 : coordinate location of V_A x2 : coordinate location of V_B side ('top', 'bottom', or 'hall') : which side of the Hall bar to measure width : width of voltage tap in microns """ def __init__(self, x1, x2, side='top', width=6): self.x1 = x1 self.x2 = x2 self.side = side self.width = width class nonlocal_hb(): """The class for nonlocal measurements Contacts are on the bottom edge of the device Args: Lx : length in x direction Ly : length in y direction Nx : number of points in grid along x Ny : number of points in grid along y settings : positions of contacts """ def __init__(self, Lx, Ly, Nx = 301, Ny = 201, settings = {}): # Initiate with no contacts self.contacts = [] # Define coordinate variables self.Nx = Nx self.Ny = Ny self.Lx = Lx self.Ly = Ly self.x = np.linspace(0,self.Lx,self.Nx) self.y = np.linspace(0,self.Ly,self.Ny) self.dx = self.x[1] - self.x[0] # grid spacing along x direction self.dy = self.y[1] - self.y[0] # grid spacing along y direction self.X,self.Y = np.meshgrid(self.x,self.y) # 2D meshgrid # 1D indexing self.Xu = self.X.ravel() # Unravel 2D meshgrid to 1D array self.Yu = self.Y.ravel() # Nonlocal contacts self.source_x1 = settings.get("source_x1", Lx/4) self.source_x2 = settings.get("source_x2", Lx/3) self.drain_x1 = settings.get("drain_x1", 2*Lx/3) self.drain_x2 = settings.get("drain_x2", 3*Lx/4) # Search for boundary indices start_time = time.time() self.ind_unravel_L = np.squeeze(np.where(self.Xu==self.x[0])) # Left boundary self.ind_unravel_R = np.squeeze(np.where(self.Xu==self.x[self.Nx-1])) # Right boundary self.ind_unravel_B = np.squeeze(np.where(self.Yu==self.y[0])) # Bottom boundary self.ind_unravel_T = np.squeeze(np.where(self.Yu==self.y[self.Ny-1])) # Top boundary self.ind_boundary_unravel = np.squeeze(np.where((self.Xu==self.x[0]) | (self.Xu==self.x[self.Nx-1]) | (self.Yu==self.y[0]) | (self.Yu==self.y[self.Ny-1]))) # outer boundaries 1D unravel indices self.ind_boundary = np.where((self.X==self.x[0]) | (self.X==self.x[self.Nx-1]) | (self.Y==self.y[0]) | (self.Y==self.y[self.Ny-1])) # outer boundary self.ind_unravel_source = np.squeeze(np.where( (self.Yu==self.y[0]) & (self.Xu >= self.source_x1) & (self.Xu <= self.source_x2) )) # Source self.ind_unravel_drain = np.squeeze(np.where( (self.Yu==self.y[0]) & (self.Xu >= self.drain_x1) & (self.Xu <= self.drain_x2) )) # Drain print("Boundary search time = %1.4s" % (time.time()-start_time)) # Load finite difference matrix operators self.Dx_2d, self.Dy_2d, self.D2x_2d, self.D2y_2d = Diff_mat_2D(self.Nx,self.Ny) # Initiate empty solution matrix self.u = 0 def solve(self, lmbda): ''' Constructs matrix problem and solves Poisson equation # Args: lmbda : sigma_xy / sigma_xx. Must be finite # Returns: self.u : electric potential ''' self.lmbda = lmbda # Construct system matrix without boundary conditions start_time = time.time() I_sp = sp.eye(self.Nx*self.Ny).tocsr() L_sys = self.D2x_2d/self.dx**2 + self.D2y_2d/self.dy**2 # Boundary operators BD = I_sp # Dirichlet boundary operator BNx = self.Dx_2d / (2 * self.dx) # Neumann boundary operator for x component BNy = self.Dy_2d / (2 * self.dy) # Neumann boundary operator for y component # CURRENT THROUGH TOP/BOTTOM EDGES L_sys[self.ind_unravel_T,:] = BNy[self.ind_unravel_T,:] - lmbda * BNx[self.ind_unravel_T,:] # Boundaries at the top layer L_sys[self.ind_unravel_B,:] = BNy[self.ind_unravel_B,:] - lmbda * BNx[self.ind_unravel_B,:] # Boundaries at the bottom layer # CURRENT THROUGH LEFT/RIGHT EDGES L_sys[self.ind_unravel_L,:] = BNx[self.ind_unravel_L,:] + lmbda * BNy[self.ind_unravel_L,:] L_sys[self.ind_unravel_R,:] = BNx[self.ind_unravel_R,:] + lmbda * BNy[self.ind_unravel_R,:] # REPLACE WITH DIRICHLET BOUNDARY CONDITIONS FOR SOURCE/DRAIN L_sys[self.ind_unravel_source,:] = BD[self.ind_unravel_source,:] L_sys[self.ind_unravel_drain,:] = BD[self.ind_unravel_drain,:] # Source function (right hand side vector) g = np.zeros(self.Nx*self.Ny) # No current boundary conditions g[self.ind_unravel_L] = 0 g[self.ind_unravel_R] = 0 g[self.ind_unravel_T] = 0 g[self.ind_unravel_B] = 0 # Replace source with potential g[self.ind_unravel_source] = 1 print("System matrix and right hand vector computation time = %1.6s" % (time.time()-start_time)) start_time = time.time() self.u = spsolve(L_sys,g).reshape(self.Ny,self.Nx).T print("spsolve() time = %1.6s" % (time.time()-start_time)) def voltage_measurement(self, x1, x2, side='top'): # Args: x1 : point of V_A # x2 : point of V_B # side ('top' or 'bottom') : which side of Hall bar to measure # Returns: V_A - V_B if np.all(self.u==0): raise Exception('System has not been solved') if x1 > self.Lx or x1 < 0 or x2 > self.Lx or x2 < 0: raise Exception('Points out of bounds') if side=='top': y = self.Ny-1 elif side=='bottom': y = 0 else: raise Exception('Side must be top or bottom') # Find nearest index value to input coordinates xa = np.searchsorted(self.x, x1, side='left') xb = np.searchsorted(self.x, x2, side='left') return self.u[xa, y] - self.u[xb, y] def plot_potential(self): if np.all(self.u==0): raise Exception('System has not been solved') fig = plt.figure(figsize = [8,5]) # plt.contour(self.x,self.y,self.u.T,41,cmap = 'viridis', vmin=0, vmax=1) plt.pcolormesh(self.X, self.Y, self.u.T, cmap='inferno', vmin=0, vmax=1) cbar = plt.colorbar(ticks = np.arange(0, 1.01, 0.2), label = r'$\phi / \phi_s$') plt.xlabel(r'x ($\mu$m)'); plt.ylabel(r'y ($\mu$m)'); plt.show() class corbino(): """The class for a Corbino disk Args: ro : outer radius ri : inner radius Nx : number of points in grid along x Ny : number of points in grid along y """ def __init__(self, ro, ri, Nx = 301, Ny = 201): # Initiate with no contacts self.contacts = [] # Define coordinate variables self.Nx = Nx self.Ny = Ny self.ro = ro self.ri = ri self.x = np.linspace(-self.ro, self.ro, self.Nx) self.y = np.linspace(-self.ro, self.ro, self.Ny) self.dx = self.x[1] - self.x[0] # grid spacing along x direction self.dy = self.y[1] - self.y[0] # grid spacing along y direction self.X,self.Y = np.meshgrid(self.x,self.y) # 2D meshgrid # 1D indexing self.Xu = self.X.ravel() # Unravel 2D meshgrid to 1D array self.Yu = self.Y.ravel() # Search for boundary indices start_time = time.time() self.ind_unravel_outer = np.squeeze(np.where(self.Xu**2 + self.Yu**2 >= self.ro**2)) # outer boundary self.ind_unravel_inner = np.squeeze(np.where(self.Xu**2 + self.Yu**2 <= self.ri**2)) # inner boundary self.ind_boundary_unravel = np.squeeze(np.where((self.Xu**2 + self.Yu**2 >= self.ro**2) | (self.Xu**2 + self.Yu**2 <= self.ri**2))) # boundary 1D unravel indices self.ind_boundary = np.where((self.Xu**2 + self.Yu**2 >= self.ro**2) | (self.Xu**2 + self.Yu**2 <= self.ri**2)) # boundary print("Boundary search time = %1.4s" % (time.time()-start_time)) # Load finite difference matrix operators self.Dx_2d, self.Dy_2d, self.D2x_2d, self.D2y_2d = Diff_mat_2D(self.Nx,self.Ny) # Initiate empty solution matrix self.u = 0 def solve(self, lmbda): # constructs matrix problem and solves Poisson equation # Args: lmbda : sigma_xy / sigma_xx. Must be finite # Returns: self.u : electric potential self.lmbda = lmbda # Construct system matrix without boundary conditions start_time = time.time() I_sp = sp.eye(self.Nx*self.Ny).tocsr() L_sys = self.D2x_2d/self.dx**2 + self.D2y_2d/self.dy**2 # Boundary operators BD = I_sp # Dirichlet boundary operator # DIRICHLET BOUNDARY CONDITIONS FOR CONTACTS L_sys[self.ind_boundary_unravel,:] = BD[self.ind_boundary_unravel,:] # Source function (right hand side vector) g = np.zeros(self.Nx*self.Ny) # Insert boundary values at the boundary points g[self.ind_unravel_outer] = 1 # Dirichlet boundary condition at source g[self.ind_unravel_inner] = 0 # Dirichlet boundary condition at drain print("System matrix and right hand vector computation time = %1.6s" % (time.time()-start_time)) start_time = time.time() self.u = spsolve(L_sys,g).reshape(self.Ny,self.Nx).T print("spsolve() time = %1.6s" % (time.time()-start_time)) def plot_potential(self): if np.all(self.u==0): raise Exception('System has not been solved') fig = plt.figure(figsize = [8,5]) plt.contourf(self.x,self.y,self.u.T,41,cmap = 'inferno') cbar = plt.colorbar(ticks = np.arange(0, 1.01, 0.2), label = r'$\phi / \phi_s$') plt.xlabel(r'x ($\mu$m)'); plt.ylabel(r'y ($\mu$m)'); plt.show()
33.807207
196
0.666525
3,110
18,763
3.928617
0.107074
0.032657
0.056147
0.019643
0.739155
0.722868
0.701588
0.677443
0.677443
0.657063
0
0.024402
0.191867
18,763
555
197
33.807207
0.781376
0.319192
0
0.702422
0
0
0.083005
0
0
0
0
0
0
1
0.065744
false
0
0.024221
0
0.131488
0.031142
0
0
0
null
0
0
0
0
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
4
57944f7748440824b510084999250896fd1e4190
32
py
Python
robotframework-ls/tests/robotframework_ls_tests/_resources/case_vars_file/robotvars.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
92
2020-01-22T22:15:29.000Z
2022-03-31T05:19:16.000Z
robotframework-ls/tests/robotframework_ls_tests/_resources/case_vars_file/robotvars.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
604
2020-01-25T17:13:27.000Z
2022-03-31T18:58:24.000Z
robotframework-ls/tests/robotframework_ls_tests/_resources/case_vars_file/robotvars.py
mardukbp/robotframework-lsp
57b4b2b14b712c9bf90577924a920fb9b9e831c7
[ "ECL-2.0", "Apache-2.0" ]
39
2020-02-06T00:38:06.000Z
2022-03-15T06:14:19.000Z
VARIABLE_1 = 10 VARIABLE_2 = 20
10.666667
15
0.75
6
32
3.666667
0.833333
0
0
0
0
0
0
0
0
0
0
0.230769
0.1875
32
2
16
16
0.615385
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
57cd044d651756a4e1a9d230a6483c3f90d186bf
172,689
py
Python
facts.py
Dev-solutions100/google-search-webhook
b50132f4effc82148ebfe543e15a5a2b42b92b3b
[ "Apache-2.0" ]
null
null
null
facts.py
Dev-solutions100/google-search-webhook
b50132f4effc82148ebfe543e15a5a2b42b92b3b
[ "Apache-2.0" ]
null
null
null
facts.py
Dev-solutions100/google-search-webhook
b50132f4effc82148ebfe543e15a5a2b42b92b3b
[ "Apache-2.0" ]
null
null
null
useless_facts = ["Most American car horns honk in the key of F.", "The name Wendy was made up for the book 'Peter Pan.'", "Barbie's full name is Barbara Millicent Roberts.", "Every time you lick a stamp, you consume 1/10 of a calorie.", "The average person falls asleep in seven minutes.", "Studies show that if a cat falls off the seventh floor of a building it has about thirty percent less chance of surviving than a cat that falls off the twentieth floor. It supposedly takes about eight floors for the cat to realize what is occurring, relax and correct itself.", "Your stomach has to produce a new layer of mucus every 2 weeks otherwise it will digest itself.", "The citrus soda 7-UP was created in 1929; '7' was selected after the original 7-ounce containers and 'UP' for the direction of the bubbles.", "101 Dalmatians, Peter Pan, Lady and the Tramp, and Mulan are the only Disney cartoons where both parents are present and don't die throughout the movie.", "A pig's orgasm lasts for 30 minutes.", "'Stewardesses' is the longest word that is typed with only the left hand.", "To escape the grip of a crocodile's jaws, push your thumbs into its eyeballs - it will let you go instantly.", "Reindeer like to eat bananas.", "No word in the English language rhymes with month, orange, silver and purple.", "The word 'samba' means 'to rub navels together.'", "Mel Blanc (the voice of Bugs Bunny) was allergic to carrots.", "The electric chair was invented by a dentist.", "The very first bomb dropped by the Allies on Berlin during World War II Killed the only elephant in the Berlin Zoo.", "More people are killed annually by donkeys than airplane crashes.", "A 'jiffy' is a unit of time for 1/100th of a second.", "A whale's penis is called a dork.", "Because of the rotation of the earth, an object can be thrown farther if it is thrown west.", "The average person spends 6 months of their life sitting at red lights.", "In 1912 a law passed in Nebraska where drivers in the country at night were required to stop every 150 yards, send up a skyrocket, wait eight minutes for the road to clear before proceeding cautiously, all the while blowing their horn and shooting off flares.", "More Monopoly money is printed in a year, than real money throughout the world.", "Caesar salad has nothing to do with any of the Caesars. It was first concocted in a bar in Tijuana, Mexico, in the 1920's.", "One quarter of the bones in your body are in your feet.", "Crocodiles and alligators are surprisingly fast on land. Although they are rapid, they are not agile. So, if being chased by one, run in a zigzag line to lose him or her.", "Seattle’s Fremont Bridge rises up and down more than any drawbridge in the world.", "Right-handed people live, on average; nine years longer than left handed people.", "Ten percent of the Russian government's income comes from the sale of vodka.", "In the United States, a pound of potato chips costs two hundred times more than a pound of potatoes.", "A giraffe can go without water longer than a camel.", "A person cannot taste food unless it is mixed with saliva. For example, if a strong-tasting substance like salt is placed on a dry tongue, the taste buds will not be able to taste it. As soon as a drop of saliva is added and the salt is dissolved, however, a definite taste sensation results. This is true for all foods.", "Nearly 80% of all animals on earth have six legs.", "In the marriage ceremony of the ancient Inca Indians of Peru, the couple was considered officially wed when they took off their sandals and handed them to each other.", "Ninety percent of all species that have become extinct have been birds.", "There is approximately one chicken for every human being in the world.", "Most collect calls are made on father's day.", "The first automobile race ever seen in the United States was held in Chicago in 1895. The track ran from Chicago to Evanston, Illinois. The winner was J. Frank Duryea, whose average speed was 71/2 miles per hour.", "Each of us generates about 3.5 pounds of rubbish a day, most of it paper.", "Women manage the money and pay the bills in 75% of all Americans households.", "A rainbow can be seen only in the morning or late afternoon. It can occur only when the sun is 40 degrees or less above the horizon.", "It has NEVER rained in Calama, a town in the Atacama Desert of Chile.", "It costs more to buy a new car today in the United States than it cost Christopher Columbus to equip and undertake three voyages to and from the New World.", "The plastic things on the end of shoelaces are called aglets.", "An eighteenth-century German named Matthew Birchinger, known as 'the little man of Nuremberg,' played four musical instruments including the bagpipes, was an expert calligrapher, and was the most famous stage magician of his day. He performed tricks with the cup and balls that have never been explained. Yet Birchinger had no hands, legs, or thighs, and was less than 29 inches tall.", "Daylight Saving Time is not observed in most of the state of Arizona and parts of Indiana.", "Ants closely resemble human manners: When they wake, they stretch & appear to yawn in a human manner before taking up the tasks of the day.", "Bees have 5 eyes. There are 3 small eyes on the top of a bee's head and 2 larger ones in front.", "Count the number of cricket chirps in a 15-second period, add 37 to the total, and your result will be very close to the actual outdoor Fahrenheit temperature.", "One-fourth of the world's population lives on less than $200 a year. Ninety million people survive on less than $75 a year.", "Butterflies taste with their hind feet.", "Only female mosquito’s' bite and most are attracted to the color blue twice as much as to any other color.", "If one places a tiny amount of liquor on a scorpion, it will instantly go mad and sting itself to death.", "It is illegal to hunt camels in the state of Arizona.", "In eighteenth-century English gambling dens, there was an employee whose only job was to swallow the dice if there was a police raid.", "There are no clocks in Las Vegas gambling casinos.", "The human tongue tastes bitter things with the taste buds toward the back. Salty and pungent flavors are tasted in the middle of the tongue, sweet flavors at the tip!", "The first product to have a bar code was Wrigley’s gum.", "When you sneeze, air and particles travel through the nostrils at speeds over100 mph. During this time, all bodily functions stop, including your heart, contributing to the impossibility of keeping one's eyes open during a sneeze.", "Annual growth of WWW traffic is 314,000%", "%60 of all people using the Internet, use it for pornography.", "In 1778, fashionable women of Paris never went out in blustery weather without a lightning rod attached to their hats.", "Sex burns 360 calories per hour.", "A raisin dropped in a glass of fresh champagne will bounce up and down continually from the bottom of the glass to the top.", "Celery has negative calories! It takes more calories to eat a piece of celery than the celery has in it.", "The average lead pencil will draw a line 35 miles long or write approximately 50,000 English words. More than 2 billion pencils are manufactured each year in the United States. If these were laid end to end they would circle the world nine times.", "The pop you hear when you crack your knuckles is actually a bubble of gas burning.", "A literal translation of a standard traffic sign in China: 'Give large space to the festive dog that makes sport in the roadway.'", "You burn more calories sleeping than you do watching TV.", "Larry Lewis ran the 100-yard dash in 17.8 seconds in 1969, thereby setting a new world's record for runners in the 100-years-or-older class. He was 101.", "In a lifetime the average human produces enough quarts of spit to fill 2 swimming pools.", "It's against the law to doze off under a hair dryer in Florida/against the law to slap an old friend on the back in Georgia/against the law to Play hopscotch on a Sunday in Missouri.", "Barbie's measurements, if she were life-size, would be 39-29-33.", "The human heart creates enough pressure to squirt blood 30ft.", "One third of all cancers are sun related.", "THE MOST UNUSUAL CANNONBALL: On two occasions, Miss 'Rita Thunderbird' remained inside the cannon despite a lot of gunpowder encouragement to do otherwise. She performed in a gold lamé bikini and on one of the two occasions (1977) Miss Thunderbird remained lodged in the cannon, while her bra was shot across the Thames River.", "It has been estimated that humans use only 10% of their brain.", "Valentine Tapley from Pike County, Missouri grew chin whiskers attaining a length of twelve feet six inches from 1860 until his death 1910, protesting Abraham Lincoln's election to the presidency.", "Most Egyptians died by the time they were 30 about 300 years ago,", "For some time Frederic Chopin, the composer and pianist, wore a beard on only one side of his face, explaining: 'It does not matter, my audience sees only my right side.'", "1 in every 4 Americans has appeared someway or another on television.", "1 in 8 Americans has worked at a McDonalds restaurant.", "70% of all boats sold are used for fishing.", "Studies have shown that children laugh an average of 300 times/day and adults 17 times/day, making the average child more optimistic, curious, and creative than the adult.", "A pregnant goldfish is called a twit.", "The shortest war in history was between Zanzibar and England in 1896. Zanzibar surrendered after 38 minutes.", "You were born with 300 bones, but by the time you are an adult you will only have 206.", "If you go blind in one eye you only lose about one fifth of your vision but all your sense of depth.", "Women blink nearly twice as much as men.", "The strongest muscle (Relative to size) in the body is the tongue.", "A Boeing 747's wingspan is longer than the Wright brother's first flight.", "American Airlines saved $40,000 in 1987 by eliminating one olive from each salad served in first-class.", "Average life span of a major league baseball: 7 pitches.", "A palindrome is a sentence or group of sentences that reads the same backwards as it does forward: Ex: 'Red rum, sir, is murder.' 'Ma is as selfless as I am.' 'Nurse, I spy gypsies. Run!' 'A man, a plan, a canal - Panama.' 'He lived as a devil, eh?'", "The first CD pressed in the US was Bruce Springsteen's 'Born in the USA'", "In 1986 Congress & President Ronald Reagan signed Public Law 99-359, which changed Daylight Saving Time from the last Sunday in April to the first Sunday in April. It was estimated to save the nation about 300,000 barrels of oil each year by adding most of the month April to D.S.T.", "The thumbnail grows the slowest, the middle nail the fastest, nearly 4 times faster than toenails.", "The Human eyes never grow, but nose and ears never stop growing.", "The 57 on Heinz ketchup bottles represents the number of varieties of pickles the company once had.", "Tom Sawyer was the first novel written on a typewriter.", "If Texas were a country, its GNP would be the fifth largest of any country in the world.", "There are 1 million ants for every human in the world.", "Odds of being killed by lightening? 1 in 2million/killed in a car crash? 1 in 5,000/killed by falling out of bed? 1 in 2million/killed in a plane crash? 1 in 25 million.", "Since 1978, 37 people have died by Vending Machine's falling on them. 13 people are killed annually. All this while trying to shake merchandise out of them. 113 people have been injured.", "Half the foods eaten throughout the world today were developed by farmers in the Andes Mountains (including potatoes, maize, sweet potatoes, squash, all varieties of beans, peanuts, manioc, papayas, strawberries, mulberries and many others).", "The 'Golden Arches' of fast food chain McDonalds is more recognized worldwide than the religious cross of Christianity.", "Former basketball superstar Michael Jordan is the most recognized face in the world, more than the pope himself.", "The average talker sprays about 300 microscopic saliva droplets per minute, about 2.5 droplets per word.", "The Earth experiences 50,000 Earth quakes per year and is hit by Lightning 100 times a second.", "Every year 11,000 Americans injure themselves while trying out bizarre sexual positions.", "If we had the same mortality rate now as in 1900, more than half the people in the world today would not be alive.", "On average, Americans eat 18 acres of pizza everyday.", "Researchers at the Texas Department of Highways in Fort Worth determined the cow population of the U.S. burps some 50 million tons of valuable hydrocarbons into the atmosphere each year. The accumulated burps of ten average cows could keep a small house adequately heated and its stove operating for a year.", "During a severe windstorm or rainstorm the Empire State Building sways several feet to either side.", "In the last 3,500 years, there have been approximately 230 years of peace throughout the civilized world.", "The Black Death reduced the population of Europe by one third in the period from 1347 to 1351.", "The average person spends about two years on the phone in a lifetime.", "Length of beard an average man would grow if he never shaved 27.5 feet", "Over 60% of all those who marry get divorced.", "400-quarter pounders can be made from 1 cow.", "A full-loaded supertanker traveling at normal speed takes at least 20 minutes to stop.", "Coca-Cola was originally green.", "Men can read smaller print than women; women can hear better.", "Hong Kong holds the most Rolls Royce’s per capita.", "Average number of days a West German goes without washing his underwear: 7", "WWII fighter pilots in the South Pacific armed their airplanes while stationed with .50 caliber machine gun ammo belts measuring 27 feet before being loaded into the fuselage. If the pilots fired all their ammo at a target, he went through 'the whole 9 yards', hence the term.", "Average number of people airborne over the US any given hour: 61,000.", "Intelligent people have more zinc and copper in their hair.", "Iceland consumes more Coca-Cola per capita than any other nation.", "In the early 1940s, the FCC assigned television's Channel 1 to mobile services (like two-way radios in taxis) but did not re-number the other channel assignments.", "The San Francisco Cable cars are the only mobile National Monuments.", "Firehouses have circular stairways originating from the old days when the engines were pulled by horses. The horses were stabled on the ground floor and figured out how to walk up straight staircases.", "The Main Library at Indiana University sinks over an inch every year because when it was built, engineers failed to take into account the weight of all the books that would occupy the building.", "111,111,111 x 111,111,111 = 12,345,678,987,654,321", "Statues in parks: If the horse has both front legs in the air, the person died in battle; if the horse has one front leg in the air, the person died as a result of wounds received in battle; if the horse has all four legs on the ground, the person died of natural causes.", "The expression 'to get fired' comes from long ago Clans that wanted to get rid of unwanted people, so they would burn their houses instead of killing them, creating the term 'Got fired'.", "'I am.' is the shortest complete sentence in the English language.", "Hershey's Kisses are called that because the machine that makes them looks like it's kissing the conveyor belt.", "The phrase 'rule of thumb' is derived from an old English law, which stated that you couldn't beat your wife with anything wider than your thumb.", "The longest recorded flight of a chicken is thirteen seconds.", "The Eisenhower interstate system requires that one mile in every five must be straight in case of war or emergency, they could be used as airstrips.", "The name Jeep came from the abbreviation used in the army. G.P. for 'General Purpose' vehicle.", "The Pentagon, in Arlington, Virginia, has twice as many bathrooms as is necessary, because when it was built in the 1940s, the state of Virginia still had segregation laws requiring separate toilet facilities for blacks and whites.", "The cruise liner, Queen Elizabeth II, moves only six inches for each gallon of diesel that it burns.", "If you have three quarters, four dimes, and four pennies, you have $1.19, the largest amount of money in coins without being able to make change for a dollar.", "In Aspen Colorado, you can have a maximum income of $104,000 and still receive government subsidized housing.", "Honking of car horns for a couple that just got married is an old superstition to insure great sex.", "Dr. Kellogg introduced Kellogg's Corn Flakes in hopes that it would reduce masturbation.", "The sperm of a mouse is actually longer than the sperm of an elephant.", "In medieval France, unfaithful wives were made to chase a chicken through town naked.", "The Black Widow spider eats her mate during or after sex.", "Napoleon's penis was sold to an American Urologist for $40,000.", "Eating the heart of a male Partridge was the cure for impotence in ancient Babylon.", "A bull can inseminate 300 cows from one single ejaculation.", "When a Hawaiian woman wears a flower over her left ear, it means that she is not available.", "The 'save' icon on Microsoft Word shows a floppy disk with the shutter on backwards.", "The only nation whose name begins with an 'A', but doesn't end in an 'A' is Afghanistan.", "The following sentence: 'A rough-coated, dough-faced, thoughtful ploughman strode through the streets of Scarborough; after falling into a slough, he coughed and hiccoughed.' Contains the nine different pronunciations of 'ough' in the English Language.", "The verb 'cleave' is the only English word with two synonyms which are antonyms of each other: adhere and separate.", "The only 15-letter word that can be spelled without repeating a letter is uncopyrightable.", "The shape of plant collenchyma’s cells and the shape of the bubbles in beer foam are the same - they are orthotetrachidecahedrons.", "Emus and kangaroos cannot walk backwards, and are on the Australian coat of arms for that reason.", "Cats have over one hundred vocal sounds, while dogs only have about ten.", "Blueberry Jelly Bellies were created especially for Ronald Reagan.", "PEZ candy even comes in a Coffee flavor.", "The first song played on Armed Forces Radio during operation Desert Shield was 'Rock the Casba' by the Clash.", "Non-dairy creamer is flammable.", "The airplane Buddy Holly died in was the 'American Pie.' (Thus the name of the Don McLean song.)", "Each king in a deck of playing cards represents a great king from history. Spades - King David, Clubs - Alexander the Great, Hearts - Charlemagne, and Diamonds - Julius Caesar.", "Golf courses cover 4% of North America.", "The average person will accidentally eat just under a pound of insects every year.", "Until 1994, world maps and globes sold in Albania only had Albania on them.", "The value of Pi will be officially 'rounded down' to 3.14 from 3.14159265359 on December 31, 1999.", "The Great Wall of China is the only man-made structure visible from space.", "A piece of paper can be folded no more then 9 times.", "The amount of computer Memory required to run WordPerfect for Win95 is 8 times the amount needed aboard the space shuttle.", "The average North American will eat 35,000 cookies during their life span.", "Between 25% and 33% of the population sneeze when exposed to light.", "The most common name in world is Mohammed.", "Mount Olympus Mons on Mars is three times the size of Mount Everest.", "Most toilets flush in E flat.", "2,000 pounds of space dust and other space debris fall on the Earth every day.", "Each month, there is at least one report of UFOs from each province of Canada.", "40,000 Americans are injured by toilets each year.", "You can be fined up to $1,000 for whistling on Sunday in Salt Lake City, Utah.", "It takes about 142.18 licks to reach the center of a Tootsie pop.", "The serial number of the first MAC ever produced was 2001.", "It is illegal to eat oranges while bathing in California.", "If done perfectly, a rubix cube combination can be solved in 17 turns.", "The average American butt is 14.9 inches long.", "More bullets were fired in 'Starship Troopers' than any other movie ever made.", "60% of electrocutions occur while talking on the telephone during a thunderstorm.", "The name of the girl on the statue of liberty is Mother of Exiles.", "3.6 cans of Spam are consumed each second.", "There's a systematic lull in conversation every 7 minutes.", "The buzz from an electric razor in America plays in the key of B flat; Key of G in England.", "There are 1,575 steps from the ground floor to the top of the Empire State building.", "The world's record for keeping a Lifesaver in the mouth with the hole intact is 7 hrs 10 min.", "There are 293 ways to make change for a dollar.", "The world record for spitting a watermelon seed is 65 feet 4 inches.", "In the Philippine jungle, the yo-yo was first used as a weapon.", "Dueling is legal in Paraguay as long as both parties are registered blood donors.", "Texas is also the only state that is allowed to fly its state flag at the same height as the U.S. flag.", "The three most recognized Western names in China are Jesus Christ, Richard Nixon, & Elvis Presley.", "There is a town in Newfoundland, Canada called Dildo.", "The Boston University Bridge (on Commonwealth Avenue, Boston, Massachusetts) is the only place in the world where a boat can sail under a train driving under a car driving under an airplane.", "All 50 states are listed across the top of the Lincoln Memorial on the back of the $5 bill.", "In space, astronauts are unable to cry, because there is no gravity and the tears won't flow.", "Chewing gum while peeling onions will keep you from crying.", "There are more plastic flamingos in the U.S that there are real ones.", "The crack of a whip is actually a tiny sonic boom, since the tip breaks the sound barrier.", "Jupiter is bigger than all the other planets in our solar system combined.", "Hot water is heavier than cold.", "The common idea that only 10% of the brain is used it not true as it is impossible to determine the actual percentage because of the complexity of the brain.", "Lawn darts are illegal in Canada.", "There are more psychoanalysts per capita in Buenos Aires than any other place in the world.", "Between 2 and 3 jockeys are killed each year in horse racing.", "5,840 people with pillow related injuries checked into U.S. emergency rooms in 1992.", "The average woman consumes 6 lbs of lipstick in her lifetime.", "Some individuals express concern sharing their soap, rightly so, considering 75% of all people wash from top to bottom.", "Conception occurs most in the month of December.", "CBS' '60 Minutes' is the only TV show without a theme song/music.", "Half of all Americans live within 50 miles of their birthplace.", "'Obsession' is the most popular boat name.", "On average, Americans' favorite smell is banana.", "If one spells out numbers, they would have to count to One Thousand before coming across the letter 'A'.", "Honey is the only food which does not spoil.", "3.9% of all women do not wear underwear.", "This common everyday occurrence composed of 59% nitrogen, 21% hydrogen, and 9% dioxide is called a 'fart'.", "'Evaluation and Parameterization of Stability and Safety Performance Characteristics of Two and Three Wheeled Vehicular Toys for Riding.' Title of a $230,000 research project proposed by the Department of Health, Education and Welfare, to study the various ways children fall off bicycles.", "Babies are born without kneecaps. They don't appear until the child reaches 2-6 years of age.", "Meteorologists claim they're right 85% of the time (think about that one!)", "In 1980, a Las Vegas hospital suspended workers for betting on when patients would die.", "Los Angeles' full name 'El Pueblo de Nuestra Senora la Reina de Los Angeles de Porciuncula' is reduced to 3.63% of its size in the abbreviation 'L.A.'.", "If you went out into space, you would explode before you suffocated because there's no air pressure.", "The only real person to ever to appear on a pez dispenser was Betsy Ross.", "Mike Nesmith's (the guitarist of The Monkeys) mom invented White Out.", "Only 6 people in the whole world have died from moshing.", "241. In a test performed by Canadian scientists, using various different styles of music, it was determined that chickens lay the most eggs when pop music was played.", "The storage capacity of human brain exceeds 4 Terabytes.", "In Vermont, the ratio of cows to people is 10:1", "Any free-moving liquid in outer space will form itself into a sphere, because of its surface tension.", "The average American looks at eight houses before buying one.", "In the average lifetime, a person will walk the equivalent of 5 times around the equator.", "Koala is Aboriginal for 'no drink'.", "Shakespeare spelled his OWN name several different ways.", "The first contraceptive was crocodile dung used by the ancient Egyptians.", "A signature is called a John Hancock because he signed the Declaration of Independence. Only 2 people signed the declaration of independence on July 4. The Last person signed 2 years later.", "Arnold Schonberg suffered from triskaidecaphobia, the fear of the number 13. He died at 13 minutes from midnight on Friday the 13th.", "Mozart wrote the nursery rhyme 'twinkle, twinkle, little star' at the age of 5.", "Weatherman Willard Scott was the first original Ronald McDonald.", "Virginia Woolf wrote all her books standing.", "Einstein couldn't speak fluently until after his ninth birthday. His parents thought he was mentally retarded.", "Al Capone's business card said he was a used furniture dealer.", "Deborah Winger did the voice of E.T.", "Kelsey Grammar sings and plays the piano for the theme song of Fraiser.", "Thomas Edison, acclaimed inventor of the light bulb, was afraid of the dark.", "In England, the Speaker of the House is not allowed to speak.", "You can sail all the way around the world at latitude 60 degrees south.", "The earth weighs around 6,588,000,000,000,000,000,000,000,000 tons.", "Peanuts are one of the ingredients of dynamite.", "Porcupines can float in water.", "The average person's left hand does 56% of the typing.", "A shark is the only fish that can blink with both eyes.", "The longest one-syllable word in the English language is 'screeched.'", "All of the clocks in the movie 'Pulp Fiction' are stuck on 4:20, a national pot-smokers hour.", "'Dreamt' is the only English word that ends in the letters 'mt.'", "Almonds are a member of the peach family.", "Winston Churchill was born in a ladies' room during a dance.", "Maine is the only state whose name is just one syllable.", "There are only four words in the English language which end in 'dous': tremendous, horrendous, stupendous, and hazardous.", "Tigers not only have striped fur, they have striped skin!", "In most advertisements, including newspapers, the time displayed on a watch is 10:10.", "On the ground, a group of geese is a gaggle, in the sky it is a skein.", "To Ensure Promptness, one is expected to pay beyond the value of service – hence the later abbreviation: T.I.P.", "When the University of Nebraska Cornhuskers play football at home, the stadium becomes the state's third largest city.", "The characters Bert and Ernie on Sesame Street were named after Bert the cop and Ernie the taxi driver in Frank Capra's 'Its A Wonderful Life.'", "A dragonfly has a lifespan of 24 hours.", "A dime has 118 ridges around the edge.", "On an American one-dollar bill, there is an owl in the upper left-hand corner of the '1'encased in the 'shield' and a spider hidden in the front upper right-hand corner.", "The name for Oz in the 'Wizard of Oz' was thought up when the creator, Frank Baum, looked at his filing cabinet and saw A-N, and O-Z; hence the name 'OZ.'", "The microwave was invented after a researcher walked by a radar tube and a chocolate bar melted in his pocket.", "Mr. Rogers is an ordained minister.", "John Lennon's first girlfriend was named Thelma Pickles.", "There are 336 dimples on a regulation golf ball.", "The scene where Indiana Jones shoots the swordsman in Raider’s of the Lost Ark was Harrison Ford's idea so that he could take a bathroom break.", "A crocodile cannot stick its tongue out.", "A snail can sleep for three years.", "All polar bears are left-handed.", "China has more English speakers than the United States.", "Elephants are the only animals that can't jump.", "February 1865 is the only month in recorded history not to have a full moon.", "If the population of China walked past you in single file, the line would never end because of the rate of reproduction.", "If you yelled for 8 years, 7 months and 6 days, you will have produced enough sound energy to heat one cup of coffee.", "In the last 4000 years, no new animals have been domesticated.", "Leonardo Da Vinci invented the scissors.", "The word 'set' has more definitions than any other word in the English language.", "Nutmeg is extremely poisonous if injected intravenously.", "On average, people fear spiders more than they do death.", "One of the reasons marijuana is illegal today is because cotton growers in the 1930s lobbied against hemp farmers they saw it as competition.", "Shakespeare invented the word 'assassination' and 'bump'.", "Some lions mate over 50 times a day.", "Starfish haven't got brains.", "The ant always falls over on its right side when intoxicated.", "The name of all continents in the world end with the same letter that they start with.", "There are two credit cards for every person in the United States.", "The longest word comprised of one row on the keyboard is: TYPEWRITER", "You can't kill yourself by holding your breath. ", "The average person spends 12 weeks a year 'looking for things'.", "The symbol on the 'pound' key (#) is called an octothorpe.. ", "The dot over the letter 'i' is called a tittle. ", "Ingrown toenails are hereditary. ", "'Underground' is the only word in the English language that begins and ends with the letters 'und'", "The longest word in the English language, according to the Oxford English Dictionary, is: pneumonoultramicroscopicsilicovolcanoconiosis.. ", "The longest place-name still in use is: Taumatawhakatangihangakoauauotamateaturipukakapikimaungahoronukupokaiakitnatahu, a New Zealand hill. ", "An ostrich's eye is bigger than its brain. ", "Alfred Hitchcock didn't have a belly button. It was eliminated when he was sewn up after surgery.", "Telly Savalas and Louis Armstrong died on their birthdays. ", "Donald Duck's middle name is Fauntleroy. ", "The muzzle of a lion is like a fingerprint - no two lions have the same pattern of whiskers. ", "Steely Dan got their name from a sexual device depicted in the book 'The Naked Lunch'. ", "The Ramses brand condom is named after the great pharoh Ramses II who fathered over 160 children.", "There is a seven letter word in the English language that contains ten words without rearranging any of its letters, 'therein': the, there, he, in, rein, her, here, ere, therein, herein. ", "A goldfish has a memory span of three seconds. ", "Cranberries are sorted for ripeness by bouncing them; a fully ripened cranberry can be dribbled like a basketball. ", "The male gypsy moth can 'smell' the virgin female gypsy moth from 1.8 miles away. ", "The letters KGB stand for Komitet Gosudarstvennoy Bezopasnosti. ", "The word 'dexter' whose meaning refers to the right hand is typed with only the left hand. ", "To 'testify' was based on men in the Roman court swearing to a statement made by swearing on their testicles. ", "Facetious and abstemious contain all the vowels in the correct order, as does arsenious, meaning 'containing arsenic.' ", "The word 'Checkmate' in chess comes from the Persian phrase 'Shah Mat,' which means 'the king is dead.'", "The first episode of 'Joanie Loves Chachi' was the highest rated American program in the history of Korean television, a country where 'Chachi' translates to 'penis'. ", "Rubber bands last longer when refrigerated. ", "The national anthem of Greece has 158 verses. No one in Greece has memorized all 158 verses. ", "Two-thirds of the world's eggplant is grown in New Jersey. ", "The giant squid has the largest eyes in the world.", "Giraffes have no vocal cords.", "The pupils of a goat's eyes are square.", "Van Gogh only sold one painting when he was alive.", "A standard slinky measures 87 feet when stretched out.", "The highest per capita Jell-O comsumption in the US is Des Moines.", "If a rooster can't fully extend its neck, it can't crow.", "There were always 56 curls in Shirley Temple's hair.", "The eyes of a donkey are positioned so that it can see all four feet at all times.", "Worcestershire sauce in essentially an Anchovy Ketchup.", "Rhode Island is the only state which the hammer throw is a legal high school sport.", "The average lifespan of an eyelash is five months.", "A spider has transparent blood.", "Every acre of American crops harvested contains 100 pounds of insects.", "Prince Charles is an avid collecter of toilet seats.", "The most common street name in the U.S. is Second Street.", "Tehran is the most expensive city on earth.", "The sweat drops drawn in cartoon comic strips are called pleuts.", "Babies are most likely to be born on Tuesdays.", "The HyperMart outside of Garland Texas has 58 check-outs.", "The Minneapolis phone book has 21 pages of Andersons.", "In the 1980's American migraines increased by 60%.", "Poland is the 'stolen car capital of the world'.", "Jefferson invented the dumbwaiter, the monetary system, and the folding attic ladder.", "The S in Harry S. Truman did not stand for anything.", "In Miconesia, coins are 12 feet across.", "A horse can look forward with one eye and back with the other.", "Shakespeare is quoted 33,150 times in the Oxford English dictionary.", "The word Pennsylvania is misspelled on the Liberty Bell.", "NBA superstar Michael Jordan was originally cut from his high school basketball team.", "You spend 7 years of your life in the bathroom.", "A family of 26 could go to the movies in Mexico city for the price of one in Tokyo.", "10,000 Dutch cows pass through the Amsterdam airport each year.", "Approximately every seven minutes of every day, someone in an aerobics class pulls their hamstring.", "Simplistic passwords contribute to over 80% of all computer password break-ins.", "The top 3 health-related searches on the Internet are (in this order): Depression, Allergies, & Cancer.", "Dentists have recommended that a toothbrush be kept at least 6 feet away from a toilet to avoid airborne particles resulting from the flush.", "Most dust particles in your house are made from dead skin.", "Venus is the only planet that rotates clockwise.", "Oak trees do not produce acorns until they are fifty years of age or older.", "The first owner of the Marlboro company died of lung cancer.", "All US Presidents have worn glasses; some just didn't like being seen wearing them in public.", "Mosquito repellents don't repel. They hide you. The spray blocks the mosquito's sensors so they don't know you're there.", "Walt Disney was afraid of mice.", "The site with the highest number of women visitors between the age of 35 and 44 years old: Alka-Seltzer.com", "The king of hearts is the only king without a mustache.", "Pearls melt in vinegar.", "It takes 3,000 cows to supply the NFL with enough leather for a year's supply of footballs.", "Thirty-five percent of people who use personal ads for dating are already married.", "The 3 most valuable brand names on earth are Marlboro, Coca-Cola, and Budweiser (in that order).", "Humans are the only primates that don't have pigment in the palms of their hands.", "Months that begin on a Sunday will always have a 'Friday the 13th'.", "The fingerprints of koala bears are virtually indistinguishable from those of humans, so much so that they can be easily confused at a crime scene.", "The mask worn by Michael Myers in the original 'Halloween' was actually a Captain Kirk mask painted white.", "The only two days of the year in which there are no professional sports games--MLB, NBA, NHL, or NFL--are the day before and the day after the Major League All-Star Game.", "Only one person in two billion will live to be 116 or older.", "When the French Academy was preparing its first dictionary, it defined 'crab' as, 'A small red fish, which walks backwards.' This definition was sent with a number of others to the naturalist Cuvier for his approval. The scientist wrote back, 'Your definition, gentlemen, would be perfect, only for three exceptions. The crab is not a fish, it is not red and it does not walk backwards.'", "Dr. Jack Kevorkian first patient has Alzheimer's disease.", "Fictional/horror writer Stephen King sleeps with a nearby light on to calm his fear of the dark.", "It's possible to lead a cow upstairs but not downstairs.", "It was discovered on a space mission that a frog can throw up. The frog throws up its stomach first, so the stomach is dangling out of its mouth. Then the frog uses its forearms to dig out all of the stomach's contents and then swallows the stomach back down.", "The very first song played on MTV was 'Video Killed The Radio Star' by the Buggles.", "William Marston engineered one of the earliest forms of the polygraph in the early 1900's. Later he went on to create the comic strip Wonder Woman, a story about a displaced Amazon princess who forces anyone caught in her magic lasso to tell the truth", "Americans travel 1,144,721,000 miles by air every day", "The the U.S. you dial '911'. In Stockholm, Sweden you dial 90000", "38% of American men say they love their cars more than women", "The U.S. military operates 234 golf courses", "100% of lottery winners do gain weight", "Bullet proof vests, fire escapes, windshield wipers, and laser printers were all invented by women", "A cat has 32 muscles in each ear.", "A duck's quack doesn't echo, and no one knows why.", "Cats urine glows under a black light.", "In every episode of Seinfeld there is a Superman somewhere.", "Lorne Greene had one of his nipples bitten off by an alligator while he was host of 'Lorne Greene's Wild Kingdom.'", "Pamela Anderson Lee is Canada's Centennial Baby, being the first baby born on the centennial anniversary of Canada's independence.", "Pinocchio is Italian for 'pine head.'", "When possums are playing 'possum', they are not 'playing.' They actually pass out from sheer terror.", "Who's that playing the piano on the 'Mad About You' theme? Paul Reiser himself.", "Winston Churchill was born in a ladies' room during a dance.", "Most lipstick contains fish scales!", "Donald Duck comics were banned from Finland because he doesn't wear pants!", "There are more than 10 million bricks in the Empire State Building!", "Camels have three eyelids to protect themselves from blowing sand!", "The placement of a donkey's eyes in its' heads enables it to see all four feet at all times!", "The average American/Canadian will eat about 11.9 pounds of cereal per year!", "Over 1000 birds a year die from smashing into windows!", "The state of Florida is bigger than England!", "Dolphins sleep with one eye open!", "In the White House, there are 13,092 knives, forks and spoons!", "Recycling one glass jar, saves enough energy to watch T.V for 3 hours!", "Owls are one of the only birds who can see the color blue!", "Honeybees have a type of hair on their eyes!", "A jellyfish is 95 percent water!", "In Bangladesh, kids as young as 15 can be jailed for cheating on their finals!", "The katydid bug hears through holes in its hind legs!", "Q is the only letter in the alphabet that does not appear in the name of any of the United States!", "166,875,000,000 pieces of mail are delivered each year in the US", "Bats always turn left when exiting a cave", "The praying mantis is the only insect that can turn its head", "Daffy Duck's middle name is 'Dumas'", "In Disney's Fantasia, the Sorcerer's name is 'Yensid' (Disney backwards.)", "In The Empire Strikes Back there is a potato hidden in the asteroid field", "Walt Disney holds the world record for the most Academy Awards won by one person, he has won twenty statuettes, and twelve other plaques and certificates", "James Bond's car had three different license plates in Goldfinger", "Canada makes up 6.67 percent of the Earth's land area", "South Dakota is the only U.S state which shares no letters with the name of it's capital", "The KGB is headquartered at No. 2 Felix Dzerzhinsky Square, Moscow", "The Vatican city registered 0 births in 1983", "Spain leads the world in cork production", "There are 1,792 steps in the Eiffel Tower", "There are 269 steps to the top of the Leaning Tower of Pisa", "Leonardo da Vinci could write with one hand while drawing with the other", "Rubber bands last longer when refrigerated.", "Peanuts are one of the ingredients of dynamite.", "The national anthem of Greece has 158 verses. No one in Greece has memorized all 158 verses.", "There are 293 ways to make change for a dollar.", "The average secretary’s left hand does 56% of the typing.", "A shark is the only fish that can blink with both eyes.", "There are more chickens than people in the world (at least before that chicken-flu thing).", "Two-thirds of the world’s eggplant is grown in New Jersey.", "The longest one-syllable word in the English language is 'screeched.'", "All of the clocks in the movie Pulp Fiction are stuck on 4:20.", "No word in the English language rhymes with month, orange, silver or purple.", "'Dreamt' is the only English word that ends in the letters 'mt'.", "All 50 states are listed across the top of the Lincoln Memorial on the back of the $5 bill.", "Almonds are members of the peach family.", "Winston Churchill was born in a ladies’ room during a dance.", "Maine is the only state whose name is just one syllable.", "There are only four words in the English language which end in 'dous': tremendous, horrendous, stupendous, and hazardous.", "Los Angeles’s full name is 'El Pueblo de Nuestra Senora la Reina de los Angeles de Porciuncula'. And can be abbreviated to 3.63% of its size, 'L.A.'", "A cat has 32 muscles in each ear.", "An ostrich’s eye is bigger than it’s brain.", "Tigers have striped skin, not just striped fur.", "In most advertisements, including newspapers, the time displayed on a watch is 10:10.", "Al Capone’s business card said he was a used furniture dealer.", "The only real person to be a Pez head was Betsy Ross.", "When the University of Nebraska Cornhuskers plays football at home, the stadium becomes the state’s third largest city.", "The characters Bert and Ernie on Sesame Street were named after Bert the cop and Ernie the taxi driver in Frank Capra’s 'Its A Wonderful Life'", "A dragonfly has a lifespan of 24 hours.", "A goldfish has a memory span of three seconds.", "A goldfish has a memory span of three seconds.", "A dime has 118 ridges around the edge.", "On an American one-dollar bill, there is an owl in the upper left-hand corner of the '1' encased in the 'shield' and a spider hidden in the front upper right-hand corner.", "It’s impossible to sneeze with your eyes open.", "The giant squid has the largest eyes in the world.", "Who’s that playing the piano on the 'Mad About You' theme? Paul Reiser himself.", "The male gypsy moth can 'smell' the virgin female gypsy moth from 1.8 miles away (pretty good trick).", "In England, the Speaker of the House is not allowed to speak.", "The name for Oz in the 'Wizard of Oz' was thought up when the creator, Frank Baum, looked at his filing cabinet and saw A-N, and O-Z, hence 'Oz.'", "The microwave was invented after a researcher walked by a radar tube and a chocolate bar melted in his pocket.", "Mr. Rogers is an ordained minister.", "John Lennon’s first girlfriend was named Thelma Pickles.", "The average person falls asleep in seven minutes.", "There are 336 dimples on a regulation golf ball.", "'Stewardesses' is the longest word that is typed with only the left hand.", "The 'pound' key on your keyboard (#) is called an octotroph.", "The only domestic animal not mentioned in the Bible is the cat.", "The 'dot' over the letter 'i' is called a tittle.", "Table tennis balls have been known to travel off the paddle at speeds up to 160 km/hr.", "Pepsi originally contained pepsin, thus the name.", "The original story from 'Tales of 1001 Arabian Nights' begins, 'Aladdin was a little Chinese boy.'", "Nutmeg is extremely poisonous if injected intravenously.", "Honey is the only natural food that is made without destroying any kind of life. What about milk you say? A cow has to eat grass to produce milk and grass are living.", "Hawaiian alphabet only has 12 letters: A, E, I, O, U, H, K, L, M, N, P, W", "Honey is the only food that does not spoil.", "And one single teaspoon of honey represents the life work of 12 bees.", "Flamingos only can eat with their heads upside down.", "Lighter was invented ten years before the match was.", "It’s physically impossible for a pig to look up at the sky.", "The first internet domain name to ever be registered is Symbolics.com on March 15th, 1985.", "Humans are born with 350 bones in their body, but when reaching adulthood, we only 260.", "There are 150 verses in Greek national anthem which making it the longest national anthem in the world.", "This is impossible to tickle yourself.", "A typical pencil can draw a line that is 35 miles long.", "Astronauts get taller in space due to the lack of gravity.", "The total surface area of human lungs is 750 square feet. That’s roughly the same area as on-side of a tennis court.", "Mosquitos have contributed to more deaths than any animals on earth.", "An octopus has 3 hearts, 9 brains & blue blood.", "The hair on a polar bear is actually not white but clear. They appear white because it reflects light.", "A chameleon can move its eyes in two different directions at the same time.", "Buttermilk does not contain any butter and actually low in fat.", "A giraffe can go longer without water than a camel can.", "Australia has the biggest camel population in the world.", "Snails can sleep up to 3 years.", "Methane gases produced by cow products as much pollution as cars do.", "The majority of the duct in your house is made up from your own dead skin.", "Most lipstick contains fish scales.", "Most ice-cream contains pig skins (Gelatin).", "The Philippine island of Luzon contains a lake that contains an island that contains a lake that contains another island.", "Hudson Bay Area in Canada had less gravity than rest of the world and scientists do not know why.", "Only one to two percent of the entire world population are natural redheads.", "Sloppy handwriting has doctors kills more than 7,000 people and injures more than 1.5million people annually due to getting the wrong medication.", "Putting sugar on a wound or cut will greatly reduce pain and shorten healing process.", "Real diamonds do not show up in X-ray.", "Due to extreme pressure and weather conditions, it literally rains diamonds on Neptune and Uranus.", "There are 7 different kinds of twins: Identical, Fraternal, Half-Identical, Mirror Image Twins, Mixed Chromosome Twins, Superfecundation and Superfetation.", "Before the 17th century, carrots were actually purple. They didn’t get their orange color until mutation occupied.", "If the sun is scaled down to the size of a white blood cell, the Milky Way would be equal the size of the United States.", "A grammatical pedantry syndrome is a form of OCD in which suffers feel the need to correct every grammatical error that they see.", "Scorpions can hold their breath underwater for up to 6 days.", "In zero gravity, a candle’s flame is round and blue.", "Only 8 percent of the world’s money exists in physical form, the rest is in computers.", "Crows are able to recognize human faces and even hold grudges against ones that they don’t like.", "Your cellphone carries up to ten times more bacteria than a toilet seat.", "Humans and bananas share about 50 percent of the same DNA.", "Humans have fewer chromosomes than a potato.", "An American Pharmacist named John Pemberton invented Coca-Cola who advertises it as a nerve tonic for curing headaches and fatigue.", "Statistically, you are more likely to die on the way to buy a lottery ticket than you are to win the lottery itself.", "The word checkmate comes from the Arabic which means 'the king is dead.'", "Hot water turns to ice faster than cool water. This is known as the Mpemba effect.", "Apollo 7 Mission was the first 'astronaut ice cream' flew in space. However, it was so unpopular among astronauts and was retired from the menu after only one trip into space.", "Apollo 8 astronauts were the first to celebrate Christmas in space.", "IV Is The Roman Numeral designation for 4 everywhere. However, on the clock face, 4 is displayed as 'IIII'.", "The Apple Macintosh had the signatures Of its design team engraved inside its case.", "Japan has the most vending machines per capita, a staggering 1:23.", "A study by University Chicago in 1915, it concluded that the easiest color to spot at a distance is the color yellow. Which is why the most popular color for taxi cabs are yellow.", "Japanese police declare murders that they cannot solve as suicides, in order to save faces and keep crime rate artificially low.", "The smallest poisonous frogs only 10 millimeters (0.393701 inch) in length.", "Farting helps to reduce blood pressure and is good for your overall health.", "In 1994, the US Air Force did research on creating a gay bomb (are informal names for theoretical non-lethal chemical weapon) which is a non-lethal bomb containing very strong human sexual pheromones that would make the enemy forces attracted to each other.", "There are around 1,584 people in the United States named 'Seven'.", "The classic heart shape that we all know was meant to be two hearts fused together.", "The water we drink is older than the sun. The sun is 4.6 billion years old.", "The water on our planet is very old. The water we have now is the same water that existed hundreds of millions of year ago. The next time you drink a glass of water, you could be about to sip on dinosaur pee.", "Meanwhile, about 40% of Americans think humans and dinosaurs existed at the same time.", "Nobody knows who named our planet 'Earth'.", "Michael Nicholson from Michigan. He has one bachelor’s degree, two associate’s degrees, 22 master’s degrees, three specialist degrees and one doctoral degree, making him the most credentialed person in history.", "Practicing a kill in your head will make you better at it, but only if you’re already good at it.", "If two identical twins have children with another pair of identical twins, then their children will genetically be full siblings.", "In Biertan village (located in Transylvania, Romania) the church had a 'divorce-reconciliation room.' Couples that wanted to get a divorce had to live in a room for two weeks with one small bed, one chair, one table, one plate and one spoon. In 300 years, they only had one divorce.", "Killing a panda in China is a seriously crime. It is punishable by death.", "December 4th is the National Cookie Day!", "Beards can slow the aging process by stopping water from leaving the skin, keeping it moisturized.", "A survey found that 33% of men and 43% of women claimed that they had fallen in love with someone they did not initially find attractive.", "Most people dream in color, but those who grow up watching television in black and white are more likely to dream in black and white.", "Mixing your drinks with diet soda can get you drunk about 18% faster than regular soda. Hummm…", "The number of H2O molecules in 10 drops of water is roughly equal to the total amount of stars in the universe.", "Octopuses have copper-based blood instead of iron-based blood, which is why their blood is blue rather than red.", "Also, they have three hearts and nine brains", "The hormones responsible for your growth are only produced when you sleep.", "You touch your face an average of once every three minutes. And you properly touched your face after you read it.", "People who sleep less than six hours a night are 4.2 times more likely to catch a cold compared those who get more than seven hours of sleep.", "Dogs can make about 100 different facial expressions.", "Iceland has no army as is often recognized as the most peaceful country in the world.", "Shigeru Miyamoto – maker of Super Mario Bros. and Donkey Kong – is not allowed to bike to work because his safety is too important to Nintendo.", "Every year, women lose approximately 1.73 billion bobby pins.", "Dolphins give each other 'names' – Specific sounds that they use to call friends and family.", "Chimpanzee babies like to play with dolls – They’ll make dolls out of sticks and rocks for themselves.", "Squirrels plant thousands of trees every year, simply by forgetting where they put their acorns.", "Koalas can sleep for up to 20 hours a day.", "The average woman will spend one full year of her life trying to decide what to wear.", "The average woman owns eight times more makeup than she actually uses.", "Rainbows that appear at night are called 'moonbows.'", "100 million years ago, crocodiles had long legs and could gallop after their prey.", "The real Top Gun school give a $5 fine to any staff member that quotes the movie."] tv_series=["12 Monkeys","19-2 (2014)","2 Broke Girls","24","60 Minutes Australia","60 Minutes US","8 Out of 10 Cats","A D The Bible Continues","A to Z","A Young Doctor's Notebook","About a Boy","Adventure Time","Air Crash Investigation - Mayday","Alaska: The Last Frontier","Alaskan Bush People","Ali G: Rezurection","Allegiance","Almost Human","Almost Royal","Alpha House","Ambassadors","America Declassified","America Unearthed","America's Got Talent","America's Next Top Model","American Crime","American Dad!","American Horror Story","American Idol","American Ninja Warrior","American Odyssey","American Pickers","American Restoration","Ancient Aliens","Anger Management","Another Period","Anthony Bourdain: Parts Unknown","Antiques Roadshow UK","Aqua TV Show Show","Aquarius (US)","Archer (2009)","Arctic Air","Arrow","At Midnight","Atlantis","Attack on Titan","Avengers Assemble (2013)","Awkward.","Axe Cop","Baby Daddy","Babylon","Bachelor in Paradise","Back in the Game","Backstrom","Bad Education","Bad Ink","Bad Judge","Bad Teacher","Ballers","Banished","Banshee","Bar Rescue","Bates Motel","Battle Creek","Beauty and the Beast (2012)","Being Human (US)","Being Mary Jane","Believe","Ben 10: Omniverse","Benched","Bering Sea Gold","Best Ink","Better Call Saul","Between","Big Brother (UK)","Big Brother US","Big School","Big Time in Hollywood, FL","Bitten","Black Box","Black Dynamite","Black Gold","Black Jesus","Black Mirror","Black Sails","Black-ish","Blue Bloods","Bluestone 42","Boardwalk Empire","Bob's Burgers","Bones","Bosch","Boston's Finest","Brain Games","Brew Dogs","Brickleberry","Broad City","Broadchurch","Brooklyn Nine-Nine","Bullseye","Californication","Call the Midwife","Castle (2009)","Casualty","Catastrophe","Catfish: The TV Show","Celebrity Juice","Charlie Brooker's Weekly Wipe","Chasing Life","Chasing Shadows","Chicago Fire","Chicago P.D.","Chickens","Childrens Hospital","China, IL","Chopped","Chozen","Citizen Khan","Clipped","Cockroaches","Comedy Bang! Bang!","Comedy Underground with Dave Attell","Comic Book Men","Community","Complications","Conan (2010)","Constantine","Continuum","Cops","Cosmos: A Spacetime Odyssey","Cougar Town","Covert Affairs","Cracked (2013)","Criminal Minds","Crisis","Cristela","Critical","Crossbones","Crossing Lines","CSI: Crime Scene Investigation","CSI: Cyber","Cuckoo","Curiosity","Da Vinci's Demons","Dads (2013)","Dallas (2012)","Dancing With the Stars","Danger 5","Dara O Briain's Science Club","Dark Matter","DCI Banks","Dead Boss","Deadliest Catch","Death in Paradise","Debbie Macomber's Cedar Cove","Defiance","Degrassi","Derek","Devious Maids","DIG","Doctor Who (2005)","Doctor Who Extra","Doll &amp; Em","Dominion","Downton Abbey","Dracula","Dragons' Den (Canada)","Drifters","Drop Dead Diva","Drugs, Inc.","Drunk History","Duck Dynasty","Duck Quacks Don't Echo","Eagleheart","EastEnders","Elementary","Empire","Enlisted","Episodes","ESPN 30 for 30","Extant","Eye Candy","Face Off","Faking It","Falling Skies","Family Guy","Fargo","Fast N' Loud","Fear Factor","Fear The Walking Dead","Fifth Gear","Finding Bigfoot","Finding Carter","Forever","Forever (US)","Fortitude","Foyle's War","Franklin &amp; Bash","Fresh Meat","Fresh Off the Boat","Friends With Better Lives","From Dusk Till Dawn: The Series","Galavant","Game of Thrones","Gang Related","Garfunkel and Oates","Geordie Shore","Get Out Alive (2013)","Getting On (US)","Ghost Adventures","Ghost Hunters","Girl Meets World","Girlfriends' Guide to Divorce","Girls","Glee","Gogglebox","Gold Rush","Good Witch","Gotham","Graceland","Gracepoint","Grand Designs","Gravity Falls","Grey's Anatomy","Grimm","Ground Floor","Growing Up Fisher","Halt and Catch Fire","Hannibal","HAPPYish","Happyland","Hard Knocks","Hardcore Pawn","Hart of Dixie","Have I Got News for You","Haven","Hawaii Five-0","Heartland (2007) (CA)","Helix","Hell on Wheels","Hell's Kitchen (US)","Hemlock Grove","Heroes of Cosplay","Heston Blumenthal: In Search of Perfection","Highway Thru Hell","Hinterland","Holby City","Homeland","Horizon","Hot In Cleveland","Hotel Hell","House of Cards (2013)","House of Lies","How I Met Your Mother","How It's Made","How to Get Away With Murder","How We Got to Now","Hulk and the Agents of S.M.A.S.H.","Humans","I Can Do That (US)","I Wanna Marry Harry","Ice Road Truckers","If Loving You Is Wrong","Impact Wrestling","Impastor","Impractical Jokers","In the Flesh","Ink Master","Inside Amy Schumer","Inside Comedy","Inside No. 9","Intelligence","Intruders (2014)","It's Always Sunny in Philadelphia","iZombie","Jamie's Comfort Food","Jane the Virgin","Jennifer Falls","Jimmy Kimmel Live","Jonathan Strange &amp; Mr Norrell","Justified","Keeping Up with the Kardashians","Kevin From Work","Key &amp; Peele","Killjoys","King of the Nerds","Kingdom","Kingdom (2014)","Kirstie","Kitchen Nightmares US","Kodiak","Kroll Show","Last Comic Standing","Last Man Standing (2011)","Last Week Tonight with John Oliver","Late Night with Seth Meyers","Late Show with David Letterman","Law &amp; Order: Special Victims Unit","Law &amp; Order: UK","Legends","Legit (2013)","Lewis","Life Below Zero","Line of Duty","Lip Sync Battle","Live at the Apollo","Lizard Lick Towing","Location, Location, Location","Longmire","Looking","Lost Girl","Lost in Transmission","Louie (2010)","Mad Men","Madam Secretary","Major Crimes","Major Lazer","Man Seeking Woman","Manhattan","Manhattan Love Story","Maron","Married","Marry Me!","Marvel's Agent Carter","Marvel's Agents of S.H.I.E.L.D.","Marvel's Daredevil","Masterchef (US)","MasterChef Australia","MasterChef Junior","Masters of Sex","Matador","Match of the Day","Melissa &amp; Joey","Men at Work","Merlin","Midsomer Murders","Mike &amp; Molly","Mike Tyson Mysteries","Mind Games","Mistresses (US)","Mixology","Mob City","Mock the Week","Modern Family","Mom","Moone Boy","Moonshiners","Motive","Mozart in the Jungle","Mr Selfridge","Mr. Pickles","Mr. Robot","Mulaney","Murder in the First","Murdoch Mysteries","My Kitchen Rules","My Kitchen Rules UK","My Little Pony: Friendship is Magic","My Mad Fat Diary","My Tattoo Addiction","MythBusters","Naked and Afraid","Nashville","Nathan for You","NCIS","NCIS: Los Angeles","NCIS: New Orleans","New Girl","New Tricks","Newsreaders","No Offence","Not Going Out","NTSF:SD:SUV::","Nurse Jackie","Odd Mom Out","Offspring","Olympus","Once Upon a Time (2011)","Once Upon a Time in Wonderland","One Big Happy","Opposite Worlds","Orange Is the New Black","Orphan Black","Our Girl","Outlander","Parenthood (2010)","Parks and Recreation","Pawn Stars","Pawnography","Peaky Blinders","Peep Show","Penn and Teller Fool Us","Penny Dreadful","Perception","Person of Interest","Pit Bulls and Parolees","Played","Playing House","Please Like Me","Plebs","Pokémon","Poldark","Portlandia","Power","Powers","Powers (US)","Pretty Little Liars","Project Runway","Project Runway All Stars","Proof","Proof (US)","Psych","Puberty Blues","QI","Railroad Alaska","Raising Hope","Rake (US)","Ray Donovan","Real Husbands of Hollywood","Real Time with Bill Maher","Reckless US","Rectify","Red Band Society","Red Dwarf","Regular Show","Reign","Remedy","Republic of Doyle","Restaurant: Impossible","Resurrection","Revenge","Review With Forrest Macneil","Revolution","Rick and Morty","Ridiculousness","Ripper Street","Rising Star","River Monsters","Rizzoli &amp; Isles","Rob Dyrdek's Fantasy Factory","Robot Chicken","Rogue","Rookie Blue","Royal Marines Commando School","Royal Pains","Rugby Super Rugby","Running Wild with Bears","RuPaul's Drag Race","Rush (US)","Salem","Sam &amp; Cat","Satisfaction (US)","Saturday Night Live","Saving Hope","Scandal (2012)","Schitt's Creek","Scorpion","Scott &amp; Bailey","Scream","Secrets and Lies (US)","See Dad Run","Seed","Selfie","Sense8","Serangoon Road","Sex Sent Me to the ER","Shameless (US)","Shark Tank","Sherlock","Siberia","Signed, Sealed, Delivered","Significant Mother","Silicon Valley","Single Ladies","Sirens (2014)","Slednecks","Sleepy Hollow","So You Think You Can Dance","So You Think You Can Dance US","Sons of Anarchy","Sons of Guns","Sons of Winter","South Park","Stalker","Star Wars Rebels","Star-Crossed","State of Affairs","Stitchers","Storage Wars","Strike Back","Suburgatory","Suits","SunTrap","Super Fun Night","Supernatural","Surviving Jack","Survivor","Survivorman","Swamp People","Switched at Birth","Talking Dead","Tatau","Tattoo Nightmares","Taxi Brooklyn","Teen Wolf","Teenage Mutant Ninja Turtles (1987)","Texas Rising","The 100","The Affair","The After","The Amazing Race","The Amazing Race Canada","The Americans (2013)","The Apprentice UK","The Apprentice US","The Apprentice: You're Fired!","The Arsenio Hall Show (2013)","The Astronaut Wives Club","The Bachelor","The Bachelorette","The Best Laid Plans","The Big Bang Theory","The Biggest Loser","The Birthday Boys","The Blacklist","The Block AU","The Block NZ","The Book of Negroes","The Boondocks","The Bridge (US)","The Brink","The Carbonaro Effect","The Carrie Diaries","The Challenge: Free Agents","The Colbert Report","The Comeback","The Comedians US","The Crazy Ones","The Daily Show with Jon Stewart","The Dead Files","The Devils Ride","The Divide","The Eric Andre Show","The Exes","The Fall","The Flash","The Following","The Fosters (2013)","The Gadget Show","The Game","The Goldbergs (2013)","The Good Wife","The Graham Norton Show","The Honourable Woman","The Interceptor","The Island","The Island with Bear Grylls","The Jim Gaffigan Show","The Jonathan Ross Show","The Knick","The Last Man on Earth","The Last Ship","The Late Late Show with Craig Ferguson","The League","The Leftovers","The Legend of Korra","The Librarians","The Librarians (US)","The Listener","The Lizzie Borden Chronicles","The Lottery","The Man In The High Castle","The Meltdown with Jonah and Kumail","The Mentalist","The Messengers","The Michael McIntyre Chat Show","The Middle","The Midnight Beast","The Millers","The Mindy Project","The Missing","The Musketeers","The Mysteries of Laura","The Neighbors","The Newsroom (2012)","The Night Shift","The Nightly Show with Larry Wilmore","The Odd Couple","The Originals","The Quest","The Real Housewives of Beverly Hills","The Real World","The Rebels","The Red Road","The Restoration Man","The Returned (US)","The Royals","The Simpsons","The Sing Off","The Slap (US)","The Soul Man","The Soup","The Spoils of Babylon","The Strain","The Taste UK","The Tomorrow People (2013)","The Tonight Show Starring Jimmy Fallon","The Tunnel","The Ultimate Fighter","The Universe","The Valleys","The Vampire Diaries","The Venture Bros.","The Voice","The Voice (UK)","The Voice (US)","The Walking Dead","The Whispers","The Wil Wheaton Project","The X Factor","The X Factor (AU)","Those Who Kill","Threesome","Through the Wormhole","Thunderbirds Are Go!","Tim and Eric's Bedtime Stories","Toast of London","Togetherness","Top Chef","Top Gear","Top Gear (US)","Tosh.0","Totally Biased with W. Kamau Bell","Transparent","Transporter","Treehouse Masters","Triptank","Trophy Wife","True Blood","True Detective","Turn","Twisted (2013)","Two and a Half Men","Tyrant","Ultimate Airport Dubai","Ultimate Spider Man Web Warriors","Uncle","Undateable","Under the Dome","Under The Gunn","Underbelly","Undercover Boss","Unforgettable","United Stuff of America","UnREAL","Upper Middle Bogan","Utopia","Utopia (AU) (2014)","Utopia (US)","Veep","Vera","Vice","Vicious","Vikings","W1A","Wallander","Warehouse 13","Wayward Pines","Weird Loners","Welcome to Sweden","Whale Wars","Wheeler Dealers","When Calls the Heart","White Collar","Who Do You Think You Are (UK)","Whose Line Is It Anyway","Wild West Alaska","Wilfred (US)","Wipeout (US)","Witches of East End","Wizard Wars","Wolf Hall","Workaholics","Would I Lie to You?","WWE Countdown","WWE Friday Night SmackDown","WWE Monday Night RAW","WWE NXT","WWE Raw is War","WWE Smackdown","X Company","You're the Worst","Young &amp; Hungry","Younger","Your Family or Mine","Yukon Men","Z Nation","Zoo"] triviaa=[["Horoscopes accurately predict future events 85% of the time.", 'false'], ["The National Weather Service will pay $30 for the rights to any original photograph of lightning. ", 'false'], ["Liberace was a notorious womanizer. ", 'false'], ["Due to a calendar mix-up, there were two years in a row identified as \"1973\". ", 'false'], ["Contrary to popular belief, the white is not the healthiest part of an egg. It's actually the shell. ", 'false'], ["Intelligent people have more zinc and copper in their hair.", 'true'], ["The Spanish word esposa means \"wife.\" The plural, esposas, means \"wives,\" but also \"handcuffs.\"", 'true'], ["Every member of the Australian band Men at Work is currently unemployed.", 'false'], ["In England, the Speaker of the House is not allowed to speak.", 'true'], ["About 20% of gift cards never are redeemed at the full value of the card.", 'true'], ["The only electrical equipment the Amish are allowed to use is a Panini press.", 'false'], ["The Q-Tip was developed after serious design flaws were found in both the O-Tip and the P-Tip.", 'false'], ["Superman is featured on every episode of \"Seinfeld\", either by name or pictures on Jerry's refrigerator.", 'true'], ["In Bangladesh, kids as young as 15 can be jailed for cheating on their finals.", 'true'], ["A 150-pound person weighs 165 pounds in Canada. ", 'false'], ["The highest point in Pennsylvania is lower than the lowest point in Colorado.", 'true'], ["George W. Bush, who presents himself as a man of faith, rarely goes to church. Yet he received votes from nearly two out of three voters who attend church at least once a week.", 'true'], ["No one in Canada has a birthday on March 16th.", 'false'], ["In the early 1950s, Philip Morris spent millions of dollars trying to teach dogs to smoke.", 'false'], ["In 21 states, Wal-Mart is the single largest employer.", 'true'], ["Pond's cold cream has an ingredient which is comprised of material which is found in pond scum.", 'false'], ["One out of five people in the world (1.1 billion people) live on less than $1 per day.", 'true'], ["For the first time in history, the number of people on the planet aged 60 or over will soon surpass those under 5.", 'true'], ["The original name of Bank of America was Bank of Italy. ", 'true'], ["Rome wasn't built in a day, although the contractor told them it would be.", 'false'], ["The elephant is the only mammal that can't jump.", 'true'], ["In the early 70s, McDonalds briefly offered customers a choice of French fries or consomme.", 'false'], ["Soldiers from every country salute with their right hand.", 'true'], ["A potato isn't a vegetable. It's a large bean.", 'false'], ["America once issued a 5-cent bill.", 'true'], ["Strains of bacteria similar to E. coli have been found in used printer cartridges - but only in the color cyan. Scientists have no explanation. ", 'false'], ["At the first World Cup championship in Uruguay, 1930, the soccer balls were actually monkey skulls wrapped in paper and leather. ", 'false'], ["Belt loops were invented fifty years earlier than the first belt.", 'false'], ["The shoe Nikita Khrushchev used to bang on the United Nations table was purchased by Thom McAn.", 'false'], ["Because he forgot his boots, Buzz Aldrin walked barefoot on the moon.", 'false'], ["Each year, sixteen million gallons of oil run off pavement into streams, rivers and eventually oceans in the United States. This is more oil than was spilled by the Exxon Valdez.", 'true'], ["The record for most appearances on the cover of Time Magazine is 26 by Tom Arnold.", 'false'], ["G-rated family films earn more money than any other rating. Yet only 3% of Hollywood's output is G-rated.", 'true'], ["Crate & Barrel once considered a merge with Linens & Things, forming a new chain \"Linens & Barrels\".", 'false'], ["Sylvia Miles had the shortest performance ever nominated for an Oscar with \"Midnight Cowboy.\" Her entire role lasted only six minutes.", 'true'], ["So far, Congress has authorized $152,600,000,000 for the Iraq war. This is enough to build over 17,500 elementary schools.", 'true'], ["The wobble in the rotation of the earth is causing a shift in its magnetic field. By the year 2327, the magnetic North Pole will be located in mid-Kansas, while the South Pole will be just off the coast of East Africa. ", 'false'], ["The Boeing 747 is capable of flying upside-down, except the wings would shear off when trying to roll it over. ", 'false'], ["In Salt Lake City, Utah, all TGIFriday's restaurants must close at 6 pm on Friday.", 'false'], ["In 2003, the Transportation Security Administration dropped a requirement that air marshals pass a marksmanship test. Some applicants were even hired after they repeatedly shot flight attendants in mock hijacking episodes.", 'true'], ["The New York City subway system, in an effort to raise revenue, is considering selling sponsorships of individual stations to corporations. Riders could soon be getting off at Nike Grand Central Station or Sony Times Square.", 'true'], ["Apple is working on a solar-powered iPod. The only drawback is that the solar panels make the unit the size of a large pizza box.", 'false'], ["The Venezuelan brown bat can detect and dodge individual raindrops in mid-flight, arriving safely back at his cave completely dry.", 'false'], ["On EBay, there are an average of $680 worth of transactions each second.", 'true'], ["Between 1942 and 1944, Academy Awards were made of plaster.", 'true'], ["If you were to spell out numbers, you would you have to go until 1,000 until you would find the letter \"A\".", 'true'], ["To ensure prompt delivery of e-mail, the post office recommends affixing a 41-cent stamp to your computer. ", 'false'], ["If you keep a goldfish in the dark room, it will eventually turn white.", 'true'], ["35 Billion e-mails are sent each day throughout the world.", 'true'], ["The least popular song to make love to: Taps.", 'false'], ["A Nigerian woman was caught entering the UK with 104 kg of snails in her baggage.", 'true'], ["In England, in the 1880's, \"Pants\" was considered a dirty word.", 'true'], ["Larry the Cable Guy has an illegal cable hook-up. ", 'false'], ["Most of the deck chairs on the Queen Mary 2 have had to be replaced because overweight Americans were breaking them.", 'true'], ["When George Lucas was mixing the American Graffiti soundtrack, he numbered the reels of film starting with an R and numbered the dialog starting with a D. Sound designer Walter Murch asked George for Reel 2, Dialog 2 by saying \"R2D2\". George liked the way that sounded so much he integrated that into another project he was working on.", 'true'], ["The \"UL\" designation (popular in the late 20th century, but not widely used now) was purchased by Consumer Reports in 1995. ", 'false'], ["David Bowie thinks he is being stalked by someone who is dressed like a giant pink rabbit. Bowie has noticed the fan at several recent concerts, but he became alarmed when he got on a plane and the bunny was on board.", 'true'], ["Fish have \"dandruff\" caused by their scales that flake off, and it is impossible to filter all traces of it from drinking water. ", 'false'], ["Solid structures (parking lots, roads, buildings) in the United States cover an area the size of Ohio.", 'true'], ["After he was President, Harry S. Truman briefly coached the Boston Celtics. (thanks to Eric Snyder) ", 'false'], ["The Mars Rover \"Spirit\" is powered by six small motors the size of \"C\" batteries. It has a top speed of 0.1 mph.", 'true'], ["Burt Reynolds was originally cast to be Han Solo in the first Star Wars film. He dropped out before filming.", 'true'], ["Chewing gum while peeling onions will keep you from crying.", 'true'], ["Average life span of a major league baseball: 7 pitches", 'true'], ["A private elementary school in Alexandria, Virginia, accidentally served margaritas to its schoolchildren, thinking it was limeade.", 'true'], ["Eleven top executives of the Direct Marketing Association (the telemarketers' group that is trying to kill the federal \"Do Not Call\" list) have registered for the list themselves.", 'true'], ["Percentage of men who say they are happier after their divorce or separation: 58", 'true'], ["Osama bin Laden had seen Woody Allen's \"Annie Hall\" 15 times.", 'false'], ["Johnny Plessey batted .331 for the Cleveland Spiders in 1891, even though he spent the entire season batting with a rolled-up, lacquered copy of the Toledo Post-Dispatch. ", 'false'], ["More than 2,500 left-handed people are killed each year from using products that are made for right-handed people.", 'true'], ["American Airlines saved $40,000 in 1987 by eliminating one olive from each salad served in first class.", 'true'], ["For every ton of fish that is caught in all the oceans on our planet, there are three tons of garbage dumped into the oceans.", 'true'], ["Iceland consumes more Coca-Cola per capita than any other nation.", 'true'], ["There has been no mail delivery in Canada on Saturday for the last thirty five years.", 'true'], ["Lou Ferrigno complains that years after \"The Hulk\" went off the air, he'd still turn green when angered. ", 'false'], ["When you flip the 2005 Minnesota statehood quarter, heads will come up 61% of the time instead of the expected 50%. ", 'false'], ["British pop singer Baby Spice is the great-great-great-great-great-great-grandniece of Archduke William Pinkley-Hogue of Staffordshire, making her 103rd in line for the throne of England. ", 'false'], ["During a nine month strike in 2002, the Weather Channel broadcast reruns.", 'false'], ["There is a Starbucks in Myungdong, South Korea that is five stories tall.", 'true'], ["It is nearly three miles farther to fly from Amarillo, Texas to Louisville, Kentucky than it is to return from Louisville to Amarillo. ", 'false'], ["Citizens in Ohio unsuccessfully tried to start a charitable organization called \"The Salvation Coast Guard\". (thanks to Eric Snyder) ", 'false'], ["Thomas Edison was the first person ever to say \"does my voice really sound like that?\"", 'false'], ["Due to a horse shortage, the 1936 Kentucky Derby was run with giraffes.", 'false'], ["The practice of putting a letter \"e\" in front of words to mean \"web-based\" (e.g., eBusiness, eLearning, etc.) was patented by Microsoft in 1992. They are waiting until their anti-trust trial has been officially completed to begin enforcing it. ", 'false'], ["Alexander Graham Bell (who invented the telephone) also set a world water-speed record of over seventy miles an hour at the age of 72.", 'true'], ["Over 1,000 birds a year die from smashing into windows.", 'true'], ["82% of Americans made a purchase at Wal-Mart in 2002.", 'true'], ["In comic strips, the person on the left always speaks first.", 'true'], ["The weight of air in a milk glass is about the same as the weight of an aspirin tablet.", 'true'], ["22% of airline pilots have a child named \"Roger\".", 'false'], ["Until last year, National Hockey League games that ended in a tie were settled by the Vice President. ", 'false'], ["If you hook Jell-O up to an EEG, it registers movements almost identical to a human adult's brain waves.", 'true'], ["The ant, when intoxicated, will always fall over to its right side.", 'true'], ["The little hole in the sink that lets the water drain out, instead of flowing over the side, is called a \"porcelator.\"", 'true'], ["Elastic in underwear will last twice as long if you refrigerate your underwear after washing.", 'false'], ["A bad case of laryngitis forced Abraham Lincoln to lip-sync the Gettysburg Address. The speech was actually delivered by an aide hidden beneath the stage. ", 'false'], ["When you hear a bullwhip snap, it's because the tip is traveling faster than the speed of sound.", 'true'], ["The US Army is handing out $2,500 to Fallujah residents whose property was destroyed by US planes and artillery.", 'true'], ["The first Egyptian chariots were powered by sails. (thanks to Eric Snyder) ", 'false'], ["Anthropologists have discovered a tribe of South American monkeys with a rudimentary system of government analogous to our own three-branch form of government. ", 'false'], ["32 out of 33 samples of well-known brands of milk purchased in Los Angeles and Orange counties in California had trace amounts of perchlorate. Perchlorate is the explosive component in rocket fuel.", 'true'], ["85% of the men that die while having sex are cheating on their wives. (thanks to Barbara Bassett) ", 'true'], ["Electronics merchant Radio Shack may have to change its name because of a pending lawsuit from Shaquille O'Neal.", 'false'], ["Al Gore's roommate in college (Harvard, class of 1969) was Tommy Lee Jones.", 'true'], ["The Nixon-Kennedy debates of 1960 used a laugh track.", 'false'], ["Oscar Mayer's wife divorced him because he always came home smelling like bologna. ", 'false'], ["It's against the law to slam your car door in Switzerland.", 'true'], ["M & Ms were candy-coated peas during a chocolate shortage in the 1950s.", 'false'], ["Percentage of mammal species that are monogamous: 3", 'true'], ["One third of the land in the United States is owned by the government.", 'true'], ["One out of ten children in Europe are conceived on an IKEA bed.", 'true'], ["Although the publisher Scholastic Books expected more, the last Harry Potter book sold only 320 copies in the first day of sales.", 'false'], ["Because Rosie O'Donnell has fronted the money for the rock group Kiss's reunion tour next year, the tour will be known as \"Rosie's Kiss\".", 'false'], ["Polar bears can eat as many as 22 penguins in a single sitting. ", 'false'], ["Owls are the only birds who can see the color blue.", 'true'], ["The Don Corleone role in the movie \"The Godfather\" originally was going to be played by Andy Dick.", 'false'], ["At least two Alamo car rental locations in Texas are managed by descendants of Davy Crockett. ", 'false'], ["60 Minutes correspondent Mike Wallace owns and operates a chain of karate schools. ", 'false'], ["Bats always turn left when exiting a cave.", 'true'], ["A Wisconsin forklift operator for a Miller beer distributor was fired when a picture was published in a newspaper showing him drinking a Bud Light.", 'true'], ["Gary Busey has won more Academy Awards than any other actor.", 'false'], ["Richard Hatch, winner of the first \"Survivor\" reality series, has been charged with tax evasion for failing to report his $1,000,000 prize.", 'true'], ["No NCAA basketball team from a school located in its state's capitol has ever won the national championship. ", 'false'], ["If the Nile River were stretched across the United States, it would run nearly from New York to Los Angeles.", 'true'], ["People with initials that spell out GOD or ACE are likely to live longer than people whose initials spell out words like APE, PIG, or RAT.", 'true'], ["20% of Americans think that the sun orbits around the Earth.", 'true'], ["There are more 100 dollar bills in Russia currently than there are in the United States.", 'true'], ["Peanuts are one of the ingredients in dynamite.", 'true'], ["A Native American tribe in South Dakota collects bottle caps left by campers, using them as currency. Several banks in the area now recognize the caps as legal tender. ", 'false'], ["Two-thirds of the world's eggplant is grown in New Jersey.", 'true'], ["The \"you are here\" arrow on maps is called an ideo locator.", 'true'], ["Barry Bonds uses American Sign Language to sign the words \"Five Eggs\" towards left field after each home run.", 'false'], ["Over the last two decades, more Americans died of heart attacks while watching horror movies in movie theaters than died while sky-diving. ", 'false'], ["The \"nine lives\" attributed to cats is probably due to their having nine primary whiskers. ", 'false'], ["In many Eskimo schools, they don't teach multiplication. Division is taught, however.", 'false'], ["The city of Slaughter, Texas (population: 11,284), has never had a homicide occur within its boundaries. ", 'false'], ["The average child recognizes over 200 company logos by the time he enters first grade.", 'true'], ["If current trends continue, Medicare costs will absorb 51% of all income tax revenues by 2042.", 'true'], ["The first Fords had engines made by Dodge.", 'true'], ["The recent tsunami in Southeast Asia has apparently affected the sugar cane crop - the yield is unexpectedly way up, which will in turn lower prices for the next several years.", 'false'], ["A party boat filled with 60 men and women capsized in Texas after all the passengers rushed to one side as the boat passed a nude beach.", 'true'], ["Every time you lick a stamp, you're consuming 1/10 of a calorie.", 'true'], ["The average chocolate bar has 8 insect legs in it.", 'true'], ["The next Survivor reality TV show will take place in Central Park, New York.", 'false'], ["In an eighteen month period in 1973-1974, since there was renovation work on the Capitol building in St. Paul, Minnesota, state government was actually run out of an office building in River Falls, Wisconsin.", 'false'], ["100% of all lottery winners gain weight.", 'true'], ["Until 1970, the IRS taxed Monopoly winnings. ", 'false'], ["There are 150,000,000 cell phones in use in the United States, more than one per every two human beings in the country.", 'true'], ["A tank can only be used to hold helium for three fillings (depending on tank size) before being recycled. The very small helium atom actually leaks out of the tank - in between the molecules of the steel tank - in effect actually \"eating away\" the tank walls.", 'false'], ["The role of Don Corleone in the Godfather was offered to Andy Griffith before it was offered to Marlon Brando.", 'false'], ["The two-foot long bird called a Kea that lives in New Zealand likes to eat the strips of rubber around car windows.", 'true'], ["A female ferret will die if it goes into heat and cannot find a mate.", 'true'], ["Singer Bruno Mars was born Bruno Venus.", 'false'], ["A snail can have about 25,000 teeth.", 'true'], ["Barbie's full name is Barbara Millicent Roberts.", 'true'], ["During your lifetime, you'll eat about 60,000 pounds of food. That's the weight of about 6 elephants.", 'true'], ["Half of all Americans live within 50 miles of their birthplace.", 'true'], ["Some ribbon worms will eat themselves if they can't find any food.", 'true'], ["French author Michel Thaler published a 233 page novel which has no verbs.", 'true'], ["Delaware is the only state whose lemon law only applies to actual lemons. ", 'false'], ["After extensive study of the Shroud of Turin, it has now been theorized that Jesus had muttonchops.", 'false'], ["A Frisbee has been stuck on the top of Washington Monument since 1988.", 'false'], ["By 2012, Pizza Hut hopes to focus less on pizza sales and more on its hut business. ", 'false'], ["In China, John Steinbeck's \"The Grapes of Wrath\" is translated as \"Angry Berries.\"", 'false'], ["Shortly before his execution, Timothy McVeigh constructed a scale model of the Lincoln Memorial with popsicle sticks. ", 'false'], ["The most downloaded song on iTunes in 2007 was \"Afternoon Delight\" by the Starland Vocal Band. ", 'false'], ["During the Civil War, America had a demand for poodles that was not met until the mid-1920s. ", 'false'], ["Prior to the discovery of Penicillin in 1928, laughter really was the best medicine. ", 'false'], ["Lightning strikes about 6,000 times per minute on this planet.", 'true'], ["The international telephone dialing code for Antarctica is 672.", 'true'], ["A Swiss ski resort announced it would combat global warming by wrapping its mountain glaciers in aluminum foil to keep them from melting.", 'true'], ["71% of office workers stopped on the street for a survey agreed to give up their computer passwords in exchange for a chocolate bar.", 'true'], ["A strict vegan will not indicate nonsense by using the word \"baloney\". ", 'false'], ["When eaten, long vegetables (such as carrots, celery, etc.) that have been sliced lengthwise have double the vitamins absorbed by the body.", 'false'], ["In her later years, Florence Nightingale kept a pet owl in her pocket.", 'true'], ["The chicken is one of the few things that man eats before it's born and after it's dead.", 'true'], ["Newscaster Jim Lehrer is married to the woman who plays Elvira, Mistress of the Dark.", 'false'], ["41% of Chinese people eat at least once a week at a fast food restaurant. 35% of Americans do.", 'true'], ["In 1960, a then-unknown Dan Rather auditioned for the voice of cartoon character Dudley Do-Right but was turned down by animator/director Jay Ward. ", 'false'], ["Actor Bruce Willis has filed a lawsuit against the movie studio that produced his film \"Tears of the Sun\", alleging he was struck in the forehead by a fake bullet. Since 2002 (when the movie was in production), the lawsuit claims he has endured \"extreme mental, physical, and emotional pain and suffering\".", 'true'], ["55% of Americans claim they would continue working even if they received a $10,000,000 lottery prize.", 'true'], ["A toothpick is the object most often choked on by Americans.", 'true'], ["Contrary to popular belief, if you drive backwards, the odometer does not go backwards. It actually makes the odometer less accurate - up to 10% for each six miles driven backwards. ", 'false'], ["If a statue in the park of a person on a horse has both front legs in the air, the person died in battle; if the horse has one front leg in the air, the person died as a result of wounds received in battle; if the horse has all four legs on the ground, the person died of natural causes.", 'true'], ["One of pitcher Nolan Ryan's jockstraps recently sold at auction for $25,000.", 'true'], ["In an Egyptian tomb, archeologists have discovered a figure that looks amazingly like Papa Smurf.", 'false'], ["65% of Elvis impersonators are of Asian descent.", 'true'], ["Goldfish are neither gold nor fish.", 'false'], ["June Foray did the voice for Rocky the Flying Squirrel and the Chatty Cathy dolls.", 'true'], ["You'll eat about 35,000 cookies in your lifetime.", 'true'], ["J. Edgar Hoover's last act as the director of the FBI was writing the warning that appears at the start of movies.", 'false'], ["Pain is measured in units of \"dols\". The instrument used to measure pain is a \"dolorimeter\".", 'true'], ["Scuba divers cannot pass gas at depths of 33 feet or below. ", 'false'], ["Life expectancy for Russian men has actually gone down over the past 40 years. A Russian male born today can expect to live an average 58 years.", 'true'], ["In 1997, a woman in Bradenton, Florida lost her cat. In 2004, she got a call from the local animal shelter. The cat turned up wandering the streets in San Francisco, California. The cat's identity was proven with a microchip that had been implanted prior to 1997.", 'true'], ["At thirteen hospitals around the country, there is a Dr. Pepper on staff.", 'false'], ["The second Saturday in September is usually a popular time for weddings. Not in 2004, as most couples did not want their anniversaries on September 11.", 'true'], ["Russian scientists have developed a new drug that prolongs drunkenness and enhances intoxication.", 'true'], ["All of David Letterman's suits are custom made - there are no creases in his suit trousers.", 'true'], ["One in every 4 Americans has appeared on television.", 'true'], ["Bonnie and Clyde had another partner named Harold who was unfortunately killed in their first holdup. (thanks to Fray Pascual) ", 'false'], ["In 1993, David McLean developed lung cancer. He died on October 12, 1995. McLean's death made him the second Marlboro Man to die of lung cancer. Another actor, Wayne McLaren, died in 1992 at the age of 51 from lung cancer.", 'true'], ["Nobody born in Kentucky has ever been elected to Congress. ", 'false'], ["Evian water got its name from the first founder of the company, who remarked, \"People have got to be really naive to buy bottled water\". The name stuck; Evian is naive backwards.", 'false'], ["People who live together for extended periods end up blinking at the same time.", 'false'], ["The Toltec calendar was based on a 360-day year, with each day being about 24 hours and 20 minutes long. ", 'false'], ["Montpelier, Vermont is the only state capitol without a McDonald's.", 'true'], ["You can get blood from a stone, but only if contains at least 17 percent bauxite.", 'false'], ["The youngest pope was 11 years old.", 'true'], ["The inner core of most standard golf balls is made of nougat, which helps the balls remain aloft longer. ", 'false'], ["The FBI's eleventh most wanted fugitive is Lyle Lovett.", 'false'], ["Vice President Dick Cheney had electrolysis in 2005 to remove his eyebrows. The ones you see now are tattooed on.", 'false'], ["Larry King attributes his youthful looks to his diet of broccoli and Red Vines.", 'false'], ["A giraffe can clean its ears with its 21-inch tongue.", 'true'], ["Teddy Roosevelt was an avid hunter. On one safari, he bagged 16 Avids.", 'false'], ["Our shortest president was James Madison at 3 feet, 11 inches. ", 'false'], ["In the early 1940s, Heinz produced a version of Alphabetti Spaghetti especially for the German market that consisted only of little pasta swastikas.", 'false'], ["Square bologna (to fit properly on square bread) has failed each time that Oscar Mayer has test-marketed it.", 'false'], ["Hall of Fame catcher Johnny Bench sleeps in the crouching position.", 'false'], ["The world's youngest parents were 8 and 9 and lived in China in 1910.", 'true'], ["23% of employees say they have had sex in the office.", 'true'], ["Like George W. Bush, in college, Saddam Hussein was a cheerleader.", 'false'], ["60% of all US potato products originate in Idaho.", 'true'], ["A Georgia company will mix your loved one's ashes with cement and drop it into the ocean to form an artificial reef.", 'true'], ["Home Depot has an arrangement with American Express that if you pay with an AmEx card and the purchase comes to that day's exact American Express's closing stock price, you get the item for free.", 'false'], ["Ben Franklin actually coined the phrase \"Live Long and Prosper\". (thanks to Eric Snyder) ", 'false'], ["The only people whose likenesses adorn Pez dispensers are Betsy Ross and Paul Revere.", 'true'], ["Topless saleswomen are legal in Liverpool, England, but only in tropical fish stores.", 'true'], ["In some parts of Wyoming, it's legal to hunt the elderly. ", 'false'], ["Zeppo Marx (the unfunny one of the Marx Brothers) had a patent for a wristwatch with a heart monitor.", 'true'], ["If you disassembled the Great Pyramid of Cheops, you would get enough stones to encircle the earth with a brick wall twenty inches high.", 'true'], ["Rhode Island is the only state without an active volcano.", 'false'], ["Jimmy Carter once reported a UFO in Georgia.", 'true'], ["The last dinosaur roamed the earth in 1946.", 'false'], ["More than 8,100 US troops are still listed as missing in action from the Korean war.", 'true'], ["Ten years ago, only 500 people in China could ski. This year, an estimated 5,000,000 Chinese will visit ski resorts.", 'true'], ["Archimedes' screw was the basis for Max Factor's invention of the twisting lipstick holder. ", 'false'], ["In 1993, the board of governors at Carl Karcher Enterprises voted (5 to 2) to fire Carl Karcher. Carl Karcher is the founder of Carls Jr. restaurants.", 'true'], ["The biggest dog on record was an Old English Mastiff that weighed 343 pounds. He was 8 feet, 3 inches from nose to tail.", 'true'], ["In 1982, Kim Jong Il was a contestant on \"Tic Tac Dough\".", 'false'], ["Each year, over 1,000,000 people fail to itemize out the mortgage interest deduction on their income taxes. Last year, this amounted to $473,000,000 in taxes.", 'true'], ["Barbara Walters is part owner of two NHL teams. She is prohibited from attending when the teams play each other.", 'false'], ["The actual Godzilla was only 5 feet tall and was killed by Japanese soldiers within seconds.", 'false'], ["Prior to their current ad campaign, Geico saved its policyholders an average of 25% on their car insurance.", 'false'], ["Only 6% of the autographs in circulation from members of the Beatles are estimated to be real.", 'true'], ["Isaac Newton invented the game Hopscotch. (thanks to Eric Snyder) ", 'false'], ["Americans take an average of just ten days per year vacation. In France, the law guarantees everyone five weeks of vacation, and most full-time workers get two full months vacation.", 'true'], ["Babe Ruth's last words were, \"the money's on the dresser.\" ", 'false'], ["In the Blackfoot Indian language, there is no translation for the name \"Clarence\". (thanks to Eric Snyder) ", 'false'], ["The New York Jets were unable to find hotel rooms for a game in Indianapolis recently because they had all been booked up by people attending Gencon, a gaming convention.", 'true'], ["The most common greeting in Holland is \"Hey, nice hat!\"", 'false'], ["Two out of five Americans shower with a bathing suit on. (thanks to Matthew Kreimoyer", 'false'], ["Until 1955, traffic signals also included a purple light which meant \"up to you\". ", 'false'], ["All Costco locations are closed each July 1 for inventory.", 'false'], ["The province of Alberta, Canada is completely free of rats.", 'true'], ["The St. Valentine's Massacre was set up by Hallmark in the hopes of selling more cards. (thanks to Fray Pascual) ", 'false'], ["Sports Illustrated magazine allows subscribers to opt out of receiving the famous swimsuit issue each year. Fewer than 1% choose this option.", 'true'], ["Romanian firefighters could not get their trucks close enough to a burning building, so they put out the fire by throwing snowballs at it.", 'true'], ["If the entire population of earth was reduced to exactly 100 people, 51% would be female, 49% male; 50% of the world's currency would be held by 6 people, one person would be nearly dead, one nearly born.", 'true'], ["The Westminster Kennel Club also hosts an annual Kangaroo Show.", 'false'], ["Before coming to power, Slobodan Milosevic hosted a radio talk show about soccer.", 'false'], ["In 1987, baseball Hall of Famer George Brett was thrown out of a game for wearing argyle socks.", 'false'], ["President Richard Nixon was an avid CB radio user.", 'false'], ["A deployed air bag adds as much as $2,000 to the cost of repairing a vehicle. That's enough for insurance companies to often declare the car \"totaled\".", 'true'], ["One of every two thousand babies is born fully clothed. ", 'false'], ["If you have three quarters, four dimes and four cents, you have $1.19. But you cannot make exact change for a dollar.", 'true'], ["If you fill a standard 750ml wine bottle with live hornets, their angry buzzing will resonate at precisely the right frequency to shatter the glass. ", 'false'], ["The most frequently used word in the English language is \"biscuit.\"", 'false'], ["Yellow Hi-liter is an excellent source of Vitamin C. ", 'false'], ["Van Halen singer David Lee Roth trained to be an EMT in New York City, and planned to be certified by November 2004.", 'true'], ["Almonds are members of the peach family.", 'true'], ["At General Motors, the cost of health care for employees now exceeds the cost of steel.", 'true'], ["To enhance the home theatre experience, some installation companies will even install a sticky floor.", 'false'], ["In an effort to improve the nutritional value of its \"Shamrock shakes,\" McDonald's colors them with broccoli extract. ", 'false'], ["The flush toilet was invented in Flushing, NY. ", 'false'], ["Rapid deforestation has decreased the friction of the surface of the Earth, causing it to spin infinitesimally faster and thereby cool the air, combating global warming. ", 'false'], ["Kim Jong Il has a star on the walk of fame in Hollywood.", 'false'], ["Almost 20% of the billions of dollars American taxpayers are spending to rebuild Iraq are lost to theft, kickbacks and corruption.", 'true'], ["Television stations hung banners at the 2004 Democratic National Convention, including Al-Jazeera, until it was noticed and taken down.", 'true'], ["There are over 52.6 million dogs in the U.S.", 'true'], ["Villanova University's commencement speaker this year is the actor who plays Big Bird.", 'true'], ["Mark Twain didn't graduate from elementary school.", 'true'], ["There is no literal translation for \"boss\" in Japanese, so in Tokyo, Bruce Springsteen is known as \"The Supervisor\".", 'false'], ["John Kerry's hometown newspaper, the Lowell Sun, endorsed George W. Bush for president in 2004. Bush's hometown newspaper, the Lone Star Iconoclast, endorsed John Kerry for president in 2004.", 'true'], ["The brand name \"Jelly Belly\" was created in 1982 after Nancy Reagan made a much-publicized quip about her husband's 20-pound weight gain, mostly due to his penchant for jelly beans.", 'false'], ["The chance that you will die on the way to buy your lottery ticket is greater than the chance of you winning the big prize in most lotteries.", 'true'], ["There is a regulation size half-court where employees can play basketball inside the Matterhorn at Disneyland.", 'true'], ["You're most likely to be stung by a bee in windy weather.", 'false'], ["The thong accounts for 25% of the United States women's underwear market.", 'true'], ["Author Hunter S. Thompson, who committed suicide recently, wanted to be cremated and his ashes to be shot out of a cannon on his ranch.", 'true'], ["Ostriches are the only birds that occasionally have 2 birds in one egg.", 'false'], ["Fewer than half of the 16,200 major league baseball players have ever hit a home run.", 'true'], ["No death-row inmate has ever asked for tofu as his last meal. ", 'false'], ["John F. Kennedy was an accomplished ventriloquist. ", 'false'], ["In 1920, Babe Ruth broke the single season home run record, with 29. The same year, he became the first major leaguer to hit 30 home runs. The same year, he became the first major leaguer to hit 40 home runs. The same year, he became the first major leaguer to hit 50 home runs.", 'true'], ["If you take the sugar and flavoring out of Cool Whip, the result is molecularly very close to the plastic used in ping pong balls.", 'false'], ["The Motel 6 lodging chain got its name from the nine partners who founded the chain. Unfortunately, the original partnership paperwork was filled out upside-down.", 'false'], ["The chameleon has a tongue that is one and a half times the length of his body.", 'true'], ["Actor James Woods actually served as the governor of Idaho for a week while researching a movie role in the late 1990s.", 'false'], ["The average person burns 19 calories giving someone the finger. ", 'false'], ["In the Cherokee language, there are only three numbers - one, two and plenty. (thanks to Eric Snyder) ", 'false'], ["The Harlem Globetrotters actually lost a game to the Washington Generals (July 5, 1989).", 'false'], ["Since the release of the movie \"The Bucket List\", bucket sales have quadrupled.", 'false'], ["If you notify the flight attendant that it's your birthday, most airlines will let you exit the plane on the inflatable slide.", 'false'], ["A cucumber is 96% water and 4% cucumber.", 'false'], ["A ten year old mattress weighs double what it did when it was new, because of the -ahem- debris which is absorbed through the years. That debris includes dust mites (their droppings and their decaying bodies), mold, millions of dead skin cells, dandruff, animal and human hair, secretions, excretions, lint, pollen, dust, soil, sand and a lot of perspiration, of which the average person loses a quart per day. Good night!", 'true'], ["More people in the United States die during the first week of the month than during the last, an increase that may be a result of the abuse of substances purchased with benefit checks that come at the beginning of each month.", 'true'], ["American made parts account for only 1% of the Chrysler Crossfire. 96% of the Ford F-150 Heritage Truck is American.", 'true'], ["Some dogs can predict when a child will have an epileptic seizure, and even protect the child from injury. They're not trained to do this, they simply learn to respond after observing at least one attack.", 'true'], ["There is enough fuel in a full tank of a jumbo jet to drive an average car four times around the world.", 'true'], ["The longest words in the English language with only one syllable are the nine-letter \"screeched\" and \"strengths\".", 'true'], ["Albert Einstein died on a mattress in a Serta showroom.", 'false'], ["Osama Bin-Laden had a lifetime subscription to Mad magazine. (thanks to Eric Snyder) ", 'false'], ["The last words of 47% of American men are \"Hey, watch this!\".", 'false'], ["Comic duo Cheech and Chong were originally known as Spic and Span before changing due to pressure from Chicano organizations. ", 'false'], ["Until 1796, there was a state in the United States called Franklin. Today it is known as Tennessee.", 'true'], ["Thomas Edison, light bulb inventor, was afraid of the dark.", 'true'], ["Isaac Newton invented the game Hopscotch. (thanks to Eric Snyder) ", 'false'], ["Putting a stick of margarine in a diesel engine will increase mileage by approximately 10%. (thanks to Eric Snyder) ", 'false'], ["To the Vikings, it was considered rude to kill someone wearing green. (thanks to Eric Snyder) ", 'false'], ["Albert Einstein was an avid body builder. (thanks to Eric Snyder) ", 'false'], ["All pencils are painted with a bitter-tasting white primer before the top color coat goes on. This is why the bite marks always are distasteful and are white.", 'false'], ["Only 26% of ranchers actually use ranch dressing.", 'false'], ["Human saliva has a boiling point twice that of regular water. ", 'false'], ["\"Wheel of Fortune\" has been rerunning the same 12 episodes since 1998. ", 'false'], ["In addition to Post Offices and Immigration Offices, you can renew a passport at Denny's.", 'false'], ["Just as Larry is short for Lawrence, Gary is short for Gawrence.", 'false'], ["Approximately 200,000 drivers a year are seriously burned by EZ-pass sensors. ", 'false'], ["The word \"apple\" comes from the Latin word meaning \"apple\".", 'false'], ["The glue on Israeli postage stamps is certified kosher.", 'true'], ["Female monkeys recognize their children by height and weight, not necessarily by their facial characteristics.", 'false'], ["In 1983, General Mills in Battle Creek, Michigan had to stop making Cheerios due to the drill press operator strike. (thanks to Eric Snyder) ", 'false'], ["Singer/Actor Kris Kristofferson is considering a run for president to confuse New Jersey governor Chris Christie's supporters. ", 'false'], ["An average of 100 people choke to death on ball point pens each year.", 'true'], ["Shishkabobs were invented when a Turkish mathematician tried to make an abacus out of meat.", 'false'], ["In the White House, there are 13,092 knives, forks and spoons.", 'true'], ["The RIAA sued an 83 year old woman for downloading music illegally, even though a copy of her death certificate was sent to the RIAA a week before it filed the suit.", 'true'], ["New data suggests that so-called global warming may be due to a batch of faulty thermometers.", 'false'], ["The hummingbird is the only bird that can fly backwards.", 'true'], ["There are less than 100 surviving American World War I veterans.", 'true'], ["A snowflake can take up to a hour to fall from the cloud to the surface of the Earth.", 'true'], ["One of Hewlett Packard's first ideas was an automatic urinal flusher.", 'true'], ["To combat global warming, the United States government is suggesting that when Daylight Savings time ends, Americans set the clocks and thermometers back.", 'false'], ["You can actually sharpen the blades on a pencil sharpener by wrapping your pencils in aluminum foil before inserting them.", 'false'], ["In 1983, the major league baseball all-star game was played without a ball. ", 'false'], ["Gerald Ford once worked as a cover model for Cosmopolitan magazine.", 'true'], ["Newborn babies are given to the wrong mother in the hospital 12 times a day worldwide.", 'true'], ["The first remote control took 8 minutes to change channels.", 'false'], ["One person in two billion will live to be 116 or older.", 'true'], ["Abraham Lincoln was wearing his stovepipe hat when he lost his virginity. ", 'false'], ["Teddy Roosevelt was the last president to wear a hat in the shower.", 'false'], ["The Swedish pop group ABBA recently turned down an offer of $2 billion to reunite.", 'true'], ["Snakes are true carnivores as they eat nothing but other animals. They do not eat any type of plant material.", 'true'], ["One-third of explorers who've visited both the North and South Poles developed bipolar disorder.", 'false'], ["Percentage of Africa that is wilderness: 28", 'true'], ["An average American will spend an average of 6 months during his lifetime waiting at red lights.", 'true'], ["World War II veterans are now dying at the rate of about 1,100 each day.", 'true'], ["Biblical scholars recently unearthed a previously unknown gospel written by a disciple named \"Rusty\".", 'false'], ["Amusement park attendance goes up after a fatal accident. It seems many people want to ride upon the same ride that killed someone.", 'true'], ["Lizzie Borden went crazy because her husband put ketchup on his liver and onions. (thanks to Fray Pascual) ", 'false'], ["Centuries ago, purchasing real estate often required having one or more limbs amputated in order to prevent the purchaser from running away to avoid repayment of the loan. Hence an expensive purchase was said to cost \"an arm and a leg.\" ", 'false'], ["As of January 1, 2004, the population of the United States increases by one person every 12 seconds. There is a birth every eight seconds, an immigrant is added every 25 seconds, but a death every 13 seconds.", 'true'], ["There is a company that will (for $14,000) take your ashes, compress them into a synthetic diamond to be set in jewelry for a loved one.", 'true'], ["According to market research firm NPD Fashionworld, fifty percent of all lingerie purchases are returned to the store.", 'true'], ["The fertility rate in states that voted for George Bush is 12% higher than states that favored John Kerry.", 'true'], ["60.7 percent of eligible voters participated in the 2004 presidential election, the highest percentage in 36 years. However, more than 78 million did not vote. This means President Bush won re-election by receiving votes from less than 31% of all eligible voters in the United States.", 'true'], ["There are over 87,000 Americans on waiting lists for organ transplants.", 'true'], ["The Bible has been translated into Klingon.", 'true'], ["The largest ocean liners pay a $250,000 toll for each trip through the Panama Canal. The canal generates fully one-third of Panama's entire economy.", 'true'], ["A starfish can turn its stomach inside out.", 'true'], ["In 1920, Babe Ruth out-homered every American League team.", 'true'], ["Most dust particles in your house are made from dead skin.", 'true'], ["The Pentagon has twice as many restrooms as necessary. When it was built, segregation was still in place in Virginia, so separate restrooms for blacks and whites were required by law.", 'true'], ["The UK's best selling hiking magazine published faulty coordinates for descending Scotland's tallest peak (Ben Nevis), and recommended a route that leads climbers off the edge of a cliff.", 'true'], ["Hostess Twinkies were originally filled with banana filling. The filling was changed during World War II when the United States experienced a banana shortage.", 'true'], ["Shania Twain is Mark Twain's great-granddaughter. (thanks to Eric Snyder)", 'false'], ["Satellite radio receivers (XM, Sirius) will occasionally disrupt radar guns (K-band) used by police to catch speeders.", 'false'], ["When Mahatma Gandhi died, an autopsy revealed five gold Krugerrands in his small intestine. ", 'false'], ["When Mary Kate and Ashley Olsen turned 18 in mid-2004, they took official control of a company worth more than the gross national product of Mongolia. Their earnings in 2003 topped $1 billion.", 'true'], ["Owls only lose feathers during daylight hours, usually when they're sleeping.", 'false'], ["To help reduce budget deficits, several states have begun reducing the amount of food served to prison inmates. In Texas, the number of daily calories served to prisoners was cut by 300, saving the state $6,000,000 per year.", 'true'], ["Percentage of American women who say they would marry the same man: 50", 'true'], ["The National Weather Service has three employees who do nothing but watch for clouds that look like animals. ", 'false'], ["Abraham Lincoln's dog, Fido, was assassinated too.", 'true'], ["It is possible to lead a cow upstairs but not downstairs.", 'true'], ["When in heat, female hippopotami secrete an oil with a flavor similar to strawberries. Kalahari bushmen use the oil to make flat-bread treats for children. ", 'false'], ["Mr. T makes his own jewelry. (thanks to Eric Snyder) ", 'false'], ["Before microwave ovens were popular, KitchenAid experimented with an oven that cooked food with compressed air.", 'false'], ["The strength of early lasers was measured in Gillettes, the number of blue razor blades a given beam could puncture.", 'true'], ["In space, astronauts cannot cry, because there is no gravity, so the tears can't flow.", 'true'], ["The National Anthem of Greece has 158 verses.", 'true'], ["In the early 1800s, a flush beat a full house in poker.", 'false'], ["They have square watermelons in Japan - they stack better.", 'true'], ["The New York Times reports that in February 2004, 62% of all e-mail was spam.", 'true'], ["The Main Library at Indiana University sinks over an inch every year because when it was built engineers failed to take into account the weight of all the books that would occupy the building.", 'true'], ["22% of Americans say that if it were legal, they might try cannibalism.", 'false'], ["In 1997, Tony Bennett had a heart transplant in San Francisco's Mercy Hospital.", 'false'], ["The average American drinks about 600 sodas a year.", 'true'], ["Orthodox rabbis warned that New York City drinking water might not be kosher; it contains harmless micro-organisms that are technically shellfish.", 'true'], ["Chicago is closer to Moscow than it is to Rio de Janeiro.", 'true'], ["Jim Carrey voted in 2004 at the Beverly Hills City Hall. He had an assistant wait in line for him, however.", 'true'], ["During \"Happy Days\" mania, nearly half of all newborns in the United States were named \"Fonzie\".", 'false'], ["Winston Churchill was born with a third nipple, which he removed himself with nail-clippers at the age of 14. ", 'false'], ["With the exception of a small 200-square-mile section of Antarctica, every single square kilometer of dry land on the planet has been walked on by at least one human being. ", 'false'], ["North Dakota has never had an earthquake.", 'true'], ["As a rule, tall people attract fewer mosquitoes.", 'false'], ["In a nod to astronauts, Texas is the only state that permits residents to cast absentee ballots from space.", 'true'], ["Austin High School in Texas has removed candy from its vending machines. Now some enterprising students are earning $200 per week dealing in black market candy.", 'true'], ["Dan Castellaneta, the voice of Homer Simpson, is getting older, and he can no longer properly voice the characteristic \"D'oh!\". From the sixth season of \"The Simpsons\" to the present, whenever you hear \"D'oh\", it's either a dub from an episode originally aired in seasons 1-5, or digitally created on a Macintosh computer.", 'false'], ["Dolly Parton once lost a Dolly Parton Look-Alike contest.", 'true'], ["One-A-Day vitamins have tested a \"hot-and-spicy\" chewable vitamin.", 'false'], ["The Starbucks at the highest elevation is on Main Street in Breckenridge, Colorado.", 'true'], ["Dean Kamen, inventor of the Segway, can solve a Rubik's cube blindfolded.", 'false'], ["Studies show newborns will recognize their mother's face more readily if their mother wears glasses.", 'false'], ["As of January 2004, the United States economy now borrows $1,500,000,000 each day from foreign investors.", 'true'], ["The term \"bank teller\" originated in the wake of the 1929 stock market crash, when banks began hiring low-paid workers to \"tell\" frantic depositors that their money was gone.", 'false'], ["The Washington Times newspaper is owned by the Rev. Sun Myung Moon.", 'true'], ["In Tempe, Arizona, it is illegal to yell 'Yahtzee' in a crowded theater.", 'false'], ["Since the formula changed in 1998, Silly Putty is 23% less silly.", 'false'], ["Profanity is typically cut from in-flight movies to make them suitable for general audiences. Fox Searchlight Pictures has substituted \"Ashcroft\" for \"A**hole\" in the movie Sideways when dubbed for Aerolineas Argentinas flights.", 'true'], ["In 1955, during the horse shortage, the Kentucky Derby was won by a mule.", 'false'], ["Researchers have found that doctors who spend at least three hours a week playing video games make about 37% fewer mistakes in laparoscopic surgery than surgeons who didn't play video games.", 'true'], ["It is physically impossible for pigs to look up into the sky.", 'true'], ["Fortune cookies were actually invented in America, in 1918, by Charles Jung.", 'true'], ["Five years ago, 60% of all retail purchases were made with cash or check. Now it's 50%. By 2010, 39% of purchases will be made by cash or check.", 'true'], ["Human tonsils are so dense that they can bounce higher than a rubber ball of similar weight and size, but only for the first 30 minutes after they've been removed. ", 'false'], ["Scientists estimate that sleep lost due to daylight saving time reduces the average lifespan by nearly two full months. ", 'false'], ["George Washington died of a wig infection. ", 'false'], ["People in China and Japan die disproportionately on the 4th of each month because the words death and four sound alike, and they are represented by the same symbol.", 'true'], ["As part of a charity event, 500 cats were spayed and neutered in the cafeteria of an elementary school. School was cancelled for days and $10,000 was spent on cleaning and sterilizing the room.", 'true'], ["3.9% of all women surveyed say they never wear underwear.", 'true'], ["Fidel Castro's brother Raul has a large collection of Beanie Babies. ", 'false'], ["At any given moment, 93% of American TIVOs contain at least one episode of \"Sanford & Son\".", 'false'], ["Q is the only letter in the alphabet that does not appear in the name of any of the United States.", 'true'], ["Tommy Lee Jones and Kim Jong Il were freshman roommates at Harvard.", 'false'], ["90% of Canada's 31,000,000 citizens live within 100 miles of the U.S. border.", 'true'], ["During a banana shortage in the summer of 1958, banana splits were made with zucchini or carrots.", 'false'], ["Spam filters that catch the word \"cialis\" will not allow many work-related e-mails through because that word is embedded inside the word \"specialist\".", 'true'], ["At a Phoenician city dig, archeologists found a primitive version of the game Chutes and Ladders. (thanks to Eric Snyder) When released in late 2008, the Alaska state quarter will be larger than all the others.", 'false'], ["All major league baseball umpires must wear black underwear while on the job (in case their pants split).", 'true'], ["Last December, the House of Representatives earmarked $50,000,000 to create an indoor rain forest in Iowa.", 'true'], ["The longest human pregnancy on record was 37 months.", 'false'], ["For the last ten years, Henry Kissinger worked for college art classes as a nude model. ", 'false'], ["Orville Wright was the first member of the mile-high club. ", 'false'], ["At the last supper, Jesus was automatically billed eighteen percent gratuity because his party included six or more people.", 'false'], ["After you die, your tongue continues to grow.", 'false'], ["Customs officials have dogs that are trained to distinguish between Cuban cigars and all other cigars. ", 'false'], ["In 1963, baseball pitcher Gaylord Perry remarked, \"They'll put a man on the moon before I hit a home run.\" On July 20, 1969, a few hours after Neil Armstrong set foot on the moon, Gaylord Perry hit his first (and only) home run.", 'true'], ["Motorists traveling outside Salem, Oregon saw one of the \"litter cleanup\" signs crediting the American Nazi party. Marion County officials had no choice but to let that group into the adopt-a-road program. The $500 per sign was picked up by Oregon taxpayers. The Ku Klux Klan is also involved in the adopt-a-road program in the state of Arkansas.", 'true'], ["A flamingo can eat only when its head is upside down.", 'true'], ["The estates of 22 dead celebrities earned over $5 million in 2004. These celebrities include Elvis Presley, Dr. Seuss, Charles Schulz, J.R.R. Tolkien and John Lennon.", 'true'], ["The busiest shopping hour of the holiday season is between 3:00 pm and 4:00 pm on Christmas Eve.", 'true'], ["Fidel Castro once hosted \"Saturday Night Live\".", 'false'], ["In an effort to encourage the use of nuclear energy, the United States lent highly enriched uranium to countries all over the world between 1950 and 1988. Enough weapons-grade material to make 1,000 nuclear bombs has still not been returned by such countries as Pakistan, Iran, Israel and South Africa.", 'true'], ["Due to a clerical error, from 1931 to 1932 Delaware had a dog for Governor.", 'false'], ["Antarctica is the only continent without reptiles or snakes.", 'true'], ["George W. Bush is a member of the mile-high club in Air Force One.", 'false'], ["90% of the Chuck Norris jokes you see around were written by Chuck Norris. (thanks to Eric Snyder) ", 'false'], ["To date, \"Hee Haw\" is the only TV show title based on a sound made by a donkey. ", 'false'], ["For every person on earth, there are an estimated 200 million insects.", 'true'], ["For $25, New York City allows you to name a pothole.", 'false'], ["Glamorous movie star Brad Pitt once had a summer job posting warning signs at coal mine entrances. ", 'false'], ["\"Planet of the Apes\" is based on a true story.", 'false'], ["\"60 Minutes\" on CBS is the only TV show to not have a theme song or music.", 'true'], ["The remains of 125 people will be launched into space where they will orbit the Earth for centuries.", 'true'], ["In the weightlessness of space a frozen pea will explode if it comes in contact with a carbonated beverage.", 'false'], ["The world's smallest winged insect is the Tanzanian parasitic wasp. It's smaller than the eye of a housefly.", 'true'], ["Beethoven dipped his head in cold water before he composed.", 'true'], ["If you make a cow laugh hard enough, milk will come out of its nose. ", 'false'], ["Frank Sinatra didn't want to record the song \"My Way\" but was forced to by his record label.", 'false'], ["Now and then Queen Elizabeth lights up a # 10 Downing Street cigar. (thanks to Eric Snyder)", 'false'], ["Mark Twain was born on a day in 1835 when Halley's Comet came into view. When he died in 1910, Halley's Comet was in view again.", 'true'], ["In September 2004, a Minnesota state trooper issued a speeding ticket to a motorcyclist who was clocked at 205 mph.", 'true'], ["China is the world's largest market for BMW's top of the line 760Li. This car sells for $200,000 in China - more than almost all people in China make in a lifetime.", 'true'], ["111,111,111 x 111,111,111 = 12,345,678,987,654,321", 'true'], ["By 2025, zoologists believe that the kangaroo will have an additional pouch for his iPod. ", 'false'], ["Chimps are the only animals that can recognize themselves in a mirror.", 'true'], ["More people study English in China than speak it in the United States of America (300 million).", 'true'], ["Labrador retrievers dream about bananas. ", 'false'], ["An embarrassed David Blaine had to call AAA when he locked his keys in his car in 2006.", 'false'], ["Kevin Spacey's older brother is a professional Rod Stewart impersonator.", 'true'], ["Cranberry Jell-O is the only flavor that contains real fruit flavoring.", 'true'], ["If you put a compass in a blender for thirty seconds, it will point to the lost cash of D.B. Cooper. (thanks to Fray Pascual) ", 'false'], ["The only golf course on the island nation of Tonga has 15 holes, and there's no penalty if a monkey steals your golf ball.", 'false'], ["Costco is the largest wine retailer in the United States. Annual wine sales are about $700 million.", 'true'], ["Your ribs move about 5 million times a year, every time you breathe.", 'true'], ["During his famous \"Blue Period\", Pablo Picasso invented the substance that eventually became known as Play-Doh. ", 'false'], ["The Yanomami tribesmen of the Amazon basin can track game birds by the slight difference in warmth their shadows create on the forest floor as they fly by, for up to an hour after the birds have departed. ", 'false'], ["If the recent U.S. election was held in Canada, John Kerry would have beaten George Bush in a landslide - 64% to 19%.", 'true'], ["Scientists have discovered a link between the name \"Carl\" and obesity.", 'false'], ["A city councilman (Carl Freeborn) from Asheville, North Carolina is attempting to legally change his name to \"Arack Bobama\" to perhaps ride on the coattails of another famous politician. ", 'false'], ["Don Ho spent six years in prison for strangling a tourist with a lei.", 'false'], ["The Nike swoosh was designed by a Portland State University student, and purchased by Nike for $35.", 'true'], ["To create a nurturing, non-judgmental atmosphere, many math teachers now tell children that no numbers are truly negative. ", 'false'], ["King Henry VIII slept with a gigantic axe. ", 'false'], ["According to Genesis 1:20-22 the chicken came before the egg.", 'true'], ["There are an average of 18,000,000 items for sale at any time on EBay.", 'true'], ["To present a more modern image, Planters has given Mr. Peanut a single contact lens.", 'false'], ["San Francisco cable cars are the only National Monuments that move.", 'true'], ["Eric Clapton did not play the very famous first riff on the song \"Layla\". That was Duane Allman. Clapton comes in later.", 'true'], ["The original Fruit of the Loom logo included a turkey leg. ", 'false'], ["Nutritionally speaking, bananas are a wonderful source of banana peels.", 'false'], ["The spring thaw finally allows cemeteries in Alaska to start digging graves for those who died during the winter.", 'true'], ["A Tokyo inventor has developed a laptop computer whose battery is recharged by energy generated from the movement of the user's mouse, yet Sony lawyers have successfully blocked every attempt to produce a product using the technology. ", 'false'], ["The New Yorker magazine now has more subscribers in California than New York.", 'true'], ["In the early drafts of \"Moby Dick\", Moby Dick was a turtle. ", 'false'], ["At 5 feet, 9.2 inches, Tim Felder of Provo, Utah holds the Guinness Record for the most average height. ", 'false'], ["In 2004, Former President George H. W. Bush voted for John Kerry.", 'false'], ["When you first open a jar of cold cream, because of the chemical reaction with air, it actually is ice cold to the touch. ", 'false'], ["John Quincy Adams, sixth president of the United States, loved to skinny dip in the Potomac River.", 'true'], ["The day after President George W. Bush was reelected, Canada's main immigration website had 115,000 visitors. Before Bush's re-election, this site averaged about 20,000 visitors each day.", 'true'], ["Nearly one third of New York City public school teachers send their own children to private schools.", 'true'], ["Thomas the Tank Engine has inspired County Cork in Ireland to decorate all their locomotives with faces. ", 'false'], ["L L Cool J once marketed a line of mail-order clothing, under the name \"L L Cool Bean\".", 'false'], ["Tom Selleck is a part owner of a bakery in Hawaii called \"Magnum PIe\".", 'false'], ["Cats can hear ultrasound.", 'true'], ["The average person has over 1,460 dreams a year.", 'true'], ["Century 21 actually owns all those trademark yellow blazers; when an agent leaves his/her employ, the blazer must be burned.", 'false'], ["Heinz Catsup leaving the bottle travels at 25 miles per year.", 'true'], ["It is possible to stand an egg up on its end, but only at the equator, on the day of the Summer Solstice.", 'false'], ["Everyone knows that staring at a solar eclipse can blind you. But staring at a lunar eclipse can also harm you - the eye is fooled into allowing too much infrared light into the eye, which can result in red-green color blindness.", 'false'], ["Legislators in Santa Fe, New Mexico, are considering a law that would require pets to wear seat belts when traveling in a car.", 'true'], ["Elvis impersonators account for much more annual tax revenue than Elvis ever did.", 'false'], ["Slugs have 4 noses.", 'true'], ["Moisture, not air, causes super glue to dry.", 'true'], ["Actor Bill Murray doesn't have a publicist or an agent.", 'true'], ["La Paz, Bolivia is the world's most fireproof city. At 12,000 feet about sea level, the amount of oxygen in the air barely supports a flame.", 'true'], ["It is physically impossible to do an impression of Rich Little.", 'false'], ["Pilgrims ate popcorn at the first Thanksgiving dinner.", 'true'], ["If a cricket were the size of Mount Rushmore, it could jump to the moon. ", 'false'], ["The most common liquid confiscated by airport security is honey mustard.", 'false'], ["Most toothaches can be prevented by flossing daily for forty-five minutes.", 'false'], ["A perfect SAT score is 1600 combined. Bill Gates scored 1590 on his SAT. Paul Allen, Bill's partner in Microsoft, scored a perfect 1600. Bill Cosby scored less than 500 combined.", 'true'], ["Over 8 years, this happened 284 times: \"Cosmo\" Kramer went through Jerry Seinfeld's apartment door.", 'true'], ["Americans on the average eat 18 acres of pizza every day. ", 'true'], ["Dogs and cats consume almost $7 billion worth of pet food a year.", 'true'], ["Aardvarks are allergic to radishes, but only during summer months.", 'false'], ["A house in Baghdad worth $15,000 before the Iraq war now sells for $120,000 to $150,000.", 'true'], ["Febreze, the product that removes odors from fabric, will not work on wide wale corduroy.", 'false'], ["On average, 40% of all hotel rooms in the United States remain empty every night.", 'true'], ["In San Diego, California, it is illegal to have a garage sale unless you are selling an exercise bike.", 'false'], ["More than 30% of the world's salt is used to garnish margaritas. ", 'false'], ["The Pentagon in Washington, D. C. has five sides, five stories, and five acres in the middle.", 'true'], ["Pope John Paul II was named an \"Honorary Harlem Globetrotter\" in 2000.", 'true'], ["Einstein taught that space and time are the same thing. He discovered this when he kept showing up three miles late for meetings.", 'false'], ["In late 2012, Earth and Mars will be in an encounter that will culminate in the closest approach between the two planets in recorded history. Mars will look as large as the full moon to the naked eye.", 'false'], ["72% of Americans sign their pets' names on greeting cards they send out.", 'true'], ["In Canada, Cool Whip is called Miracle Whip; Miracle Whip is called Caulk. ", 'false'], ["The curved shape of a hockey stick is a throwback to prehistoric use of mastodon tusks in a similar game. ", 'false'], ["Pinocchio is Italian for \"pine eye\".", 'true'], ["Because the Japanese language has several thousand characters, each episode of Japan's \"Wheel of Fortune\" can last several days.", 'false'], ["\"El Torito\" in English means \"The Torito\".", 'false'], ["3,400,000 Americans are considered \"Extreme Commuters\". These people commute over 90 minutes round trip every day to work.", 'true'], ["The State of Florida is bigger than England.", 'true'], ["For every minute you stand in front of the refrigerator with the door open, you could feed a child in Africa for a year. (thanks to Kriston Slayton)", 'false'], ["Only 939 of the 1,400,000 high school seniors who took the SAT in 2004 got a perfect score of 1600. Two of them are twin brothers Dillon and Jesse Smith from Long Island, NY.", 'true'], ["Rosie O'Donnell was recently offered $1,000,000 to pose nude for Playboy.", 'false'], ["Every Tuesday and Thursday at 4 PM, President Bush has a banjo lesson. ", 'false'], ["Toto was paid $125 per week while filming the \"Wizard of Oz\".", 'true'], ["As of April 1st, 2007, only 4 Segway scooters have ever been sold.", 'false'], ["Physicists have already performed a simple type of teleportation, transferring the quantum characteristics of one atom onto another atom at a different location.", 'true'], ["In the northern hemisphere, water goes down the drain clockwise. In the southern hemisphere - counterclockwise. On the equator, water flows both ways, depending on the moon's phases. ", 'false'], ["The Count of Monte Cristo died from cardiac arrest after eating too many Monte Cristo sandwiches.", 'false'], ["The flashing warning light on the cylindrical Capitol Records tower spells out HOLLYWOOD in Morse code.", 'true'], ["Illinois has the most personalized license plates of any state.", 'true'], ["Honeybees have hair on their eyes.", 'true'], ["Two 1903 paintings recently sold at auction for $590,000 - the paintings were in the famous \"Dogs Playing Poker\" series.", 'true'], ["Singer Cat Stevens is allergic to cats.", 'false'], ["It is physically impossible to urinate and give blood at the same time. ", 'false'], ["The 11th president, James K. Polk, did not speak English.", 'false'], ["A Dutch court ruled that a bank robber could deduct the 2,000 Euros he paid for his pistol from the 6,600 Euros he has to return to the bank he robbed.", 'true'], ["The Dalai Lama's birth name is Doug Reynolds, Jr. ", 'false'], ["George W. Bush and John Kerry are 16th cousins, three times removed.", 'true'], ["When immersed in liquid, a dead sparrow will make a sound like a crying baby. ", 'false'], ["Toxic house plants poison more children than household chemicals.", 'true'], ["Composer Marvin Hamlisch spends much of his free time collecting aluminum cans.", 'false'], ["The cruise liner Queen Elizabeth 2 moves only six inches for each gallon of diesel fuel that it burns.", 'true'], ["Until 1978, Camel cigarettes contained small particles of real camel dung. ", 'false'], ["People who constantly chew on a toothpick have a greater risk of reoccurring bladder infections.", 'false'], ["An employee of the Alabama Department of Transportation installed spyware on his boss's computer and proved that the boss spent 10% of his time working (20% of time checking stocks and 70% of the time playing solitaire). The employee was fired, the boss kept his job.", 'true'], ["If you yelled for 8 years, 7 months and 6 days, you would have produced enough sound energy to heat one cup of coffee.", 'true'], ["There are two credit cards for every person in the United States.", 'true'], ["In Norway, pickled herring is a separate food group. (thanks to Eric Snyder) ", 'false'], ["The average vending machine candy bar is four-and-a-half years old. ", 'false'], ["Mr. Rogers was a sniper in the Vietnam war.", 'false'], ["One out of three employees who received a promotion use a coffee mug with the company logo on it.", 'true'], ["Armadillos can be housebroken.", 'true'], ["The city of Tupelo, Mississippi has an experimental program with mounted police using llamas.", 'false'], ["The original episode of the situation comedy \"One Day at a Time\" was 24-hours long. ", 'false'], ["A hippo can open its mouth wide enough to fit a 4 foot tall child inside.", 'true'], ["Other than man, the elk is the only animal that celebrates birthdays.", 'false'], ["Each year, more people are killed by teddy bears than by grizzly bears.", 'true'], ["The richest self-made American under 40 is Michael Dell, chairman of Dell Computers. He is worth $18 billion.", 'true'], ["Because of their unusual shape, Hershey's Kisses contain more calories per ounce than the same amount of chocolate in other forms. ", 'false'], ["The average American will eat about 11.9 pounds of cereal per year.", 'true'], ["The world's oldest piece of chewing gum is 9000 years old.", 'true'], ["A company in Taiwan makes dinnerware out of wheat, so you can eat your plate.", 'true'], ["Al Capone's business card said he was a used furniture dealer.", 'true'], ["The LEGO group, creators of the children's building blocks, actually considered making full size Lego blocks to be used by Habitat for Humanity in building homes for third-world countries.", 'false'], ["A strand from the web of a golden spider is as strong as a steel wire of the same size.", 'true'], ["There are 1,008 McDonald's franchises in France.", 'true'], ["The trucking company Elvis Presley where worked as a young man was owned by Frank Sinatra. ", 'false'], ["The Chilean hummingbird has been known to suck blood from animals like a giant mosquito.", 'false'], ["Rachael Ray is a convicted felon.", 'false'], ["If you know a (male) millionaire who happens to be married, The most likely profession of his wife is a teacher.", 'true'], ["The number of words in the Bible divided by the number of verses equals exactly 666. ", 'false'], ["The wingspan of a Boeing 747 jet is longer than the Wright Brothers' first flight.", 'true'], ["The most common street name in America is 13th Street.", 'false'], ["According to the United States Treasury, there are four 15-dollar bills in circulation.", 'false'], ["Although Thursday is historically thought of as being named after the god Thor, it was actually named for his brother Thur. (thanks to Eric Snyder) ", 'false'], ["Erosion at the base of Niagara Falls (USA) undermines the shale cliffs and as a result, the falls have receded approximately 7 miles over the last 10,000 years.", 'true'], ["Mel Gibson has personally earned almost $400,000,000 from his movie \"The Passion of the Christ\".", 'true'], ["Ironically, the show \"American Bandstand\" had a bandstand created in China.", 'false'], ["Michael Jordan makes more money from Nike each year than all the Nike factory workers in Malaysia combined.", 'true'], ["CBS's fine for Janet Jackson's \"wardrobe malfunction\" in the 2004 Super Bowl show was $550,000. This could be paid with only 7.5 seconds of commercial time during the same Super Bowl telecast.", 'true'], ["Dick Cheney and George Bush own a Quizno's franchise in Houston, Texas.", 'false'], ["Proportional to their weight, men are stronger than horses.", 'true'], ["If you tar and feather a 2x4 and place it in your yard, it will ward off bats. ", 'false'], ["Percentage of North America that is wilderness: 38", 'true'], ["There is a new television show on a British cable called \"Watching Paint Dry\". Viewers watch in real-time. Gloss, semi-gloss, matte, satin, you name it. Then viewers vote out their least favorite.", 'true'], ["Homing pigeons use roads where possible to help find their way home. In fact, some pigeons followed roads so closely that they actually flew around traffic circles before choosing the exit that led them home.", 'true'], ["Winston Churchill was born in a ladies' room during a dance.", 'true'], ["The California Department of Motor Vehicles has issued six driver's licenses to six different people named Jesus Christ.", 'true'], ["Cats really do land on their feet, except when they're in heat.", 'false'], ["Archeologists have found evidence in the Middle East that in the Stone Age, mankind had developed a primitive Swiffer.", 'false'], ["30% of women who apply makeup while driving have accidentally swallowed a tube of lipstick.", 'false'], ["About a third of all Americans flush the toilet while they're still sitting on it.", 'true'], ["There is an ATM at McMurdo Station in Antarctica, which has a winter population of 200.", 'true'], ["The first FAX machine was patented in 1843, 33 years before Alexander Graham Bell demonstrated the telephone.", 'true'], ["Only 5 percent of the ocean floor has been mapped in as much detail as the surface of Mars.", 'true'], ["If you part your hair on the right side, you were born to be carnivorous. If you part it on the left, your physical and psychological make-up is that of a vegetarian. ", 'false'], ["After he resigned from the Presidency, Richard Nixon could often be found on the beaches of San Clemente, with his ever-present metal detector.", 'false'], ["40% of people who believe the moon landing was faked also believe the moon isn't real.", 'false'], ["1 pound of lemons contain more sugar than 1 pound of strawberries.", 'true'], ["Due to his constant name changes, Diddy hasn't received mail since 1977.", 'false'], ["A chef's hat is shaped the way it is for a reason: its shape allows air to circulate around the scalp, keeping the head cool in a hot kitchen.", 'true'], ["1.5 million Americans are charged with drunk driving each year.", 'true'], ["U.K. telecom provider Telewest Broadband is testing a device that hooks to your PC and wafts a scent when certain e-mails arrive.", 'true'], ["Fewer divorces occur in families in which the children wake their parents before 6 a.m. on Saturdays. ", 'false'], ["Percentage of women who say they are happier: 85", 'true'], ["An estimated 800,000 senior citizens voluntarily give up their driving privileges each year. The average age at which they surrender the wheel is 85.", 'true'], ["Thomas Edison, among his many other inventions, also invented break dancing. (thanks to Eric Snyder) ", 'false'], ["The first prototype defibrillators delivered 1,200 joules of electrical energy instead of the now standard 360, occasionally causing dead bodies to sit upright momentarily as though they were still alive.", 'false'], ["McDonald's restaurants will buy 54,000,000 pounds of fresh apples this year. Two years ago, McDonald's purchased 0 pounds of apples. This is attributed to the shift to more healthy menu options (the Apple Pie, which has been at McDonald's for years uses processed Apple Pie Filling).", 'true'], ["In America, motorists drive on the right side of the road. In the UK, motorists drive on the left side of the road. In Norway, they drive in the middle.", 'false'], ["Maine is the only state whose name is just one syllable.", 'true'], ["Only 14% of Americans say they've skinny dipped with the opposite sex.", 'true'], ["Two original members of the musical group \"Three Dog Night\" died after eating tainted pet food.", 'false'], ["Albert Einstein never knew how to drive a car.", 'true'], ["Only 3% of American homes are equipped with a telegraph. ", 'false'], ["No one in Pontiac, Michigan owns a Pontiac car. (thanks to Eric Snyder) ", 'false'], ["BMW is developing a side-view mirror in which objects may be farther away than they appear.", 'false'], ["In 1965, auditions were held for the \"Monkees\" TV show. Some of the people who responded (but were not hired) were Stephen Stills, Harry Nilsson, Paul Williams and Charles Manson.", 'true'], ["Talk show host Tom Snyder died while mowing neighbors' lawns for extra cash.", 'false'], ["Paul Marcarelli, an actor from New York City, plays the \"can you hear me now guy\" for Verizon Wireless. He actually has cell phone service with T-Mobile as Verizon does not have adequate coverage in his home area of Queens.", 'false'], ["The egg of a hummingbird will actually float in mid-air in foggy conditions.", 'false'], ["All radios in North Korea have been rigged so listeners can only receive a North Korean government station. The United States recently announced plans to smuggle $2,000,000 worth of small radios into the country so North Koreans can get a taste of (what their government calls) \"rotten imperialist reactionary culture\".", 'true'], ["The top three names for female babies born in China last year were Huan, Jia, and Tiffany. ", 'false'], ["A hummingbird weighs less than a penny.", 'true'], ["The universal size of the credit card is based entirely on the size of the 1960s US Communist Party membership card. Credit cards were designed so that they wouldn't cause the Communist Party card to stand out. ", 'false'], ["Rubbing Tabasco on one's upper lip before bedtime is an effective temporary cure for sleep apnea. ", 'false'], ["None of the actors who play characters on the television show \"All My Children\" have children.", 'false'], ["Billboard magazine has recently launched a top 20 chart of cell phone ringtones.", 'true'], ["The original plans for the Statue of Liberty called for the statue to wave but France did not want to spend the money. ", 'false'], ["Ballpoint pens were invented by a Michigan scientist attempting to reduce the number of birds killed for their quills. ", 'false'], ["Broadway's Nathan Lane actually lives on Nathan Lane in East Hampton, New York.", 'false'], ["Never hold your nose and cover your mouth when sneezing, as it can blow out your eyeballs. ", 'false'], ["Jeffrey Dahmer used Presto's Fry Daddy to dispose of his father's remains.", 'false'], ["An iceberg the size of Long Island, New York, has broken off Antarctica and has blocked sea lanes used by both ships and penguins.", 'true'], ["By law, all globes in Australia are displayed upside down. (thanks to Eric Snyder) ", 'false'], ["The Mongolian pony is the only animal other than an elephant capable of fending off an attack by a healthy adult tiger. ", 'false'], ["In 1950, President Harry Truman threw out the first ball twice at the opening day Washington DC baseball game; once right handed and once left handed.", 'true'], ["The Internal Revenue Service audits 87 percent of women who claim breast implants as tax deductions. ", 'false'], ["George W. Bush has negotiated with the governor of South Dakota to get his face added to Mount Rushmore. Construction is scheduled to start in 2012. ", 'false'], ["Fire escapes, windshield wipers and laser printers were all invented by women.", 'true'], ["There are no venomous snakes in Maine.", 'true'], ["In order to become licensed, a courtroom sketch artist must demonstrate the ability to make defendants look \"shifty\". ", 'false'], ["The IRS admits that one in five people who call their help line get the wrong answer to their question.", 'true'], ["Gerald Ford is the only United States president to have walked on the moon. ", 'false'], ["The winter of 1932 was so cold that Niagara Falls froze completely solid.", 'true'], ["The leg bones of a bat are so thin that no bat can walk.", 'true'], ["Harry S Truman's middle name was S. Just S, without the period. (thanks to Eric Snyder)", 'true'], ["In 2015, it is estimated that half the federal budget will be spent on programs for the elderly.", 'true'], ["Officially, if you say \"Have a nice day\" to someone after 5 PM, it refers to the next day.", 'false'], ["The prison system is the largest supplier of mental health services in America, with 250,000 Americans with mental illness living there.", 'true'], ["More people than you would imagine accidentally swallow their keys.", 'false'], ["Every 23 seconds, someone is having sex in a carpet store. ", 'false'], ["The New York City Police Department has a $3.3 billion annual budget, larger than all but 19 of the world's armies.", 'true'], ["Baby robins eat 14 feet of earthworms every day.", 'true'], ["Every common food product, with the exception of fish, contains some traces of peanuts. ", 'false'], ["\"Hello Kitty\" began as part of a covert propaganda campaign originally proposed by Prime Minister Tojo during World War II. ", 'false'], ["The Weddell seal can travel underwater for seven miles without surfacing for air.", 'true'], ["Larry King wears suspenders in the shower.", 'false'], ["Osama Bin Laden has ordered fleece jackets with the Al Qaeda logo.", 'false'], ["Anyone convicted of animal cruelty in Sedalia, Missouri, is sentenced to a month's confinement in the county animal shelter. ", 'false'], ["61,000 people are airborne over the US at any given time.", 'true'], ["Due to a misprint, some Gideon Bibles list \"the Gospel according to Mark\" as \"the Gospel according to Marv\". ", 'false'], ["President George W. Bush has locked himself out of the Oval Office fifteen times in his presidency.", 'false'], ["Chances that a burglary in the United States will be solved: 1 in 7", 'true'], ["From 1970 through 1972, the penny actually showed Abraham Lincoln with a mustache but no beard.", 'false'], ["Shaquille O'Neal was conceived in a Radio Shack. ", 'false'], ["In the Caribbean there are oysters that can climb trees.", 'true'], ["Two-thirds of all the world's coriander comes from a single valley in Italy. ", 'false'], ["No one named Tony has ever won a Tony Award.", 'false'], ["The largest home in the United States, North Carolina's Biltmore House, was originally intended to be the official residence of a new monarchy to be established when the South rose again. ", 'false'], ["Albert Einstein was an avid bodybuilder.", 'false'], ["The dot that appears over the letter \"i\" is called a tittle.", 'true'], ["Double-yolk eggs, while larger than normal hen's eggs, actually have less nutritional value per ounce, but take about half as long to cook.", 'false'], ["Hillary Clinton has a CD of old standard love songs coming out in late 2008, just in time for the election.", 'false'], ["Every year in the fall, Niagara Falls is shut down for maintenance for 24 hours. The flow is diverted using a massive series of pipes and spigots built for this purpose in 1837. ", 'false'], ["A Brussels Airlines flight to Vienna was aborted because the pilot was attacked in the cockpit. The attacker was a passenger's cat, who got out of its travel bag.", 'true'], ["Two very popular and common objects have the same function, but one has thousands of moving parts, while the other has absolutely no moving parts - an hourglass and a sundial.", 'true'], ["Richard Versalle, a tenor performing at New York's Metropolitan Opera House, suffered a heart attack and fell 10 feet from a ladder to the stage just after singing the line \"You can only live so long.\"", 'true'], ["The drive-through line on opening day at the McDonald's restaurant in Kuwait City, Kuwait was at times seven miles long.", 'true'], ["A Boeing 767 airliner is made of 3,100,000 separate parts.", 'true'], ["If you place a fresh Viagra tablet in a houseplant's soil every six months, the plant will not wilt. ", 'false'], ["The typical American child receives 70 new toys a year, most of them during the holiday season.", 'true'], ["Ted Turner owns 5% of New Mexico.", 'true'], ["If the Earth was put on a scale, scientists would be puzzled by the presence of that scale.", 'false'], ["All of Queen Anne's 17 children died before she did.", 'true'], ["Ingesting small doses of ink over an extended period of time will change your eye color slightly. ", 'false'], ["Jim Gordon, drummer of Derek and the Dominos (\"Layla\"), killed his mother with a claw hammer.", 'true'], ["The Olympic flag's colors are always red, black, blue, green and yellow rings on a field of white. This is because at least one of those colors appears on the flag of every nation on the planet.", 'true'], ["There are more cars in Southern California than there are cows in India.", 'true'], ["SUV sales are up 18% in the first quarter of 2004 vs. the same period of 2003, even though gas prices are skyrocketing. Consumer surveys show that gas prices would have to hit $3.75 per gallon before there will be any real impact on SUV sales.", 'true'], ["Fast food provider Hardee's has recently introduced the Monster Thickburger. It has 1,420 calories and 107 grams of fat.", 'true'], ["The Eiffel Tower shrinks 6 inches in winter.", 'true'], ["Nolan Ryan once threw a fastball so hard it killed both the catcher and the umpire.", 'false'], ["Only a single dissenting vote prevented the death penalty in Texas from being carried out by immersing the convicted person in a nest of fire ants. ", 'false'], ["The most common name in the world is Mohammed.", 'true'], ["Silica gel, when mixed in with asphalt, makes highways that actually absorb rainfall. A side effect is that automobile tires would last two to three times as long when used on this type pavement. The tire industry has fought this breakthrough.", 'false'], ["In the early 1900s, a dozen actually was a measurement based on weight. Only in 1933 did the Department of Weights and Measures come up with an item count of twelve as a definition. ", 'false'], ["A Wisconsin man was beaten by an angry mob because he asked for \"no cheese\" on his Whopper.", 'false'], ["In all three Godfather films, when you see oranges, there is a death (or a very close call) coming up soon.", 'true'], ["After breaking his promise not to raise taxes, George H. W. Bush used some of the money to buy a Donkey Kong machine for the White House. ", 'false'], ["The father of the famous murderer \"Son of Sam\" actually was named Percy.", 'false'], ["Before he had his own show, Jerry Seinfeld appeared on three episodes of the TV show \"Benson\" as the governor's speechwriter.", 'true'], ["Pope John Paul II is the world's Scrabble champion in the over-70 category.", 'true'], ["In ancient Greece, children of wealthy families were dipped in olive oil at birth to keep them hairless throughout their lives. ", 'false'], ["Moths are unable to fly during an earthquake. ", 'false'], ["Because of an onion allergy, the singer Meatloaf can't eat meatloaf.", 'false'], ["40% of all people who come to a party in your home snoop in your medicine cabinet.", 'true'], ["A mole can dig a tunnel 300 feet long in just one night.", 'true'], ["More people are killed by donkeys annually than are killed in plane crashes.", 'true'], ["Each year, 48 customers are accidentally electrocuted at a Circuit City. ", 'false'], ["There are 2,000,000 millionaires in the United States.", 'true'], ["The lead role for the movie \"Gandhi\" originally was offered to Burt Reynolds.", 'false'], ["There are between 5,000 and 7,000 tigers kept as pets in the United States.", 'true'], ["Oprah Winfrey and Elvis Presley are distant cousins.", 'true'], ["The rhesus monkey is the only animal that can be taught to hum a tune. ", 'false'], ["More Americans choke to death on bathmats than die in auto accidents.", 'false'], ["The first item ever patented at the United States Patent Office was the patent application form. ", 'false'], ["Mel Blanc (voice of Bugs Bunny) was allergic to carrots.", 'true'], ["An ostrich's eye is bigger than its brain.", 'true'], ["The worst air polluter in the entire state of Washington is Mount St. Helens.", 'true'], ["There once was a town named \"6\" in West Virginia.", 'true'], ["To thank the French for the Statue of Liberty, in early caricatures of \"Uncle Sam\", he always wore a beret (instead of the trademark stovepipe hat).", 'false'], ["Former British Prime Minister Margaret Thatcher helped invent soft-serve ice cream.", 'false'], ["The United States has five percent of the world's population, but twenty-five percent of the world's prison population.", 'true'], ["During Bill Clinton's entire eight year presidency, he only sent two e-mails. One was to John Glenn when he was aboard the space shuttle, and the other was a test of the e-mail system.", 'true'], ["Adding baking soda and vinegar will make your scrambled eggs fluffier. ", 'false'], ["A snail can also sleep for three years.", 'true'], ["The blue whale can produce sounds up to 188 decibels. This is the loudest sound produced by a living animal and has been detected as far away as 530 miles.", 'true'], ["Barbara Walters was once arrested for playing golf naked. ", 'false'], ["Truth or Consequences, New Mexico is one of two United States towns named after a game show. The other is Password, Nevada. ", 'false'], ["According to a recently found artifact, it appears that Mary and Joseph's second choice for a name was Larry. (thanks to Eric Snyder) ", 'false'], ["Only 30% of stolen artwork worth more than $1,000,000 each is recovered.", 'true'], ["Three out of ten doctors admit to licking the tongue depressors before using them. ", 'false'], ["The CNN Christmas party is held at Denny's.", 'false'], ["Although difficult, it's possible to start a fire by rapidly rubbing together two Cool Ranch Doritos. ", 'false'], ["In 1984, an Ohio family visiting New York City stood at a broken DON'T WALK sign for three days.", 'false'], ["The company that manufactures the greatest number of women's dresses each year is Mattel. Barbie's got to wear something.", 'true'], ["Percentage of bird species that are monogamous: 90", 'true'], ["Larry Bird has never eaten chicken. (thanks to Eric Snyder) ", 'false'], ["The first movie that had sound was a documentary on \"The History of Gallaudet University\". (thanks to Tim Garcia)", 'false'], ["Penguins can smell toothpaste from several miles away.", 'false'], ["John Madden is an accomplished ballroom dancer.", 'true'], ["In a recent survey, Americans revealed that banana was their favorite smell.", 'true'], ["Levi-Strauss lost millions when they marketed a line of blue jeans for horses. ", 'false'], ["Queen Elizabeth has seen the movie \"Spaceballs\" at least twelve times.", 'false'], ["To prepare for her studies with gorillas, Jane Goodall spent two years living in a Best Buy Electronics Store appliance section.", 'false'], ["The number of US college students studying Latin is three times the number studying Arabic.", 'true'], ["Oslo, Norway is the world's most expensive city. A gallon on gas costs almost $5, and it costs $1.32 to use the public restrooms.", 'true'], ["There are seven words in Tagalog that mean \"wet\". (thanks to Eric Snyder) ", 'false'], ["There are only three types of snakes on the island of Tasmania and all three are deadly poisonous.", 'true'], ["65% of all automobile accidents take place within five miles of an Arby's restaurant.", 'false'], ["The K in K-Mart stands for K-Mart.", 'false'], ["Contestants on the reality show \"Survivor\" quietly receive a case of Quaker granola bars to eat if they're really hungry.", 'false'], ["The only English words ending in the letters \"mt\" are dreamt and flemt.", 'false'], ["Jennifer Aniston's first acting job was in a Rice Krispies commercial. The commercial never aired because the actress quickly had welts all over her body due to an allergic reaction.", 'false'], ["4 out of 5 men have gotten their arm stuck in a vending machine. ", 'false'], ["The Hyundai Elantra is China's best selling car, but \"Elantra\" in some dialects of Mandarin Chinese means \"Violation\", so the car is actually named \"Guana\".", 'false'], ["The word spelled most incorrectly in regional middle-school spelling bees is \"status\".", 'false'], ["Edward R. Murrow's middle name was Rhonda.", 'false'], ["The original Mickey Mouse cartoon was in the Mouse language, with English subtitles.", 'false'], ["Every United States President with a beard has been a Republican. ", 'false'], ["In the film Forrest Gump, all the still photos show Forrest with his eyes closed.", 'true'], ["Sheep ranchers counting the number of animals in their herd often doze off.", 'false'], ["Police lineups always put the guilty guy in the middle.", 'false'], ["More people use blue toothbrushes than red ones.", 'true'], ["It is believed that Shakespeare was 46 around the time that the King James Version of the Bible was written. In Psalms 46, the 46th word from the first word is \"shake\" and the 46th word from the last word is \"spear\".", 'true'], ["There is a bar in London that sells vaporized vodka, which is inhaled instead of sipped.", 'true'], ["Socrates is thought to be the first to use the phrase \"a bad case of the Mondays\".", 'false'], ["Leonardo da Vinci drew up plans for the first novelty set of chattering teeth. ", 'false'], ["Scientists predict that in late 2008 the television show \"Mythbusters\" will run out of myths.", 'false'], ["Alan Shepard was the only astronaut to leave his wallet on the moon.", 'false'], ["In 2003, there were 86 days of below-freezing weather in Hell, Michigan.", 'true'], ["All of the clocks in the movie \"Pulp Fiction\" read 4:20.", 'true'], ["There are 40,000 New York City cab drivers, who collectively drive more than a million miles each day.", 'true'], ["The lead singer of The Knack, famous for \"My Sharona,\" and Jack Kevorkian's lead defense attorney are brothers, Doug and Jeffrey Feiger.", 'true'], ["All polar bears are left handed.", 'true'], ["Pat Sajak can't read.", 'false'], ["To research his role in \"Tootsie\", Dustin Hoffman spent two years living as a woman. ", 'false'], ["Mailmen in Russia now carry revolvers after a recent decision by the government.", 'true'], ["At the height of \"Star Wars\" mania, Jimmy Carter gave an oval office address in a Chewbacca costume. ", 'false'], ["Gillette spent $1,000,000 to place razor samples in the welcome bags handed out at the Democratic National Convention, only to have them confiscated as they were considered a threat. This caused huge delays at all security checkpoints.", 'true'], ["Bob Saget lives in the old set of \"Full House\".", 'false'], ["In a 1996 phone book, AT&T; accidentally listed a Pizza Hut in Iowa with the phone number of a funeral home in Dallas, Texas.", 'false'], ["Even today, 90% of the continental United States is still open space or farmland.", 'true'], ["Former keyboard player for Jethro Tull David Palmer is now a woman named Dee Palmer. He waited until his wife died before going through with his longtime desire for a sex change.", 'true'], ["The largest McDonald's is in Beijing, China - measuring 28,000 square feet. It has twenty nine cash registers.", 'true'], ["About 3000 years ago, most Egyptians died by the time they were 30.", 'true'], ["An eagle can kill a young deer and fly away with it.", 'true'], ["George Washington spent about 7% of his annual salary on liquor.", 'true'], ["Ancient Egyptians slept on pillows made of stone.", 'true'], ["Recycling one glass jar saves enough energy to watch TV for 3 hours.", 'true'], ["Beethoven wasn't really deaf, but only pretended to be deaf when his mother-in-law was around.", 'false'], ["Ted Williams' last words: \"I was kidding about being frozen\";.", 'false'], ["Calvin, of the \"Calvin and Hobbes\" comic strip, was patterned after President Calvin Coolidge, who had a pet tiger as a boy. ", 'false'], ["The only member of the band ZZ Top without a beard has the last name Beard.", 'true'], ["The earliest rocking chairs only rocked forward. ", 'false'], ["Every day more money is printed for Monopoly than for the US Treasury.", 'true'], ["Half and half is actually closer to 60-40.", 'false'], ["Molecularly speaking, water is actually much drier than sand. ", 'false'], ["The leading cause of on-the-job deaths in workplaces in America is homicide.", 'true'], ["The Army Corps of Engineers has spent millions of dollars trying to cross a bridge before they come to it. ", 'false'], ["The Chicago Cubs are suing former Hartford Courant newspaper carrier Mark Guthrie to get back $301,000 in pay that was intended to go to a Cubs pitcher with the same name. The Tribune Company owns both the Hartford Courant and the Chicago Cubs.", 'true'], ["Experts predict that by 2009, every television commercial will feature Peyton Manning.", 'false'], ["President Harry S. Truman would often go on vacation and secretly have his identical twin Larry run the country.", 'false'], ["If you stretch a standard Slinky out flat it measures 87 feet long.", 'true'], ["Atlanta Falcon star Michael Vick got involved in dogfighting because cockfighting wasn't what he thought it was.", 'false'], ["The average American adult weighs 250 pounds.", 'false'], ["In 2002, women earned 742,000 bachelor's degrees. Men earned only 550,000 during the same year. The difference is growing so large that many colleges now practice (quietly) affirmative action for male applicants.", 'true'], ["Surprisingly, famous astronomer Carl Sagan couldn't count to 100. (thanks to Eric Snyder) ", 'false'], ["Quebec City, Canada, has about as much street crime as Disney World.", 'true'], ["Dogs have two sets of teeth, just like humans. They first have 30 \"puppy\" teeth, then 42 adult teeth.", 'true'], ["If all Americans used one third less ice in their drinks the United States would become a net exporter instead of an importer of energy.", 'true'], ["Hawaii is moving toward Japan 4 inches every year.", 'true'], ["The time spent deleting SPAM costs United States businesses $21.6 billion annually.", 'true'], ["Watching an hour-long soap opera burns more calories than watching a three-hour baseball game. ", 'false'], ["Donald Trump's hair has its own zip code.", 'false'], ["The volume of water that the Giant Sequoia tree consumes in a 24-hour period contains enough suspended minerals to pave 16 feet of a 4-lane concrete freeway. ", 'false'], ["You are more likely to be charged by a rhino than to be pulled over for not wearing your seatbelt. ", 'false'], ["Fleas can jump 130 times higher than their own height. In human terms this is equal to a 6 foot person jumping 780 feet into the air.", 'true'], ["In 1998, more fast-food employees were murdered on the job than police officers.", 'true'], ["Percentage of American men who say they would marry the same woman if they had it to do all over again: 80", 'true'], ["Vice President Dick Cheney is an accomplished studio musician, and has played trumpet and woodwinds for the likes of Tony Bennett, Frank Sinatra and (most recently) Paul Anka.", 'false'], ["In the original plot of \"NYPD Blue\", Sipowitz was killed while stopping five losers trying to rob Mick Jagger.", 'false'], ["A Costa Rican worker who makes baseballs earns about $2,750 annually. The average American pro baseball player earns $2,377,000 per year.", 'true'], ["Point Roberts in Washington State is cut off from the rest of the state by British Columbia, Canada. If you wish to travel from Point Roberts to the rest of the state or vice versa, you must pass through Canada, including both Canadian and U.S. customs.", 'true'], ["Replying more than 100 times to the same piece of spam e-mail will overwhelm the sender's system and interfere with their ability to send any more spam. ", 'false'], ["The microwave oven was invented by mistake when an engineer testing a magnetron tube noticed that the radiation from it melted the chocolate bar he had in his pocket.", 'true'], ["John Wayne's real name was Lydia Schiffman.", 'false'], ["During the height of the hula-hoop craze, manufacturer Wham-O was making 20 each and every day.", 'false'], ["In 2018, the month of February will not have a full moon.", 'true'], ["Time Magazine's 1951 Man of the Year was Moe.", 'false'], ["In Tokyo, they sell toupees for dogs.", 'true'], ["The videogame Donkey Kong is based on a true story.", 'false'], ["A 9-volt battery contains roughly the same amount of kinetic energy as a bowl of Lucky Charms. ", 'false'], ["Babe Ruth wore a cabbage leaf under his cap to keep him cool. He changed it every 2 innings.", 'true'], ["There wasn't a single pony in the Pony Express, just horses.", 'true'], ["Microsoft threatened 17 year old Mike Rowe with a lawsuit after the young man launched a website named MikeRoweSoft.com. ", 'true'], ["The Hoover Dam was built to last 2,000 years. Its concrete will not be fully cured for another 500 years.", 'true'], ["Male ladybugs always have an odd number of spots, and one spot will always be white.", 'false'], ["Christopher Columbus actually had four ships: Nina, Pinta, Santa Maria and \"Life's a Beach\".", 'false'], ["The treasury department has more than twenty people assigned to catching people who violate the trade and tourism embargo with Cuba. In contrast, it has only four employees assigned to track the assets of Osama bin Laden and Saddam Hussein.", 'true'], ["The world's largest book, \"Bhutan: A Visual Odyssey\" is in a Chicago public library. The book measures 5 feet tall by 7 feet wide when open. It weighs 133 pounds.", 'true'], ["The entire fleet of Unicoi County Tennessee's salt trucks was rendered out of commission in one accident. All three trucks were badly damaged when one of them began skidding down a road, causing a chain reaction accident. Officials blamed road conditions.", 'true'], ["The pitches that Babe Ruth hit for his last-ever homerun and that Joe DiMaggio hit for his first-ever homerun where thrown by the same man.", 'true'], ["Touch-tone telephone keypads were originally planned to have buttons for Police and Fire Departments, but they were replaced with * and # when the project was cancelled in favor of developing the 911 system. ", 'false'], ["Round bread (to fit properly with round bologna) has succeeded each time it has been test-marketed, but the difficulty and expense in baking a round loaf of bread makes it unprofitable for bakeries.", 'false'], ["Nancy Reagan can palm a basketball.", 'false'], ["George W. Bush is probably going to be the eighth president in US history to have completed a term in office without ever having issued a single veto.", 'true'], ["The praying mantis is the only insect that can turn its head.", 'true'], ["A quarter has 119 grooves on its edge, a dime has one less groove.", 'true'], ["In February 2004, a Disney World employee was killed when he fell from a parade float and was trapped between two float sections. OSHA termed this a serious workplace violation, but Disney was fined only $6,300.", 'true'], ["In 2004, Virgin Atlantic Airlines introduced a double bed for first class passengers who fly together.", 'true'], ["A Canadian study has shown that if you choose a baby's name before it is born, the baby will most likely be female.", 'false'], ["Japanese and Chinese people die on the fourth of the month more often than any other dates. The reason may be that they are \"scared to death\" by the number four. The words four and death sound alike in both Chinese and Japanese.", 'true'], ["Before Charles DeGaulle was the French President, he was a bounty hunter. (thanks to Eric Snyder)", 'false'], ["There are more collect calls on Father's Day than any other day of the year.", 'true'], ["The Australian aborigine language has over 30 words for \"dust.\" ", 'false'], ["Tuesday didn't exist on calendars until 1955. ", 'false'], ["Winnie the Pooh was originally named \"Winnie the Pee\". (thanks to Eric Snyder) ", 'false'], ["Manatees possess vocal chords which give them the ability to speak almost like humans, but don't speak because they have no ears with which to hear the sound. ", 'false'], ["Prior to statehood, North Carolina was called South Virginia. ", 'false'], ["If you put a bee in a film canister for two hours, it will go blind.", 'false'], ["There are more plastic flamingoes in the United States than real ones.", 'true'], ["Airport security agents at Logan Airport in Boston, Massachusetts caught a passenger trying to sneak a severed seal head onto a plane inside a cooler. The man said he was a biology professor and had found the dead animal on the beach.", 'true'], ["Married men change their underwear twice as often as single men.", 'true'], ["Every 46 seconds, someone is scalded at Starbucks. ", 'false'], ["The earliest English Muffins contained nooks but no crannies.", 'false'], ["Most boat owners name their boats. The most popular boat name requested is Obsession.", 'true'], ["A jellyfish is 95 percent water.", 'true'], ["Ants stretch when they wake up in the morning.", 'true'], ["La Paz, Bolivia has an average annual temperature below 50 degrees Fahrenheit. However, it has never recorded a zero-degree temperature. Same for Stanley, Falkland Islands and Punta Arenas, Chile.", 'true'], ["The entire town of Capena, Italy (including children as young as 2 years old) lights up cigarettes each year in honor of St. Anthony's Day. This tradition is centuries old.", 'true'], ["A woman was chewing what was left of her chocolate bar when she entered a Metro station in Washington DC. She was arrested and handcuffed; eating is prohibited in Metro stations.", 'true']]
307.823529
104,781
0.736665
28,336
172,689
4.489695
0.222932
0.008018
0.004834
0.004245
0.097705
0.079602
0.069014
0.064432
0.059165
0.05382
0
0.018181
0.16997
172,689
560
104,782
308.373214
0.869322
0
0
0.053763
0
0.795699
0.820573
0.001749
0
0
0
0
0
1
0
false
0.008961
0.003584
0
0.003584
0.010753
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
17b4c6a525923c76105b1e66c532efc33cd33653
23
py
Python
__init__.py
mendhak/aws-elb-logster
4122f03fd3977225269190fff60fd5d7935ddeaf
[ "MIT" ]
2
2015-09-14T22:16:52.000Z
2016-04-11T17:08:32.000Z
__init__.py
mendhak/aws-elb-logster
4122f03fd3977225269190fff60fd5d7935ddeaf
[ "MIT" ]
null
null
null
__init__.py
mendhak/aws-elb-logster
4122f03fd3977225269190fff60fd5d7935ddeaf
[ "MIT" ]
null
null
null
# # Python init file #
5.75
18
0.608696
3
23
4.666667
1
0
0
0
0
0
0
0
0
0
0
0
0.26087
23
3
19
7.666667
0.823529
0.695652
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
17e1d0ca3e2d0f35d168ba0274703631eff3ed3a
417
py
Python
exceptions.py
italovalcy/mef_eline
230d2bb44b1506adc9900157ca09e920fb37b002
[ "MIT" ]
1
2021-12-09T17:09:33.000Z
2021-12-09T17:09:33.000Z
exceptions.py
italovalcy/mef_eline
230d2bb44b1506adc9900157ca09e920fb37b002
[ "MIT" ]
171
2021-06-02T20:29:22.000Z
2022-03-18T17:47:57.000Z
exceptions.py
italovalcy/mef_eline
230d2bb44b1506adc9900157ca09e920fb37b002
[ "MIT" ]
3
2021-06-15T18:55:52.000Z
2021-10-01T14:47:10.000Z
"""MEF Eline Exceptions.""" class MEFELineException(Exception): """MEF Eline Base Exception.""" class EVCException(MEFELineException): """EVC Exception.""" class ValidationException(EVCException): """Exception for validation errors.""" class FlowModException(MEFELineException): """Exception for FlowMod errors.""" class InvalidPath(MEFELineException): """Exception for invalid path."""
18.954545
42
0.717026
36
417
8.305556
0.5
0.26087
0.19398
0
0
0
0
0
0
0
0
0
0.146283
417
21
43
19.857143
0.839888
0.366906
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0
0
1
0
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
0
0
1
0
0
4
aa1b3aaba80e142eb448dc289c39eaf7a010960f
60
py
Python
workflow/scripts/helpers/__init__.py
IMS-Bio2Core-Facility/single_snake_sequencing
dddf8fc8960da8938484f98a4ea94f74a4fd5b18
[ "MIT" ]
null
null
null
workflow/scripts/helpers/__init__.py
IMS-Bio2Core-Facility/single_snake_sequencing
dddf8fc8960da8938484f98a4ea94f74a4fd5b18
[ "MIT" ]
null
null
null
workflow/scripts/helpers/__init__.py
IMS-Bio2Core-Facility/single_snake_sequencing
dddf8fc8960da8938484f98a4ea94f74a4fd5b18
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """BIC083-Eunyoung-Lee analysis."""
20
35
0.583333
7
60
5
1
0
0
0
0
0
0
0
0
0
0
0.075472
0.116667
60
2
36
30
0.584906
0.866667
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
aa38f5ac2a7fc58b2bcf11437fbfffc67543b98c
1,525
py
Python
output/models/ibm_data/valid/d3_4_6/d3_4_6v06_xsd/d3_4_6v06.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
1
2021-08-14T17:59:21.000Z
2021-08-14T17:59:21.000Z
output/models/ibm_data/valid/d3_4_6/d3_4_6v06_xsd/d3_4_6v06.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
4
2020-02-12T21:30:44.000Z
2020-04-15T20:06:46.000Z
output/models/ibm_data/valid/d3_4_6/d3_4_6v06_xsd/d3_4_6v06.py
tefra/xsdata-w3c-tests
b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f
[ "MIT" ]
null
null
null
from dataclasses import dataclass, field from typing import List __NAMESPACE__ = "a" @dataclass class Nametest: choice: List[object] = field( default_factory=list, metadata={ "type": "Elements", "choices": ( { "name": "_ele", "type": str, "namespace": "a", }, { "name": "_-", "type": str, "namespace": "a", }, { "name": "_.", "type": str, "namespace": "a", }, { "name": "_9", "type": str, "namespace": "a", }, { "name": "___", "type": str, "namespace": "a", }, { "name": "a_a", "type": str, "namespace": "a", }, { "name": "a.a", "type": str, "namespace": "a", }, { "name": "ele", "type": str, "namespace": "a", }, ), } ) @dataclass class Root(Nametest): class Meta: name = "root" namespace = "a"
23.828125
40
0.260984
82
1,525
4.695122
0.304878
0.25974
0.332468
0.353247
0.462338
0.462338
0.392208
0.392208
0.392208
0.392208
0
0.001686
0.611148
1,525
63
41
24.206349
0.647555
0
0
0.310345
0
0
0.125246
0
0
0
0
0
0
1
0
false
0
0.034483
0
0.103448
0
0
0
0
null
1
1
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a4b259e11338f6d5c17641cccb402a501cd51358
25,351
py
Python
gameevents/tests/test_gameevents.py
danilovbarbosa/sg-gameevents
839de019fb6026c5a9d3178d3109cb2948f19f09
[ "Apache-2.0" ]
null
null
null
gameevents/tests/test_gameevents.py
danilovbarbosa/sg-gameevents
839de019fb6026c5a9d3178d3109cb2948f19f09
[ "Apache-2.0" ]
null
null
null
gameevents/tests/test_gameevents.py
danilovbarbosa/sg-gameevents
839de019fb6026c5a9d3178d3109cb2948f19f09
[ "Apache-2.0" ]
1
2018-09-28T00:03:29.000Z
2018-09-28T00:03:29.000Z
import unittest import time import datetime import json import sys #import base64 #from werkzeug.wrappers import Response sys.path.append("..") #from flask import current_app #from werkzeug.datastructures import Headers from gameevents_app import create_app #Extensions from gameevents_app.extensions import db, LOG from gameevents_app.models.session import Session from gameevents_app.models.client import Client from gameevents_app.models.gameevent import GameEvent from uuid import UUID import OpenSSL #from gameevents_app.errors import InvalidGamingSession #from sqlalchemy.orm.exc import NoResultFound #from flask.ext.api.exceptions import AuthenticationFailed class TestGameEvents(unittest.TestCase): @classmethod def setUpClass(self): self.app = create_app(testing=True) self.app_context = self.app.app_context() self.app_context.push() self.client = self.app.test_client() LOG.info("Initializing tests.") #Create a brand new test db db.create_all() #Add a clientid and apikey new_client = Client("myclientid", "myapikey", "normal") new_admin_client = Client("dashboard", "dashboardapikey", "admin") db.session.add(new_client) db.session.add(new_admin_client) try: db.session.commit() LOG.info("=== Added clients ===") except Exception as e: LOG.error(e, exc_info=True) #Generating gaming sessions ids self.newsessionid = UUID(bytes = OpenSSL.rand.bytes(16)).hex self.newsessionid2 = UUID(bytes = OpenSSL.rand.bytes(16)).hex self.newsessionid3 = UUID(bytes = OpenSSL.rand.bytes(16)).hex #session not in db self.unauthorized_sessionid = "ac52bb1d811356ab3a8e8711c5f7ac5d" new_session = Session(self.newsessionid, new_client.id) new_session2 = Session(self.newsessionid2, new_client.id) db.session.add(new_session) db.session.add(new_session2) try: db.session.commit() LOG.info("=== Added sessions ===") LOG.info("=== Session not in db: %s ===" % self.newsessionid3) except Exception as e: LOG.error(e, exc_info=True) #Generating tokens self.mytoken = new_client.generate_auth_token(self.newsessionid) self.myexpiredtoken = new_client.generate_auth_token(self.newsessionid, expiration=1) self.mytokennewsession = new_client.generate_auth_token(self.newsessionid3) self.myadmintoken = new_admin_client.generate_auth_token() self.myexpiredadmintoken = new_admin_client.generate_auth_token(expiration=1) self.mybadtoken = "badlogin" + self.mytoken.decode()[8:] self.mybadtoken = self.mybadtoken.encode("ascii") self.xml_valid_event = """<event><timestamp>2015-11-29T12:10:57Z</timestamp> <action>STARTGAME</action><level></level><update></update><which_lix> </which_lix><result></result></event>"""; self.json_valid_event = """[{ "timestamp": "2015-11-29T12:10:57Z", "action": "STARTGAME", "which_lix": "" }]""" self.xml_invalid_event = """<event>a <action>STARTGAME</action> <timestamp>2015-11-29T12:10:57Z</timestamp> <which_lix /> </event>""" self.json_invalid_event = """ "timestamp": "2015-11-29T12:10:57Z", "action": "STARTGAME",, "which_lix": "" """ self.xml_multiple_events = """<event> <action>STARTGAME</action> <timestamp>2015-11-29T12:10:57Z</timestamp> <which_lix /> </event> <event> <action>ENDGAME</action> <timestamp>2015-11-29T13:10:57Z</timestamp> <which_lix /> </event>""" self.json_multiple_events = """[{ "timestamp": "2015-11-29T12:10:57Z", "action": "STARTGAME", "which_lix": "" }, { "timestamp": "2015-11-29T13:10:57Z", "action": "ENDGAME", "which_lix": "" }]""" time.sleep(3) #expire the token new_gameevent = GameEvent(new_session.id,self.xml_valid_event) db.session.add(new_gameevent) try: db.session.commit() LOG.info("=== Added game event. All set up. ===") except Exception as e: LOG.error(e, exc_info=True) @classmethod def tearDownClass(self): LOG.info("======================Finished tests====================") db.session.remove() db.drop_all() self.app_context.pop() def test_token_existing_sessionid(self): ''' Token request with valid credentials and existing sessionid. ''' requestdata = json.dumps(dict(clientid="myclientid", apikey="myapikey", sessionid = self.newsessionid)) response = self.client.post('/gameevents/api/v1.0/token', data=requestdata, content_type = 'application/json', follow_redirects=True) # Assert response is 200 OK. self.assertEquals(response.status, "200 OK") def test_token_nonexisting_but_valid_sessionid(self): ''' Token request with valid credentials and a valid - but still not in the db - sessionid. ''' requestdata = json.dumps(dict(clientid="myclientid", apikey="myapikey", sessionid = self.newsessionid3)) response = self.client.post('/gameevents/api/v1.0/token', data=requestdata, content_type = 'application/json', follow_redirects=True) # Assert response is 200 OK. self.assertEquals(response.status, "200 OK") def test_token_invalid_sessionid(self): ''' Token request with valid credentials but invalid sessionid. ''' requestdata = json.dumps(dict(clientid="myclientid", apikey="myapikey", sessionid = "bablablabal")) response = self.client.post('/gameevents/api/v1.0/token', data=requestdata, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "400 BAD REQUEST") def test_token_unauthorized_sessionid(self): ''' Token request with valid credentials but invalid sessionid. ''' requestdata = json.dumps(dict(clientid="myclientid", apikey="myapikey", sessionid = self.unauthorized_sessionid)) response = self.client.post('/gameevents/api/v1.0/token', data=requestdata, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "401 UNAUTHORIZED") def test_get_admin_token(self): ''' Admin token request with valid credentials. ''' requestdata = json.dumps(dict(clientid="dashboard", apikey="dashboardapikey")) response = self.client.post('/gameevents/api/v1.0/token', data=requestdata, content_type = 'application/json', follow_redirects=True) # Assert response is 200 OK. self.assertEquals(response.status, "200 OK") def test_token_badparams(self): ''' Token request with missing parameters. ''' requestdata = json.dumps(dict(clientid="myclientid")) response = self.client.post('/gameevents/api/v1.0/token', data=requestdata, content_type = 'application/json', follow_redirects=True) # Assert response is 400 BAD REQUEST. self.assertEquals(response.status, "400 BAD REQUEST") def test_token_invalid_apikey(self): ''' Token request with invalid credentials and valid sessionid. ''' requestdata = json.dumps(dict(clientid="myclientidaaaaa", apikey="myapikeyaaaa", sessionid=self.newsessionid)) response = self.client.post('/gameevents/api/v1.0/token', data=requestdata, content_type = 'application/json', follow_redirects=True) # Assert response is 200 OK. self.assertEquals(response.status, "401 UNAUTHORIZED") def test_token_invalid_clientid(self): ''' Token request with valid clientid but invalid apikey, and valid sessionid. ''' requestdata = json.dumps(dict(clientid="myclientid", apikey="myapikeyaaaa", sessionid=self.newsessionid)) response = self.client.post('/gameevents/api/v1.0/token', data=requestdata, content_type = 'application/json', follow_redirects=True) # Assert response is 200 OK. self.assertEquals(response.status, "401 UNAUTHORIZED") def test_commit_xmlgameevent_validtoken(self): ''' Game event commit request with valid token and invalid game event (in XML instead of JSON). ''' token = self.mytoken.decode() headers = {} sessionid = self.newsessionid headers['X-AUTH-TOKEN'] = token gameevent = self.xml_valid_event timestamp = str(datetime.datetime.now()) requestdata = json.dumps(dict(timestamp=timestamp, events=gameevent)) response = self.client.post('/gameevents/api/v1.0/sessions/%s/events' % sessionid, data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "400 BAD REQUEST") def test_commit_gameevent_incompletejsonrequest(self): ''' Game event commit request with valid token and invalid game event (invalid JSON). ''' token = self.mytoken.decode() headers = {} sessionid = self.newsessionid headers['X-AUTH-TOKEN'] = token requestdata = "{json:\"badlyformed\"" response = self.client.post('/gameevents/api/v1.0/sessions/%s/events' % sessionid, data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "400 BAD REQUEST") def test_commit_jsongameevent_validtoken(self): ''' Game event commit request with valid token and valid game event. ''' token = self.mytoken.decode() headers = {} headers['X-AUTH-TOKEN'] = token sessionid = self.newsessionid gameevent = self.json_valid_event timestamp = str(datetime.datetime.now()) requestdata = json.dumps(dict(timestamp=timestamp, events=gameevent)) response = self.client.post('/gameevents/api/v1.0/sessions/%s/events' % sessionid, data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "201 CREATED") #self.assertFail() def test_commit_invalidjsongameevent_validtoken(self): ''' Game event commit request with valid token and invalid game event (invalid JSON). ''' token = self.mytoken.decode() headers = {} sessionid = self.newsessionid gameevent = self.json_invalid_event headers['X-AUTH-TOKEN'] = token timestamp = str(datetime.datetime.now()) requestdata = json.dumps(dict(timestamp=timestamp, events=gameevent)) response = self.client.post('/gameevents/api/v1.0/sessions/%s/events' % sessionid, data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "400 BAD REQUEST") def test_commit_invalidxmlgameevent_validtoken(self): ''' Game event commit request with valid token and invalid game event (in invalid XML). ''' token = self.mytoken.decode() headers = {} sessionid = self.newsessionid headers['X-AUTH-TOKEN'] = token gameevent = self.xml_invalid_event timestamp = str(datetime.datetime.now()) requestdata = json.dumps(dict(timestamp=timestamp, events=gameevent)) response = self.client.post('/gameevents/api/v1.0/sessions/%s/events' % sessionid, data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "400 BAD REQUEST") def test_commit_multiplexmlgameevent_validtoken(self): ''' Game event commit request with valid token and multiple game events (but in XML, not JSON). ''' token = self.mytoken.decode() headers = {} sessionid = self.newsessionid headers['X-AUTH-TOKEN'] = token gameevent = self.xml_multiple_events timestamp = str(datetime.datetime.now()) requestdata = json.dumps(dict(timestamp=timestamp, events=gameevent)) response = self.client.post('/gameevents/api/v1.0/sessions/%s/events' % sessionid, data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "400 BAD REQUEST") def test_commit_multiplejsongameevent_validtoken(self): ''' Game event commit request with valid token and multiple valid game events. ''' token = self.mytoken.decode() headers = {} sessionid = self.newsessionid headers['X-AUTH-TOKEN'] = token gameevent = self.json_multiple_events timestamp = str(datetime.datetime.now()) requestdata = json.dumps(dict(timestamp=timestamp, events=gameevent)) response = self.client.post('/gameevents/api/v1.0/sessions/%s/events' % sessionid, data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) json_results = json.loads(response.get_data().decode()) self.assertEquals(json_results["message"], "Created 2 new item(s).") self.assertEquals(response.status, "201 CREATED") #self.assertFail() def test_commit_gameevent_validtoken_newsessionid(self): ''' Game event commit request with valid token but for a session not in the database. ''' token = self.mytokennewsession.decode() sessionid = self.newsessionid3 gameevent = self.json_valid_event timestamp = str(datetime.datetime.now()) headers = {} headers['X-AUTH-TOKEN'] = token requestdata = json.dumps(dict(timestamp=timestamp, events=gameevent)) response = self.client.post('/gameevents/api/v1.0/sessions/%s/events' % sessionid, data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "404 NOT FOUND") def test_commit_gameevent_expiredtoken(self): ''' Game event commit request with expired token. ''' token = self.myexpiredtoken.decode() sessionid = self.newsessionid gameevent = self.json_valid_event timestamp = str(datetime.datetime.now()) requestdata = json.dumps(dict(timestamp=timestamp, events=gameevent)) headers = {} headers['X-AUTH-TOKEN'] = token response = self.client.post('/gameevents/api/v1.0/sessions/%s/events' % sessionid, data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "401 UNAUTHORIZED") def test_commit_gameevent_badtoken(self): ''' Game event commit request with bad token. ''' sessionid = self.newsessionid token = self.mybadtoken.decode() gameevent = self.json_valid_event timestamp = str(datetime.datetime.now()) headers = {} headers['X-AUTH-TOKEN'] = token requestdata = json.dumps(dict(timestamp=timestamp, events=gameevent)) response = self.client.post('/gameevents/api/v1.0/sessions/%s/events' % sessionid, data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "401 UNAUTHORIZED") def test_getgameevents(self): ''' List game events for a given session with valid token. ''' token = self.mytoken.decode() sessionid = self.newsessionid headers = {} headers['X-AUTH-TOKEN'] = token response = self.client.get('/gameevents/api/v1.0/sessions/%s/events' % sessionid, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "200 OK") def test_getgameevents_badtoken(self): ''' List game events for a given session with invalid token. ''' token = self.mybadtoken.decode() headers = {} headers['X-AUTH-TOKEN'] = token sessionid = self.newsessionid response = self.client.get('/gameevents/api/v1.0/sessions/%s/events' % sessionid, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "401 UNAUTHORIZED") def test_newclient_admintoken(self): ''' Add a new client to database, using admin token, with good parameters. ''' token = self.myadmintoken.decode() headers = {} headers['X-AUTH-TOKEN'] = token requestdata = json.dumps(dict(clientid="testclientid", apikey="testapikey")) response = self.client.post('/gameevents/api/v1.0/admin/clients', data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "201 CREATED") def test_newclient_bad_request_missing_params(self): ''' Try to add a new client to database, without a token. ''' requestdata = json.dumps(dict(clientid="lix", apikey="lixapikey")) response = self.client.post('/gameevents/api/v1.0/admin/clients', data=requestdata, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "400 BAD REQUEST") def test_newexistingclient(self): ''' Try to add client that already exists in database, using admin token, with good parameters. ''' token = self.myadmintoken.decode() headers = {} headers['X-AUTH-TOKEN'] = token requestdata = json.dumps(dict(clientid="myclientid", apikey="testapikey")) response = self.client.post('/gameevents/api/v1.0/admin/clients', data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "409 CONFLICT") def test_newclient_nonadmintoken(self): ''' Try to add a new client to database, with non-admin token. ''' token = self.mytoken.decode() headers = {} headers['X-AUTH-TOKEN'] = token requestdata = json.dumps(dict(clientid="testclientid", apikey="testapikey")) response = self.client.post('/gameevents/api/v1.0/admin/clients', data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "401 UNAUTHORIZED") def test_newclient_expiredadmintoken(self): ''' Try to add a new client to database, with expired admin token. ''' token = self.myexpiredadmintoken.decode() headers = {} headers['X-AUTH-TOKEN'] = token requestdata = json.dumps(dict(clientid="testclientid", apikey="testapikey")) response = self.client.post('/gameevents/api/v1.0/admin/clients', data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "401 UNAUTHORIZED") def test_newclient_badtoken(self): ''' Try to add a new client to database, with bad token. ''' token = self.mybadtoken.decode() headers = {} headers['X-AUTH-TOKEN'] = token requestdata = json.dumps(dict(clientid="testclientid", apikey="testapikey")) response = self.client.post('/gameevents/api/v1.0/admin/clients', data=requestdata, headers=headers, content_type = 'application/json', follow_redirects=True) self.assertEquals(response.status, "401 UNAUTHORIZED") def test_getsessions_validtoken(self): ''' Get list of active sessions, with valid admin token. ''' token = self.myadmintoken.decode() headers = {} headers['X-AUTH-TOKEN'] = token response = self.client.get('/gameevents/api/v1.0/sessions', headers=headers, follow_redirects=True) #json_results = json.loads(response.get_data().decode()) self.assertEquals(response.status, "200 OK") #self.assertEquals(response.headers["X-Total-Count"], '3') def test_getsessions_notoken(self): ''' Get list of active sessions, without a token. ''' response = self.client.get('/gameevents/api/v1.0/sessions', follow_redirects=True) self.assertEquals(response.status, "400 BAD REQUEST") def test_getsessions_invalidtoken(self): ''' Get list of active sessions, with expired admin token. ''' token = self.myexpiredadmintoken.decode() headers = {} headers['X-AUTH-TOKEN'] = token response = self.client.get('/gameevents/api/v1.0/sessions', headers=headers, follow_redirects=True) self.assertEquals(response.status, "401 UNAUTHORIZED") if __name__ == '__main__': unittest.main()
42.535235
122
0.549051
2,360
25,351
5.795763
0.102119
0.032753
0.052639
0.033923
0.768095
0.753327
0.727446
0.703612
0.67678
0.662597
0
0.019168
0.34969
25,351
596
123
42.535235
0.810506
0.114039
0
0.69403
0
0
0.17185
0.069227
0
0
0
0
0.074627
1
0.077114
false
0
0.029851
0
0.109453
0
0
0
0
null
0
0
0
0
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
4
a4c21f79ab6644142bcaa20009e1b5182faf4d57
287
py
Python
test.py
lexibank/asjp
309d372b89c92d7013284d281023b23ca5d68524
[ "CC-BY-4.0" ]
null
null
null
test.py
lexibank/asjp
309d372b89c92d7013284d281023b23ca5d68524
[ "CC-BY-4.0" ]
15
2018-04-25T10:11:30.000Z
2021-04-26T11:19:24.000Z
test.py
lexibank/asjp
309d372b89c92d7013284d281023b23ca5d68524
[ "CC-BY-4.0" ]
1
2019-06-18T11:57:38.000Z
2019-06-18T11:57:38.000Z
def test_valid(cldf_dataset, cldf_logger): assert cldf_dataset.validate(log=cldf_logger) def test_parameters(cldf_dataset): assert len(list(cldf_dataset["ParameterTable"])) == 100 def test_languages(cldf_dataset): assert len(list(cldf_dataset["LanguageTable"])) > 4000
23.916667
59
0.763066
38
287
5.473684
0.447368
0.317308
0.163462
0.192308
0.336538
0.336538
0.336538
0
0
0
0
0.027778
0.121951
287
11
60
26.090909
0.797619
0
0
0
0
0
0.094406
0
0
0
0
0
0.5
1
0.5
false
0
0
0
0.5
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
1
0
1
0
0
0
0
0
0
0
4
a4c65724407b507d3c3575879bb612a5d9d25dea
20,619
py
Python
jsk_recognition/jsk_perception/node_scripts/openpose/pose_net.py
VT-ASIM-LAB/autoware.ai
211dff3bee2d2782cb10444272c5d98d1f30d33a
[ "Apache-2.0" ]
null
null
null
jsk_recognition/jsk_perception/node_scripts/openpose/pose_net.py
VT-ASIM-LAB/autoware.ai
211dff3bee2d2782cb10444272c5d98d1f30d33a
[ "Apache-2.0" ]
null
null
null
jsk_recognition/jsk_perception/node_scripts/openpose/pose_net.py
VT-ASIM-LAB/autoware.ai
211dff3bee2d2782cb10444272c5d98d1f30d33a
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import os import itertools, pkg_resources, sys from distutils.version import LooseVersion if LooseVersion(pkg_resources.get_distribution("chainer").version) >= LooseVersion('7.0.0') and \ sys.version_info.major == 2: print('''Please install chainer <= 7.0.0: sudo pip install chainer==6.7.0 c.f https://github.com/jsk-ros-pkg/jsk_recognition/pull/2485 ''', file=sys.stderr) sys.exit(1) if [p for p in list(itertools.chain(*[pkg_resources.find_distributions(_) for _ in sys.path])) if "cupy-" in p.project_name ] == []: print('''Please install CuPy sudo pip install cupy-cuda[your cuda version] i.e. sudo pip install cupy-cuda91 ''', file=sys.stderr) sys.exit(1) import chainer import chainer.functions as F import chainer.links as L base_url = 'http://posefs1.perception.cs.cmu.edu/OpenPose/models/pose/' models = { 'auto': 'coco/pose_iter_440000.chainermodel', 'coco': 'coco/pose_iter_440000.chainermodel', 'mpi': 'mpi/pose_iter_160000.chainermodel', } class PoseNet(chainer.Chain): def __init__(self, pretrained_model='auto'): super(PoseNet, self).__init__() with self.init_scope(): self.conv1_1 = L.Convolution2D( in_channels=3, out_channels=64, ksize=3, stride=1, pad=1) self.conv1_2 = L.Convolution2D( in_channels=64, out_channels=64, ksize=3, stride=1, pad=1) self.conv2_1 = L.Convolution2D( in_channels=64, out_channels=128, ksize=3, stride=1, pad=1) self.conv2_2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=3, stride=1, pad=1) self.conv3_1 = L.Convolution2D( in_channels=128, out_channels=256, ksize=3, stride=1, pad=1) self.conv3_2 = L.Convolution2D( in_channels=256, out_channels=256, ksize=3, stride=1, pad=1) self.conv3_3 = L.Convolution2D( in_channels=256, out_channels=256, ksize=3, stride=1, pad=1) self.conv3_4 = L.Convolution2D( in_channels=256, out_channels=256, ksize=3, stride=1, pad=1) self.conv4_1 = L.Convolution2D( in_channels=256, out_channels=512, ksize=3, stride=1, pad=1) self.conv4_2 = L.Convolution2D( in_channels=512, out_channels=512, ksize=3, stride=1, pad=1) self.conv4_3_CPM = L.Convolution2D( in_channels=512, out_channels=256, ksize=3, stride=1, pad=1) self.conv4_4_CPM = L.Convolution2D( in_channels=256, out_channels=128, ksize=3, stride=1, pad=1) # stage1 self.conv5_1_CPM_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=3, stride=1, pad=1) self.conv5_2_CPM_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=3, stride=1, pad=1) self.conv5_3_CPM_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=3, stride=1, pad=1) self.conv5_4_CPM_L1 = L.Convolution2D( in_channels=128, out_channels=512, ksize=1, stride=1, pad=0) self.conv5_5_CPM_L1 = L.Convolution2D( in_channels=512, out_channels=38, ksize=1, stride=1, pad=0) self.conv5_1_CPM_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=3, stride=1, pad=1) self.conv5_2_CPM_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=3, stride=1, pad=1) self.conv5_3_CPM_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=3, stride=1, pad=1) self.conv5_4_CPM_L2 = L.Convolution2D( in_channels=128, out_channels=512, ksize=1, stride=1, pad=0) self.conv5_5_CPM_L2 = L.Convolution2D( in_channels=512, out_channels=19, ksize=1, stride=1, pad=0) # stage2 self.Mconv1_stage2_L1 = L.Convolution2D( in_channels=185, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv2_stage2_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv3_stage2_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv4_stage2_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv5_stage2_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv6_stage2_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=1, stride=1, pad=0) self.Mconv7_stage2_L1 = L.Convolution2D( in_channels=128, out_channels=38, ksize=1, stride=1, pad=0) self.Mconv1_stage2_L2 = L.Convolution2D( in_channels=185, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv2_stage2_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv3_stage2_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv4_stage2_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv5_stage2_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv6_stage2_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=1, stride=1, pad=0) self.Mconv7_stage2_L2 = L.Convolution2D( in_channels=128, out_channels=19, ksize=1, stride=1, pad=0) # stage3 self.Mconv1_stage3_L1 = L.Convolution2D( in_channels=185, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv2_stage3_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv3_stage3_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv4_stage3_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv5_stage3_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv6_stage3_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=1, stride=1, pad=0) self.Mconv7_stage3_L1 = L.Convolution2D( in_channels=128, out_channels=38, ksize=1, stride=1, pad=0) self.Mconv1_stage3_L2 = L.Convolution2D( in_channels=185, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv2_stage3_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv3_stage3_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv4_stage3_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv5_stage3_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv6_stage3_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=1, stride=1, pad=0) self.Mconv7_stage3_L2 = L.Convolution2D( in_channels=128, out_channels=19, ksize=1, stride=1, pad=0) # stage4 self.Mconv1_stage4_L1 = L.Convolution2D( in_channels=185, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv2_stage4_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv3_stage4_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv4_stage4_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv5_stage4_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv6_stage4_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=1, stride=1, pad=0) self.Mconv7_stage4_L1 = L.Convolution2D( in_channels=128, out_channels=38, ksize=1, stride=1, pad=0) self.Mconv1_stage4_L2 = L.Convolution2D( in_channels=185, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv2_stage4_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv3_stage4_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv4_stage4_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv5_stage4_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv6_stage4_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=1, stride=1, pad=0) self.Mconv7_stage4_L2 = L.Convolution2D( in_channels=128, out_channels=19, ksize=1, stride=1, pad=0) # stage5 self.Mconv1_stage5_L1 = L.Convolution2D( in_channels=185, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv2_stage5_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv3_stage5_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv4_stage5_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv5_stage5_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv6_stage5_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=1, stride=1, pad=0) self.Mconv7_stage5_L1 = L.Convolution2D( in_channels=128, out_channels=38, ksize=1, stride=1, pad=0) self.Mconv1_stage5_L2 = L.Convolution2D( in_channels=185, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv2_stage5_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv3_stage5_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv4_stage5_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv5_stage5_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv6_stage5_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=1, stride=1, pad=0) self.Mconv7_stage5_L2 = L.Convolution2D( in_channels=128, out_channels=19, ksize=1, stride=1, pad=0) # stage6 self.Mconv1_stage6_L1 = L.Convolution2D( in_channels=185, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv2_stage6_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv3_stage6_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv4_stage6_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv5_stage6_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv6_stage6_L1 = L.Convolution2D( in_channels=128, out_channels=128, ksize=1, stride=1, pad=0) self.Mconv7_stage6_L1 = L.Convolution2D( in_channels=128, out_channels=38, ksize=1, stride=1, pad=0) self.Mconv1_stage6_L2 = L.Convolution2D( in_channels=185, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv2_stage6_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv3_stage6_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv4_stage6_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv5_stage6_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=7, stride=1, pad=3) self.Mconv6_stage6_L2 = L.Convolution2D( in_channels=128, out_channels=128, ksize=1, stride=1, pad=0) self.Mconv7_stage6_L2 = L.Convolution2D( in_channels=128, out_channels=19, ksize=1, stride=1, pad=0) if pretrained_model in models.keys(): data_dir = chainer.dataset.get_dataset_directory('openpose/pose') model_path = os.path.join(data_dir, models[pretrained_model]) try: os.makedirs(os.path.dirname(model_path)) except OSError: pass chainer.dataset.cache_or_load_file( model_path, lambda f: _download_pretrained_model(pretrained_model, f), lambda f: f) chainer.serializers.load_npz(model_path, self) elif pretrained_model is not None: if not os.path.exists(pretrained_model): raise OSError('model does not exists: "%s"' % pretrained_model) chainer.serializers.load_npz(pretrained_model, self) def __call__(self, x): heatmaps = [] pafs = [] h = F.relu(self.conv1_1(x)) h = F.relu(self.conv1_2(h)) h = F.max_pooling_2d(h, ksize=2, stride=2) h = F.relu(self.conv2_1(h)) h = F.relu(self.conv2_2(h)) h = F.max_pooling_2d(h, ksize=2, stride=2) h = F.relu(self.conv3_1(h)) h = F.relu(self.conv3_2(h)) h = F.relu(self.conv3_3(h)) h = F.relu(self.conv3_4(h)) h = F.max_pooling_2d(h, ksize=2, stride=2) h = F.relu(self.conv4_1(h)) h = F.relu(self.conv4_2(h)) h = F.relu(self.conv4_3_CPM(h)) h = F.relu(self.conv4_4_CPM(h)) feature_map = h # stage1 h1 = F.relu(self.conv5_1_CPM_L1(feature_map)) # branch1 h1 = F.relu(self.conv5_2_CPM_L1(h1)) h1 = F.relu(self.conv5_3_CPM_L1(h1)) h1 = F.relu(self.conv5_4_CPM_L1(h1)) h1 = self.conv5_5_CPM_L1(h1) h2 = F.relu(self.conv5_1_CPM_L2(feature_map)) # branch2 h2 = F.relu(self.conv5_2_CPM_L2(h2)) h2 = F.relu(self.conv5_3_CPM_L2(h2)) h2 = F.relu(self.conv5_4_CPM_L2(h2)) h2 = self.conv5_5_CPM_L2(h2) pafs.append(h1) heatmaps.append(h2) # stage2 h = F.concat((h1, h2, feature_map), axis=1) # channel concat h1 = F.relu(self.Mconv1_stage2_L1(h)) # branch1 h1 = F.relu(self.Mconv2_stage2_L1(h1)) h1 = F.relu(self.Mconv3_stage2_L1(h1)) h1 = F.relu(self.Mconv4_stage2_L1(h1)) h1 = F.relu(self.Mconv5_stage2_L1(h1)) h1 = F.relu(self.Mconv6_stage2_L1(h1)) h1 = self.Mconv7_stage2_L1(h1) h2 = F.relu(self.Mconv1_stage2_L2(h)) # branch2 h2 = F.relu(self.Mconv2_stage2_L2(h2)) h2 = F.relu(self.Mconv3_stage2_L2(h2)) h2 = F.relu(self.Mconv4_stage2_L2(h2)) h2 = F.relu(self.Mconv5_stage2_L2(h2)) h2 = F.relu(self.Mconv6_stage2_L2(h2)) h2 = self.Mconv7_stage2_L2(h2) pafs.append(h1) heatmaps.append(h2) # stage3 h = F.concat((h1, h2, feature_map), axis=1) # channel concat h1 = F.relu(self.Mconv1_stage3_L1(h)) # branch1 h1 = F.relu(self.Mconv2_stage3_L1(h1)) h1 = F.relu(self.Mconv3_stage3_L1(h1)) h1 = F.relu(self.Mconv4_stage3_L1(h1)) h1 = F.relu(self.Mconv5_stage3_L1(h1)) h1 = F.relu(self.Mconv6_stage3_L1(h1)) h1 = self.Mconv7_stage3_L1(h1) h2 = F.relu(self.Mconv1_stage3_L2(h)) # branch2 h2 = F.relu(self.Mconv2_stage3_L2(h2)) h2 = F.relu(self.Mconv3_stage3_L2(h2)) h2 = F.relu(self.Mconv4_stage3_L2(h2)) h2 = F.relu(self.Mconv5_stage3_L2(h2)) h2 = F.relu(self.Mconv6_stage3_L2(h2)) h2 = self.Mconv7_stage3_L2(h2) pafs.append(h1) heatmaps.append(h2) # stage4 h = F.concat((h1, h2, feature_map), axis=1) # channel concat h1 = F.relu(self.Mconv1_stage4_L1(h)) # branch1 h1 = F.relu(self.Mconv2_stage4_L1(h1)) h1 = F.relu(self.Mconv3_stage4_L1(h1)) h1 = F.relu(self.Mconv4_stage4_L1(h1)) h1 = F.relu(self.Mconv5_stage4_L1(h1)) h1 = F.relu(self.Mconv6_stage4_L1(h1)) h1 = self.Mconv7_stage4_L1(h1) h2 = F.relu(self.Mconv1_stage4_L2(h)) # branch2 h2 = F.relu(self.Mconv2_stage4_L2(h2)) h2 = F.relu(self.Mconv3_stage4_L2(h2)) h2 = F.relu(self.Mconv4_stage4_L2(h2)) h2 = F.relu(self.Mconv5_stage4_L2(h2)) h2 = F.relu(self.Mconv6_stage4_L2(h2)) h2 = self.Mconv7_stage4_L2(h2) pafs.append(h1) heatmaps.append(h2) # stage5 h = F.concat((h1, h2, feature_map), axis=1) # channel concat h1 = F.relu(self.Mconv1_stage5_L1(h)) # branch1 h1 = F.relu(self.Mconv2_stage5_L1(h1)) h1 = F.relu(self.Mconv3_stage5_L1(h1)) h1 = F.relu(self.Mconv4_stage5_L1(h1)) h1 = F.relu(self.Mconv5_stage5_L1(h1)) h1 = F.relu(self.Mconv6_stage5_L1(h1)) h1 = self.Mconv7_stage5_L1(h1) h2 = F.relu(self.Mconv1_stage5_L2(h)) # branch2 h2 = F.relu(self.Mconv2_stage5_L2(h2)) h2 = F.relu(self.Mconv3_stage5_L2(h2)) h2 = F.relu(self.Mconv4_stage5_L2(h2)) h2 = F.relu(self.Mconv5_stage5_L2(h2)) h2 = F.relu(self.Mconv6_stage5_L2(h2)) h2 = self.Mconv7_stage5_L2(h2) pafs.append(h1) heatmaps.append(h2) # stage6 h = F.concat((h1, h2, feature_map), axis=1) # channel concat h1 = F.relu(self.Mconv1_stage6_L1(h)) # branch1 h1 = F.relu(self.Mconv2_stage6_L1(h1)) h1 = F.relu(self.Mconv3_stage6_L1(h1)) h1 = F.relu(self.Mconv4_stage6_L1(h1)) h1 = F.relu(self.Mconv5_stage6_L1(h1)) h1 = F.relu(self.Mconv6_stage6_L1(h1)) h1 = self.Mconv7_stage6_L1(h1) h2 = F.relu(self.Mconv1_stage6_L2(h)) # branch2 h2 = F.relu(self.Mconv2_stage6_L2(h2)) h2 = F.relu(self.Mconv3_stage6_L2(h2)) h2 = F.relu(self.Mconv4_stage6_L2(h2)) h2 = F.relu(self.Mconv5_stage6_L2(h2)) h2 = F.relu(self.Mconv6_stage6_L2(h2)) h2 = self.Mconv7_stage6_L2(h2) pafs.append(h1) heatmaps.append(h2) return pafs, heatmaps def _download_pretrained_model(model_type, dest_path): from chainer.links import caffe if os.path.exists(dest_path): raise OSError('destination already exists: %s' % dest_path) basename, ext = os.path.splitext(models[model_type]) url = base_url + basename + '.caffemodel' caffe_model_path = chainer.dataset.cached_download(url) if not os.path.exists(caffe_model_path): raise OSError('caffe model does not exist: %s' % caffe_model_path) print('Converting to chainer model') caffe_model = caffe.CaffeFunction(caffe_model_path) chainer_model = PoseNet(pretrained_model=None) for link in chainer_model.links(): if not isinstance(link, chainer.Link) or not link.name: continue if eval('chainer_model.{0}.b.shape == caffe_model["{0}"].b.shape'.format(link.name)) and\ eval('chainer_model.{0}.W.shape == caffe_model["{0}"].W.shape'.format(link.name)): exec('chainer_model.{0}.W.data = caffe_model["{0}"].W.data'.format(link.name)) exec('chainer_model.{0}.b.data = caffe_model["{0}"].b.data'.format(link.name)) print('Copied layer {0}'.format(link.name)) else: print('Failed to copy layer {0}'.format(link.name)) chainer.serializers.save_npz(dest_path, chainer_model) return True
49.564904
132
0.611135
2,979
20,619
4.009063
0.068479
0.128025
0.123252
0.184878
0.815875
0.7684
0.743281
0.618689
0.570627
0.565185
0
0.111834
0.269266
20,619
415
133
49.684337
0.680826
0.012319
0
0.284946
0
0
0.04057
0.014802
0
0
0
0
0
1
0.008065
false
0.002688
0.021505
0
0.037634
0.016129
0
0
0
null
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
a4d7f579f4f81770778c2fff64640120abcdce53
262
py
Python
test/run/t242.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
test/run/t242.py
csev/skulpt
9aa25b7dbf29f23ee8d3140d01a6f4353d12e66f
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
test/run/t242.py
csev/skulpt
9aa25b7dbf29f23ee8d3140d01a6f4353d12e66f
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
class O(object): pass class A(O): pass class B(O): pass class C(O): pass class D(O): pass class E(O): pass class K1(A,B,C): pass class K2(D,B,E): pass class K3(D,A): pass class Z(K1,K2,K3): pass print K1.__mro__ print K2.__mro__ print K3.__mro__ print Z.__mro__
17.466667
23
0.698473
59
262
2.830508
0.254237
0.48503
0.299401
0
0
0
0
0
0
0
0
0.040179
0.145038
262
14
24
18.714286
0.705357
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0.714286
0
null
null
0.285714
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
1
0
0
1
0
0
0
0
0
4
a4e8d966c41d61cf7973a0faa9d826fdc0196a65
8,716
py
Python
edu_visitor/visitor_logs/routes.py
covrebo/edu_visitor
2759519eef97057ca01ed26f556ab335167fe084
[ "MIT" ]
null
null
null
edu_visitor/visitor_logs/routes.py
covrebo/edu_visitor
2759519eef97057ca01ed26f556ab335167fe084
[ "MIT" ]
null
null
null
edu_visitor/visitor_logs/routes.py
covrebo/edu_visitor
2759519eef97057ca01ed26f556ab335167fe084
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template, url_for, session, flash, redirect, request from edu_visitor import db from edu_visitor.visitor_logs.forms import StudentSignInForm, StudentSignOutForm, VisitorSignInForm, VisitorSignOutForm, StudentUpdateForm, VisitorUpdateForm from edu_visitor.models import StudentLog, VisitorLog from flask_login import login_required visitor_logs = Blueprint('visitor_logs', __name__) # Route to the sign-in page for students @visitor_logs.route('/student-signin', methods=['GET', 'POST']) def student_signin(): form = StudentSignInForm() if form.validate_on_submit(): # Create an entry to add to the database post = StudentLog(student_name=form.student_name.data, grade=form.grade.data, parent_name=form.parent.data, reason=form.reason.data, reason_other=form.reason_other.data, building=session['site'], direction='In') db.session.add(post) db.session.commit() flash(f"You have successfully signed in to { session['site'] }!", category='success') return redirect(url_for('main.home')) return render_template('student-signin.html', title='Student Sign-in', form=form) # Route to the sign-out page for students @visitor_logs.route('/student-signout', methods=['GET', 'POST']) def student_signout(): form = StudentSignOutForm() if form.validate_on_submit(): # Create an entry to add to the database post = StudentLog(student_name=form.student_name.data, grade=form.grade.data, parent_name=form.parent.data, reason=form.reason.data, reason_other=form.reason_other.data, building=session['site'], direction='Out') db.session.add(post) db.session.commit() flash(f"You have successfully signed out of { session['site'] }!", category='success') return redirect(url_for('main.home')) return render_template('student-signout.html', title='Student Sign-out', form=form) # Route to the sign-in page for visitors @visitor_logs.route('/visitor-signin', methods=['GET', 'POST']) def visitor_signin(): form = VisitorSignInForm() if form.validate_on_submit(): # Create an entry to add to the database post = VisitorLog(visitor_name=form.visitor_name.data, student_name=form.student_name.data, grade=form.grade.data, reason=form.reason.data, reason_other=form.reason_other.data, building=session['site'], direction='In') db.session.add(post) db.session.commit() flash(f"You have successfully signed in to { session['site'] }!", category='success') return redirect(url_for('main.home')) return render_template('visitor-signin.html', title='Visitor Sign-in', form=form) # Route to the sign-out page for visitors @visitor_logs.route('/visitor-signout', methods=['GET', 'POST']) def visitor_signout(): form = VisitorSignOutForm() if form.validate_on_submit(): # Create an entry to add to the database post = VisitorLog(visitor_name=form.visitor_name.data, building=session['site'], direction='Out') db.session.add(post) db.session.commit() flash(f"You have successfully signed out of { session['site'] }!", category='success') return redirect(url_for('main.home')) return render_template('visitor-signout.html', title='Visitor Sign-out', form=form) # Route to display a summary of the day's student sign-ins and sign-outs @visitor_logs.route('/daily-summary') @login_required def daily_summary(): # TODO: Create DB calls to create the dictionaries only for the current day # Query database for student visitor logs entering the building and get the correct page to display from the URL student_page_in = request.args.get('student_page_in', 1, type=int) student_log_in = StudentLog.query.order_by(StudentLog.id.desc()).filter_by(direction='In', building=session['site']).paginate(page=student_page_in, per_page=5) # Query database for student visitor logs leaving the building student_page_out = request.args.get('student_page_out', 1, type=int) student_log_out = StudentLog.query.order_by(StudentLog.id.desc()).filter_by(direction='Out', building=session['site']).paginate(page=student_page_out, per_page=5) # Query database for visitor logs entering the building visitor_page_in = request.args.get('visitor_page_in', 1, type=int) visitor_log_in = VisitorLog.query.order_by(VisitorLog.id.desc()).filter_by(direction='In', building=session['site']).paginate(page=visitor_page_in, per_page=5) # Query database for visitor logs leaving the building visitor_page_out = request.args.get('visitor_page_out', 1, type=int) visitor_log_out = VisitorLog.query.order_by(VisitorLog.id.desc()).filter_by(direction='Out', building=session['site']).paginate(page=visitor_page_out, per_page=5) return render_template('daily-summary.html', student_log_in=student_log_in, student_log_out=student_log_out, visitor_log_in=visitor_log_in, visitor_log_out=visitor_log_out, title='Daily Summary') # A route to view a specific post for students @visitor_logs.route('/student-signin/<int:post_id>') @login_required def view_student_signin(post_id): post = StudentLog.query.get_or_404(post_id) return render_template('student-view.html', title="Update Entry", post=post) # A route to update a specific post for students @visitor_logs.route('/student-signin/<int:post_id>/update', methods=['GET', 'POST']) @login_required def update_student_signin(post_id): post = StudentLog.query.get_or_404(post_id) form = StudentUpdateForm() if form.validate_on_submit(): post.student_name = form.student_name.data post.grade = form.grade.data post.parent_name = form.parent.data post.reason = form.reason.data post.reason_other = form.reason_other.data post.direction = form.direction.data db.session.commit() flash("Your post has been updated.", 'success') return redirect(url_for('visitor_logs.daily_summary')) # Pre-populate the form elif request.method == 'GET': form.student_name.data = post.student_name form.grade.data = post.grade form.parent.data = post.parent_name form.reason.data = post.reason form.reason_other.data = post.reason_other form.direction.data = post.direction return render_template('student-update.html', title="Update Entry", post=post, form=form) # A route to delete a specific post for students @visitor_logs.route('/student-signin/<int:post_id>/delete', methods=['POST']) @login_required def delete_student_signin(post_id): post = StudentLog.query.get_or_404(post_id) db.session.delete(post) db.session.commit() flash('The entry has been deleted.', category='success') return redirect(url_for('visitor_logs.daily_summary')) # A route to view a specific post for visitors @visitor_logs.route('/visitor-signin/<int:post_id>') @login_required def view_visitor_signin(post_id): post = VisitorLog.query.get_or_404(post_id) return render_template('visitor_logs.visitor-view.html', title="Update Entry", post=post) # A route to update a specific post for visitors @visitor_logs.route('/visitor-signin/<int:post_id>/update', methods=['GET', 'POST']) @login_required def update_visitor_signin(post_id): post = VisitorLog.query.get_or_404(post_id) form = VisitorUpdateForm() if form.validate_on_submit(): post.visitor_name = form.visitor_name.data post.student_name = form.student_name.data post.grade = form.grade.data post.reason = form.reason.data post.reason_other = form.reason_other.data post.direction = form.direction.data db.session.commit() flash("Your post has been updated.", 'success') return redirect(url_for('visitor_logs.daily_summary')) # Pre-populate the form elif request.method == 'GET': form.visitor_name.data = post.visitor_name form.student_name.data = post.student_name form.grade.data = post.grade form.reason.data = post.reason form.reason_other.data = post.reason_other form.direction.data = post.direction return render_template('visitor-update.html', title="Update Entry", post=post, form=form) # A route to delete a specific post for visitor @visitor_logs.route('/visitor-signin/<int:post_id>/delete', methods=['POST']) @login_required def delete_visitor_signin(post_id): post = VisitorLog.query.get_or_404(post_id) db.session.delete(post) db.session.commit() flash('The entry has been deleted.', category='success') return redirect(url_for('visitor_logs.daily_summary'))
48.692737
226
0.723726
1,222
8,716
4.984452
0.100655
0.041537
0.028895
0.026268
0.842883
0.755705
0.727631
0.690527
0.662781
0.656214
0
0.003536
0.156494
8,716
179
227
48.692737
0.824946
0.121386
0
0.559701
0
0
0.168937
0.044002
0
0
0
0.005587
0
1
0.08209
false
0
0.037313
0
0.246269
0.014925
0
0
0
null
0
0
0
1
1
1
0
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
4
3505b0795f024d936847202220a08964b18c6216
573
py
Python
tests/argparse/special/modules/defaults/__init__.py
da-h/miniflask
d5e594153cca4ce4d30db01b1d06d05afa9e7aaa
[ "MIT" ]
5
2020-02-17T12:14:36.000Z
2020-02-27T12:09:05.000Z
tests/argparse/special/modules/defaults2/__init__.py
da-h/miniflask
d5e594153cca4ce4d30db01b1d06d05afa9e7aaa
[ "MIT" ]
69
2020-04-03T08:16:35.000Z
2021-12-21T15:46:29.000Z
tests/argparse/special/modules/defaults2/__init__.py
da-h/miniflask
d5e594153cca4ce4d30db01b1d06d05afa9e7aaa
[ "MIT" ]
1
2020-04-02T15:46:39.000Z
2020-04-02T15:46:39.000Z
def printVal(state, name): val = state[name] print("%s:" % state.fuzzy_names[name], val) def print_all(state): printVal(state, "var_default") printVal(state, "var_default_override") printVal(state, "var_default_override_twice") printVal(state, "var_default_override_twice_and_cli") def register(mf): mf.register_defaults({ "var_default": 1, "var_default_override": 2, "var_default_override_twice": 3, "var_default_override_twice_and_cli": 4 }) mf.register_event('print_all', print_all, unique=False)
26.045455
59
0.685864
75
573
4.866667
0.346667
0.219178
0.29589
0.252055
0.378082
0.293151
0
0
0
0
0
0.008602
0.188482
573
21
60
27.285714
0.776344
0
0
0
0
0
0.339161
0.20979
0
0
0
0
0
1
0.1875
false
0
0
0
0.1875
0.5
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
0
0
0
0
0
1
0
4
350ee2dd3bf8139a0a27fa5260ff00d59d16fd74
90
py
Python
deliravision/torch/models/gans/deep_convolutional/__init__.py
delira-dev/vision_torch
d944aa67d319bd63a2add5cb89e8308413943de6
[ "BSD-2-Clause" ]
4
2019-08-03T09:56:50.000Z
2019-09-05T09:32:06.000Z
deliravision/torch/models/gans/deep_convolutional/__init__.py
delira-dev/vision_torch
d944aa67d319bd63a2add5cb89e8308413943de6
[ "BSD-2-Clause" ]
23
2019-08-03T14:16:47.000Z
2019-10-22T10:15:10.000Z
deliravision/torch/models/gans/deep_convolutional/__init__.py
delira-dev/vision_torch
d944aa67d319bd63a2add5cb89e8308413943de6
[ "BSD-2-Clause" ]
null
null
null
from deliravision.models.gans.deep_convolutional.dc_gan import \ DeepConvolutionalGAN
30
64
0.844444
10
90
7.4
1
0
0
0
0
0
0
0
0
0
0
0
0.1
90
2
65
45
0.91358
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
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
4
1025728984eda2735c08a9884289c0228f56f366
34
py
Python
env/lib/python3.6/base64.py
xianjunzhengbackup/Cloud-Native-Python
0b74303b444a74210bc2e95f13d17771f6f71583
[ "MIT" ]
2
2020-09-22T14:38:24.000Z
2020-10-30T03:11:36.000Z
SDK/Example/Linkage_demo/work_with_AlwaysAI/pedestrian_tracking_demo/venv/lib/python3.6/base64.py
EyecloudAi/OpenNCC-SDK
efeebfe385a900280de6f46d80bd6fff0416aba3
[ "Apache-2.0" ]
null
null
null
SDK/Example/Linkage_demo/work_with_AlwaysAI/pedestrian_tracking_demo/venv/lib/python3.6/base64.py
EyecloudAi/OpenNCC-SDK
efeebfe385a900280de6f46d80bd6fff0416aba3
[ "Apache-2.0" ]
1
2019-11-21T12:23:41.000Z
2019-11-21T12:23:41.000Z
/usr/local/lib/python3.6/base64.py
34
34
0.794118
7
34
3.857143
1
0
0
0
0
0
0
0
0
0
0
0.117647
0
34
1
34
34
0.676471
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
4
1033ffe67b91f750cd6a18292a63c21167fe56d7
228
py
Python
src/zebra_refresh.py
r0x73/alfred-zebra
fe802044fdc34172811c77433967bce46f084ed1
[ "MIT" ]
3
2017-08-10T12:54:03.000Z
2018-01-17T08:42:47.000Z
src/zebra_refresh.py
r0x73/alfred-zebra
fe802044fdc34172811c77433967bce46f084ed1
[ "MIT" ]
4
2016-08-03T09:41:06.000Z
2016-09-01T06:34:12.000Z
src/zebra_refresh.py
r0x73/alfred-zebra
fe802044fdc34172811c77433967bce46f084ed1
[ "MIT" ]
null
null
null
import zebra from workflow import Workflow if __name === '__main__': wf = Workflow() wf.cache_data('zebra_all_projects', zebra.get_all_projects()) wf.cache_data('zebra_aliased_activities', zebra.get_aliased_activities())
28.5
75
0.776316
31
228
5.193548
0.483871
0.086957
0.136646
0.198758
0
0
0
0
0
0
0
0
0.105263
228
8
75
28.5
0.789216
0
0
0
0
0
0.218341
0.104803
0
0
0
0
0
0
null
null
0
0.333333
null
null
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
1
0
0
0
1
0
0
0
0
4
10360d23deea826893e597ec11b95b8d2db92420
129
py
Python
codeforces/anirudhak47/1335/A.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
3
2020-07-09T16:15:42.000Z
2020-07-17T13:19:42.000Z
codeforces/anirudhak47/1335/A.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
null
null
null
codeforces/anirudhak47/1335/A.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
1
2020-07-17T13:19:48.000Z
2020-07-17T13:19:48.000Z
for t in range(int(input())): n=int(input()) if n%2==0: print(int(n/2-1)) else: print(int(n//2))
21.5
30
0.449612
23
129
2.521739
0.565217
0.103448
0.310345
0.344828
0
0
0
0
0
0
0
0.057471
0.325581
129
6
31
21.5
0.609195
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.333333
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
0
0
0
0
0
4
10876b8adb313d894238da00cbc965a6ae323a52
114
py
Python
labs/tony-monday-15-jg103/hello_hello.py
TonyJenkins/lbu-python-code
d02d843290e887d016cdb05ddc1a8639874f2e06
[ "Unlicense" ]
2
2021-08-20T13:02:45.000Z
2021-10-03T20:34:45.000Z
labs/tony-monday-15-jg103/hello_hello.py
TonyJenkins/lbu-python-code
d02d843290e887d016cdb05ddc1a8639874f2e06
[ "Unlicense" ]
null
null
null
labs/tony-monday-15-jg103/hello_hello.py
TonyJenkins/lbu-python-code
d02d843290e887d016cdb05ddc1a8639874f2e06
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3 def hello(**kwargs): print(f'Hello') if __name__ == '__main__': hello(hello())
11.4
26
0.605263
15
114
4.066667
0.8
0
0
0
0
0
0
0
0
0
0
0.01087
0.192982
114
9
27
12.666667
0.652174
0.184211
0
0
0
0
0.141304
0
0
0
0
0
0
1
0.25
true
0
0
0
0.25
0.25
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
1
0
0
0
0
0
0
4
1097973ec1380219467a3cca784a3a5967f37e86
120
py
Python
results/results_eval.py
eym55/power_grid_sim
35822a2d2f09c00a38841e0bf3395bc5ea0ddbaa
[ "MIT" ]
1
2022-01-26T15:19:15.000Z
2022-01-26T15:19:15.000Z
results/results_eval.py
eym55/power_grid_sim
35822a2d2f09c00a38841e0bf3395bc5ea0ddbaa
[ "MIT" ]
null
null
null
results/results_eval.py
eym55/power_grid_sim
35822a2d2f09c00a38841e0bf3395bc5ea0ddbaa
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import pickle df = pd.read_json('result.json',lines=True) print(df)
20
43
0.783333
21
120
4.428571
0.714286
0
0
0
0
0
0
0
0
0
0
0
0.116667
120
6
44
20
0.877358
0
0
0
0
0
0.090909
0
0
0
0
0
0
1
0
false
0
0.6
0
0.6
0.2
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
0
0
1
0
1
0
0
4
109969c2ebef94313329e4c92a1901ae1f014cd6
77
py
Python
fabfile/validation.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
null
null
null
fabfile/validation.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
1
2015-09-23T16:30:34.000Z
2015-09-23T16:30:34.000Z
fabfile/validation.py
b-cube/Response-Identification-Info
d2fa24c9f0d7db7d8bbf5cda937e1a9dd29a8f6e
[ "MIT" ]
1
2020-03-25T09:41:03.000Z
2020-03-25T09:41:03.000Z
# to run the metadata validation process via some ec2 and an rds connection
25.666667
75
0.792208
13
77
4.692308
1
0
0
0
0
0
0
0
0
0
0
0.016129
0.194805
77
2
76
38.5
0.967742
0.948052
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
52e5f2e5b814ac4ae07480be88792003d295e02d
452
py
Python
tpRigToolkit/libs/ziva/core/utils.py
tpRigToolkit/tpRigToolkit-libs-ziva
dd317b7ec62ee4ef01f2d64e9dbca54061c24072
[ "MIT" ]
null
null
null
tpRigToolkit/libs/ziva/core/utils.py
tpRigToolkit/tpRigToolkit-libs-ziva
dd317b7ec62ee4ef01f2d64e9dbca54061c24072
[ "MIT" ]
null
null
null
tpRigToolkit/libs/ziva/core/utils.py
tpRigToolkit/tpRigToolkit-libs-ziva
dd317b7ec62ee4ef01f2d64e9dbca54061c24072
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains utils functions related with Ziva plugin """ from __future__ import print_function, division, absolute_import from tpDcc import dcc PLUGIN_NAME = 'ziva' def load_ziva_plugin(): if not is_ziva_plugin_loaded(): dcc.load_plugin(PLUGIN_NAME, quiet=True) return is_ziva_plugin_loaded() def is_ziva_plugin_loaded(): return dcc.is_plugin_loaded(PLUGIN_NAME)
18.833333
64
0.738938
65
452
4.784615
0.538462
0.160772
0.115756
0.173633
0
0
0
0
0
0
0
0.002646
0.163717
452
23
65
19.652174
0.820106
0.232301
0
0
0
0
0.011834
0
0
0
0
0
0
1
0.222222
false
0
0.222222
0.111111
0.666667
0.111111
0
0
0
null
0
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
4
52f7087deb618b8761200bf76550f8eceae6e954
80
py
Python
scripts/ai.py
MaxReimann/Troen
aeabab35da15fe69f89b163f3762dccb9947e93c
[ "MIT" ]
null
null
null
scripts/ai.py
MaxReimann/Troen
aeabab35da15fe69f89b163f3762dccb9947e93c
[ "MIT" ]
6
2016-08-15T01:56:11.000Z
2016-08-15T01:56:40.000Z
scripts/ai.py
MaxReimann/Troen
aeabab35da15fe69f89b163f3762dccb9947e93c
[ "MIT" ]
null
null
null
#AI is imported by default #this is only a test for now print "hello from aipy"
20
28
0.75
16
80
3.75
0.9375
0
0
0
0
0
0
0
0
0
0
0
0.2
80
3
29
26.666667
0.9375
0.65
0
0
0
0
0.576923
0
0
0
0
0
0
0
null
null
0
0
null
null
1
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
1
0
0
0
0
0
0
1
0
4
5e36244123ee5c6940be37309dff373ccc4d49dc
40
py
Python
src/maggma/api/__init__.py
materialsproject/maggflow
9f8d7a0865ec13212a3fd00d5edebd3cb7b40e7d
[ "BSD-3-Clause-LBNL" ]
15
2017-06-15T16:35:23.000Z
2022-03-05T09:57:02.000Z
src/maggma/api/__init__.py
materialsproject/maggflow
9f8d7a0865ec13212a3fd00d5edebd3cb7b40e7d
[ "BSD-3-Clause-LBNL" ]
573
2017-06-14T15:54:27.000Z
2022-03-31T23:20:55.000Z
src/maggma/api/__init__.py
rkingsbury/maggma
53def068df1cb410bfe91e7045903997813e173a
[ "BSD-3-Clause-LBNL" ]
28
2017-06-14T20:50:26.000Z
2022-03-04T16:56:40.000Z
""" Simple API Interface for Maggma """
20
39
0.675
5
40
5.4
1
0
0
0
0
0
0
0
0
0
0
0
0.175
40
1
40
40
0.818182
0.775
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
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
eaa454aeb2637a676c1e50bb9a3b6f2eb3e45e6f
87
py
Python
main.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
main.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
main.py
spdir/sakf
9a07c5f90765201a42d524dc6d4554f4ccd3c750
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from sakf.sakf import main if __name__ == '__main__': main()
17.4
26
0.62069
12
87
3.833333
0.75
0
0
0
0
0
0
0
0
0
0
0.014085
0.183908
87
5
27
17.4
0.633803
0.241379
0
0
0
0
0.123077
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
0
0
0
4
eaba0c23a6f87059f715260269d709b8ed977523
166
py
Python
teste_app/search.py
rafaelang/teste_app
b4e95c9fd373f21ffb39131face077b0499a723d
[ "Apache-2.0" ]
null
null
null
teste_app/search.py
rafaelang/teste_app
b4e95c9fd373f21ffb39131face077b0499a723d
[ "Apache-2.0" ]
null
null
null
teste_app/search.py
rafaelang/teste_app
b4e95c9fd373f21ffb39131face077b0499a723d
[ "Apache-2.0" ]
null
null
null
import requests from teste_app import settigns def google(q: str): """Faz uma pesquisa no google""" return requests.get(settigns.GOOGLE, params={"q": q})
16.6
57
0.692771
24
166
4.75
0.708333
0
0
0
0
0
0
0
0
0
0
0
0.180723
166
9
58
18.444444
0.838235
0.156627
0
0
0
0
0.007463
0
0
0
0
0
0
1
0.25
false
0
0.5
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
1
0
0
0
0
4
eae3be40aa24ad4b9655afb4fbddb913e8d4cb32
361
py
Python
autoflow/workflow/components/classification/lda.py
auto-flow/autoflow
f5903424ad8694d57741a0bd6dfeaba320ea6517
[ "BSD-3-Clause" ]
49
2020-04-16T11:17:28.000Z
2020-05-06T01:32:44.000Z
autoflow/workflow/components/classification/lda.py
auto-flow/auto-flow
f5903424ad8694d57741a0bd6dfeaba320ea6517
[ "BSD-3-Clause" ]
null
null
null
autoflow/workflow/components/classification/lda.py
auto-flow/auto-flow
f5903424ad8694d57741a0bd6dfeaba320ea6517
[ "BSD-3-Clause" ]
3
2021-04-10T13:58:39.000Z
2022-03-25T08:27:53.000Z
from copy import deepcopy from typing import Dict from autoflow.workflow.components.classification_base import AutoFlowClassificationAlgorithm __all__=["LinearDiscriminantAnalysis"] class LinearDiscriminantAnalysis(AutoFlowClassificationAlgorithm): class__ = "LinearDiscriminantAnalysis" module__ = "sklearn.discriminant_analysis" OVR__ = True
25.785714
92
0.833795
29
361
9.965517
0.724138
0.214533
0
0
0
0
0
0
0
0
0
0
0.113573
361
13
93
27.769231
0.903125
0
0
0
0
0
0.225627
0.225627
0
0
0
0
0
1
0
false
0
0.375
0
0.875
0
1
0
0
null
1
0
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
0
0
1
0
1
0
0
4
d8215c6350572765b0f96735318eeda8369f7f6b
459
py
Python
git_lint_branch/single/__init__.py
juped/git-lint-branch
7b4a89d2f707025671ec642919f83b38094f9300
[ "0BSD" ]
2
2020-11-12T03:34:38.000Z
2021-02-20T01:34:00.000Z
git_lint_branch/single/__init__.py
juped/git-lint-branch
7b4a89d2f707025671ec642919f83b38094f9300
[ "0BSD" ]
11
2020-07-13T18:38:05.000Z
2020-07-17T14:44:52.000Z
git_lint_branch/single/__init__.py
MLH-Fellowship/git-lint-branch
7b4a89d2f707025671ec642919f83b38094f9300
[ "0BSD" ]
1
2020-07-30T11:10:04.000Z
2020-07-30T11:10:04.000Z
from pygit2 import Commit from git_lint_branch.linter_output import * from git_lint_branch.single.example_linter import * from git_lint_branch.single.regex_linter import * from git_lint_branch.single.diff_size_linter import diff_size_linter from git_lint_branch.single.tense_linter import * from git_lint_branch.single.backwards_merge_linter import * single_linters = [ regex_linter, diff_size_linter, tense_linter, backwards_merge_linter, ]
30.6
68
0.834423
68
459
5.205882
0.264706
0.118644
0.186441
0.288136
0.443503
0.378531
0.29661
0
0
0
0
0.002463
0.115468
459
14
69
32.785714
0.869458
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.538462
0
0.538462
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
0
0
1
0
1
0
0
4
dc2545649072034e58b37faa1c657f442101a9f5
46
py
Python
pythonExercicios/desafio027.py
GuilhermeKAC/cursoemvideo-python
7a76f07aa8d8ae462eab7624a0b3cbc7df1fb02e
[ "MIT" ]
1
2021-07-18T17:53:32.000Z
2021-07-18T17:53:32.000Z
pythonExercicios/desafio027.py
GuilhermeKAC/cursoemvideo-python
7a76f07aa8d8ae462eab7624a0b3cbc7df1fb02e
[ "MIT" ]
null
null
null
pythonExercicios/desafio027.py
GuilhermeKAC/cursoemvideo-python
7a76f07aa8d8ae462eab7624a0b3cbc7df1fb02e
[ "MIT" ]
null
null
null
nome = input('Dgigite seu nome completo: ')
11.5
43
0.673913
6
46
5.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0
0.195652
46
3
44
15.333333
0.837838
0
0
0
0
0
0.613636
0
0
0
0
0
0
1
0
false
0
0
0
0
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
dc58494bc47cffa782c19449890df1e125bbd5c6
174
py
Python
app/forms.py
makkenno/django_blog
787854ad1bb3b68b885c02b85b38ef4369e89e22
[ "MIT" ]
null
null
null
app/forms.py
makkenno/django_blog
787854ad1bb3b68b885c02b85b38ef4369e89e22
[ "MIT" ]
null
null
null
app/forms.py
makkenno/django_blog
787854ad1bb3b68b885c02b85b38ef4369e89e22
[ "MIT" ]
null
null
null
from django import forms class PostForm(forms.Form): title = forms.CharField(max_length=30, label='タイトル') content = forms.CharField(label='内容', widget=forms.Textarea())
29
64
0.747126
24
174
5.375
0.75
0.217054
0
0
0
0
0
0
0
0
0
0.012903
0.109195
174
6
64
29
0.819355
0
0
0
0
0
0.034286
0
0
0
0
0
0
1
0
false
0
0.25
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
0
0
0
0
1
0
0
4
dc618ebead1a642930e82af83102e0b4aac293a7
69
py
Python
dnfal/persons/__init__.py
altest-com/dnfal
d1fb15508c5583aeaa0957fcc3e37634d36bf237
[ "MIT" ]
null
null
null
dnfal/persons/__init__.py
altest-com/dnfal
d1fb15508c5583aeaa0957fcc3e37634d36bf237
[ "MIT" ]
1
2020-03-31T17:04:09.000Z
2020-03-31T17:04:09.000Z
dnfal/persons/__init__.py
altest-com/dnfal
d1fb15508c5583aeaa0957fcc3e37634d36bf237
[ "MIT" ]
null
null
null
from .detection import BodyDetector from .encoding import BodyEncoder
34.5
35
0.869565
8
69
7.5
0.75
0
0
0
0
0
0
0
0
0
0
0
0.101449
69
2
36
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
0
0
0
4
dc6a5a8186b1238e84ceb0aa65bbef6db414344e
59
py
Python
problems/bfs/Solution909.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
problems/bfs/Solution909.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
problems/bfs/Solution909.py
akalu/cs-problems-python
9b1bd8e3932be62135a38a77f955ded9a766b654
[ "MIT" ]
null
null
null
""" BFS """ class Solution909: pass
5.9
18
0.389831
4
59
5.75
1
0
0
0
0
0
0
0
0
0
0
0.1
0.491525
59
9
19
6.555556
0.666667
0.050847
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
dc8a59b30c82608dcdd7060ae1382d398f258c24
493
py
Python
donkeycar/parts/angle_adjust.py
hironorinaka99/donkeycar
e76b5242c45b2e20cf72efd44ca28af09cf285c1
[ "MIT" ]
null
null
null
donkeycar/parts/angle_adjust.py
hironorinaka99/donkeycar
e76b5242c45b2e20cf72efd44ca28af09cf285c1
[ "MIT" ]
null
null
null
donkeycar/parts/angle_adjust.py
hironorinaka99/donkeycar
e76b5242c45b2e20cf72efd44ca28af09cf285c1
[ "MIT" ]
null
null
null
class angle_adjustclass(): #ステアリングの切れ角を調整する def __init__(self): self.angle_adjust = 1.0 return def angleincrease(self): self.angle_adjust = round(min(2.0, self.angle_adjust + 0.05), 2) print("In angle_adjust increase",self.angle_adjust) def angledecrease(self): self.angle_adjust = round(max(0.5, self.angle_adjust - 0.05), 2) print("In angle_adjust increase",self.angle_adjust) def run(self): return self.angle_adjust
32.866667
72
0.661258
68
493
4.573529
0.338235
0.353698
0.385852
0.18328
0.559486
0.405145
0.405145
0.405145
0.405145
0.405145
0
0.036649
0.225152
493
15
73
32.866667
0.777487
0.030426
0
0.166667
0
0
0.100418
0
0
0
0
0
0
1
0.333333
false
0
0
0.083333
0.583333
0.166667
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
1
0
0
0
0
0
0
0
4
dc94642e6f6a93fa65fb69c2f410be31e9ee122c
86
py
Python
prowl/__main__.py
SoorajModi/PrOwl
b58845d9763d5db80c021adf42fb7e9e55432375
[ "MIT" ]
null
null
null
prowl/__main__.py
SoorajModi/PrOwl
b58845d9763d5db80c021adf42fb7e9e55432375
[ "MIT" ]
11
2021-05-19T05:03:15.000Z
2021-09-08T00:53:01.000Z
prowl/__main__.py
SoorajModi/PyOwl
b58845d9763d5db80c021adf42fb7e9e55432375
[ "MIT" ]
null
null
null
"""Begin PrOwl """ from .prowl import watch if __name__ == '__main__': watch()
9.555556
26
0.616279
10
86
4.5
0.8
0
0
0
0
0
0
0
0
0
0
0
0.22093
86
8
27
10.75
0.671642
0.127907
0
0
0
0
0.117647
0
0
0
0
0
0
1
0
true
0
0.333333
0
0.333333
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
0
0
0
4
f4c9927b909dfb773cd0b0bd92024436cca40bcc
324
py
Python
web/templatetags/tags.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
5
2015-09-16T10:50:53.000Z
2016-01-16T09:10:37.000Z
web/templatetags/tags.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
10
2015-09-07T05:58:03.000Z
2019-02-15T10:36:48.000Z
web/templatetags/tags.py
codeschule/koodikoulu-site
dde9932564f36dce6f4dbfd31e7923f1bae83293
[ "MIT" ]
6
2015-09-06T19:42:46.000Z
2019-12-29T21:31:07.000Z
from django import template register = template.Library() @register.inclusion_tag('templatetags/form_field.html') def show_form_field(field, icon=False): return {'field': field, 'icon': icon} @register.inclusion_tag('templatetags/learning_resource.html') def show_resource(resource): return {'resource': resource}
29.454545
62
0.771605
40
324
6.075
0.475
0.139918
0.164609
0.263374
0
0
0
0
0
0
0
0
0.098765
324
11
63
29.454545
0.832192
0
0
0
0
0
0.246154
0.193846
0
0
0
0
0
1
0.25
false
0
0.125
0.25
0.625
0
0
0
0
null
0
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
4
f4dfdc2828ad759886241cbe8ceb66c9cfe90377
87
py
Python
apps/sentry/apps.py
ShAlireza/Sentry-Telegram
adf5384a4bb2be1fd91fa948f636d00622ea9c04
[ "MIT" ]
null
null
null
apps/sentry/apps.py
ShAlireza/Sentry-Telegram
adf5384a4bb2be1fd91fa948f636d00622ea9c04
[ "MIT" ]
null
null
null
apps/sentry/apps.py
ShAlireza/Sentry-Telegram
adf5384a4bb2be1fd91fa948f636d00622ea9c04
[ "MIT" ]
null
null
null
from django.apps import AppConfig class SentryConfig(AppConfig): name = 'sentry'
14.5
33
0.747126
10
87
6.5
0.9
0
0
0
0
0
0
0
0
0
0
0
0.172414
87
5
34
17.4
0.902778
0
0
0
0
0
0.068966
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
f4fadeeded9f37b94879f47ef805c3a9011fce5c
29,988
py
Python
post_optimization_studies/mad_analyses/new_pre_select/Output/Histos/MadAnalysis5job_0/selection_10.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
post_optimization_studies/mad_analyses/new_pre_select/Output/Histos/MadAnalysis5job_0/selection_10.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
post_optimization_studies/mad_analyses/new_pre_select/Output/Histos/MadAnalysis5job_0/selection_10.py
sheride/axion_pheno
7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5
[ "MIT" ]
null
null
null
def selection_10(): # Library import import numpy import matplotlib import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec # Library version matplotlib_version = matplotlib.__version__ numpy_version = numpy.__version__ # Histo binning xBinning = numpy.linspace(0.0,1000.0,81,endpoint=True) # Creating data sequence: middle of each bin xData = numpy.array([6.25,18.75,31.25,43.75,56.25,68.75,81.25,93.75,106.25,118.75,131.25,143.75,156.25,168.75,181.25,193.75,206.25,218.75,231.25,243.75,256.25,268.75,281.25,293.75,306.25,318.75,331.25,343.75,356.25,368.75,381.25,393.75,406.25,418.75,431.25,443.75,456.25,468.75,481.25,493.75,506.25,518.75,531.25,543.75,556.25,568.75,581.25,593.75,606.25,618.75,631.25,643.75,656.25,668.75,681.25,693.75,706.25,718.75,731.25,743.75,756.25,768.75,781.25,793.75,806.25,818.75,831.25,843.75,856.25,868.75,881.25,893.75,906.25,918.75,931.25,943.75,956.25,968.75,981.25,993.75]) # Creating weights for histo: y11_PT_0 y11_PT_0_weights = numpy.array([0.131010679613,1.11359057671,3.91803799968,7.74191288589,11.8933130711,16.4991568388,20.9412367569,25.7190323666,30.04648039,34.1774125941,38.9593002,41.9643614386,45.7022380038,48.3920755321,51.470832703,54.3939900169,57.2762273684,58.6191061344,61.1123838433,63.3027418306,63.4460216989,64.8257404311,65.2924600022,67.2166582341,68.7273768458,68.2934172446,68.2238173086,68.0313774854,68.4776570753,68.1664973612,67.8635376396,68.6987368722,66.7090187005,65.8574194831,65.4357398706,64.3753808449,63.2331418945,63.2781418532,61.5913834032,61.5013434859,61.0837438696,59.3765054384,59.5730252579,57.251667391,56.2609083014,54.860709588,53.7307506264,52.9733513223,51.3561928084,51.0655130755,49.1371948474,48.4985154343,46.7830770106,45.9601977668,44.3839592152,44.2488393394,41.7432816418,40.3062429623,40.0565231917,38.8241963241,38.2223648772,36.8140021713,35.4752354015,34.2306325452,33.6533690756,32.0321105654,31.6759268927,30.7260997655,30.2102442396,28.6135497068,27.4017028203,27.3771388429,25.7968202951,25.0885449459,24.4130215667,23.4959464094,23.2421146426,22.2513435531,21.3342683958,20.6546530203]) # Creating weights for histo: y11_PT_1 y11_PT_1_weights = numpy.array([702.900577971,5860.16056363,2832.29591012,1369.85243305,695.429636629,353.117841868,172.218757054,82.125877891,37.0944554986,17.1936398652,9.24720761597,5.07881009451,3.71786022279,2.35715669866,1.82252554531,1.17885974637,0.862978845048,0.789151075614,0.729034652602,0.522341813342,0.328118568417,0.255359026229,0.145930104316,0.133699727511,0.0851190211533,0.072804485602,0.12148725597,0.0971783966792,0.0364618669294,0.0243135298806,0.0727484865885,0.0121719383497,0.0121674920761,0.0121245635048,0.0,0.0364704910979,0.0243242289768,0.0,0.0242616647,0.0364505589741,0.0242483579244,0.0,0.0121684894834,0.0,0.024342799179,0.0121245635048,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0121541812948,0.0,0.0,0.0,0.0,0.0,0.0]) # Creating weights for histo: y11_PT_2 y11_PT_2_weights = numpy.array([176.651716605,2317.75832416,2055.46502747,1507.23989373,1091.67396584,771.726216738,552.406825288,385.407584973,270.137935167,185.277736377,122.800991985,84.5348367418,58.3412497919,38.1936119851,26.0140675928,17.3893783594,10.0704099157,6.54671910232,4.34748404844,2.94145968466,2.21910346047,1.56600464309,1.15479106274,0.742998161084,0.723339252279,0.753005296057,0.451792930011,0.39150450778,0.341421933512,0.220899219642,0.21085130078,0.210929604194,0.230951642499,0.160710505135,0.180818656534,0.0601906152755,0.0602349114548,0.0903994112121,0.0501383577027,0.0702760949828,0.0401689199358,0.020103552365,0.0401888656128,0.0502107522046,0.0401370903212,0.0100586499413,0.0301139145123,0.0401535567647,0.0602671418837,0.0301342610036,0.0,0.0100371423281,0.0100534186947,0.0100326135396,0.0100698396851,0.0200459136146,0.010070459501,0.010070459501,0.0100185850388,0.0100611539977,0.0100548236109,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0100273285757,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0100570260235]) # Creating weights for histo: y11_PT_3 y11_PT_3_weights = numpy.array([67.0789130983,937.440838177,884.926097202,687.131609497,531.166505423,417.467104414,332.749145317,268.218028966,220.387587449,179.435108382,150.450091413,124.088191139,103.75302416,84.2606768284,70.7233585269,60.8782614135,52.1832763312,44.0369405948,35.8453032007,30.1910948892,24.7459745887,21.0608466384,16.9348979312,14.2734103142,11.1050487029,9.26815200532,7.37594349106,6.29228689127,4.81795376916,3.4931295235,2.71172691556,2.08488132681,1.57307456661,0.979173126514,0.830623421558,0.539045036903,0.495008055682,0.357604687273,0.302493398775,0.242102888865,0.192484797057,0.186860135778,0.165033682595,0.0660077366969,0.0825237679701,0.0605301808808,0.0880485307866,0.0549914428422,0.044025443537,0.0550033461564,0.0604766362797,0.0385444304785,0.0384558421954,0.0275054959515,0.0165119280831,0.0275088394421,0.01102512587,0.0165110343189,0.00550369029398,0.0109919225298,0.0109785566923,0.00549235573882,0.00549596329616,0.0109806854761,0.00549596329616,0.0,0.0,0.0109954772738,0.0110064258853,0.0,0.0,0.00549441139649,0.0,0.0,0.00548472624255,0.0,0.0109898709346,0.00550802098782,0.0,0.0054880453578]) # Creating weights for histo: y11_PT_4 y11_PT_4_weights = numpy.array([9.01867086008,130.802485415,128.827945372,104.20910547,83.8984112371,68.323670997,56.2718860133,47.355932441,39.9327826078,34.2165250589,29.4556032211,25.5245686064,22.2060017532,19.7805293701,17.6841443218,15.7203305518,14.1829542598,12.9070048088,11.608107708,10.5562756265,9.57832896469,8.84604040077,8.02409366574,7.29161270232,6.93059105728,6.31765432202,5.81832949671,5.27277267277,5.0150735723,4.60480166133,4.3677053416,4.04504735696,3.91982213247,3.50805110866,3.36122663431,2.75630414025,2.44650044697,2.06944591036,1.76752378279,1.55334304622,1.27987239685,1.1092597274,0.863573170433,0.814131707482,0.62766491767,0.476594426662,0.360206632699,0.286189499486,0.211168401587,0.16085448703,0.0976773425617,0.097694578351,0.076002936643,0.0621515348368,0.0365172664438,0.0493441408654,0.0305980234047,0.0305980474546,0.0207229422476,0.0226914818305,0.0118353796278,0.0138188542226,0.00986751745144,0.012837696894,0.00789972341657,0.00986073136043,0.00986906065583,0.01479984721,0.00691116271521,0.00592408910173,0.00197545955196,0.00295601523125,0.00789580327658,0.00295870842355,0.000988181113161,0.00197400212568,0.00295990731299,0.00395035232703,0.00197395683163,0.000984227704087]) # Creating weights for histo: y11_PT_5 y11_PT_5_weights = numpy.array([1.94653669359,29.3172758954,29.9865974582,24.6086391712,20.1481078181,16.5763963227,13.6958958047,11.6637331307,9.9399147285,8.64102143541,7.50614471331,6.65611044958,5.82840170828,5.12403147589,4.61277301145,4.14163647153,3.76331328984,3.38814968971,3.10284471692,2.86109091691,2.55283866791,2.3160492959,2.15849272285,2.02445676783,1.92436800997,1.72697398275,1.60973498262,1.49555633949,1.44286610608,1.35840081282,1.25409301134,1.17821384193,1.135575695,1.06303135049,1.00578158924,0.940716294749,0.88298921543,0.889077521428,0.820748219553,0.798594739687,0.779433199906,0.732785261113,0.69169389679,0.681112079281,0.670270197442,0.615329007238,0.609792837816,0.588330728968,0.573242196682,0.54700450655,0.473393098097,0.443676947537,0.393745276483,0.328440282697,0.29970389449,0.271996280759,0.226601051835,0.200913217716,0.160580280996,0.143695184314,0.118224283854,0.100339739949,0.0731105645645,0.0526879528453,0.0330209320285,0.0267205735774,0.0287378165608,0.0196620915976,0.0133581242538,0.0115995892641,0.0100841744124,0.00730924400812,0.00731128451286,0.00478896459404,0.00529466568381,0.00529438961553,0.00630140270939,0.00630146672523,0.00226657665839,0.00176346820993]) # Creating weights for histo: y11_PT_6 y11_PT_6_weights = numpy.array([0.783843801624,12.2265377037,12.70615678,10.6527257553,8.84084168579,7.33469903274,6.1550698266,5.28657322802,4.51555992145,3.97711558243,3.41184324484,3.06238349696,2.69640129276,2.39810137953,2.12063147733,1.90868459059,1.75161928976,1.57867631627,1.43405284091,1.30610776955,1.18092577111,1.09876233891,1.02063555232,0.929073273656,0.896196604566,0.838942814585,0.783898983109,0.720021815429,0.660485991125,0.604676516541,0.566937978724,0.527410841026,0.504761140543,0.482752125095,0.455246553874,0.416249938172,0.404309544461,0.382971603851,0.359283051928,0.364673143423,0.324377263656,0.320366309427,0.290784634788,0.289113195596,0.281432872528,0.261098595165,0.267142267369,0.24761751839,0.233924112855,0.247956604618,0.234208217531,0.236729571557,0.210126597492,0.19725321682,0.213824356805,0.201827482044,0.196696703543,0.173812781647,0.188931808851,0.185833648358,0.183779137696,0.167479406646,0.155770135387,0.171109088801,0.156896657412,0.14599571494,0.144870692412,0.138020790718,0.126828146118,0.12802674396,0.0996597817554,0.0913492701312,0.09304474126,0.0810026316763,0.0669754581291,0.0689846040125,0.0630043005476,0.061009189955,0.0526718673265,0.0509823242087]) # Creating weights for histo: y11_PT_7 y11_PT_7_weights = numpy.array([0.131106469137,2.02840287035,2.14430444527,1.82977235121,1.53237747294,1.28926588132,1.08813168834,0.943676748415,0.812419111692,0.718042677764,0.628317779822,0.559046396813,0.498364366902,0.442669149018,0.403495077192,0.364346989259,0.327665862443,0.300520321532,0.270951489211,0.246593894317,0.22600769389,0.208721992728,0.19612868932,0.175009232348,0.16602270287,0.154391851249,0.141732749918,0.136267708526,0.124123926471,0.115879446692,0.108379321635,0.0987197674123,0.0934810792583,0.089161885649,0.0862528211623,0.080816278234,0.0744337958632,0.0701650193887,0.0663402741222,0.0631273657226,0.0601609690327,0.0550243724334,0.05421996139,0.0505276920695,0.0507941946132,0.0459538563064,0.0443972953726,0.0417626040347,0.0410975085686,0.0384615431818,0.0350853972593,0.0340991618274,0.0339265910577,0.032158085374,0.0315663985972,0.0293238628817,0.0280074895133,0.0277702062766,0.0257991561451,0.0261952722157,0.025260346591,0.0230298179488,0.0223431893789,0.0233270653056,0.0220508999165,0.022391544566,0.0220865607145,0.0211793372729,0.018332797577,0.0193046203301,0.0190045440816,0.0168808134316,0.017103134975,0.0165434502964,0.015744202504,0.0170613092887,0.0154204348123,0.0152674944548,0.0144399996559,0.0148616721428]) # Creating weights for histo: y11_PT_8 y11_PT_8_weights = numpy.array([0.0441113966496,0.705669815692,0.759984812721,0.652807115134,0.55979480251,0.467904975472,0.401176407535,0.354328412116,0.305553525182,0.273454060763,0.241789691298,0.21129889024,0.190259450478,0.172316164235,0.159290193465,0.140948609718,0.12880923773,0.118281602981,0.10741668797,0.0994420508301,0.09233806394,0.0796856065974,0.0772208308017,0.0710600644354,0.0630548221525,0.0612650820723,0.0567743081508,0.0497549197575,0.0499770557791,0.0472726510657,0.0426836466621,0.0401975764581,0.0370621158965,0.0359883520365,0.0334319538561,0.0309622925232,0.0309856807332,0.0271370653862,0.0265649080956,0.0254006355752,0.0232553501534,0.0228892170064,0.021460635438,0.019793078337,0.0196682075698,0.0179457215869,0.0169371328722,0.0153650145177,0.0160077225295,0.0147292398109,0.0132205042481,0.0140345253297,0.0124162037519,0.0118240766424,0.0111195257484,0.0117657204597,0.0106363995773,0.0105674763785,0.00971614701819,0.00910512668983,0.00904074451622,0.00790836163456,0.0082218304725,0.00785733375764,0.00847773906933,0.00734330248008,0.0070599041979,0.00678066233476,0.00611385481436,0.00615048594865,0.00575405207613,0.00623907009351,0.00570296034568,0.00540627162034,0.00481021677647,0.00411056626931,0.00458846684601,0.00484840266987,0.00436772817721,0.0039899142898]) # Creating weights for histo: y11_PT_9 y11_PT_9_weights = numpy.array([164943.979527,1297154.22498,610808.252294,289781.784617,159205.687534,90024.6466906,49663.995891,26063.1398179,12180.6275642,5031.02228078,2374.55207706,1313.64596973,750.705267103,539.529108065,312.785094202,213.754299125,143.326831678,93.8484827915,52.1177048053,49.5685960945,28.6649779689,28.6753677412,23.4569065857,7.81647716224,20.8869260451,5.21076303407,0.0,7.83491497056,0.0,5.21416220457,2.59804330778,2.61034453668,2.61034453668,2.60657430288,0.0,2.60956741863,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,2.60341891904,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]) # Creating weights for histo: y11_PT_10 y11_PT_10_weights = numpy.array([31276.9848271,337422.439677,234875.085314,146304.939395,95307.5782391,65643.4379113,47550.2499671,36309.9418446,28621.4922129,22086.228649,15926.9957395,11383.4199313,7828.70651489,5525.22393342,3542.12634905,2248.63722677,1317.53629245,694.04744834,445.512312974,282.262042765,196.968866774,128.485547292,88.4738402711,74.7884344781,51.6143637014,49.4959087789,41.0804188382,32.6485265413,23.1701769967,14.7484193013,13.6953595569,8.425085877,7.36964831042,7.37645473036,6.32550732323,5.26437914326,2.10969507155,2.10701290346,4.21089616194,1.05572344391,1.05537331152,1.05386620315,2.10845152439,0.0,0.0,1.05572344391,0.0,1.05194970922,0.0,0.0,0.0,0.0,0.0,0.0,2.1080806149,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0]) # Creating weights for histo: y11_PT_11 y11_PT_11_weights = numpy.array([4430.09849164,54188.814408,43410.6841204,29424.1665837,20621.8078373,14978.9045692,11275.4399938,8885.18734355,7135.53552886,5906.46626974,4993.43823187,4345.80597572,3823.65998572,3463.86142747,3206.76425893,2999.74002627,2774.84484271,2517.77918107,2122.7124774,1758.1867297,1404.36718431,1201.44576634,952.227246887,791.915853238,644.964158644,510.649809516,422.194154708,347.586556086,252.688852088,221.128186448,159.165195252,100.658473854,71.6396475328,49.7546392294,30.6312732199,24.8761131305,19.5792095459,16.121030121,10.3661735738,7.37256740537,8.52515939962,5.98639392569,5.06853610878,3.45207438439,3.6878129406,2.30236143027,2.30298734197,1.84242737448,0.920468664048,0.920996596935,1.84432854765,1.38350653487,0.921984453889,1.61214374055,0.230621641619,0.690682608783,0.46065487245,0.460370541783,0.691185566679,0.0,0.0,0.229908509568,0.0,0.230564160717,0.230649575186,0.0,0.230596090282,0.460950345806,0.0,0.0,0.0,0.0,0.0,0.230574688636,0.0,0.0,0.0,0.0,0.0,0.0]) # Creating weights for histo: y11_PT_12 y11_PT_12_weights = numpy.array([371.23446632,5072.22605975,4592.14431319,3392.38082995,2510.14208815,1916.52754291,1494.77663841,1189.94786994,961.679654128,782.413331289,653.294197371,552.626646178,472.555186293,401.961560119,344.395838848,306.567717819,271.877138307,240.805686294,217.323426115,198.158127603,180.994038516,169.663995421,156.811789766,146.540712618,139.813551227,138.375718149,130.754979702,126.95999907,127.903550578,131.06202058,130.7320507,135.495396944,138.846647531,133.414936271,126.739365134,112.394850786,99.4382335347,85.7866290049,74.904240047,65.0748924282,57.3793269529,49.5383008133,41.1193945789,34.7514452397,29.1318854399,21.3475277898,18.3053724589,13.0427433524,9.05445122993,5.84255588401,4.90034318327,2.93535003981,2.90677842607,2.3260599055,1.35700142159,1.71657472079,1.43969702109,0.609152406413,0.88605280428,0.609247046253,0.830907016017,0.553707310039,0.636769158031,0.249228939805,0.332385543051,0.249265910897,0.13840095544,0.193811696782,0.0553014823407,0.165998625204,0.0829989855944,0.0553496486331,0.2490200012,0.0276605244676,0.11077089269,0.0831365980769,0.0830534612095,0.0277272955675,0.110730882351,0.0831584498773]) # Creating weights for histo: y11_PT_13 y11_PT_13_weights = numpy.array([71.4031696407,1011.96801601,974.987747693,751.502890835,576.125637118,458.077326539,364.850640528,295.220630455,242.733590188,202.643374755,171.045270759,144.284457719,124.40407422,108.699354068,93.6626332497,80.8869032699,71.9458584159,65.1195581805,57.3674829608,51.851682362,46.241962562,40.1770529183,36.5967755329,32.4644156317,31.9002996613,28.0587330745,25.6185572399,23.5923613701,22.3112626852,20.3839074143,19.772628555,17.9744979008,18.4713527464,16.7663706184,15.7899252631,14.6705894619,15.3644640599,15.0216896201,14.0544923661,13.0964885985,12.9552608689,14.1339629263,14.0042831866,13.8928083705,15.3361978817,15.8184463102,16.263508148,17.0478308752,18.5809160455,17.4804162719,16.9072281813,15.2436440497,14.5482220331,11.8456707701,11.2918041718,9.85963496184,9.25531645171,8.2660669668,7.0770912641,5.89779026469,4.89987827026,3.71024840397,3.01479422536,2.13749470501,1.66378559938,1.05843001542,0.957837495917,0.584831170943,0.393138057786,0.393317436967,0.393148313226,0.352856933387,0.251991036615,0.262161884748,0.131039344123,0.171352933969,0.181480818482,0.141239987647,0.110896324259,0.0302782288241]) # Creating weights for histo: y11_PT_14 y11_PT_14_weights = numpy.array([27.527962396,403.455277127,395.668110121,319.591605207,251.49329143,201.872570669,164.236122948,134.271496746,112.664032012,96.0735573487,80.4995696042,69.6704443013,60.731207489,52.869054374,45.8802643569,40.8673525452,36.1426274713,31.9470527072,29.2934793646,25.0659095012,23.3126042264,20.5849219851,18.6690903784,17.0486940384,15.8089108756,14.2136573896,13.0451706653,11.8569428572,11.158356259,9.91893860047,9.19477823789,8.43627585324,8.24131966425,7.54799632912,6.98816288848,6.53553765368,6.02320824022,5.6754442884,5.39245540757,4.91132467853,4.84618410315,4.57156334892,4.20690924732,4.13051498444,3.98068512045,3.9692852312,3.55066536971,3.61549584348,3.22815392315,3.17156691974,3.13481218401,3.0439470256,2.93083496217,2.95087345126,2.96774590293,2.98484612155,2.94516042543,3.14592313243,3.03308269646,3.10366390073,3.23940222426,3.28476054836,3.46581718289,3.85894522994,3.83361000527,4.02599996877,3.75428978364,3.70623057454,3.36956679837,3.07833406244,2.94254379881,2.6426470701,2.55201352605,2.31711270993,2.18134899346,1.90696831791,1.76535576187,1.70300840944,1.65515503701,1.46566525458]) # Creating weights for histo: y11_PT_15 y11_PT_15_weights = numpy.array([4.17090010579,62.2847283399,63.2070244345,52.2423924163,42.9975474401,35.1019262206,29.2661453025,24.0898984966,20.6183137004,17.6163138835,15.320735778,13.3165745009,11.8088959455,10.2320499095,9.11045788493,8.10319692288,7.15900143622,6.22123999641,5.66816838524,5.1354872079,4.6791579013,4.12952723493,3.87734214012,3.47709007146,3.29788798283,2.92158663874,2.63808091117,2.48869640524,2.30945295909,2.14179788711,1.92243293019,1.87046308376,1.64066539966,1.56188879722,1.39078569059,1.30248268125,1.24934537141,1.19241380548,1.12405232374,0.971925696767,0.931972924625,0.865178538001,0.860794287502,0.804211188136,0.763474041285,0.699089379492,0.644429876975,0.640096909787,0.526862766575,0.554428728295,0.514932543058,0.513323026953,0.507248908616,0.455723241839,0.409983726969,0.392785383893,0.397674786829,0.345846501247,0.335214076378,0.333615313226,0.316950127529,0.312168963103,0.286336353688,0.294153395639,0.298520039656,0.246731457283,0.257441870598,0.245295288225,0.237643203654,0.254270104113,0.241985860315,0.242184612689,0.232992256301,0.211657453289,0.204103917756,0.176767312967,0.181323847034,0.18578608598,0.179865463085,0.170522565362]) # Creating weights for histo: y11_PT_16 y11_PT_16_weights = numpy.array([1.29230475575,20.252083342,21.4293549047,18.105728309,15.0427055881,12.6256987175,10.697437243,9.03993159047,7.75284106893,6.71745798881,5.88243722091,5.13826020546,4.56011528308,3.96418519669,3.59158639571,3.20313153177,2.91098306138,2.58422900605,2.32665877658,2.12372882277,1.95224102087,1.76844109449,1.59796309553,1.48184923619,1.33329420554,1.23630806287,1.12741456417,1.03891276891,0.988225436594,0.905680015227,0.850443563005,0.768840932489,0.737081435944,0.670250735938,0.625627998204,0.582096710336,0.536790757337,0.508830153339,0.49206249481,0.446349847718,0.423255323134,0.39866920175,0.366902156716,0.353735011826,0.334567588561,0.302073154197,0.291245039518,0.263781518915,0.252039613446,0.24069169288,0.224809017642,0.222643448624,0.202409608747,0.192486850577,0.194454926479,0.173521618978,0.172801393009,0.151850177104,0.16068922646,0.139379958,0.135608602032,0.130904815128,0.121332907638,0.11591108999,0.108161526351,0.113940741838,0.106351660613,0.0989532942697,0.0926139501003,0.0890252983722,0.0861287583429,0.0834123036902,0.0756534584916,0.0754788034054,0.0706038660711,0.076733007934,0.0622762268333,0.0639155198309,0.0622988337871,0.0604764129098]) # Creating a new Canvas fig = plt.figure(figsize=(12,6),dpi=80) frame = gridspec.GridSpec(1,1,right=0.7) pad = fig.add_subplot(frame[0]) # Creating a new Stack pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights+y11_PT_8_weights+y11_PT_9_weights+y11_PT_10_weights+y11_PT_11_weights+y11_PT_12_weights+y11_PT_13_weights+y11_PT_14_weights+y11_PT_15_weights+y11_PT_16_weights,\ label="$bg\_dip\_1600\_inf$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#e5e5e5", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights+y11_PT_8_weights+y11_PT_9_weights+y11_PT_10_weights+y11_PT_11_weights+y11_PT_12_weights+y11_PT_13_weights+y11_PT_14_weights+y11_PT_15_weights,\ label="$bg\_dip\_1200\_1600$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#f2f2f2", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights+y11_PT_8_weights+y11_PT_9_weights+y11_PT_10_weights+y11_PT_11_weights+y11_PT_12_weights+y11_PT_13_weights+y11_PT_14_weights,\ label="$bg\_dip\_800\_1200$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#ccc6aa", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights+y11_PT_8_weights+y11_PT_9_weights+y11_PT_10_weights+y11_PT_11_weights+y11_PT_12_weights+y11_PT_13_weights,\ label="$bg\_dip\_600\_800$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#ccc6aa", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights+y11_PT_8_weights+y11_PT_9_weights+y11_PT_10_weights+y11_PT_11_weights+y11_PT_12_weights,\ label="$bg\_dip\_400\_600$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#c1bfa8", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights+y11_PT_8_weights+y11_PT_9_weights+y11_PT_10_weights+y11_PT_11_weights,\ label="$bg\_dip\_200\_400$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#bab5a3", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights+y11_PT_8_weights+y11_PT_9_weights+y11_PT_10_weights,\ label="$bg\_dip\_100\_200$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#b2a596", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights+y11_PT_8_weights+y11_PT_9_weights,\ label="$bg\_dip\_0\_100$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#b7a39b", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights+y11_PT_8_weights,\ label="$bg\_vbf\_1600\_inf$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#ad998c", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights,\ label="$bg\_vbf\_1200\_1600$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#9b8e82", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights,\ label="$bg\_vbf\_800\_1200$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#876656", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights,\ label="$bg\_vbf\_600\_800$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#afcec6", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights,\ label="$bg\_vbf\_400\_600$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#84c1a3", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights,\ label="$bg\_vbf\_200\_400$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#89a8a0", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights,\ label="$bg\_vbf\_100\_200$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#829e8c", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights+y11_PT_1_weights,\ label="$bg\_vbf\_0\_100$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#adbcc6", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") pad.hist(x=xData, bins=xBinning, weights=y11_PT_0_weights,\ label="$signal$", histtype="step", rwidth=1.0,\ color=None, edgecolor="#7a8e99", linewidth=1, linestyle="solid",\ bottom=None, cumulative=False, normed=False, align="mid", orientation="vertical") # Axis plt.rc('text',usetex=False) plt.xlabel(r"p_{T} [ a_{1} ] ",\ fontsize=16,color="black") plt.ylabel(r"$\mathrm{Events}$ $(\mathcal{L}_{\mathrm{int}} = 40.0\ \mathrm{fb}^{-1})$ ",\ fontsize=16,color="black") # Boundary of y-axis ymax=(y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights+y11_PT_8_weights+y11_PT_9_weights+y11_PT_10_weights+y11_PT_11_weights+y11_PT_12_weights+y11_PT_13_weights+y11_PT_14_weights+y11_PT_15_weights+y11_PT_16_weights).max()*1.1 ymin=0 # linear scale #ymin=min([x for x in (y11_PT_0_weights+y11_PT_1_weights+y11_PT_2_weights+y11_PT_3_weights+y11_PT_4_weights+y11_PT_5_weights+y11_PT_6_weights+y11_PT_7_weights+y11_PT_8_weights+y11_PT_9_weights+y11_PT_10_weights+y11_PT_11_weights+y11_PT_12_weights+y11_PT_13_weights+y11_PT_14_weights+y11_PT_15_weights+y11_PT_16_weights) if x])/100. # log scale plt.gca().set_ylim(ymin,ymax) # Log/Linear scale for X-axis plt.gca().set_xscale("linear") #plt.gca().set_xscale("log",nonposx="clip") # Log/Linear scale for Y-axis plt.gca().set_yscale("linear") #plt.gca().set_yscale("log",nonposy="clip") # Legend plt.legend(bbox_to_anchor=(1.05,1), loc=2, borderaxespad=0.) # Saving the image plt.savefig('../../HTML/MadAnalysis5job_0/selection_10.png') plt.savefig('../../PDF/MadAnalysis5job_0/selection_10.png') plt.savefig('../../DVI/MadAnalysis5job_0/selection_10.eps') # Running! if __name__ == '__main__': selection_10()
154.57732
1,310
0.800053
4,668
29,988
4.983076
0.352614
0.02631
0.035725
0.043506
0.265638
0.26164
0.245991
0.242552
0.240918
0.240918
0
0.593902
0.055022
29,988
193
1,311
155.378238
0.226939
0.043918
0
0.185841
0
0.00885
0.03604
0.007089
0
0
0
0
0
1
0.00885
false
0
0.035398
0
0.044248
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
760133bec2625c1f79501f59184ee12e8243bf4b
315
py
Python
python_scripts/wikiracer/__init__.py
gulyas/network_games_analysis
2e6bdd2a2275702495af1c18043758193d94377b
[ "MIT" ]
null
null
null
python_scripts/wikiracer/__init__.py
gulyas/network_games_analysis
2e6bdd2a2275702495af1c18043758193d94377b
[ "MIT" ]
null
null
null
python_scripts/wikiracer/__init__.py
gulyas/network_games_analysis
2e6bdd2a2275702495af1c18043758193d94377b
[ "MIT" ]
1
2021-03-30T18:39:08.000Z
2021-03-30T18:39:08.000Z
""" WikiRacer is a project of stong1108. https://github.com/stong1108/WikiRacer Rewritten for Python 3.8 by Tamás Csertán (csertant) """ from .wikiracer import check_pages, find_shortest_path, get_result, redirected from .wikiracer_threaded import check_page_threaded, find_shortest_path_threaded, result_threaded
35
97
0.828571
44
315
5.681818
0.681818
0.104
0.128
0
0
0
0
0
0
0
0
0.035211
0.098413
315
8
98
39.375
0.84507
0.409524
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
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
4
523460bd80c3461cd9638039533ab16a8632b269
269
py
Python
urls.py
audacious-software/Passive-Data-Kit-Codebook
84533014f6f3aaa6b7cdb1bcf095633c65c94d01
[ "Apache-2.0" ]
null
null
null
urls.py
audacious-software/Passive-Data-Kit-Codebook
84533014f6f3aaa6b7cdb1bcf095633c65c94d01
[ "Apache-2.0" ]
null
null
null
urls.py
audacious-software/Passive-Data-Kit-Codebook
84533014f6f3aaa6b7cdb1bcf095633c65c94d01
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url from .views import pdk_codebook_page, pdk_codebook_sitemap urlpatterns = [ url(r'^(?P<generator>.+)/$', pdk_codebook_page, name='pdk_codebook_page'), url(r'^sitemap.json$', pdk_codebook_sitemap, name='pdk_codebook_sitemap') ]
29.888889
78
0.747212
38
269
4.973684
0.447368
0.349206
0.238095
0
0
0
0
0
0
0
0
0
0.107807
269
8
79
33.625
0.7875
0
0
0
0
0
0.263941
0
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
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
0
0
0
4
52366585374893c5a5d4f9892985aa180f39b4ce
198
py
Python
cars/admin.py
rngallen/signals
a27c2b1e307a3a25eb83afe38df137cf836ed8c9
[ "MIT" ]
null
null
null
cars/admin.py
rngallen/signals
a27c2b1e307a3a25eb83afe38df137cf836ed8c9
[ "MIT" ]
null
null
null
cars/admin.py
rngallen/signals
a27c2b1e307a3a25eb83afe38df137cf836ed8c9
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import Car # Register your models here. @admin.register(Car) class CarAdmin(admin.ModelAdmin): list_display = ("name", "price", "buyer", "code")
19.8
53
0.722222
26
198
5.461538
0.730769
0
0
0
0
0
0
0
0
0
0
0
0.146465
198
9
54
22
0.840237
0.131313
0
0
0
0
0.105882
0
0
0
0
0
0
1
0
false
0
0.4
0
0.8
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
0
0
1
0
1
0
0
4
523e0d5b10bb021e5fa2c2938ba1171583eee803
94
py
Python
estimators/apps.py
bearroast/django-estimators
5dd72694dab6725335214543a59104c4de504037
[ "MIT" ]
46
2016-09-13T06:33:30.000Z
2022-01-08T00:55:37.000Z
estimators/apps.py
bearroast/django-estimators
5dd72694dab6725335214543a59104c4de504037
[ "MIT" ]
14
2016-09-10T04:56:30.000Z
2017-11-28T04:12:43.000Z
estimators/apps.py
bearroast/django-estimators
5dd72694dab6725335214543a59104c4de504037
[ "MIT" ]
19
2016-09-20T23:53:26.000Z
2022-01-08T00:55:39.000Z
from django.apps import AppConfig class EstimatorConfig(AppConfig): name = 'estimators'
15.666667
33
0.765957
10
94
7.2
0.9
0
0
0
0
0
0
0
0
0
0
0
0.159574
94
5
34
18.8
0.911392
0
0
0
0
0
0.106383
0
0
0
0
0
0
1
0
false
0
0.333333
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
0
0
1
0
1
0
0
4
524438036b4836d23308da7e1f4538ef603e1930
47
py
Python
Data Science Bootcamp for Beginners/4.py
yuto-moriizumi/Python
2de2903179f187c3c7105e8cf2f9600dded21f25
[ "MIT" ]
null
null
null
Data Science Bootcamp for Beginners/4.py
yuto-moriizumi/Python
2de2903179f187c3c7105e8cf2f9600dded21f25
[ "MIT" ]
null
null
null
Data Science Bootcamp for Beginners/4.py
yuto-moriizumi/Python
2de2903179f187c3c7105e8cf2f9600dded21f25
[ "MIT" ]
null
null
null
s = "Rats live on no evil star" print(s[::-1])
15.666667
31
0.595745
10
47
2.8
0.9
0
0
0
0
0
0
0
0
0
0
0.026316
0.191489
47
2
32
23.5
0.710526
0
0
0
0
0
0.531915
0
0
0
0
0
0
1
0
false
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
0
0
0
0
0
1
0
4
527099d9e70699816c427356c1e9f6bf0065bca5
160
py
Python
QARealtimeCollector/clients/test.py
dizzy21c/QUANTAXIS_RealtimeCollector
bb55a3852fe437b51ce92a9cbbc4e89c5e317f6c
[ "MIT" ]
1
2020-02-03T14:10:38.000Z
2020-02-03T14:10:38.000Z
QARealtimeCollector/clients/test.py
daqing526533/QUANTAXIS_RealtimeCollector
e234669ac680fa59775598df2ee84a61085b79ed
[ "MIT" ]
null
null
null
QARealtimeCollector/clients/test.py
daqing526533/QUANTAXIS_RealtimeCollector
e234669ac680fa59775598df2ee84a61085b79ed
[ "MIT" ]
null
null
null
from QAPUBSUB.consumer import subscriber sub = subscriber(host='192.168.2.116',user='admin', password='admin' ,exchange= 'realtime_60min_rb1910') sub.start()
32
104
0.7625
22
160
5.454545
0.863636
0
0
0
0
0
0
0
0
0
0
0.108844
0.08125
160
5
105
32
0.707483
0
0
0
0
0
0.275
0.13125
0
0
0
0
0
1
0
false
0.333333
0.333333
0
0.333333
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
0
1
1
0
0
0
0
4
5286e720b93035006a31236bf9586f44cd981b61
5,591
py
Python
tests/test_mat2.py
TovarnovM/easyvec
25a67a37907140c07feace02dd85d68fc59824a6
[ "MIT" ]
1
2021-06-24T18:12:51.000Z
2021-06-24T18:12:51.000Z
tests/test_mat2.py
TovarnovM/easyvec
25a67a37907140c07feace02dd85d68fc59824a6
[ "MIT" ]
null
null
null
tests/test_mat2.py
TovarnovM/easyvec
25a67a37907140c07feace02dd85d68fc59824a6
[ "MIT" ]
null
null
null
from easyvec import Mat2, Vec2 import numpy as np from pytest import approx def test_constructor1(): m = Mat2(1,2,3,4) assert m is not None assert m.m11 == approx(1) assert m.m12 == approx(2) assert m.m21 == approx(3) assert m.m22 == approx(4) def test_constructor2(): m = Mat2([1,2,3,4]) assert m is not None assert m.m11 == approx(1) assert m.m12 == approx(2) assert m.m21 == approx(3) assert m.m22 == approx(4) def test_constructor3(): m = Mat2([[1,2],[3,4]]) assert m is not None assert m.m11 == approx(1) assert m.m12 == approx(2) assert m.m21 == approx(3) assert m.m22 == approx(4) def test_constructor4(): m = Mat2([1,2],[3,4]) assert m is not None assert m.m11 == approx(1) assert m.m12 == approx(2) assert m.m21 == approx(3) assert m.m22 == approx(4) def test_constructor5(): m = Mat2(Vec2(1,2),Vec2(3,4)) assert m is not None assert m.m11 == approx(1) assert m.m12 == approx(2) assert m.m21 == approx(3) assert m.m22 == approx(4) def test_constructor6(): m = Mat2([Vec2(1,2),Vec2(3,4)]) assert m is not None assert m.m11 == approx(1) assert m.m12 == approx(2) assert m.m21 == approx(3) assert m.m22 == approx(4) def test_constructor7(): m = Mat2.eye() assert m is not None assert m.m11 == approx(1) assert m.m12 == approx(0) assert m.m21 == approx(0) assert m.m22 == approx(1) def test_constructor8(): from math import sin, cos, pi for angle in np.random.uniform(-720, 720, 1000): angle *= pi/180 m = Mat2.from_angle(angle) assert m is not None assert m.m11 == approx(cos(angle)) assert m.m12 == approx(sin(angle)) assert m.m21 == approx(-sin(angle)) assert m.m22 == approx(cos(angle)) def test_constructor9(): m = Mat2.from_xaxis((1,1)) assert m is not None assert m.m11 == approx(1/2**0.5) assert m.m12 == approx(1/2**0.5) assert m.m21 == approx(-1/2**0.5) assert m.m22 == approx(1/2**0.5) def test_xiyj_axis(): m = Mat2(1,2,3,4) assert m.x_axis() == (1,2) assert m.i_axis() == (1,2) assert m.y_axis() == (3,4) assert m.j_axis() == (3,4) def test_cmp(): m = Mat2(-1,2,-3,4) assert m == [[-1,2],[-3,4]] assert m != [[-1,-2],[-3,4]] def test_T(): m = Mat2(-1,2,-3,4) assert m.T == [[-1,-3], [2,4]] def test_inverse1(): for angle in np.random.uniform(-720,720,1000): m = Mat2.from_angle(angle) assert m._1 == m.T assert m.det() == approx(1) def test_inverse2(): for ms in np.random.uniform(-720,720,(1000,4)): m = Mat2(ms) if abs(m.det()) < 1e-6: continue assert m * m._1 == Mat2.eye() def test_mul1(): for ms in np.random.uniform(-720,720,(1000,5)): m = Mat2(ms[:-1]) assert m * ms[-1] == (ms[:-1] * ms[-1]).reshape(2,2) assert ms[-1] * m == (ms[:-1] * ms[-1]).reshape(2,2) def test_mul2(): for angle, x, y in np.random.uniform(-180,180,(1000,3)): m = Mat2.from_angle(angle, 1) v = Vec2(x, y).norm() v1 = m * v assert v.angle_to(v1, 1) == approx(-angle) v2 = m._1 * v1 assert v2 == v v3 = m._1 * v assert v.angle_to(v3, 1) == approx(angle) def test_imul(): for ms in np.random.uniform(-720,720,(1000,4)): m = Mat2(ms) if abs(m.det()) < 1e-6: continue assert m * m._1 == Mat2.eye() m *= m._1 assert m == Mat2.eye() def test_add1(): for ms in np.random.uniform(-720,720,(1000,5)): m = Mat2(ms[:-1]) m1 = m + ms[-1] m1i = (ms[:-1] + ms[-1]).reshape(2,2) assert m1 == m1i assert ms[-1] + m == (ms[:-1] + ms[-1]).reshape(2,2) def test_add2(): for ms in np.random.uniform(-720,720,(1000,8)): m1 = Mat2(ms[:4]) m2 = Mat2(ms[4:]) assert m1 + m2 == m2 + m1 assert m1 + m2 == (ms[:4] + ms[4:]).reshape(2,2) def test_iadd(): for ms in np.random.uniform(-720,720,(1000,8)): m1 = Mat2(ms[:4]) m2 = Mat2(ms[4:]) m12 = m1 + m2 m1 += m2 assert m12 == m1 assert m1 == (ms[:4] + ms[4:]).reshape(2,2) def test_sub1(): for ms in np.random.uniform(-720,720,(1000,5)): m = Mat2(ms[:-1]) m1 = m - ms[-1] m1i = (ms[:-1] - ms[-1]).reshape(2,2) assert m1 == m1i assert ms[-1] - m == -(ms[:-1] - ms[-1]).reshape(2,2) def test_sub2(): for ms in np.random.uniform(-720,720,(1000,8)): m1 = Mat2(ms[:4]) m2 = Mat2(ms[4:]) assert m1 - m2 == -(m2 - m1) assert m1 - m2 == (ms[:4] - ms[4:]).reshape(2,2) def test_isub(): for ms in np.random.uniform(-720,720,(1000,8)): m1 = Mat2(ms[:4]) m2 = Mat2(ms[4:]) m12 = m1 - m2 m1 -= m2 assert m12 == m1 assert m1 == (ms[:4] - ms[4:]).reshape(2,2) def test_div1(): for ms in np.random.uniform(-720,720,(1000,5)): m = Mat2(ms[:-1]) m1 = m / ms[-1] m1i = (ms[:-1] / ms[-1]).reshape(2,2) assert m1 == m1i def test_div2(): for ms in np.random.uniform(-720,720,(1000,8)): m1 = Mat2(ms[:4]) m2 = Mat2(ms[4:]) assert m1 / m2 == (ms[:4] / ms[4:]).reshape(2,2) def test_idiv(): for ms in np.random.uniform(-720,720,(1000,8)): m1 = Mat2(ms[:4]) m2 = Mat2(ms[4:]) m12 = m1 / m2 m1 /= m2 assert m12 == m1 assert m1 == (ms[:4] / ms[4:]).reshape(2,2)
27.273171
62
0.514398
946
5,591
2.994715
0.095137
0.143311
0.052947
0.090011
0.781504
0.728203
0.728203
0.696788
0.678433
0.642429
0
0.142605
0.291361
5,591
205
63
27.273171
0.572438
0
0
0.474576
0
0
0
0
0
0
0
0
0.440678
1
0.146893
false
0
0.022599
0
0.169492
0
0
0
0
null
0
0
0
0
1
1
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
4
bfeeaef350523448c6cf158714c62a0d2c908669
714
py
Python
ass_tag_parser/draw_struct.py
bubblesub/ass_tag_parser
89bd9ac47aa51a954604c41c6e633c938b2a1d62
[ "MIT" ]
10
2020-04-14T15:58:25.000Z
2022-03-26T05:38:09.000Z
ass_tag_parser/draw_struct.py
rr-/ass_tag_parser
a758a3871b8904879a2588162335aa61863b370e
[ "MIT" ]
4
2019-11-07T15:03:39.000Z
2021-08-04T21:11:20.000Z
ass_tag_parser/draw_struct.py
rr-/ass_tag_parser
a758a3871b8904879a2588162335aa61863b370e
[ "MIT" ]
1
2019-11-07T14:30:56.000Z
2019-11-07T14:30:56.000Z
from dataclasses import dataclass from typing import Optional from ass_tag_parser.common import Meta @dataclass class AssDrawPoint: x: float y: float class AssDrawCmd: meta: Optional[Meta] = None @dataclass class AssDrawCmdMove(AssDrawCmd): pos: AssDrawPoint close: bool @dataclass class AssDrawCmdLine(AssDrawCmd): points: list[AssDrawPoint] @dataclass class AssDrawCmdBezier(AssDrawCmd): points: tuple[AssDrawPoint, AssDrawPoint, AssDrawPoint] @dataclass class AssDrawCmdSpline(AssDrawCmd): points: list[AssDrawPoint] @dataclass class AssDrawCmdExtendSpline(AssDrawCmd): points: list[AssDrawPoint] @dataclass class AssDrawCmdCloseSpline(AssDrawCmd): pass
15.521739
59
0.768908
71
714
7.704225
0.43662
0.179159
0.190128
0.175503
0.252285
0.252285
0
0
0
0
0
0
0.161064
714
45
60
15.866667
0.913189
0
0
0.357143
0
0
0
0
0
0
0
0
0
1
0
true
0.035714
0.107143
0
0.714286
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
0
0
1
0
0
4
870cea4c86e4cc9024721aa610576f983d0f1449
215
py
Python
rurouni/exceptions.py
PinkDiamond1/Kenshin
bb5dfa05f5d10b4bdd1e0403c9e7d3c7e4399fcb
[ "Apache-2.0" ]
219
2016-04-24T10:09:25.000Z
2022-02-02T22:12:17.000Z
rurouni/exceptions.py
PinkDiamond1/Kenshin
bb5dfa05f5d10b4bdd1e0403c9e7d3c7e4399fcb
[ "Apache-2.0" ]
16
2016-04-22T07:45:26.000Z
2018-01-11T03:16:30.000Z
rurouni/exceptions.py
PinkDiamond1/Kenshin
bb5dfa05f5d10b4bdd1e0403c9e7d3c7e4399fcb
[ "Apache-2.0" ]
29
2016-05-12T05:47:34.000Z
2021-11-05T19:19:12.000Z
# coding: utf-8 class RurouniException(Exception): pass class ConfigException(RurouniException): pass class TokenBucketFull(RurouniException): pass class UnexpectedMetric(RurouniException): pass
15.357143
41
0.767442
19
215
8.684211
0.526316
0.163636
0.30303
0
0
0
0
0
0
0
0
0.005556
0.162791
215
14
42
15.357143
0.911111
0.060465
0
0.5
0
0
0
0
0
0
0
0
0
1
0
true
0.5
0
0
0.5
0
1
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
1
0
0
0
0
0
4
8723d146de1810223e1e03f81066a7c04d4f199d
144
py
Python
tests/unit/test_u_wsgi.py
p15r/HYOK-Wrapper
257f29150f2f035e12aa2247d95aac4263e1694b
[ "MIT" ]
2
2020-10-02T13:10:26.000Z
2020-10-12T07:21:55.000Z
tests/unit/test_u_wsgi.py
p15r/HYOK-Wrapper
257f29150f2f035e12aa2247d95aac4263e1694b
[ "MIT" ]
12
2020-10-03T13:59:50.000Z
2020-10-26T20:10:32.000Z
tests/unit/test_u_wsgi.py
p15r/HYOK-Wrapper
257f29150f2f035e12aa2247d95aac4263e1694b
[ "MIT" ]
null
null
null
import wsgi # noqa: F401 def test_connect_to_app(http_client): response = http_client.get('/') assert response.status_code == 404
20.571429
38
0.701389
20
144
4.75
0.85
0.210526
0
0
0
0
0
0
0
0
0
0.051724
0.194444
144
6
39
24
0.767241
0.069444
0
0
0
0
0.007576
0
0
0
0
0
0.25
1
0.25
false
0
0.25
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
1
0
0
0
0
0
0
0
4
87444113cdb71868cffb7577fdd08b827329e23a
333
py
Python
File_Counts.py
juliaviolet/Google_IT_Python_Crash_Course
e48f37f41000bb7fa6cfca197a964b792125067f
[ "MIT" ]
null
null
null
File_Counts.py
juliaviolet/Google_IT_Python_Crash_Course
e48f37f41000bb7fa6cfca197a964b792125067f
[ "MIT" ]
null
null
null
File_Counts.py
juliaviolet/Google_IT_Python_Crash_Course
e48f37f41000bb7fa6cfca197a964b792125067f
[ "MIT" ]
null
null
null
file_counts = {"jpg":10, "txt":14, "csv":2, "py":23} print(file_counts) file_counts["txt"] 14 "jpg" in file_counts True "html" in file_counts False file_counts["cfg"] = 8 print file_counts {"jpg":10, "txt":14, "csv":2, "py":23, "cfg" = 8 } file_counts["csv"]= 17 print file_counts {"jpg":10, "txt":14, "csv":17, "py":23, "cfg" = 8 }
22.2
52
0.633634
61
333
3.311475
0.295082
0.445545
0.193069
0.222772
0.440594
0.440594
0.440594
0.440594
0.277228
0.277228
0
0.099656
0.126126
333
14
53
23.785714
0.594502
0
0
0.142857
0
0
0.165165
0
0
0
0
0
0
0
null
null
0
0
null
null
0.214286
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
1
0
0
0
0
0
0
0
0
4
874e9462e77f3d3d5e37bd23d18ef1dc06f8cc9d
2,704
py
Python
libs/logo.py
Ethical-Hacking-Tools/InstaReport
051bde7b4b24283096c3a050ec7f70019c36994e
[ "MIT" ]
null
null
null
libs/logo.py
Ethical-Hacking-Tools/InstaReport
051bde7b4b24283096c3a050ec7f70019c36994e
[ "MIT" ]
null
null
null
libs/logo.py
Ethical-Hacking-Tools/InstaReport
051bde7b4b24283096c3a050ec7f70019c36994e
[ "MIT" ]
null
null
null
# coding=utf-8 #!/usr/bin/env python3 from libs.animation import colorText logo = ''' [[black-bright-background]][[red]] ██▓ [[green]]███▄ █ [[blue]] ██████ [[magenta]]▄▄▄█████▓ [[cyan]]▄▄▄ [[red]] ██▀███ [[green]]▓█████ [[blue]] ██▓███ [[magenta]]▒█████ [[cyan]]██▀███ [[yellow]]▄▄▄█████▓[[reset]] [[black-bright-background]][[red]]▓██▒ [[green]]██ ▀█ █ ▒[[blue]]██ ▒ [[magenta]]▓ ██▒ ▓▒▒[[cyan]]████▄ [[red]]▓██ ▒ ██▒[[green]]▓█ ▀ [[blue]]▓██░ ██▒▒[[magenta]]██▒ ██▒▓[[cyan]]██ ▒ ██▒[[yellow]]▓ ██▒ ▓▒[[reset]] [[black-bright-background]][[red]]▒██▒▓[[green]]██ ▀█ ██▒░[[blue]] ▓██▄ [[magenta]]▒ ▓██░ ▒░▒[[cyan]]██ ▀█▄ [[red]]▓██ ░▄█ ▒[[green]]▒███ [[blue]]▓██░ ██▓▒▒[[magenta]]██░ ██▒▓[[cyan]]██ ░▄█ ▒[[yellow]]▒ ▓██░ ▒░[[reset]] [[black-bright-background]][[red]]░██░▓[[green]]██▒ ▐▌██▒ [[blue]] ▒ ██▒[[magenta]]░ ▓██▓ ░ ░[[cyan]]██▄▄▄▄██ [[red]]▒██▀▀█▄ [[green]]▒▓█ ▄ [[blue]]▒██▄█▓▒ ▒▒[[magenta]]██ ██░▒[[cyan]]██▀▀█▄ [[yellow]]░ ▓██▓ ░ [[reset]] [[black-bright-background]][[red]]░██░▒[[green]]██░ ▓██░▒[[blue]]██████▒▒[[magenta]] ▒██▒ ░ [[cyan]]▓█ ▓██▒ [[red]]░██▓ ▒██▒[[green]]░▒████▒[[blue]]▒██▒ ░ ░░[[magenta]] ████▓▒░░[[cyan]]██▓ ▒██▒[[yellow]] ▒██▒ ░ [[reset]] [[black-bright-background]][[red]]░▓ ░[[green]] ▒░ ▒ ▒ ▒[[blue]] ▒▓▒ ▒ ░[[magenta]] ▒ ░░ [[cyan]]▒▒ ▓▒█░ [[red]]░ ▒▓ ░▒▓░[[green]]░░ ▒░ ░[[blue]]▒▓▒░ ░ ░░[[magenta]] ▒░▒░▒░ ░[[cyan]] ▒▓ ░▒▓░[[yellow]] ▒ ░░ [[reset]] [[black-bright-background]][[red]] ▒ ░░[[green]] ░░ ░ ▒░░[[blue]] ░▒ ░ ░[[magenta]] ░ [[cyan]] ▒ ▒▒ ░ [[red]] ░▒ ░ ▒░[[green]] ░ ░ ░[[blue]]░▒ ░ [[magenta]] ░ ▒ ▒░ [[cyan]] ░▒ ░ ▒░[[yellow]] ░ [[reset]] [[black-bright-background]][[red]] ▒ ░ [[green]] ░ ░ ░ ░[[blue]] ░ ░ [[magenta]] ░ [[cyan]] ░ ▒ [[red]] ░░ ░ [[green]] ░ [[blue]]░░ ░[[magenta]] ░ ░ ▒ [[cyan]] ░░ ░ [[yellow]] ░ [[reset]] [[black-bright-background]][[red]] ░ [[green]] ░ [[blue]] ░ [[magenta]] [[cyan]] ░ ░ [[red]] ░ [[green]] ░ ░[[blue]] [[magenta]] ░ ░ [[cyan]] ░ [[yellow]] [[reset]] [[black-bright-background]][[white]]Codded By Crevil[[reset]] [[black]]Version :- 2.01[[reset]] [[red]]Youtube :- [[blue]]@Crevil[[reset]] [[red]]Telegram :- [[blue]]@HackerExploits[[reset]] ''' def print_logo(): print(colorText(logo))
100.148148
231
0.339867
367
2,704
3.790191
0.269755
0.017254
0.150971
0.155284
0.199856
0.117182
0.051761
0
0
0
0
0.002556
0.276627
2,704
27
232
100.148148
0.466769
0.012204
0
0
0
0.5
0.961786
0.208854
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.111111
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
1
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
5e5ff7d9f69e16d5c8e955d1ac93518ac90e2cc4
26
py
Python
code/pyto/analysis/test/all_catalogs/catalog_3.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
12
2020-01-08T01:33:02.000Z
2022-03-16T00:25:34.000Z
code/pyto/analysis/test/all_catalogs/catalog_3.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
8
2019-12-19T19:34:56.000Z
2022-03-10T10:11:28.000Z
code/pyto/analysis/test/all_catalogs/catalog_3.py
anmartinezs/pyseg_system
5bb07c7901062452a34b73f376057cabc15a13c3
[ "Apache-2.0" ]
2
2022-03-30T13:12:22.000Z
2022-03-30T18:12:10.000Z
../catalogs_a/catalog_3.py
26
26
0.807692
5
26
3.8
1
0
0
0
0
0
0
0
0
0
0
0.038462
0
26
1
26
26
0.692308
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
4
5e62135edf27d602b721a65c5cc50ec1d021b600
285
py
Python
didcomm/common/utils.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
8
2021-09-04T19:28:18.000Z
2021-12-22T16:00:18.000Z
didcomm/common/utils.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
4
2021-07-27T23:44:33.000Z
2021-10-13T13:29:39.000Z
didcomm/common/utils.py
alex-polosky/didcomm-python
955866024c9f6191df9c5a898cc77e1979781eae
[ "Apache-2.0" ]
7
2021-07-22T08:19:13.000Z
2022-01-04T14:46:38.000Z
from typing import Iterable, Callable, Optional, Any # TODO check the same helper in standard lib # TODO test def search_first_in_iterable( it: Iterable, cond: Callable, not_found_default=None ) -> Optional[Any]: return next((el for el in it if cond(el)), not_found_default)
28.5
65
0.747368
45
285
4.577778
0.666667
0.106796
0.145631
0
0
0
0
0
0
0
0
0
0.168421
285
9
66
31.666667
0.869198
0.182456
0
0
0
0
0
0
0
0
0
0.111111
0
1
0.2
false
0
0.2
0.2
0.6
0
0
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
0
0
0
0
1
1
0
0
4
5e7a2ea7e1dce82bc6f6c129b495743ed0e175dd
224
py
Python
package/Y.py
onnoeberhard/scipro-primer-notebooks
e9cf1069d62f8c50549d9912403c640f08a99392
[ "MIT" ]
16
2019-04-18T13:35:42.000Z
2021-09-05T21:01:06.000Z
package/Y.py
onnoeberhard/scipro-primer-notebooks
e9cf1069d62f8c50549d9912403c640f08a99392
[ "MIT" ]
1
2021-02-15T16:26:00.000Z
2021-02-15T16:26:00.000Z
package/Y.py
onnoeberhard/scipro-primer-notebooks
e9cf1069d62f8c50549d9912403c640f08a99392
[ "MIT" ]
17
2018-09-30T07:35:00.000Z
2021-08-28T19:15:09.000Z
class Y: def __init__(self, v0): self.v0 = v0 self.g = 9.81 def value(self, t): return self.v0*t - 0.5*self.g*t**2 def formula(self): return "v0*t - 0.5*g*t**2; v0=%g" % self.v0
20.363636
51
0.495536
42
224
2.547619
0.380952
0.224299
0.074766
0.093458
0
0
0
0
0
0
0
0.10596
0.325893
224
10
52
22.4
0.602649
0
0
0
0
0
0.107143
0
0
0
0
0
0
1
0.375
false
0
0
0.25
0.75
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
4
5e7f0c2f4ced84031cd811e035656325a60735b2
884
py
Python
kinesis/serializers.py
graphyteai/async-kinesis
b4ad760e1b084f54b7e78148dbbe6abf00c44b19
[ "Apache-2.0" ]
17
2019-06-20T14:33:51.000Z
2021-12-20T14:28:39.000Z
kinesis/serializers.py
graphyteai/async-kinesis
b4ad760e1b084f54b7e78148dbbe6abf00c44b19
[ "Apache-2.0" ]
15
2020-05-27T03:50:55.000Z
2022-02-14T20:50:39.000Z
kinesis/serializers.py
graphyteai/async-kinesis
b4ad760e1b084f54b7e78148dbbe6abf00c44b19
[ "Apache-2.0" ]
12
2019-09-04T11:16:26.000Z
2022-02-14T17:06:43.000Z
try: import ujson as json except ModuleNotFoundError: # https://github.com/python/mypy/issues/1153 (mypy bug with try/except conditional imports) import json # type: ignore try: import msgpack except ModuleNotFoundError: pass class Serializer: pass class StringSerializer(Serializer): def serialize(self, item): return str(item).encode("utf-8") def deserialize(self, data): return data.decode("utf-8") class JsonSerializer(Serializer): def serialize(self, item): return json.dumps(item).encode("utf-8") def deserialize(self, data): return json.loads(data.decode("utf-8")) class MsgpackSerializer(Serializer): def serialize(self, item): result = msgpack.packb(item, use_bin_type=True) return result def deserialize(self, data): return msgpack.unpackb(data, raw=False)
22.1
95
0.680995
108
884
5.555556
0.453704
0.026667
0.11
0.13
0.42
0.26
0.14
0.14
0.14
0
0
0.011478
0.211538
884
39
96
22.666667
0.849354
0.115385
0
0.461538
0
0
0.025674
0
0
0
0
0
0
1
0.230769
false
0.076923
0.115385
0.192308
0.730769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
1
1
0
0
4
5eb103b20a3f39de88460c4a6decebedc719548b
51
py
Python
src/pipeline/__init__.py
euranova/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
6
2021-09-17T02:09:29.000Z
2022-03-20T04:15:15.000Z
src/pipeline/__init__.py
Jason-Xu-Ncepu/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
null
null
null
src/pipeline/__init__.py
Jason-Xu-Ncepu/DAEMA
29fec157c34afcc9abe95bc602a3012615b3c36b
[ "MIT" ]
4
2021-06-29T22:57:18.000Z
2022-03-09T09:19:17.000Z
""" Contains the pipeline used to test models. """
25.5
50
0.686275
7
51
5
1
0
0
0
0
0
0
0
0
0
0
0
0.176471
51
1
51
51
0.833333
0.823529
0
null
0
null
0
0
null
0
0
0
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
0
0
0
0
1
0
0
0
0
0
0
4
5ebf381a379c6a121f8f5413969634f97d6a2668
263
py
Python
validadores/regras/valor.py
mayronceccon/olist-python-labs-project
217188212158ba2401866e06173d762e346ebeee
[ "MIT" ]
null
null
null
validadores/regras/valor.py
mayronceccon/olist-python-labs-project
217188212158ba2401866e06173d762e346ebeee
[ "MIT" ]
null
null
null
validadores/regras/valor.py
mayronceccon/olist-python-labs-project
217188212158ba2401866e06173d762e346ebeee
[ "MIT" ]
null
null
null
from .regra import Regra class Valor(Regra): def __init__(self, valor): self.__valor = float(valor) def is_valid(self): if type(self.__valor) is not float and type(self.__valor) is not int: raise Exception('Valor inválido')
23.909091
77
0.65019
37
263
4.324324
0.513514
0.225
0.1625
0.1875
0.225
0
0
0
0
0
0
0
0.250951
263
10
78
26.3
0.812183
0
0
0
0
0
0.053232
0
0
0
0
0
0
1
0.285714
false
0
0.142857
0
0.571429
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
0
1
0
0
4
5ec62c30a034128c3c15a108e434ab6f4d99a322
216
py
Python
plugins/espcms_cms.py
cflq3/getcms
6cf07da0ea3ec644866df715cff1f311a46ee378
[ "MIT" ]
22
2016-09-01T08:27:07.000Z
2021-01-11T13:32:59.000Z
plugins/espcms_cms.py
cflq3/getcms
6cf07da0ea3ec644866df715cff1f311a46ee378
[ "MIT" ]
null
null
null
plugins/espcms_cms.py
cflq3/getcms
6cf07da0ea3ec644866df715cff1f311a46ee378
[ "MIT" ]
20
2015-11-07T19:09:48.000Z
2018-05-02T03:10:41.000Z
#!/usr/bin/env python # encoding: utf-8 def run(whatweb, pluginname): whatweb.recog_from_content(pluginname, "espcms") whatweb.recog_from_file(pluginname, "templates/wap/cn/public/footer.html", "espcms")
21.6
88
0.736111
29
216
5.344828
0.758621
0.154839
0.206452
0
0
0
0
0
0
0
0
0.005236
0.115741
216
9
89
24
0.806283
0.166667
0
0
0
0
0.267045
0.198864
0
0
0
0
0
1
0.333333
false
0
0
0
0.333333
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
1
0
0
0
0
0
0
0
4
5ec64e7203ff5e47285eff2de68b2cba358d3dc6
116
py
Python
examples/02_current_price.py
sharebook-kr/coinonepy
9d946a20d2228f90f3fe8dfb557e16a4ce214151
[ "MIT" ]
2
2021-08-31T09:06:05.000Z
2021-12-03T12:26:49.000Z
examples/02_current_price.py
sharebook-kr/coinonepy
9d946a20d2228f90f3fe8dfb557e16a4ce214151
[ "MIT" ]
null
null
null
examples/02_current_price.py
sharebook-kr/coinonepy
9d946a20d2228f90f3fe8dfb557e16a4ce214151
[ "MIT" ]
1
2021-12-03T12:26:50.000Z
2021-12-03T12:26:50.000Z
import coinonepy btc = coinonepy.get_current_price("btc") btc_last_price = float(btc['last']) print(btc_last_price)
23.2
40
0.793103
18
116
4.777778
0.5
0.244186
0.27907
0
0
0
0
0
0
0
0
0
0.077586
116
5
41
23.2
0.803738
0
0
0
0
0
0.059829
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
1
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
0d5ad59ba224418983bf8048ad6cf393b546dc31
738
py
Python
tests/core/sdo/tests.py
aceofwings/Cantactular
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
3
2017-01-26T01:37:42.000Z
2018-07-22T02:42:52.000Z
tests/core/sdo/tests.py
aceofwings/Cantactular
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
1
2017-07-07T18:02:20.000Z
2017-07-07T18:02:20.000Z
tests/core/sdo/tests.py
aceofwings/Evt-Gateway
a6eb8d7128fd1388d3e75c1a8415123d1d5930e1
[ "MIT" ]
null
null
null
# import unittest # import os # from gateway.can.sdo.message import SdoMessage # from gateway.can.sdo.message import CommandByte # class TestSdoMessage(unittest.TestCase): # def setUp(self): # self.sdoMessage = SdoMessage.getMessege(0x1018,0x01,0x00) # self.anotherMessage = SdoMessage.getMessege(0x2220,0x00,0x00) # # self.rawUpload = b'@\x18\x10\x02\x02\x00\x00\x00\x00\x00\x00\x00' # self.rawDownload = b'+\x18\x10\x01\x00\x00\x00\x00\x00\x00\x00\x00' # # def tearDown(self): # pass # def test_toBytes(self): # """Translate the SDO message correctly""" # pass # def test_init(self): # """See if intialize will have correct default value""" # pass
35.142857
77
0.650407
94
738
5.085106
0.489362
0.16318
0.207113
0.225941
0.219665
0.219665
0.094142
0
0
0
0
0.113793
0.214092
738
20
78
36.9
0.710345
0.944444
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
0
0
0
null
0
1
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
0
0
0
0
0
4