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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b4c4038a3308f8697d2757379164d05fc514e95c
| 329
|
py
|
Python
|
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/template/devicenotfound.py
|
jbronikowski/genielibs
|
200a34e5fe4838a27b5a80d5973651b2e34ccafb
|
[
"Apache-2.0"
] | 94
|
2018-04-30T20:29:15.000Z
|
2022-03-29T13:40:31.000Z
|
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/template/devicenotfound.py
|
jbronikowski/genielibs
|
200a34e5fe4838a27b5a80d5973651b2e34ccafb
|
[
"Apache-2.0"
] | 67
|
2018-12-06T21:08:09.000Z
|
2022-03-29T18:00:46.000Z
|
pkgs/sdk-pkg/src/genie/libs/sdk/triggers/template/devicenotfound.py
|
jbronikowski/genielibs
|
200a34e5fe4838a27b5a80d5973651b2e34ccafb
|
[
"Apache-2.0"
] | 49
|
2018-06-29T18:59:03.000Z
|
2022-03-10T02:07:59.000Z
|
''' triggerNoDevice template '''
# import ats
from ats import aetest
# import genie infra
from genie.harness.base import Trigger
@aetest.skip(reason='The device provided does not exist in the testbed yaml')
class TriggerDeviceNotFound(Trigger):
''' Trigger that is used when a device is not found '''
pass
| 25.307692
| 78
| 0.717325
| 44
| 329
| 5.363636
| 0.704545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.203647
| 329
| 12
| 79
| 27.416667
| 0.900763
| 0.319149
| 0
| 0
| 0
| 0
| 0.272727
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.2
| 0.4
| 0
| 0.6
| 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
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
b4e0eda7aff8f8e1dfbe6f35b1f2227d00e1e5c6
| 93
|
py
|
Python
|
Professor/apps.py
|
AlirezAkbary/FeedbackSys
|
250acd75d4b903cc647ed86aab7b1a22909a056e
|
[
"bzip2-1.0.6"
] | null | null | null |
Professor/apps.py
|
AlirezAkbary/FeedbackSys
|
250acd75d4b903cc647ed86aab7b1a22909a056e
|
[
"bzip2-1.0.6"
] | null | null | null |
Professor/apps.py
|
AlirezAkbary/FeedbackSys
|
250acd75d4b903cc647ed86aab7b1a22909a056e
|
[
"bzip2-1.0.6"
] | null | null | null |
from django.apps import AppConfig
class ProfessorConfig(AppConfig):
name = 'Professor'
| 15.5
| 33
| 0.763441
| 10
| 93
| 7.1
| 0.9
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.16129
| 93
| 5
| 34
| 18.6
| 0.910256
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 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
|
b4e11219f84b56e1c59bf70993aeeaee2ec4d893
| 156
|
py
|
Python
|
octopus/config/cli.py
|
tuub/magnificent-octopus
|
62722fbb9eecd0f6727b4d9cc0ef3b732b4702d9
|
[
"Apache-2.0"
] | null | null | null |
octopus/config/cli.py
|
tuub/magnificent-octopus
|
62722fbb9eecd0f6727b4d9cc0ef3b732b4702d9
|
[
"Apache-2.0"
] | null | null | null |
octopus/config/cli.py
|
tuub/magnificent-octopus
|
62722fbb9eecd0f6727b4d9cc0ef3b732b4702d9
|
[
"Apache-2.0"
] | 2
|
2019-12-17T14:55:17.000Z
|
2020-02-03T12:35:24.000Z
|
# command names and paths to scripts that can be run through the standard runner
CLI_SCRIPTS = {
"usermod" : "octopus.modules.account.scripts.UserMod"
}
| 39
| 80
| 0.75641
| 22
| 156
| 5.318182
| 0.863636
| 0.239316
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.160256
| 156
| 4
| 81
| 39
| 0.89313
| 0.5
| 0
| 0
| 0
| 0
| 0.597403
| 0.506494
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b4fe641adcfd5f86324a5bba15569fe6b8a12c45
| 167
|
py
|
Python
|
django_decadence/urls.py
|
ksiazkowicz/django-decadence
|
0a29a7c748feb0d98cb8f4783a93159fc290ea67
|
[
"MIT"
] | 1
|
2019-08-26T11:30:02.000Z
|
2019-08-26T11:30:02.000Z
|
django_decadence/urls.py
|
ksiazkowicz/django-decadence
|
0a29a7c748feb0d98cb8f4783a93159fc290ea67
|
[
"MIT"
] | null | null | null |
django_decadence/urls.py
|
ksiazkowicz/django-decadence
|
0a29a7c748feb0d98cb8f4783a93159fc290ea67
|
[
"MIT"
] | 1
|
2021-02-21T13:30:16.000Z
|
2021-02-21T13:30:16.000Z
|
from django.conf.urls import url
from django_decadence.views import generate_html
urlpatterns = [
url(r'^template/$', generate_html, name='decadence_template'),
]
| 27.833333
| 66
| 0.772455
| 22
| 167
| 5.681818
| 0.636364
| 0.16
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.113772
| 167
| 6
| 67
| 27.833333
| 0.844595
| 0
| 0
| 0
| 1
| 0
| 0.172619
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.4
| 0
| 0.4
| 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
|
370026e77123f47c6a6119bf3d1dd713eaf1aee8
| 241
|
py
|
Python
|
rachis/urls.py
|
codeliezel/rachis
|
930aab4e5693afc080d21a4a2c6c9d8833895591
|
[
"MIT"
] | null | null | null |
rachis/urls.py
|
codeliezel/rachis
|
930aab4e5693afc080d21a4a2c6c9d8833895591
|
[
"MIT"
] | 6
|
2021-03-30T14:03:01.000Z
|
2021-09-22T19:30:22.000Z
|
rachis/urls.py
|
feobaby/rachis
|
930aab4e5693afc080d21a4a2c6c9d8833895591
|
[
"MIT"
] | null | null | null |
from django.urls import path, include
urlpatterns = [
path('api/', include(('rachis.apps.authentication.urls'), namespace='auth')),
path('api/', include(('rachis.apps.resource.urls'), namespace='resources')),
]
| 40.166667
| 81
| 0.626556
| 25
| 241
| 6.04
| 0.6
| 0.092715
| 0.18543
| 0.264901
| 0.317881
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.186722
| 241
| 6
| 82
| 40.166667
| 0.770408
| 0
| 0
| 0
| 0
| 0
| 0.318182
| 0.231405
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
37004fcc0ea3c0f029aeaf120617f4bb43514a4c
| 131
|
py
|
Python
|
HelloWorld/Python01/_hello/math.py
|
grtlinux/KieaPython
|
5539a9e3625864aa20624b8d684dbe5828dac3d1
|
[
"Apache-2.0"
] | 1
|
2022-01-29T08:32:11.000Z
|
2022-01-29T08:32:11.000Z
|
HelloWorld/Python01/_hello/math.py
|
grtlinux/KieaPython
|
5539a9e3625864aa20624b8d684dbe5828dac3d1
|
[
"Apache-2.0"
] | null | null | null |
HelloWorld/Python01/_hello/math.py
|
grtlinux/KieaPython
|
5539a9e3625864aa20624b8d684dbe5828dac3d1
|
[
"Apache-2.0"
] | 1
|
2022-01-29T08:32:12.000Z
|
2022-01-29T08:32:12.000Z
|
# file: math.py
import math
print dir(math)
print math.pi
print math.e
print math.sin(1.0)
print math.sqrt(2)
| 8.733333
| 20
| 0.618321
| 23
| 131
| 3.521739
| 0.565217
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.031579
| 0.274809
| 131
| 14
| 21
| 9.357143
| 0.821053
| 0.099237
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.166667
| null | null | 0.833333
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
2e94e5d2395226d2ff65a4269164cce333e5de2e
| 624
|
py
|
Python
|
test_murls.py
|
cyberbikepunk/murls
|
cf1513d48bc22e9c2b5dedb44f6f3bcb306b2b7a
|
[
"Apache-2.0"
] | null | null | null |
test_murls.py
|
cyberbikepunk/murls
|
cf1513d48bc22e9c2b5dedb44f6f3bcb306b2b7a
|
[
"Apache-2.0"
] | null | null | null |
test_murls.py
|
cyberbikepunk/murls
|
cf1513d48bc22e9c2b5dedb44f6f3bcb306b2b7a
|
[
"Apache-2.0"
] | null | null | null |
""" Test suite for the murls module. """
from murls import http, https
def test_init():
assert http('site.com') == 'http://site.com'
assert https('site.com') == 'https://site.com'
def test_path():
url = http('site.com')
assert url.path('foo', 'bar') == 'http://site.com/foo/bar'
assert url.path('foo') == 'http://site.com/foo'
def test_query():
url = http('site.com')
assert url.query(foo='bar', bar='foo') == 'http://site.com?foo=bar&bar=foo' or 'http://site.com?bar=foo&foo=bar'
assert url.query(foo='foo') == 'http://site.com?foo=foo&bar=foo' or 'http://site.com?bar=foo&foo=foo'
| 27.130435
| 116
| 0.610577
| 102
| 624
| 3.705882
| 0.205882
| 0.222222
| 0.291005
| 0.148148
| 0.457672
| 0.269841
| 0.148148
| 0.148148
| 0.148148
| 0
| 0
| 0
| 0.153846
| 624
| 22
| 117
| 28.363636
| 0.715909
| 0.051282
| 0
| 0.166667
| 0
| 0
| 0.423671
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.25
| false
| 0
| 0.083333
| 0
| 0.333333
| 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
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
2e9b0902b8ab0f4aafd4c3b634b553887c0cdcba
| 19,257
|
py
|
Python
|
workflows/api/tests.py
|
xflows/clowdflows-backend
|
9fae3a27d16035147bebac6efcd7617aec35e0f3
|
[
"MIT"
] | 4
|
2017-12-13T10:59:42.000Z
|
2019-11-03T17:26:19.000Z
|
workflows/api/tests.py
|
xflows/clowdflows-backend
|
9fae3a27d16035147bebac6efcd7617aec35e0f3
|
[
"MIT"
] | 21
|
2017-04-05T08:03:54.000Z
|
2022-03-11T23:16:03.000Z
|
workflows/api/tests.py
|
xflows/clowdflows-backend
|
9fae3a27d16035147bebac6efcd7617aec35e0f3
|
[
"MIT"
] | null | null | null |
from django.contrib.auth.models import User
from rest_framework.reverse import reverse
from rest_framework import status
from rest_framework.test import APITestCase
from workflows.models import Workflow, Widget, Input
TEST_USERNAME = 'testuser'
TEST_PASSWORD = '123'
# Test workflow ids
TEST_WORKFLOW_USERS_PK = 2
TEST_WORKFLOW_OTHER_USER_PRIVATE_PK = 4
TEST_WORKFLOW_OTHER_USER_PUBLIC_PK = 6
TEST_OUTPUT_PK = 9
# Test widget ids
TEST_WIDGET_USERS_PK = 6
TEST_WIDGET_OTHER_USER_PRIVATE_PK = 33
TEST_WIDGET_OTHER_USER_PUBLIC_PK = 34
# Test widget parameters
TEST_PARAMETER_USERS_PK = 10
TEST_PARAMETER_OTHER_USER_PRIVATE_PK = 98
TEST_PARAMETER_OTHER_USER_PUBLIC_PK = 99
class BaseAPITestCase(APITestCase):
fixtures = ['test_data_api', ]
def _login(self):
self.client.login(username=TEST_USERNAME, password=TEST_PASSWORD)
def _logout(self):
self.client.logout()
def _test_multiple_response_codes(self, verb, urls, codes, data=None):
for url, code in zip(urls, codes):
response = verb(url, data) if data else verb(url)
self.assertEqual(response.status_code, code)
class SupportingAPITests(BaseAPITestCase):
def test_register(self):
url = reverse('user-create')
response = self.client.post(url, {
'username': 'testuser3',
'password': '123',
'email': 'testuser3@testdomain.com'
})
self.assertEqual(response.status_code, 200)
self.assertEqual(User.objects.filter(username='testuser3').count(), 1)
def test_login(self):
url = reverse('token-create')
response = self.client.post(url, {
'username': 'testuser',
'password': '123'
})
self.assertEqual(response.status_code, 200)
def test_logout(self):
url = reverse('token-destroy')
self._login()
response = self.client.post(url) # HTTP_AUTHORIZATION="Token %s" % auth_token)
self.assertEqual(response.status_code, 204)
def test_widget_library(self):
url = reverse('widget-library-list')
# Test without authentication - this should fail
response = self.client.get(url)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
response = self.client.get(url)
self.assertEqual(response.status_code, status.HTTP_200_OK)
self._logout()
class WorkflowAPITests(BaseAPITestCase):
def test_create(self):
url = reverse('workflow-list')
workflow_data = {
'name': 'Untitled workflow',
'is_public': False,
'description': '',
'widget': None,
'template_parent': None
}
# Test without authentication - this should not be allowed
response = self.client.post(url, workflow_data)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
response = self.client.post(url, workflow_data)
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
self._logout()
def test_patch(self):
url = reverse('workflow-detail', kwargs={'pk': TEST_WORKFLOW_USERS_PK})
url_other_user_private = reverse('workflow-detail', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PRIVATE_PK})
url_other_user_public = reverse('workflow-detail', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PUBLIC_PK})
workflowData = {
'name': 'Test workflow',
'is_public': True,
'description': 'Test description'
}
# Test without authentication - this should not be allowed
response = self.client.patch(url, workflowData)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
response = self.client.patch(url, workflowData)
updated_workflow = response.data
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(updated_workflow['name'], 'Test workflow')
self.assertEqual(updated_workflow['is_public'], True)
self.assertEqual(updated_workflow['description'], 'Test description')
# Try to patch
self._test_multiple_response_codes(
self.client.patch,
[url_other_user_private, url_other_user_public],
[status.HTTP_403_FORBIDDEN, status.HTTP_403_FORBIDDEN],
data=workflowData
)
self._logout()
def test_delete(self):
url = reverse('workflow-detail', kwargs={'pk': TEST_WORKFLOW_USERS_PK})
url_other_user_private = reverse('workflow-detail', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PRIVATE_PK})
url_other_user_public = reverse('workflow-detail', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PUBLIC_PK})
# Test without authentication - this should not be allowed
response = self.client.delete(url)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
self._test_multiple_response_codes(
self.client.delete,
[url, url_other_user_private, url_other_user_public],
[status.HTTP_204_NO_CONTENT, status.HTTP_403_FORBIDDEN, status.HTTP_403_FORBIDDEN]
)
self._logout()
def test_reset(self):
url = reverse('workflow-reset', kwargs={'pk': TEST_WORKFLOW_USERS_PK})
url_other_user_private = reverse('workflow-reset', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PRIVATE_PK})
url_other_user_public = reverse('workflow-reset', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PUBLIC_PK})
# Test without authentication - this should not be allowed
response = self.client.post(url)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
response = self.client.post(url, format="json")
data = response.json()
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(data['status'], 'ok')
workflow = Workflow.objects.get(pk=TEST_WORKFLOW_USERS_PK)
for widget in workflow.widgets.all():
self.assertEqual(widget.finished, False)
self.assertEqual(widget.error, False)
self.assertEqual(widget.running, False)
self._test_multiple_response_codes(
self.client.post,
[url_other_user_private, url_other_user_public],
[status.HTTP_403_FORBIDDEN, status.HTTP_403_FORBIDDEN]
)
self._logout()
def test_run(self):
url = reverse('workflow-run', kwargs={'pk': TEST_WORKFLOW_USERS_PK})
url_other_user_private = reverse('workflow-run', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PRIVATE_PK})
url_other_user_public = reverse('workflow-run', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PUBLIC_PK})
# Test without authentication - this should not be allowed
response = self.client.post(url)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
response = self.client.post(url, format="json")
# data = response.json()
self.assertEqual(response.status_code, status.HTTP_200_OK)
# self.assertEqual(data['status'], 'ok')
workflow = Workflow.objects.get(pk=TEST_WORKFLOW_USERS_PK)
for widget in workflow.widgets.all():
self.assertEqual(widget.finished, True)
self._test_multiple_response_codes(
self.client.post,
[url_other_user_private, url_other_user_public],
[status.HTTP_403_FORBIDDEN, status.HTTP_403_FORBIDDEN]
)
self._logout()
def test_subprocess(self):
url = reverse('workflow-subprocess', kwargs={'pk': TEST_WORKFLOW_USERS_PK})
url_other_user_private = reverse('workflow-subprocess', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PRIVATE_PK})
url_other_user_public = reverse('workflow-subprocess', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PUBLIC_PK})
# Test without authentication - this should not be allowed
response = self.client.post(url)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
response = self.client.post(url, format="json")
widget = response.json()
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(widget['type'], 'subprocess')
self._test_multiple_response_codes(
self.client.post,
[url_other_user_private, url_other_user_public],
[status.HTTP_403_FORBIDDEN, status.HTTP_403_FORBIDDEN]
)
# Get subprocess workflow object
subprocess_workflow = Widget.objects.get(pk=widget['id']).workflow_link
# Test adding input
url = reverse('workflow-subprocess-input', kwargs={'pk': subprocess_workflow.pk})
response = self.client.post(url)
widget = response.json()
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(widget['type'], 'input')
# Test adding output
url = reverse('workflow-subprocess-output', kwargs={'pk': subprocess_workflow.pk})
response = self.client.post(url)
widget = response.json()
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertEqual(widget['type'], 'output')
self._logout()
def test_subprocess_forloop(self):
url = reverse('workflow-subprocess', kwargs={'pk': TEST_WORKFLOW_USERS_PK})
self._login()
# First add a subprocess
response = self.client.post(url)
widget = response.json()
subprocess_workflow = Widget.objects.get(pk=widget['id']).workflow_link
# Test adding for loop widgets
url = reverse('workflow-subprocess-forloop', kwargs={'pk': subprocess_workflow.pk})
response = self.client.post(url)
data = response.json()
self.assertNotIn('status', data)
widget_types = {w['type'] for w in data}
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertSetEqual(widget_types, {'for_input', 'for_output'})
self._logout()
def test_subprocess_xvalidation(self):
url = reverse('workflow-subprocess', kwargs={'pk': TEST_WORKFLOW_USERS_PK})
self._login()
# First add a subprocess
response = self.client.post(url)
data = response.json()
self.assertNotIn('status', data)
subprocess_workflow = Widget.objects.get(pk=data['id']).workflow_link
# Test adding cross validation widgets
url = reverse('workflow-subprocess-xvalidation', kwargs={'pk': subprocess_workflow.pk})
response = self.client.post(url)
widgets = response.json()
widget_types = {w['type'] for w in widgets}
self.assertEqual(response.status_code, status.HTTP_200_OK)
self.assertSetEqual(widget_types, {'cv_input', 'cv_output'})
self._logout()
class WidgetAPITests(BaseAPITestCase):
def test_fetch_value(self):
url = reverse('output-value', kwargs={'pk': TEST_OUTPUT_PK})
self._login()
response = self.client.get(url)
data = response.json()
self.assertEqual(data['value'], '5')
def test_create(self):
url = reverse('widget-list')
workflow_url = reverse('workflow-detail', kwargs={'pk': TEST_WORKFLOW_USERS_PK})
workflow_url_private = reverse('workflow-detail', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PRIVATE_PK})
workflow_url_public = reverse('workflow-detail', kwargs={'pk': TEST_WORKFLOW_OTHER_USER_PUBLIC_PK})
widget_data = {
'workflow': workflow_url,
'x': 50,
'y': 50,
'name': 'Test widget',
'abstract_widget': 3, # Multiply integers abstract widget
'finished': False,
'error': False,
'running': False,
'interaction_waiting': False,
'type': 'regular',
'progress': 0
}
# Test without authentication - this should not be allowed
response = self.client.post(url, widget_data)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
response = self.client.post(url, widget_data)
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
# Test on other user's workflows
widget_data['workflow'] = workflow_url_private
response = self.client.post(url, widget_data)
self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
widget_data['workflow'] = workflow_url_public
response = self.client.post(url, widget_data)
self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
self._logout()
def test_patch(self):
widget_url = reverse('widget-detail', kwargs={'pk': TEST_WIDGET_USERS_PK})
widget_url_private = reverse('widget-detail', kwargs={'pk': TEST_WIDGET_OTHER_USER_PRIVATE_PK})
widget_url_public = reverse('widget-detail', kwargs={'pk': TEST_WIDGET_OTHER_USER_PUBLIC_PK})
widget_data = {
'x': 12,
'y': 34,
'name': 'Test name'
}
# Test without authentication - this should not be allowed
response = self.client.patch(widget_url, widget_data)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
response = self.client.patch(widget_url, widget_data)
self.assertEqual(response.status_code, status.HTTP_200_OK)
widget = Widget.objects.get(pk=TEST_WIDGET_USERS_PK)
self.assertEqual(widget.x, widget_data['x'])
self.assertEqual(widget.y, widget_data['y'])
self.assertEqual(widget.name, widget_data['name'])
# Test on other user's widgets
response = self.client.patch(widget_url_private, widget_data)
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
response = self.client.patch(widget_url_public, widget_data)
self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
self._logout()
def test_reset(self):
widget_url = reverse('widget-reset', kwargs={'pk': TEST_WIDGET_USERS_PK})
widget_url_private = reverse('widget-reset', kwargs={'pk': TEST_WIDGET_OTHER_USER_PRIVATE_PK})
widget_url_public = reverse('widget-reset', kwargs={'pk': TEST_WIDGET_OTHER_USER_PUBLIC_PK})
# Test without authentication - this should not be allowed
response = self.client.post(widget_url)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
response = self.client.post(widget_url)
self.assertEqual(response.status_code, status.HTTP_200_OK)
widget = Widget.objects.get(pk=TEST_WIDGET_USERS_PK)
self.assertEqual(widget.finished, False)
# Test on other user's widgets
response = self.client.post(widget_url_private)
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
response = self.client.post(widget_url_public)
self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
self._logout()
def test_run(self):
widget_url = reverse('widget-run', kwargs={'pk': TEST_WIDGET_USERS_PK})
widget_reset_url = reverse('widget-reset', kwargs={'pk': TEST_WIDGET_USERS_PK})
widget_url_private = reverse('widget-run', kwargs={'pk': TEST_WIDGET_OTHER_USER_PRIVATE_PK})
widget_url_public = reverse('widget-run', kwargs={'pk': TEST_WIDGET_OTHER_USER_PUBLIC_PK})
# Test without authentication - this should not be allowed
response = self.client.post(widget_url)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
# First reset the widget
response = self.client.post(widget_reset_url)
self.assertEqual(response.status_code, status.HTTP_200_OK)
widget = Widget.objects.get(pk=TEST_WIDGET_USERS_PK)
self.assertEqual(widget.finished, False)
# .. then run
response = self.client.post(widget_url)
self.assertEqual(response.status_code, status.HTTP_200_OK)
widget = Widget.objects.get(pk=TEST_WIDGET_USERS_PK)
self.assertEqual(widget.finished, True)
# Test on other user's widgets
response = self.client.post(widget_url_private)
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
response = self.client.post(widget_url_public)
self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
self._logout()
def test_delete(self):
widget_url = reverse('widget-detail', kwargs={'pk': TEST_WIDGET_USERS_PK})
widget_url_private = reverse('widget-detail', kwargs={'pk': TEST_WIDGET_OTHER_USER_PRIVATE_PK})
widget_url_public = reverse('widget-detail', kwargs={'pk': TEST_WIDGET_OTHER_USER_PUBLIC_PK})
# Test without authentication - this should not be allowed
response = self.client.delete(widget_url)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
response = self.client.delete(widget_url)
self.assertEqual(response.status_code, status.HTTP_200_OK)
widget_count = Widget.objects.filter(pk=TEST_WIDGET_USERS_PK).count()
self.assertEqual(widget_count, 0)
# Test on other user's widgets
response = self.client.delete(widget_url_private)
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
response = self.client.delete(widget_url_public)
self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
self._logout()
def test_save_parameters(self):
widget_url = reverse('widget-save-parameters', kwargs={'pk': TEST_WIDGET_USERS_PK})
widget_url_private = reverse('widget-save-parameters', kwargs={'pk': TEST_WIDGET_OTHER_USER_PRIVATE_PK})
widget_url_public = reverse('widget-save-parameters', kwargs={'pk': TEST_WIDGET_OTHER_USER_PUBLIC_PK})
parameters = [{
'id': TEST_PARAMETER_USERS_PK,
'value': '42'
}]
# Test without authentication - this should not be allowed
response = self.client.patch(widget_url, parameters)
self.assertEqual(response.status_code, status.HTTP_401_UNAUTHORIZED)
self._login()
response = self.client.patch(widget_url, parameters)
self.assertEqual(response.status_code, status.HTTP_200_OK)
parameter = Input.objects.get(pk=TEST_PARAMETER_USERS_PK)
self.assertEqual(parameter.value, '42')
# Test on other user's widgets
parameters[0]['id'] = TEST_PARAMETER_OTHER_USER_PRIVATE_PK
response = self.client.patch(widget_url_private, parameters)
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
parameters[0]['id'] = TEST_PARAMETER_OTHER_USER_PUBLIC_PK
response = self.client.patch(widget_url_public, parameters)
self.assertEqual(response.status_code, status.HTTP_403_FORBIDDEN)
self._logout()
| 39.380368
| 115
| 0.67591
| 2,307
| 19,257
| 5.355873
| 0.074122
| 0.082551
| 0.069926
| 0.107964
| 0.813775
| 0.78035
| 0.732357
| 0.68833
| 0.682422
| 0.670363
| 0
| 0.014215
| 0.218258
| 19,257
| 488
| 116
| 39.461066
| 0.806563
| 0.069118
| 0
| 0.540936
| 0
| 0
| 0.076472
| 0.011124
| 0
| 0
| 0
| 0
| 0.207602
| 1
| 0.064327
| false
| 0.011696
| 0.01462
| 0
| 0.093567
| 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
|
2e9edde9e2d1c808f47f515b7698c1ad2b7020cb
| 1,281
|
py
|
Python
|
stubs/m5stack_flowui-v1_4_0-beta/flowlib/units/_color.py
|
mattytrentini/micropython-stubs
|
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
|
[
"MIT"
] | null | null | null |
stubs/m5stack_flowui-v1_4_0-beta/flowlib/units/_color.py
|
mattytrentini/micropython-stubs
|
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
|
[
"MIT"
] | null | null | null |
stubs/m5stack_flowui-v1_4_0-beta/flowlib/units/_color.py
|
mattytrentini/micropython-stubs
|
4d596273823b69e9e5bcf5fa67f249c374ee0bbc
|
[
"MIT"
] | null | null | null |
"""
Module: 'flowlib.units._color' on M5 FlowUI v1.4.0-beta
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.11.0', version='v1.11-284-g5d8e1c867 on 2019-08-30', machine='ESP32 module with ESP32')
# Stubber: 1.3.1 - updated
from typing import Any
class Color:
""""""
def _available(self, *argv) -> Any:
pass
def _read_u16(self, *argv) -> Any:
pass
def _read_u8(self, *argv) -> Any:
pass
def _register_char(self, *argv) -> Any:
pass
def _register_short(self, *argv) -> Any:
pass
def _valid(self, *argv) -> Any:
pass
def _write_u16(self, *argv) -> Any:
pass
def _write_u8(self, *argv) -> Any:
pass
blue = None
def deinit(self, *argv) -> Any:
pass
def enable(self, *argv) -> Any:
pass
def getRGB(self, *argv) -> Any:
pass
green = None
portMethod = 255
rawData = None
red = None
def setGains(self, *argv) -> Any:
pass
def setIntegrationTime(self, *argv) -> Any:
pass
INT_TIME_DELAY = None
_CYCLES = None
_GAINS = None
_INTEGRATION_TIME_THRESHOLD_HIGH = 614.4
_INTEGRATION_TIME_THRESHOLD_LOW = 2.4
def const():
pass
i2c_bus = None
time = None
unit = None
ustruct = None
| 17.310811
| 141
| 0.587822
| 171
| 1,281
| 4.239766
| 0.438596
| 0.143448
| 0.197241
| 0.268966
| 0.329655
| 0.204138
| 0
| 0
| 0
| 0
| 0
| 0.059848
| 0.282592
| 1,281
| 73
| 142
| 17.547945
| 0.729053
| 0.172521
| 0
| 0.318182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.318182
| false
| 0.318182
| 0.022727
| 0
| 0.477273
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
2ea75a7dfbe63a948f1ddb62841fe463a969968d
| 553
|
py
|
Python
|
fdk_client/platform/models/SearchLogReq.py
|
kavish-d/fdk-client-python
|
a1023eb530473322cb52e095fc4ceb226c1e6037
|
[
"MIT"
] | null | null | null |
fdk_client/platform/models/SearchLogReq.py
|
kavish-d/fdk-client-python
|
a1023eb530473322cb52e095fc4ceb226c1e6037
|
[
"MIT"
] | null | null | null |
fdk_client/platform/models/SearchLogReq.py
|
kavish-d/fdk-client-python
|
a1023eb530473322cb52e095fc4ceb226c1e6037
|
[
"MIT"
] | null | null | null |
"""Platform Models."""
from marshmallow import fields, Schema
from marshmallow.validate import OneOf
from ..enums import *
from ..models.BaseSchema import BaseSchema
class SearchLogReq(BaseSchema):
# Analytics swagger.json
marketplace_name = fields.Str(required=False)
start_date = fields.Str(required=False)
company_id = fields.Str(required=False)
end_date = fields.Str(required=False)
identifier = fields.Str(required=False)
identifier_value = fields.Str(required=False)
| 14.552632
| 49
| 0.688969
| 61
| 553
| 6.163934
| 0.459016
| 0.143617
| 0.271277
| 0.351064
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.220615
| 553
| 37
| 50
| 14.945946
| 0.87239
| 0.072333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.363636
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
2eda1945ceab0abdb07ae1c36e78347cee1407af
| 224
|
py
|
Python
|
ch1/fibonacci.py
|
OMGZui/getSister
|
0ef8690676105621e7bafa4779114ae870acc8c7
|
[
"MIT"
] | 1
|
2018-02-28T01:21:45.000Z
|
2018-02-28T01:21:45.000Z
|
ch1/fibonacci.py
|
OMGZui/getSister
|
0ef8690676105621e7bafa4779114ae870acc8c7
|
[
"MIT"
] | null | null | null |
ch1/fibonacci.py
|
OMGZui/getSister
|
0ef8690676105621e7bafa4779114ae870acc8c7
|
[
"MIT"
] | null | null | null |
a, b = 0, 1
while b < 10:
print(b)
a, b = b, a + b
# 1
# 1
# 2
# 3
# 5
# 8
a, b = 0, 1
while b < 1000:
print(b, end='->')
a, b = b, a + b
# 1->1->2->3->5->8->13->21->34->55->89->144->233->377->610->987->%
| 11.789474
| 66
| 0.392857
| 51
| 224
| 1.72549
| 0.45098
| 0.136364
| 0.102273
| 0.090909
| 0.477273
| 0.477273
| 0.25
| 0.25
| 0.25
| 0.25
| 0
| 0.301282
| 0.303571
| 224
| 18
| 67
| 12.444444
| 0.262821
| 0.339286
| 0
| 0.5
| 0
| 0
| 0.014388
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0.25
| 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
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
2c1130daf074420f11439c1e1e4a0752b5881f2d
| 104
|
py
|
Python
|
biothings-hub/files/nde-hub/hub/dataload/sources/dde/uploader.py
|
NIAID-Data-Ecosystem/nde-crawlers
|
c0aff7dc1625ece1e67d03ad56555da7dbdc4a11
|
[
"Apache-2.0"
] | null | null | null |
biothings-hub/files/nde-hub/hub/dataload/sources/dde/uploader.py
|
NIAID-Data-Ecosystem/nde-crawlers
|
c0aff7dc1625ece1e67d03ad56555da7dbdc4a11
|
[
"Apache-2.0"
] | null | null | null |
biothings-hub/files/nde-hub/hub/dataload/sources/dde/uploader.py
|
NIAID-Data-Ecosystem/nde-crawlers
|
c0aff7dc1625ece1e67d03ad56555da7dbdc4a11
|
[
"Apache-2.0"
] | null | null | null |
from hub.dataload.nde import NDESourceUploader
class DDEUploader(NDESourceUploader):
name = "dde"
| 17.333333
| 46
| 0.778846
| 11
| 104
| 7.363636
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.144231
| 104
| 5
| 47
| 20.8
| 0.910112
| 0
| 0
| 0
| 0
| 0
| 0.028846
| 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
|
2c2af402121d01fc9ad62b7e3daf56b7ea63ee0e
| 519
|
py
|
Python
|
terrascript/data/davidji99/herokux.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 507
|
2017-07-26T02:58:38.000Z
|
2022-01-21T12:35:13.000Z
|
terrascript/data/davidji99/herokux.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 135
|
2017-07-20T12:01:59.000Z
|
2021-10-04T22:25:40.000Z
|
terrascript/data/davidji99/herokux.py
|
mjuenema/python-terrascript
|
6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d
|
[
"BSD-2-Clause"
] | 81
|
2018-02-20T17:55:28.000Z
|
2022-01-31T07:08:40.000Z
|
# terrascript/data/davidji99/herokux.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:18:42 UTC)
import terrascript
class herokux_addons(terrascript.Data):
pass
class herokux_kafka_mtls_iprules(terrascript.Data):
pass
class herokux_postgres_mtls_certificate(terrascript.Data):
pass
class herokux_registry_image(terrascript.Data):
pass
__all__ = [
"herokux_addons",
"herokux_kafka_mtls_iprules",
"herokux_postgres_mtls_certificate",
"herokux_registry_image",
]
| 18.535714
| 73
| 0.770713
| 63
| 519
| 6
| 0.460317
| 0.198413
| 0.201058
| 0.190476
| 0.246032
| 0
| 0
| 0
| 0
| 0
| 0
| 0.031461
| 0.142582
| 519
| 27
| 74
| 19.222222
| 0.817978
| 0.210019
| 0
| 0.266667
| 1
| 0
| 0.233415
| 0.199017
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.266667
| 0.066667
| 0
| 0.333333
| 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
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
2587dc24d40ae0d934f169522c5c01bbfd7ea521
| 867
|
py
|
Python
|
pybamm/models/submodels/interface/inverse_kinetics/inverse_butler_volmer.py
|
zlgenuine/pybamm
|
5c43d17225710c5bea8e61b3863688eb7080e678
|
[
"BSD-3-Clause"
] | null | null | null |
pybamm/models/submodels/interface/inverse_kinetics/inverse_butler_volmer.py
|
zlgenuine/pybamm
|
5c43d17225710c5bea8e61b3863688eb7080e678
|
[
"BSD-3-Clause"
] | null | null | null |
pybamm/models/submodels/interface/inverse_kinetics/inverse_butler_volmer.py
|
zlgenuine/pybamm
|
5c43d17225710c5bea8e61b3863688eb7080e678
|
[
"BSD-3-Clause"
] | null | null | null |
#
# Inverse Bulter-Volmer class
#
import pybamm
from .base_inverse_kinetics import BaseInverseKinetics
from ..kinetics.butler_volmer import ButlerVolmer
class InverseButlerVolmer(BaseInverseKinetics, ButlerVolmer):
"""
A base submodel that implements the inverted form of the Butler-Volmer relation to
solve for the reaction overpotential.
Parameters
----------
param
Model parameters
domain : iter of str, optional
The domain(s) in which to compute the interfacial current. Default is None,
in which case j.domain is used.
**Extends:** :class:`pybamm.interface.kinetics.ButlerVolmer`
"""
def __init__(self, param, domain):
super().__init__(param, domain)
def _get_overpotential(self, j, j0, ne, T):
return (2 * (1 + self.param.Theta * T) / ne) * pybamm.arcsinh(j / (2 * j0))
| 27.967742
| 86
| 0.682814
| 106
| 867
| 5.462264
| 0.575472
| 0.041451
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.007375
| 0.217993
| 867
| 30
| 87
| 28.9
| 0.846608
| 0.470588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.375
| 0.125
| 0.875
| 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
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
2595a3a6581bd66141e19ecc00283e6868cb6bc8
| 100
|
py
|
Python
|
python/testData/inspections/PyRedundantParenthesesInspection/ParenthesizedTupleWithUnpackingInYield.py
|
tgodzik/intellij-community
|
f5ef4191fc30b69db945633951fb160c1cfb7b6f
|
[
"Apache-2.0"
] | 2
|
2019-04-28T07:48:50.000Z
|
2020-12-11T14:18:08.000Z
|
python/testData/inspections/PyRedundantParenthesesInspection/ParenthesizedTupleWithUnpackingInYield.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2022-02-19T09:45:05.000Z
|
2022-02-27T20:32:55.000Z
|
python/testData/inspections/PyRedundantParenthesesInspection/ParenthesizedTupleWithUnpackingInYield.py
|
Cyril-lamirand/intellij-community
|
60ab6c61b82fc761dd68363eca7d9d69663cfa39
|
[
"Apache-2.0"
] | 2
|
2020-03-15T08:57:37.000Z
|
2020-04-07T04:48:14.000Z
|
def func(xs):
yield <weak_warning descr="Remove redundant parentheses">(42, *xs)</weak_warning>
| 33.333333
| 85
| 0.73
| 14
| 100
| 5.071429
| 0.785714
| 0.309859
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.022727
| 0.12
| 100
| 2
| 86
| 50
| 0.784091
| 0
| 0
| 0
| 0
| 0
| 0.28
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
25b67e608dbd1f4f9925eb3d736edc8521baf3bc
| 62
|
py
|
Python
|
Jasper/__init__.py
|
Rhodolite/Gem.py.Other
|
6d8ca5a4811901b9aab8f148604b3e89a686e304
|
[
"MIT"
] | null | null | null |
Jasper/__init__.py
|
Rhodolite/Gem.py.Other
|
6d8ca5a4811901b9aab8f148604b3e89a686e304
|
[
"MIT"
] | null | null | null |
Jasper/__init__.py
|
Rhodolite/Gem.py.Other
|
6d8ca5a4811901b9aab8f148604b3e89a686e304
|
[
"MIT"
] | null | null | null |
#
# Copyright (c) 2018 Joy Diamond. All rights reserved.
#
| 15.5
| 57
| 0.66129
| 8
| 62
| 5.125
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.083333
| 0.225806
| 62
| 3
| 58
| 20.666667
| 0.770833
| 0.854839
| 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
|
25c6907c4494f05d324bd37131737654b2394e87
| 1,363
|
py
|
Python
|
error_output.py
|
mertyigit/INEEDopt
|
f01ca1fae38aae16807e9f908ea47838745cbae8
|
[
"MIT"
] | 15
|
2021-03-14T08:17:56.000Z
|
2022-03-16T08:12:28.000Z
|
error_output.py
|
mertyigit/INEEDopt
|
f01ca1fae38aae16807e9f908ea47838745cbae8
|
[
"MIT"
] | 1
|
2021-11-10T04:01:24.000Z
|
2021-11-15T23:28:16.000Z
|
error_output.py
|
mertyigit/INEEDopt
|
f01ca1fae38aae16807e9f908ea47838745cbae8
|
[
"MIT"
] | 7
|
2020-12-05T18:50:04.000Z
|
2022-02-09T03:07:05.000Z
|
def error_output(number_of_parameters):
"""Write the optimized error values into the params file near the corresponding parameter identicator"""
try:
file2 = open("parameters", "r+")
file2.seek(0)
position2 = file2.tell()
file = open("fort.13","r")
file.seek(0)
position = file.tell()
try:
file.seek(0)
error = file.read(12)
file2.seek(20)
file2.write(" " + error.rjust(18))
finally:
file.close()
except IOError:
pass
def error_output_bf(number_of_parameters, parameters_file_name):
"""Write the optimized error values into the params file near the corresponding parameter identicator"""
try:
file2 = open(parameters_file_name, "a+")
#file2.seek(0)
#position2 = file2.tell()
file = open("fort.13","r")
file.seek(0)
position = file.tell()
try:
file.seek(0)
error_bf = file.read(12)
#file2.seek(20)
file2.write("\n TOTAL ERROR: " + error_bf.rjust(18))
finally:
file.close()
except IOError:
pass
return error_bf
| 24.781818
| 108
| 0.49303
| 142
| 1,363
| 4.633803
| 0.309859
| 0.045593
| 0.054711
| 0.066869
| 0.799392
| 0.799392
| 0.799392
| 0.799392
| 0.583587
| 0.583587
| 0
| 0.041975
| 0.405723
| 1,363
| 55
| 109
| 24.781818
| 0.77037
| 0.182685
| 0
| 0.625
| 0
| 0
| 0.043597
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.0625
| false
| 0.0625
| 0
| 0
| 0.09375
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
25c6f5c1b465d8a03907fb43f1f824ebcb302863
| 52
|
py
|
Python
|
Trading arbitrage strategy/strategies/arbitrage.py
|
iCoder333/Trading-arbitrage-strategy
|
af970c48027ab75a31a9d434373e620ceb38666b
|
[
"Apache-2.0"
] | 4
|
2018-08-20T12:30:13.000Z
|
2018-08-31T08:43:55.000Z
|
Trading arbitrage strategy/strategies/arbitrage.py
|
cristianver333/Trading-arbitrage-strategy
|
af970c48027ab75a31a9d434373e620ceb38666b
|
[
"Apache-2.0"
] | null | null | null |
Trading arbitrage strategy/strategies/arbitrage.py
|
cristianver333/Trading-arbitrage-strategy
|
af970c48027ab75a31a9d434373e620ceb38666b
|
[
"Apache-2.0"
] | 1
|
2020-02-19T17:12:59.000Z
|
2020-02-19T17:12:59.000Z
|
"""Provides the concrete arbitrage trading class"""
| 26
| 51
| 0.769231
| 6
| 52
| 6.666667
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 52
| 1
| 52
| 52
| 0.869565
| 0.865385
| 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
|
25ce844080199be82931bf0800d7ffbdffa84739
| 292
|
py
|
Python
|
tempdir/login-app.py
|
Kennethvalerio212/design-app
|
7518fa33fc0e664b866747182229ac96064670a5
|
[
"MIT"
] | null | null | null |
tempdir/login-app.py
|
Kennethvalerio212/design-app
|
7518fa33fc0e664b866747182229ac96064670a5
|
[
"MIT"
] | null | null | null |
tempdir/login-app.py
|
Kennethvalerio212/design-app
|
7518fa33fc0e664b866747182229ac96064670a5
|
[
"MIT"
] | null | null | null |
# Add to this file for the sample app lab
from flask import Flask
from flask import request
from flask import render_template
login = Flask(__name__)
@login.route("/")
def main():
return render_template("login.html")
if __name__ == "__main__":
login.run(host="0.0.0.0", port=5050)
| 20.857143
| 41
| 0.719178
| 46
| 292
| 4.26087
| 0.608696
| 0.137755
| 0.229592
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.032653
| 0.160959
| 292
| 14
| 42
| 20.857143
| 0.767347
| 0.133562
| 0
| 0
| 0
| 0
| 0.103586
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.111111
| false
| 0
| 0.333333
| 0.111111
| 0.555556
| 0
| 0
| 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
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
d35257fd960107a35664c8c0fb90ebce4efc6510
| 464
|
py
|
Python
|
fhireval/test_suite/search/test_mod_prefix.py
|
ncpi-fhir/ncpi-fhir-platform-evaluation
|
dcc6d3824a41a23cd3be8b3f384a1fd18336a32f
|
[
"CC0-1.0"
] | null | null | null |
fhireval/test_suite/search/test_mod_prefix.py
|
ncpi-fhir/ncpi-fhir-platform-evaluation
|
dcc6d3824a41a23cd3be8b3f384a1fd18336a32f
|
[
"CC0-1.0"
] | 15
|
2021-03-19T21:59:15.000Z
|
2021-05-14T23:27:17.000Z
|
fhireval/test_suite/search/test_mod_prefix.py
|
ncpi-fhir/ncpi-fhir-platform-evaluation
|
dcc6d3824a41a23cd3be8b3f384a1fd18336a32f
|
[
"CC0-1.0"
] | null | null | null |
import pytest
import pdb
from fhir_walk.model.patient import Patient
test_id = f"{'2.2.1.2':<10} - Search Modifiers and Prefix"
test_weight = 15
# TODO Write some tests
def test_search_by_date(host):
assert 0 == 1, "TODO - Write Test"
def test_search_by_value(host):
assert 0 == 1, "TODO - Write Test"
def test_search_by_quantity(host):
assert 0 == 1, "TODO - Write Test"
def test_search_by_token(host):
assert 0 == 1, "TODO - Write Test"
| 19.333333
| 58
| 0.693966
| 78
| 464
| 3.935897
| 0.423077
| 0.14658
| 0.169381
| 0.19544
| 0.472313
| 0.472313
| 0.472313
| 0.390879
| 0.390879
| 0.390879
| 0
| 0.042667
| 0.19181
| 464
| 23
| 59
| 20.173913
| 0.776
| 0.045259
| 0
| 0.307692
| 0
| 0
| 0.257403
| 0
| 0
| 0
| 0
| 0.043478
| 0.307692
| 1
| 0.307692
| false
| 0
| 0.230769
| 0
| 0.538462
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 4
|
d3712033589f2b4832f5564587b462570bb83f04
| 81
|
py
|
Python
|
Contest/ABC037/a/main.py
|
mpses/AtCoder
|
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
|
[
"CC0-1.0"
] | null | null | null |
Contest/ABC037/a/main.py
|
mpses/AtCoder
|
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
|
[
"CC0-1.0"
] | null | null | null |
Contest/ABC037/a/main.py
|
mpses/AtCoder
|
9c101fcc0a1394754fcf2385af54b05c30a5ae2a
|
[
"CC0-1.0"
] | null | null | null |
#!/usr/bin/env python3
a, b, c = map(int, input().split())
print(c // min(a, b))
| 20.25
| 35
| 0.567901
| 16
| 81
| 2.875
| 0.8125
| 0.086957
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014493
| 0.148148
| 81
| 3
| 36
| 27
| 0.652174
| 0.259259
| 0
| 0
| 0
| 0
| 0
| 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
|
d38a4e013134b70044f5bfe7d2791d4a39198fc2
| 65
|
py
|
Python
|
Python/Fundamentals/Introduction/hello_world.py
|
handtjaxon1/Coding-Dojo-Development
|
9cca0ae84749984a164541c476dc445b29b498b9
|
[
"MIT"
] | null | null | null |
Python/Fundamentals/Introduction/hello_world.py
|
handtjaxon1/Coding-Dojo-Development
|
9cca0ae84749984a164541c476dc445b29b498b9
|
[
"MIT"
] | null | null | null |
Python/Fundamentals/Introduction/hello_world.py
|
handtjaxon1/Coding-Dojo-Development
|
9cca0ae84749984a164541c476dc445b29b498b9
|
[
"MIT"
] | null | null | null |
print("Hello, world!")
x = "Hello World"
print(x)
y = 42
print(y)
| 13
| 22
| 0.630769
| 12
| 65
| 3.416667
| 0.5
| 0.487805
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.036364
| 0.153846
| 65
| 5
| 23
| 13
| 0.709091
| 0
| 0
| 0
| 0
| 0
| 0.363636
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0.6
| 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
| 0
| 1
|
0
| 4
|
d3904ed05a9a96cba396cf1bae56dd759f27524c
| 129
|
py
|
Python
|
src/misc.py
|
Dorijan-Cirkveni/AutoSolvingMatrix
|
3732d0215c22b9eae450c69ba84e75aecb337b0c
|
[
"MIT"
] | null | null | null |
src/misc.py
|
Dorijan-Cirkveni/AutoSolvingMatrix
|
3732d0215c22b9eae450c69ba84e75aecb337b0c
|
[
"MIT"
] | null | null | null |
src/misc.py
|
Dorijan-Cirkveni/AutoSolvingMatrix
|
3732d0215c22b9eae450c69ba84e75aecb337b0c
|
[
"MIT"
] | null | null | null |
def StringToDict(s):
RES = dict()
for e in set(s):
RES[e] = 0
for e in s:
RES[e] += 1
return RES
| 16.125
| 20
| 0.457364
| 22
| 129
| 2.681818
| 0.545455
| 0.20339
| 0.20339
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.026316
| 0.410853
| 129
| 7
| 21
| 18.428571
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.142857
| false
| 0
| 0
| 0
| 0.285714
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
d3a67e176dcf1d5cb15a658b7c129194e4cfcc79
| 103
|
py
|
Python
|
weather_comparison/weather_api1/apps.py
|
is-dev-djangoproject-ss-2020/project-repository
|
e3feaccbf9c5d03580af592d3a8f27524007298b
|
[
"Apache-2.0"
] | null | null | null |
weather_comparison/weather_api1/apps.py
|
is-dev-djangoproject-ss-2020/project-repository
|
e3feaccbf9c5d03580af592d3a8f27524007298b
|
[
"Apache-2.0"
] | null | null | null |
weather_comparison/weather_api1/apps.py
|
is-dev-djangoproject-ss-2020/project-repository
|
e3feaccbf9c5d03580af592d3a8f27524007298b
|
[
"Apache-2.0"
] | 2
|
2020-05-01T20:33:35.000Z
|
2020-05-06T13:12:12.000Z
|
from django.apps import AppConfig
class WeatherApi1Config(AppConfig):
name = 'weather_api1'
| 17.166667
| 36
| 0.737864
| 11
| 103
| 6.818182
| 0.909091
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.024096
| 0.194175
| 103
| 5
| 37
| 20.6
| 0.879518
| 0
| 0
| 0
| 0
| 0
| 0.122449
| 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
|
d3ac5e8b24e6723435921dc3fa10ba604aa72cba
| 136
|
py
|
Python
|
Unit 1 Variables and Statements/Lesson4.2.py
|
ItsMrTurtle/PythonChris
|
4513dea336e68f48fabf480ad87bc538a323c2cd
|
[
"MIT"
] | null | null | null |
Unit 1 Variables and Statements/Lesson4.2.py
|
ItsMrTurtle/PythonChris
|
4513dea336e68f48fabf480ad87bc538a323c2cd
|
[
"MIT"
] | null | null | null |
Unit 1 Variables and Statements/Lesson4.2.py
|
ItsMrTurtle/PythonChris
|
4513dea336e68f48fabf480ad87bc538a323c2cd
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 19 19:32:39 2020
@author: abcdk
"""
# 5 Data types
# Int, Float, Boolean, String, Null
| 13.6
| 35
| 0.610294
| 22
| 136
| 3.772727
| 0.954545
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12963
| 0.205882
| 136
| 9
| 36
| 15.111111
| 0.638889
| 0.889706
| 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
|
6c9297fcb26e507b3d7496b4639f81f221883d69
| 77
|
py
|
Python
|
source_hunter/__main__.py
|
pyeprog/source_hunter
|
f02161f66580a085161db9332ea8f0e8e7fbf96e
|
[
"MIT"
] | 2
|
2019-07-28T08:31:56.000Z
|
2019-07-29T12:01:40.000Z
|
source_hunter/__main__.py
|
pyeprog/source_hunter
|
f02161f66580a085161db9332ea8f0e8e7fbf96e
|
[
"MIT"
] | 1
|
2019-07-31T07:36:41.000Z
|
2019-08-03T14:00:02.000Z
|
source_hunter/__main__.py
|
pyeprog/source_hunter
|
f02161f66580a085161db9332ea8f0e8e7fbf96e
|
[
"MIT"
] | null | null | null |
from source_hunter.hunter import hunt
if __name__ == '__main__':
hunt()
| 15.4
| 37
| 0.714286
| 10
| 77
| 4.6
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 77
| 4
| 38
| 19.25
| 0.730159
| 0
| 0
| 0
| 0
| 0
| 0.103896
| 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
|
6ce4aaa8a7bfc6b74e685ff37f5108d15adf3ffd
| 5,683
|
py
|
Python
|
src/model/GCN.py
|
Zeyuzhao/DeepKidney
|
201839442388b6d3bbdd0d353946ab1a34a5aea5
|
[
"MIT"
] | 1
|
2022-01-15T00:22:32.000Z
|
2022-01-15T00:22:32.000Z
|
src/model/GCN.py
|
Zeyuzhao/DeepKidney
|
201839442388b6d3bbdd0d353946ab1a34a5aea5
|
[
"MIT"
] | null | null | null |
src/model/GCN.py
|
Zeyuzhao/DeepKidney
|
201839442388b6d3bbdd0d353946ab1a34a5aea5
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn.functional as F
import torch.nn as nn
from torch.nn import BatchNorm1d
from torch_geometric.nn import GCNConv, GraphConv, GATConv, GatedGraphConv
from torch_geometric.utils import add_remaining_self_loops, add_self_loops
class BasicNet(torch.nn.Module):
def __init__(self):
super(BasicNet, self).__init__()
self.conv1 = GCNConv(1, 16)
self.conv2 = GCNConv(16, 1)
def forward(self, data):
weight = data["x"].view(-1, 1)
edge_index = data["edge_index"]
x = self.conv1(weight, edge_index)
x = F.relu(x)
x = self.conv2(x, edge_index)
x = torch.sigmoid(x)
return x
class MultiNet(torch.nn.Module):
def __init__(self):
super(MultiNet, self).__init__()
self.conv_in = GCNConv(1, 32)
self.conv_mid1 = GCNConv(32, 32)
self.conv_mid2 = GCNConv(32, 32)
self.conv_mid3 = GCNConv(32, 32)
self.conv_out = GCNConv(32, 1)
def forward(self, data):
weight = data["x"].view(-1, 1)
edge_index = data["edge_index"] # add_self_loops(data["edge_index"])
x = self.conv_in(weight, edge_index)
x = F.relu(x)
x = self.conv_mid1(x, edge_index)
x = F.relu(x)
x = self.conv_mid2(x, edge_index)
x = F.relu(x)
x = self.conv_mid3(x, edge_index)
x = F.relu(x)
x = self.conv_out(x, edge_index)
x = torch.sigmoid(x)
return x.reshape(-1)
class ConvNet(torch.nn.Module):
def __init__(self):
super(ConvNet, self).__init__()
self.conv_in = GraphConv(1, 32, aggr="add")
self.conv_max1 = GraphConv(32, 64, aggr="max")
self.conv_mean1 = GraphConv(64, 32, aggr="mean")
self.conv_max2 = GraphConv(32, 64, aggr="max")
self.conv_mean2 = GraphConv(64, 32, aggr="mean")
self.conv_max3 = GraphConv(32, 64, aggr="max")
self.conv_mean3 = GraphConv(64, 32, aggr="mean")
self.conv_out = GraphConv(32, 1, aggr="max")
def forward(self, data):
weight = data["x"].view(-1, 1)
edge_index = data["edge_index"]
x = self.conv_in(weight, edge_index)
x = F.relu(x)
x = self.conv_max1(x, edge_index)
x = F.relu(x)
x = self.conv_mean1(x, edge_index)
x = F.relu(x)
x = self.conv_max2(x, edge_index)
x = F.relu(x)
x = self.conv_mean2(x, edge_index)
x = F.relu(x)
x = self.conv_max3(x, edge_index)
x = F.relu(x)
x = self.conv_mean3(x, edge_index)
x = F.relu(x)
x = self.conv_out(x, edge_index)
x = torch.sigmoid(x)
return x
class ConvNet2(torch.nn.Module):
def __init__(self):
super(ConvNet2, self).__init__()
self.conv_in = GraphConv(1, 32, aggr="add")
self.conv_mean1 = GraphConv(32, 32, aggr="mean")
self.conv_mean2 = GraphConv(32, 32, aggr="add")
self.conv_mean3 = GraphConv(32, 32, aggr="mean")
self.conv_mean4 = GraphConv(32, 32, aggr="add")
self.conv_mean5 = GraphConv(32, 32, aggr="mean")
self.conv_max1 = GraphConv(32, 32, aggr="max")
self.conv_out = GraphConv(32, 1, aggr="mean")
def forward(self, data):
weight = data["x"].view(-1, 1)
edge_index = data["edge_index"]
x = self.conv_in(weight, edge_index)
x = F.relu(x)
x = self.conv_mean1(x, edge_index)
x = F.relu(x)
x = self.conv_mean2(x, edge_index)
x = F.relu(x)
x = self.conv_mean3(x, edge_index)
x = F.relu(x)
x = self.conv_mean4(x, edge_index)
x = F.relu(x)
x = self.conv_mean5(x, edge_index)
x = F.relu(x)
x = self.conv_max1(x, edge_index)
x = F.relu(x)
x = self.conv_out(x, edge_index)
x = torch.sigmoid(x).reshape(-1)
return x
class ConvNet3(torch.nn.Module):
def __init__(self):
super(ConvNet3, self).__init__()
self.conv_in = GraphConv(1, 32, aggr="add")
self.conv_mean1 = GraphConv(32, 32, aggr="mean")
self.conv_max1 = GraphConv(32, 32, aggr="max")
self.conv_mean2 = GraphConv(32, 32, aggr="add")
self.conv_max2 = GraphConv(32, 32, aggr="max")
self.conv_mean3 = GraphConv(32, 32, aggr="mean")
self.conv_max3 = GraphConv(32, 32, aggr="max")
self.conv_mean4 = GraphConv(32, 32, aggr="mean")
self.conv_max4 = GraphConv(32, 32, aggr="max")
self.conv_mean5 = GraphConv(32, 32, aggr="mean")
self.conv_max5 = GraphConv(32, 32, aggr="max")
self.conv_out = GraphConv(32, 1, aggr="max")
def forward(self, data):
weight = data["x"].view(-1, 1)
edge_index, _ = add_self_loops(data["edge_index"], num_nodes=len(data["x"]))
#edge_index = data["edge_index"]
x = self.conv_in(weight, edge_index)
x = F.relu(x)
x = self.conv_mean1(x, edge_index)
x = F.relu(x)
x = self.conv_max1(x, edge_index)
x = F.relu(x)
x = self.conv_mean2(x, edge_index)
x = F.relu(x)
x = self.conv_max2(x, edge_index)
x = F.relu(x)
x = self.conv_mean3(x, edge_index)
x = F.relu(x)
x = self.conv_max3(x, edge_index)
x = F.relu(x)
x = self.conv_mean4(x, edge_index)
x = F.relu(x)
x = self.conv_max4(x, edge_index)
x = F.relu(x)
x = self.conv_mean5(x, edge_index)
x = F.relu(x)
x = self.conv_max5(x, edge_index)
x = F.relu(x)
x = self.conv_out(x, edge_index)
x = torch.sigmoid(x).reshape(-1)
return x
| 29.14359
| 84
| 0.569945
| 856
| 5,683
| 3.588785
| 0.078271
| 0.171875
| 0.130208
| 0.107422
| 0.850911
| 0.822591
| 0.819336
| 0.690755
| 0.663086
| 0.654297
| 0
| 0.049852
| 0.286996
| 5,683
| 194
| 85
| 29.293814
| 0.708292
| 0.011438
| 0
| 0.691781
| 0
| 0
| 0.026897
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.068493
| false
| 0
| 0.041096
| 0
| 0.178082
| 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
|
9f39679ccc78ddbfeefeac6e8cefa755118318e8
| 365
|
py
|
Python
|
kubernetes_typed/client/models/v1_windows_security_context_options.py
|
sobolevn/kubernetes-typed
|
5f0a770631c73a9831fbeaeebac188e8f4a52c54
|
[
"Apache-2.0"
] | 22
|
2020-12-10T13:06:02.000Z
|
2022-02-13T21:58:15.000Z
|
kubernetes_typed/client/models/v1_windows_security_context_options.py
|
sobolevn/kubernetes-typed
|
5f0a770631c73a9831fbeaeebac188e8f4a52c54
|
[
"Apache-2.0"
] | 4
|
2021-03-08T07:06:12.000Z
|
2022-03-29T23:41:45.000Z
|
kubernetes_typed/client/models/v1_windows_security_context_options.py
|
sobolevn/kubernetes-typed
|
5f0a770631c73a9831fbeaeebac188e8f4a52c54
|
[
"Apache-2.0"
] | 2
|
2021-09-05T19:18:28.000Z
|
2022-03-14T02:56:17.000Z
|
# Code generated by `typeddictgen`. DO NOT EDIT.
"""V1WindowsSecurityContextOptionsDict generated type."""
from typing import TypedDict
V1WindowsSecurityContextOptionsDict = TypedDict(
"V1WindowsSecurityContextOptionsDict",
{
"gmsaCredentialSpec": str,
"gmsaCredentialSpecName": str,
"runAsUserName": str,
},
total=False,
)
| 26.071429
| 57
| 0.712329
| 25
| 365
| 10.4
| 0.76
| 0.338462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.010169
| 0.191781
| 365
| 13
| 58
| 28.076923
| 0.871186
| 0.271233
| 0
| 0
| 1
| 0
| 0.338462
| 0.219231
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.1
| 0
| 0.1
| 0
| 1
| 0
| 1
| null | 1
| 0
| 0
| 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
| 0
| 0
|
0
| 4
|
9f4f39435e4f54f6256f22da4e57de74072c9583
| 191
|
py
|
Python
|
verkkokauppa/payment/exceptions.py
|
SuviVappula/tilavarauspalvelu-core
|
ad7dec36e392a7b2927e2f825c3b0eb29b700793
|
[
"MIT"
] | null | null | null |
verkkokauppa/payment/exceptions.py
|
SuviVappula/tilavarauspalvelu-core
|
ad7dec36e392a7b2927e2f825c3b0eb29b700793
|
[
"MIT"
] | null | null | null |
verkkokauppa/payment/exceptions.py
|
SuviVappula/tilavarauspalvelu-core
|
ad7dec36e392a7b2927e2f825c3b0eb29b700793
|
[
"MIT"
] | null | null | null |
from ..exceptions import VerkkokauppaError
class PaymentError(VerkkokauppaError):
pass
class ParsePaymentError(PaymentError):
pass
class GetPaymentError(PaymentError):
pass
| 13.642857
| 42
| 0.780105
| 16
| 191
| 9.3125
| 0.5625
| 0.120805
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.162304
| 191
| 13
| 43
| 14.692308
| 0.93125
| 0
| 0
| 0.428571
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.428571
| 0.142857
| 0
| 0.571429
| 0
| 1
| 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
| 0
| 1
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
9f9343562eac8e78741e8d3290cd81f31e5d0ffb
| 142
|
py
|
Python
|
birthday_pages/apps.py
|
JoshZero87/site
|
c8024b805ff5ff0e16f54dce7bf05097fd2f08e0
|
[
"MIT"
] | 4
|
2017-01-29T00:38:41.000Z
|
2019-09-04T14:30:24.000Z
|
birthday_pages/apps.py
|
JoshZero87/site
|
c8024b805ff5ff0e16f54dce7bf05097fd2f08e0
|
[
"MIT"
] | 74
|
2017-10-02T04:42:54.000Z
|
2022-01-13T00:44:16.000Z
|
birthday_pages/apps.py
|
JoshZero87/site
|
c8024b805ff5ff0e16f54dce7bf05097fd2f08e0
|
[
"MIT"
] | 3
|
2017-03-24T23:26:46.000Z
|
2019-10-21T01:16:03.000Z
|
from __future__ import unicode_literals
from django.apps import AppConfig
class BirthdayPagesConfig(AppConfig):
name = 'birthday_pages'
| 20.285714
| 39
| 0.816901
| 16
| 142
| 6.875
| 0.8125
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133803
| 142
| 6
| 40
| 23.666667
| 0.894309
| 0
| 0
| 0
| 0
| 0
| 0.098592
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 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
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
9f9607bb65f85e24940582a772c314930ef53351
| 78
|
py
|
Python
|
main.py
|
ahlumcho/RyeongBot
|
8c0305780428b5d0a0ad35cef7081af5f401f013
|
[
"MIT"
] | null | null | null |
main.py
|
ahlumcho/RyeongBot
|
8c0305780428b5d0a0ad35cef7081af5f401f013
|
[
"MIT"
] | null | null | null |
main.py
|
ahlumcho/RyeongBot
|
8c0305780428b5d0a0ad35cef7081af5f401f013
|
[
"MIT"
] | null | null | null |
print("Hello world! i'm sexy ryong" )
print("캔디크러시팡팡파라바라팡팡팡" )
print('웅앵옹앙응')
| 19.5
| 37
| 0.705128
| 11
| 78
| 5
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 78
| 3
| 38
| 26
| 0.797101
| 0
| 0
| 0
| 0
| 0
| 0.589744
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
9fa8f9da930a3be6b16010d1871945d9429f526b
| 97
|
py
|
Python
|
weibospider/daemon_tweet.py
|
uglyghost/WeiboSpider
|
bc8f51a6eaeffd4e00de594491769d87e86d8aef
|
[
"MIT"
] | null | null | null |
weibospider/daemon_tweet.py
|
uglyghost/WeiboSpider
|
bc8f51a6eaeffd4e00de594491769d87e86d8aef
|
[
"MIT"
] | null | null | null |
weibospider/daemon_tweet.py
|
uglyghost/WeiboSpider
|
bc8f51a6eaeffd4e00de594491769d87e86d8aef
|
[
"MIT"
] | null | null | null |
import os
while 1:
run_depth_pct = 'python run_spider.py tweet'
os.system(run_depth_pct)
| 19.4
| 48
| 0.731959
| 17
| 97
| 3.882353
| 0.705882
| 0.242424
| 0.333333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.012658
| 0.185567
| 97
| 5
| 49
| 19.4
| 0.822785
| 0
| 0
| 0
| 0
| 0
| 0.265306
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.25
| 0
| 0.25
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4cb31cf193e888d51a09241c5dcbdae08e374ec4
| 105
|
py
|
Python
|
cx_Freeze/samples/advanced/advanced_1.py
|
lexa/cx_Freeze
|
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
|
[
"PSF-2.0"
] | 358
|
2020-07-02T13:00:02.000Z
|
2022-03-29T10:03:57.000Z
|
cx_Freeze/samples/advanced/advanced_1.py
|
lexa/cx_Freeze
|
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
|
[
"PSF-2.0"
] | 372
|
2020-07-02T20:47:57.000Z
|
2022-03-31T19:35:05.000Z
|
cx_Freeze/samples/advanced/advanced_1.py
|
lexa/cx_Freeze
|
f1f35d19e8e7e821733f86b4da7814c40be3bfd9
|
[
"PSF-2.0"
] | 78
|
2020-07-09T14:24:03.000Z
|
2022-03-22T19:06:52.000Z
|
#!/usr/bin/env python
print("Hello from cx_Freeze Advanced #1\n")
module = __import__("testfreeze_1")
| 15
| 43
| 0.72381
| 16
| 105
| 4.375
| 0.9375
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021739
| 0.12381
| 105
| 6
| 44
| 17.5
| 0.73913
| 0.190476
| 0
| 0
| 0
| 0
| 0.547619
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
|
0
| 4
|
4cb4ca1c68bedfdb4f0555291a370a22ded4eba0
| 214
|
py
|
Python
|
src/boc_python_demo_test.py
|
bocgi-demo/python
|
2c81fe4f4e72125d72871903b538b56b90e418ee
|
[
"MIT"
] | null | null | null |
src/boc_python_demo_test.py
|
bocgi-demo/python
|
2c81fe4f4e72125d72871903b538b56b90e418ee
|
[
"MIT"
] | null | null | null |
src/boc_python_demo_test.py
|
bocgi-demo/python
|
2c81fe4f4e72125d72871903b538b56b90e418ee
|
[
"MIT"
] | null | null | null |
from boc_python_demo import my_sum
def test_my_sum():
assert my_sum(1) == 1
assert my_sum(2) == 2
assert my_sum(3) == 3
assert my_sum(4) == 5
assert my_sum(5) == 8
assert my_sum(6) == 13
| 17.833333
| 34
| 0.607477
| 41
| 214
| 2.902439
| 0.439024
| 0.336134
| 0.554622
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.082803
| 0.266355
| 214
| 11
| 35
| 19.454545
| 0.675159
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.75
| 1
| 0.125
| true
| 0
| 0.125
| 0
| 0.25
| 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
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
4cb62321c455772a220a38b9d8c73c6553950b8f
| 227
|
py
|
Python
|
dsemproducaoenv/Lib/site-packages/jupyter_server/_version.py
|
felipetmota/DsEmProducao
|
ed2d243b658b3117cd263333edca3be16600253c
|
[
"FTL"
] | null | null | null |
dsemproducaoenv/Lib/site-packages/jupyter_server/_version.py
|
felipetmota/DsEmProducao
|
ed2d243b658b3117cd263333edca3be16600253c
|
[
"FTL"
] | null | null | null |
dsemproducaoenv/Lib/site-packages/jupyter_server/_version.py
|
felipetmota/DsEmProducao
|
ed2d243b658b3117cd263333edca3be16600253c
|
[
"FTL"
] | null | null | null |
"""
store the current version info of the server.
"""
from jupyter_packaging import get_version_info
# Version string must appear intact for tbump versioning
__version__ = '1.6.2'
version_info = get_version_info(__version__)
| 22.7
| 56
| 0.792952
| 33
| 227
| 5.030303
| 0.666667
| 0.26506
| 0.168675
| 0.253012
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.015306
| 0.136564
| 227
| 9
| 57
| 25.222222
| 0.831633
| 0.444934
| 0
| 0
| 0
| 0
| 0.042735
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
4cd30a66576cf63e483271c51d04a76264ec64b1
| 1,316
|
py
|
Python
|
operations/fleet_management/migrations/0069_auto_20180730_1054.py
|
kaizer88/emps
|
2669b32c46befcf1a19390fb25013817e6b00980
|
[
"MIT"
] | null | null | null |
operations/fleet_management/migrations/0069_auto_20180730_1054.py
|
kaizer88/emps
|
2669b32c46befcf1a19390fb25013817e6b00980
|
[
"MIT"
] | null | null | null |
operations/fleet_management/migrations/0069_auto_20180730_1054.py
|
kaizer88/emps
|
2669b32c46befcf1a19390fb25013817e6b00980
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-07-30 08:54
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('fleet_management', '0068_merge_20180726_0812'),
]
operations = [
migrations.AddField(
model_name='fuelcard',
name='card_limit',
field=models.IntegerField(blank=True, default=0, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name=b'Card Limit'),
),
migrations.AddField(
model_name='fuelcard',
name='card_limit_comment',
field=models.CharField(blank=True, max_length=255, null=True, verbose_name=b'Comment'),
),
migrations.AddField(
model_name='historicalfuelcard',
name='card_limit',
field=models.IntegerField(blank=True, default=0, null=True, validators=[django.core.validators.MinValueValidator(0)], verbose_name=b'Card Limit'),
),
migrations.AddField(
model_name='historicalfuelcard',
name='card_limit_comment',
field=models.CharField(blank=True, max_length=255, null=True, verbose_name=b'Comment'),
),
]
| 35.567568
| 158
| 0.644377
| 144
| 1,316
| 5.715278
| 0.395833
| 0.065614
| 0.111786
| 0.131227
| 0.72418
| 0.72418
| 0.72418
| 0.72418
| 0.595383
| 0.595383
| 0
| 0.042701
| 0.234802
| 1,316
| 36
| 159
| 36.555556
| 0.774578
| 0.051672
| 0
| 0.689655
| 1
| 0
| 0.146185
| 0.019277
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.103448
| 0
| 0.206897
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 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
| 0
| 0
|
0
| 4
|
980b86b6791895b36a42397fe094d6f542edc4fb
| 447
|
py
|
Python
|
apps/dbd/admin.py
|
TryNeo/sistema-gestion-pedidos
|
d36d13aa6ddfb6d74b543a58531ed7afe8383e9d
|
[
"MIT"
] | null | null | null |
apps/dbd/admin.py
|
TryNeo/sistema-gestion-pedidos
|
d36d13aa6ddfb6d74b543a58531ed7afe8383e9d
|
[
"MIT"
] | 5
|
2020-08-12T16:55:36.000Z
|
2021-09-22T19:34:10.000Z
|
apps/dbd/admin.py
|
TryNeo/sistema-gestion-pedidos
|
d36d13aa6ddfb6d74b543a58531ed7afe8383e9d
|
[
"MIT"
] | 2
|
2020-11-04T01:27:47.000Z
|
2022-02-24T14:26:26.000Z
|
from django.contrib import admin
from apps.dbd.modelos.estructura_model_producto import Producto
from apps.dbd.modelos.esctructura_model_cliente import Cliente
from apps.dbd.modelos.estructura_model_catalogo import Categoria
from apps.dbd.modelos.estructura_model_pedido import Pedido,PedidoItem
admin.site.register(Producto)
admin.site.register(Cliente)
admin.site.register(Categoria)
admin.site.register(Pedido)
admin.site.register(PedidoItem)
| 37.25
| 70
| 0.865772
| 62
| 447
| 6.112903
| 0.306452
| 0.118734
| 0.224274
| 0.189974
| 0.261214
| 0.261214
| 0
| 0
| 0
| 0
| 0
| 0
| 0.058166
| 447
| 11
| 71
| 40.636364
| 0.900238
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
e21b7d30969ac404894a5fb17b4053d4887c4fca
| 261
|
py
|
Python
|
tests/builtins/test_dir.py
|
olgapinheiro/batavia
|
673705c14a8f64c000b52501a62f3db384bd5e03
|
[
"BSD-3-Clause"
] | 1
|
2019-01-15T23:37:17.000Z
|
2019-01-15T23:37:17.000Z
|
tests/builtins/test_dir.py
|
olgapinheiro/batavia
|
673705c14a8f64c000b52501a62f3db384bd5e03
|
[
"BSD-3-Clause"
] | null | null | null |
tests/builtins/test_dir.py
|
olgapinheiro/batavia
|
673705c14a8f64c000b52501a62f3db384bd5e03
|
[
"BSD-3-Clause"
] | null | null | null |
from .. utils import TranspileTestCase, BuiltinFunctionTestCase
class DirTests(TranspileTestCase):
pass
class BuiltinDirFunctionTests(BuiltinFunctionTestCase, TranspileTestCase):
function = "dir"
not_implemented = [
'test_class',
]
| 18.642857
| 74
| 0.739464
| 19
| 261
| 10.052632
| 0.736842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.187739
| 261
| 13
| 75
| 20.076923
| 0.900943
| 0
| 0
| 0
| 0
| 0
| 0.049808
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.125
| 0.125
| 0
| 0.625
| 0
| 1
| 0
| 1
| 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
| 0
| 0
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
e269a18f1422fbb78fa39b165def135c172c830e
| 276
|
py
|
Python
|
UnityEngine/ParticleSystemRingBufferMode/__init__.py
|
Grim-es/udon-pie-auto-completion
|
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
|
[
"MIT"
] | null | null | null |
UnityEngine/ParticleSystemRingBufferMode/__init__.py
|
Grim-es/udon-pie-auto-completion
|
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
|
[
"MIT"
] | null | null | null |
UnityEngine/ParticleSystemRingBufferMode/__init__.py
|
Grim-es/udon-pie-auto-completion
|
c2cd86554ed615cdbbb01e19fa40665eafdfaedc
|
[
"MIT"
] | null | null | null |
from UdonPie import UnityEngine
from UdonPie.Undefined import *
class ParticleSystemRingBufferMode:
def __new__(cls, arg1=None):
'''
:returns: ParticleSystemRingBufferMode
:rtype: UnityEngine.ParticleSystemRingBufferMode
'''
pass
| 23
| 56
| 0.692029
| 21
| 276
| 8.904762
| 0.714286
| 0.117647
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004762
| 0.23913
| 276
| 11
| 57
| 25.090909
| 0.885714
| 0.315217
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0.2
| 0.4
| 0
| 0.8
| 0
| 1
| 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
| 0
| 0
| 1
| 1
| 0
| 1
| 0
|
0
| 4
|
e26ab268d86bd828d0860e3e91cea1b9efb5642e
| 283
|
py
|
Python
|
nameko/dependency_providers.py
|
vlcinsky/nameko
|
88d7e5211de4fcc1c34cd7f84d7c77f0619c5f5d
|
[
"Apache-2.0"
] | 3,425
|
2016-11-10T17:12:42.000Z
|
2022-03-31T19:07:49.000Z
|
nameko/dependency_providers.py
|
vlcinsky/nameko
|
88d7e5211de4fcc1c34cd7f84d7c77f0619c5f5d
|
[
"Apache-2.0"
] | 371
|
2020-03-04T21:51:56.000Z
|
2022-03-31T20:59:11.000Z
|
nameko/dependency_providers.py
|
vlcinsky/nameko
|
88d7e5211de4fcc1c34cd7f84d7c77f0619c5f5d
|
[
"Apache-2.0"
] | 420
|
2016-11-17T05:46:42.000Z
|
2022-03-23T12:36:06.000Z
|
""" Nameko built-in dependencies.
"""
from nameko.extensions import DependencyProvider
class Config(DependencyProvider):
""" Dependency provider for accessing configuration values.
"""
def get_dependency(self, worker_ctx):
return self.container.config.copy()
| 21.769231
| 63
| 0.731449
| 29
| 283
| 7.068966
| 0.827586
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.169611
| 283
| 12
| 64
| 23.583333
| 0.87234
| 0.318021
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 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
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
e26f19602bd096cf30792d0d313ba86cbbb80891
| 117
|
py
|
Python
|
python_developer_tools/cv/detection/CenterNet2/__init__.py
|
carlsummer/python_developer_tools
|
a8c4365b7cc601cda55648cdfd8c0cb1faae132f
|
[
"Apache-2.0"
] | 32
|
2021-06-21T04:49:48.000Z
|
2022-03-29T05:46:59.000Z
|
python_developer_tools/cv/detection/__init__.py
|
HonestyBrave/python_developer_tools
|
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
|
[
"Apache-2.0"
] | 1
|
2021-11-12T03:45:55.000Z
|
2021-11-12T03:45:55.000Z
|
python_developer_tools/cv/detection/__init__.py
|
HonestyBrave/python_developer_tools
|
fc0dcf5c4ef088e2e535206dc82f09bbfd01f280
|
[
"Apache-2.0"
] | 10
|
2021-06-03T08:05:05.000Z
|
2021-12-13T03:10:42.000Z
|
# !/usr/bin/env python
# -- coding: utf-8 --
# @Author zengxiaohui
# Datatime:5/18/2021 11:16 AM
# @File:__init__.py
| 19.5
| 29
| 0.65812
| 19
| 117
| 3.842105
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12
| 0.145299
| 117
| 5
| 30
| 23.4
| 0.61
| 0.905983
| 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
|
e28d75c26117e958b80cfacdf7208be6e7ac6456
| 392
|
py
|
Python
|
src/test/test_xml2fasta.py
|
yutake27/HMDM
|
a16c6e77cae9509ccf49140171797680068709aa
|
[
"MIT"
] | 2
|
2021-12-09T00:12:35.000Z
|
2022-01-10T13:05:22.000Z
|
src/test/test_xml2fasta.py
|
yutake27/HMDM
|
a16c6e77cae9509ccf49140171797680068709aa
|
[
"MIT"
] | null | null | null |
src/test/test_xml2fasta.py
|
yutake27/HMDM
|
a16c6e77cae9509ccf49140171797680068709aa
|
[
"MIT"
] | null | null | null |
import os
import sys
sys.path.append(os.path.abspath('..'))
import xml2fasta
xml_path = '../../blast-xml/pdbaa_20200712/1bxo_1.xml'
fasta_path = '../../blast-xml/pdbaa_20200712/1bxo_1.fasta'
xml2fasta.xml2fasta(xml_path, fasta_path)
xml_path = '../../blast-xml/pdbaa_20200712/4gg1_1.xml'
fasta_path = '../../blast-xml/pdbaa_20200712/4gg1_1.fasta'
xml2fasta.xml2fasta(xml_path, fasta_path)
| 28
| 58
| 0.75
| 60
| 392
| 4.633333
| 0.25
| 0.100719
| 0.172662
| 0.244604
| 0.791367
| 0.791367
| 0.769784
| 0.532374
| 0
| 0
| 0
| 0.128415
| 0.066327
| 392
| 14
| 59
| 28
| 0.631148
| 0
| 0
| 0.2
| 0
| 0
| 0.43257
| 0.427481
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.3
| 0
| 0.3
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e28d7b132f9ec6cc9db2a59b7321ec04ee8815b0
| 17,723
|
py
|
Python
|
tests/unit/datasources_test.py
|
jamesmistry/weaveq
|
810f6664a06dcbf5808f837baffe66830f14b30b
|
[
"MIT"
] | null | null | null |
tests/unit/datasources_test.py
|
jamesmistry/weaveq
|
810f6664a06dcbf5808f837baffe66830f14b30b
|
[
"MIT"
] | null | null | null |
tests/unit/datasources_test.py
|
jamesmistry/weaveq
|
810f6664a06dcbf5808f837baffe66830f14b30b
|
[
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
"""@package datasources_test
Tests for weaveq.datasources
"""
import unittest
import tempfile
import json
import os
import types
import sys
from weaveq.datasources import AppDataSourceBuilder, JsonLinesDataSource, JsonDataSource, CsvDataSource, ElasticsearchDataSource
from weaveq import wqexception
class TestConfig(unittest.TestCase):
"""Tests Config class
"""
def test_data_source_introspection(self):
"""Data sources are correctly discovered and indexed.
"""
expected_data_sources = ["json_lines", "jsl", "json", "js", "elasticsearch", "el", "csv"]
expected_data_sources.sort()
subject = AppDataSourceBuilder({})
self.assertEquals(len(subject._source_type_mappings), len(expected_data_sources))
self.assertEquals(subject._source_type_mappings["json_lines"], JsonLinesDataSource)
self.assertEquals(subject._source_type_mappings["jsl"], JsonLinesDataSource)
self.assertEquals(subject._source_type_mappings["json"], JsonDataSource)
self.assertEquals(subject._source_type_mappings["js"], JsonDataSource)
self.assertEquals(subject._source_type_mappings["csv"], CsvDataSource)
self.assertEquals(subject.valid_source_types, ", ".join(expected_data_sources))
def test_uri_parse_valid(self):
"""Parse a correctly formatted source type out of a URI string.
"""
subject = AppDataSourceBuilder({})
self.assertEquals(subject._parse_uri("json_lines:/test/uri"), {"source_type":"json_lines", "uri":"/test/uri", "data_source_class":JsonLinesDataSource})
def test_uri_parse_case_insensitive_source_type(self):
"""Parse a correctly formatted source type out of a URI string, regardless of source type case.
"""
subject = AppDataSourceBuilder({})
self.assertEquals(subject._parse_uri("JSON_lines:/test/uri"), {"source_type":"json_lines", "uri":"/test/uri", "data_source_class":JsonLinesDataSource})
def test_uri_parse_alternative_source_type_ident(self):
"""Parse a correctly formatted source type out of a URI string, using an alternative source type ident string.
"""
subject = AppDataSourceBuilder({})
self.assertEquals(subject._parse_uri("jsl:/test/uri"), {"source_type":"json_lines", "uri":"/test/uri", "data_source_class":JsonLinesDataSource})
def test_parse_uri_invalid(self):
"""Parse a missing source type from a URI string
"""
subject = AppDataSourceBuilder({})
with self.assertRaises(wqexception.DataSourceBuildError):
subject._parse_uri("/test/uri")
def test_parse_uri_not_greedy(self):
"""Make sure the source type parsing finishes at the first colon
"""
subject = AppDataSourceBuilder({})
self.assertEquals(subject._parse_uri("json_lines:not_a_type:/test/uri"), {"source_type":"json_lines", "uri":"not_a_type:/test/uri", "data_source_class":JsonLinesDataSource})
def test_parse_uri_invalid_source_type(self):
"""Parse an invalid source type from a URI string
"""
subject = AppDataSourceBuilder({})
with self.assertRaises(wqexception.DataSourceBuildError):
subject._parse_uri("invalid_source_type:/test/uri")
def test_datasource_construction(self):
"""Construct a DataSource object correctly from a URI and filter string.
"""
subject = AppDataSourceBuilder({"data_sources":{"elasticsearch":{"hosts":["127.0.0.1:5601"]}}})
constructed_datasource = subject("elasticsearch:test_index_name", "test_filter_string")
self.assertTrue(isinstance(constructed_datasource, ElasticsearchDataSource))
self.assertEquals(constructed_datasource.index_name, "test_index_name")
self.assertEquals(constructed_datasource.filter_string, "test_filter_string")
def test_elasticds_no_hosts_config(self):
"""Elasticsearch datasource is not configured with hosts.
"""
with self.assertRaises(wqexception.DataSourceBuildError):
subject = AppDataSourceBuilder({"data_sources":{"elasticsearch":{}}})("elasticsearch:test_index_name", "test_filter_string")
def test_elasticds_default_config(self):
"""Elasticsearch datasource config items are correctly set to defaults.
"""
subject = AppDataSourceBuilder({"data_sources":{"elasticsearch":{"hosts":["127.0.0.1:5601"]}}})("elasticsearch:test_index_name", "test_filter_string")
self.assertEquals(subject.config["hosts"], ["127.0.0.1:5601"])
self.assertEquals(subject.config["timeout"], 10)
self.assertEquals(subject.config["use_ssl"], False)
self.assertEquals(subject.config["verify_certs"], False)
self.assertEquals(subject.config["ca_certs"], None)
self.assertEquals(subject.config["client_cert"], None)
self.assertEquals(subject.config["client_key"], None)
def test_elasticds_supplied_config(self):
"""Elasticsearch datasource config applied correctly
"""
subject = AppDataSourceBuilder({"data_sources":{"elasticsearch":{"hosts":["127.0.0.1:5601","10.10.10.1:1280"],"timeout":20,"use_ssl":True,"verify_certs":True,"ca_certs":"/tmp/ca_certs","client_cert":"/tmp/client_cert","client_key":"/tmp/client_key"}}})("elasticsearch:test_index_name", "test_filter_string")
self.assertEquals(subject.config["hosts"], ["127.0.0.1:5601","10.10.10.1:1280"])
self.assertEquals(subject.config["timeout"], 20)
self.assertEquals(subject.config["use_ssl"], True)
self.assertEquals(subject.config["verify_certs"], True)
self.assertEquals(subject.config["ca_certs"], "/tmp/ca_certs")
self.assertEquals(subject.config["client_cert"], "/tmp/client_cert")
self.assertEquals(subject.config["client_key"], "/tmp/client_key")
def test_json_lines_batch_load(self):
"""json_lines data source batch loads a file successfully.
"""
test_data = '{"test_field_1a":"test_value_1a", "test_field_2a":"test_value_2a"}\n{"test_field_1b":"test_value_1b", "test_field_2b":"test_value_2b"}\n{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}'
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(bytes(test_data, "utf-8"))
else:
config_file.write(test_data)
try:
subject = JsonLinesDataSource(tmpfile[1], None)
self.assertEquals(subject.batch(), [{"test_field_1a":"test_value_1a", "test_field_2a":"test_value_2a"},{"test_field_1b":"test_value_1b", "test_field_2b":"test_value_2b"},{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}])
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
def test_json_lines_stream_load(self):
"""json_lines data source stream loads a file successfully.
"""
test_data = '{"test_field_1a":"test_value_1a", "test_field_2a":"test_value_2a"}\n{"test_field_1b":"test_value_1b", "test_field_2b":"test_value_2b"}\n{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}'
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(bytes(test_data, "utf-8"))
else:
config_file.write(test_data)
try:
result = []
subject = JsonLinesDataSource(tmpfile[1], None)
for record in subject.stream():
result.append(record)
self.assertEquals(result, [{"test_field_1a":"test_value_1a", "test_field_2a":"test_value_2a"},{"test_field_1b":"test_value_1b", "test_field_2b":"test_value_2b"},{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}])
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
def test_json_lines_load_error(self):
"""json_lines data source encounters error loading file.
"""
test_data = '{"test_field_1a":"test_value_1a", "test_field_2a":"test_value_2a"}\n{"test_field_1b":"test_value_1b", "test_field_2b":"test_value_2b"}\n{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"'
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(bytes(test_data, "utf-8"))
else:
config_file.write(test_data)
try:
result = []
subject = JsonLinesDataSource(tmpfile[1], None)
with self.assertRaises(Exception):
subject.batch()
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
def test_json_lines_utf8(self):
"""json_lines data source handles UTF-8 OK.
"""
test_data = u'{"กว่า":"κόσμε", "test_field_2a":"test_value_2a"}\n{"test_field_1b":"いろはにほへとちりぬるを", "Heizölrückstoßabdämpfung":"test_value_2b"}\n{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}'.encode("utf-8")
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(test_data)
else:
config_file.write(test_data)
try:
subject = JsonLinesDataSource(tmpfile[1], None)
self.assertEquals(subject.batch(), [{u"กว่า":u"κόσμε", "test_field_2a":"test_value_2a"},{"test_field_1b":u"いろはにほへとちりぬるを", u"Heizölrückstoßabdämpfung":"test_value_2b"},{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}])
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
def test_json_batch_load(self):
"""json data source batch loads a file successfully.
"""
test_data = '[{"test_field_1a":"test_value_1a", "test_field_2a":"test_value_2a"},{"test_field_1b":"test_value_1b", "test_field_2b":"test_value_2b"},{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}]'
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(bytes(test_data, "utf-8"))
else:
config_file.write(test_data)
try:
subject = JsonDataSource(tmpfile[1], None)
self.assertEquals(subject.batch(), [{"test_field_1a":"test_value_1a", "test_field_2a":"test_value_2a"},{"test_field_1b":"test_value_1b", "test_field_2b":"test_value_2b"},{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}])
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
def test_json_stream_load(self):
"""json data source stream loads a file successfully.
"""
test_data = '[{"test_field_1a":"test_value_1a", "test_field_2a":"test_value_2a"},{"test_field_1b":"test_value_1b", "test_field_2b":"test_value_2b"},{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}]'
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(bytes(test_data, "utf-8"))
else:
config_file.write(test_data)
try:
subject = JsonDataSource(tmpfile[1], None)
result = []
for record in subject.stream():
result.append(record)
self.assertEquals(result, [{"test_field_1a":"test_value_1a", "test_field_2a":"test_value_2a"},{"test_field_1b":"test_value_1b", "test_field_2b":"test_value_2b"},{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}])
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
def test_json_no_list_root(self):
"""json data source stream cannot load a document without a list root.
"""
test_data = '{"a":{"test_field_1a":"test_value_1a", "test_field_2a":"test_value_2a"},"b":{"test_field_1b":"test_value_1b", "test_field_2b":"test_value_2b"},"c":{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}}'
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(bytes(test_data, "utf-8"))
else:
config_file.write(test_data)
try:
subject = JsonDataSource(tmpfile[1], None)
with self.assertRaises(wqexception.DataSourceError):
subject.batch()
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
def test_json_utf8(self):
"""json data source handles UTF-8 OK.
"""
test_data = u'[{"กว่า":"κόσμε", "test_field_2a":"test_value_2a"},{"test_field_1b":"いろはにほへとちりぬるを", "Heizölrückstoßabdämpfung":"test_value_2b"},{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}]'.encode("utf-8")
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(test_data)
else:
config_file.write(test_data)
try:
subject = JsonDataSource(tmpfile[1], None)
self.assertEquals(subject.batch(), [{u"กว่า":u"κόσμε", "test_field_2a":"test_value_2a"},{"test_field_1b":u"いろはにほへとちりぬるを", u"Heizölrückstoßabdämpfung":"test_value_2b"},{"test_field_1c":"test_value_1c", "test_field_2c":"test_value_2c"}])
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
def test_csv_batch_load(self):
"""csv data source batch loads a file successfully with field names.
"""
test_data = '"field_a","field_b","field_c"\n"row0cola","row0colb","row0colc"\n"row1cola","row1colb","row1colc"\n"row2cola","row2colb","row2colc"\n'
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(bytes(test_data, "utf-8"))
else:
config_file.write(test_data)
try:
subject = CsvDataSource(tmpfile[1], None, {"first_row_names":True})
self.assertEquals(subject.batch(), [{"field_a":"row0cola", "field_b":"row0colb", "field_c":"row0colc"},{"field_a":"row1cola", "field_b":"row1colb", "field_c":"row1colc"},{"field_a":"row2cola", "field_b":"row2colb", "field_c":"row2colc"}])
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
def test_csv_stream_load(self):
"""csv data source stream loads a file successfully with field names.
"""
test_data = '"field_a","field_b","field_c"\n"row0cola","row0colb","row0colc"\n"row1cola","row1colb","row1colc"\n"row2cola","row2colb","row2colc"\n'
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(bytes(test_data, "utf-8"))
else:
config_file.write(test_data)
try:
subject = CsvDataSource(tmpfile[1], None, {"first_row_names":True})
result = []
for record in subject.stream():
result.append(record)
self.assertEquals(result, [{"field_a":"row0cola", "field_b":"row0colb", "field_c":"row0colc"},{"field_a":"row1cola", "field_b":"row1colb", "field_c":"row1colc"},{"field_a":"row2cola", "field_b":"row2colb", "field_c":"row2colc"}])
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
def test_csv_no_field_names(self):
"""csv data source loads a file with no field names.
"""
test_data = '"row0cola","row0colb","row0colc"\n"row1cola","row1colb","row1colc"\n"row2cola","row2colb","row2colc"\n'
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(bytes(test_data, "utf-8"))
else:
config_file.write(test_data)
try:
subject = CsvDataSource(tmpfile[1], None, {"first_row_names":False})
self.assertEquals(subject.batch(), [{"column_1":"row0cola", "column_2":"row0colb", "column_3":"row0colc"},{"column_1":"row1cola", "column_2":"row1colb", "column_3":"row1colc"},{"column_1":"row2cola", "column_2":"row2colb", "column_3":"row2colc"}])
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
def test_csv_utf8(self):
"""csv input with UTF-8 characters
"""
test_data = u'"กว่า","áðan","τὴν"\n"κόσμε","row0colb","row0colc"\n"row1cola","Heizölrückstoßabdämpfung","row1colc"\n"row2cola","row2colb","いろはにほへとちりぬるを"\n'.encode("utf-8")
tmpfile = tempfile.mkstemp()
with open(tmpfile[1], "wb") as config_file:
if (sys.version_info.major >= 3):
config_file.write(test_data)
else:
config_file.write(test_data)
try:
subject = CsvDataSource(tmpfile[1], None, {"first_row_names":True})
self.assertEquals(subject.batch(), [{u"กว่า":u"κόσμε", u"áðan":"row0colb", u"τὴν":"row0colc"},{u"กว่า":"row1cola", u"áðan":u"Heizölrückstoßabdämpfung", u"τὴν":"row1colc"},{u"กว่า":"row2cola", u"áðan":"row2colb", u"τὴν":u"いろはにほへとちりぬるを"}])
finally:
os.close(tmpfile[0])
os.unlink(tmpfile[1])
| 50.637143
| 315
| 0.64137
| 2,207
| 17,723
| 4.867241
| 0.090621
| 0.063675
| 0.066375
| 0.026531
| 0.808695
| 0.766152
| 0.712437
| 0.676969
| 0.66226
| 0.652486
| 0
| 0.027391
| 0.208994
| 17,723
| 349
| 316
| 50.782235
| 0.738284
| 0.09293
| 0
| 0.668016
| 0
| 0.048583
| 0.301981
| 0.144971
| 0
| 0
| 0
| 0
| 0.174089
| 1
| 0.093117
| false
| 0
| 0.032389
| 0
| 0.129555
| 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
|
e290ea756117154995834aade4c0614ed6e3fff1
| 24
|
py
|
Python
|
tests/tpath/dn3/conf.py
|
kajigga/pop
|
dc5152bd72f81007f5863640aa8f4b939e52387d
|
[
"Apache-2.0"
] | 48
|
2019-05-21T16:10:49.000Z
|
2021-12-04T18:02:20.000Z
|
tests/tpath/dn3/conf.py
|
kajigga/pop
|
dc5152bd72f81007f5863640aa8f4b939e52387d
|
[
"Apache-2.0"
] | 43
|
2019-05-21T22:39:44.000Z
|
2020-02-07T16:37:29.000Z
|
tests/tpath/dn3/conf.py
|
kajigga/pop
|
dc5152bd72f81007f5863640aa8f4b939e52387d
|
[
"Apache-2.0"
] | 18
|
2019-05-21T16:10:42.000Z
|
2019-12-13T16:28:36.000Z
|
DYNE = {'dn1': ['dn1']}
| 12
| 23
| 0.416667
| 3
| 24
| 3.333333
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 0.166667
| 24
| 1
| 24
| 24
| 0.4
| 0
| 0
| 0
| 0
| 0
| 0.25
| 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
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e2afc19a313ba0c46dc8c5e7598094948821232c
| 252
|
py
|
Python
|
tests/test_unpipe.py
|
python-pipe/hellp
|
51fd7c9143ee8ce6392b9b877036ad4347ad29a5
|
[
"MIT"
] | 123
|
2018-07-31T19:17:27.000Z
|
2022-03-18T15:29:07.000Z
|
tests/test_unpipe.py
|
python-pipe/hellp
|
51fd7c9143ee8ce6392b9b877036ad4347ad29a5
|
[
"MIT"
] | 11
|
2019-05-01T18:01:59.000Z
|
2022-01-01T06:43:36.000Z
|
tests/test_unpipe.py
|
python-pipe/hellp
|
51fd7c9143ee8ce6392b9b877036ad4347ad29a5
|
[
"MIT"
] | 4
|
2019-06-07T12:03:53.000Z
|
2021-05-10T20:29:44.000Z
|
from sspipe import p, px, unpipe
def test_unpipe_active():
a_pipe = px + 1 | px * 5
func = unpipe(a_pipe)
assert func(0) == 5
def test_unpipe_passive():
func = lambda x: (x + 1) * 5
func = unpipe(func)
assert func(0) == 5
| 21
| 32
| 0.587302
| 41
| 252
| 3.463415
| 0.463415
| 0.098592
| 0.183099
| 0.169014
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044444
| 0.285714
| 252
| 12
| 33
| 21
| 0.744444
| 0
| 0
| 0.222222
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.222222
| 1
| 0.222222
| false
| 0.111111
| 0.111111
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
e2b170d64d7b65cd8fff14da60eda87854504d0b
| 623
|
py
|
Python
|
src/blog/sitemap.py
|
manyunkai/dannysite4
|
188057eed013f8daca52cda71d51c24b636d0667
|
[
"Apache-2.0"
] | 22
|
2015-11-27T03:15:58.000Z
|
2020-10-29T04:01:57.000Z
|
src/blog/sitemap.py
|
manyunkai/dannysite4
|
188057eed013f8daca52cda71d51c24b636d0667
|
[
"Apache-2.0"
] | null | null | null |
src/blog/sitemap.py
|
manyunkai/dannysite4
|
188057eed013f8daca52cda71d51c24b636d0667
|
[
"Apache-2.0"
] | 21
|
2015-12-30T01:43:42.000Z
|
2020-10-29T04:01:58.000Z
|
# -*-coding:utf-8 -*-
"""
Created on 2015-05-21
@author: Danny<manyunkai@hotmail.com>
DannyWork Project
"""
from __future__ import unicode_literals
from django.contrib.sitemaps import Sitemap
from django.core.urlresolvers import reverse
from .models import Blog
class BlogSitemap(Sitemap):
"""
博客 Sitemap
"""
changefreq = 'never'
priority = 0.8
def items(self):
return Blog.objects.filter(is_deleted=False, is_active=True).order_by('-created')
def lastmod(self, obj):
return obj.created
def location(self, obj):
return reverse('blog_detail', args=[obj.id])
| 18.878788
| 89
| 0.682183
| 80
| 623
| 5.2
| 0.6875
| 0.048077
| 0.0625
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.021956
| 0.195827
| 623
| 32
| 90
| 19.46875
| 0.808383
| 0.176565
| 0
| 0
| 0
| 0
| 0.04898
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.230769
| false
| 0
| 0.307692
| 0.230769
| 1
| 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
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
2c5a66efdbaee46a8c8259ba0b0d3f962dca20c6
| 2,887
|
py
|
Python
|
tifa/apps/admin/app.py
|
twocucao/tifa
|
f703fd27f54000e7d51f06d2456d09cc79e0ab72
|
[
"MIT"
] | 71
|
2020-04-16T04:28:45.000Z
|
2022-03-31T22:45:11.000Z
|
tifa/apps/admin/app.py
|
twocucao/tifa
|
f703fd27f54000e7d51f06d2456d09cc79e0ab72
|
[
"MIT"
] | 6
|
2021-05-13T06:32:38.000Z
|
2022-03-04T01:18:34.000Z
|
tifa/apps/admin/app.py
|
twocucao/tifa
|
f703fd27f54000e7d51f06d2456d09cc79e0ab72
|
[
"MIT"
] | 12
|
2021-05-01T08:43:11.000Z
|
2022-03-29T00:58:54.000Z
|
from fastapi_utils.api_model import APIModel
from tifa.apps.admin.local import g
from tifa.apps.admin.router import bp
from tifa.models.app import App
class TApp(APIModel):
id: str
name: str
@bp.list("/apps", out=TApp, summary="App", tags=["App"])
def apps_list():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.item("/app", out=TApp, summary="App", tags=["App"])
def app_item():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.item("/app/fetch_manifest", out=TApp, summary="App", tags=["App"])
def app_fetch_manifest():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.op("/app/create", out=TApp, summary="App", tags=["App"])
def app_create():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.op("/app/update", out=TApp, summary="App", tags=["App"])
def app_update():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.op("/app/activate", out=TApp, summary="App", tags=["App"])
def app_activate():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.op("/app/deactivate", out=TApp, summary="App", tags=["App"])
def app_deactivate():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.op("/app/delete", out=TApp, summary="App", tags=["App"])
def app_delete():
ins = g.adal.first_or_404(App)
return {"items": ins}
class TAppInstallation(APIModel):
id: str
name: str
@bp.list(
"/app/installations", out=TAppInstallation, summary="AppInstallation", tags=["App"]
)
def app_installations():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.item(
"/app/installation", out=TAppInstallation, summary="AppInstallation", tags=["App"]
)
def app_installation():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.item(
"/app/delete_failed_installation",
out=TAppInstallation,
summary="AppInstallation",
tags=["App"],
)
def app_delete_failed_installation():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.op("/app/install", out=TApp, summary="App", tags=["App"])
def app_install():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.op("/app/retry_install", out=TApp, summary="App", tags=["App"])
def app_retry_install():
ins = g.adal.first_or_404(App)
return {"items": ins}
class TAppToken(APIModel):
id: str
name: str
@bp.op("/app/token_create", out=TAppToken, summary="AppInstallation", tags=["App"])
def app_token_create():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.op("/app/token_update", out=TAppToken, summary="AppInstallation", tags=["App"])
def app_token_update():
ins = g.adal.first_or_404(App)
return {"items": ins}
@bp.op("/app/token_verify", out=TAppToken, summary="AppInstallation", tags=["App"])
def app_token_verify():
ins = g.adal.first_or_404(App)
return {"items": ins}
| 22.912698
| 87
| 0.654312
| 428
| 2,887
| 4.264019
| 0.121495
| 0.06137
| 0.087671
| 0.113973
| 0.810959
| 0.804384
| 0.792329
| 0.749041
| 0.604384
| 0.406027
| 0
| 0.019672
| 0.154832
| 2,887
| 125
| 88
| 23.096
| 0.728279
| 0
| 0
| 0.465116
| 0
| 0
| 0.167648
| 0.010738
| 0
| 0
| 0
| 0
| 0
| 1
| 0.186047
| false
| 0
| 0.046512
| 0
| 0.523256
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
2c74b79a1f64ac93554c8a57c7b7367adcbe48e0
| 30
|
py
|
Python
|
tests/__init__.py
|
jcs-lambda/lambdata-jcs-lambda
|
6fa6c097498ce119a61cbe600c2656751f849ed4
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
jcs-lambda/lambdata-jcs-lambda
|
6fa6c097498ce119a61cbe600c2656751f849ed4
|
[
"MIT"
] | 1
|
2020-03-31T11:09:59.000Z
|
2020-03-31T11:09:59.000Z
|
tests/__init__.py
|
jcs-lambda/lambdata-jcs-lambda
|
6fa6c097498ce119a61cbe600c2656751f849ed4
|
[
"MIT"
] | 1
|
2020-02-12T00:40:00.000Z
|
2020-02-12T00:40:00.000Z
|
"""Unit tests for df_utils"""
| 15
| 29
| 0.666667
| 5
| 30
| 3.8
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.133333
| 30
| 1
| 30
| 30
| 0.730769
| 0.766667
| 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
|
2c82948cae6b990099dd1d4b859d1e92fde09ff3
| 732
|
py
|
Python
|
Katari/sip/response/_1xx.py
|
KalbiProject/Katari
|
9b2b8968fc6952fbcc1170e55bd35dcec3386cfd
|
[
"BSD-3-Clause"
] | 13
|
2020-11-16T12:26:09.000Z
|
2022-02-16T04:02:22.000Z
|
Katari/sip/response/_1xx.py
|
DeWarner/Katari
|
75e3e7e17b7cc2b3eba0b514f5d9d542bd4203b9
|
[
"BSD-3-Clause"
] | 10
|
2019-04-09T15:05:24.000Z
|
2019-12-11T09:51:33.000Z
|
Katari/sip/response/_1xx.py
|
DeWarner/Katari
|
75e3e7e17b7cc2b3eba0b514f5d9d542bd4203b9
|
[
"BSD-3-Clause"
] | 4
|
2019-04-15T07:37:09.000Z
|
2020-06-09T06:42:46.000Z
|
from Katari.sip import SipMessage
class Trying100(SipMessage):
def __init__(self):
super().__init__()
self.method_line = "SIP/2.0 100 Trying\r\n"
class Ringing180(SipMessage):
def __init__(self):
super().__init__()
self.method_line = "SIP/2.0 180 Ringing\r\n"
class CallisBeingForwarded181:
def __init__(self):
pass
class Queued182(SipMessage):
def __init__(self):
super().__init__()
self.method_line = "SIP/2.0 182 Queued\r\n"
class SessionProgress183(SipMessage):
def __init__(self):
super().__init__()
self.method_line = "SIP/2.0 183 Session Progress\r\n"
class EarlyDialogTerminated199:
def __init__(self):
pass
| 20.333333
| 61
| 0.650273
| 90
| 732
| 4.8
| 0.355556
| 0.185185
| 0.152778
| 0.194444
| 0.453704
| 0.453704
| 0.453704
| 0.453704
| 0.453704
| 0.453704
| 0
| 0.067736
| 0.233607
| 732
| 35
| 62
| 20.914286
| 0.702317
| 0
| 0
| 0.521739
| 0
| 0
| 0.135246
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.26087
| false
| 0.086957
| 0.043478
| 0
| 0.565217
| 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
| 1
| 0
| 0
| 1
| 0
|
0
| 4
|
2c9679edad401fafcd459bc6dd7ecf3d9d847b62
| 353
|
py
|
Python
|
tests/img_metadata_lib/test_image.py
|
Austin-Schmidli/Image-Metadata-API
|
73e7f9cbcd397d6aefe53a75dbb9ff4e6a924f7d
|
[
"MIT"
] | null | null | null |
tests/img_metadata_lib/test_image.py
|
Austin-Schmidli/Image-Metadata-API
|
73e7f9cbcd397d6aefe53a75dbb9ff4e6a924f7d
|
[
"MIT"
] | null | null | null |
tests/img_metadata_lib/test_image.py
|
Austin-Schmidli/Image-Metadata-API
|
73e7f9cbcd397d6aefe53a75dbb9ff4e6a924f7d
|
[
"MIT"
] | null | null | null |
import pytest
from tests.tools.tools import load_test_images
from img_metadata_lib.image import fetch_image
from img_metadata_lib.image import extract_metadata
@pytest.fixture(params=load_test_images())
def image(request):
return request.param
def test_extract_metadata_returns_dict(image):
assert isinstance(extract_metadata(image), dict)
| 23.533333
| 52
| 0.830028
| 51
| 353
| 5.45098
| 0.470588
| 0.161871
| 0.100719
| 0.129496
| 0.208633
| 0.208633
| 0
| 0
| 0
| 0
| 0
| 0
| 0.104816
| 353
| 14
| 53
| 25.214286
| 0.879747
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.111111
| 1
| 0.222222
| false
| 0
| 0.444444
| 0.111111
| 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
| 0
| 0
| 1
| 1
| 1
| 0
|
0
| 4
|
2c9d7948a88b6f7414c1ed35e671b882341220bd
| 115
|
py
|
Python
|
bin/ek.py
|
alfa-bravo/ekstrakto
|
de2dc38815f9e8657b401fc71b9c54fa16b849c7
|
[
"MIT"
] | null | null | null |
bin/ek.py
|
alfa-bravo/ekstrakto
|
de2dc38815f9e8657b401fc71b9c54fa16b849c7
|
[
"MIT"
] | null | null | null |
bin/ek.py
|
alfa-bravo/ekstrakto
|
de2dc38815f9e8657b401fc71b9c54fa16b849c7
|
[
"MIT"
] | null | null | null |
#!/usr/bin/env python3
import sys
sys.path.append('../ekstrakto')
from ekstrakto.cli import entrypoint
entrypoint()
| 23
| 36
| 0.773913
| 16
| 115
| 5.5625
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.009434
| 0.078261
| 115
| 5
| 37
| 23
| 0.830189
| 0.182609
| 0
| 0
| 0
| 0
| 0.12766
| 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
|
2cc4107a8fa7568a28442a0ae20e2fcdbd7eeb97
| 186
|
py
|
Python
|
utils/__init__.py
|
utplanets/deepmars2
|
48146ff9e0689b520d54421a433ba4a38dd24d55
|
[
"MIT"
] | 2
|
2021-08-08T03:06:58.000Z
|
2021-11-25T04:06:00.000Z
|
utils/__init__.py
|
utplanets/deepmars2
|
48146ff9e0689b520d54421a433ba4a38dd24d55
|
[
"MIT"
] | null | null | null |
utils/__init__.py
|
utplanets/deepmars2
|
48146ff9e0689b520d54421a433ba4a38dd24d55
|
[
"MIT"
] | 2
|
2020-11-23T09:38:26.000Z
|
2021-02-26T01:14:28.000Z
|
from dotenv import find_dotenv, load_dotenv
import sys
import os
def getenv(name):
val = os.getenv(name)
return val
def load_env():
load_dotenv(find_dotenv())
return
| 13.285714
| 43
| 0.704301
| 28
| 186
| 4.5
| 0.464286
| 0.190476
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.215054
| 186
| 13
| 44
| 14.307692
| 0.863014
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.222222
| false
| 0
| 0.333333
| 0
| 0.777778
| 0
| 1
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
2ccf6465022fd9d4ab94c514c4bf6e9d446ecd88
| 64
|
py
|
Python
|
source/hellogithub.py
|
yy7576/Hello-github
|
f084135a3b2efbbd0424d66aa11d71f553cb17c6
|
[
"Apache-2.0"
] | null | null | null |
source/hellogithub.py
|
yy7576/Hello-github
|
f084135a3b2efbbd0424d66aa11d71f553cb17c6
|
[
"Apache-2.0"
] | null | null | null |
source/hellogithub.py
|
yy7576/Hello-github
|
f084135a3b2efbbd0424d66aa11d71f553cb17c6
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python
#Filename: hellogithub.py
print('Hello World')
| 21.333333
| 25
| 0.75
| 9
| 64
| 5.333333
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.0625
| 64
| 3
| 26
| 21.333333
| 0.8
| 0.625
| 0
| 0
| 0
| 0
| 0.478261
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 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
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
e2dcb48231410f3962bcfab14bf6396a00ee7303
| 145
|
py
|
Python
|
applications/CoSimulationApplication/mpi_extension/MPIExtension.py
|
clazaro/Kratos
|
b947b82c90dfcbf13d60511427f85990d36b90be
|
[
"BSD-4-Clause"
] | 778
|
2017-01-27T16:29:17.000Z
|
2022-03-30T03:01:51.000Z
|
applications/CoSimulationApplication/mpi_extension/MPIExtension.py
|
clazaro/Kratos
|
b947b82c90dfcbf13d60511427f85990d36b90be
|
[
"BSD-4-Clause"
] | 6,634
|
2017-01-15T22:56:13.000Z
|
2022-03-31T15:03:36.000Z
|
applications/CoSimulationApplication/mpi_extension/MPIExtension.py
|
clazaro/Kratos
|
b947b82c90dfcbf13d60511427f85990d36b90be
|
[
"BSD-4-Clause"
] | 224
|
2017-02-07T14:12:49.000Z
|
2022-03-06T23:09:34.000Z
|
import KratosMultiphysics.mpi # importing the MPI-Core, since the MPIExtension directly links to it
from KratosCoSimulationMPIExtension import *
| 48.333333
| 99
| 0.848276
| 17
| 145
| 7.235294
| 0.823529
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.117241
| 145
| 2
| 100
| 72.5
| 0.960938
| 0.462069
| 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
|
e2f009fc1676cad73b999eb003c7891fb5fa67fb
| 4,451
|
py
|
Python
|
sanitise/sanitise.py
|
wapdat/ppi-sanistise
|
566891cbf12d1438857cb07b512fb7654370f104
|
[
"Apache-2.0"
] | 4
|
2018-06-19T19:41:13.000Z
|
2022-02-15T09:41:41.000Z
|
sanitise/sanitise.py
|
wapdat/ppi-sanistise
|
566891cbf12d1438857cb07b512fb7654370f104
|
[
"Apache-2.0"
] | null | null | null |
sanitise/sanitise.py
|
wapdat/ppi-sanistise
|
566891cbf12d1438857cb07b512fb7654370f104
|
[
"Apache-2.0"
] | 3
|
2019-10-31T01:54:11.000Z
|
2020-01-13T11:05:10.000Z
|
import re
import nltk
debug = False
list = ''
def tokenise(doc):
tokenized_doc = nltk.word_tokenize(doc)
tagged_sentences = nltk.pos_tag(tokenized_doc)
ne_chunked_sents = nltk.ne_chunk(tagged_sentences)
named_entities = []
for tagged_tree in ne_chunked_sents:
if hasattr(tagged_tree, 'label'):
entity_name = ' '.join(c[0] for c in tagged_tree.leaves()) #
entity_type = tagged_tree.label() # get NE category
named_entities.append((entity_name, entity_type))
doc = doc.replace(entity_name, entity_type)
if (debug) : print(named_entities)
if (debug) : print('%-20s "%s"' % ('NER', doc))
return doc
def regexReplace( str, token, desc, regex):
global list
list = list + ', ' + desc
r = re.compile(regex)
cleanStr = re.sub( r, token, str, re.I)
if (debug) :
if (str != cleanStr):
print('%-20s "%s"' % (desc, cleanStr))
return cleanStr
def replacePPI(str):
str = regexReplace(str, 'NAME@EMAIL.COM', 'email address', '[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+')
str = regexReplace(str, 'UKPOSTCODE', 'uk postcode', '(gir ?0aa|GIR ?0AA|[a-pr-uwyzA-PR-UWYZ]([0-9]{1,2}|([a-hk-yA-HK-Y][0-9]([0-9abehmnprv-yABEHMNPRV-Y])?)|[0-9][a-hjkps-uwA-HJKPS-UW]) ?[0-9][abd-hjlnp-uw-zABD-HJLNP-UW-Z]{2})')
# Amex numbers look like US phone numbers
str = regexReplace(str, 'CARDNUM', 'Amex', '3[47][0-9]{13}')
str = regexReplace(str, 'CARDNUM', 'BCGlobal', '(6541|6556)[0-9]{12}')
str = regexReplace(str, 'CARDNUM', 'Carte Blanche Card', '389[0-9]{11}')
str = regexReplace(str, 'CARDNUM', 'Diners Club Card', '3(?:0[0-5]|[68][0-9])[0-9]{11}')
str = regexReplace(str, 'CARDNUM', 'Discover Card', '65[4-9][0-9]{13}|64[4-9][0-9]{13}|6011[0-9]{12}|(622(?:12[6-9]|1[3-9][0-9]|[2-8][0-9][0-9]|9[01][0-9]|92[0-5])[0-9]{10})')
str = regexReplace(str, 'CARDNUM', 'Insta Payment Card', '63[7-9][0-9]{13}')
str = regexReplace(str, 'CARDNUM', 'JCB Card', '(?:2131|1800|35\d{3})\d{11}$')
str = regexReplace(str, 'CARDNUM', 'KoreanLocalCard', '9[0-9]{15}')
str = regexReplace(str, 'CARDNUM', 'Laser Card', '(6304|6706|6709|6771)[0-9]{12,15}')
str = regexReplace(str, 'CARDNUM', 'Maestro Card', '(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}')
str = regexReplace(str, 'CARDNUM', 'Mastercard', '5[1-5][0-9]{14}')
str = regexReplace(str, 'CARDNUM', 'Solo Card', '(6334|6767)[0-9]{12}|(6334|6767)[0-9]{14}|(6334|6767)[0-9]{15}')
str = regexReplace(str, 'CARDNUM', 'Switch Card', '(4903|4905|4911|4936|6333|6759)[0-9]{12}|(4903|4905|4911|4936|6333|6759)[0-9]{14}|(4903|4905|4911|4936|6333|6759)[0-9]{15}|564182[0-9]{10}|564182[0-9]{12}|564182[0-9]{13}|633110[0-9]{10}|633110[0-9]{12}|633110[0-9]{13}')
str = regexReplace(str, 'CARDNUM', 'Union Pay Card', '(62[0-9]{14,17})')
str = regexReplace(str, 'CARDNUM', 'Visa Card', '4[0-9]{12}(?:[0-9]{3})?')
str = regexReplace(str, 'CARDNUM', 'Visa Master Card', '(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14})')
str = regexReplace(str, 'ZIPCODEUS' , 'zip code', '[0-9]{5}(-[0-9]{4})?')
str = regexReplace(str, 'POSTCODECA', 'Canada postcode', '[abceghj-nprstvxyABCEGHJ-NPRSTVXY]{1}[0-9]{1}[abceghj-nprstv-zABCEGHJ-NPRSTV-Z]{1}[ ]?[0-9]{1}[abceghj-nprstv-zABCEGHJ-NPRSTV-Z]{1}[0-9]{1}')
### after all the more specific matches
# Problem with chomping leading and training space
str = regexReplace(str, ' USPHONE ', 'US phone', '(1?\W*([2-9][0-8][0-9])\W*([2-9][0-9]{2})\W*([0-9]{4})(\se?x?t?(\d*))?)')
str = regexReplace(str, 'USPHONE', 'US phone', '(\s|^)(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?(\s|$)')
str = regexReplace(str, 'SSN', 'ssn', '(?!219-09-9999|078-05-1120)(?!666|000|9\d{2})\d{3}-(?!00)\d{2}-(?!0{4})\d{4}')
str = regexReplace(str, 'UKPHONE', 'uk phone', '(?:(?:\(?(?:0(?:0|11)\)?[\s-]?\(?|\+)44\)?[\s-]?(?:\(?0\)?[\s-]?)?)|(?:\(?0))(?:(?:\d{5}\)?[\s-]?\d{4,5})|(?:\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3}))|(?:\d{3}\)?[\s-]?\d{3}[\s-]?\d{3,4})|(?:\d{2}\)?[\s-]?\d{4}[\s-]?\d{4}))(?:[\s-]?(?:x|ext\.?|\#)\d{3,4})?')
str = regexReplace(str, 'ACCOUNTNO', 'account number', '\d{5-12')
return str
def getSubstituteText(key, type):
return ""
| 65.455882
| 325
| 0.556279
| 751
| 4,451
| 3.263648
| 0.278296
| 0.039984
| 0.183599
| 0.163199
| 0.29539
| 0.228478
| 0.202366
| 0.119543
| 0.070583
| 0.050184
| 0
| 0.148754
| 0.134577
| 4,451
| 68
| 326
| 65.455882
| 0.487539
| 0.031454
| 0
| 0
| 0
| 0.214286
| 0.526255
| 0.376162
| 0
| 0
| 0
| 0
| 0
| 1
| 0.071429
| false
| 0
| 0.035714
| 0.017857
| 0.178571
| 0.053571
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
e2fafad3524e62bbf1a45720cdb5c390f2bc7de1
| 166
|
py
|
Python
|
src/database/create_db.py
|
johnnychiuchiu/Music-Recommender
|
6fd239e1b3bdd8f7687d393ae7eee9bc77d4fe3d
|
[
"FTL",
"Spencer-86",
"Spencer-94",
"Spencer-99"
] | null | null | null |
src/database/create_db.py
|
johnnychiuchiu/Music-Recommender
|
6fd239e1b3bdd8f7687d393ae7eee9bc77d4fe3d
|
[
"FTL",
"Spencer-86",
"Spencer-94",
"Spencer-99"
] | 4
|
2018-02-10T02:04:12.000Z
|
2018-03-22T23:58:01.000Z
|
src/database/create_db.py
|
johnnychiuchiu/Music-Recommender
|
6fd239e1b3bdd8f7687d393ae7eee9bc77d4fe3d
|
[
"FTL",
"Spencer-86",
"Spencer-94",
"Spencer-99"
] | 3
|
2018-03-22T13:10:20.000Z
|
2019-05-27T21:48:14.000Z
|
from schema import db
# from schema.db_models import *
if __name__=='__main__':
# create a new table scheme as defined in the schema script
db.create_all()
| 20.75
| 63
| 0.722892
| 26
| 166
| 4.230769
| 0.730769
| 0.181818
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.204819
| 166
| 7
| 64
| 23.714286
| 0.833333
| 0.53012
| 0
| 0
| 0
| 0
| 0.108108
| 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
|
3905890e51be7396f1cc52b70b8a67111f04e671
| 189
|
py
|
Python
|
src/mlflow_turing_scoring_server/scoring_server/wsgi.py
|
jose-turintech/mlflow-turing-scoring-server
|
2a4ccdc94fa6313f401dad37fd40b232a36dc530
|
[
"BSD-3-Clause"
] | null | null | null |
src/mlflow_turing_scoring_server/scoring_server/wsgi.py
|
jose-turintech/mlflow-turing-scoring-server
|
2a4ccdc94fa6313f401dad37fd40b232a36dc530
|
[
"BSD-3-Clause"
] | null | null | null |
src/mlflow_turing_scoring_server/scoring_server/wsgi.py
|
jose-turintech/mlflow-turing-scoring-server
|
2a4ccdc94fa6313f401dad37fd40b232a36dc530
|
[
"BSD-3-Clause"
] | null | null | null |
import os
from mlflow_turing_scoring_server import scoring_server
from mlflow.pyfunc import load_model
app = scoring_server.init(load_model(os.environ[scoring_server._SERVER_MODEL_PATH]))
| 31.5
| 84
| 0.867725
| 29
| 189
| 5.275862
| 0.482759
| 0.339869
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.074074
| 189
| 5
| 85
| 37.8
| 0.874286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 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
|
390e8d3ebaa4df914f79d0f7c74c72b35535bd99
| 3,997
|
py
|
Python
|
keys.py
|
Narcissuscyn/OCR_ICPR2018
|
9f3b9c7c47bdc0d9d8d1aae39592f43d01d38b72
|
[
"MIT"
] | 2
|
2019-04-19T12:57:32.000Z
|
2020-05-12T06:11:38.000Z
|
keys.py
|
Narcissuscyn/OCR_ICPR2018
|
9f3b9c7c47bdc0d9d8d1aae39592f43d01d38b72
|
[
"MIT"
] | null | null | null |
keys.py
|
Narcissuscyn/OCR_ICPR2018
|
9f3b9c7c47bdc0d9d8d1aae39592f43d01d38b72
|
[
"MIT"
] | null | null | null |
#coding:UTF-8
alphabet='莫斯电子MSHot弯针直胶壳ps:/chin\'a-m.b10%实物拍摄盗图必究镀金端25企业店铺厂家销线束订做皇冠天猫旗舰价RB¥38无毒环保材质快速排水坚固耐用钢珠碗体式下器Te庭技术创新者力?YCW全原装进口IF6PQK9时尚防辐射服+银纤维吊带两件套顶级适于松洗衣机型号EX7U品东莞鸿仪一年小巧台静音设计多重干烧高效节能送除垢剂运费险包邮普通大桶使L款可选种自更方便化妆当镜,软dGryukO至远汽配4奇验探索未知欲不看到底l空王国冒科学岛(韩)朴世卿著申载焕郑浩绘博士的笔记在神之旅中与伙伴们合过黑暗量造成各障碍狂最考和勇气漫画书!教育部推荐朋友读本敢游戏跟着地球御队员去吧马上开始秘然任务激活正宇宙起经历遇万册智慧NDA馨美达寸、扇迅猛风纯铜三挡调滚轴承抢换修火爆促净含:克即溶解吸收个月婴儿阶段奶粉钻喜安海先同步售分钟色旧翻扎染手免煮蜡象g牛仔生微信现货支持如假退秒发顺丰真皮纳您值得拥有栎木格植靴亲氟牙膏丽齿健居屋【】面护清白止蛀减元请联系客改哦江苏浙徽北京广山津河南湖西福建香汗舒爽来洋感觉沉浸受你耳旁旋律脚灵动抚摸丫切都是界里破损赔买透光片泵玻璃态桌族箱按摩*朗康疼痛升加酸惊回馈变频控温触版二厚就五周药准字瓶青平限公司复氢氧铝x为制每主要毫缓胃引灼热心人次日饭前半燥处存或澳芒税代购飞场播淘卡我课童拼认汉组词句他让携点石深圳市启泰兴熱内绒膝袜棉拒绝等待泡沫迎硼砂粘结液四钠外晶泥彩史莱姆宝料雪花土颜随亮素礼数完赚z英道工作遥转希望玩具长厘米车模己师容出社供施检塔行尼译汪立功救援故事守 羊°J瓷砖倒角边棠率捷操今膨胀*螺丝颗度求视宽范围孔距伸缩臂离墙倾斜蓝贝饼州迪响标识拨打短#伪码查询刮涂层V列逸想专Zv华特拉惠民吐血芯性稳定w=仅需块钱双益菌硝细善预疾病超浓酶商第六爱饰寿命理由灯证f张印接刷宣传单折页—·毛巾板盖贴汇营凌瑞華昕電集‘零’门槛武投城首注兵铲赖硬增强战棍雾霾滤田甲醛烟尘灰异味此椰柱形炭站宜轩明亚胸!欢虫蟑螂互吃类连锁卵巢死亡杀饵农登产批杭萧潮总奖宏头壶陈腐紫名精获十届艺皂肌赠甘菊玫瑰薰草茉莉橄榄盏幸厦叠豪医入托备冰勺柜唯雅放置百挑女币红抵所牌另其非纸楼梯q晴橙柠檬好食鲜极关闭℃Ο填“”|春雨划期励资源网浪训练梳堂乐提后拓展冲足基础优念校千锤炼省会余共编严军测试义习《》厨称拟膜疯薇根据户卖采助果呵眼炫抗众疲劳径夏季袖身续欧畅榜壮给珍贵独授权文简汀杨阿诺德瓦辛低鸭评论阅谭旭隆库策邢龚涛丛滴湾辉映滋养魂指走向巅峰辑汕頭學富写插翅膀悟充满程导补苗肥帽芭紧屏管录曲影返菜劲港降萨终老甩睡眠锡枪寄券档闪刃铣刀整钨…诚鑫宗锈票@找骨缝勒斤胖穿痕易纱褪燃封纪表資Ω以稍误差尺證再八坏尖掌轻柔惬意比肤疆刺害添绿佳磨法治区股份附炎见述候。慢盆腔腹;腰隐黄稠症湿瘀致(薄)j懒洲铁胡孝典临蟋蟀间框盛赏布芮利袋莓巴脑卓停~尔圣轧糖秤显示位嘉额交流累储取样夹炒冷肉贡娘私房辣肩九叶祖鲁荷监盒规航咪野疫罐拆棚架粒久&碱池↑局污星相统息浏览背摔浮雕概语研少良移威路络萤云亿盘像执照案介绍哭了润滑油杠散隔栅雷左右碑恩迹答疑殖问钦曹卸约嗑瓜领卷还夜晚梦墨付洁筷漏汤算函√∧;丨×÷[]+-π伟妮酱馆击沪吹留择孩七室幼陪缘約输条旺森鞋古伦艾覆核裁剪释负麥兜妝膚専無裙锋扣"侧踏芝麻妈慕氏烘焙玉谷炸锌永菲娅勿泊禁奥抱枕甜团餐锯割塑钮喇叭贺刻潤麦宠鱼喵伽断誓也翘睫阁熏秋观伤裂灶烦压沾雄题才′哈酥脆综蔬恋园派仁乳哆啦撕豆棒産迷倩姜坊親孕妇饱盈聚男培陆霸又话嗨會些圖為擬實際機裝殼休闲属链朕略萌淇奔驰齐钙粮扫把瓣尿溅栏告别厕枫庆樱情笨猪狐狸尾没狼狗村庄讯晒享暖只纹均匀韧垃圾顿沸裤诗夺说刘搭魔铬藏砍嗮嫩镇種劵积碳焊藍宾洪忠际忆撑伞弧摇豹磁尴尬脱>胜纺罩已消倪凝官佰逆皱秀职崇沐参幕描声常往虹例太沙圆滩掉Λ灸院废泽贼帜急玛群辅「」避羽漆湛俱境巨献谨蒙熨趣◎業□△○?宁波攀贸蕉籁婚露怡垫碎夫越桑蚕财刚偏绳扑钉对帮决这驱鼠密敏長睛刊伊拖鹤兰蔻菁臻霜依镊★蝎龙顾矫嵌帕悦序势般什么魅听歌唱喊聊很剔針搞阳倆發勾俩轮腿祥啥沟暴旨迈铭祛斑飘篇幅笛荟亦跳舞蹈瑜酷拾侣炽灾阻枚林苹难逢杂志孙诞逐忌晨李反乌邦赛裸悔早扬蔡遍`碟爸访吉胎\\抬竭追衡聆晰震撼俄罗恒串圈/.错裱耗及床杯嘴应腻哟è景伯靓佩岁潜寓席壁挂域咨蜂<忧树斗筒瞳琦幻蜕绽讲侦报警杜凰鸣蜜澈媚梨茶極失冬趋将争辰初竞弹而熊忘瞬沁凉竹招冻俪凯蒂午豚苦诉议硕跑责韵笙脸尹织侯母抑浆卫漂缔缇莎绵盟炉键思则握芳帝鹿茸瑪被谁惯'熟哒哇济汁熬副岩赵梅焦虎牢殺體祝瘦蛮蠔粥沃遗从突怒恨戒粹秉拿默占番曜娜并∑恶陶闹那哪黏怀懂醒惑莹開塗層詢網址話標識靠近骏俊堡肚腩鹏嫁烤况芸详继杆抹摆噪疗囊阴胆醇抽筋迟状芊彻黒渍顽槽蝴蝶↓蚊┌枭瀚酵丹恐征偿委邹尤玲珑≤街办臣町仓递禧黎隙誉睿窗兼途饮腾劣疤仿替言±焗髪師蒸輪亞蘭購项目贤菱棕拌械怪陕枣糕辜浴柚芬芦痘灿烂尊偶寒時間延扰①②③④昨阵廿贯绅缤阀鹅氣搜袁账虚侠抠麗咖喱饲搅舌國签庞榻蚀粗钥匙鉴央繁盔钓浇帅寻兔泪擎咬擦奢龟屎鸟粪沥昆欣臭屌肝脏艳蛋虾泉振析纶船応嘟妞荣朵构靡敲翼歪川凡座罚丸疏喉禾●痰笑關東衔粤闽皖脊椎哄呛尽灌溉肘腕臀脖薬細桂枝乾芍龍湯垒<∨>厅扭屁牵娃浦淋洒归裕因酿沂逝烽诊蟹廷婷洛杉矶纽佛刹萬語曰習乎遠來樂君弟犯鮮務琳琅败肴尝骤烹稀偷↖貝鴨烫暂锅煲煎Ⅲ堵蜻蜓翎坐$蕊确赐卉胺兽簧昊貂滨攻郭吕紅晟跃协纲抓嚼赶呼催某鸡肠車→椒弥敬厌倦妍蜀寨鸽徐製藥團龄犬钜绣孜腌姿驼纠遮椅扶弦帖举锐撞铅籍藝術凤卢禹舜乱章怕赢&悉脂硅剃须丙箔㎡亏几逗沈渠肽俏琪葆芷喷痔疮纬熔铸現倍饪住梁弃凳茯箐毅◆何恼剥門書冈恢烊貔貅奕诸桃脾窃琬聪琥珀袭醉租蚂窝穷驾動呆钩曼耀叫借勤困筛■却弱铃炮燕櫥谢酒缸绷氨旦祺乔萃啡吗斋佐浊坑洞荒贈敌篮笼砸藤悠悬仙桥酪洽叮帐宫″渐渡怎昭※眉井但壹谈妙荧Θ锂骑塞舔澡傷軽潔横溺缆淡够拽揭残它仲喝扁疣淌苯寇跨媒姓蓄秦璐薦鐘栓穴逼铠赴葛逊镭衰甄兒進營養級愛该闯涯喂姐妖叔挫抛柄似柴埠拜筐孚镶稻政府庚兆澄闸雙滿凸塊毯彬≥丈煌伏扩丶涵爵恤茄屑奋绩察夷婆窈窕昌橡膳伍酯澎湃审毂涨∣赤若佑▼▲矿馬氯爪符哥驭帘貿溜園陀妹倚杰唛钞▏‖赋輕猎←班肢淤落虐亨赫傅婧岑莲榉芹吴琴幽谜溢鐵數綫许類姑蜗拯渴缺糙绪妻葫乡敷皙她韦宿舍雀羚貨堆蒋铂熙融扔仕末鹰拢仰卧耻奏鼓涡挥呈粽茗枞灭踩宴宸雇葉}{_^〉辨篷媽專優镁糯渗罪闻淮↗侈摘桔鸢渣轿柏銷記組傳賀歲硫泌芙漱锣─珊瑚胤匠丘伐呗磐担霏傻廉臺灣蒜蕾棘狭扳挣悲缚冯愿混苑瑟娇诱藻驶驻順钳锻竖蘑绮荡宋奈缴削這總枯叉戴暑悍危『』荞姚暇猴菇忙贫牧丁鋼瞎璀璨僵尸吨绸涤拔閉強戰侍湘飾箭寺剧渔撰兮竿梢筏萱凹璟骐循帆經搏鬼蚁鼎浅演缀耍啊颊頰荆辈舶鉅餠邪剑貌將興內崋龈橱辆靑芃Ⅱ岳芽轨鲨鳍斌诠気場县贰镍嘛哺瑶戌唤漢頓晓颖禮費糟啾圭[]嗖復咽肿肺咳嗽蕲既聖蓬鹭肯郎碧齊鼻釉糊豌岗匹棵爬剩奉恭朱戈彼哩娣履判烯党坡殿柳侵惜谱喧哗筹暮炖朝踪賞烙淀疙瘩剖腊豫谦宅寳蹭锦蕴姬賣茵沿搓酉坨狄敛μ翔楷撇钛皆肪麒裹扯揉较弛籽炔酮楚呜诀戳厢遂弘誠烈晕鳥患丑橘乖筑唑泳辽婭霓裳蹄設計Φ盾碌槟绞馥織螨胞郵蜘蛛甸轭馅泛斐忍媛館權聘報鴻題點鍵試測驗訣聯彭皎決纷鲤瞄狠痒壊磅酚唇溪革箍玮臨锰疝梵翠∞畸蛙辞厉弗峻燈閃連黛拷株铛咱啸畔郁瑕桐烩撬獻葵盐炙夕雲產畜捕逃蒲軍漾锥柯否貼羅鹦鹉飛闵弄銀積減價員$惹祸玺绎秧绢谐醫療父軒稔盅帛吵颈哮環舵晔彪刨慈芩肃傲捞删張様説⑤⑥⑦⑧凿碰邯郸茨脉鎖岭鞍倡疹茂辦備卜郝爷董枸杞颐汞令琼桨葡萄掘颠曬羡運夯鲟āē憋吻の絮義難創īǐéǎ衍咕噜醋嬰霖艶霉摧毁怖魄殊谋贩勝彦昔烛窍巡舟浑梓菩ε蔓烨彤淄栽羞淑坦躺芜捶磊狮葱懮晞岸辟歸娱欺骗檐熄缎蔽柑晗钒曙珂浣崎鸦唐挺爹邻質飼坠挎陵绗塘哨呐鸳鸯挖扮撸且迁蛇截哎赣翌哲钊吞痱犹埃蛊牡蛎邀耶驴踢阔违陽搬檀槐鳕鋪召區榛歇維觀寝稚攝盜☆赞笈泷咀楂屉宛αβ淨調對適於婉皓朔漳薯帚繹錯過達隧節溫聲崽哑兄衫〖〗坪坝曾碼喰陷髓奴斧骆財戊谅镌ⅠⅨⅩⅪⅫ弓琢磷鸥呢鹃啃霆壽囍髙抄侬勃督乙坤廊廠绕潘叟│澜墅烁廓輝煙窥缨亩廖硒啪護伺藿~膛蝇祁萝燒揚樹寞捡嬉秩縣毡泾窄咚窦雜廣窖魚氛垂楞≦绚觅肖孵押捉峡惧榨煤逍骊拎捆霞顏樣纵橋痴∫濃離見逹靜鲍拳冕砭玖梧晾寶悄揽昇沌躁飄烏澤髮披∩践辫堰予舱乃玄#茧妃咒愣嚴囡挪猜铆钼仑娟獸磺嘧啶█貴慎磕坛挚梭煸恰努珺隋晋鎏搁鳄呀乒乓袍〔〕彰绑風歳煜兹孟拭兑逻噢榕寂仟雁冀禦雯沱帥夢妳黃忽號瀛擒獨腺杏丢咂卤榔捂藕喘鄉膠陳鍋禅緣禪俗吾愉纫恪線劑晖楽眸胚岚馒闷娥跌攸栈炜啄碘贮捧俐泻琐遵矩愁喽耦鯉糜咯珞楊诵洙莊舆跆侨缠媳婦冶蛳凭捏估痤蒄褂涮焖蝌蚪﹢貉挠娴爾吓睦瞅ü猩贾眞褥贱契韬菀钾笋炣赌骄吖榴翡嚣樓钰艇帶蚤饿萍僮憬姨缕腮瑄麝à辩á懿绰亜氮措腋呦渭泣犸鄂蓉瓮裆拧泸拱妊娠褐痣阱骼鞭蔗嘿蓓乍劝俞仗洱純谧偉迫肾俺閩徒魏寫摊啫鲸闺耕扒屹陇喔甫浒勋Я啤阜涌ìúū烷皲豺崔峦呕梗卒漩煞醯苍稿苞Ⅳ巍菠荔潭俫佬妥筆颂裘勢锗媲個虱搽衬絲淳毕Ⅶ挤犀〇龋﹤盲讀獲宪棺崖=撒驿敦筝囤钣翁铎虑谛飮滕鳯郡邂逅茜艷愈俯颁曦樟芋煖泄捍贪焰癌棋桩嘘陌瑾涩痧昵腱鞘吲哚璇單掠箸聞們簡隨θ逛鳞翰缅朦麯盼玥亭潇薏呂谓惟锶柒偕匆叻換諾焱冤钧庙叁缈{苔咏埋碁巩谣氓募盤栗醬釀麵泼鐡堅娶載憶遭豇緯樊谊迭跪П琯蘇虽薪寧儒刑朽甚蜱芥糝麓苓掩摒孤,薈∈彈嘻赁祈炀冏崩溃閣乘牟缉釜黔皴薛蛭祠竟縫肆給謢觸衛與吟瞰谎咻瑙晃渝藓歡幂壕栖郊咔卍郴瘾咋雎馄饨痹饺埔莺茅璞喻寅帰妄屈俭粱®≠肛巷珈涝旱亥谌處栋屯¥酬嘞讨咸鱿厍捐邱允煨宵诈贷畏耒逾沔唧沛芡慶瞪尧襄"壬吆遣脯噗斓戟漠堤鲢劉赈浠廰賢陋挞戚勉坞莅欠•瞧庐岱墓墩蕙²汾盱眙鲫蜥蜴垩邰卑寰铮粼吼佣渺耿禽陡楹苛掐刪惕谕篝愚邸氰鳝嘀嗒饯箫刁擅麟鶴賜蔚稞惨潢邑骋暨榭砺騰幢趟嚒漁婿粑犇砌拇馍崛矽邓餘骂蕃苕嗯濛糍卦馔篓祯崧勘榈鱻'
| 1,332.333333
| 3,982
| 0.965224
| 152
| 3,997
| 25.875
| 0.986842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.005008
| 0.000751
| 3,997
| 3
| 3,982
| 1,332.333333
| 0.958187
| 0.003002
| 0
| 0
| 0
| 0
| 0.005772
| 0.005772
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
394137004c8fd2727ee3b7b8b523a55502beacd7
| 73
|
py
|
Python
|
Lib/dbm/ndbm.py
|
sireliah/polish-python
|
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
|
[
"PSF-2.0"
] | 1
|
2018-06-21T18:21:24.000Z
|
2018-06-21T18:21:24.000Z
|
Lib/dbm/ndbm.py
|
sireliah/polish-python
|
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
|
[
"PSF-2.0"
] | null | null | null |
Lib/dbm/ndbm.py
|
sireliah/polish-python
|
605df4944c2d3bc25f8bf6964b274c0a0d297cc3
|
[
"PSF-2.0"
] | null | null | null |
"""Provide the _dbm module jako a dbm submodule."""
z _dbm zaimportuj *
| 18.25
| 51
| 0.712329
| 11
| 73
| 4.545455
| 0.818182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.178082
| 73
| 3
| 52
| 24.333333
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 1
| null | null | 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
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
1a31bc5394b6f37482463e581c96f41107bd034f
| 2,242
|
py
|
Python
|
tests/test_convert.py
|
agbrooks/tohil
|
fd7108b12b50720b0df33a747870ea4893ed9f16
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_convert.py
|
agbrooks/tohil
|
fd7108b12b50720b0df33a747870ea4893ed9f16
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_convert.py
|
agbrooks/tohil
|
fd7108b12b50720b0df33a747870ea4893ed9f16
|
[
"BSD-3-Clause"
] | null | null | null |
import unittest
import tohil
class TestMethods(unittest.TestCase):
def test_convert1(self):
"""exercise tohil.convert with no to= and with to=str"""
self.assertEqual(tohil.convert(10), "10")
self.assertEqual(tohil.convert(10, to=str), "10")
self.assertEqual(tohil.convert("10"), "10")
self.assertEqual(tohil.convert("10", to=str), "10")
def test_convert2(self):
"""exercise tohil.convert and to=int and to=float"""
self.assertEqual(tohil.convert("10", to=int), 10)
self.assertEqual(tohil.convert("10", to=float), 10.0)
def test_convert3(self):
"""exercise tohil.convert to=bool"""
self.assertEqual(tohil.convert(True, to=bool), True)
self.assertEqual(tohil.convert("t", to=bool), True)
self.assertEqual(tohil.convert("1", to=bool), True)
self.assertEqual(tohil.convert(1, to=bool), True)
self.assertEqual(tohil.convert(False, to=bool), False)
self.assertEqual(tohil.convert("f", to=bool), False)
self.assertEqual(tohil.convert("0", to=bool), False)
self.assertEqual(tohil.convert(0, to=bool), False)
def test_convert4(self):
"""exercise tohil.convert to=list"""
self.assertEqual(tohil.convert("1 2 3 4 5", to=list), ["1", "2", "3", "4", "5"])
def test_convert5(self):
"""exercise tohil.convert and to=dict"""
self.assertEqual(
tohil.convert("a 1 b 2 c 3 d 4", to=dict),
{"a": "1", "b": "2", "c": "3", "d": "4"},
)
def test_convert6(self):
"""exercise tohil.convert and to=tuple"""
self.assertEqual(
tohil.convert("a 1 b 2 c 3 d 4", to=tuple),
("a", "1", "b", "2", "c", "3", "d", "4"),
)
def test_convert7(self):
"""exercise tohil.convert and to=set"""
self.assertEqual(
sorted(tohil.convert("1 2 3 4 5 6 6", to=set)),
["1", "2", "3", "4", "5", "6"],
)
def test_convert8(self):
"""exercise tohil.convert and to=tohil.tclobj"""
self.assertEqual(
repr(tohil.convert("1 2 3", to=tohil.tclobj)), "<tohil.tclobj: '1 2 3'>"
)
if __name__ == "__main__":
unittest.main()
| 35.03125
| 88
| 0.570027
| 304
| 2,242
| 4.151316
| 0.177632
| 0.256735
| 0.269414
| 0.363708
| 0.675119
| 0.606181
| 0.461173
| 0.348653
| 0.348653
| 0.348653
| 0
| 0.048694
| 0.248885
| 2,242
| 63
| 89
| 35.587302
| 0.700713
| 0.136931
| 0
| 0.093023
| 0
| 0
| 0.071278
| 0
| 0
| 0
| 0
| 0
| 0.44186
| 1
| 0.186047
| false
| 0
| 0.046512
| 0
| 0.255814
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
1a37bae7a2e823ebee1d24b14d6704263cc86d59
| 138
|
py
|
Python
|
settings.py
|
felix19350/Nature-Trails
|
11b91643e38139ec8c15674289fa67dc0fe65ac4
|
[
"Unlicense"
] | null | null | null |
settings.py
|
felix19350/Nature-Trails
|
11b91643e38139ec8c15674289fa67dc0fe65ac4
|
[
"Unlicense"
] | null | null | null |
settings.py
|
felix19350/Nature-Trails
|
11b91643e38139ec8c15674289fa67dc0fe65ac4
|
[
"Unlicense"
] | null | null | null |
from djangoappengine.settings_base import *
import os
TEMPLATE_DIRS = (os.path.join(os.path.dirname(__file__), '/templates/default/'),)
| 23
| 81
| 0.768116
| 18
| 138
| 5.555556
| 0.777778
| 0.12
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 138
| 5
| 82
| 27.6
| 0.793651
| 0
| 0
| 0
| 0
| 0
| 0.137681
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
1a38a3637d60dd9b23b957fb88a407a2638187e3
| 1,247
|
py
|
Python
|
src/App/tests/test_class_init.py
|
tseaver/Zope-RFA
|
08634f39b0f8b56403a2a9daaa6ee4479ef0c625
|
[
"ZPL-2.1"
] | 2
|
2015-12-21T10:34:56.000Z
|
2017-09-24T11:07:58.000Z
|
src/App/tests/test_class_init.py
|
MatthewWilkes/Zope
|
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
|
[
"ZPL-2.1"
] | null | null | null |
src/App/tests/test_class_init.py
|
MatthewWilkes/Zope
|
740f934fc9409ae0062e8f0cd6dcfd8b2df00376
|
[
"ZPL-2.1"
] | null | null | null |
##############################################################################
#
# Copyright (c) 2005 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Tests class initialization.
"""
def test_InitializeClass():
"""Test that InitializeClass (default__class_init__)
works in specific corner cases.
Check when the class has an ExtensionClass as attribute.
>>> import ExtensionClass
>>> from AccessControl.class_init import InitializeClass
>>> class AnotherClass(ExtensionClass.Base):
... _need__name__ = 1
>>> class C:
... foo = AnotherClass
>>> InitializeClass(C)
"""
from doctest import DocTestSuite
import unittest
def test_suite():
return unittest.TestSuite((
DocTestSuite(),
))
| 30.414634
| 78
| 0.622294
| 130
| 1,247
| 5.869231
| 0.646154
| 0.031455
| 0.036697
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006836
| 0.178829
| 1,247
| 40
| 79
| 31.175
| 0.738281
| 0.676824
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| true
| 0
| 0.285714
| 0.142857
| 0.714286
| 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
| 0
| 1
| 1
| 0
|
0
| 4
|
1a5c019fe50caf3cbb4a9b4b27ee9187dbd1869f
| 66
|
py
|
Python
|
fartor/apps/accounting/users/models/__init__.py
|
verkatech/fartor-django
|
72b53fdbe7d2e8744d5bfc58907ee2ca4a031c65
|
[
"MIT"
] | 6
|
2019-02-25T12:51:38.000Z
|
2019-04-21T17:53:42.000Z
|
fartor/apps/accounting/users/models/__init__.py
|
verkatech/fartor-django
|
72b53fdbe7d2e8744d5bfc58907ee2ca4a031c65
|
[
"MIT"
] | null | null | null |
fartor/apps/accounting/users/models/__init__.py
|
verkatech/fartor-django
|
72b53fdbe7d2e8744d5bfc58907ee2ca4a031c65
|
[
"MIT"
] | null | null | null |
from .login_histories import LoginHistory
from .users import User
| 22
| 41
| 0.848485
| 9
| 66
| 6.111111
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 66
| 2
| 42
| 33
| 0.948276
| 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
|
1aa3ba2a0b60a9ebb323574ef45dfda8337519ff
| 120
|
py
|
Python
|
app/security.py
|
ruter/otakucal
|
245a8c4e03cf253964a1d19939335a304e0cafd7
|
[
"MIT"
] | null | null | null |
app/security.py
|
ruter/otakucal
|
245a8c4e03cf253964a1d19939335a304e0cafd7
|
[
"MIT"
] | null | null | null |
app/security.py
|
ruter/otakucal
|
245a8c4e03cf253964a1d19939335a304e0cafd7
|
[
"MIT"
] | null | null | null |
from itsdangerous import URLSafeTimedSerializer
from . import app
ts = URLSafeTimedSerializer(app.config['SECRET_KEY'])
| 30
| 53
| 0.833333
| 13
| 120
| 7.615385
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.091667
| 120
| 4
| 53
| 30
| 0.908257
| 0
| 0
| 0
| 0
| 0
| 0.082645
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
46eec02b53bf03686eb07e0470d5861417686ee8
| 26
|
py
|
Python
|
inselect/lib/templates/__init__.py
|
NaturalHistoryMuseum/inselect
|
196a3ae2a0ed4e2c7cb667aaba9a6be1bcd90ca6
|
[
"BSD-3-Clause"
] | 128
|
2015-03-06T00:17:51.000Z
|
2021-09-15T07:59:01.000Z
|
inselect/lib/templates/__init__.py
|
NaturalHistoryMuseum/inselect
|
196a3ae2a0ed4e2c7cb667aaba9a6be1bcd90ca6
|
[
"BSD-3-Clause"
] | 346
|
2015-01-22T10:07:52.000Z
|
2020-02-25T21:24:56.000Z
|
inselect/lib/templates/__init__.py
|
NaturalHistoryMuseum/inselect
|
196a3ae2a0ed4e2c7cb667aaba9a6be1bcd90ca6
|
[
"BSD-3-Clause"
] | 15
|
2015-02-26T21:31:18.000Z
|
2020-12-29T17:18:47.000Z
|
"""Metadata templates
"""
| 8.666667
| 21
| 0.653846
| 2
| 26
| 8.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.115385
| 26
| 2
| 22
| 13
| 0.73913
| 0.692308
| 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
|
2017c04d176ff2ee306691526293aa519bd288bb
| 44
|
py
|
Python
|
backend/src/__init__.py
|
fjacob21/mididecweb
|
b65f28eb6fdeafa265796b6190a4264a5eac54ce
|
[
"MIT"
] | null | null | null |
backend/src/__init__.py
|
fjacob21/mididecweb
|
b65f28eb6fdeafa265796b6190a4264a5eac54ce
|
[
"MIT"
] | 88
|
2016-11-12T14:54:38.000Z
|
2018-08-02T00:25:07.000Z
|
backend/src/__init__.py
|
mididecouverte/mididecweb
|
b65f28eb6fdeafa265796b6190a4264a5eac54ce
|
[
"MIT"
] | null | null | null |
from .event import Event
__all__ = [Event]
| 11
| 24
| 0.727273
| 6
| 44
| 4.666667
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 44
| 3
| 25
| 14.666667
| 0.777778
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
203f5ff35f606f3f5e61617f054d42f5ae20901f
| 254
|
py
|
Python
|
src/values.py
|
abhra2020-smart/FlowLang
|
afd42e383850b27a71147e1cb1f90db892ad29c5
|
[
"MIT"
] | null | null | null |
src/values.py
|
abhra2020-smart/FlowLang
|
afd42e383850b27a71147e1cb1f90db892ad29c5
|
[
"MIT"
] | 1
|
2021-03-28T10:55:18.000Z
|
2021-03-28T10:56:03.000Z
|
src/values.py
|
abhra2020-smart/FlowLang
|
afd42e383850b27a71147e1cb1f90db892ad29c5
|
[
"MIT"
] | null | null | null |
from dataclasses import dataclass
@dataclass
class Number:
value: any
def __repr__(self):
return f"{self.value}"
@dataclass
class Bool:
value: bool
def __repr__(self):
return f"{self.value}".lower()
| 14.111111
| 39
| 0.598425
| 29
| 254
| 4.965517
| 0.517241
| 0.194444
| 0.152778
| 0.236111
| 0.375
| 0.375
| 0.375
| 0
| 0
| 0
| 0
| 0
| 0.30315
| 254
| 17
| 40
| 14.941176
| 0.813559
| 0
| 0
| 0.363636
| 0
| 0
| 0.101266
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.181818
| false
| 0
| 0.090909
| 0.181818
| 0.818182
| 0
| 1
| 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
| 0
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
6449e2c33bf8a0142c5bdf3f5db0efe5a15f1787
| 60
|
py
|
Python
|
binding/__init__.py
|
zauberzeug/binding
|
8b09b15e3675c68850b81d7253f1eb24245ee76b
|
[
"MIT"
] | 1
|
2022-01-07T03:22:19.000Z
|
2022-01-07T03:22:19.000Z
|
binding/__init__.py
|
zauberzeug/binding
|
8b09b15e3675c68850b81d7253f1eb24245ee76b
|
[
"MIT"
] | null | null | null |
binding/__init__.py
|
zauberzeug/binding
|
8b09b15e3675c68850b81d7253f1eb24245ee76b
|
[
"MIT"
] | null | null | null |
from binding.binding import BindableProperty, update, reset
| 30
| 59
| 0.85
| 7
| 60
| 7.285714
| 0.857143
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.1
| 60
| 1
| 60
| 60
| 0.944444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
646cb211e9d50ee71a5eb2d83807b847c39d626a
| 108
|
py
|
Python
|
mkdocs_typer/_exceptions.py
|
bruce-szalwinski/mkdocs-typer
|
6c34a918e2c2defa6e4df178e9128159c8221112
|
[
"Apache-2.0"
] | 10
|
2021-02-19T14:16:35.000Z
|
2022-03-22T13:59:18.000Z
|
mkdocs_typer/_exceptions.py
|
bruce-szalwinski/mkdocs-typer
|
6c34a918e2c2defa6e4df178e9128159c8221112
|
[
"Apache-2.0"
] | null | null | null |
mkdocs_typer/_exceptions.py
|
bruce-szalwinski/mkdocs-typer
|
6c34a918e2c2defa6e4df178e9128159c8221112
|
[
"Apache-2.0"
] | null | null | null |
class MkDocsTyperException(Exception):
"""
Generic exception class for mkdocs-typer errors.
"""
| 21.6
| 52
| 0.694444
| 10
| 108
| 7.5
| 0.8
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.203704
| 108
| 4
| 53
| 27
| 0.872093
| 0.444444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 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
| 0
| 0
| 1
| 0
|
0
| 4
|
648191fab046d64aaaf76d31cb4ac66d28e3da3e
| 324
|
py
|
Python
|
tests/data/thirdParty/Four/csnFour.py
|
xplanes/CSnake
|
3cd7a2f5c23787262c42fe3c2763201afa1bdef4
|
[
"BSD-4-Clause"
] | 4
|
2016-02-16T06:45:24.000Z
|
2021-08-09T14:59:12.000Z
|
tests/data/thirdParty/Four/csnFour.py
|
xplanes/CSnake
|
3cd7a2f5c23787262c42fe3c2763201afa1bdef4
|
[
"BSD-4-Clause"
] | 5
|
2015-08-04T14:42:35.000Z
|
2016-03-18T09:08:01.000Z
|
tests/data/thirdParty/Four/csnFour.py
|
xplanes/CSnake
|
3cd7a2f5c23787262c42fe3c2763201afa1bdef4
|
[
"BSD-4-Clause"
] | 5
|
2015-10-15T10:12:52.000Z
|
2021-11-08T15:20:46.000Z
|
# Csnake project configuration
import csnCilab
from csnAll import three
four = csnCilab.CilabModuleProject("Four", "third party")
four.pathsManager.useFilePath = "%s/Four/UseFour.cmake" % four.GetBuildFolder()
four.pathsManager.configFilePath = "%s/Four/FourConfig.cmake" % four.GetBuildFolder()
four.AddProjects([three])
| 32.4
| 85
| 0.787037
| 36
| 324
| 7.083333
| 0.583333
| 0.12549
| 0.180392
| 0.211765
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.08642
| 324
| 9
| 86
| 36
| 0.861486
| 0.08642
| 0
| 0
| 0
| 0
| 0.204778
| 0.153584
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.333333
| 0
| 0.333333
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
64b5ae434066ade578c143943650f5ce3051539d
| 24,621
|
py
|
Python
|
docs/load_accessions.py
|
detrout/htsworkflow
|
99d3300e2533d79428ad49aaf10b9429b175da2d
|
[
"BSD-3-Clause"
] | null | null | null |
docs/load_accessions.py
|
detrout/htsworkflow
|
99d3300e2533d79428ad49aaf10b9429b175da2d
|
[
"BSD-3-Clause"
] | 1
|
2018-02-26T18:30:05.000Z
|
2018-02-26T18:30:05.000Z
|
docs/load_accessions.py
|
detrout/htsworkflow
|
99d3300e2533d79428ad49aaf10b9429b175da2d
|
[
"BSD-3-Clause"
] | null | null | null |
"""We have many accessions for our libraries,
our data isn't really part of the htsworkflow project
so it seemed unnecessary to put it in the normal migrations
"""
from datetime import datetime
import os
import socket
os.environ.setdefault(
"DJANGO_SETTINGS_MODULE",
"htsworkflow.settings.{}".format(socket.gethostname()))
import django
django.setup()
from samples.models import (
AccessionAgency,
Library,
LibraryAccession
)
def load_encode3_accessions():
data = [
('02973', 'ENCLB661EBH', '2013-12-31T01:24:29.450163+0000'),
('10007', 'ENCLB372ZZZ', '2013-09-13T13:31:00.667863-0800'),
('10065', 'ENCLB350ZZZ', '2013-09-13T13:31:00.711427-0800'),
('10135', 'ENCLB371ZZZ', '2013-09-13T13:31:00.800862-0800'),
('10150', 'ENCLB375ZZZ', '2013-09-13T13:31:00.845686-0800'),
('10158', 'ENCLB349ZZZ', '2013-09-13T13:31:00.888358-0800'),
('10296', 'ENCLB326ZZZ', '2013-09-13T13:31:01.050362-0800'),
('10330', 'ENCLB316ZZZ', '2013-09-13T13:31:01.094821-0800'),
('10331', 'ENCLB312ZZZ', '2013-09-13T13:31:01.138188-0800'),
('10333', 'ENCLB348ZZZ', '2013-09-13T13:31:01.182426-0800'),
('10335', 'ENCLB325ZZZ', '2013-09-13T13:31:01.226356-0800'),
('10409', 'ENCLB335ZZZ', '2013-09-13T13:31:01.268879-0800'),
('10409', 'ENCLB373ZZZ', '2013-09-13T13:31:03.237846-0800'),
('10481', 'ENCLB328ZZZ', '2013-09-13T13:31:01.312917-0800'),
('10502', 'ENCLB322ZZZ', '2013-09-13T13:31:01.357314-0800'),
('10506', 'ENCLB354ZZZ', '2013-09-13T13:31:01.402055-0800'),
('10515', 'ENCLB150CGC', '2013-12-31T01:24:31.329052+0000'),
('10516', 'ENCLB858EYY', '2014-02-11T04:54:55.778298+0000'),
('10517', 'ENCLB296STQ', '2013-12-31T01:24:31.650260+0000'),
('10536', 'ENCLB317ZZZ', '2013-09-13T13:31:01.484966-0800'),
('10565', 'ENCLB700LMU', '2013-12-31T01:24:31.490950+0000'),
('10567', 'ENCLB912OTZ', '2013-12-31T01:24:31.813954+0000'),
('10599', 'ENCLB329ZZZ', '2013-09-13T13:31:01.589610-0800'),
('10703', 'ENCLB347ZZZ', '2013-09-13T13:31:01.634288-0800'),
('10704', 'ENCLB353ZZZ', '2013-09-13T13:31:01.678096-0800'),
('10874', 'ENCLB211VHB', '2013-12-31T00:56:50.185938+0000'),
('10876', 'ENCLB827ADT', '2014-02-11T04:54:56.056039+0000'),
('10878', 'ENCLB596OCH', '2013-12-31T01:24:32.312287+0000'),
('10879', 'ENCLB285RFV', '2013-12-31T01:24:32.481428+0000'),
('10881', 'ENCLB928ZOL', '2013-12-31T01:24:31.988425+0000'),
('10882', 'ENCLB070EUV', '2013-12-31T01:24:32.157600+0000'),
('10883', 'ENCLB553XIA', '2013-12-31T00:56:50.961345+0000'),
('10884', 'ENCLB439WFS', '2013-12-31T01:24:32.695166+0000'),
('10885', 'ENCLB369MMK', '2013-12-31T00:56:51.214725+0000'),
('10947', 'ENCLB184USD', '2014-02-11T04:54:52.964669+0000'),
('10985', 'ENCLB359ZZZ', '2013-09-13T13:31:02.337847-0800'),
('10986', 'ENCLB356ZZZ', '2013-09-13T13:31:02.556929-0800'),
('11007', 'ENCLB866SQE', '2014-02-11T04:54:52.164787+0000'),
('11008', 'ENCLB424IFK', '2014-02-11T04:54:51.864439+0000'),
('11009', 'ENCLB205QXO', '2015-01-15T19:40:15.525219+0000'),
('11010', 'ENCLB529ELW', '2014-02-11T04:54:51.647823+0000'),
('11011', 'ENCLB732DFW', '2014-02-11T04:54:51.042384+0000'),
('11038', 'ENCLB857ING', '2013-12-31T01:24:29.125690+0000'),
('11039', 'ENCLB637FKG', '2013-12-31T01:24:29.779715+0000'),
('11154', 'ENCLB358ZZZ', '2013-09-13T13:31:02.792781-0800'),
('11155', 'ENCLB357ZZZ', '2013-09-13T13:31:02.954320-0800'),
('11204', 'ENCLB625YJM', '2014-02-11T04:54:55.290109+0000'),
('11206', 'ENCLB043WCL', '2014-02-11T04:54:53.934271+0000'),
('11207', 'ENCLB540GQH', '2014-02-11T04:54:54.151840+0000'),
('11208', 'ENCLB267LXR', '2014-02-11T04:54:54.367250+0000'),
('11209', 'ENCLB334AQY', '2014-02-11T04:54:54.659774+0000'),
('11210', 'ENCLB267HUY', '2014-02-11T04:54:54.901232+0000'),
('11286', 'ENCLB227WEO', '2013-12-31T00:56:50.365755+0000'),
('11288', 'ENCLB764TBI', '2013-12-31T00:56:50.539923+0000'),
('11289', 'ENCLB221REA', '2013-12-31T00:56:50.771930+0000'),
('11565', 'ENCLB332ZZZ', '2013-09-13T13:31:03.112170-0800'),
('11581', 'ENCLB794RXE', '2013-12-31T01:24:31.159562+0000'),
('11582', 'ENCLB445LWQ', '2013-12-31T01:24:30.715684+0000'),
('11584', 'ENCLB866FVU', '2013-12-31T01:24:30.539689+0000'),
('11585', 'ENCLB415HFJ', '2013-12-31T01:24:30.323719+0000'),
('11586', 'ENCLB170HBR', '2013-12-31T01:24:32.842478+0000'),
('11587', 'ENCLB271DFX', '2013-12-31T00:56:49.784310+0000'),
('11588', 'ENCLB224GWZ', '2013-12-31T00:56:50.002023+0000'),
('11612', 'ENCLB370ZZZ', '2013-09-13T13:31:03.835164-0800'),
('11612', 'ENCLB370ZZZ', '2013-09-13T13:31:03.835164-0800'),
('11621', 'ENCLB282WJS', '2013-12-31T00:56:49.527454+0000'),
('11622', 'ENCLB379BUZ', '2013-12-31T00:56:49.274381+0000'),
('11638', 'ENCLB507FSU', '2015-03-12T23:49:04.901543+0000'),
('11644', 'ENCLB341ZZZ', '2013-09-13T13:31:04.092318-0800'),
('11653', 'ENCLB344ZZZ', '2013-09-13T13:31:04.212140-0800'),
('11669', 'ENCLB321ZZZ', '2013-09-13T13:31:04.327003-0800'),
('11670', 'ENCLB715BMJ', '2015-03-12T23:18:09.561375+0000'),
('11682', 'ENCLB331ZZZ', '2013-09-13T13:31:04.445816-0800'),
('11697', 'ENCLB314ZZZ', '2013-09-13T13:31:04.621147-0800'),
('11718', 'ENCLB327ZZZ', '2013-09-13T13:31:04.713973-0800'),
('11719', 'ENCLB330ZZZ', '2013-09-13T13:31:04.755910-0800'),
('11719', 'ENCLB373ZZZ', '2013-09-13T13:31:03.237846-0800'),
('11832', 'ENCLB318ZZZ', '2013-09-13T13:31:04.798657-0800'),
('11847', 'ENCLB345ZZZ', '2013-09-13T13:31:04.842142-0800'),
('11905', 'ENCLB320ZZZ', '2013-09-13T13:31:04.885807-0800'),
('11906', 'ENCLB315ZZZ', '2013-09-13T13:31:04.927936-0800'),
('11907', 'ENCLB313ZZZ', '2013-09-13T13:31:04.970793-0800'),
('11923', 'ENCLB346ZZZ', '2013-09-13T13:31:05.014078-0800'),
('11924', 'ENCLB343ZZZ', '2013-09-13T13:31:05.057237-0800'),
('11926', 'ENCLB342ZZZ', '2013-09-13T13:31:05.098878-0800'),
('11927', 'ENCLB351ZZZ', '2013-09-13T13:31:05.142104-0800'),
('11942', 'ENCLB340ZZZ', '2013-09-13T13:31:05.185199-0800'),
('11942', 'ENCLB374ZZZ', '2013-09-13T13:31:00.932762-0800'),
('11956', 'ENCLB323ZZZ', '2013-09-13T13:31:05.229141-0800'),
('11957', 'ENCLB319ZZZ', '2013-09-13T13:31:05.271096-0800'),
('12096', 'ENCLB330KCB', '2013-12-31T01:24:29.929490+0000'),
('12097', 'ENCLB308ZDI', '2013-12-31T01:24:30.117992+0000'),
('12098', 'ENCLB849ZXB', '2013-12-31T01:24:30.951897+0000'),
('12517', 'ENCLB482LEX', '2014-04-17T22:46:52.690510+0000'),
('12518', 'ENCLB898RJN', '2014-04-17T22:46:52.789971+0000'),
('13024', 'ENCLB386HBI', '2014-04-17T22:46:51.828778+0000'),
('13025', 'ENCLB976CMA', '2014-04-17T22:46:51.909420+0000'),
('13262', 'ENCLB164LQL', '2014-04-17T22:46:51.996269+0000'),
('13263', 'ENCLB621DLJ', '2014-04-17T22:46:52.081511+0000'),
('13274', 'ENCLB036MBQ', '2014-04-17T22:46:52.331729+0000'),
('13275', 'ENCLB284CYK', '2014-04-17T22:46:52.424102+0000'),
('13280', 'ENCLB187EEQ', '2014-04-17T22:46:56.606142+0000'),
('13281', 'ENCLB146LAW', '2014-04-17T22:46:56.763676+0000'),
('13282', 'ENCLB267CXI', '2014-04-17T22:46:57.686887+0000'),
('13283', 'ENCLB198OUV', '2014-04-17T22:46:57.765163+0000'),
('13284', 'ENCLB319PGU', '2014-04-17T22:46:57.859868+0000'),
('13285', 'ENCLB391GZT', '2014-04-17T22:46:57.942156+0000'),
('13286', 'ENCLB714NCU', '2014-04-17T22:46:58.029639+0000'),
('13287', 'ENCLB868NQU', '2014-04-17T22:46:58.123540+0000'),
('13288', 'ENCLB264YKE', '2014-04-17T22:46:58.206637+0000'),
('13289', 'ENCLB206JYT', '2014-04-17T22:46:58.292642+0000'),
('13290', 'ENCLB476CZO', '2014-04-17T22:46:58.374543+0000'),
('13291', 'ENCLB402YMB', '2014-04-17T22:46:58.456242+0000'),
('13292', 'ENCLB211FCW', '2014-04-17T22:46:56.889940+0000'),
('13294', 'ENCLB283IJI', '2014-04-17T22:46:57.082795+0000'),
('13295', 'ENCLB720ZUM', '2014-04-17T22:46:57.198472+0000'),
('13296', 'ENCLB108EAP', '2014-04-17T22:46:57.341596+0000'),
('13297', 'ENCLB882HPA', '2014-04-17T22:46:57.428995+0000'),
('13298', 'ENCLB804XTY', '2014-04-17T22:46:57.507323+0000'),
('13299', 'ENCLB242XIT', '2014-04-17T22:46:57.604855+0000'),
('13300', 'ENCLB550GYC', '2014-04-17T22:46:52.512366+0000'),
('13301', 'ENCLB576ZGP', '2014-04-17T22:46:52.601612+0000'),
('13347', 'ENCLB928LID', '2014-04-17T22:46:52.162858+0000'),
('13349', 'ENCLB532KHK', '2014-04-17T22:46:52.248810+0000'),
('13413', 'ENCLB510UJB', '2014-12-16T00:45:13.360830+0000'),
('13414', 'ENCLB414SJG', '2014-12-16T00:45:13.800356+0000'),
('13415', 'ENCLB569DAO', '2014-12-16T00:45:14.213313+0000'),
('13416', 'ENCLB193ILA', '2014-12-16T00:45:14.431853+0000'),
('13417', 'ENCLB578MIX', '2014-12-16T00:45:14.860425+0000'),
('13418', 'ENCLB322YDP', '2014-12-16T00:45:15.320136+0000'),
('13419', 'ENCLB921XPI', '2014-12-16T00:45:16.561156+0000'),
('13420', 'ENCLB133ICO', '2014-12-16T00:45:16.784349+0000'),
('13421', 'ENCLB541QCS', '2014-12-16T00:45:17.049659+0000'),
('13422', 'ENCLB711HMD', '2014-12-16T00:45:17.306141+0000'),
('13423', 'ENCLB036AMX', '2014-12-16T00:45:17.587710+0000'),
('13424', 'ENCLB641AYP', '2014-12-16T00:45:18.075095+0000'),
('13425', 'ENCLB042QFS', '2014-12-16T00:45:18.620202+0000'),
('13426', 'ENCLB507MOC', '2014-12-16T00:45:19.791431+0000'),
('13427', 'ENCLB442ZCO', '2014-12-16T00:45:20.402307+0000'),
('13428', 'ENCLB714KUY', '2014-12-16T00:45:20.848934+0000'),
('13429', 'ENCLB243CVS', '2014-12-16T00:45:21.329370+0000'),
('13430', 'ENCLB204EWE', '2014-12-16T00:45:22.235057+0000'),
('13431', 'ENCLB751POF', '2014-12-16T00:45:23.092374+0000'),
('13432', 'ENCLB729FQY', '2014-12-16T00:45:23.458123+0000'),
('13433', 'ENCLB988OPM', '2014-12-16T00:45:23.707750+0000'),
('13435', 'ENCLB981WTU', '2014-12-16T00:45:24.273572+0000'),
('13436', 'ENCLB364NZB', '2014-12-16T00:45:25.243385+0000'),
('13437', 'ENCLB461BIJ', '2014-12-16T00:45:25.696471+0000'),
('13438', 'ENCLB580JUS', '2014-12-16T00:45:26.678862+0000'),
('13439', 'ENCLB318YQB', '2014-12-16T00:45:27.109024+0000'),
('13440', 'ENCLB407NSA', '2014-12-16T00:45:27.519366+0000'),
('13619', 'ENCLB901PGF', '2014-04-17T22:46:51.257931+0000'),
('13620', 'ENCLB392ZIG', '2014-04-17T22:46:51.468689+0000'),
('13622', 'ENCLB426EUN', '2014-04-17T22:46:51.379932+0000'),
('13623', 'ENCLB036TZY', '2014-04-17T22:46:51.581073+0000'),
('13625', 'ENCLB331AUZ', '2014-04-17T22:46:52.874393+0000'),
('13626', 'ENCLB327MTR', '2014-04-17T22:46:52.954204+0000'),
('13627', 'ENCLB228BIT', '2014-04-17T22:46:53.033480+0000'),
('13628', 'ENCLB641KNK', '2014-04-17T22:46:53.114120+0000'),
('13629', 'ENCLB403JBC', '2014-04-17T22:46:53.192762+0000'),
('13630', 'ENCLB804XKW', '2014-04-17T22:46:53.273136+0000'),
('13631', 'ENCLB087SVF', '2014-04-17T22:46:53.371845+0000'),
('13632', 'ENCLB747ZHK', '2014-04-17T22:46:53.457184+0000'),
('13633', 'ENCLB710XHU', '2014-04-17T22:46:53.538836+0000'),
('13634', 'ENCLB211OUD', '2014-04-17T22:46:53.615476+0000'),
('13635', 'ENCLB222MSP', '2014-04-17T22:46:53.715943+0000'),
('13636', 'ENCLB619TYA', '2014-04-17T22:46:53.884920+0000'),
('13637', 'ENCLB350NUB', '2014-04-17T22:46:53.980565+0000'),
('13638', 'ENCLB257OVB', '2014-04-17T22:46:54.073274+0000'),
('13639', 'ENCLB218HBM', '2014-04-17T22:46:54.155566+0000'),
('13640', 'ENCLB617JJG', '2014-04-17T22:46:54.244908+0000'),
('13641', 'ENCLB876ZIU', '2014-04-17T22:46:54.340786+0000'),
('13642', 'ENCLB552DLJ', '2014-04-17T22:46:54.430325+0000'),
('13643', 'ENCLB509KSM', '2014-04-17T22:46:54.529638+0000'),
('13644', 'ENCLB632SOL', '2014-04-17T22:46:54.617599+0000'),
('13645', 'ENCLB678KFT', '2014-04-17T22:46:54.699948+0000'),
('13646', 'ENCLB432EQY', '2014-04-17T22:46:54.778444+0000'),
('13647', 'ENCLB546SWD', '2014-04-17T22:46:54.858448+0000'),
('13648', 'ENCLB151CUN', '2014-04-17T22:46:54.937278+0000'),
('13649', 'ENCLB340FFP', '2014-04-17T22:46:55.022324+0000'),
('13650', 'ENCLB205HHN', '2014-04-17T22:46:55.098461+0000'),
('13651', 'ENCLB452IVF', '2014-04-17T22:46:55.184097+0000'),
('13652', 'ENCLB294BYK', '2014-04-17T22:46:55.262903+0000'),
('13653', 'ENCLB078UJF', '2014-04-17T22:46:55.341750+0000'),
('13654', 'ENCLB614VPZ', '2014-04-17T22:46:55.416400+0000'),
('13655', 'ENCLB611KGC', '2014-04-17T22:46:55.540595+0000'),
('13656', 'ENCLB462FVS', '2014-04-17T22:46:55.622867+0000'),
('13657', 'ENCLB562SNL', '2014-04-17T22:46:55.701402+0000'),
('13658', 'ENCLB147KNI', '2014-04-17T22:46:55.786033+0000'),
('13659', 'ENCLB904FTO', '2014-04-17T22:46:55.881860+0000'),
('13660', 'ENCLB857XKO', '2014-04-17T22:46:55.967510+0000'),
('13661', 'ENCLB720FXC', '2014-04-17T22:46:56.045285+0000'),
('13662', 'ENCLB632CVX', '2014-04-17T22:46:56.126475+0000'),
('13663', 'ENCLB229ENW', '2014-04-17T22:46:56.202064+0000'),
('13664', 'ENCLB912XSU', '2014-04-17T22:46:56.461112+0000'),
('13665', 'ENCLB915IHV', '2014-04-17T22:46:51.664093+0000'),
('13666', 'ENCLB204VYG', '2014-04-17T22:46:51.747073+0000'),
('13711', 'ENCLB043ZZZ', '2013-09-13T13:31:21.704089-0800'),
('13712', 'ENCLB044ZZZ', '2013-09-13T13:31:21.995955-0800'),
('13713', 'ENCLB045ZZZ', '2013-09-13T13:31:21.121478-0800'),
('13714', 'ENCLB046ZZZ', '2013-09-13T13:31:19.986238-0800'),
('13715', 'ENCLB061ZZZ', '2013-09-13T13:31:26.233894-0800'),
('13716', 'ENCLB062ZZZ', '2013-09-13T13:31:21.394322-0800'),
('13717', 'ENCLB063ZZZ', '2013-09-13T13:31:22.543146-0800'),
('13718', 'ENCLB064ZZZ', '2013-09-13T13:31:26.615177-0800'),
('14485', 'ENCLB463KOX', '2014-07-30T22:13:29.658606+0000'),
('14486', 'ENCLB941VYE', '2014-07-30T22:13:30.865419+0000'),
('14487', 'ENCLB237OAE', '2014-07-30T22:13:32.006665+0000'),
('14488', 'ENCLB171NYD', '2014-07-30T22:13:32.876751+0000'),
('14495', 'ENCLB719BQO', '2014-07-30T22:13:34.234738+0000'),
('14499', 'ENCLB356IIP', '2014-07-30T22:13:35.356726+0000'),
('14501', 'ENCLB304LFK', '2014-07-30T22:13:36.682522+0000'),
('14626', 'ENCLB766UOB', '2014-07-30T22:13:37.751613+0000'),
('14627', 'ENCLB238LIR', '2014-07-30T22:13:38.488612+0000'),
('14628', 'ENCLB652HKH', '2014-07-30T22:13:39.079002+0000'),
('14629', 'ENCLB181TCJ', '2014-07-30T22:13:39.612566+0000'),
('14630', 'ENCLB669AEL', '2014-07-30T22:13:40.373455+0000'),
('14631', 'ENCLB765HDK', '2014-07-30T22:13:41.017277+0000'),
('14632', 'ENCLB348BMH', '2014-07-30T22:13:41.597441+0000'),
('14633', 'ENCLB791CRT', '2014-07-30T22:13:42.145408+0000'),
('14634', 'ENCLB096HAH', '2014-07-30T22:13:42.871555+0000'),
('14635', 'ENCLB005HHX', '2014-07-30T22:13:43.673544+0000'),
('14636', 'ENCLB185MNU', '2014-07-30T22:13:44.242558+0000'),
('14653', 'ENCLB917PKP', '2014-07-22T21:16:09.466969+0000'),
('14654', 'ENCLB026BHP', '2014-07-22T21:16:36.206892+0000'),
('14655', 'ENCLB449LBZ', '2014-07-22T21:17:23.464962+0000'),
('14656', 'ENCLB905LVV', '2014-07-22T21:18:02.970100+0000'),
('15007', 'ENCLB835LVO', '2014-10-23T21:25:29.431984+0000'),
('15008', 'ENCLB471QMM', '2014-10-23T21:25:30.115849+0000'),
('15009', 'ENCLB659UFY', '2014-10-23T21:25:30.756915+0000'),
('15010', 'ENCLB426JKF', '2014-10-23T21:25:31.349525+0000'),
('15011', 'ENCLB454ZUS', '2014-10-23T21:25:32.065385+0000'),
('15012', 'ENCLB061TDP', '2014-10-23T21:25:32.733245+0000'),
('15013', 'ENCLB331VAA', '2014-10-23T21:25:33.732239+0000'),
('15014', 'ENCLB761PCA', '2014-10-23T21:25:34.879860+0000'),
('15015', 'ENCLB601XLL', '2014-10-23T21:25:35.898934+0000'),
('15016', 'ENCLB347FRI', '2014-10-23T21:25:36.765768+0000'),
('15017', 'ENCLB055KYV', '2014-10-23T21:25:37.604795+0000'),
('15018', 'ENCLB357KYA', '2014-10-23T21:25:38.564710+0000'),
('15019', 'ENCLB495FUZ', '2014-10-23T21:25:39.571864+0000'),
('15020', 'ENCLB979DZW', '2014-10-23T21:25:40.266492+0000'),
('15021', 'ENCLB162EJJ', '2014-10-23T21:25:41.173920+0000'),
('15022', 'ENCLB627LDZ', '2014-10-23T21:25:42.094283+0000'),
('15072', 'ENCLB336GOL', '2014-12-10T23:00:17.177956+0000'),
('15073', 'ENCLB964APA', '2014-12-10T23:00:17.550508+0000'),
('15074', 'ENCLB000EUQ', '2014-12-10T23:00:17.847597+0000'),
('15075', 'ENCLB597GRF', '2014-12-10T23:00:18.331925+0000'),
('15076', 'ENCLB989QNS', '2014-12-10T23:00:18.850689+0000'),
('15077', 'ENCLB567WFL', '2014-12-10T23:00:19.145366+0000'),
('15078', 'ENCLB254AMJ', '2014-12-10T23:00:19.420436+0000'),
('15079', 'ENCLB015WCJ', '2014-12-10T23:00:19.713321+0000'),
('15080', 'ENCLB200EFP', '2014-12-10T23:00:20.013418+0000'),
('15081', 'ENCLB278MMD', '2014-12-10T23:00:20.516203+0000'),
('15082', 'ENCLB819PZM', '2014-12-10T23:00:21.265192+0000'),
('15083', 'ENCLB220DVX', '2014-12-10T23:00:21.537679+0000'),
('15084', 'ENCLB906TKN', '2014-12-10T23:00:21.824807+0000'),
('15085', 'ENCLB949YQN', '2014-12-10T23:00:22.369090+0000'),
('15086', 'ENCLB584VFZ', '2014-12-10T23:00:23.080355+0000'),
('15087', 'ENCLB931ORG', '2014-12-10T23:00:23.626841+0000'),
('15088', 'ENCLB409LKR', '2014-12-10T23:00:24.173237+0000'),
('15089', 'ENCLB595PNG', '2014-12-10T23:00:24.554339+0000'),
('15090', 'ENCLB156EMG', '2014-12-10T23:00:25.382334+0000'),
('15091', 'ENCLB030NEC', '2014-12-10T23:00:26.743561+0000'),
('15092', 'ENCLB377PCX', '2014-12-10T23:00:28.034636+0000'),
('15093', 'ENCLB214UZM', '2014-12-10T23:00:28.526626+0000'),
('15094', 'ENCLB813BQB', '2014-12-10T23:00:29.029220+0000'),
('15095', 'ENCLB949WIO', '2014-12-10T23:00:29.343030+0000'),
('15241', 'ENCLB604HVJ', '2014-12-15T23:31:51.819207+0000'),
('15242', 'ENCLB357UPR', '2014-12-16T01:03:11.301778+0000'),
('15243', 'ENCLB521CXU', '2014-12-16T01:03:12.409916+0000'),
('15244', 'ENCLB969JPS', '2014-12-16T01:03:12.638218+0000'),
('15245', 'ENCLB893OOW', '2014-12-16T01:03:12.851385+0000'),
('15246', 'ENCLB730HDZ', '2014-12-16T01:03:13.532201+0000'),
('15247', 'ENCLB229LFR', '2014-12-16T01:03:13.888442+0000'),
('15248', 'ENCLB700NFV', '2014-12-16T01:03:14.123376+0000'),
('15256', 'ENCLB253LOZ', '2014-12-16T01:15:42.800855+0000'),
('15257', 'ENCLB857GUO', '2014-12-16T01:15:43.062548+0000'),
('15258', 'ENCLB891HIS', '2014-12-16T01:15:44.686534+0000'),
('15259', 'ENCLB587ZYP', '2014-12-16T01:15:45.407813+0000'),
('15260', 'ENCLB183ZSO', '2014-12-16T01:15:46.051548+0000'),
('15261', 'ENCLB809LQF', '2014-12-16T01:15:46.336850+0000'),
('15262', 'ENCLB112DAD', '2014-12-16T01:15:47.111994+0000'),
('15263', 'ENCLB417MEI', '2014-12-16T01:15:47.354094+0000'),
('15264', 'ENCLB035MJZ', '2014-12-16T01:15:47.581360+0000'),
('15265', 'ENCLB663WPK', '2014-12-16T01:15:47.823408+0000'),
('15266', 'ENCLB640QPM', '2014-12-16T01:15:48.094692+0000'),
('15267', 'ENCLB708TZF', '2014-12-16T01:15:48.518860+0000'),
('15268', 'ENCLB678FAD', '2014-12-16T01:15:49.637634+0000'),
('15269', 'ENCLB284YTS', '2014-12-16T01:15:50.317441+0000'),
('15270', 'ENCLB108LLJ', '2014-12-16T01:15:50.793306+0000'),
('15271', 'ENCLB518MNF', '2014-12-16T01:15:51.255098+0000'),
('15288', 'ENCLB435TVJ', '2014-12-16T01:15:53.184310+0000'),
('15289', 'ENCLB337IRK', '2014-12-16T01:15:54.829508+0000'),
('15290', 'ENCLB863GTU', '2014-12-16T01:15:56.220924+0000'),
('15291', 'ENCLB033OYZ', '2014-12-16T01:15:56.821935+0000'),
('15292', 'ENCLB577KCS', '2014-12-16T01:15:57.362521+0000'),
('15293', 'ENCLB950QWJ', '2014-12-16T01:15:58.109787+0000'),
('15294', 'ENCLB219UWV', '2014-12-16T01:15:58.782565+0000'),
('15295', 'ENCLB196QXY', '2014-12-16T01:15:59.455275+0000'),
('15296', 'ENCLB430RUN', '2014-12-16T01:16:00.122073+0000'),
('15297', 'ENCLB384GBY', '2014-12-16T01:16:00.929045+0000'),
('15298', 'ENCLB030QYZ', '2014-12-16T01:16:01.373251+0000'),
('15299', 'ENCLB721WMG', '2014-12-16T01:16:01.597127+0000'),
('15300', 'ENCLB359XUW', '2014-12-16T01:16:01.825260+0000'),
('15301', 'ENCLB807MQE', '2014-12-16T01:16:02.132204+0000'),
('15302', 'ENCLB462UWC', '2014-12-16T01:16:03.048372+0000'),
('15303', 'ENCLB296VEF', '2014-12-16T01:16:03.815641+0000'),
('15475', 'ENCLB266LCY', '2015-03-27T22:01:32.864613+0000'),
('15476', 'ENCLB055JUC', '2015-03-27T22:01:33.316038+0000'),
('15477', 'ENCLB080NNG', '2015-03-27T22:01:33.809928+0000'),
('15478', 'ENCLB180OTB', '2015-03-27T22:01:34.281900+0000'),
('15479', 'ENCLB274VUA', '2015-03-27T22:01:34.760956+0000'),
('15480', 'ENCLB441AFS', '2015-03-27T22:01:35.242213+0000'),
('15481', 'ENCLB790ZKD', '2015-03-27T22:01:35.693423+0000'),
('15482', 'ENCLB319NLX', '2015-03-27T22:01:36.114223+0000'),
('15483', 'ENCLB074REG', '2015-03-27T22:01:36.679913+0000'),
('15484', 'ENCLB415KPR', '2015-03-27T22:01:37.266549+0000'),
('15485', 'ENCLB658ICO', '2015-03-27T22:01:37.835601+0000'),
('15486', 'ENCLB741KQB', '2015-03-27T22:01:38.396352+0000'),
('15487', 'ENCLB810TRL', '2015-03-27T22:01:38.910449+0000'),
('15488', 'ENCLB544VIE', '2015-03-27T22:01:39.534590+0000'),
('15489', 'ENCLB370ZFK', '2015-03-27T22:01:40.115768+0000'),
('15490', 'ENCLB273BPC', '2015-03-27T22:01:40.746450+0000'),
('15491', 'ENCLB847UDV', '2015-03-27T22:01:41.366532+0000'),
('15492', 'ENCLB704CYQ', '2015-03-27T22:01:41.934480+0000'),
('15493', 'ENCLB318WHF', '2015-03-27T22:01:42.583021+0000'),
('15494', 'ENCLB590UZK', '2015-03-27T22:01:43.220918+0000'),
('15495', 'ENCLB260QNG', '2015-03-27T22:01:43.823840+0000'),
('15496', 'ENCLB817LXB', '2015-03-27T22:01:44.356874+0000'),
('15497', 'ENCLB169SNA', '2015-03-27T22:01:44.903888+0000'),
('15498', 'ENCLB459OYG', '2015-03-27T22:01:45.457150+0000'),
('15499', 'ENCLB217DSV', '2015-03-27T22:01:46.051760+0000'),
('15500', 'ENCLB159SLV', '2015-03-27T22:01:46.609807+0000'),
('15501', 'ENCLB022VFG', '2015-03-27T22:01:47.188586+0000'),
('15502', 'ENCLB416HZP', '2015-03-27T22:01:47.742894+0000'),
('15503', 'ENCLB556YSG', '2015-03-27T22:01:48.360245+0000'),
('15504', 'ENCLB803HJK', '2015-03-27T22:01:48.918921+0000'),
('SL2970', 'ENCLB871LCB', '2013-12-31T01:24:29.617351+0000'),
('SL2971', 'ENCLB503AOQ', '2013-12-31T01:24:29.290708+0000'),
]
encode = AccessionAgency.objects.get(name="ENCODE3")
for jumpgate_id, accession, created in data:
jumpgate_id = {
'SL2970': '02970',
'SL2971': '02971',
'SL2972': '02972',
}.get(jumpgate_id, jumpgate_id)
jumpgate = Library.objects.get(pk=jumpgate_id)
date_created = datetime.strptime(created, '%Y-%m-%dT%H:%M:%S.%f%z')
o = LibraryAccession(agency=encode,
library=jumpgate,
accession=accession,
created=date_created,)
o.save()
def main():
print('loading encode3 accessions')
load_encode3_accessions()
if __name__ == '__main__':
main()
| 63.620155
| 75
| 0.595752
| 3,186
| 24,621
| 4.597301
| 0.364721
| 0.037277
| 0.057828
| 0.068342
| 0.291118
| 0.010514
| 0.010514
| 0.010514
| 0.005598
| 0
| 0
| 0.528934
| 0.164778
| 24,621
| 386
| 76
| 63.784974
| 0.18333
| 0.006377
| 0
| 0.005348
| 0
| 0
| 0.657317
| 0.432432
| 0
| 0
| 0
| 0
| 0
| 1
| 0.005348
| false
| 0
| 0.013369
| 0
| 0.018717
| 0.002674
| 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
|
64da861157e37d5c96b14a825e67d99cf64f0150
| 6,972
|
py
|
Python
|
source/gui/test/rttovgui_unittest_class.py
|
bucricket/projectMAScorrection
|
89489026c8e247ec7c364e537798e766331fe569
|
[
"BSD-3-Clause"
] | null | null | null |
source/gui/test/rttovgui_unittest_class.py
|
bucricket/projectMAScorrection
|
89489026c8e247ec7c364e537798e766331fe569
|
[
"BSD-3-Clause"
] | 1
|
2022-03-12T12:19:59.000Z
|
2022-03-12T12:19:59.000Z
|
source/gui/test/rttovgui_unittest_class.py
|
bucricket/projectMAScorrection
|
89489026c8e247ec7c364e537798e766331fe569
|
[
"BSD-3-Clause"
] | null | null | null |
'''
Created on May 14, 2014
@author: pascale
'''
import unittest
import rmodel
class RttovGuiUnitTest(unittest.TestCase):
def test_dummy(self):
pass
def check_option(self, p):
if p is None:
return
if p.isPC():
self.assertTrue(p.myOption["ADDPC"])
self.assertTrue(p.myOption.statusOption["ADDPC"])
else:
self.assertFalse(p.myOption["ADDPC"])
self.assertTrue(p.myOption.statusOption["DO_LAMBERTIAN"])
if p.myCoeffs.hasPC():
self.assertTrue(p.myOption.statusOption["ADDPC"])
else:
self.assertFalse(p.myOption.statusOption["ADDPC"])
self.assertFalse(p.myOption["ADDPC"])
if p.myCoeffs.isPCClouds() and p.myProfile.hasClouds():
self.assertTrue(p.myOption.statusOption["ADDPC"])
if p.myCoeffs.hasSolar():
if not p.isPC():
self.assertTrue(p.myOption.statusOption["ADDSOLAR"])
else:
self.assertFalse(p.myOption.statusOption["ADDSOLAR"])
self.assertFalse(p.myOption["ADDSOLAR"])
if not p.myCoeffs.isMW():
self.assertFalse(p.myOption.statusOption["FASTEM_VERSION"])
self.assertFalse(p.myOption.statusOption["CLW_DATA"])
self.assertFalse(p.myOption["CLW_DATA"])
if p.myCoeffs.isMW():
self.assertTrue(p.myOption.statusOption["FASTEM_VERSION"])
self.assertTrue(p.myOption.statusOption["SUPPLY_FOAM_FRACTION"])
if p.myProfile["CLW"] is not None:
self.assertTrue(p.myOption.statusOption["CLW_DATA"])
self.assertTrue(p.myOption.statusOption["DO_LAMBERTIAN"])
self.assertFalse(p.myOption.statusOption["ADDSOLAR"])
self.assertFalse(p.myOption.statusOption["DO_NLTE_CORRECTION"])
self.assertFalse(p.myOption.statusOption["ADDAEROSL"])
self.assertFalse(p.myOption.statusOption["ADDCLOUDS"])
self.assertFalse(p.myOption.statusOption["CLDSTR_THRESHOLD"])
self.assertFalse(p.myOption.statusOption["OZONE_DATA"])
self.assertFalse(p.myOption.statusOption["CO2_DATA"])
self.assertFalse(p.myOption.statusOption["N2O_DATA"])
self.assertFalse(p.myOption.statusOption["CO_DATA"])
self.assertFalse(p.myOption.statusOption["CH4_DATA"])
self.assertFalse(p.myOption.statusOption["ADDPC"])
self.assertFalse(p.myOption.statusOption["IPCBND"])
self.assertFalse(p.myOption.statusOption["IPCREG"])
self.assertFalse(p.myOption.statusOption["ADDRADREC"])
self.assertFalse(p.myOption["ADDSOLAR"])
self.assertFalse(p.myOption["DO_NLTE_CORRECTION"])
self.assertFalse(p.myOption["ADDAEROSL"])
self.assertFalse(p.myOption["ADDCLOUDS"])
self.assertFalse(p.myOption["OZONE_DATA"])
self.assertFalse(p.myOption["CO2_DATA"])
self.assertFalse(p.myOption["N2O_DATA"])
self.assertFalse(p.myOption["CO_DATA"])
self.assertFalse(p.myOption["CH4_DATA"])
self.assertFalse(p.myOption["ADDPC"])
self.assertFalse(p.myOption["ADDRADREC"])
else: # not MW
self.assertFalse(p.myOption.statusOption["FASTEM_VERSION"])
self.assertFalse(p.myOption.statusOption["CLW_DATA"])
self.assertFalse(p.myOption["CLW_DATA"])
if p.isPC(): # not MW not PC
for gas in ("CO", "CO2", "N2O", "CH4"):
if p.myCoeffs.hasGas(gas) and p.myProfile.hasGas(gas):
self.assertFalse(p.myOption[gas + "_DATA"])
self.assertFalse(
p.myOption.statusOption[gas + "_DATA"])
self.assertFalse(p.myOption["ADDAEROSL"])
self.assertFalse(p.myOption.statusOption["ADDAEROSL"])
self.assertFalse(p.myOption["DO_NLTE_CORRECTION"])
self.assertFalse(p.myOption.statusOption["DO_NLTE_CORRECTION"])
else:
for gas in ("CO", "CO2", "N2O", "CH4"):
if p.myCoeffs.hasGas(gas) and p.myProfile.hasGas(gas):
self.assertTrue(p.myOption.statusOption[gas + "_DATA"])
else:
self.assertFalse(p.myOption[gas + "_DATA"])
self.assertFalse(
p.myOption.statusOption[gas + "_DATA"])
if p.myCoeffs.hasAerosols() and p.myProfile.hasAerosols():
self.assertTrue(p.myOption.statusOption["ADDAEROSL"])
else:
self.assertFalse(p.myOption["ADDAEROSL"])
self.assertFalse(p.myOption.statusOption["ADDAEROSL"])
if p.myCoeffs.hasGas("O3") and p.myProfile.hasGas("O3"):
self.assertTrue(p.myOption.statusOption["OZONE_DATA"])
else:
self.assertFalse(p.myOption["OZONE_DATA"])
self.assertFalse(p.myOption.statusOption["OZONE_DATA"])
if not p.myCoeffs.hasNLTE():
self.assertFalse(p.myOption.statusOption["DO_NLTE_CORRECTION"])
self.assertFalse(p.myOption["DO_NLTE_CORRECTION"])
if p.myOption["ADDCLOUDS"]:
self.assertTrue(p.myOption.statusOption["CLDSTR_THRESHOLD"])
if p.myOption["ADDPC"]:
self.assertFalse(p.myOption.statusOption["CLDSTR_SIMPLE"])
self.assertFalse(p.myOption["CLDSTR_SIMPLE"])
else:
self.assertTrue(p.myOption.statusOption["CLDSTR_SIMPLE"])
else:
self.assertFalse(p.myOption.statusOption["CLDSTR_SIMPLE"])
self.assertFalse(p.myOption["CLDSTR_SIMPLE"])
self.assertFalse(p.myOption.statusOption["CLDSTR_THRESHOLD"])
if not p.myOption.statusOption["ADDCLOUDS"]:
self.assertFalse(p.myOption.statusOption["CLDSTR_SIMPLE"])
self.assertFalse(p.myOption["CLDSTR_SIMPLE"])
self.assertFalse(p.myOption.statusOption["CLDSTR_THRESHOLD"])
class test_test(RttovGuiUnitTest):
def test_check_option(self):
print "test rttovgui_unittest_class"
profileName = "../rttov_tests/cldaer101lev_allgas.H5"
p = rmodel.project.Project()
profileName = p.config.ENV[
"RTTOV_GUI_PROFILE_DIR"] + "/us76_43lev_allgas.H5"
print "openProfile", profileName
p.openProfile(profileName)
coefFile = p.config.ENV['RTTOV_GUI_COEFF_DIR'] + \
"/rttov9pred101L/rtcoef_metop_2_iasi.H5"
pcFile = p.config.ENV['RTTOV_GUI_COEFF_DIR'] + \
"/pc/pccoef_metop_2_iasi.H5"
p.myCoeffs.fileName["standard"] = coefFile
p.myCoeffs.fileName["PC"] = pcFile
p.loadCoefficients()
p.ctrlCoherence()
self.check_option(p)
if __name__ == "__main__":
unittest.main()
| 43.575
| 79
| 0.605135
| 716
| 6,972
| 5.769553
| 0.149441
| 0.165577
| 0.224643
| 0.336964
| 0.773178
| 0.692326
| 0.563302
| 0.493101
| 0.473251
| 0.465263
| 0
| 0.007221
| 0.26506
| 6,972
| 159
| 80
| 43.849057
| 0.798985
| 0.002869
| 0
| 0.507576
| 0
| 0
| 0.146957
| 0.024058
| 0
| 0
| 0
| 0
| 0.55303
| 0
| null | null | 0.007576
| 0.015152
| null | null | 0.015152
| 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
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b378930a2dc7d5b354e922e60f6d8fa9bedf25e2
| 217
|
py
|
Python
|
src/brouwers/utils/forms.py
|
modelbrouwers/modelbrouwers
|
e0ba4819bf726d6144c0a648fdd4731cdc098a52
|
[
"MIT"
] | 6
|
2015-03-03T13:23:07.000Z
|
2021-12-19T18:12:41.000Z
|
src/brouwers/utils/forms.py
|
modelbrouwers/modelbrouwers
|
e0ba4819bf726d6144c0a648fdd4731cdc098a52
|
[
"MIT"
] | 95
|
2015-02-07T00:55:39.000Z
|
2022-02-08T20:22:05.000Z
|
src/brouwers/utils/forms.py
|
modelbrouwers/modelbrouwers
|
e0ba4819bf726d6144c0a648fdd4731cdc098a52
|
[
"MIT"
] | 2
|
2016-03-22T16:53:26.000Z
|
2019-02-09T22:46:04.000Z
|
from django.forms import ModelForm
class AlwaysChangedModelForm(ModelForm):
"""
Mark the form always as changed, so that the instance is always saved.
"""
def has_changed(self):
return True
| 19.727273
| 74
| 0.691244
| 27
| 217
| 5.518519
| 0.851852
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.239631
| 217
| 10
| 75
| 21.7
| 0.90303
| 0.322581
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 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
| 0
| 0
| 1
| 1
| 0
|
0
| 4
|
b383a65a6491566f7e91c00f039581a4b4780d85
| 3,461
|
py
|
Python
|
test/feature/test_harris.py
|
jiangwei221/kornia
|
a211d4952355e440b944b1bda8eed4c2a7457c2d
|
[
"Apache-2.0"
] | null | null | null |
test/feature/test_harris.py
|
jiangwei221/kornia
|
a211d4952355e440b944b1bda8eed4c2a7457c2d
|
[
"Apache-2.0"
] | null | null | null |
test/feature/test_harris.py
|
jiangwei221/kornia
|
a211d4952355e440b944b1bda8eed4c2a7457c2d
|
[
"Apache-2.0"
] | null | null | null |
import pytest
import torch
import kornia as kornia
from torch.testing import assert_allclose
from torch.autograd import gradcheck
import utils # test utils
class TestCornerHarris:
def test_shape(self):
inp = torch.ones(1, 3, 4, 4)
sobel = kornia.feature.CornerHarris(k=0.04)
assert sobel(inp).shape == (1, 3, 4, 4)
def test_shape_batch(self):
inp = torch.zeros(2, 6, 4, 4)
sobel = kornia.feature.CornerHarris(k=0.04)
assert sobel(inp).shape == (2, 6, 4, 4)
def test_corners(self):
inp = torch.tensor([[[
[0., 0., 0., 0., 0., 0., 0.],
[0., 1., 1., 1., 1., 1., 0.],
[0., 1., 1., 1., 1., 1., 0.],
[0., 1., 1., 1., 1., 1., 0.],
[0., 1., 1., 1., 1., 1., 0.],
[0., 1., 1., 1., 1., 1., 0.],
[0., 0., 0., 0., 0., 0., 0.],
]]])
expected = torch.tensor([[[
[0., 0., 0., 0., 0., 0., 0.],
[0., 1., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0.],
[0., 1., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0.],
]]])
scores = kornia.feature.corner_harris(inp, k=0.04)
assert_allclose(scores, expected)
def test_corners_batch(self):
inp = torch.tensor([[
[0., 0., 0., 0., 0., 0., 0.],
[0., 1., 1., 1., 1., 1., 0.],
[0., 1., 1., 1., 1., 1., 0.],
[0., 1., 1., 1., 1., 1., 0.],
[0., 1., 1., 1., 1., 1., 0.],
[0., 1., 1., 1., 1., 1., 0.],
[0., 0., 0., 0., 0., 0., 0.],
], [
[0., 0., 0., 0., 0., 0., 0.],
[0., 1., 1., 1., 1., 0., 0.],
[0., 1., 1., 1., 1., 0., 0.],
[0., 1., 1., 1., 1., 0., 0.],
[0., 1., 1., 1., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0.],
]]).repeat(2, 1, 1, 1)
expected = torch.tensor([[
[0., 0., 0., 0., 0., 0., 0.],
[0., 1., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0.],
[0., 1., 0., 0., 0., 1., 0.],
[0., 0., 0., 0., 0., 0., 0.],
], [
[0., 0., 0., 0., 0., 0., 0.],
[0., 1., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0.],
[0., 1., 0., 0., 1., 0., 0.],
[0., 0., 0., 0., 0., 0., 0.],
[0., 0., 0., 0., 0., 0., 0.],
]])
scores = kornia.feature.corner_harris(inp, k=0.04)
assert_allclose(scores, expected)
def test_gradcheck(self):
k = 0.04
batch_size, channels, height, width = 1, 2, 5, 4
img = torch.rand(batch_size, channels, height, width)
img = utils.tensor_to_gradcheck_var(img) # to var
assert gradcheck(kornia.feature.corner_harris, (img, k),
raise_exception=True)
def test_jit(self):
@torch.jit.script
def op_script(input, k):
return kornia.feature.corner_harris(input, k)
k = torch.tensor(0.04)
img = torch.rand(2, 3, 4, 5)
actual = op_script(img, k)
expected = kornia.feature.corner_harris(img, k)
assert_allclose(actual, expected)
| 33.601942
| 64
| 0.37388
| 515
| 3,461
| 2.464078
| 0.112621
| 0.293144
| 0.368794
| 0.428684
| 0.58156
| 0.537431
| 0.491726
| 0.491726
| 0.491726
| 0.491726
| 0
| 0.156394
| 0.371858
| 3,461
| 102
| 65
| 33.931373
| 0.427323
| 0.004912
| 0
| 0.58427
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.078652
| 1
| 0.078652
| false
| 0
| 0.067416
| 0.011236
| 0.168539
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b38c7560118ff8a916f0ba42ae01642fcb764fd7
| 289
|
py
|
Python
|
utils/common.py
|
ezeportela/newspaper-ds
|
de849e0d34d9c40a8f4cff65a1f9ae4e4a69f8e7
|
[
"MIT"
] | null | null | null |
utils/common.py
|
ezeportela/newspaper-ds
|
de849e0d34d9c40a8f4cff65a1f9ae4e4a69f8e7
|
[
"MIT"
] | null | null | null |
utils/common.py
|
ezeportela/newspaper-ds
|
de849e0d34d9c40a8f4cff65a1f9ae4e4a69f8e7
|
[
"MIT"
] | null | null | null |
import yaml
__config = None
def config():
if not __config:
with open('config.yaml', 'r') as f:
config = yaml.load(f, Loader=yaml.SafeLoader)
return config
def get_news_sites():
return config()['news_sites']
def get_news_site(uid):
return config()['news_sites'][uid]
| 17
| 51
| 0.678201
| 43
| 289
| 4.325581
| 0.488372
| 0.193548
| 0.107527
| 0.225806
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.179931
| 289
| 16
| 52
| 18.0625
| 0.78481
| 0
| 0
| 0
| 0
| 0
| 0.110727
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.272727
| false
| 0
| 0.090909
| 0.181818
| 0.636364
| 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
|
b38d5c93c602888de28ab6c2d5e782f783ba375b
| 68
|
py
|
Python
|
problema 2.py
|
IrayP/PythonPC3
|
e13aa9a58279add8453a72a5f9fc1e16cfc7f89b
|
[
"Apache-2.0"
] | null | null | null |
problema 2.py
|
IrayP/PythonPC3
|
e13aa9a58279add8453a72a5f9fc1e16cfc7f89b
|
[
"Apache-2.0"
] | null | null | null |
problema 2.py
|
IrayP/PythonPC3
|
e13aa9a58279add8453a72a5f9fc1e16cfc7f89b
|
[
"Apache-2.0"
] | null | null | null |
def capitalizar_cada_palabra(cadena):
print(cadena.title())
| 17
| 38
| 0.720588
| 8
| 68
| 5.875
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.161765
| 68
| 3
| 39
| 22.666667
| 0.824561
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| false
| 0
| 0
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 4
|
b390d0090fc9b491bbc4eba2454fe9c0025e353e
| 148
|
py
|
Python
|
Python/if-else.py
|
MarsBighead/mustang
|
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
|
[
"MIT"
] | 4
|
2017-04-30T18:28:19.000Z
|
2018-12-08T15:46:37.000Z
|
Python/if-else.py
|
MarsBighead/mustang
|
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
|
[
"MIT"
] | 1
|
2021-09-22T20:11:36.000Z
|
2021-09-22T20:11:36.000Z
|
Python/if-else.py
|
MarsBighead/mustang
|
ffbaf109931557e40da2d97e4eb914bc1c0aba0d
|
[
"MIT"
] | null | null | null |
#!/usr/bin/python
name = raw_input('What is your name? ')
if name.endswith('Gumby'):
print 'Hello, M. Gumby'
else:
print 'Hello. stranger'
| 18.5
| 39
| 0.648649
| 22
| 148
| 4.318182
| 0.772727
| 0.210526
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.182432
| 148
| 7
| 40
| 21.142857
| 0.785124
| 0.108108
| 0
| 0
| 0
| 0
| 0.412214
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0.4
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b3998f2fa5d62ce7a96af9b5a7db0dc4b79bcd1a
| 175
|
py
|
Python
|
examples/one_hot_encode.py
|
ppmdatix/rtdl
|
a01ecd9ae6b673f4e82e51f804ffd7031c7350a0
|
[
"Apache-2.0"
] | null | null | null |
examples/one_hot_encode.py
|
ppmdatix/rtdl
|
a01ecd9ae6b673f4e82e51f804ffd7031c7350a0
|
[
"Apache-2.0"
] | null | null | null |
examples/one_hot_encode.py
|
ppmdatix/rtdl
|
a01ecd9ae6b673f4e82e51f804ffd7031c7350a0
|
[
"Apache-2.0"
] | null | null | null |
def one_hot_encode(_df, _col):
_values = set(_df[_col].values)
for v in _values:
_df[_col + str(v)] = _df[_col].apply(lambda x : float(x == v) )
return _df
| 35
| 71
| 0.605714
| 29
| 175
| 3.206897
| 0.586207
| 0.215054
| 0.236559
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.24
| 175
| 5
| 72
| 35
| 0.699248
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
b3d136e90070398b153d34dc7f4b6ad56ffe5b80
| 328
|
py
|
Python
|
opset/__init__.py
|
MarcDufresne/opset
|
d761b436d1941aca4ae9be38d6e2e6075dc4d072
|
[
"Apache-2.0"
] | 7
|
2019-09-20T18:04:30.000Z
|
2022-01-29T01:11:14.000Z
|
opset/__init__.py
|
MarcDufresne/opset
|
d761b436d1941aca4ae9be38d6e2e6075dc4d072
|
[
"Apache-2.0"
] | 5
|
2020-07-24T18:19:28.000Z
|
2020-10-28T15:38:10.000Z
|
opset/__init__.py
|
MarcDufresne/opset
|
d761b436d1941aca4ae9be38d6e2e6075dc4d072
|
[
"Apache-2.0"
] | 5
|
2020-04-18T17:28:31.000Z
|
2021-07-23T15:16:49.000Z
|
# __init__.py
# Alexandre Jutras, 2018-11-19, Emilio Assuncao, 2019-01-17
# Copyright (c) Element AI Inc. All rights not expressly granted hereunder are reserved.
from opset.configurator import BaseProcessor, config, load_logging_config, setup_config, setup_unit_test_config # noqa
from opset.utils import mock_config # noqa
| 46.857143
| 119
| 0.801829
| 48
| 328
| 5.25
| 0.8125
| 0.071429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.055944
| 0.128049
| 328
| 6
| 120
| 54.666667
| 0.825175
| 0.506098
| 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
|
b3d3afe6cc09fc6b49058613dd3abb30e6eeec8d
| 388
|
py
|
Python
|
convnwb/tests/tsettings.py
|
JacobsSU/convnwb
|
3d15a9aa7a1e110320428bafb6250f94a8ab50e5
|
[
"MIT"
] | null | null | null |
convnwb/tests/tsettings.py
|
JacobsSU/convnwb
|
3d15a9aa7a1e110320428bafb6250f94a8ab50e5
|
[
"MIT"
] | 1
|
2021-12-17T20:06:40.000Z
|
2021-12-17T20:06:40.000Z
|
convnwb/tests/tsettings.py
|
JacobsSU/convnwb
|
3d15a9aa7a1e110320428bafb6250f94a8ab50e5
|
[
"MIT"
] | null | null | null |
"""Settings for tests."""
import os
from pathlib import Path
import pkg_resources as pkg
###################################################################################################
###################################################################################################
# Set paths for test files
TEST_FILE_PATH = Path(pkg.resource_filename(__name__, 'test_files'))
| 32.333333
| 99
| 0.373711
| 29
| 388
| 4.689655
| 0.655172
| 0.132353
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.072165
| 388
| 11
| 100
| 35.272727
| 0.377778
| 0.115979
| 0
| 0
| 0
| 0
| 0.071942
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
b3ec7a8d406bb76a3ad4d9005d5832c279d4d5b2
| 222
|
py
|
Python
|
fem_input.py
|
sepitto/OAPproject2
|
b404456f84ec718b12eb36dbfd459dee46c6b02c
|
[
"MIT"
] | null | null | null |
fem_input.py
|
sepitto/OAPproject2
|
b404456f84ec718b12eb36dbfd459dee46c6b02c
|
[
"MIT"
] | null | null | null |
fem_input.py
|
sepitto/OAPproject2
|
b404456f84ec718b12eb36dbfd459dee46c6b02c
|
[
"MIT"
] | null | null | null |
def get_input():
EF1 = float(input("введите значения жесткостей элементов: " + "\n" + "EF1 = "))
EF2 = float(input("EF2 = "))
F = float(input("введите значение усилия:" + "\n" + "F = "))
return EF1, EF2, F
| 37
| 83
| 0.567568
| 28
| 222
| 4.464286
| 0.535714
| 0.24
| 0.272
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.035088
| 0.22973
| 222
| 6
| 84
| 37
| 0.695906
| 0
| 0
| 0
| 0
| 0
| 0.372197
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.2
| false
| 0
| 0
| 0
| 0.4
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
3733bebbb644735f4d4f31d2211c7ae3d5bc4127
| 468
|
bzl
|
Python
|
container/private/versions.bzl
|
alexeagle/rules_container
|
885067eee3899ae71f61d99572157af8c09b5c35
|
[
"Apache-2.0"
] | null | null | null |
container/private/versions.bzl
|
alexeagle/rules_container
|
885067eee3899ae71f61d99572157af8c09b5c35
|
[
"Apache-2.0"
] | null | null | null |
container/private/versions.bzl
|
alexeagle/rules_container
|
885067eee3899ae71f61d99572157af8c09b5c35
|
[
"Apache-2.0"
] | null | null | null |
"""Mirror of release info
TODO: generate this file from GitHub API"""
# The integrity hashes can be computed with
# shasum -b -a 384 [downloaded file] | awk '{ print $1 }' | xxd -r -p | base64
TOOL_VERSIONS = {
"7.0.1-rc1": {
"darwin_arm64": "sha384-PMTl7GMV01JnwQ0yoURCuEVq+xUUlhayLzBFzqId8ebIBQ8g8aWnbiRX0e4xwdY1",
},
}
# shasum -b -a 384 /Users/thesayyn/Downloads/go-containerregistry_Darwin_arm64.tar.gz | awk '{ print $1 }' | xxd -r -p | base64
| 36
| 127
| 0.688034
| 62
| 468
| 5.129032
| 0.758065
| 0.044025
| 0.050314
| 0.069182
| 0.125786
| 0.125786
| 0.125786
| 0
| 0
| 0
| 0
| 0.085714
| 0.17735
| 468
| 13
| 127
| 36
| 0.74026
| 0.662393
| 0
| 0
| 1
| 0
| 0.609272
| 0.470199
| 0
| 0
| 0
| 0.076923
| 0
| 1
| 0
| false
| 0
| 0
| 0
| 0
| 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
| 1
| 0
| 1
| 1
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
37384f74ae4e421b18eb77f69bd4a71ae0e9cacb
| 2,902
|
py
|
Python
|
optimus/engines/pandas/functions.py
|
ironmussa/Optimus
|
fbaea6e0957f0bc016280a85ff021904faac20c5
|
[
"Apache-2.0"
] | 1,045
|
2017-07-17T17:59:46.000Z
|
2021-06-15T07:06:48.000Z
|
optimus/engines/pandas/functions.py
|
ironmussa/Optimus
|
fbaea6e0957f0bc016280a85ff021904faac20c5
|
[
"Apache-2.0"
] | 955
|
2017-07-14T15:47:58.000Z
|
2021-05-27T14:16:24.000Z
|
optimus/engines/pandas/functions.py
|
ironmussa/Optimus
|
fbaea6e0957f0bc016280a85ff021904faac20c5
|
[
"Apache-2.0"
] | 226
|
2017-08-04T20:41:33.000Z
|
2021-05-21T08:28:33.000Z
|
import numpy as np
import pandas as pd
from optimus.engines.base.pandas.functions import PandasBaseFunctions
from optimus.engines.base.dataframe.functions import DataFrameBaseFunctions
class PandasFunctions(PandasBaseFunctions, DataFrameBaseFunctions):
_engine = pd
@staticmethod
def dask_to_compatible(dfd):
from optimus.helpers.converter import dask_dataframe_to_pandas
return dask_dataframe_to_pandas(dfd)
@staticmethod
def df_concat(df_list):
return pd.concat(df_list, axis=0, ignore_index=True)
@staticmethod
def new_df(*args, **kwargs):
return pd.DataFrame(*args, **kwargs)
def count_zeros(self, series, *args):
return int((self.to_float(series).values == 0).sum())
def kurtosis(self, series):
# use scipy to match function from dask.array.stats
from scipy.stats import kurtosis
return kurtosis(self.to_float(series.dropna()))
def skew(self, series):
# use scipy to match function from dask.array.stats
from scipy.stats import skew
return skew(self.to_float(series.dropna()))
def exp(self, series):
return np.exp(self.to_float(series))
def sqrt(self, series):
return np.sqrt(self.to_float(series))
def reciprocal(self, series):
return np.reciprocal(self.to_float(series))
def radians(self, series):
return np.radians(self.to_float(series))
def degrees(self, series):
return np.degrees(self.to_float(series))
def ln(self, series):
return np.log(self.to_float(series))
def log(self, series, base=10):
return np.log(self.to_float(series)) / np.log(base)
def sin(self, series):
return np.sin(self.to_float(series))
def cos(self, series):
return np.cos(self.to_float(series))
def tan(self, series):
return np.tan(self.to_float(series))
def asin(self, series):
return np.arcsin(self.to_float(series))
def acos(self, series):
return np.arccos(self.to_float(series))
def atan(self, series):
return np.arctan(self.to_float(series))
def sinh(self, series):
return np.arcsinh(self.to_float(series))
def cosh(self, series):
return np.cosh(self.to_float(series))
def tanh(self, series):
return np.tanh(self.to_float(series))
def asinh(self, series):
return np.arcsinh(self.to_float(series))
def acosh(self, series):
return np.arccosh(self.to_float(series))
def atanh(self, series):
return np.arctanh(self.to_float(series))
def floor(self, series):
return np.floor(self.to_float(series))
def ceil(self, series):
return np.ceil(self.to_float(series))
def normalize_chars(self, series):
return series.str.normalize("NFKD").str.encode('ascii', errors='ignore').str.decode('utf8')
| 27.903846
| 99
| 0.664369
| 397
| 2,902
| 4.755668
| 0.229219
| 0.132415
| 0.139831
| 0.216102
| 0.361758
| 0.180085
| 0.152542
| 0.122881
| 0.122881
| 0.122881
| 0
| 0.002205
| 0.21847
| 2,902
| 103
| 100
| 28.174757
| 0.830247
| 0.034114
| 0
| 0.073529
| 0
| 0
| 0.006786
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.411765
| false
| 0
| 0.102941
| 0.367647
| 0.955882
| 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
|
373b47852163763bc389b966291ee72fb1874da3
| 124
|
py
|
Python
|
notes/__init__.py
|
ibutra/SpyDashServer
|
d12e6aac4efe487a3b6e950236ed2ef5d464178c
|
[
"MIT"
] | 2
|
2015-11-13T14:43:37.000Z
|
2015-11-13T14:44:28.000Z
|
notes/__init__.py
|
ibutra/SpyDashServer
|
d12e6aac4efe487a3b6e950236ed2ef5d464178c
|
[
"MIT"
] | null | null | null |
notes/__init__.py
|
ibutra/SpyDashServer
|
d12e6aac4efe487a3b6e950236ed2ef5d464178c
|
[
"MIT"
] | null | null | null |
from spydashserver.plugins import PluginConfig
plugin_config = PluginConfig("notes", "notes.Notes", models='notes.models')
| 31
| 75
| 0.798387
| 14
| 124
| 7
| 0.642857
| 0.204082
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.080645
| 124
| 3
| 76
| 41.333333
| 0.859649
| 0
| 0
| 0
| 0
| 0
| 0.225806
| 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
|
373e2a9cb1847f05a345a2ae4b8d35f77e917899
| 177
|
py
|
Python
|
examples/favourites.py
|
ChrisPenner/tempered
|
4712e4b09e015416668a53b1fae3b5b15d25533b
|
[
"BSD-3-Clause"
] | 34
|
2017-04-23T03:29:17.000Z
|
2020-11-17T08:42:08.000Z
|
examples/favourites.py
|
ChrisPenner/tempered
|
4712e4b09e015416668a53b1fae3b5b15d25533b
|
[
"BSD-3-Clause"
] | null | null | null |
examples/favourites.py
|
ChrisPenner/tempered
|
4712e4b09e015416668a53b1fae3b5b15d25533b
|
[
"BSD-3-Clause"
] | null | null | null |
# You can write scripts in any language you like to level up your templates!
import sys
print(" and ".join(sys.argv[1:]) + ",")
print("These are a few of my favourite things")
| 29.5
| 76
| 0.706215
| 31
| 177
| 4.032258
| 0.903226
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.006849
| 0.175141
| 177
| 5
| 77
| 35.4
| 0.849315
| 0.418079
| 0
| 0
| 0
| 0
| 0.435644
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0.666667
| 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
| 0
| 1
|
0
| 4
|
373f5ed913a1856df63399d6908d5cafe757a957
| 140
|
py
|
Python
|
run_b_to_others.py
|
MnOpenProject/AutoVideoPub
|
742aa562e7e99713ae8bfa47acaed2b025dee72f
|
[
"MIT"
] | 25
|
2022-02-08T03:54:55.000Z
|
2022-03-29T10:30:53.000Z
|
run_b_to_others.py
|
MnOpenProject/AutoVideoPub
|
742aa562e7e99713ae8bfa47acaed2b025dee72f
|
[
"MIT"
] | null | null | null |
run_b_to_others.py
|
MnOpenProject/AutoVideoPub
|
742aa562e7e99713ae8bfa47acaed2b025dee72f
|
[
"MIT"
] | 5
|
2022-02-08T03:55:09.000Z
|
2022-03-11T13:46:22.000Z
|
''' 下载自己的B站投稿视频,并上传到我账号登录的其他视频平台上 '''
from from_mybilibili_to_others.main_script import main_func
if __name__ == '__main__':
main_func()
| 28
| 59
| 0.785714
| 17
| 140
| 5.647059
| 0.705882
| 0.166667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.107143
| 140
| 5
| 60
| 28
| 0.768
| 0.207143
| 0
| 0
| 0
| 0
| 0.07767
| 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
|
3795985e28a6f9c430407ec3358f34feae7cf7b7
| 1,274
|
py
|
Python
|
chempy/properties/tests/test_water_density_tanaka_2001.py
|
matecsaj/chempy
|
2c93f185e4547739331193c06d77282206621517
|
[
"BSD-2-Clause"
] | null | null | null |
chempy/properties/tests/test_water_density_tanaka_2001.py
|
matecsaj/chempy
|
2c93f185e4547739331193c06d77282206621517
|
[
"BSD-2-Clause"
] | null | null | null |
chempy/properties/tests/test_water_density_tanaka_2001.py
|
matecsaj/chempy
|
2c93f185e4547739331193c06d77282206621517
|
[
"BSD-2-Clause"
] | 1
|
2022-03-21T09:01:48.000Z
|
2022-03-21T09:01:48.000Z
|
import warnings
from chempy.units import allclose
from ..water_density_tanaka_2001 import water_density
def test_water_density():
warnings.filterwarnings("error")
assert abs(water_density(273.15 + 0) - 999.8395) < 0.004
assert abs(water_density(273.15 + 4) - 999.9720) < 0.003
assert abs(water_density(273.15 + 10) - 999.7026) < 0.0003
assert abs(water_density(273.15 + 15) - 999.1026) < 0.0001
assert abs(water_density(273.15 + 20) - 998.2071) < 0.0005
assert abs(water_density(273.15 + 22) - 997.7735) < 0.0007
assert abs(water_density(273.15 + 25) - 997.0479) < 0.0009
assert abs(water_density(273.15 + 30) - 995.6502) < 0.0016
assert abs(water_density(273.15 + 40) - 992.2) < 0.02
try:
water_density(1)
except UserWarning:
pass # good warning raised
else:
raise
warnings.resetwarnings()
try:
import quantities as pq
import numpy as np
unit = pq.kg/pq.m**3
assert allclose(water_density(298.15*pq.K, units=pq),
997.047021671824*unit, atol=1e-8*unit)
assert allclose(water_density(np.linspace(297, 299)*pq.K, units=pq),
997*unit, rtol=1e-3, atol=1e-3*unit)
except ImportError:
pass
| 34.432432
| 76
| 0.631868
| 191
| 1,274
| 4.120419
| 0.418848
| 0.228717
| 0.160102
| 0.240152
| 0.330368
| 0.297332
| 0
| 0
| 0
| 0
| 0
| 0.211458
| 0.246468
| 1,274
| 36
| 77
| 35.388889
| 0.608333
| 0.014914
| 0
| 0.129032
| 0
| 0
| 0.00399
| 0
| 0
| 0
| 0
| 0
| 0.354839
| 1
| 0.032258
| false
| 0.064516
| 0.193548
| 0
| 0.225806
| 0
| 0
| 0
| 0
| null | 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 4
|
37b4c8430381db41a16722d4f153f5d9b65c1dfe
| 61
|
py
|
Python
|
cookie_demo/__init__.py
|
HarperHao/flask_study
|
c3daad8fe256916b89fad3d449832d9d1f8f8f5a
|
[
"Apache-2.0"
] | null | null | null |
cookie_demo/__init__.py
|
HarperHao/flask_study
|
c3daad8fe256916b89fad3d449832d9d1f8f8f5a
|
[
"Apache-2.0"
] | null | null | null |
cookie_demo/__init__.py
|
HarperHao/flask_study
|
c3daad8fe256916b89fad3d449832d9d1f8f8f5a
|
[
"Apache-2.0"
] | null | null | null |
"""
Author : HarperHao
TIME : 2020/10/
FUNCTION:
"""
| 8.714286
| 20
| 0.540984
| 6
| 61
| 5.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.136364
| 0.278689
| 61
| 6
| 21
| 10.166667
| 0.613636
| 0.803279
| 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
|
37bb975f8e30ed4c272ea153a8b2cba4fe82c0ee
| 507
|
py
|
Python
|
pymachine/__init__.py
|
landrew31/pymachine
|
117ad7aa3694a1ccb0be207cc931de8c2c345567
|
[
"MIT"
] | 1
|
2018-02-21T08:57:08.000Z
|
2018-02-21T08:57:08.000Z
|
pymachine/__init__.py
|
landrew31/pymachine
|
117ad7aa3694a1ccb0be207cc931de8c2c345567
|
[
"MIT"
] | null | null | null |
pymachine/__init__.py
|
landrew31/pymachine
|
117ad7aa3694a1ccb0be207cc931de8c2c345567
|
[
"MIT"
] | null | null | null |
from .condition import Condition
from .exceptions import (
DuplicateCondition,
StateMachineAlreadyFinished,
StateMachineTransitionWithoutNextState,
UnknownInput,
UnknownState,
)
from .state_machine import StateMachine
from .transition_table import TransitionTable
__all__ = (
'Condition',
'DuplicateCondition',
'StateMachineAlreadyFinished',
'StateMachineTransitionWithoutNextState',
'UnknownInput',
'UnknownState',
'StateMachine',
'TransitionTable',
)
| 22.043478
| 45
| 0.751479
| 31
| 507
| 12.096774
| 0.516129
| 0.24
| 0.442667
| 0.506667
| 0.570667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.17357
| 507
| 22
| 46
| 23.045455
| 0.894988
| 0
| 0
| 0
| 0
| 0
| 0.282051
| 0.128205
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.2
| 0
| 0.2
| 0
| 0
| 0
| 1
| 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
|
807484c7fbb53875616695010e5f874e93f3f07b
| 1,196
|
py
|
Python
|
gaphor/diagram/tests/test_group.py
|
MartinIIOT/gaphor
|
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
|
[
"Apache-2.0"
] | null | null | null |
gaphor/diagram/tests/test_group.py
|
MartinIIOT/gaphor
|
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
|
[
"Apache-2.0"
] | null | null | null |
gaphor/diagram/tests/test_group.py
|
MartinIIOT/gaphor
|
b08bf6ddb8c92ec87fccabc2ddee697609f73e67
|
[
"Apache-2.0"
] | null | null | null |
from gaphor.core.modeling import Diagram, Element
from gaphor.diagram.group import can_group, group, ungroup
def test_group_diagram(element_factory):
diagram = element_factory.create(Diagram)
parent = element_factory.create(Element)
assert group(parent, diagram)
assert diagram.element is parent
def test_ungroup_diagram(element_factory):
diagram = element_factory.create(Diagram)
parent = element_factory.create(Element)
diagram.element = parent
assert ungroup(parent, diagram)
assert diagram.element is None
def test_do_not_ungroup_diagram_from_wrong_parent(element_factory):
diagram = element_factory.create(Diagram)
parent = element_factory.create(Element)
wrong_parent = element_factory.create(Element)
diagram.element = parent
assert not ungroup(wrong_parent, diagram)
assert diagram.element is parent
def test_can_group_with_type(element_factory):
parent = element_factory.create(Element)
assert can_group(parent, Diagram)
def test_can_group_with_instance(element_factory):
diagram = element_factory.create(Diagram)
parent = element_factory.create(Element)
assert can_group(parent, diagram)
| 26
| 67
| 0.776756
| 151
| 1,196
| 5.89404
| 0.15894
| 0.235955
| 0.224719
| 0.175281
| 0.761798
| 0.726966
| 0.68764
| 0.68764
| 0.68764
| 0.48427
| 0
| 0
| 0.15301
| 1,196
| 45
| 68
| 26.577778
| 0.878578
| 0
| 0
| 0.481481
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.296296
| 1
| 0.185185
| false
| 0
| 0.074074
| 0
| 0.259259
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 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
|
808be02fcaaceb706798c734decefc455667d42f
| 189
|
py
|
Python
|
Traidoo/settings/third_party/jwt.py
|
stanwood/traidoo-api
|
83e8599f2eb54352988bac27e2d4acd30734816d
|
[
"MIT"
] | 3
|
2020-05-05T12:12:09.000Z
|
2020-05-08T08:48:16.000Z
|
Traidoo/settings/third_party/jwt.py
|
stanwood/traidoo-api
|
83e8599f2eb54352988bac27e2d4acd30734816d
|
[
"MIT"
] | 160
|
2020-05-19T13:03:43.000Z
|
2022-03-12T00:35:28.000Z
|
Traidoo/settings/third_party/jwt.py
|
stanwood/traidoo-api
|
83e8599f2eb54352988bac27e2d4acd30734816d
|
[
"MIT"
] | null | null | null |
import datetime
SIMPLE_JWT = {
"ACCESS_TOKEN_LIFETIME": datetime.timedelta(minutes=15),
"REFRESH_TOKEN_LIFETIME": datetime.timedelta(days=1),
"ROTATE_REFRESH_TOKENS": False,
}
| 23.625
| 60
| 0.746032
| 22
| 189
| 6.090909
| 0.727273
| 0.19403
| 0.313433
| 0.447761
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.018293
| 0.132275
| 189
| 7
| 61
| 27
| 0.79878
| 0
| 0
| 0
| 0
| 0
| 0.338624
| 0.338624
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.166667
| 0
| 0.166667
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
8094fafe1e761d8ee65e85aaf6cc8712475bd813
| 103
|
py
|
Python
|
natch/decorators/eq.py
|
ertgl/natch
|
5729725c6eed1596071ac984e3ddfdc21a15af0a
|
[
"MIT"
] | 2
|
2020-05-24T23:41:00.000Z
|
2020-05-25T09:18:08.000Z
|
natch/decorators/eq.py
|
ertgl/natch
|
5729725c6eed1596071ac984e3ddfdc21a15af0a
|
[
"MIT"
] | null | null | null |
natch/decorators/eq.py
|
ertgl/natch
|
5729725c6eed1596071ac984e3ddfdc21a15af0a
|
[
"MIT"
] | null | null | null |
from natch.core import Decoration
from natch.rules import Eq
eq = Decoration.make_rule_decorator(Eq)
| 17.166667
| 39
| 0.815534
| 16
| 103
| 5.125
| 0.625
| 0.219512
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.126214
| 103
| 5
| 40
| 20.6
| 0.911111
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 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
|
809552f7973e615c2f4a90404bfb3fb757f2ae2f
| 121
|
py
|
Python
|
my_app.py
|
RaMantik2/test
|
cfa5f7936ed0dda3a8e42c54663201c53c9db47a
|
[
"CC0-1.0"
] | null | null | null |
my_app.py
|
RaMantik2/test
|
cfa5f7936ed0dda3a8e42c54663201c53c9db47a
|
[
"CC0-1.0"
] | null | null | null |
my_app.py
|
RaMantik2/test
|
cfa5f7936ed0dda3a8e42c54663201c53c9db47a
|
[
"CC0-1.0"
] | null | null | null |
from PyQt5.QtWidgets import QApplication, QWidget,QLabel,QPushButton,QVBoxLayout,QHBoxLayout
from PyQt5.QtCore import Qt
| 60.5
| 93
| 0.867769
| 15
| 121
| 7
| 0.8
| 0.171429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.017857
| 0.07438
| 121
| 2
| 94
| 60.5
| 0.919643
| 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
|
80c5a9a0900f3dacf61cf4b3f1c08b4e91836ac8
| 2,209
|
py
|
Python
|
tasks/medium-150/nyan-cat/exploit.py
|
C4T-BuT-S4D/nordctf-2019-finals
|
b63d00efe9912de3e165badfa29be1483d731ecf
|
[
"WTFPL"
] | 5
|
2019-10-12T11:04:05.000Z
|
2021-01-21T16:56:29.000Z
|
tasks/medium-150/nyan-cat/exploit.py
|
C4T-BuT-S4D/nordctf-2019-finals
|
b63d00efe9912de3e165badfa29be1483d731ecf
|
[
"WTFPL"
] | null | null | null |
tasks/medium-150/nyan-cat/exploit.py
|
C4T-BuT-S4D/nordctf-2019-finals
|
b63d00efe9912de3e165badfa29be1483d731ecf
|
[
"WTFPL"
] | 1
|
2021-01-21T16:56:33.000Z
|
2021-01-21T16:56:33.000Z
|
#!/usr/bin/env python3
import re
import sys
import jwt
import requests
from Crypto.PublicKey import RSA
from Crypto.Util.number import inverse
def recover_d(n, e, p):
q = n // p
phi = (p - 1) * (q - 1)
return inverse(e, phi)
def main(url):
n = 16158503035655503650357438344334975980222051334857742016065172713762327569433945446598600705761456731844358980460949009747059779575245460547544076193224141560315438683650498045875098875194826053398028819192033784138396109321309878080919047169238085235290822926018152521443787945791354642779162369073575510464676307738745137368236340488336468229438062757591864495832519542800353637624510899960409953559448637052209587086542698189198304456374481505084668512138820151645511298243115434132458196567714649584872980882921433923431323025741438248940081524739535046106494564661952078162997692569171205852699326923237775905163
e = 65537
p = 0b10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010111011001
d = recover_d(n, e, p)
rsa = RSA.construct((n, e, d))
session = {'broken': False}
cookie = jwt.encode(session, rsa.exportKey(), algorithm='RS512')
response = requests.get(url, cookies={'session': cookie.decode()}).text
flag = re.search(r'flag\{.*?\}', response).group(0)
print(flag)
if __name__ == '__main__':
main(sys.argv[1])
| 66.939394
| 948
| 0.88411
| 99
| 2,209
| 19.626263
| 0.545455
| 0.003088
| 0.009264
| 0.010293
| 0.011323
| 0
| 0
| 0
| 0
| 0
| 0
| 0.761281
| 0.066999
| 2,209
| 32
| 949
| 69.03125
| 0.181465
| 0.009507
| 0
| 0
| 0
| 0
| 0.016918
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0.086957
| false
| 0
| 0.26087
| 0
| 0.391304
| 0.043478
| 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
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 4
|
80c9ae0ff2063b3a6bbaa9ce1ff448cd439702a6
| 23
|
py
|
Python
|
tests/__init__.py
|
Mgancita/data-preprocessor
|
c1598c7e043ec26333a96b36895f8eb826194f85
|
[
"MIT"
] | 8
|
2020-12-05T17:21:08.000Z
|
2021-12-23T18:38:33.000Z
|
tests/__init__.py
|
Mgancita/data-preprocessor
|
c1598c7e043ec26333a96b36895f8eb826194f85
|
[
"MIT"
] | 18
|
2021-03-19T13:49:31.000Z
|
2021-09-13T14:01:19.000Z
|
tests/__init__.py
|
WarwickCIM/backfillz-py
|
99c5a685334070cd0836a9df57f7a1a95ae6174d
|
[
"MIT"
] | 3
|
2021-01-21T21:03:10.000Z
|
2022-01-27T16:56:53.000Z
|
"""tests namespace."""
| 11.5
| 22
| 0.608696
| 2
| 23
| 7
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.086957
| 23
| 1
| 23
| 23
| 0.666667
| 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
|
0389cf95eb33945c62317d06ed8acb0b5ac4ed5b
| 213
|
py
|
Python
|
main/customtrainer.py
|
safdark/behavioral-cloning
|
4f59843fc996e2123810cdcf6858c6260f71236c
|
[
"Apache-2.0"
] | null | null | null |
main/customtrainer.py
|
safdark/behavioral-cloning
|
4f59843fc996e2123810cdcf6858c6260f71236c
|
[
"Apache-2.0"
] | null | null | null |
main/customtrainer.py
|
safdark/behavioral-cloning
|
4f59843fc996e2123810cdcf6858c6260f71236c
|
[
"Apache-2.0"
] | null | null | null |
'''
Created on Dec 11, 2016
@author: safdar
'''
import basetrainer
class MyClass(basetrainer):
'''
classdocs
'''
def __init__(self, params):
'''
Constructor
'''
| 11.833333
| 31
| 0.521127
| 18
| 213
| 5.944444
| 0.944444
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.043165
| 0.347418
| 213
| 18
| 32
| 11.833333
| 0.726619
| 0.29108
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| false
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 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
| 0
| 1
| 0
| 1
| 0
|
0
| 4
|
039b13ee0ef9b650429136b11acc48b2bd02f574
| 92
|
py
|
Python
|
menus/admin.py
|
sgr-smile2015/website
|
a6a90e8fff52a3d8adb797cfe2e6f74c4ad0e3c0
|
[
"Apache-2.0"
] | 1
|
2018-02-27T08:24:12.000Z
|
2018-02-27T08:24:12.000Z
|
menus/admin.py
|
sgr-smile2015/website
|
a6a90e8fff52a3d8adb797cfe2e6f74c4ad0e3c0
|
[
"Apache-2.0"
] | null | null | null |
menus/admin.py
|
sgr-smile2015/website
|
a6a90e8fff52a3d8adb797cfe2e6f74c4ad0e3c0
|
[
"Apache-2.0"
] | null | null | null |
from django.contrib import admin
from .models import ResItem
admin.site.register(ResItem)
| 15.333333
| 32
| 0.815217
| 13
| 92
| 5.769231
| 0.692308
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119565
| 92
| 5
| 33
| 18.4
| 0.925926
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
039dd5a0e069da44e44a6125ad0a8f8f64a6eb79
| 71
|
py
|
Python
|
tests/__init__.py
|
luisparravicini/ioapi
|
f9d60a28032fd54163ea15b8256aba1d48ec4dcc
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
luisparravicini/ioapi
|
f9d60a28032fd54163ea15b8256aba1d48ec4dcc
|
[
"MIT"
] | null | null | null |
tests/__init__.py
|
luisparravicini/ioapi
|
f9d60a28032fd54163ea15b8256aba1d48ec4dcc
|
[
"MIT"
] | 1
|
2020-05-03T04:34:32.000Z
|
2020-05-03T04:34:32.000Z
|
import os
import sys
sys.path.append(os.path.join(os.getcwd(), '..'))
| 14.2
| 48
| 0.676056
| 12
| 71
| 4
| 0.583333
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.098592
| 71
| 4
| 49
| 17.75
| 0.75
| 0
| 0
| 0
| 0
| 0
| 0.028169
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.666667
| 0
| 0.666667
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 4
|
03db0189afa458d4cdda74010b9f341e45578e2c
| 15
|
py
|
Python
|
data/studio21_generated/introductory/3662/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/3662/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
data/studio21_generated/introductory/3662/starter_code.py
|
vijaykumawat256/Prompt-Summarization
|
614f5911e2acd2933440d909de2b4f86653dc214
|
[
"Apache-2.0"
] | null | null | null |
def xor(a,b):
| 7.5
| 13
| 0.533333
| 4
| 15
| 2
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 15
| 2
| 14
| 7.5
| 0.666667
| 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
|
ff0981259ad73b59dbd7e811bc12f67793449f04
| 530
|
py
|
Python
|
curators/agents/contextual.py
|
BellwethrInc/decision_engine
|
1631b38966daee363ad645f1dca0ab51da14c67b
|
[
"Apache-2.0"
] | 1
|
2021-05-19T05:46:29.000Z
|
2021-05-19T05:46:29.000Z
|
curators/agents/contextual.py
|
BellwethrInc/decision_engine
|
1631b38966daee363ad645f1dca0ab51da14c67b
|
[
"Apache-2.0"
] | 1
|
2021-07-12T19:25:21.000Z
|
2021-07-12T19:25:21.000Z
|
curators/agents/contextual.py
|
BellwethrInc/decision_engine
|
1631b38966daee363ad645f1dca0ab51da14c67b
|
[
"Apache-2.0"
] | null | null | null |
from curators.models.contextual_bandits import ClusterBandit
TYPE_MAPPING = {
'cluster': ClusterBandit,
}
class ContextualAgent:
"""Coming Soon.
"""
def __init__(self, n_profiles, n_actions, type='cluster'):
raise NotImplementedError
def update(self):
raise NotImplementedError
def sample_one(self, x):
raise NotImplementedError
def sample(self, X):
actions = []
for x in X:
actions.append(self.sample_one(x))
raise NotImplementedError
| 21.2
| 62
| 0.650943
| 55
| 530
| 6.090909
| 0.527273
| 0.286567
| 0.241791
| 0.197015
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.260377
| 530
| 24
| 63
| 22.083333
| 0.854592
| 0.022642
| 0
| 0.25
| 0
| 0
| 0.027668
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.0625
| 0
| 0.375
| 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
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.