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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e11273c05cedf833b223e44e1deaad0c57eab4f7 | 241,963 | py | Python | tests/test_simhash.py | haymaicc/simhash | 33dde3cbf139d15a3f4ea268c23f598c2a8b6ae8 | [
"MIT"
] | null | null | null | tests/test_simhash.py | haymaicc/simhash | 33dde3cbf139d15a3f4ea268c23f598c2a8b6ae8 | [
"MIT"
] | null | null | null | tests/test_simhash.py | haymaicc/simhash | 33dde3cbf139d15a3f4ea268c23f598c2a8b6ae8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from unittest import main, TestCase
from sklearn.feature_extraction.text import TfidfVectorizer
from simhash import Simhash, SimhashIndex
class TestSimhash(TestCase):
def test_int_value(self):
self.assertEqual(Simhash(0).value, 0)
self.assertEqual(Simhash(439005958543095... | 1,875.682171 | 118,896 | 0.650447 | 23,710 | 241,963 | 6.640447 | 0.241248 | 0.011941 | 0.034628 | 0.03525 | 0.989374 | 0.988332 | 0.987869 | 0.987869 | 0.987551 | 0.987551 | 0 | 0.102643 | 0.057529 | 241,963 | 128 | 118,897 | 1,890.335938 | 0.587345 | 0.00105 | 0 | 0.179775 | 0 | 0.022472 | 0.985962 | 0.734246 | 0 | 0 | 0 | 0 | 0.235955 | 1 | 0.101124 | false | 0 | 0.033708 | 0 | 0.168539 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
e129a26538cfaf70e0f1cb5fce570c5e06145e90 | 278 | py | Python | problem/01000~09999/01309/1309.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/01000~09999/01309/1309.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/01000~09999/01309/1309.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | n=int(input())
dp=[[1]*3 for i in range(2)]
for i in range(1,n):
dp[i%2][0]=(dp[(i-1)%2][0]+dp[(i-1)%2][1]+dp[(i-1)%2][2])%9901
dp[i%2][1]=(dp[(i-1)%2][0]+dp[(i-1)%2][2])%9901
dp[i%2][2]=(dp[(i-1)%2][0]+dp[(i-1)%2][1])%9901
n-=1
print((dp[n%2][0]+dp[n%2][1]+dp[n%2][2])%9901) | 34.75 | 63 | 0.478417 | 83 | 278 | 1.60241 | 0.168675 | 0.225564 | 0.210526 | 0.263158 | 0.458647 | 0.458647 | 0.43609 | 0.43609 | 0.43609 | 0.180451 | 0 | 0.206897 | 0.061151 | 278 | 8 | 64 | 34.75 | 0.302682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 1 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e12ae158164d2052c5d8068ed1fdbaa5c9577b19 | 107 | py | Python | week1/w1e1.py | melphick/pybasics | 68508d10b7509943b629b3c627252de60b6a5744 | [
"Apache-2.0"
] | null | null | null | week1/w1e1.py | melphick/pybasics | 68508d10b7509943b629b3c627252de60b6a5744 | [
"Apache-2.0"
] | null | null | null | week1/w1e1.py | melphick/pybasics | 68508d10b7509943b629b3c627252de60b6a5744 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
addr = 'FE80:0000:0000:0000:0101:A3EF:EE1E:1719'
ipv6 = addr.split(':')
print ipv6 | 15.285714 | 48 | 0.682243 | 18 | 107 | 4.055556 | 0.777778 | 0.219178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273684 | 0.11215 | 107 | 7 | 49 | 15.285714 | 0.494737 | 0.186916 | 0 | 0 | 0 | 0 | 0.45977 | 0.448276 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6d9574a4c6e5da8c9ec55d239b91177999715394 | 48 | py | Python | analysis/notebooks/helper/__init__.py | dpedrosac/DBSgait | 6df44cf975d43f9e932ef10144bfb7c1b5390b7b | [
"MIT"
] | 1 | 2021-09-29T05:53:38.000Z | 2021-09-29T05:53:38.000Z | analysis/notebooks/helper/__init__.py | dpedrosac/DBSgait | 6df44cf975d43f9e932ef10144bfb7c1b5390b7b | [
"MIT"
] | null | null | null | analysis/notebooks/helper/__init__.py | dpedrosac/DBSgait | 6df44cf975d43f9e932ef10144bfb7c1b5390b7b | [
"MIT"
] | 1 | 2021-09-22T08:48:47.000Z | 2021-09-22T08:48:47.000Z | from helper import anova
from helper import util | 24 | 24 | 0.854167 | 8 | 48 | 5.125 | 0.625 | 0.487805 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 48 | 2 | 25 | 24 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
6d9cb9bd25d3b049fa6ad782531b3977202b8894 | 78 | py | Python | codewof/programming/content/en/full-name/solution.py | taskmaker1/codewof | 92d52cd3ee91f0f311ff01a92cf6ec07e5593b8d | [
"MIT"
] | 3 | 2019-08-29T04:11:22.000Z | 2021-06-22T16:05:51.000Z | codewof/programming/content/en/full-name/solution.py | taskmaker1/codewof | 92d52cd3ee91f0f311ff01a92cf6ec07e5593b8d | [
"MIT"
] | 265 | 2019-05-30T03:51:46.000Z | 2022-03-31T01:05:12.000Z | codewof/programming/content/en/full-name/solution.py | samuelsandri/codewof | c9b8b378c06b15a0c42ae863b8f46581de04fdfc | [
"MIT"
] | 7 | 2019-06-29T12:13:37.000Z | 2021-09-06T06:49:14.000Z | def full_name(first_name, last_name):
return first_name + " " + last_name
| 26 | 39 | 0.717949 | 12 | 78 | 4.25 | 0.5 | 0.352941 | 0.509804 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 78 | 2 | 40 | 39 | 0.796875 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
6daaf1ed74ecda43692f9d1ac51d1867c61bbbb3 | 1,977 | py | Python | frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_terms_template/test_payment_terms_template.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:55:29.000Z | 2021-04-29T14:55:29.000Z | frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_terms_template/test_payment_terms_template.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | null | null | null | frappe-bench/apps/erpnext/erpnext/accounts/doctype/payment_terms_template/test_payment_terms_template.py | Semicheche/foa_frappe_docker | a186b65d5e807dd4caf049e8aeb3620a799c1225 | [
"MIT"
] | 1 | 2021-04-29T14:39:01.000Z | 2021-04-29T14:39:01.000Z | # -*- coding: utf-8 -*-
# Copyright (c) 2017, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
import unittest
import frappe
class TestPaymentTermsTemplate(unittest.TestCase):
def tearDown(self):
frappe.delete_doc('Payment Terms Template', '_Test Payment Ter... | 27.082192 | 95 | 0.684876 | 239 | 1,977 | 5.468619 | 0.25523 | 0.119357 | 0.198929 | 0.165264 | 0.751339 | 0.751339 | 0.727621 | 0.727621 | 0.727621 | 0.727621 | 0 | 0.022291 | 0.183106 | 1,977 | 72 | 96 | 27.458333 | 0.786997 | 0.052605 | 0 | 0.649123 | 0 | 0 | 0.455324 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.070175 | false | 0 | 0.052632 | 0 | 0.140351 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1113e1599e1ae3efb0f8ff09054e6d5f886cb30b | 4,719 | py | Python | smartRemotes/nodes/hassioNode/zones/masterBedroom.py | HeadHodge/smartHome | 9a3c671dc3c000a911b55ebe2f09e6278a874285 | [
"MIT"
] | 1 | 2021-07-04T17:35:32.000Z | 2021-07-04T17:35:32.000Z | smartRemotes/nodes/hassioNode/zones/masterBedroom.py | HeadHodge/smartRemotes-v0.2 | 9a3c671dc3c000a911b55ebe2f09e6278a874285 | [
"MIT"
] | null | null | null | smartRemotes/nodes/hassioNode/zones/masterBedroom.py | HeadHodge/smartRemotes-v0.2 | 9a3c671dc3c000a911b55ebe2f09e6278a874285 | [
"MIT"
] | null | null | null | #############################################
## hassioNode commandWord map
#############################################
print('Load hassioNode masterBedroom commandWord map')
wordMap = {
"Media": {
"Louder": [
{"id": 0, "type": "call_service", "domain": "media_player", "service": "volum... | 65.541667 | 196 | 0.570248 | 464 | 4,719 | 5.452586 | 0.150862 | 0.147826 | 0.136364 | 0.190909 | 0.867984 | 0.862846 | 0.837945 | 0.82332 | 0.753755 | 0.753755 | 0 | 0.010776 | 0.213393 | 4,719 | 71 | 197 | 66.464789 | 0.670797 | 0.00551 | 0 | 0.37037 | 0 | 0 | 0.576312 | 0.088178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3a282fde7cba68e6c90b650aea709713e9189e16 | 300 | py | Python | user_service/test/server/test_app.py | KieshaJ/ras | 00b2f1c18ed235de894f8b90713c0a0eac9a396e | [
"MIT"
] | null | null | null | user_service/test/server/test_app.py | KieshaJ/ras | 00b2f1c18ed235de894f8b90713c0a0eac9a396e | [
"MIT"
] | null | null | null | user_service/test/server/test_app.py | KieshaJ/ras | 00b2f1c18ed235de894f8b90713c0a0eac9a396e | [
"MIT"
] | null | null | null | def test_owner_register_success():
assert True
def test_owner_register_failure():
assert True
def test_worker_register_success():
assert True
def test_worker_register_failure():
assert True
def test_login_success():
assert True
def test_login_failure():
assert True
| 13.043478 | 35 | 0.746667 | 40 | 300 | 5.2 | 0.25 | 0.201923 | 0.3125 | 0.408654 | 0.836538 | 0.673077 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193333 | 300 | 22 | 36 | 13.636364 | 0.859504 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
28bec711196843a9b4918ee16a2bbd1db41be0d6 | 959 | py | Python | demo/testpermission_path/views.py | LaEmma/sparrow_cloud | fb9f76ea70b3ba5782c33f3b3379e2ffe4bab08c | [
"MIT"
] | 15 | 2019-09-24T09:32:32.000Z | 2021-12-30T08:07:41.000Z | demo/testpermission_path/views.py | LaEmma/sparrow_cloud | fb9f76ea70b3ba5782c33f3b3379e2ffe4bab08c | [
"MIT"
] | 13 | 2019-09-06T03:20:02.000Z | 2021-09-27T03:37:25.000Z | demo/testpermission_path/views.py | LaEmma/sparrow_cloud | fb9f76ea70b3ba5782c33f3b3379e2ffe4bab08c | [
"MIT"
] | 17 | 2019-09-02T06:31:05.000Z | 2021-10-08T04:23:23.000Z | from rest_framework.response import Response
from rest_framework.permissions import IsAuthenticated
from rest_framework.decorators import api_view, permission_classes
@api_view(("GET", "POST", "DELETE", "PUT"))
# @permission_classes([IsAuthenticated])
def test_path_params_1(request):
# import pdb; pdb.set_trace()... | 23.975 | 66 | 0.673618 | 113 | 959 | 5.442478 | 0.265487 | 0.056911 | 0.065041 | 0.227642 | 0.764228 | 0.764228 | 0.764228 | 0.764228 | 0.764228 | 0.764228 | 0 | 0.005063 | 0.176225 | 959 | 40 | 67 | 23.975 | 0.773418 | 0.281543 | 0 | 0.695652 | 0 | 0 | 0.108824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.130435 | 0.173913 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 7 |
3a6f2d5646fb0a5ff9edfc84c3466099d4ce9a92 | 1,208 | py | Python | src/_abc247.py | nullputra/nlptr-lib | 618c2c74c3d3033bae04de9ba9a253bb6eb31a6c | [
"CC0-1.0"
] | null | null | null | src/_abc247.py | nullputra/nlptr-lib | 618c2c74c3d3033bae04de9ba9a253bb6eb31a6c | [
"CC0-1.0"
] | null | null | null | src/_abc247.py | nullputra/nlptr-lib | 618c2c74c3d3033bae04de9ba9a253bb6eb31a6c | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/python3
# region abc247 A.
# '''
# verification-helper: PROBLEM https://atcoder.jp/contests/abc247/tasks/abc247_a
import sys
n = int(input())
a = list(map(int, input().split()))
print(*a)
# '''
# endregion
# region abc247 B.
'''
# verification-helper: PROBLEM https://atcoder.jp/contests/abc247/tasks/abc247... | 18.029851 | 80 | 0.671358 | 171 | 1,208 | 4.707602 | 0.169591 | 0.119255 | 0.186335 | 0.223602 | 0.954037 | 0.954037 | 0.954037 | 0.954037 | 0.954037 | 0.954037 | 0 | 0.052034 | 0.125 | 1,208 | 66 | 81 | 18.30303 | 0.709555 | 0.220199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
3a7c8007cf4a3b0b2807508c243091a58c99247c | 2,558 | py | Python | tests/test_provider_MissionCriticalCloud_cosmic.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | tests/test_provider_MissionCriticalCloud_cosmic.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | tests/test_provider_MissionCriticalCloud_cosmic.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # tests/test_provider_MissionCriticalCloud_cosmic.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:14:40 UTC)
def test_provider_import():
import terrascript.provider.MissionCriticalCloud.cosmic
def test_resource_import():
from terrascript.resource.MissionCriticalCloud.cosmic import cosmic_a... | 35.041096 | 88 | 0.814308 | 275 | 2,558 | 7.396364 | 0.298182 | 0.319567 | 0.330383 | 0.39233 | 0.716814 | 0.666667 | 0.643068 | 0.403147 | 0.069813 | 0 | 0 | 0.006745 | 0.130571 | 2,558 | 72 | 89 | 35.527778 | 0.907824 | 0.211884 | 0 | 0.096774 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013889 | 0 | 1 | 0.096774 | true | 0 | 0.806452 | 0 | 0.903226 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
3a8815e0474eae7eccccb52ceca238a0ee4861c5 | 8,746 | py | Python | modules/yats/migrations/0014_auto_20180911_1440.py | gthreepwood/yats | d66dfc61da8d775efcf3e84aff3295b61ce9c9b2 | [
"MIT"
] | 54 | 2015-01-26T07:56:59.000Z | 2022-03-10T18:48:05.000Z | modules/yats/migrations/0014_auto_20180911_1440.py | gthreepwood/yats | d66dfc61da8d775efcf3e84aff3295b61ce9c9b2 | [
"MIT"
] | 8 | 2015-03-15T18:33:39.000Z | 2021-12-21T14:23:11.000Z | modules/yats/migrations/0014_auto_20180911_1440.py | gthreepwood/yats | d66dfc61da8d775efcf3e84aff3295b61ce9c9b2 | [
"MIT"
] | 23 | 2015-02-19T16:55:35.000Z | 2022-03-11T19:49:06.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.14 on 2018-09-11 12:40
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import yats.models
class Migration(migrations.Migration):
depe... | 43.73 | 185 | 0.623256 | 907 | 8,746 | 5.800441 | 0.101433 | 0.061585 | 0.166318 | 0.192929 | 0.863524 | 0.838814 | 0.770386 | 0.751188 | 0.70785 | 0.703288 | 0 | 0.005663 | 0.252916 | 8,746 | 199 | 186 | 43.949749 | 0.79951 | 0.007889 | 0 | 0.807292 | 1 | 0 | 0.127738 | 0.005188 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.046875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
3a9101de5191ccee4f7dfbfb4fcea966c37171b9 | 7,642 | py | Python | src/genie/libs/parser/ios/tests/ShowEthernetServiceInstanceStats/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/ios/tests/ShowEthernetServiceInstanceStats/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/ios/tests/ShowEthernetServiceInstanceStats/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"max_num_of_service_instances": 32768,
"service_instance": {
2051: {
"pkts_out": 0,
"pkts_in": 0,
"interface": "GigabitEthernet0/0/5",
"bytes_in": 0,
"bytes_out": 0,
},
2052: {
"pkts_out": 0,
... | 26.081911 | 48 | 0.367836 | 707 | 7,642 | 3.735502 | 0.082037 | 0.124195 | 0.124195 | 0.186293 | 0.915941 | 0.915941 | 0.915941 | 0.915941 | 0.915941 | 0.915941 | 0 | 0.114804 | 0.480241 | 7,642 | 292 | 49 | 26.171233 | 0.550101 | 0 | 0 | 0.702055 | 0 | 0 | 0.333028 | 0.003664 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
3af180786010bc47f2406e34f9f51280ed04dcdc | 42 | py | Python | statinf/data/__init__.py | matthieubulte/statinf | 0ffe4aa961967ae13fadaed4d5ee91f9a61fa4ec | [
"MIT"
] | null | null | null | statinf/data/__init__.py | matthieubulte/statinf | 0ffe4aa961967ae13fadaed4d5ee91f9a61fa4ec | [
"MIT"
] | null | null | null | statinf/data/__init__.py | matthieubulte/statinf | 0ffe4aa961967ae13fadaed4d5ee91f9a61fa4ec | [
"MIT"
] | null | null | null | from .GenerateData import generate_dataset | 42 | 42 | 0.904762 | 5 | 42 | 7.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 42 | 1 | 42 | 42 | 0.948718 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
c90434e86e78eabfedbde28fe486045d8bd1a8be | 10,633 | py | Python | tests/test_check_des_points.py | Megscammell/METOD-Algorithm | 7518145ec100599bddc880f5f52d28f9a3959108 | [
"MIT"
] | null | null | null | tests/test_check_des_points.py | Megscammell/METOD-Algorithm | 7518145ec100599bddc880f5f52d28f9a3959108 | [
"MIT"
] | 1 | 2021-11-17T09:03:17.000Z | 2021-11-17T09:03:17.000Z | tests/test_check_des_points.py | Megscammell/METOD-Algorithm | 7518145ec100599bddc880f5f52d28f9a3959108 | [
"MIT"
] | null | null | null | import numpy as np
from hypothesis import given, settings, strategies as st
from metod_alg import objective_functions as mt_obj
from metod_alg import metod_algorithm_functions as mt_alg
from metod_alg import check_metod_class as prev_mt_alg
def calc_minimizer_sev_quad(point, p, store_x0, matrix_test):
"""
Fi... | 37.839858 | 77 | 0.599831 | 1,492 | 10,633 | 3.99866 | 0.101877 | 0.037546 | 0.022796 | 0.039893 | 0.884009 | 0.874958 | 0.854844 | 0.854844 | 0.854844 | 0.854844 | 0 | 0.033792 | 0.295871 | 10,633 | 280 | 78 | 37.975 | 0.763056 | 0.1327 | 0 | 0.904545 | 0 | 0 | 0.01547 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 1 | 0.022727 | false | 0 | 0.022727 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c9279eb4c1ec8f712a4623a647b45b37cac86531 | 3,599 | py | Python | tests/test_provider_vultr_vultr.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | tests/test_provider_vultr_vultr.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | tests/test_provider_vultr_vultr.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # tests/test_provider_vultr_vultr.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:31:06 UTC)
def test_provider_import():
import terrascript.provider.vultr.vultr
def test_resource_import():
from terrascript.resource.vultr.vultr import vultr_bare_metal_server
from terrascript.resource.v... | 31.295652 | 80 | 0.802167 | 488 | 3,599 | 5.723361 | 0.188525 | 0.179019 | 0.257787 | 0.338346 | 0.843179 | 0.815252 | 0.815252 | 0.660938 | 0.099535 | 0 | 0 | 0.006794 | 0.14115 | 3,599 | 114 | 81 | 31.570175 | 0.896797 | 0.132537 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0 | 1 | 0.061224 | true | 0 | 1 | 0 | 1.061224 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
c96af2ede309cf6d969f49200b0ba6465932f72b | 84,684 | py | Python | SBbadger/generate_serial.py | sys-bio/SBbadger | 1e39a5ff36e35dedc4b1872e3948270efe2127bf | [
"Apache-2.0"
] | 1 | 2022-02-04T22:45:09.000Z | 2022-02-04T22:45:09.000Z | SBbadger/generate_serial.py | sys-bio/SBbadger | 1e39a5ff36e35dedc4b1872e3948270efe2127bf | [
"Apache-2.0"
] | 1 | 2022-02-04T22:47:21.000Z | 2022-02-05T01:59:31.000Z | SBbadger/generate_serial.py | sys-bio/SBbadger | 1e39a5ff36e35dedc4b1872e3948270efe2127bf | [
"Apache-2.0"
] | null | null | null |
import sys
from SBbadger import buildNetworks
import os
import shutil
import glob
import antimony
import matplotlib.pyplot as plt
import numpy as np
import importlib
pydot_spec = importlib.util.find_spec("pydot")
found_pydot = pydot_spec is not None
if found_pydot:
import pydot
def model(verbose_exceptions=Fal... | 47.628796 | 121 | 0.565042 | 10,970 | 84,684 | 4.205105 | 0.038833 | 0.043573 | 0.058747 | 0.05827 | 0.940386 | 0.937351 | 0.929742 | 0.925038 | 0.905896 | 0.898764 | 0 | 0.016116 | 0.320013 | 84,684 | 1,777 | 122 | 47.655599 | 0.784975 | 0.151847 | 0 | 0.885182 | 0 | 0 | 0.114295 | 0 | 0 | 0 | 0 | 0.001688 | 0 | 1 | 0.006206 | false | 0 | 0.008534 | 0 | 0.015516 | 0.006206 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a35af73e2b3ee6ebedc35e4dc321f0e681ecdff9 | 24,085 | py | Python | Library_Manage_System/login.py | zyhang8/libraray_manage_system_gui | 04725895fb3fdef8a5eace29f992d29339fac85e | [
"MIT"
] | 1 | 2019-04-15T06:27:18.000Z | 2019-04-15T06:27:18.000Z | Library_Manage_System/login.py | zyhang8/libraray_manage_system_gui | 04725895fb3fdef8a5eace29f992d29339fac85e | [
"MIT"
] | null | null | null | Library_Manage_System/login.py | zyhang8/libraray_manage_system_gui | 04725895fb3fdef8a5eace29f992d29339fac85e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pymssql
import tkinter as tk
import re
r1=re.compile(r'.*')
import tkinter.messagebox
import tkinter.messagebox as messagebox
from tkinter import StringVar
#sql服务器名,这里(127.0.0.1)是本地数据库IP
serverName = 'localhost'
#登陆用户名和密码
userName = 'sa'
passWord = '123456'
#建立连接并获取cursor
con = pymssql.... | 30.10625 | 110 | 0.585344 | 3,139 | 24,085 | 4.411277 | 0.0892 | 0.046219 | 0.069329 | 0.076262 | 0.914494 | 0.904817 | 0.850581 | 0.843071 | 0.843071 | 0.744854 | 0 | 0.035185 | 0.266016 | 24,085 | 799 | 111 | 30.14393 | 0.748105 | 0.133195 | 0 | 0.77814 | 0 | 0 | 0.098674 | 0.007791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022839 | false | 0.003263 | 0.009788 | 0 | 0.032626 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
a393cf9e7fb3a5a9b6dc4bfddfffdf9358dcc4c9 | 39,590 | py | Python | hallo/test/modules/channel_control/test_operator.py | joshcoales/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 1 | 2018-05-19T22:27:20.000Z | 2018-05-19T22:27:20.000Z | hallo/test/modules/channel_control/test_operator.py | joshcoales/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 75 | 2015-09-26T18:07:18.000Z | 2022-01-04T07:15:11.000Z | hallo/test/modules/channel_control/test_operator.py | SpangleLabs/Hallo | 17145d8f76552ecd4cbc5caef8924bd2cf0cbf24 | [
"MIT"
] | 1 | 2021-04-10T12:02:47.000Z | 2021-04-10T12:02:47.000Z | from hallo.events import EventMessage, EventMode
from hallo.server import Server
from hallo.test.server_mock import ServerMock
def test_op_not_irc(hallo_getter):
test_hallo = hallo_getter({"channel_control"})
serv1 = ServerMock(test_hallo)
serv1.name = "test_serv1"
serv1.type = "NOT_IRC"
test_hall... | 40.983437 | 88 | 0.706668 | 5,679 | 39,590 | 4.561366 | 0.014439 | 0.067017 | 0.048178 | 0.062346 | 0.990851 | 0.990658 | 0.989731 | 0.989731 | 0.989731 | 0.989731 | 0 | 0.048357 | 0.18045 | 39,590 | 965 | 89 | 41.025907 | 0.750015 | 0 | 0 | 0.916022 | 0 | 0 | 0.098712 | 0 | 0 | 0 | 0 | 0 | 0.099448 | 1 | 0.033149 | false | 0 | 0.003315 | 0 | 0.036464 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6ebc1028e9ca0fc16521e1091d358343945553a6 | 11,653 | py | Python | tests/test_user.py | alliedtelesis/py-networking | 6c5d4bdafabfb4feef235a02344432e1f0336e48 | [
"Apache-2.0"
] | 4 | 2015-04-24T20:36:56.000Z | 2021-05-03T20:21:54.000Z | tests/test_user.py | alliedtelesis/py-networking | 6c5d4bdafabfb4feef235a02344432e1f0336e48 | [
"Apache-2.0"
] | 1 | 2019-07-14T07:07:21.000Z | 2019-07-14T07:07:21.000Z | tests/test_user.py | alliedtelesis/py-networking | 6c5d4bdafabfb4feef235a02344432e1f0336e48 | [
"Apache-2.0"
] | 3 | 2015-04-24T20:37:04.000Z | 2017-03-02T15:14:46.000Z | import pytest
from pynetworking.Device import Device
def setup_dut(dut):
dut.reset()
dut.add_cmd({'cmd': 'show version', 'state': -1, 'action': 'PRINT', 'args': ["""
AlliedWare Plus (TM) 5.4.2 09/25/13 12:57:26
Build name : x600-5.4.2-3.14.rel
Build date : Wed Sep 25 12:57:26 NZST 2013
Build type : RELEASE
... | 28.012019 | 144 | 0.703167 | 1,689 | 11,653 | 4.765542 | 0.092954 | 0.019878 | 0.026836 | 0.035781 | 0.921481 | 0.911293 | 0.887936 | 0.865449 | 0.819356 | 0.786557 | 0 | 0.061056 | 0.149661 | 11,653 | 415 | 145 | 28.079518 | 0.751236 | 0.017678 | 0 | 0.615578 | 0 | 0.002513 | 0.599353 | 0.091664 | 0 | 0 | 0 | 0 | 0.042714 | 1 | 0.015075 | false | 0.153266 | 0.005025 | 0 | 0.020101 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
42cba1f141580261e8f0dd53bef1bef745ecfc5c | 16,336 | py | Python | src/maps.py | raulorteg/SearchAlgs | d93c34adc2df2b9bf932f6829402a91f1c50e235 | [
"MIT"
] | null | null | null | src/maps.py | raulorteg/SearchAlgs | d93c34adc2df2b9bf932f6829402a91f1c50e235 | [
"MIT"
] | null | null | null | src/maps.py | raulorteg/SearchAlgs | d93c34adc2df2b9bf932f6829402a91f1c50e235 | [
"MIT"
] | null | null | null | """
Example Maps for Simulated Annealing: Circle Map, Random Map.
@author Raul Ortega
Created 26/06/2021
"""
import matplotlib.pyplot as plt
from math import sqrt, log, cos, sin
import numpy as np
import os, glob, math
from PIL import Image
class Circle_Map:
def __init__(self, num_cities=20, radius=200, equispaced... | 42.87664 | 141 | 0.6018 | 2,276 | 16,336 | 4.165202 | 0.094464 | 0.051688 | 0.025316 | 0.034072 | 0.908755 | 0.903903 | 0.891878 | 0.883966 | 0.878903 | 0.878903 | 0 | 0.013247 | 0.292973 | 16,336 | 381 | 142 | 42.87664 | 0.807532 | 0.238308 | 0 | 0.813492 | 0 | 0 | 0.089228 | 0.025707 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.019841 | 0.02381 | 0.174603 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
42d1d0c8b9977a316c3edcdb39b555b324fac5dd | 77 | py | Python | rjgtoys/cli/__init__.py | bobgautier/rjgtoys-cli | 9bfc689c230047b86c8fc9af9f7f446d18d54993 | [
"MIT"
] | null | null | null | rjgtoys/cli/__init__.py | bobgautier/rjgtoys-cli | 9bfc689c230047b86c8fc9af9f7f446d18d54993 | [
"MIT"
] | null | null | null | rjgtoys/cli/__init__.py | bobgautier/rjgtoys-cli | 9bfc689c230047b86c8fc9af9f7f446d18d54993 | [
"MIT"
] | null | null | null | """
.. automodule:: rjgtoys.cli._base
"""
from rjgtoys.cli._base import *
| 9.625 | 33 | 0.649351 | 9 | 77 | 5.333333 | 0.666667 | 0.416667 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155844 | 77 | 7 | 34 | 11 | 0.738462 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
956e3b52920dda8278c0c5b4bef77f5814cf3063 | 3,296 | py | Python | src/models/layers.py | voreille/plc_seg | e2238bc3342d54531fcab74ac84d24a056f16645 | [
"MIT"
] | null | null | null | src/models/layers.py | voreille/plc_seg | e2238bc3342d54531fcab74ac84d24a056f16645 | [
"MIT"
] | null | null | null | src/models/layers.py | voreille/plc_seg | e2238bc3342d54531fcab74ac84d24a056f16645 | [
"MIT"
] | null | null | null | import tensorflow as tf
class ResidualLayer2D(tf.keras.layers.Layer):
def __init__(self, *args, activation='relu', **kwargs):
super().__init__()
self.filters = args[0]
self.conv = tf.keras.layers.Conv2D(*args,
**kwargs,
... | 37.454545 | 106 | 0.521238 | 362 | 3,296 | 4.596685 | 0.116022 | 0.064904 | 0.125 | 0.111779 | 0.949519 | 0.949519 | 0.939904 | 0.939904 | 0.924279 | 0.924279 | 0 | 0.01826 | 0.368629 | 3,296 | 87 | 107 | 37.885057 | 0.781355 | 0 | 0 | 0.849315 | 0 | 0 | 0.003641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.123288 | false | 0.013699 | 0.013699 | 0 | 0.273973 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
95a720f64f71fbe52bce01a08606ec9909f55596 | 24,008 | py | Python | src/Variational_dropout/model.py | Neronjust2017/Bayesian-neural-networks | 9d7f781f5c2dfa8fadf26300b4b5b64366c939cd | [
"MIT"
] | 4 | 2020-07-07T12:29:03.000Z | 2021-11-17T07:20:17.000Z | src/Variational_dropout/model.py | Neronjust2017/Bayesian-neural-networks | 9d7f781f5c2dfa8fadf26300b4b5b64366c939cd | [
"MIT"
] | null | null | null | src/Variational_dropout/model.py | Neronjust2017/Bayesian-neural-networks | 9d7f781f5c2dfa8fadf26300b4b5b64366c939cd | [
"MIT"
] | 1 | 2020-05-29T08:07:48.000Z | 2020-05-29T08:07:48.000Z | from src.priors import *
from src.base_net import *
import torch.nn.functional as F
import torch.nn as nn
import copy
import math
def calculate_kl(log_alpha):
return 0.5 * torch.sum(torch.log1p(torch.exp(-log_alpha)))
class VdLinear(nn.Module):
"""
variational dropout
"""
def __init__(self, n_i... | 34.19943 | 124 | 0.562146 | 3,257 | 24,008 | 3.976973 | 0.076758 | 0.034741 | 0.020536 | 0.019455 | 0.878947 | 0.859801 | 0.846599 | 0.833089 | 0.816336 | 0.813557 | 0 | 0.024062 | 0.307564 | 24,008 | 702 | 125 | 34.19943 | 0.755113 | 0.144452 | 0 | 0.775378 | 0 | 0 | 0.010236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082073 | false | 0 | 0.012959 | 0.00432 | 0.168467 | 0.017279 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
95a7897765873e2550428cbe7219e2faf99edd7c | 6,901 | py | Python | experiment_gathering.py | viciouspetal/meta-project-1 | 6c1b509a1b3013b45347d61cd56cc04f876d8ea7 | [
"Apache-2.0"
] | null | null | null | experiment_gathering.py | viciouspetal/meta-project-1 | 6c1b509a1b3013b45347d61cd56cc04f876d8ea7 | [
"Apache-2.0"
] | null | null | null | experiment_gathering.py | viciouspetal/meta-project-1 | 6c1b509a1b3013b45347d61cd56cc04f876d8ea7 | [
"Apache-2.0"
] | null | null | null | import time
from TSP_toStudents import *
def main():
maxMenu = 6
iterationNumber = 1
maxIterations = 4
for i in range(1, maxMenu + 1):
for j in range(1, maxIterations+1):
BasicTSP.menuChoice = i
data_input_file = sys.argv[1]
print('=========================... | 46.006667 | 115 | 0.389509 | 698 | 6,901 | 3.780802 | 0.071633 | 0.090944 | 0.060629 | 0.041682 | 0.96438 | 0.96438 | 0.96438 | 0.96438 | 0.96438 | 0.96438 | 0 | 0.052003 | 0.247645 | 6,901 | 150 | 116 | 46.006667 | 0.456279 | 0 | 0 | 0.813559 | 0 | 0 | 0.366271 | 0.244857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008475 | false | 0 | 0.016949 | 0 | 0.025424 | 0.338983 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
95e50e1b8aacb5e4a30de56fcfb99c181b3fcac0 | 52 | py | Python | build/lib/bullet/__init__.py | nelice/bullet | aafec4d0ca8f628d2be9b0667c50477929c2cca7 | [
"MIT"
] | 1 | 2021-03-22T07:55:30.000Z | 2021-03-22T07:55:30.000Z | build/lib/bullet/__init__.py | nelice/bullet | aafec4d0ca8f628d2be9b0667c50477929c2cca7 | [
"MIT"
] | null | null | null | build/lib/bullet/__init__.py | nelice/bullet | aafec4d0ca8f628d2be9b0667c50477929c2cca7 | [
"MIT"
] | null | null | null | from .client import Bullet
from .client import Check | 26 | 26 | 0.826923 | 8 | 52 | 5.375 | 0.625 | 0.465116 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 52 | 2 | 27 | 26 | 0.955556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2517e471e42cb23c6de44385c409b1d34df89835 | 17,152 | py | Python | copy_flac_to_wav.py | AndreySibiryakov/tools | 2a78f3ebfac78841eb69b2aa771a2faa10b8d827 | [
"MIT"
] | 4 | 2017-08-15T12:17:21.000Z | 2020-03-11T19:11:11.000Z | copy_flac_to_wav.py | AndreySibiryakov/tools | 2a78f3ebfac78841eb69b2aa771a2faa10b8d827 | [
"MIT"
] | null | null | null | copy_flac_to_wav.py | AndreySibiryakov/tools | 2a78f3ebfac78841eb69b2aa771a2faa10b8d827 | [
"MIT"
] | 1 | 2020-06-21T00:41:13.000Z | 2020-06-21T00:41:13.000Z | import os
import shutil
from subprocess import call, check_output
data = ['dlc2_215_05_movingon_01_02',
'dlc2_215_05_movingon_01_03',
'dlc2_215_05_movingon_01_04',
'dlc2_215_05_movingon_01_05',
'dlc2_215_05_movingon_01_06',
'dlc2_215_05_movingon_01_07',
'dlc2... | 52.613497 | 81 | 0.756588 | 2,501 | 17,152 | 4.351859 | 0.053179 | 0.181918 | 0.037211 | 0.049614 | 0.920526 | 0.875965 | 0.772786 | 0.501838 | 0.162992 | 0.071573 | 0 | 0.205571 | 0.185751 | 17,152 | 325 | 82 | 52.775385 | 0.573751 | 0 | 0 | 0 | 0 | 0 | 0.736435 | 0.73489 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.009524 | null | null | 0.003175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c28e8746ce6c8da03ae19389f1a96e881e03b5b0 | 326 | py | Python | healthgen/generation/models/__init__.py | simonbing/HealthGen | d5886a5a41dc36c6a70dece3dba3c60a90bf1fdd | [
"MIT"
] | null | null | null | healthgen/generation/models/__init__.py | simonbing/HealthGen | d5886a5a41dc36c6a70dece3dba3c60a90bf1fdd | [
"MIT"
] | null | null | null | healthgen/generation/models/__init__.py | simonbing/HealthGen | d5886a5a41dc36c6a70dece3dba3c60a90bf1fdd | [
"MIT"
] | null | null | null | from healthgen.generation.models.vae import VAE
from healthgen.generation.models.multi_vae import MultiVAE
from healthgen.generation.models.healthgen import HealthGen
from healthgen.generation.models.srnn import SRNN
from healthgen.generation.models.kvae import KVAE
from healthgen.generation.models.kvae_miss import KVA... | 54.333333 | 59 | 0.874233 | 45 | 326 | 6.266667 | 0.244444 | 0.276596 | 0.489362 | 0.617021 | 0.234043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070552 | 326 | 6 | 60 | 54.333333 | 0.930693 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6c161cf6fef5abdd1670a548db8920f5307e8755 | 19,953 | py | Python | DataScience/python/td_query/test/test_data_manipulate.py | Ernestyj/PyStudy | ee2e314eb808b0b7c4574b3061814abb81bbb7ab | [
"Apache-2.0"
] | 1 | 2016-11-28T03:26:05.000Z | 2016-11-28T03:26:05.000Z | DataScience/python/td_query/test/test_data_manipulate.py | Ernestyj/PyStudy | ee2e314eb808b0b7c4574b3061814abb81bbb7ab | [
"Apache-2.0"
] | null | null | null | DataScience/python/td_query/test/test_data_manipulate.py | Ernestyj/PyStudy | ee2e314eb808b0b7c4574b3061814abb81bbb7ab | [
"Apache-2.0"
] | 2 | 2017-02-02T15:13:01.000Z | 2019-05-30T01:59:17.000Z | # -*- coding: utf-8 -*-
import unittest
import os
import pickle
import pandas as pd
import numpy as np
from td_query import ROOT_PATH
from td_query.data_manipulate import data_manipulate_instance as instance
from teradata import UdaExec
class TestDataManipulate(unittest.TestCase):
@classmethod
def setUpClass... | 76.156489 | 453 | 0.57004 | 2,733 | 19,953 | 3.798756 | 0.077936 | 0.084762 | 0.122809 | 0.093624 | 0.848102 | 0.828164 | 0.820844 | 0.8089 | 0.801676 | 0.790406 | 0 | 0.064738 | 0.227384 | 19,953 | 262 | 454 | 76.156489 | 0.608718 | 0.010775 | 0 | 0.325893 | 0 | 0.241071 | 0.661192 | 0.028437 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.035714 | 0.004464 | 0.169643 | 0.098214 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
6c5f23da23f55db21dd55ce28e3688378c5e3a16 | 207 | py | Python | galleries/sql/connectors/__init__.py | mnicolas94/galleries | e1563764f7db699a94884f9dbae1799a0f05c4c0 | [
"MIT"
] | null | null | null | galleries/sql/connectors/__init__.py | mnicolas94/galleries | e1563764f7db699a94884f9dbae1799a0f05c4c0 | [
"MIT"
] | null | null | null | galleries/sql/connectors/__init__.py | mnicolas94/galleries | e1563764f7db699a94884f9dbae1799a0f05c4c0 | [
"MIT"
] | null | null | null | from galleries.sql.connectors.connector import GallerySqlConnector
from galleries.sql.connectors.sqlite_connector import SqliteConnector
from galleries.sql.connectors.oracle_connector import OracleConnector
| 51.75 | 69 | 0.898551 | 23 | 207 | 8 | 0.478261 | 0.211957 | 0.26087 | 0.423913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 207 | 3 | 70 | 69 | 0.94359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
dd2190ac4f531ee6da52d4aed455902a86da6b67 | 199 | py | Python | ch3/TIY/TIYp36.py | hewittaj/python_crash_course | 52a3341eec79c2eb6c7f9f1cb7f0806c3b2d61aa | [
"MIT"
] | null | null | null | ch3/TIY/TIYp36.py | hewittaj/python_crash_course | 52a3341eec79c2eb6c7f9f1cb7f0806c3b2d61aa | [
"MIT"
] | null | null | null | ch3/TIY/TIYp36.py | hewittaj/python_crash_course | 52a3341eec79c2eb6c7f9f1cb7f0806c3b2d61aa | [
"MIT"
] | null | null | null | #3-1
# names = ['will', 'jess', 'jacob', 'adam']
# for name in names:
# print(name.title())
#3-2
names = ['will', 'jess', 'jacob', 'adam']
for name in names:
print(f"Hello, {name.title()}")
| 19.9 | 43 | 0.552764 | 30 | 199 | 3.666667 | 0.5 | 0.163636 | 0.236364 | 0.327273 | 0.745455 | 0.745455 | 0.745455 | 0.745455 | 0.745455 | 0.745455 | 0 | 0.024691 | 0.18593 | 199 | 9 | 44 | 22.111111 | 0.654321 | 0.457286 | 0 | 0 | 0 | 0 | 0.368932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
dd4de492a169cebf06b812dc8a01225b640b270b | 181 | py | Python | Task/Find-common-directory-path/Python/find-common-directory-path-3.py | LaudateCorpus1/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:38.000Z | 2018-11-09T22:08:38.000Z | Task/Find-common-directory-path/Python/find-common-directory-path-3.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | null | null | null | Task/Find-common-directory-path/Python/find-common-directory-path-3.py | seanwallawalla-forks/RosettaCodeData | 9ad63ea473a958506c041077f1d810c0c7c8c18d | [
"Info-ZIP"
] | 1 | 2018-11-09T22:08:40.000Z | 2018-11-09T22:08:40.000Z | >>> paths = ['/home/user1/tmp/coverage/test', '/home/user1/tmp/covert/operator', '/home/user1/tmp/coven/members']
>>> os.path.dirname(os.path.commonprefix(paths))
'/home/user1/tmp'
| 45.25 | 113 | 0.701657 | 26 | 181 | 4.884615 | 0.538462 | 0.283465 | 0.377953 | 0.267717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.049724 | 181 | 3 | 114 | 60.333333 | 0.715116 | 0 | 0 | 0 | 0 | 0 | 0.574586 | 0.491713 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
06c5243cc0f2d5868c17c670704858d9450c3aef | 130 | py | Python | 10scrapy/qsbk/start.py | lixiang30/SpiderProject | 664cb1d89353ad40ff7880ca2785fe8c5f654e75 | [
"Apache-2.0"
] | null | null | null | 10scrapy/qsbk/start.py | lixiang30/SpiderProject | 664cb1d89353ad40ff7880ca2785fe8c5f654e75 | [
"Apache-2.0"
] | null | null | null | 10scrapy/qsbk/start.py | lixiang30/SpiderProject | 664cb1d89353ad40ff7880ca2785fe8c5f654e75 | [
"Apache-2.0"
] | 1 | 2020-12-24T10:16:46.000Z | 2020-12-24T10:16:46.000Z | from scrapy import cmdline
cmdline.execute("scrapy crawl qsbk_spider".split())
# cmdline.execute(["scrapy","crawl","qsbk_spider"]) | 43.333333 | 51 | 0.769231 | 17 | 130 | 5.764706 | 0.529412 | 0.285714 | 0.408163 | 0.510204 | 0.714286 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 130 | 3 | 52 | 43.333333 | 0.803279 | 0.376923 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 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 | 8 |
b0b903a4aa24db6193724d38625c440f070eb7d6 | 189 | py | Python | tools/bin/pythonSrc/pychecker-0.8.18/pychecker2/utest/data.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 450 | 2015-09-05T09:12:51.000Z | 2018-08-30T01:45:36.000Z | tools/bin/pythonSrc/pychecker-0.8.18/pychecker2/utest/data.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 1,274 | 2015-09-22T20:06:16.000Z | 2018-08-31T22:14:00.000Z | tools/bin/pythonSrc/pychecker-0.8.18/pychecker2/utest/data.py | YangHao666666/hawq | 10cff8350f1ba806c6fec64eb67e0e6f6f24786c | [
"Artistic-1.0-Perl",
"ISC",
"bzip2-1.0.5",
"TCL",
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"MIT",
"PostgreSQL",
"BSD-3-Clause"
] | 278 | 2015-09-21T19:15:06.000Z | 2018-08-31T00:36:51.000Z | import exceptions
class Data:
class DataError(exceptions.ValueError): pass
def __init__(self, value):
self.value = value
def get_value(self):
return self.value
| 21 | 48 | 0.677249 | 23 | 189 | 5.347826 | 0.565217 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243386 | 189 | 8 | 49 | 23.625 | 0.86014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.142857 | 0.142857 | 0.142857 | 0.857143 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 7 |
b0cf3008e88a7f545edf4141e8b7a16d2287f74f | 7,641 | py | Python | wagtail/wagtailadmin/tests/test_rich_text.py | kurtrwall/wagtail | fcea4ee30da388ebeb071c5b47285526928998e4 | [
"BSD-3-Clause"
] | 3 | 2016-08-17T13:56:36.000Z | 2019-04-23T19:59:25.000Z | wagtail/wagtailadmin/tests/test_rich_text.py | kurtrwall/wagtail | fcea4ee30da388ebeb071c5b47285526928998e4 | [
"BSD-3-Clause"
] | 11 | 2016-08-05T15:43:06.000Z | 2016-12-16T13:32:23.000Z | wagtail/wagtailadmin/tests/test_rich_text.py | potatolondon/wagtail-gae | 79800b0439bffeb9eb840e70c32d62f5b3487f9c | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, unicode_literals
from django.conf import settings
from django.core.urlresolvers import reverse
from django.test import TestCase
from django.test.utils import override_settings
from wagtail.tests.testapp.rich_text import CustomRichTextArea
from wagtail.tests.utils import Wagtail... | 38.590909 | 117 | 0.713388 | 818 | 7,641 | 6.365526 | 0.123472 | 0.058383 | 0.043787 | 0.03841 | 0.8744 | 0.86038 | 0.847897 | 0.82658 | 0.797004 | 0.783176 | 0 | 0.003416 | 0.195393 | 7,641 | 197 | 118 | 38.786802 | 0.843526 | 0.076692 | 0 | 0.706767 | 0 | 0 | 0.177917 | 0.154327 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.120301 | false | 0 | 0.112782 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9fd88626170bd920e4cf9f589fc8ee5f6fb67226 | 10,943 | py | Python | main/util/dto.py | emhayusa/4d_api | cbf380c150d6f7a01954346492fe9a7751a6603b | [
"MIT"
] | null | null | null | main/util/dto.py | emhayusa/4d_api | cbf380c150d6f7a01954346492fe9a7751a6603b | [
"MIT"
] | null | null | null | main/util/dto.py | emhayusa/4d_api | cbf380c150d6f7a01954346492fe9a7751a6603b | [
"MIT"
] | null | null | null | from flask_restplus import Namespace, fields
class StatusDto:
api = Namespace('status', description='status related operations')
schema = api.model('status', {
'id': fields.Integer(dump_only=True),
'status_name': fields.String(required=True, description='status name')
})
entry = api.m... | 52.109524 | 88 | 0.680435 | 1,174 | 10,943 | 6.261499 | 0.063884 | 0.161611 | 0.262821 | 0.186097 | 0.867365 | 0.827234 | 0.757992 | 0.738947 | 0.738947 | 0.639777 | 0 | 0 | 0.167413 | 10,943 | 210 | 89 | 52.109524 | 0.806827 | 0.011331 | 0 | 0.666667 | 0 | 0 | 0.246164 | 0.013219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.010582 | 0.005291 | 0 | 0.269841 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c683692e6471396ae281cb94122eb0df2c210b5e | 15,945 | py | Python | lifelong_rl/samplers/data_collector/step_collector.py | kzl/lifelong_rl | 44815713f6732abccac6c69bb0e3fe9e68e08210 | [
"MIT"
] | 67 | 2020-09-17T21:27:20.000Z | 2022-03-31T02:52:29.000Z | lifelong_rl/samplers/data_collector/step_collector.py | snu-mllab/EDAC | c21d8aa354d13dbe884fd2fb809fe9a85c65e6c9 | [
"MIT"
] | 1 | 2021-04-26T13:25:48.000Z | 2021-04-26T13:25:48.000Z | lifelong_rl/samplers/data_collector/step_collector.py | kzl/lifelong_rl | 44815713f6732abccac6c69bb0e3fe9e68e08210 | [
"MIT"
] | 8 | 2020-12-12T19:46:55.000Z | 2022-01-13T10:15:30.000Z | from collections import deque, OrderedDict
import numpy as np
from lifelong_rl.util import eval_util
from lifelong_rl.util.eval_util import create_stats_ordered_dict
from lifelong_rl.data_management.utils.path_builder import PathBuilder
from lifelong_rl.samplers import StepCollector
class MdpStepCollector(StepColle... | 30.198864 | 76 | 0.572781 | 1,759 | 15,945 | 4.756111 | 0.077885 | 0.046617 | 0.043509 | 0.044705 | 0.861104 | 0.84688 | 0.839947 | 0.824767 | 0.824767 | 0.815204 | 0 | 0.002508 | 0.349828 | 15,945 | 527 | 77 | 30.256167 | 0.804476 | 0.012857 | 0 | 0.842572 | 0 | 0 | 0.020982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084257 | false | 0 | 0.013304 | 0.017738 | 0.155211 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c68dbae5eebc87f28c633b8ee2faab2c225c2822 | 2,610 | py | Python | pkgs/conf-pkg/src/genie/libs/conf/isis/nxos/isis.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 94 | 2018-04-30T20:29:15.000Z | 2022-03-29T13:40:31.000Z | pkgs/conf-pkg/src/genie/libs/conf/isis/nxos/isis.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 67 | 2018-12-06T21:08:09.000Z | 2022-03-29T18:00:46.000Z | pkgs/conf-pkg/src/genie/libs/conf/isis/nxos/isis.py | miott/genielibs | 6464642cdd67aa2367bdbb12561af4bb060e5e62 | [
"Apache-2.0"
] | 49 | 2018-06-29T18:59:03.000Z | 2022-03-10T02:07:59.000Z |
# -- ISIS
# nxos: interface <intf> / ip router isis someword
# nxos: interface <intf> / ipv6 router isis someword
# nxos: interface <intf> / isis authentication key-chain someword
# nxos: interface <intf> / isis authentication key-chain someword level-1
# nxos: interface <intf> / isis authentication key-chain someword... | 52.2 | 73 | 0.728352 | 368 | 2,610 | 5.165761 | 0.122283 | 0.314571 | 0.411362 | 0.48606 | 0.936875 | 0.913204 | 0.776433 | 0.638085 | 0.272488 | 0 | 0 | 0.042438 | 0.151341 | 2,610 | 49 | 74 | 53.265306 | 0.815801 | 0.962835 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c6a49f61b4f21f01fea38d7f6818f98ed8dc9603 | 7,099 | py | Python | chartofaccountDIT/test/test_upload_archived_chart_of_account.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | 3 | 2020-01-05T16:46:42.000Z | 2021-08-02T08:08:39.000Z | chartofaccountDIT/test/test_upload_archived_chart_of_account.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | 30 | 2019-11-28T15:16:35.000Z | 2021-08-16T14:49:58.000Z | chartofaccountDIT/test/test_upload_archived_chart_of_account.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | null | null | null | from django.test import TestCase
from chartofaccountDIT.import_archived_from_csv import (
import_archived_analysis1,
import_archived_analysis2,
import_archived_nac,
import_archived_programme,
import_archived_project,
)
from chartofaccountDIT.models import (
ArchivedAnalysis1,
ArchivedAnalys... | 37.962567 | 74 | 0.684322 | 739 | 7,099 | 6.384303 | 0.112314 | 0.057228 | 0.095379 | 0.084782 | 0.841882 | 0.835524 | 0.804578 | 0.785078 | 0.763035 | 0.753921 | 0 | 0.038309 | 0.220454 | 7,099 | 186 | 75 | 38.166667 | 0.814239 | 0 | 0 | 0.707483 | 0 | 0 | 0.152838 | 0.015213 | 0 | 0 | 0 | 0 | 0.272109 | 1 | 0.108844 | false | 0 | 0.170068 | 0 | 0.312925 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
05a238ecf2ee682d74ed0935c03b3ddae0793d1d | 26 | py | Python | labdrivers/labdrivers/lakeshore/__init__.py | RMUlti/Alex | 9ab4fb97315beec9c4d7f6be02d091c9eaf5f22c | [
"MIT"
] | null | null | null | labdrivers/labdrivers/lakeshore/__init__.py | RMUlti/Alex | 9ab4fb97315beec9c4d7f6be02d091c9eaf5f22c | [
"MIT"
] | null | null | null | labdrivers/labdrivers/lakeshore/__init__.py | RMUlti/Alex | 9ab4fb97315beec9c4d7f6be02d091c9eaf5f22c | [
"MIT"
] | null | null | null | from .ls332 import Ls332
| 13 | 25 | 0.769231 | 4 | 26 | 5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 0.192308 | 26 | 1 | 26 | 26 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
05a9fd7143a9b56926cd5149c683baa3dca15b71 | 7,393 | py | Python | bert/bert_model.py | qianyingw/bioner | 8f62f1871497b16e0e7bd7c083f758a01657cbcc | [
"MIT"
] | 1 | 2021-08-23T14:24:33.000Z | 2021-08-23T14:24:33.000Z | bert/bert_model.py | qianyingw/pre-pico | 8f62f1871497b16e0e7bd7c083f758a01657cbcc | [
"MIT"
] | null | null | null | bert/bert_model.py | qianyingw/pre-pico | 8f62f1871497b16e0e7bd7c083f758a01657cbcc | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 30 12:45:12 2020
@author: qwang
"""
from transformers import BertPreTrainedModel, BertConfig, BertModel
from transformers import DistilBertPreTrainedModel, DistilBertConfig, DistilBertModel
import torch
import torch.nn as nn
import torch.nn.functi... | 43.745562 | 115 | 0.600162 | 941 | 7,393 | 4.451647 | 0.131775 | 0.053473 | 0.048699 | 0.060874 | 0.825734 | 0.808785 | 0.784913 | 0.777751 | 0.777751 | 0.777751 | 0 | 0.015131 | 0.293791 | 7,393 | 168 | 116 | 44.005952 | 0.787206 | 0.208981 | 0 | 0.785047 | 0 | 0 | 0.001381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056075 | false | 0 | 0.056075 | 0 | 0.205607 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
af1127f0b6b38227fafcb5e2023d8a2d233c9d48 | 58 | py | Python | __init__.py | pnarvor/nephelae_simulation | 7b3f3a2c2aaa49324f8b09a6ab62819c280efa4c | [
"BSD-3-Clause"
] | null | null | null | __init__.py | pnarvor/nephelae_simulation | 7b3f3a2c2aaa49324f8b09a6ab62819c280efa4c | [
"BSD-3-Clause"
] | null | null | null | __init__.py | pnarvor/nephelae_simulation | 7b3f3a2c2aaa49324f8b09a6ab62819c280efa4c | [
"BSD-3-Clause"
] | null | null | null | from . import mesonh_interface
from . import mesonh_probe
| 19.333333 | 30 | 0.827586 | 8 | 58 | 5.75 | 0.625 | 0.434783 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 2 | 31 | 29 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
af2f54d03230b8fb61e8049299fc3ca789ea6250 | 3,975 | py | Python | tests/test_versioning_checks.py | webbyfox/djangocms-versioning-filer | 75a2c00dac8607c4f365c3d40cd36e0da6908824 | [
"BSD-3-Clause"
] | null | null | null | tests/test_versioning_checks.py | webbyfox/djangocms-versioning-filer | 75a2c00dac8607c4f365c3d40cd36e0da6908824 | [
"BSD-3-Clause"
] | 10 | 2019-08-13T13:50:59.000Z | 2022-03-11T13:00:05.000Z | tests/test_versioning_checks.py | webbyfox/djangocms-versioning-filer | 75a2c00dac8607c4f365c3d40cd36e0da6908824 | [
"BSD-3-Clause"
] | 9 | 2018-09-28T12:43:27.000Z | 2020-10-13T09:06:47.000Z | from djangocms_versioning.exceptions import ConditionFailed
from djangocms_versioning.models import Version
from djangocms_versioning_filer.models import FileGrouper
from djangocms_versioning_filer.monkeypatch.models import (
is_file_content_valid_for_discard,
is_file_content_valid_for_revert,
)
from .base im... | 31.299213 | 87 | 0.59522 | 388 | 3,975 | 5.747423 | 0.14433 | 0.064126 | 0.081614 | 0.099103 | 0.835426 | 0.835426 | 0.810762 | 0.775785 | 0.736771 | 0.727803 | 0 | 0.002636 | 0.331824 | 3,975 | 126 | 88 | 31.547619 | 0.836973 | 0.007547 | 0 | 0.706897 | 0 | 0 | 0.031448 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 1 | 0.025862 | false | 0 | 0.043103 | 0 | 0.077586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
af38214fa690eb9a96cbf35d3f1e6b965967ed28 | 29,822 | py | Python | unet/generatePatches.py | MartimChaves/ret_detect | 774521a079be4324d542a841c7b3be808c18356b | [
"MIT"
] | null | null | null | unet/generatePatches.py | MartimChaves/ret_detect | 774521a079be4324d542a841c7b3be808c18356b | [
"MIT"
] | null | null | null | unet/generatePatches.py | MartimChaves/ret_detect | 774521a079be4324d542a841c7b3be808c18356b | [
"MIT"
] | null | null | null | # this needs to be in the previous directory
import cv2.cv2 as cv2
import numpy as np
import os
from skimage.measure import label, regionprops
os.chdir('C:/Users/Martim_Pc/Desktop/DACO/PROJECT_DACO/convNet/Unet')
def myShowImage(img,name = "from_show_function"):
cv2.imshow(name, img)
cv2.wait... | 54.719266 | 172 | 0.439307 | 2,835 | 29,822 | 4.582011 | 0.104762 | 0.030177 | 0.021555 | 0.040416 | 0.800847 | 0.796459 | 0.790762 | 0.779215 | 0.772286 | 0.740416 | 0 | 0.105997 | 0.432466 | 29,822 | 544 | 173 | 54.819853 | 0.661507 | 0.057474 | 0 | 0.741667 | 0 | 0 | 0.025084 | 0.006841 | 0.019444 | 0 | 0 | 0 | 0 | 1 | 0.008333 | false | 0.069444 | 0.011111 | 0 | 0.027778 | 0.030556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
bb709c151864c2fad4b64d92dd0018c6b683e5e2 | 87 | py | Python | src/pycondense/kernels/__init__.py | agonopol/py-condense | 1523b7eb6160bbbe35bec2568f16d0207bd1f8a7 | [
"MIT"
] | 1 | 2019-03-05T14:14:38.000Z | 2019-03-05T14:14:38.000Z | src/pycondense/kernels/__init__.py | agonopol/py-condense | 1523b7eb6160bbbe35bec2568f16d0207bd1f8a7 | [
"MIT"
] | null | null | null | src/pycondense/kernels/__init__.py | agonopol/py-condense | 1523b7eb6160bbbe35bec2568f16d0207bd1f8a7 | [
"MIT"
] | null | null | null | from pycondense.kernels.gaussian import gaussian
from pycondense.kernels.mgc import mgc | 43.5 | 48 | 0.873563 | 12 | 87 | 6.333333 | 0.5 | 0.368421 | 0.552632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08046 | 87 | 2 | 49 | 43.5 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
bb8d2b2d70cc01a5f6cde90f3757d85ae7ad7429 | 113 | py | Python | alphapose/version.py | RyosukeHori/AlphaPose | 5968b257424969bc17f38c5d864de0892749ea3a | [
"Apache-2.0"
] | null | null | null | alphapose/version.py | RyosukeHori/AlphaPose | 5968b257424969bc17f38c5d864de0892749ea3a | [
"Apache-2.0"
] | null | null | null | alphapose/version.py | RyosukeHori/AlphaPose | 5968b257424969bc17f38c5d864de0892749ea3a | [
"Apache-2.0"
] | null | null | null | # GENERATED VERSION FILE
# TIME: Fri Sep 11 18:59:53 2020
__version__ = '0.3.0+038435e'
short_version = '0.3.0'
| 18.833333 | 32 | 0.699115 | 21 | 113 | 3.52381 | 0.714286 | 0.216216 | 0.243243 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.252632 | 0.159292 | 113 | 5 | 33 | 22.6 | 0.526316 | 0.469027 | 0 | 0 | 1 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bb993074dd81cac031e9389496dd68c512a90f06 | 123 | py | Python | vedadet/criteria/losses/builder.py | jie311/vedadet | aaf3b3bc3c7944aba1cc28138165d403023a9152 | [
"Apache-2.0"
] | 424 | 2020-10-19T03:56:49.000Z | 2022-03-28T02:47:39.000Z | vedadet/criteria/losses/builder.py | jie311/vedadet | aaf3b3bc3c7944aba1cc28138165d403023a9152 | [
"Apache-2.0"
] | 72 | 2020-11-27T17:10:00.000Z | 2022-03-17T02:40:53.000Z | vedadet/criteria/losses/builder.py | jie311/vedadet | aaf3b3bc3c7944aba1cc28138165d403023a9152 | [
"Apache-2.0"
] | 116 | 2020-11-03T02:31:17.000Z | 2022-03-08T08:20:48.000Z | from vedacore.misc import build_from_cfg, registry
def build_loss(cfg):
return build_from_cfg(cfg, registry, 'loss')
| 20.5 | 50 | 0.772358 | 19 | 123 | 4.736842 | 0.526316 | 0.2 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138211 | 123 | 5 | 51 | 24.6 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0.03252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
bb9a07b27a8876852abb78b78de24b173fd55f87 | 91 | py | Python | src/csbuilder/scheme/__init__.py | huykingsofm/csbuilder | c6ba6f0dd3fd2a0d03c7492de20a7107cb1b9191 | [
"MIT"
] | null | null | null | src/csbuilder/scheme/__init__.py | huykingsofm/csbuilder | c6ba6f0dd3fd2a0d03c7492de20a7107cb1b9191 | [
"MIT"
] | null | null | null | src/csbuilder/scheme/__init__.py | huykingsofm/csbuilder | c6ba6f0dd3fd2a0d03c7492de20a7107cb1b9191 | [
"MIT"
] | null | null | null | from csbuilder.scheme.scheme import Scheme
from csbuilder.scheme.result import SchemeResult | 45.5 | 48 | 0.879121 | 12 | 91 | 6.666667 | 0.5 | 0.325 | 0.475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 91 | 2 | 48 | 45.5 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
bbb02dee8c5e78aece8060c13d58a0bc0450bb16 | 112,286 | py | Python | ocbind/system/aaa/server_groups/server_group/servers/server/state/__init__.py | SeanCondon/onos-config-demo | 0789d397b46fd5cda512ae7fffe35e1a4bfdfdbe | [
"Apache-2.0"
] | 1 | 2019-08-01T17:42:57.000Z | 2019-08-01T17:42:57.000Z | ocbind/system/aaa/server_groups/server_group/servers/server/state/__init__.py | SeanCondon/onos-config-demo | 0789d397b46fd5cda512ae7fffe35e1a4bfdfdbe | [
"Apache-2.0"
] | 1 | 2021-05-26T16:38:04.000Z | 2021-05-26T16:38:04.000Z | ocbind/system/aaa/server_groups/server_group/servers/server/state/__init__.py | SeanCondon/onos-config-demo | 0789d397b46fd5cda512ae7fffe35e1a4bfdfdbe | [
"Apache-2.0"
] | 4 | 2019-07-24T16:52:39.000Z | 2021-12-03T02:08:13.000Z | # -*- coding: utf-8 -*-
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBoo... | 73.969697 | 966 | 0.732335 | 15,730 | 112,286 | 5.007819 | 0.014558 | 0.03618 | 0.049052 | 0.014624 | 0.994732 | 0.991977 | 0.991977 | 0.991977 | 0.991977 | 0.991977 | 0 | 0.043563 | 0.11704 | 112,286 | 1,517 | 967 | 74.018457 | 0.750968 | 0.216492 | 0 | 0.976398 | 0 | 0.063354 | 0.39859 | 0.182553 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.019876 | 0 | 0.258385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
bbb53c68d42033e9d2d20a371e417476a54e0b70 | 2,608 | py | Python | test/test_clang_qt6_test.py | shift-left-test/meta-shift | effce9bea894f990703cc047157e3f30d53d9365 | [
"MIT"
] | 2 | 2022-01-19T02:39:43.000Z | 2022-02-07T01:58:17.000Z | test/test_clang_qt6_test.py | shift-left-test/meta-shift | effce9bea894f990703cc047157e3f30d53d9365 | [
"MIT"
] | null | null | null | test/test_clang_qt6_test.py | shift-left-test/meta-shift | effce9bea894f990703cc047157e3f30d53d9365 | [
"MIT"
] | null | null | null | #-*- coding: utf-8 -*-
#!/usr/bin/python3
"""
Copyright (c) 2020 LG Electronics Inc.
SPDX-License-Identifier: MIT
"""
import pytest
def test_core_image_minimal_do_checkcodeall(test_clang_qt6_build):
o = test_clang_qt6_build.shell.execute("bitbake core-image-minimal -c checkcodeall")
assert o.stdout.contains... | 66.871795 | 109 | 0.734279 | 414 | 2,608 | 4.521739 | 0.144928 | 0.078526 | 0.145833 | 0.112179 | 0.926816 | 0.926816 | 0.900107 | 0.900107 | 0.900107 | 0.900107 | 0 | 0.04024 | 0.104294 | 2,608 | 38 | 110 | 68.631579 | 0.76113 | 0.040644 | 0 | 0 | 0 | 0.576923 | 0.623746 | 0.19655 | 0 | 0 | 0 | 0 | 0.807692 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
3c22844636db0dde539494d3724bed053327d3b3 | 178 | py | Python | color.py | thaidem/selenium-training-po | 81e880c56de89f0d1136a5ac8e9dda1cc796a3c7 | [
"Apache-2.0"
] | null | null | null | color.py | thaidem/selenium-training-po | 81e880c56de89f0d1136a5ac8e9dda1cc796a3c7 | [
"Apache-2.0"
] | null | null | null | color.py | thaidem/selenium-training-po | 81e880c56de89f0d1136a5ac8e9dda1cc796a3c7 | [
"Apache-2.0"
] | null | null | null | from selenium.webdriver.support.color import Color
print(Color.from_string('#00ff33').rgba)
print(Color.from_string('rgb(1, 255, 3)').hex)
print(Color.from_string('blue').rgba)
| 29.666667 | 50 | 0.764045 | 28 | 178 | 4.75 | 0.571429 | 0.225564 | 0.315789 | 0.451128 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0.05618 | 178 | 5 | 51 | 35.6 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0.140449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.75 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
3c8b002bce6206662738f08ef65ed0615570419a | 3,540 | py | Python | web/pipeline/migrations/0054_auto_20200815_0728.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 10 | 2020-11-12T15:13:40.000Z | 2022-03-05T22:33:08.000Z | web/pipeline/migrations/0054_auto_20200815_0728.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 28 | 2020-07-17T16:33:55.000Z | 2022-03-21T16:24:25.000Z | web/pipeline/migrations/0054_auto_20200815_0728.py | stevenstuber/CIT | 8c485e72084c06da6db45da1cb402bac26411ec2 | [
"Apache-2.0"
] | 5 | 2020-11-02T23:39:53.000Z | 2022-03-01T19:09:45.000Z | # Generated by Django 2.2.13 on 2020-08-15 07:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('pipeline', '0053_auto_20200813_0521'),
]
operations = [
migrations.AddField(
model_name='censussubdivision',
name='... | 34.038462 | 68 | 0.596045 | 322 | 3,540 | 6.248447 | 0.232919 | 0.161034 | 0.205765 | 0.241551 | 0.843439 | 0.828032 | 0.828032 | 0.828032 | 0.828032 | 0.79672 | 0 | 0.062602 | 0.305085 | 3,540 | 103 | 69 | 34.368932 | 0.755285 | 0.012994 | 0 | 0.742268 | 1 | 0 | 0.245704 | 0.155785 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.010309 | 0 | 0.041237 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
b1dc4e091d59782125203ecf441c52a0d385bda7 | 2,602 | py | Python | src/ctc/protocols/uniswap_v3_utils/contracts/quoter.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 94 | 2022-02-15T19:34:49.000Z | 2022-03-26T19:26:22.000Z | src/ctc/protocols/uniswap_v3_utils/contracts/quoter.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-03-03T02:58:47.000Z | 2022-03-11T18:41:05.000Z | src/ctc/protocols/uniswap_v3_utils/contracts/quoter.py | fei-protocol/checkthechain | ec838f3d0d44af228f45394d9ba8d8eb7f677520 | [
"MIT"
] | 7 | 2022-02-15T17:53:07.000Z | 2022-03-17T19:14:17.000Z | from __future__ import annotations
from ctc import rpc
from ctc import spec
from .. import uniswap_v3_spec
async def async_quote_exact_input_single(
token_in: spec.Address,
token_out: spec.Address,
fee: int,
amount_in: int,
sqrt_price_limit_x96: int = 0,
provider: spec.ProviderSpec = None,
... | 25.509804 | 64 | 0.646042 | 299 | 2,602 | 5.26087 | 0.167224 | 0.111888 | 0.07438 | 0.057216 | 0.893833 | 0.893833 | 0.872854 | 0.872854 | 0.872854 | 0.872854 | 0 | 0.010058 | 0.27402 | 2,602 | 101 | 65 | 25.762376 | 0.822657 | 0 | 0 | 0.744444 | 0 | 0 | 0.037678 | 0.016532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.044444 | 0 | 0.088889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
59182ee0a8701a2a3d8a406e8d61185fdd69d7d3 | 5,755 | py | Python | senlin-7.0.0/senlin/tests/unit/test_common_messaging.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | null | null | null | senlin-7.0.0/senlin/tests/unit/test_common_messaging.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | senlin-7.0.0/senlin/tests/unit/test_common_messaging.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed unde... | 44.612403 | 75 | 0.686186 | 693 | 5,755 | 5.313131 | 0.150072 | 0.073873 | 0.039109 | 0.065182 | 0.840847 | 0.840847 | 0.822922 | 0.806355 | 0.806355 | 0.788973 | 0 | 0.001372 | 0.240313 | 5,755 | 128 | 76 | 44.960938 | 0.840805 | 0.091225 | 0 | 0.851485 | 0 | 0 | 0.096972 | 0.08854 | 0 | 0 | 0 | 0 | 0.178218 | 1 | 0.039604 | false | 0 | 0.049505 | 0 | 0.09901 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3cc8acb4f6fc77f5acacd270261d814aa777df8d | 5,775 | py | Python | Patent_US20020125774A1_Molina_Martinez_Generator/Version_1/assembly.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | Patent_US20020125774A1_Molina_Martinez_Generator/Version_1/assembly.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | Patent_US20020125774A1_Molina_Martinez_Generator/Version_1/assembly.py | Jay4C/Python-Macros-For_FreeCAD | 12ce5441a26731377fa43e86ccd2be675740d3a0 | [
"MIT"
] | null | null | null | import FreeCAD, Part, Mesh, math
DOC = FreeCAD.activeDocument()
DOC_NAME = "assembly"
def clear_doc():
# Clear the active document deleting all the objects
for obj in DOC.Objects:
DOC.removeObject(obj.Name)
def setview():
# Rearrange View
FreeCAD.Gui.SendMsgToActiveView("ViewFit")
Free... | 46.572581 | 167 | 0.702338 | 800 | 5,775 | 4.9125 | 0.1125 | 0.174046 | 0.256489 | 0.29313 | 0.855725 | 0.83257 | 0.815267 | 0.770483 | 0.73944 | 0.708397 | 0 | 0.048674 | 0.124848 | 5,775 | 124 | 168 | 46.572581 | 0.728928 | 0.047273 | 0 | 0.356322 | 0 | 0 | 0.176288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022989 | false | 0 | 0.011494 | 0 | 0.034483 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5971b91ac6a97220f65912e377f1f2dc76359ec4 | 8,444 | py | Python | necco/kernel/led.py | jtauber/cleese | 9dd83707947b86316ec670ed48912670e0c4c38c | [
"MIT"
] | 117 | 2015-01-07T00:05:01.000Z | 2022-01-29T08:35:27.000Z | necco/kernel/led.py | jtauber/cleese | 9dd83707947b86316ec670ed48912670e0c4c38c | [
"MIT"
] | 3 | 2018-11-20T03:53:29.000Z | 2021-02-28T02:12:06.000Z | necco/kernel/led.py | jtauber/cleese | 9dd83707947b86316ec670ed48912670e0c4c38c | [
"MIT"
] | 15 | 2015-04-08T21:23:58.000Z | 2021-07-10T17:07:09.000Z | import pyvga
import rtc
import blit
horz = "\020\020\020\020\020\020\022\027\030\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\032\032\020\020\020\020\020\020\020\020\020\020\020\027\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\067\06... | 120.628571 | 3,209 | 0.713643 | 1,990 | 8,444 | 3.025126 | 0.029648 | 1.310631 | 1.910631 | 2.475748 | 0.948173 | 0.939203 | 0.93289 | 0.910963 | 0.906811 | 0.839701 | 0 | 0.644376 | 0.036594 | 8,444 | 69 | 3,210 | 122.376812 | 0.095636 | 0.000829 | 0 | 0.183673 | 0 | 0.183673 | 0.810102 | 0.810102 | 0 | 0 | 0.002766 | 0 | 0 | 1 | 0.061224 | false | 0.040816 | 0.102041 | 0 | 0.163265 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 15 |
59a7f3b339effa700e33afac16e341777e699d22 | 1,990 | py | Python | avi/heat/resources/cluster_version.py | itlinux/avi-heat | 551adc130f651e1a52dcff0afc01cfa6b29a87f0 | [
"Apache-2.0"
] | 2 | 2016-08-09T21:06:52.000Z | 2016-08-18T21:34:11.000Z | avi/heat/resources/cluster_version.py | itlinux/avi-heat | 551adc130f651e1a52dcff0afc01cfa6b29a87f0 | [
"Apache-2.0"
] | 10 | 2016-08-03T00:07:51.000Z | 2018-10-30T19:00:38.000Z | avi/heat/resources/cluster_version.py | itlinux/avi-heat | 551adc130f651e1a52dcff0afc01cfa6b29a87f0 | [
"Apache-2.0"
] | 10 | 2016-06-13T20:17:19.000Z | 2020-12-21T11:46:59.000Z | # GENERATED FILE - DO NOT EDIT THIS FILE UNLESS YOU ARE A WIZZARD
#pylint: skip-file
from heat.engine import properties
from heat.engine import constraints
from heat.engine import attributes
from heat.common.i18n import _
from avi.heat.avi_resource import AviResource
from avi.heat.avi_resource import AviNestedResource... | 23.139535 | 68 | 0.615578 | 202 | 1,990 | 5.920792 | 0.277228 | 0.187291 | 0.220736 | 0.160535 | 0.749164 | 0.749164 | 0.702341 | 0.702341 | 0.702341 | 0.702341 | 0 | 0.007077 | 0.28995 | 1,990 | 85 | 69 | 23.411765 | 0.839349 | 0.10804 | 0 | 0.69697 | 1 | 0 | 0.095184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121212 | 0 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
59e1063cbb0b5643b2cd286a539f8903f002a5aa | 301 | py | Python | Tutorial/Code/16. Random Data Distribution.py | Deve-BlackHeart/Numpy | 92fac54bc69b0077bd16dbcc9028196c93f0d19f | [
"MIT"
] | 1 | 2022-01-23T05:34:45.000Z | 2022-01-23T05:34:45.000Z | Tutorial/Code/16. Random Data Distribution.py | Deve-BlackHeart/Numpy | 92fac54bc69b0077bd16dbcc9028196c93f0d19f | [
"MIT"
] | null | null | null | Tutorial/Code/16. Random Data Distribution.py | Deve-BlackHeart/Numpy | 92fac54bc69b0077bd16dbcc9028196c93f0d19f | [
"MIT"
] | null | null | null | import numpy as np
arr = np.random.choice([6, 8, 3, 1, 5], p=[0.0, 0.5, 0.2, 0.2, 0.1], size=(100))
print(arr)
arr = np.random.choice([6, 8, 3, 1, 5], p=[0.0, 0.5, 0.2, 0.2, 0.1], size=100)
print(arr)
arr = np.random.choice([6, 8, 3, 1, 5], p=[0.0, 0.5, 0.2, 0.2, 0.1], size=(5, 10))
print(arr)
| 21.5 | 82 | 0.528239 | 77 | 301 | 2.064935 | 0.246753 | 0.075472 | 0.113208 | 0.320755 | 0.836478 | 0.836478 | 0.836478 | 0.836478 | 0.836478 | 0.836478 | 0 | 0.217742 | 0.17608 | 301 | 13 | 83 | 23.153846 | 0.423387 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 10 |
ab78c362bad9468f05432d9e2b3a620593b3f453 | 7,010 | py | Python | GPIO Set1.py | atul-ashok/python-journey | 802f0785b98599e3a19018e535388ac927ce5a1c | [
"Apache-2.0"
] | null | null | null | GPIO Set1.py | atul-ashok/python-journey | 802f0785b98599e3a19018e535388ac927ce5a1c | [
"Apache-2.0"
] | null | null | null | GPIO Set1.py | atul-ashok/python-journey | 802f0785b98599e3a19018e535388ac927ce5a1c | [
"Apache-2.0"
] | null | null | null | '''
#1
import time
import RPi.GPIO as GPIO #imports gpio module
GPIO.setmode(GPIO.BCM) #using broadcom mode
GPIO.setup(21, GPIO.OUT) #pin17 is o/p pin
#GPIO.output (21, GPIO.LOW)
a=input("Enter a letter: ")
if a=="a":
GPIO.output (21, GPIO.HIGH)
time.sleep(3)
GPIO.output (21, GPIO.LOW)
GPIO.cleanup()
#2
impo... | 21.178248 | 75 | 0.640942 | 1,250 | 7,010 | 3.5832 | 0.0816 | 0.138424 | 0.066979 | 0.071221 | 0.864925 | 0.81737 | 0.792141 | 0.757535 | 0.709533 | 0.667113 | 0 | 0.083589 | 0.208131 | 7,010 | 330 | 76 | 21.242424 | 0.723293 | 0.843795 | 0 | 0.26087 | 0 | 0 | 0.022222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.065217 | 0 | 0.130435 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
e64512ec2684c367704b43f58ba5bab02ca83c00 | 187 | py | Python | aspect_based_sentiment_analysis/probing/__init__.py | MohamedBarhdadi/Aspect-Based-Sentiment-Analysis | 03be95c33b4a3d402ae373561da2fabd0f20842d | [
"Apache-2.0"
] | 2 | 2020-07-19T08:03:38.000Z | 2020-07-25T11:53:39.000Z | aspect_based_sentiment_analysis/probing/__init__.py | lavanaythakral/Aspect-Based-Sentiment-Analysis | 1e2d57277b33778309131e69b69ead7afbd0dd59 | [
"Apache-2.0"
] | 1 | 2020-07-19T11:58:12.000Z | 2020-07-19T11:58:12.000Z | aspect_based_sentiment_analysis/probing/__init__.py | tojewel/Aspect-Based-Sentiment-Analysis | 5f80df0dac5055b121ab4c1e2143ea8b41941b66 | [
"Apache-2.0"
] | null | null | null | from .plots import explain
from .plots import highlight
from .plots import highlight_sequence
from .recognizers import PatternRecognizer
from .recognizers import AttentionGradientProduct
| 31.166667 | 49 | 0.86631 | 21 | 187 | 7.666667 | 0.428571 | 0.167702 | 0.279503 | 0.298137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106952 | 187 | 5 | 50 | 37.4 | 0.964072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
054de5e066e35f1b89933feef30d70460e481865 | 18,866 | py | Python | sdk/python/pulumi_gcp/projects/default_service_accounts.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 121 | 2018-06-18T19:16:42.000Z | 2022-03-31T06:06:48.000Z | sdk/python/pulumi_gcp/projects/default_service_accounts.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 492 | 2018-06-22T19:41:03.000Z | 2022-03-31T15:33:53.000Z | sdk/python/pulumi_gcp/projects/default_service_accounts.py | sisisin/pulumi-gcp | af6681d70ea457843409110c1324817fe55f68ad | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2018-06-19T01:43:13.000Z | 2022-03-23T22:43:37.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 50.579088 | 244 | 0.678999 | 2,318 | 18,866 | 5.376186 | 0.103106 | 0.074627 | 0.04606 | 0.044134 | 0.842401 | 0.817204 | 0.80589 | 0.787434 | 0.783341 | 0.767694 | 0 | 0.00035 | 0.242871 | 18,866 | 372 | 245 | 50.715054 | 0.872095 | 0.531538 | 0 | 0.570552 | 1 | 0 | 0.099608 | 0.016732 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153374 | false | 0.006135 | 0.030675 | 0 | 0.276074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5529107e1b51b324b9f644e5fcd7a3f46c0c8975 | 7,972 | py | Python | test/integration/sync_tests.py | jupierce/gogitit | 12f03e68661c83214fede1598e2b1089b64cd231 | [
"Apache-2.0"
] | 1 | 2018-07-12T17:22:34.000Z | 2018-07-12T17:22:34.000Z | test/integration/sync_tests.py | jupierce/gogitit | 12f03e68661c83214fede1598e2b1089b64cd231 | [
"Apache-2.0"
] | 2 | 2017-08-16T14:13:37.000Z | 2018-07-24T16:17:17.000Z | test/integration/sync_tests.py | jupierce/gogitit | 12f03e68661c83214fede1598e2b1089b64cd231 | [
"Apache-2.0"
] | 4 | 2017-08-16T13:52:18.000Z | 2020-04-15T02:15:21.000Z | """Integration tests for the sync CLI command."""
import os.path
import fixture
class SyncTests(fixture.IntegrationFixture):
def _assert_exists(self, output_path, exists=True, i=1):
if exists:
self.assertTrue(os.path.exists(os.path.join(self.output_dir,
output_path)), "%s do... | 48.024096 | 108 | 0.648018 | 1,028 | 7,972 | 4.790856 | 0.105058 | 0.116954 | 0.15269 | 0.106599 | 0.879188 | 0.859289 | 0.844873 | 0.796345 | 0.715939 | 0.697868 | 0 | 0.016709 | 0.211741 | 7,972 | 165 | 109 | 48.315152 | 0.767027 | 0.032865 | 0 | 0.514925 | 0 | 0 | 0.255974 | 0.191948 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.126866 | false | 0 | 0.014925 | 0 | 0.149254 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
5545bd093837c1f11d14f98457d7c85774e95c64 | 67,761 | py | Python | NN_layers/NASNet_large.py | Mxbonn/zigzag_fork | 250ee5e22904ba846dfb106983d46b83bd9ee230 | [
"BSD-3-Clause"
] | 34 | 2020-08-11T14:38:29.000Z | 2022-03-30T10:32:34.000Z | NN_layers/NASNet_large.py | Mxbonn/zigzag_fork | 250ee5e22904ba846dfb106983d46b83bd9ee230 | [
"BSD-3-Clause"
] | 9 | 2020-11-16T19:19:48.000Z | 2022-03-31T18:29:24.000Z | NN_layers/NASNet_large.py | Mxbonn/zigzag_fork | 250ee5e22904ba846dfb106983d46b83bd9ee230 | [
"BSD-3-Clause"
] | 18 | 2020-08-24T07:26:51.000Z | 2022-01-06T00:59:11.000Z | layer_info = \
{1: {'B': 1, 'K': 96, 'C': 3, 'OY': 165, 'OX': 165, 'FY': 3, 'FX': 3, 'SY': 2, 'SX': 2, 'SFY': 1, 'SFX': 1, 'PY': 0, 'PX': 0, 'G': 1},
2: {'B': 1, 'K': 42, 'C': 96, 'OY': 165, 'OX': 165, 'FY': 1, 'FX': 1, 'SY': 1, 'SX': 1, 'SFY': 1, 'SFX': 1, 'PY': 0, 'PX': 0, 'G': 1},
3: {'B': 1, 'K': 42, 'C': 42, 'O... | 138.00611 | 139 | 0.357639 | 14,183 | 67,761 | 1.708595 | 0.03617 | 0.040358 | 0.060537 | 0.161433 | 0.942764 | 0.941526 | 0.941526 | 0.940742 | 0.940742 | 0.940742 | 0 | 0.21681 | 0.21654 | 67,761 | 490 | 140 | 138.287755 | 0.239659 | 0 | 0 | 0 | 0 | 0 | 0.18763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
55ba2e0eeb9ae89bedc22d8ba7376a811202bae6 | 127 | py | Python | pyfeld/errorPrint.py | scjurgen/pyfeld | 155f947df67aa8be811a7149fccef5128dec95fc | [
"MIT"
] | 9 | 2016-07-28T10:11:32.000Z | 2021-03-09T00:10:46.000Z | pyfeld/errorPrint.py | scjurgen/pyfeld | 155f947df67aa8be811a7149fccef5128dec95fc | [
"MIT"
] | 2 | 2016-10-17T16:05:33.000Z | 2017-11-07T07:49:49.000Z | pyfeld/errorPrint.py | scjurgen/pyfeld | 155f947df67aa8be811a7149fccef5128dec95fc | [
"MIT"
] | 2 | 2016-07-28T10:11:52.000Z | 2020-12-19T17:29:27.000Z | from __future__ import print_function
import sys
def err_print(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
| 18.142857 | 43 | 0.732283 | 18 | 127 | 4.833333 | 0.666667 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141732 | 127 | 6 | 44 | 21.166667 | 0.798165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0 | 0.75 | 0.75 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 7 |
e98d12e6b3739ba72555cacb0bf161260c2aab8c | 362 | py | Python | arcpyext/publishing/__init__.py | PeterReyne/arcpyext | 9307115da8f0b6a30e2ca741fb6a7d09e54fd0f3 | [
"BSD-3-Clause"
] | 11 | 2015-05-01T04:08:30.000Z | 2019-09-21T05:00:58.000Z | arcpyext/publishing/__init__.py | PeterReyne/arcpyext | 9307115da8f0b6a30e2ca741fb6a7d09e54fd0f3 | [
"BSD-3-Clause"
] | 14 | 2015-06-23T02:46:44.000Z | 2019-10-11T00:46:11.000Z | arcpyext/publishing/__init__.py | PeterReyne/arcpyext | 9307115da8f0b6a30e2ca741fb6a7d09e54fd0f3 | [
"BSD-3-Clause"
] | 9 | 2015-02-27T05:25:42.000Z | 2020-01-19T05:43:14.000Z | try:
import arcpy.mapping
from ._publishing import (convert_desktop_map_to_service_draft as convert_map_to_service_draft,
convert_toolbox_to_service_draft)
except:
from ._publishing import (convert_pro_map_to_service_draft as convert_map_to_service_draft,
... | 45.25 | 99 | 0.720994 | 45 | 362 | 5.177778 | 0.355556 | 0.23176 | 0.360515 | 0.291845 | 0.609442 | 0.609442 | 0.609442 | 0.609442 | 0.609442 | 0.609442 | 0 | 0 | 0.248619 | 362 | 7 | 100 | 51.714286 | 0.856618 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
e9ab88a2218bbfc86bec5cad9be4050f17738066 | 555,581 | py | Python | pyVmomi/_typeinfo_vpx.py | xweichu/pyvmomi | 77aedef02974a63517a079c482e49fd9890c09a4 | [
"Apache-2.0"
] | null | null | null | pyVmomi/_typeinfo_vpx.py | xweichu/pyvmomi | 77aedef02974a63517a079c482e49fd9890c09a4 | [
"Apache-2.0"
] | null | null | null | pyVmomi/_typeinfo_vpx.py | xweichu/pyvmomi | 77aedef02974a63517a079c482e49fd9890c09a4 | [
"Apache-2.0"
] | null | null | null | # ******* WARNING - AUTO GENERATED CODE - DO NOT EDIT *******
from .VmomiSupport import CreateDataType, CreateManagedType
from .VmomiSupport import CreateEnumType
from .VmomiSupport import AddVersion, AddVersionParent
from .VmomiSupport import AddBreakingChangesInfo
from .VmomiSupport import F_LINK, F_LINKABLE
from .Vm... | 81.118557 | 6,483 | 0.803897 | 67,137 | 555,581 | 6.476071 | 0.018738 | 0.191543 | 0.239917 | 0.039528 | 0.942328 | 0.91792 | 0.72545 | 0.575679 | 0.437219 | 0.22674 | 0 | 0.04039 | 0.032215 | 555,581 | 6,848 | 6,484 | 81.130403 | 0.768235 | 0.000106 | 0 | 0 | 1 | 0 | 0.656065 | 0.380258 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.001169 | 0 | 0.001169 | 0.000292 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
e9c649bd8dcf657922260c01813031b8f1ddd69c | 243 | py | Python | addons14/account_financial_report/wizard/__init__.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | 1 | 2021-06-10T14:59:13.000Z | 2021-06-10T14:59:13.000Z | addons14/account_financial_report/wizard/__init__.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | null | null | null | addons14/account_financial_report/wizard/__init__.py | odoochain/addons_oca | 55d456d798aebe16e49b4a6070765f206a8885ca | [
"MIT"
] | 1 | 2021-04-09T09:44:44.000Z | 2021-04-09T09:44:44.000Z | from . import abstract_wizard
from . import aged_partner_balance_wizard
from . import general_ledger_wizard
from . import journal_ledger_wizard
from . import open_items_wizard
from . import trial_balance_wizard
from . import vat_report_wizard
| 30.375 | 41 | 0.855967 | 35 | 243 | 5.542857 | 0.428571 | 0.360825 | 0.494845 | 0.237113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115226 | 243 | 7 | 42 | 34.714286 | 0.902326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
e9d3f99cbf9291100cc8e9133a79a9bebe823d36 | 2,403 | py | Python | tdrs-backend/tdpservice/data_files/test/test_models.py | riatzukiza/TANF-app | e34efc87e9703bab37db76b84cc47a041e3612a1 | [
"CC0-1.0"
] | 18 | 2020-03-25T19:57:12.000Z | 2021-07-26T15:37:50.000Z | tdrs-backend/tdpservice/data_files/test/test_models.py | raft-tech/TANF-app | a4ff39ca392591c4c218ad86df3bff5056d73152 | [
"CC0-1.0"
] | 1,465 | 2020-07-22T21:16:53.000Z | 2022-03-31T16:04:22.000Z | tdrs-backend/tdpservice/data_files/test/test_models.py | riatzukiza/TANF-app | e34efc87e9703bab37db76b84cc47a041e3612a1 | [
"CC0-1.0"
] | 15 | 2020-07-22T14:58:37.000Z | 2021-06-22T17:29:55.000Z | """Module testing for data file model."""
import pytest
from ..models import DataFile
@pytest.mark.django_db
def test_create_new_data_file_version(data_file_instance):
"""Test version incrementing logic for data files."""
new_version = DataFile.create_new_version({
"year": data_file_instance.year,
... | 37.546875 | 66 | 0.714107 | 298 | 2,403 | 5.355705 | 0.134228 | 0.220551 | 0.360902 | 0.062657 | 0.837719 | 0.789474 | 0.77381 | 0.77381 | 0.77381 | 0.664787 | 0 | 0.000514 | 0.190179 | 2,403 | 63 | 67 | 38.142857 | 0.81963 | 0.067416 | 0 | 0.754717 | 0 | 0 | 0.074324 | 0 | 0 | 0 | 0 | 0 | 0.056604 | 1 | 0.056604 | false | 0 | 0.037736 | 0 | 0.09434 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
75ccdf626687cb0bd046e53e78267d44671fd6bc | 14,208 | py | Python | affixes.py | corcra/esperanto | be8f6eda63c4f20b6f7667a50f9b85d3dba32258 | [
"MIT"
] | 15 | 2015-11-15T15:15:55.000Z | 2018-05-05T19:13:01.000Z | affixes.py | corcra/esperanto | be8f6eda63c4f20b6f7667a50f9b85d3dba32258 | [
"MIT"
] | 1 | 2015-11-19T15:11:32.000Z | 2015-11-19T15:12:06.000Z | affixes.py | corcra/esperanto | be8f6eda63c4f20b6f7667a50f9b85d3dba32258 | [
"MIT"
] | 2 | 2015-11-28T13:15:35.000Z | 2016-03-03T09:24:17.000Z | #!/usr/bin/env ipython
# Suffixes and affixes in esperanto.
# The format of the dicts are:
# affix: (transformations, explanation, conflicts)
# Transformations is a dict of how this suffix transforms endings, e.g.
# i --> a, esti --> estanta
# Explanation is an English string describing the suffix.
# Conflicts is a ... | 85.077844 | 145 | 0.50732 | 1,863 | 14,208 | 3.863124 | 0.162104 | 0.111713 | 0.136724 | 0.053356 | 0.828818 | 0.824371 | 0.814645 | 0.759066 | 0.741976 | 0.723496 | 0 | 0.007731 | 0.244369 | 14,208 | 166 | 146 | 85.590361 | 0.66263 | 0 | 0 | 0.278689 | 0 | 0 | 0.430543 | 0.015405 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.016393 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
75ecdfc1af4c406a7f7e6cf97427e570948ee114 | 89 | py | Python | tests/deterministicpasswordgenerator/mock_ruleset_multifile/__init__.py | jelford/deterministic-password-generator | ad839a2e0d82e1742227a686c248d2ad03ef2fc1 | [
"MIT"
] | 1 | 2016-08-22T22:48:50.000Z | 2016-08-22T22:48:50.000Z | tests/deterministicpasswordgenerator/mock_ruleset_multifile/__init__.py | jelford/deterministic-password-generator | ad839a2e0d82e1742227a686c248d2ad03ef2fc1 | [
"MIT"
] | null | null | null | tests/deterministicpasswordgenerator/mock_ruleset_multifile/__init__.py | jelford/deterministic-password-generator | ad839a2e0d82e1742227a686c248d2ad03ef2fc1 | [
"MIT"
] | null | null | null | from .alternative_more_complicated_strategy import complex_function as generate_password
| 44.5 | 88 | 0.921348 | 11 | 89 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 89 | 1 | 89 | 89 | 0.927711 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
f92f52ab6a641c41c802e4d3d1dc79548963e142 | 81,390 | py | Python | simplepbi/admin/__init__.py | ladataweb/SimplePBI | b9743bbb75517edda7eeea1388ab109cc8599c7c | [
"MIT"
] | null | null | null | simplepbi/admin/__init__.py | ladataweb/SimplePBI | b9743bbb75517edda7eeea1388ab109cc8599c7c | [
"MIT"
] | null | null | null | simplepbi/admin/__init__.py | ladataweb/SimplePBI | b9743bbb75517edda7eeea1388ab109cc8599c7c | [
"MIT"
] | null | null | null | '''
/¯¯¯¯¯¯¯¯¯\
/ \
| | __ | *********************************************
| | | \ | Code writen by Ignacio and Martin.
| | | | |
| |__|_ | | La Data Web
| |__/ | *********************************************
\ /
\__________/
'''
import json
import reque... | 45.49469 | 332 | 0.567256 | 8,772 | 81,390 | 5.212836 | 0.056886 | 0.034903 | 0.059833 | 0.022438 | 0.802305 | 0.785203 | 0.771098 | 0.755812 | 0.743915 | 0.73508 | 0 | 0.007049 | 0.32375 | 81,390 | 1,789 | 333 | 45.49469 | 0.823583 | 0.302568 | 0 | 0.735491 | 0 | 0.008929 | 0.217384 | 0.012592 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063616 | false | 0 | 0.007813 | 0 | 0.138393 | 0.146205 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f9bceedb98ae43a06438199d19306e7faa8aa88a | 142 | py | Python | constructive_tree/__init__.py | shinke-li/Primtive3D | 96a5f0dcc6337bdbe43fbaebd166c7da4d3d41b1 | [
"MIT"
] | 5 | 2022-03-28T02:00:45.000Z | 2022-03-29T07:49:48.000Z | constructive_tree/__init__.py | shinke-li/Primtive3D | 96a5f0dcc6337bdbe43fbaebd166c7da4d3d41b1 | [
"MIT"
] | null | null | null | constructive_tree/__init__.py | shinke-li/Primtive3D | 96a5f0dcc6337bdbe43fbaebd166c7da4d3d41b1 | [
"MIT"
] | 1 | 2022-03-28T02:00:40.000Z | 2022-03-28T02:00:40.000Z | from constructive_tree import primitive_pymesh
from constructive_tree import gen_ply
from constructive_tree import generate_constructive_tree
| 35.5 | 56 | 0.915493 | 19 | 142 | 6.473684 | 0.473684 | 0.520325 | 0.487805 | 0.634146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 142 | 3 | 57 | 47.333333 | 0.946154 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 9 |
f9c965aa26602de01f8fb759da4131a3f6873836 | 116 | py | Python | cymove/__init__.py | ozars/cymove | 0717bbc8d616e08ee8aa10fa060e1a04c8622e53 | [
"MIT"
] | 3 | 2019-07-31T10:52:21.000Z | 2021-04-01T10:47:25.000Z | cymove/__init__.py | ozars/cymove | 0717bbc8d616e08ee8aa10fa060e1a04c8622e53 | [
"MIT"
] | 1 | 2020-03-24T09:03:21.000Z | 2020-05-26T21:58:37.000Z | cymove/__init__.py | ozars/cymove | 0717bbc8d616e08ee8aa10fa060e1a04c8622e53 | [
"MIT"
] | 1 | 2020-05-24T18:23:16.000Z | 2020-05-24T18:23:16.000Z | raise ImportError('cymove is not intended to be imported from Python, please import it from Cython using cimport.')
| 58 | 115 | 0.801724 | 18 | 116 | 5.166667 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146552 | 116 | 1 | 116 | 116 | 0.939394 | 0 | 0 | 0 | 0 | 0 | 0.810345 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
ddadc824db8f896983c52a0c23da39bbe7d12316 | 5,101 | py | Python | tests/unit/test_string_op.py | Jainpriyal/jsnapy | 60ca4186b0799325cee2dd62f59637a7ab3fc13c | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/unit/test_string_op.py | Jainpriyal/jsnapy | 60ca4186b0799325cee2dd62f59637a7ab3fc13c | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | tests/unit/test_string_op.py | Jainpriyal/jsnapy | 60ca4186b0799325cee2dd62f59637a7ab3fc13c | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | import unittest
import yaml
from jnpr.jsnapy.check import Comparator
from mock import patch
import os
from nose.plugins.attrib import attr
@attr('unit')
class TestStringOperators(unittest.TestCase):
def setUp(self):
self.diff = False
self.hostname = "10.216.193.114"
self.db = dict()
... | 35.17931 | 83 | 0.576162 | 624 | 5,101 | 4.410256 | 0.13141 | 0.052326 | 0.043605 | 0.052326 | 0.835756 | 0.835756 | 0.835756 | 0.835756 | 0.834302 | 0.816134 | 0 | 0.006816 | 0.309743 | 5,101 | 144 | 84 | 35.423611 | 0.77478 | 0 | 0 | 0.755556 | 0 | 0 | 0.102725 | 0.034895 | 0 | 0 | 0 | 0 | 0.088889 | 1 | 0.051852 | false | 0.051852 | 0.044444 | 0 | 0.103704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
ddd2e7ce58d7453ce1baed2f455428a268a9a58c | 2,836 | py | Python | dg_skews/skew_builder.py | davedavis/marketing-etl | f1a2dfeaa41bf4ef7645dc113912fe994bd5707d | [
"Apache-2.0"
] | null | null | null | dg_skews/skew_builder.py | davedavis/marketing-etl | f1a2dfeaa41bf4ef7645dc113912fe994bd5707d | [
"Apache-2.0"
] | null | null | null | dg_skews/skew_builder.py | davedavis/marketing-etl | f1a2dfeaa41bf4ef7645dc113912fe994bd5707d | [
"Apache-2.0"
] | null | null | null | # #!/usr/bin python
# Copyright (c) 2021. Dave Davis
# #
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 55.607843 | 124 | 0.560649 | 640 | 2,836 | 2.467188 | 0.240625 | 0.178594 | 0.238125 | 0.193794 | 0.395187 | 0.379354 | 0.379354 | 0.377454 | 0.376187 | 0.361621 | 0 | 0.380654 | 0.212623 | 2,836 | 51 | 125 | 55.607843 | 0.326467 | 0.867419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.125 | false | 0.125 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 9 |
fb082e2db2823474ac0f80a35eca620d81d01490 | 18,256 | py | Python | pay-api/tests/unit/services/test_payment_transaction.py | saravankumarpa/sbc-pay | 2362549e52c575ab4ea6c19de987f0ebc9d06571 | [
"Apache-2.0"
] | null | null | null | pay-api/tests/unit/services/test_payment_transaction.py | saravankumarpa/sbc-pay | 2362549e52c575ab4ea6c19de987f0ebc9d06571 | [
"Apache-2.0"
] | null | null | null | pay-api/tests/unit/services/test_payment_transaction.py | saravankumarpa/sbc-pay | 2362549e52c575ab4ea6c19de987f0ebc9d06571 | [
"Apache-2.0"
] | null | null | null | # Copyright © 2019 Province of British Columbia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 41.87156 | 118 | 0.749178 | 2,326 | 18,256 | 5.602752 | 0.086844 | 0.0874 | 0.040055 | 0.062155 | 0.810697 | 0.789825 | 0.765961 | 0.743861 | 0.728207 | 0.713858 | 0 | 0.008075 | 0.165644 | 18,256 | 435 | 119 | 41.967816 | 0.847426 | 0.075592 | 0 | 0.723404 | 0 | 0 | 0.037718 | 0.005252 | 0 | 0 | 0 | 0 | 0.24924 | 1 | 0.06079 | false | 0 | 0.033435 | 0 | 0.109422 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
34e08ab27d74e9bdc5de98a2971eea7304c561d8 | 20,913 | py | Python | tests/test_APITokenCommands.py | sc979/jenkins-attack-framework | ce0de8e2c014ccc42ae0f159e40f36415a86e9e3 | [
"MIT"
] | 451 | 2021-05-05T18:08:51.000Z | 2022-03-28T10:50:26.000Z | tests/test_APITokenCommands.py | markyjackson-taulia/jenkins-attack-framework | 18da671312bff200ef07d537b7f7dc57605b8765 | [
"MIT"
] | null | null | null | tests/test_APITokenCommands.py | markyjackson-taulia/jenkins-attack-framework | 18da671312bff200ef07d537b7f7dc57605b8765 | [
"MIT"
] | 49 | 2021-05-04T20:22:12.000Z | 2022-02-04T15:34:59.000Z | import random
import string
import unittest
import warnings
from libs import jenkinslib
from libs.JAF.BaseCommandLineParser import BaseCommandLineParser
from libs.JAF.plugin_CreateAPIToken import CreateAPIToken, CreateAPITokenParser
from libs.JAF.plugin_DeleteAPIToken import DeleteAPIToken, DeleteAPITokenParser
from l... | 35.626917 | 129 | 0.594511 | 2,251 | 20,913 | 5.33896 | 0.083518 | 0.07364 | 0.040023 | 0.061574 | 0.900233 | 0.88459 | 0.8781 | 0.872608 | 0.861707 | 0.838243 | 0 | 0.009969 | 0.3045 | 20,913 | 586 | 130 | 35.687713 | 0.816294 | 0.14326 | 0 | 0.77208 | 0 | 0 | 0.171337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116809 | false | 0 | 0.031339 | 0 | 0.17094 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
34e4b6f3ec52b1fe21e55bdddbffbd0a0fb2b50f | 284 | py | Python | cowait/tasks/ops.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | 2 | 2021-08-11T08:51:42.000Z | 2021-08-11T08:55:19.000Z | cowait/tasks/ops.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | null | null | null | cowait/tasks/ops.py | ProgHaj/cowait | e95c30faab8caf8b0413de4e1784529a3a06475d | [
"Apache-2.0"
] | null | null | null | import asyncio
async def join(tasks):
return await asyncio.gather(*tasks)
done, pending = await asyncio.wait(tasks)
return list(done)
async def gather(*tasks):
return await asyncio.gather(*tasks)
done, pending = await asyncio.wait(tasks)
return list(done)
| 20.285714 | 45 | 0.700704 | 38 | 284 | 5.236842 | 0.342105 | 0.221106 | 0.160804 | 0.231156 | 0.80402 | 0.80402 | 0.80402 | 0.80402 | 0.80402 | 0.80402 | 0 | 0 | 0.197183 | 284 | 13 | 46 | 21.846154 | 0.872807 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
9b6e7d45d7ea744ce6b5cd26b57e6afcd6daeb7b | 11,364 | py | Python | dataset.py | HarryMellsop/chept-neural-chess | 656cb385e69d21c28117ef1fd0ecc671e01f1c1d | [
"MIT"
] | 1 | 2021-02-24T01:11:02.000Z | 2021-02-24T01:11:02.000Z | dataset.py | HarryMellsop/chept-neural-chess | 656cb385e69d21c28117ef1fd0ecc671e01f1c1d | [
"MIT"
] | null | null | null | dataset.py | HarryMellsop/chept-neural-chess | 656cb385e69d21c28117ef1fd0ecc671e01f1c1d | [
"MIT"
] | null | null | null | import random
import torch
from torch.utils.data import Dataset
game_splits = {'early': 0,
'mid': 16,
'late': 32}
class Finetune_Early(Dataset):
def __init__(self, data, block_size, pretrain_vocab):
assert pretrain_vocab, "Must have pretrain vocab for finetuning"
... | 31.21978 | 104 | 0.589669 | 1,677 | 11,364 | 3.786524 | 0.073345 | 0.069291 | 0.103937 | 0.069606 | 0.868976 | 0.859528 | 0.855276 | 0.839055 | 0.839055 | 0.82315 | 0 | 0.021583 | 0.278335 | 11,364 | 363 | 105 | 31.305785 | 0.752713 | 0.022791 | 0 | 0.766393 | 0 | 0 | 0.054699 | 0.003785 | 0 | 0 | 0 | 0 | 0.04918 | 1 | 0.069672 | false | 0 | 0.012295 | 0.02459 | 0.151639 | 0.02459 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
9bab770e7c06a507b5a97922a7ec210c0221cb40 | 16,424 | py | Python | gfeat/upstreamAUG.py | gagneurlab/gfeat | a5ddb081567253ee2d6046485f81941bebb1f0f9 | [
"MIT"
] | 2 | 2018-09-28T21:30:07.000Z | 2020-06-09T15:54:24.000Z | gfeat/upstreamAUG.py | gagneurlab/gfeat | a5ddb081567253ee2d6046485f81941bebb1f0f9 | [
"MIT"
] | 1 | 2021-11-15T17:47:48.000Z | 2021-11-15T17:47:48.000Z | gfeat/upstreamAUG.py | gagneurlab/gfeat | a5ddb081567253ee2d6046485f81941bebb1f0f9 | [
"MIT"
] | null | null | null | import re
import math
import numpy as np
class UpstreamAUG:
def __init__(self, allow_ORF=True, verbose_output=False):
"""
Constructor
:param allow_ORF: bool, True by default, whether to check uORFs
:param verbose_output: bool, False by default, whether to return dictionaries in pr... | 41.370277 | 175 | 0.435278 | 1,834 | 16,424 | 3.729553 | 0.069793 | 0.047076 | 0.052632 | 0.038012 | 0.899854 | 0.895468 | 0.892836 | 0.885526 | 0.864766 | 0.864766 | 0 | 0.028232 | 0.467304 | 16,424 | 396 | 176 | 41.474747 | 0.752886 | 0.17103 | 0 | 0.906977 | 0 | 0 | 0.028619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0.054264 | 0.011628 | 0 | 0.05814 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
fd25c903b4ab55e2fbc63a42afa6b4c2860d8253 | 6,994 | py | Python | src/huobi/linear_swap/rest/trigger_order.py | hbdmapi/huobi_sdk_Python | a4ee876f947011fb5d66da32853cb3a21d852a4b | [
"MIT"
] | 1 | 2022-03-13T16:55:34.000Z | 2022-03-13T16:55:34.000Z | src/huobi/linear_swap/rest/trigger_order.py | hbdmapi/huobi_sdk_Python | a4ee876f947011fb5d66da32853cb3a21d852a4b | [
"MIT"
] | null | null | null | src/huobi/linear_swap/rest/trigger_order.py | hbdmapi/huobi_sdk_Python | a4ee876f947011fb5d66da32853cb3a21d852a4b | [
"MIT"
] | null | null | null | import json
from huobi.utils.http import post
from huobi.host import HOST_FUTURES
class TriggerOrder:
def __init__(self, access_key: str, secret_key: str, host: str = HOST_FUTURES):
self.__access_key = access_key
self.__secret_key = secret_key
self.__host = host
def isolated_order(se... | 49.253521 | 83 | 0.699171 | 1,012 | 6,994 | 4.393281 | 0.04249 | 0.07085 | 0.099415 | 0.141026 | 0.958839 | 0.953891 | 0.953891 | 0.953891 | 0.953891 | 0.953891 | 0 | 0.005604 | 0.183586 | 6,994 | 141 | 84 | 49.602837 | 0.77303 | 0 | 0 | 0.307692 | 0 | 0 | 0.194166 | 0.194166 | 0 | 0 | 0 | 0 | 0 | 1 | 0.317308 | false | 0 | 0.028846 | 0 | 0.663462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
b5f22fc11e51c2b46f0363db441878cbc2699aa4 | 2,955 | py | Python | test/test_xtram.py | markovmodel/pyfeat | ee5cb6bd0f2c1900f7fc2665e83d4f152b167465 | [
"BSD-2-Clause"
] | 4 | 2015-03-20T13:09:14.000Z | 2019-03-14T10:42:52.000Z | test/test_xtram.py | markovmodel/pyfeat | ee5cb6bd0f2c1900f7fc2665e83d4f152b167465 | [
"BSD-2-Clause"
] | 20 | 2015-02-03T13:14:46.000Z | 2015-03-15T23:35:14.000Z | test/test_xtram.py | markovmodel/pyfeat | ee5cb6bd0f2c1900f7fc2665e83d4f152b167465 | [
"BSD-2-Clause"
] | null | null | null | ################################################################################
#
# test_xtram.py - testing the pyfeat xtram class
#
# author: Christoph Wehmeyer <christoph.wehmeyer@fu-berlin.de>
# author: Antonia Mey <antonia.mey@fu-berlin.de>
#
##################################################################... | 61.5625 | 241 | 0.637902 | 469 | 2,955 | 3.965885 | 0.095949 | 0.148387 | 0.272043 | 0.174731 | 0.813978 | 0.813978 | 0.813978 | 0.777957 | 0.773656 | 0.75 | 0 | 0.04822 | 0.115736 | 2,955 | 47 | 242 | 62.87234 | 0.663605 | 0.057868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.611111 | 1 | 0.222222 | true | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
bd18fa39da2cab18c8d458af48927abd57f8fb59 | 1,778 | py | Python | teachers.py | PopGalacticHistory/imagewalker | dd151d0698472aebdde0487a364c56fed048bb61 | [
"MIT"
] | 2 | 2021-04-28T13:33:45.000Z | 2021-11-09T14:31:09.000Z | teachers.py | PopGalacticHistory/imagewalker | dd151d0698472aebdde0487a364c56fed048bb61 | [
"MIT"
] | null | null | null | teachers.py | PopGalacticHistory/imagewalker | dd151d0698472aebdde0487a364c56fed048bb61 | [
"MIT"
] | 1 | 2021-03-07T13:25:59.000Z | 2021-03-07T13:25:59.000Z | import numpy as np
from misc import *
class Clipped_Harmonic_1D:
def __init__(self):
self.hp = HP()
self.hp.name='Clipped_Harmonic_1D'
self.hp.dt = 0.1
self.hp.omega0 = 2*np.pi / 10.
self.hp.noi = 0.01
self.vel = 0
def step(self,dvs_strip):
dvs_strip = d... | 41.348837 | 100 | 0.610799 | 304 | 1,778 | 3.447368 | 0.190789 | 0.14313 | 0.073473 | 0.061069 | 0.896947 | 0.896947 | 0.887405 | 0.887405 | 0.887405 | 0.887405 | 0 | 0.037946 | 0.244094 | 1,778 | 43 | 101 | 41.348837 | 0.741815 | 0.111361 | 0 | 0.763158 | 0 | 0 | 0.029803 | 0.017755 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1ff3566c59221f9c8fac49541b6b5b5ad486671f | 168 | py | Python | moyasar/resource.py | moyasar/moyasar-python | 8cf6de9e2ff5a98634b6751c1b1aa72ce0d48dd7 | [
"MIT"
] | 6 | 2019-03-03T19:02:35.000Z | 2019-09-29T04:49:40.000Z | moyasar/resource.py | moyasar/moyasar-python | 8cf6de9e2ff5a98634b6751c1b1aa72ce0d48dd7 | [
"MIT"
] | 7 | 2019-03-04T14:50:59.000Z | 2021-06-01T23:25:29.000Z | moyasar/resource.py | moyasar/moyasar-python | 8cf6de9e2ff5a98634b6751c1b1aa72ce0d48dd7 | [
"MIT"
] | 4 | 2019-03-03T19:03:28.000Z | 2021-07-15T03:10:55.000Z | from moyasar.actions.fetch import Fetch
from moyasar.actions.list import List
from moyasar.actions.update import Update
class Resource(Fetch, List, Update):
pass
| 21 | 41 | 0.797619 | 24 | 168 | 5.583333 | 0.416667 | 0.246269 | 0.402985 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136905 | 168 | 7 | 42 | 24 | 0.924138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.6 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 8 |
20fb535b2d36db98cfeb859054b75136d9d9dd89 | 11,687 | py | Python | constant/rgapi.py | Naopil/EldenBot | 2b6f4e98dcfdf3720a6c4add4f694d0e15cd575a | [
"MIT"
] | null | null | null | constant/rgapi.py | Naopil/EldenBot | 2b6f4e98dcfdf3720a6c4add4f694d0e15cd575a | [
"MIT"
] | 1 | 2019-11-16T19:01:01.000Z | 2019-11-16T19:01:01.000Z | constant/rgapi.py | Naopil/EldenBot | 2b6f4e98dcfdf3720a6c4add4f694d0e15cd575a | [
"MIT"
] | 4 | 2018-07-22T23:13:26.000Z | 2022-03-29T17:06:50.000Z | CHAMP_ID_TO_EMOJI = {'266': '<:champ_266:601909182748164097>', '103': '<:champ_103:601909185243774976>', '84': '<:champ_84:601909188612063233>', '12': '<:champ_12:601909190809878530>', '32': '<:champ_32:601909193456222221>', '34': '<:champ_34:601909195968610356>', '1': '<:champ_1:601909198799896690>', '22': '<:champ_22... | 1,669.571429 | 5,924 | 0.670745 | 1,211 | 11,687 | 6.275805 | 0.503716 | 0.002763 | 0.002368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.507546 | 0.064516 | 11,687 | 7 | 5,925 | 1,669.571429 | 0.187597 | 0 | 0 | 0 | 0 | 0 | 0.737765 | 0.579997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1f105613bcbec152b67b71a51725c2694d8da894 | 132 | py | Python | DemPipe/action/mixin/__init__.py | hmiladhia/DemPipe | 48d48150969fa047e2f20b35ee1c61991e7b44ad | [
"MIT"
] | null | null | null | DemPipe/action/mixin/__init__.py | hmiladhia/DemPipe | 48d48150969fa047e2f20b35ee1c61991e7b44ad | [
"MIT"
] | null | null | null | DemPipe/action/mixin/__init__.py | hmiladhia/DemPipe | 48d48150969fa047e2f20b35ee1c61991e7b44ad | [
"MIT"
] | null | null | null | from DemPipe.action.mixin.context_out_mixin import ContextOutMixin
from DemPipe.action.mixin.context_in_mixin import ContextInMixin
| 44 | 66 | 0.893939 | 18 | 132 | 6.333333 | 0.555556 | 0.192982 | 0.298246 | 0.385965 | 0.508772 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060606 | 132 | 2 | 67 | 66 | 0.919355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
1f1a0abf5bd0eff5e60e7476f8881f3b0afc3f9c | 22,650 | py | Python | tasks/tasks_fetch_google_ads.py | xyla-io/almacen | 7b7f235dc7939777f971f1b5eadd5621e980c15e | [
"MIT"
] | 2 | 2020-10-15T22:12:17.000Z | 2020-10-26T07:17:17.000Z | tasks/tasks_fetch_google_ads.py | xyla-io/almacen | 7b7f235dc7939777f971f1b5eadd5621e980c15e | [
"MIT"
] | null | null | null | tasks/tasks_fetch_google_ads.py | xyla-io/almacen | 7b7f235dc7939777f971f1b5eadd5621e980c15e | [
"MIT"
] | null | null | null | from __future__ import annotations
import models
import re
from . import base
from . import tasks_fetch_entity
from . import tasks_fetch_currency_exchange
from config import CompanyConfiguration
from typing import List, Dict, Optional
from hazel import GoogleAdsAPI
class FetchGoogleAdsReportTask(base.FetchReportTask)... | 34.846154 | 138 | 0.753157 | 2,325 | 22,650 | 6.978065 | 0.071398 | 0.045427 | 0.032544 | 0.056953 | 0.850592 | 0.835059 | 0.828402 | 0.821252 | 0.816506 | 0.812192 | 0 | 0 | 0.165298 | 22,650 | 649 | 139 | 34.899846 | 0.858034 | 0 | 0 | 0.757092 | 0 | 0 | 0.106049 | 0.050905 | 0 | 0 | 0 | 0 | 0 | 1 | 0.143617 | false | 0 | 0.015957 | 0.136525 | 0.335106 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 8 |
1f6aa8b1eaab0ae85931226249b7ea10a61edae7 | 429 | py | Python | preggy/assertions/types/__init__.py | rfloriano/preggy | 6226ea4a1ff8614aee97d60fb3193149e834a555 | [
"Unlicense",
"MIT"
] | 10 | 2015-02-26T13:37:08.000Z | 2020-04-08T14:11:27.000Z | preggy/assertions/types/__init__.py | rfloriano/preggy | 6226ea4a1ff8614aee97d60fb3193149e834a555 | [
"Unlicense",
"MIT"
] | 9 | 2015-03-02T16:04:04.000Z | 2021-04-20T17:47:00.000Z | preggy/assertions/types/__init__.py | rfloriano/preggy | 6226ea4a1ff8614aee97d60fb3193149e834a555 | [
"Unlicense",
"MIT"
] | 5 | 2015-02-05T15:59:48.000Z | 2020-03-18T14:28:11.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from preggy.assertions.types.boolean import *
from preggy.assertions.types.classes import *
from preggy.assertions.types.errors import *
from preggy.assertions.types.file import *
from preggy.assertions.types.function import *
from preggy.assertions.types.... | 35.75 | 46 | 0.806527 | 56 | 429 | 6.089286 | 0.321429 | 0.234604 | 0.375367 | 0.609971 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002584 | 0.097902 | 429 | 11 | 47 | 39 | 0.878553 | 0.048951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.888889 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
2f24f74c60eeaace9dfa58e1a9431bbffbae701f | 58,376 | py | Python | optimization/second_sdEta_mjj_optimization/lumi_and_kin_plots/four_cuts_lum1000/Output/Histos/MadAnalysis5job_0/selection_12.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | optimization/second_sdEta_mjj_optimization/lumi_and_kin_plots/four_cuts_lum1000/Output/Histos/MadAnalysis5job_0/selection_12.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | optimization/second_sdEta_mjj_optimization/lumi_and_kin_plots/four_cuts_lum1000/Output/Histos/MadAnalysis5job_0/selection_12.py | sheride/axion_pheno | 7d3fc08f5ae5b17a3500eba19a2e43f87f076ce5 | [
"MIT"
] | null | null | null | def selection_12():
# Library import
import numpy
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
# Library version
matplotlib_version = matplotlib.__version__
numpy_version = numpy.__version__
# Histo binning
xBinning = numpy.li... | 300.907216 | 5,602 | 0.699825 | 16,189 | 58,376 | 2.47835 | 0.123973 | 0.518469 | 0.759085 | 0.988286 | 0.452146 | 0.42772 | 0.426325 | 0.415109 | 0.408679 | 0.405065 | 0 | 0.593925 | 0.028351 | 58,376 | 193 | 5,603 | 302.466321 | 0.113432 | 0.016805 | 0 | 0.185841 | 0 | 0.00885 | 0.018219 | 0.003539 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00885 | false | 0 | 0.035398 | 0 | 0.044248 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2f3fa3c3b3fe7f305d05999290036ad7b5e60f1c | 10,470 | py | Python | rex/tasks/relation_extraction.py | Spico197/REx | bb3cdb845765a63e9bd18070068af52a1b2db3f3 | [
"MIT"
] | 4 | 2021-12-29T08:16:07.000Z | 2022-03-21T03:03:24.000Z | rex/tasks/relation_extraction.py | Spico197/REx | bb3cdb845765a63e9bd18070068af52a1b2db3f3 | [
"MIT"
] | null | null | null | rex/tasks/relation_extraction.py | Spico197/REx | bb3cdb845765a63e9bd18070068af52a1b2db3f3 | [
"MIT"
] | null | null | null | import torch
from torch.optim import Adam
from omegaconf import OmegaConf
from rex.utils.logging import logger
from rex.models.sent_pcnn import SentPCNN
from rex.models.bag_pcnn import PCNNOne
from rex.utils.io import load_line_json
from rex.utils.progress_bar import tqdm
from rex.utils.tensor_move import move_to_cuda... | 36.228374 | 111 | 0.5766 | 1,192 | 10,470 | 4.83557 | 0.138423 | 0.038168 | 0.031228 | 0.019431 | 0.814539 | 0.811416 | 0.805864 | 0.790597 | 0.778973 | 0.763706 | 0 | 0.004049 | 0.31595 | 10,470 | 288 | 112 | 36.354167 | 0.800754 | 0 | 0 | 0.75969 | 0 | 0.007752 | 0.076504 | 0.021777 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031008 | false | 0 | 0.062016 | 0 | 0.116279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2f472db34c73ec1ef6a1f7adfc9fb6a3d722140a | 48 | py | Python | tests/web/analyze-url/open.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 40 | 2015-01-09T02:56:33.000Z | 2019-03-01T05:34:13.000Z | tests/web/analyze-url/open.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 98 | 2015-01-05T12:51:29.000Z | 2019-01-23T20:16:48.000Z | tests/web/analyze-url/open.py | movermeyer/tangelo | 470034ee9b3d7a01becc1ce5fddc7adc1d5263ef | [
"Apache-2.0"
] | 21 | 2015-01-05T19:11:49.000Z | 2020-08-19T04:16:16.000Z | def run():
return "I am open to the public"
| 16 | 36 | 0.625 | 9 | 48 | 3.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.270833 | 48 | 2 | 37 | 24 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.479167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 7 |
2f683ae48eb70db32f6b7c694e933dddbd4c0a4c | 3,792 | py | Python | sportsbet/datasets/_soccer/__init__.py | ksu-is/sports-betting | 71d6f128bc516fc8f26decad60c2f7fd6f828945 | [
"MIT"
] | null | null | null | sportsbet/datasets/_soccer/__init__.py | ksu-is/sports-betting | 71d6f128bc516fc8f26decad60c2f7fd6f828945 | [
"MIT"
] | null | null | null | sportsbet/datasets/_soccer/__init__.py | ksu-is/sports-betting | 71d6f128bc516fc8f26decad60c2f7fd6f828945 | [
"MIT"
] | null | null | null | """
The :mod:`sportsbed.datasets._soccer` includes functions
to fetch soccer historical and fixtures data.
"""
import numpy as np
HOME_WIN = lambda outputs, col1, col2, offset: outputs[col1] - outputs[col2] > offset
AWAY_WIN = lambda outputs, col1, col2, offset: outputs[col1] - outputs[col2] < -offset
DRAW = lambda o... | 94.8 | 161 | 0.787711 | 591 | 3,792 | 4.431472 | 0.069374 | 0.201604 | 0.201604 | 0.264605 | 0.940435 | 0.913326 | 0.898816 | 0.883925 | 0.853761 | 0.836961 | 0 | 0.02781 | 0.089662 | 3,792 | 39 | 162 | 97.230769 | 0.730881 | 0.026899 | 0 | 0 | 0 | 0 | 0.540739 | 0.540739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
2f94aeed0ab29963dfa553327cf253423d494e8b | 1,752 | py | Python | tests/test_simple_join.py | cprogrammer1994/python-mesh-join | 9b58b6469cdbee75ddefb7c6e80a9fcbe2d22539 | [
"MIT"
] | null | null | null | tests/test_simple_join.py | cprogrammer1994/python-mesh-join | 9b58b6469cdbee75ddefb7c6e80a9fcbe2d22539 | [
"MIT"
] | null | null | null | tests/test_simple_join.py | cprogrammer1994/python-mesh-join | 9b58b6469cdbee75ddefb7c6e80a9fcbe2d22539 | [
"MIT"
] | null | null | null | import numpy as np
import pytest
import mesh_join
def test_simple_join():
vertices1 = np.array([
[0.0, 0.0, 1.0],
[0.0, 0.0, 2.0],
[0.0, 0.0, 3.0],
], dtype='f4')
vertices2 = np.array([
[0.0, 0.0, 4.0],
[0.0, 0.0, 5.0],
[0.0, 0.0, 6.0],
], dtype='f4')
... | 23.36 | 102 | 0.478311 | 308 | 1,752 | 2.63961 | 0.142857 | 0.221402 | 0.243542 | 0.206642 | 0.842558 | 0.842558 | 0.835178 | 0.779828 | 0.779828 | 0.779828 | 0 | 0.167468 | 0.287671 | 1,752 | 74 | 103 | 23.675676 | 0.483974 | 0 | 0 | 0.727273 | 0 | 0 | 0.018265 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 1 | 0.036364 | false | 0 | 0.054545 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
c81a9693aba74b5fe1b51f733c161713acc95a82 | 29,379 | py | Python | tradenity/resources/address.py | tradenity/python-sdk | d13fbe23f4d6ff22554c6d8d2deaf209371adaf1 | [
"Apache-2.0"
] | 1 | 2020-03-19T04:09:17.000Z | 2020-03-19T04:09:17.000Z | tradenity/resources/address.py | tradenity/python-sdk | d13fbe23f4d6ff22554c6d8d2deaf209371adaf1 | [
"Apache-2.0"
] | null | null | null | tradenity/resources/address.py | tradenity/python-sdk | d13fbe23f4d6ff22554c6d8d2deaf209371adaf1 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Tradenity API
Tradenity eCommerce Rest API
Contact: support@tradenity.com
"""
from __future__ import absolute_import
import re
import pprint
# python 2 and python 3 compatibility library
import six
from tradenity.api_client import ApiClient
class Address(object):
swa... | 31.522532 | 133 | 0.596446 | 3,376 | 29,379 | 4.936908 | 0.058649 | 0.032399 | 0.02178 | 0.025919 | 0.834223 | 0.788624 | 0.762405 | 0.752445 | 0.733365 | 0.733365 | 0 | 0.002369 | 0.310256 | 29,379 | 931 | 134 | 31.556391 | 0.820124 | 0.028047 | 0 | 0.619632 | 0 | 0 | 0.130619 | 0.030374 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.010225 | null | null | 0.00409 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c81e71fa923eeb79dc712dd81b49b33071171677 | 21,780 | py | Python | nova/tests/unit/api/openstack/compute/test_used_limits.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/api/openstack/compute/test_used_limits.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | null | null | null | nova/tests/unit/api/openstack/compute/test_used_limits.py | bopopescu/nova-token | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | [
"Apache-2.0"
] | 2 | 2017-07-20T17:31:34.000Z | 2020-07-24T02:42:19.000Z | begin_unit
comment|'# Copyright 2012 OpenStack Foundation'
nl|'\n'
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
co... | 12.201681 | 88 | 0.596648 | 3,261 | 21,780 | 3.874578 | 0.064091 | 0.165255 | 0.091808 | 0.097507 | 0.8444 | 0.798892 | 0.768263 | 0.733281 | 0.707004 | 0.681124 | 0 | 0.003773 | 0.099541 | 21,780 | 1,784 | 89 | 12.20852 | 0.640475 | 0 | 0 | 0.955717 | 0 | 0 | 0.358494 | 0.051653 | 0 | 0 | 0 | 0 | 0.002803 | 0 | null | null | 0 | 0.004484 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c08e9673518b0f52e5b46d12a685f4501a0a0dd6 | 11,302 | py | Python | zbook/account/tests/test_models.py | nahidsaikat/zbook-pro | 60746a458fb21c329712142aced679b583d84bb0 | [
"MIT"
] | 1 | 2020-06-11T07:28:04.000Z | 2020-06-11T07:28:04.000Z | zbook/account/tests/test_models.py | nahidsaikat/zbook-pro | 60746a458fb21c329712142aced679b583d84bb0 | [
"MIT"
] | 13 | 2020-02-12T00:18:50.000Z | 2022-03-11T23:59:15.000Z | zbook/account/tests/test_models.py | nahidsaikat/zbook-pro | 60746a458fb21c329712142aced679b583d84bb0 | [
"MIT"
] | null | null | null | import pytest
from faker import Faker
from django.db.utils import IntegrityError
from django.urls import reverse
from .factory import AccountSubTypeFactory
from ..models import AccountSubType, Account
from ..choices import AccountType
fake = Faker()
class TestAccountSubType:
def test_name_field(self, db):
... | 39.517483 | 142 | 0.672713 | 1,506 | 11,302 | 4.823373 | 0.067065 | 0.082874 | 0.069383 | 0.039235 | 0.832186 | 0.785242 | 0.770512 | 0.746696 | 0.722192 | 0.68337 | 0 | 0.011477 | 0.221377 | 11,302 | 285 | 143 | 39.65614 | 0.813977 | 0 | 0 | 0.580786 | 0 | 0 | 0.03495 | 0.015661 | 0 | 0 | 0 | 0 | 0.497817 | 1 | 0.144105 | false | 0 | 0.030568 | 0 | 0.183406 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2389d90a1a743a5aa6c1939b8482fabdf21cd04b | 216 | py | Python | novice/01-03/kasus/bayarHotel.py | mailoa-ev/NLP-zimera | 1f2d8ae8e26d2c23aa43921ad993887b25c24168 | [
"MIT"
] | null | null | null | novice/01-03/kasus/bayarHotel.py | mailoa-ev/NLP-zimera | 1f2d8ae8e26d2c23aa43921ad993887b25c24168 | [
"MIT"
] | null | null | null | novice/01-03/kasus/bayarHotel.py | mailoa-ev/NLP-zimera | 1f2d8ae8e26d2c23aa43921ad993887b25c24168 | [
"MIT"
] | null | null | null | class Payment:
def __init__(self):
pass
def setPayment(self, payment):
Payment.payment = payment
def getPayment(self):
print("Total yang harus dibayarkan Rp. ", Payment.payment)
| 21.6 | 66 | 0.638889 | 24 | 216 | 5.583333 | 0.583333 | 0.41791 | 0.313433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268519 | 216 | 9 | 67 | 24 | 0.848101 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.142857 | 0 | 0 | 0.571429 | 0.142857 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 7 |
23a91c1c38b946254e166b4748fb8ddd8eec2438 | 973 | py | Python | rbact/base_adapter.py | chin-wag/async-rbac | 442b5d02ee785ba4d9c04d5cbb3afeeec6dac633 | [
"MIT"
] | null | null | null | rbact/base_adapter.py | chin-wag/async-rbac | 442b5d02ee785ba4d9c04d5cbb3afeeec6dac633 | [
"MIT"
] | 11 | 2021-11-29T14:43:05.000Z | 2022-02-03T15:33:48.000Z | rbact/base_adapter.py | chin-wag/rbact | 442b5d02ee785ba4d9c04d5cbb3afeeec6dac633 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod
class AsyncBaseAdapter(ABC):
def __init__(self):
self.with_fake_roles = False
@abstractmethod
async def _get_user(self, login):
pass
@abstractmethod
async def get_user_zero_depth_rules(self, login):
pass
@abstractmethod
async d... | 18.711538 | 53 | 0.656732 | 113 | 973 | 5.318584 | 0.230089 | 0.079867 | 0.099834 | 0.269551 | 0.888519 | 0.8802 | 0.8802 | 0.838602 | 0.838602 | 0.793677 | 0 | 0 | 0.276465 | 973 | 51 | 54 | 19.078431 | 0.853693 | 0 | 0 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0.27027 | 0.027027 | 0 | 0.297297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 10 |
9b0b00292d5dcec2a3143cc2274920cce1a6d5e6 | 188 | py | Python | tests/test_roleplay.py | turn281/GHG-reduction-project | be6dde9dbe2879b9734b7035b50a7da4ff286c5c | [
"MIT"
] | null | null | null | tests/test_roleplay.py | turn281/GHG-reduction-project | be6dde9dbe2879b9734b7035b50a7da4ff286c5c | [
"MIT"
] | null | null | null | tests/test_roleplay.py | turn281/GHG-reduction-project | be6dde9dbe2879b9734b7035b50a7da4ff286c5c | [
"MIT"
] | null | null | null | import sys
sys.path.append('../')
from roleplay import *
#main.roleplayRun(sys.argv[1],sys.argv[2],sys.argv[3])
#main2.roleplayRun(sys.argv[1],sys.argv[2],sys.argv[3])
main2.roleplayRun() | 26.857143 | 55 | 0.718085 | 32 | 188 | 4.21875 | 0.40625 | 0.311111 | 0.266667 | 0.281481 | 0.674074 | 0.674074 | 0.674074 | 0.674074 | 0.674074 | 0.674074 | 0 | 0.044944 | 0.053191 | 188 | 7 | 56 | 26.857143 | 0.713483 | 0.569149 | 0 | 0 | 0 | 0 | 0.0375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
f1b2a27914cc0369ffcda53ccffd498193203c6d | 5,331 | py | Python | torch_glow/tests/nodes/full_like_test.py | saranyakrish14/glow | 3562fba6a77d2bb4aacf98a5bff5a737a93f6adc | [
"Apache-2.0"
] | null | null | null | torch_glow/tests/nodes/full_like_test.py | saranyakrish14/glow | 3562fba6a77d2bb4aacf98a5bff5a737a93f6adc | [
"Apache-2.0"
] | null | null | null | torch_glow/tests/nodes/full_like_test.py | saranyakrish14/glow | 3562fba6a77d2bb4aacf98a5bff5a737a93f6adc | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function, unicode_literals
import torch
from tests import utils
class TestFullLike(utils.TorchGlowTestCase):
def test_empty_like_basic(self):
"""Basic test of the PyTorch empty_like Node on Glow."""
class TestModule(torch.nn.Module):
... | 33.955414 | 88 | 0.593697 | 734 | 5,331 | 4.13079 | 0.084469 | 0.013193 | 0.051451 | 0.059367 | 0.94723 | 0.936346 | 0.92876 | 0.920185 | 0.904354 | 0.89248 | 0 | 0.012712 | 0.29169 | 5,331 | 156 | 89 | 34.173077 | 0.790254 | 0.140124 | 0 | 0.62766 | 0 | 0 | 0.041123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255319 | false | 0 | 0.031915 | 0 | 0.553191 | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.