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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
115f4b4df06e7c8e8398ae06e563e3d6825c892a | 473 | py | Python | Python高级编程/单继承.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 95 | 2020-10-11T04:45:46.000Z | 2022-02-25T01:50:40.000Z | Python高级编程/单继承.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | null | null | null | Python高级编程/单继承.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 30 | 2020-11-05T09:01:00.000Z | 2022-03-08T05:58:55.000Z | class A:
def spam(self):
print('A.spam')
class B(A):
def spam(self):
print('B.spam')
super().spam() # Call parent spam()
class C:
def __init__(self):
self.x = 0
class D(C):
def __init__(self):
super().__init__()
self.y = 1
d = D()
print(d.y)
class Bas... | 16.892857 | 44 | 0.530655 | 66 | 473 | 3.318182 | 0.272727 | 0.219178 | 0.200913 | 0.109589 | 0.155251 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006116 | 0.308668 | 473 | 28 | 45 | 16.892857 | 0.663609 | 0.038055 | 0 | 0.26087 | 0 | 0 | 0.077093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0 | 0 | 0.521739 | 0.217391 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
feca5981e4193f53c9bcc42cf5d652c0a1d158f4 | 171 | py | Python | tests/LynxmotionNewTest.py | murrayireland/Rover-Code | e46126a38d8ac8bb70867e3378a3c4f89591b385 | [
"MIT"
] | null | null | null | tests/LynxmotionNewTest.py | murrayireland/Rover-Code | e46126a38d8ac8bb70867e3378a3c4f89591b385 | [
"MIT"
] | null | null | null | tests/LynxmotionNewTest.py | murrayireland/Rover-Code | e46126a38d8ac8bb70867e3378a3c4f89591b385 | [
"MIT"
] | null | null | null | # Test of new Lynxmotion controller with Adafruit DC
# motor driver and Sense HAT IMU
import RPi.GPIO as gpio
import time
gpio.setmode(gpio.BCM)
gpio.setwarnings(False)
| 19 | 52 | 0.789474 | 28 | 171 | 4.821429 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152047 | 171 | 8 | 53 | 21.375 | 0.931034 | 0.473684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fede73c506ba482087b17ab8f75dd8fe5ed19510 | 833 | py | Python | pyqtcli/exception.py | Kynarth/pyqtcli | ca5f7f711b3731531f39b7d9a63b9965fbbc2b75 | [
"MIT"
] | null | null | null | pyqtcli/exception.py | Kynarth/pyqtcli | ca5f7f711b3731531f39b7d9a63b9965fbbc2b75 | [
"MIT"
] | null | null | null | pyqtcli/exception.py | Kynarth/pyqtcli | ca5f7f711b3731531f39b7d9a63b9965fbbc2b75 | [
"MIT"
] | null | null | null | """This module regroups all exceptions tied to pyqtcli cli."""
class QresourceError(Exception):
"""Exception raised with problems concerning qresource node in qrc files."""
def __init__(self, arg):
super(QresourceError, self).__init__()
self.msg = arg
def __str__(self):
return sel... | 26.03125 | 80 | 0.665066 | 94 | 833 | 5.510638 | 0.361702 | 0.092664 | 0.138996 | 0.162162 | 0.664093 | 0.627413 | 0.361004 | 0.256757 | 0.256757 | 0.256757 | 0 | 0 | 0.231693 | 833 | 31 | 81 | 26.870968 | 0.809375 | 0.295318 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
fef8d2695dee0a4aaa685fdc6cbaaa6c9ef10f22 | 66 | py | Python | test1/login.py | guangchaoli/test | f3948f949bca37a910d3ac671d29c40744ec6ba9 | [
"MIT"
] | null | null | null | test1/login.py | guangchaoli/test | f3948f949bca37a910d3ac671d29c40744ec6ba9 | [
"MIT"
] | null | null | null | test1/login.py | guangchaoli/test | f3948f949bca37a910d3ac671d29c40744ec6ba9 | [
"MIT"
] | null | null | null | num1=10
num2=20
num3=30
num4=40
num5=50
num6=60
nihaoma=weijialan
| 8.25 | 17 | 0.787879 | 14 | 66 | 3.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.305085 | 0.106061 | 66 | 7 | 18 | 9.428571 | 0.576271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3a039f25a48a0a20d24c40124319ec602f07e19b | 90 | py | Python | Python/04. Sets/003. Symmetric Difference.py | stonehengee/HackerrankPractice | ec052e7447391e40d1919cf0b641ff5023da3da3 | [
"MIT"
] | null | null | null | Python/04. Sets/003. Symmetric Difference.py | stonehengee/HackerrankPractice | ec052e7447391e40d1919cf0b641ff5023da3da3 | [
"MIT"
] | null | null | null | Python/04. Sets/003. Symmetric Difference.py | stonehengee/HackerrankPractice | ec052e7447391e40d1919cf0b641ff5023da3da3 | [
"MIT"
] | null | null | null | # Problem: https://www.hackerrank.com/challenges/symmetric-difference/problem
# Score: 10
| 30 | 77 | 0.788889 | 11 | 90 | 6.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02381 | 0.066667 | 90 | 2 | 78 | 45 | 0.821429 | 0.944444 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3a095de901b7c11af11b3186cc279cbac8e5b886 | 210 | py | Python | flaskr/models/__init__.py | jeovazero/zoas-store-api-graphql | c2ef77a2b7abdfae7b492f901c879fd2d4f9e889 | [
"MIT"
] | 3 | 2019-10-23T07:15:01.000Z | 2020-05-18T16:11:31.000Z | flaskr/models/__init__.py | jeovazero/zoas-store-backend | c2ef77a2b7abdfae7b492f901c879fd2d4f9e889 | [
"MIT"
] | 11 | 2019-04-23T23:50:53.000Z | 2019-05-04T15:23:16.000Z | flaskr/models/__init__.py | jeovazero/zoas-store-backend | c2ef77a2b7abdfae7b492f901c879fd2d4f9e889 | [
"MIT"
] | 1 | 2019-10-23T07:15:07.000Z | 2019-10-23T07:15:07.000Z | from .product import ProductModel
from .photo import PhotoModel
from .cart import CartModel
from .product_cart import ProductCartModel
__all__ = ["ProductModel", "PhotoModel", "CartModel", "ProductCartModel"]
| 30 | 73 | 0.804762 | 22 | 210 | 7.454545 | 0.454545 | 0.134146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109524 | 210 | 6 | 74 | 35 | 0.877005 | 0 | 0 | 0 | 0 | 0 | 0.22381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3a25af7be837463c2312eede491dc60f14c4d430 | 77 | py | Python | csv_to_html.py | Apex8/Web-Design-Challenge | 92cf4be1c590d67539d6370a9d33329d780feb1f | [
"ADSL"
] | 1 | 2020-11-03T19:42:52.000Z | 2020-11-03T19:42:52.000Z | csv_to_html.py | Apex8/Web-Design-Challenge | 92cf4be1c590d67539d6370a9d33329d780feb1f | [
"ADSL"
] | null | null | null | csv_to_html.py | Apex8/Web-Design-Challenge | 92cf4be1c590d67539d6370a9d33329d780feb1f | [
"ADSL"
] | null | null | null | import pandas as pd
pd.read_csv('Resources/cities.csv').to_html('table.html') | 38.5 | 57 | 0.779221 | 14 | 77 | 4.142857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 77 | 2 | 57 | 38.5 | 0.794521 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
28e519a98aef0934b9d375cfadf4d8bfc70673ba | 402 | py | Python | permission_rules/app_settings.py | speechki-book/drf-permission-rules | 97d989a842bcf10eeb6682680e8c14c5dbdc28b2 | [
"MIT"
] | 1 | 2020-07-10T18:49:45.000Z | 2020-07-10T18:49:45.000Z | permission_rules/app_settings.py | speechki-book/drf-permission-rules | 97d989a842bcf10eeb6682680e8c14c5dbdc28b2 | [
"MIT"
] | null | null | null | permission_rules/app_settings.py | speechki-book/drf-permission-rules | 97d989a842bcf10eeb6682680e8c14c5dbdc28b2 | [
"MIT"
] | 1 | 2021-05-20T10:25:52.000Z | 2021-05-20T10:25:52.000Z | from django.conf import settings
if hasattr(settings, "PERMISSION_RULES_SETTINGS"):
PERMISSION_RULES_SETTINGS = settings.PERMISSION_RULES_SETTINGS
else:
PERMISSION_RULES_SETTINGS = {
"use_redis": False,
"prefix": "permission_rule_",
"redis": {
"host": "localhost",
... | 25.125 | 66 | 0.572139 | 36 | 402 | 6.083333 | 0.611111 | 0.273973 | 0.420091 | 0.424658 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017921 | 0.30597 | 402 | 15 | 67 | 26.8 | 0.767025 | 0 | 0 | 0 | 0 | 0 | 0.228856 | 0.062189 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
e901ec8fdf7327baa2ad9b4ded67d88a64c94d90 | 127 | py | Python | env_old/lib/python3.5/site-packages/netmiko/dell/__init__.py | gerards/pynet_learning_python | eaa52cd58cd2f49e0d5e8ccec3795a1098b08f20 | [
"Apache-2.0"
] | null | null | null | env_old/lib/python3.5/site-packages/netmiko/dell/__init__.py | gerards/pynet_learning_python | eaa52cd58cd2f49e0d5e8ccec3795a1098b08f20 | [
"Apache-2.0"
] | null | null | null | env_old/lib/python3.5/site-packages/netmiko/dell/__init__.py | gerards/pynet_learning_python | eaa52cd58cd2f49e0d5e8ccec3795a1098b08f20 | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from netmiko.dell.dell_force10_ssh import DellForce10SSH
__all__ = ['DellForce10SSH']
| 25.4 | 56 | 0.850394 | 15 | 127 | 6.466667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052174 | 0.094488 | 127 | 4 | 57 | 31.75 | 0.791304 | 0 | 0 | 0 | 0 | 0 | 0.110236 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e9036e118969aad6d3f8dea398373ef559bd5ada | 97 | py | Python | LoginManage/apps.py | fox-ahri/ahri-auth | 1f7159c48138d150c36092a1ac00c6824b0dd390 | [
"MIT"
] | null | null | null | LoginManage/apps.py | fox-ahri/ahri-auth | 1f7159c48138d150c36092a1ac00c6824b0dd390 | [
"MIT"
] | 5 | 2021-03-19T01:20:00.000Z | 2021-06-10T18:48:25.000Z | LoginManage/apps.py | fox-ahri/ahri-auth | 1f7159c48138d150c36092a1ac00c6824b0dd390 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class LoginmanageConfig(AppConfig):
name = 'LoginManage'
| 16.166667 | 35 | 0.773196 | 10 | 97 | 7.5 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154639 | 97 | 5 | 36 | 19.4 | 0.914634 | 0 | 0 | 0 | 0 | 0 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e91314613519e21a801bea150ef67ad7d14bd0c7 | 109 | py | Python | python/testData/resolve/multiFile/importOsPath2/yos.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2018-12-29T09:53:39.000Z | 2018-12-29T09:53:42.000Z | python/testData/resolve/multiFile/importOsPath2/yos.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/resolve/multiFile/importOsPath2/yos.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | import sys
if True:
import ypath as path
else:
import zpath as path
sys.modules['yos.path'] = path
| 12.111111 | 30 | 0.678899 | 18 | 109 | 4.111111 | 0.611111 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238532 | 109 | 8 | 31 | 13.625 | 0.891566 | 0 | 0 | 0 | 0 | 0 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3a61e7e1d6367bf957950e0b70987c97f9a6e583 | 344 | py | Python | Cloud/reset.py | JustinXWT/IE-ACHE | 99bc9b94dd25a0442843e6f409e6bebd6885d1e4 | [
"MIT"
] | null | null | null | Cloud/reset.py | JustinXWT/IE-ACHE | 99bc9b94dd25a0442843e6f409e6bebd6885d1e4 | [
"MIT"
] | null | null | null | Cloud/reset.py | JustinXWT/IE-ACHE | 99bc9b94dd25a0442843e6f409e6bebd6885d1e4 | [
"MIT"
] | null | null | null | import os
try:
os.remove("answer.data")
os.remove("client.hacklab")
os.remove("opcode.hacklab")
os.remove("cloud.data")
os.remove("cloud.key")
os.remove("cloud.key.hacklab")
os.remove("postfix")
os.remove("postfix.hacklab")
os.remove("keyexchange.log")
os.remove("averagestandard... | 21.5 | 36 | 0.645349 | 45 | 344 | 4.933333 | 0.4 | 0.36036 | 0.27027 | 0.144144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174419 | 344 | 15 | 37 | 22.933333 | 0.78169 | 0 | 0 | 0 | 0 | 0 | 0.380814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.071429 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
3ab537c65110ea4b8adb7e3a6e01f463b78624c3 | 7,887 | py | Python | tests/test_reflected_tables.py | edupo/sqlathanor | a5cfd349d092b25a3ffb3950b996b13878e1db17 | [
"MIT"
] | 101 | 2018-07-21T00:20:59.000Z | 2022-02-09T21:33:09.000Z | tests/test_reflected_tables.py | edupo/sqlathanor | a5cfd349d092b25a3ffb3950b996b13878e1db17 | [
"MIT"
] | 85 | 2018-06-16T02:15:08.000Z | 2022-02-24T14:57:24.000Z | tests/test_reflected_tables.py | edupo/sqlathanor | a5cfd349d092b25a3ffb3950b996b13878e1db17 | [
"MIT"
] | 6 | 2018-07-25T09:51:02.000Z | 2022-02-24T14:04:27.000Z | # -*- coding: utf-8 -*-
"""
******************************************
tests.test_reflected_tables
******************************************
Tests for declarative :class:`BaseModel` and the ability to retireve serialization
configuration data when using
:doc:`reflected tables <sqlalchemy:using-reflection-with-declar... | 27.385417 | 100 | 0.484595 | 817 | 7,887 | 4.350061 | 0.106487 | 0.0861 | 0.050647 | 0.059088 | 0.754643 | 0.731007 | 0.707935 | 0.697805 | 0.685706 | 0.674733 | 0 | 0.010474 | 0.382655 | 7,887 | 287 | 101 | 27.480836 | 0.71945 | 0.040953 | 0 | 0.839844 | 0 | 0 | 0.181337 | 0 | 0 | 0 | 0 | 0 | 0.019531 | 1 | 0.015625 | false | 0.007813 | 0.015625 | 0 | 0.03125 | 0.019531 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3ad3edf517a145fe552399791af71387eb371841 | 379 | py | Python | mnn_core/nn/criterion_modules/__init__.py | Acturos/moment_neural_network | c5074b14970f16a007ba5091b07127c4645cd50e | [
"MIT"
] | 1 | 2021-03-02T07:39:53.000Z | 2021-03-02T07:39:53.000Z | mnn_core/nn/criterion_modules/__init__.py | Acturos/moment_neural_network | c5074b14970f16a007ba5091b07127c4645cd50e | [
"MIT"
] | null | null | null | mnn_core/nn/criterion_modules/__init__.py | Acturos/moment_neural_network | c5074b14970f16a007ba5091b07127c4645cd50e | [
"MIT"
] | 2 | 2021-03-02T07:40:01.000Z | 2021-03-02T09:14:51.000Z | from .likelihood_mse import LikelihoodMSE
from .cov_kl_div_loss import CovKLDivLoss
from .label_smoothing import LabelSmoothing
from .geometry_probability import geometry_prob_vec, GeometryCrossEntropy, shift_vec, GeometryMSE
from .wassertein_loss import WasserteinDistLoss, WasserteinDistPredict
from .density_based_cro... | 42.111111 | 97 | 0.889182 | 41 | 379 | 7.926829 | 0.682927 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081794 | 379 | 8 | 98 | 47.375 | 0.933908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
3ada9f887af29e436d9267a81315e68a0e5ec19a | 52 | py | Python | voiceplay/player/tasks/__init__.py | tb0hdan/voiceplay | 3e35a25cfcf982a3871cf0d819bae4374ee31ecf | [
"Unlicense"
] | 2 | 2017-03-22T10:02:07.000Z | 2020-08-02T11:56:47.000Z | voiceplay/player/tasks/__init__.py | tb0hdan/voiceplay | 3e35a25cfcf982a3871cf0d819bae4374ee31ecf | [
"Unlicense"
] | 69 | 2016-12-10T22:27:47.000Z | 2017-12-14T05:15:43.000Z | voiceplay/player/tasks/__init__.py | tb0hdan/voiceplay | 3e35a25cfcf982a3871cf0d819bae4374ee31ecf | [
"Unlicense"
] | null | null | null | #-*- coding: utf-8 -*-
""" Player tasks package """
| 17.333333 | 28 | 0.538462 | 6 | 52 | 4.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0.173077 | 52 | 2 | 29 | 26 | 0.627907 | 0.826923 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3adc8e5c34adf243976af806ba1f552c837bbd43 | 184 | py | Python | packages/pyright-internal/src/tests/samples/inconsistentSpaceTab2.py | martindemello/pyright | 4fe3f1f7c08f139715701fdf746183062b5165ff | [
"MIT"
] | 4,391 | 2019-05-07T01:18:57.000Z | 2022-03-31T20:45:44.000Z | packages/pyright-internal/src/tests/samples/inconsistentSpaceTab2.py | martindemello/pyright | 4fe3f1f7c08f139715701fdf746183062b5165ff | [
"MIT"
] | 2,740 | 2019-05-07T03:29:30.000Z | 2022-03-31T12:57:46.000Z | packages/pyright-internal/src/tests/samples/inconsistentSpaceTab2.py | martindemello/pyright | 4fe3f1f7c08f139715701fdf746183062b5165ff | [
"MIT"
] | 455 | 2019-05-07T12:55:14.000Z | 2022-03-31T17:09:15.000Z | # This sample tests the reporting of inconsistent space/tab usage
# for dedent tokens.
if True:
if True:
print("False")
print("True") # Should generate an error here.
| 16.727273 | 65 | 0.679348 | 26 | 184 | 4.807692 | 0.846154 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233696 | 184 | 10 | 66 | 18.4 | 0.886525 | 0.61413 | 0 | 0.5 | 1 | 0 | 0.134328 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
3af38cc3b84afbee4e71fd19072f045c8145e66e | 9,681 | py | Python | Day 03 - Beginner - Control Flow and Logical Operators/06_PROJECT_treasure_island.py | not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022 | 2c21c190ab756176bd7b577b3f8a0370b75c3828 | [
"MIT"
] | null | null | null | Day 03 - Beginner - Control Flow and Logical Operators/06_PROJECT_treasure_island.py | not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022 | 2c21c190ab756176bd7b577b3f8a0370b75c3828 | [
"MIT"
] | null | null | null | Day 03 - Beginner - Control Flow and Logical Operators/06_PROJECT_treasure_island.py | not-lucky/100_Days_of_Code_-_The_Complete_Python_Pro_Bootcamp_for_2022 | 2c21c190ab756176bd7b577b3f8a0370b75c3828 | [
"MIT"
] | null | null | null | print('''@#############################################################MMMMMMMMMMMMMMMMMMBBBBMMMMBB&AMBAHM###MMMMMMM#
@hG&&AA&&A&G&&&&GG&AA&&&&&AAAAAA&&&G&&&GGhh&AAAG93XX39h93X225iiiS5SSSSSSSiSiSSisssssiisssi:.;s;iXX25Sii25SSA
@hAAHAAHAHAAAAAAAAAAAAAAAAAAAAAAAHHHAAAG&&3Ssi5G&GG&&GG9333X2552222222255525rrSSS55SSSiSS5X;:... | 98.785714 | 117 | 0.520297 | 1,119 | 9,681 | 4.50134 | 0.54513 | 0.003176 | 0.001191 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134495 | 0.140585 | 9,681 | 97 | 118 | 99.804124 | 0.470913 | 0 | 0 | 0 | 0 | 0.755319 | 0.974176 | 0.654271 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.053191 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
aaec161ee5100f375e91e1439bc4356d91007889 | 51 | py | Python | types/__init__.py | StepaTa/vkbottle | 3b04a5343380cbabe782151e7cb1c1645a9fa9ce | [
"MIT"
] | null | null | null | types/__init__.py | StepaTa/vkbottle | 3b04a5343380cbabe782151e7cb1c1645a9fa9ce | [
"MIT"
] | null | null | null | types/__init__.py | StepaTa/vkbottle | 3b04a5343380cbabe782151e7cb1c1645a9fa9ce | [
"MIT"
] | null | null | null | from vkbottle.types.events.events_objects import *
| 25.5 | 50 | 0.843137 | 7 | 51 | 6 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078431 | 51 | 1 | 51 | 51 | 0.893617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c91075949ddfabd86561cd3279603f37db742411 | 631 | py | Python | day03/index.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | 1 | 2020-06-04T08:44:09.000Z | 2020-06-04T08:44:09.000Z | day03/index.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | null | null | null | day03/index.py | zhangyage/Python-oldboy | a95c1b465929e2be641e425fcb5e15b366800831 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
在python文件中,如果我们要使用某个文件夹中的模块(py文件),这个文件必须是个包,及文件夹下面要有一个__init__的文件
'''
from day03 import demo #导入模块
demo.FOO()
print 'index' ,__name__ #判断对应的文件是不是主文件
'''
def FOO():
print "看到我了吧"
print 'demo' ,__name__
当代码如上的情况时候,输出结果为:
看到我了吧
demo day03.demo ... | 21.033333 | 99 | 0.678288 | 70 | 631 | 5.542857 | 0.628571 | 0.103093 | 0.149485 | 0.201031 | 0.237113 | 0.237113 | 0 | 0 | 0 | 0 | 0 | 0.013944 | 0.204437 | 631 | 29 | 100 | 21.758621 | 0.758964 | 0.315372 | 0 | 0 | 0 | 0 | 0.068063 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.142857 | 0.142857 | null | null | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 4 |
c93cc53cc7be79b43e47e38ea8af872d051ae909 | 1,855 | py | Python | src/python/T0/WMBS/Oracle/RunLumiCloseout/CheckActiveSplitLumis.py | silviodonato/T0 | a093729d08b31175ed35cd20e889bd7094ce152a | [
"Apache-2.0"
] | 6 | 2016-03-09T14:36:19.000Z | 2021-07-27T01:28:00.000Z | src/python/T0/WMBS/Oracle/RunLumiCloseout/CheckActiveSplitLumis.py | silviodonato/T0 | a093729d08b31175ed35cd20e889bd7094ce152a | [
"Apache-2.0"
] | 193 | 2015-01-07T21:03:43.000Z | 2022-03-31T12:22:18.000Z | src/python/T0/WMBS/Oracle/RunLumiCloseout/CheckActiveSplitLumis.py | silviodonato/T0 | a093729d08b31175ed35cd20e889bd7094ce152a | [
"Apache-2.0"
] | 36 | 2015-01-28T19:01:54.000Z | 2021-12-15T17:18:20.000Z | """
_CheckActiveSplitLumis_
Oracle implementation of CheckActiveSplitLumis
Check active split lumis for completetion and delete if complete.
An active split lumi is complete if the number of complete
file records is equal to the total numbers of streamer files
in that lumi.
"""
import time
from WMCore.Database.DBF... | 39.468085 | 98 | 0.628571 | 202 | 1,855 | 5.39604 | 0.336634 | 0.151376 | 0.220183 | 0.302752 | 0.423853 | 0.295413 | 0.244954 | 0.244954 | 0.244954 | 0.244954 | 0 | 0 | 0.329919 | 1,855 | 46 | 99 | 40.326087 | 0.876911 | 0.14717 | 0 | 0.178571 | 0 | 0 | 0.795931 | 0.441195 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c955a0e7146a2734a9da84a958ac041c3a693d74 | 159 | py | Python | alicefluentcheck/chain.py | KrapivinAndrey/YaAlice_FluentTesting | 41317766fac51f7d1fcd947b02e1e75a6c3c4158 | [
"MIT"
] | null | null | null | alicefluentcheck/chain.py | KrapivinAndrey/YaAlice_FluentTesting | 41317766fac51f7d1fcd947b02e1e75a6c3c4158 | [
"MIT"
] | 1 | 2022-02-19T16:47:47.000Z | 2022-02-19T16:47:47.000Z | alicefluentcheck/chain.py | KrapivinAndrey/YaAlice_FluentTesting | 41317766fac51f7d1fcd947b02e1e75a6c3c4158 | [
"MIT"
] | null | null | null | from functools import wraps
def chained(fn):
@wraps(fn)
def new(*args, **kwargs):
fn(*args, **kwargs)
return args[0]
return new
| 14.454545 | 29 | 0.572327 | 21 | 159 | 4.333333 | 0.571429 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.295597 | 159 | 10 | 30 | 15.9 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c9610727493c3a447e20463b0ec69064eed64ed8 | 39 | py | Python | Lista4_01.py | NormanDeveloper/Lista4_Python | 0b875026cac146145d52a1acdd3f3a05af2d9ccb | [
"MIT"
] | 1 | 2018-09-15T17:50:54.000Z | 2018-09-15T17:50:54.000Z | Lista4_01.py | NormanDeveloper/Lista4_Python | 0b875026cac146145d52a1acdd3f3a05af2d9ccb | [
"MIT"
] | null | null | null | Lista4_01.py | NormanDeveloper/Lista4_Python | 0b875026cac146145d52a1acdd3f3a05af2d9ccb | [
"MIT"
] | null | null | null | lista = [1, 2, 3, 4, 5]
print(lista)
| 13 | 24 | 0.512821 | 8 | 39 | 2.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 0.25641 | 39 | 2 | 25 | 19.5 | 0.517241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
c963707c4cb0ec5949cf11f3b84cb2f8f29a0528 | 91 | py | Python | StudyLog/apps.py | FrodoFK/ListShare | b5816688ad208afa9747303c3731bd91281b5e0a | [
"MIT"
] | null | null | null | StudyLog/apps.py | FrodoFK/ListShare | b5816688ad208afa9747303c3731bd91281b5e0a | [
"MIT"
] | null | null | null | StudyLog/apps.py | FrodoFK/ListShare | b5816688ad208afa9747303c3731bd91281b5e0a | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class StudyLogConfig(AppConfig):
name = 'StudyLog'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a30f501f2a9525f67df40570bf4add7262a2e0ed | 144 | py | Python | setup.py | LaudateCorpus1/ppo-ewma | 625dac7aceb9fb8bfdc3eff9dba597ec8f685ac7 | [
"MIT"
] | 11 | 2021-10-06T01:04:24.000Z | 2022-02-21T11:54:19.000Z | setup.py | LaudateCorpus1/ppo-ewma | 625dac7aceb9fb8bfdc3eff9dba597ec8f685ac7 | [
"MIT"
] | null | null | null | setup.py | LaudateCorpus1/ppo-ewma | 625dac7aceb9fb8bfdc3eff9dba597ec8f685ac7 | [
"MIT"
] | 2 | 2021-12-24T04:43:11.000Z | 2022-02-02T08:11:05.000Z | from setuptools import setup, find_packages
import numpy as np
setup(
name='ppo-ewma',
packages=find_packages(),
version='0.0.1',
) | 18 | 43 | 0.694444 | 21 | 144 | 4.666667 | 0.714286 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025424 | 0.180556 | 144 | 8 | 44 | 18 | 0.805085 | 0 | 0 | 0 | 0 | 0 | 0.089655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a338a035b1d7784f847a9db5cb326fe19932730d | 329 | py | Python | Filas_Columnas.py | allgonzalez/LFP_Proyecto1 | 162ec34cc0d9be45c55092623906e03af8af3495 | [
"MIT"
] | null | null | null | Filas_Columnas.py | allgonzalez/LFP_Proyecto1 | 162ec34cc0d9be45c55092623906e03af8af3495 | [
"MIT"
] | null | null | null | Filas_Columnas.py | allgonzalez/LFP_Proyecto1 | 162ec34cc0d9be45c55092623906e03af8af3495 | [
"MIT"
] | null | null | null | class FilasColumnas:
def __init__(self, nombre, filas, columnas):
self.nombre = nombre
self.filas = filas
self.columnas = columnas
def getNombre(self):
return self.nombre
def getFilas(self):
return self.filas
def getColumnas(self):
return s... | 21.933333 | 48 | 0.598784 | 35 | 329 | 5.514286 | 0.342857 | 0.15544 | 0.217617 | 0.196891 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.325228 | 329 | 15 | 49 | 21.933333 | 0.869369 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.272727 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
a33acbc60186f7938030537dd70d74eb03a07c27 | 182 | py | Python | test_bd.py | iurii-anfinogenov/test_for_roox | 055a5cd5579055f1f40a6ca6fc2dba3809269d18 | [
"MIT"
] | null | null | null | test_bd.py | iurii-anfinogenov/test_for_roox | 055a5cd5579055f1f40a6ca6fc2dba3809269d18 | [
"MIT"
] | null | null | null | test_bd.py | iurii-anfinogenov/test_for_roox | 055a5cd5579055f1f40a6ca6fc2dba3809269d18 | [
"MIT"
] | null | null | null | import pytest
from bd import create_db
def test_create_db_check_file_sql():
with pytest.raises(FileNotFoundError):
file = open("sqlite1_create_tables.sql", "r")
| 26 | 57 | 0.71978 | 25 | 182 | 4.92 | 0.72 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006803 | 0.192308 | 182 | 6 | 58 | 30.333333 | 0.829932 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.137363 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a38e4357a441456a80f1586bd63bdac04526923d | 278 | py | Python | src/profiles/admin.py | tingcar/PSEP | 0a63ba14f034ee0b130a5b33aa349722ea821bfc | [
"Apache-2.0"
] | null | null | null | src/profiles/admin.py | tingcar/PSEP | 0a63ba14f034ee0b130a5b33aa349722ea821bfc | [
"Apache-2.0"
] | null | null | null | src/profiles/admin.py | tingcar/PSEP | 0a63ba14f034ee0b130a5b33aa349722ea821bfc | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
# Register your models here.
from .models import Profile
# Register your models here.
# Register your models here.
class ProfileAdmin(admin.ModelAdmin):
class Meta:
model = Profile
admin.site.register(Profile, ProfileAdmin) | 25.272727 | 42 | 0.741007 | 34 | 278 | 6.058824 | 0.470588 | 0.174757 | 0.262136 | 0.320388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190647 | 278 | 11 | 42 | 25.272727 | 0.915556 | 0.28777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a3a0a334f6a58ed3d0b0415cb30f4f7ebf053c35 | 151 | py | Python | pytest_board/__main__.py | kuss/pytest-convey | 46ec70721e7403d43465f11795da09053e5a963e | [
"MIT"
] | 7 | 2019-08-16T06:30:12.000Z | 2021-02-09T22:45:27.000Z | pytest_board/__main__.py | kuss/pytest-board | 46ec70721e7403d43465f11795da09053e5a963e | [
"MIT"
] | 1 | 2021-10-15T11:08:15.000Z | 2021-10-15T11:08:15.000Z | pytest_board/__main__.py | kuss/pytest-convey | 46ec70721e7403d43465f11795da09053e5a963e | [
"MIT"
] | null | null | null | import os
import sys
if __name__ == '__main__':
sys.path.append(os.path.dirname(__file__))
from pytest_board.command import main
main()
| 15.1 | 46 | 0.701987 | 21 | 151 | 4.428571 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192053 | 151 | 9 | 47 | 16.777778 | 0.762295 | 0 | 0 | 0 | 0 | 0 | 0.05298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a3a379608cf81ffb35d0f0617ef261650dd1f72d | 78 | py | Python | oAuthApp/__init__.py | GeirOwe/pyIntermediate | 5bc4520ec3f2cc085b95b20b11eac1803b273e5e | [
"MIT"
] | null | null | null | oAuthApp/__init__.py | GeirOwe/pyIntermediate | 5bc4520ec3f2cc085b95b20b11eac1803b273e5e | [
"MIT"
] | null | null | null | oAuthApp/__init__.py | GeirOwe/pyIntermediate | 5bc4520ec3f2cc085b95b20b11eac1803b273e5e | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
from oAuthApp import oauthMain | 15.6 | 30 | 0.807692 | 11 | 78 | 5.363636 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 78 | 5 | 30 | 15.6 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6e553e35d7d57b03c252a44f1fcbd2e6d39108c2 | 207 | py | Python | {{cookiecutter.project_slug}}/tests/test_{{cookiecutter.project_core_dir}}.py | jonatasleon/cookiecutter-qmd-flask | 77a0a431bd87a61a78f845c347d05131e41e5631 | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/tests/test_{{cookiecutter.project_core_dir}}.py | jonatasleon/cookiecutter-qmd-flask | 77a0a431bd87a61a78f845c347d05131e41e5631 | [
"MIT"
] | null | null | null | {{cookiecutter.project_slug}}/tests/test_{{cookiecutter.project_core_dir}}.py | jonatasleon/cookiecutter-qmd-flask | 77a0a431bd87a61a78f845c347d05131e41e5631 | [
"MIT"
] | null | null | null | from flask import url_for
def test_index(client):
assert client.get(url_for('site.index')).status_code == 200
def test_admin(client):
assert client.get(url_for('admin.index')).status_code == 200
| 20.7 | 64 | 0.729469 | 33 | 207 | 4.363636 | 0.484848 | 0.125 | 0.25 | 0.291667 | 0.375 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0.03352 | 0.135266 | 207 | 9 | 65 | 23 | 0.77095 | 0 | 0 | 0 | 0 | 0 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.4 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6e6cbbe60ccf1e6469dd4466e18b31a12fd32e55 | 9,942 | py | Python | bin/simulate_users.py | njunge94/timeseries-thesis | 82b2cdc273e4dabcca0f3d8ae33c281691c3c7ed | [
"MIT"
] | 1 | 2021-12-29T04:26:28.000Z | 2021-12-29T04:26:28.000Z | bin/simulate_users.py | njunge94/timeseries-thesis | 82b2cdc273e4dabcca0f3d8ae33c281691c3c7ed | [
"MIT"
] | null | null | null | bin/simulate_users.py | njunge94/timeseries-thesis | 82b2cdc273e4dabcca0f3d8ae33c281691c3c7ed | [
"MIT"
] | 1 | 2021-12-29T04:27:17.000Z | 2021-12-29T04:27:17.000Z | import pandas as pd
import os
import yaml
import argparse
import matplotlib.pyplot as plt
from regularity_analysis.user_simulations import *
from regularity_analysis.feature_extraction import *
stat_funcs = {"apen": approximate_entropy, "sampen": sample_entropy, "intrepen": integer_representation_entropy, "perme... | 42.487179 | 301 | 0.651177 | 1,435 | 9,942 | 4.300348 | 0.113589 | 0.042781 | 0.049911 | 0.067736 | 0.873116 | 0.859018 | 0.829363 | 0.796629 | 0.58937 | 0.58937 | 0 | 0.03465 | 0.21042 | 9,942 | 233 | 302 | 42.669528 | 0.751465 | 0.002112 | 0 | 0.485876 | 0 | 0 | 0.144355 | 0.015323 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011299 | false | 0 | 0.039548 | 0 | 0.050847 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6e9f158643bba99ae2ecda8f29bc90d50387e3ad | 686 | py | Python | substring_match.py | carlb15/Python | fa58835d532126c4cfb0baf4cb8d9d8a0e2703d2 | [
"MIT"
] | 2 | 2017-05-04T05:44:24.000Z | 2019-09-29T23:32:28.000Z | substring_match.py | carlb15/Python | fa58835d532126c4cfb0baf4cb8d9d8a0e2703d2 | [
"MIT"
] | null | null | null | substring_match.py | carlb15/Python | fa58835d532126c4cfb0baf4cb8d9d8a0e2703d2 | [
"MIT"
] | null | null | null | def substring_match(T, S):
"""
Simple substring matching.
O(|S| * |T - S|) Time
O(1) Space
"""
return any([T[idx:idx+len(S)] == S for idx in range(len(T) - len(S) + 1)])
"""
for idx in range(len(T) - len(S) + 1):
print(T[idx:idx + len(S)], S)
if T[idx:idx + len(S)] == S:
return True
retur... | 28.583333 | 76 | 0.606414 | 103 | 686 | 3.902913 | 0.291262 | 0.208955 | 0.236318 | 0.298507 | 0.689055 | 0.689055 | 0.599502 | 0.109453 | 0.109453 | 0 | 0 | 0.005405 | 0.190962 | 686 | 23 | 77 | 29.826087 | 0.718919 | 0.087464 | 0 | 0 | 0 | 0 | 0.316703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.25 | 0.625 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
6ec8152c182a1551be1519016ff5a42a50d04163 | 102 | py | Python | backend/schemas/pilot_type.py | jflad17/pilot_logbook | f75c9866d073c33d001ae2d0eb0994496eb49045 | [
"MIT"
] | 1 | 2022-03-25T23:41:37.000Z | 2022-03-25T23:41:37.000Z | backend/schemas/pilot_type.py | jflad17/pilot_logbook | f75c9866d073c33d001ae2d0eb0994496eb49045 | [
"MIT"
] | null | null | null | backend/schemas/pilot_type.py | jflad17/pilot_logbook | f75c9866d073c33d001ae2d0eb0994496eb49045 | [
"MIT"
] | null | null | null | from .base import Base
class PilotType(Base):
idPilotType: int
shortName: str
name: str
| 12.75 | 22 | 0.676471 | 13 | 102 | 5.307692 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.254902 | 102 | 7 | 23 | 14.571429 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
6ed049c0b6137133b7c6be5e822cac87a01eaecb | 7,624 | py | Python | tests/serializer/test_message_serializer.py | oscarjohansson94/python-schema-registry-client | 7ed99003a200d167e8a8bd66f34af8d51ad1de1d | [
"MIT"
] | null | null | null | tests/serializer/test_message_serializer.py | oscarjohansson94/python-schema-registry-client | 7ed99003a200d167e8a8bd66f34af8d51ad1de1d | [
"MIT"
] | null | null | null | tests/serializer/test_message_serializer.py | oscarjohansson94/python-schema-registry-client | 7ed99003a200d167e8a8bd66f34af8d51ad1de1d | [
"MIT"
] | null | null | null | import struct
import jsonschema
import pytest
from schema_registry.client import schema
from tests import data_gen
def assertAvroMessageIsSame(message, expected, schema_id, avro_message_serializer):
assert message
assert len(message) > 5
magic, sid = struct.unpack(">bI", message[0:5])
assert magic ... | 36.830918 | 112 | 0.745934 | 946 | 7,624 | 5.669133 | 0.102537 | 0.126795 | 0.090062 | 0.057431 | 0.810181 | 0.7686 | 0.703151 | 0.674063 | 0.655044 | 0.600597 | 0 | 0.008263 | 0.158709 | 7,624 | 206 | 113 | 37.009709 | 0.827877 | 0.139559 | 0 | 0.491525 | 0 | 0 | 0.077112 | 0.040012 | 0 | 0 | 0 | 0 | 0.288136 | 1 | 0.110169 | false | 0 | 0.042373 | 0 | 0.152542 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6edcda5d69c9c695ec35f9921e755e59297c2d45 | 207 | py | Python | main/admin.py | zhongzhiqiang/super_service_api | ac988daa58b040e1a451818155357d15895015a3 | [
"BSD-2-Clause"
] | 1 | 2018-06-27T08:16:34.000Z | 2018-06-27T08:16:34.000Z | main/admin.py | zhongzhiqiang/super_service_api | ac988daa58b040e1a451818155357d15895015a3 | [
"BSD-2-Clause"
] | null | null | null | main/admin.py | zhongzhiqiang/super_service_api | ac988daa58b040e1a451818155357d15895015a3 | [
"BSD-2-Clause"
] | 3 | 2018-06-12T06:30:29.000Z | 2018-06-12T13:57:02.000Z | # coding:utf-8
from django.contrib import admin
from main.models import CustomerProfile, Maintainer, Order
admin.site.register(CustomerProfile)
admin.site.register(Maintainer)
admin.site.register(Order)
| 18.818182 | 58 | 0.816425 | 27 | 207 | 6.259259 | 0.555556 | 0.159763 | 0.301775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005319 | 0.091787 | 207 | 10 | 59 | 20.7 | 0.893617 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
42c4dcda6f026c1b93909bf16c94e869c1cb01f5 | 11,888 | py | Python | cardboard/cards/sets/commander.py | Julian/cardboard | 6ab676d04b38bf9b0d0c4a849364159947b8ea7f | [
"MIT"
] | 5 | 2015-03-23T10:25:40.000Z | 2021-05-29T06:00:40.000Z | cardboard/cards/sets/commander.py | Julian/cardboard | 6ab676d04b38bf9b0d0c4a849364159947b8ea7f | [
"MIT"
] | null | null | null | cardboard/cards/sets/commander.py | Julian/cardboard | 6ab676d04b38bf9b0d0c4a849364159947b8ea7f | [
"MIT"
] | 1 | 2019-02-17T14:45:29.000Z | 2019-02-17T14:45:29.000Z | from cardboard import types
from cardboard.ability import (
AbilityNotImplemented, spell, activated, triggered, static
)
from cardboard.cards import card, common, keywords, match
@card("Tariel, Reckoner of Souls")
def tariel_reckoner_of_souls(card, abilities):
def tariel_reckoner_of_souls():
return A... | 20.567474 | 100 | 0.734017 | 1,318 | 11,888 | 6.311836 | 0.098634 | 0.288857 | 0.098089 | 0.015386 | 0.474696 | 0.341267 | 0.254478 | 0.219377 | 0.184397 | 0.176223 | 0 | 0 | 0.195407 | 11,888 | 578 | 101 | 20.567474 | 0.869733 | 0 | 0 | 0.458333 | 0 | 0 | 0.070485 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0.008929 | 0.264881 | 0.842262 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
42c6fa0a495221722376ad9fc9d059a693ebcd43 | 61 | py | Python | play.py | naegelejd/pyasteroid | 8c4a5d200457e6ea8d050d0a755f3ed582f2edef | [
"MIT"
] | null | null | null | play.py | naegelejd/pyasteroid | 8c4a5d200457e6ea8d050d0a755f3ed582f2edef | [
"MIT"
] | null | null | null | play.py | naegelejd/pyasteroid | 8c4a5d200457e6ea8d050d0a755f3ed582f2edef | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import asteroids
asteroids.main.main()
| 15.25 | 21 | 0.770492 | 9 | 61 | 5.222222 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 61 | 3 | 22 | 20.333333 | 0.839286 | 0.327869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
42dc974d3366036b82775f0f8fd8a4482442e07a | 62 | py | Python | hello.py | namachan10777/practice | 0a8fb99ad22b097c4d0812eb809fee3341de8140 | [
"MIT"
] | null | null | null | hello.py | namachan10777/practice | 0a8fb99ad22b097c4d0812eb809fee3341de8140 | [
"MIT"
] | null | null | null | hello.py | namachan10777/practice | 0a8fb99ad22b097c4d0812eb809fee3341de8140 | [
"MIT"
] | null | null | null | #!/usr/bin/python
print('Hello Git!')
print("Nakano Masaki")
| 12.4 | 22 | 0.677419 | 9 | 62 | 4.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 62 | 4 | 23 | 15.5 | 0.75 | 0.258065 | 0 | 0 | 0 | 0 | 0.511111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
42fca00938d85ac01f53f2a31475769717b0cc3c | 35 | py | Python | dajaxice/__init__.py | APSL/django-dajaxice | 447b4b13c9ed1b360849f95cc21e74c9c9d2f514 | [
"BSD-3-Clause"
] | 1 | 2015-01-25T23:10:39.000Z | 2015-01-25T23:10:39.000Z | dajaxice/__init__.py | APSL/django-dajaxice | 447b4b13c9ed1b360849f95cc21e74c9c9d2f514 | [
"BSD-3-Clause"
] | null | null | null | dajaxice/__init__.py | APSL/django-dajaxice | 447b4b13c9ed1b360849f95cc21e74c9c9d2f514 | [
"BSD-3-Clause"
] | null | null | null | __version__ = (0, 5, 4, 0, 'beta')
| 17.5 | 34 | 0.542857 | 6 | 35 | 2.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.2 | 35 | 1 | 35 | 35 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6e13f498c651621edcb96308e1c97e1c1be8e30a | 56 | py | Python | crownstone_cloud/helpers/__init__.py | crownstone/crownstone-lib-python-cloud | c6a48ab8c6990c5c99d136d9a8cf1df01a7c094d | [
"MIT"
] | 1 | 2020-05-29T23:45:15.000Z | 2020-05-29T23:45:15.000Z | crownstone_cloud/helpers/__init__.py | crownstone/crownstone-lib-python-cloud | c6a48ab8c6990c5c99d136d9a8cf1df01a7c094d | [
"MIT"
] | 3 | 2021-11-09T15:36:48.000Z | 2021-11-12T00:43:23.000Z | crownstone_cloud/helpers/__init__.py | crownstone/crownstone-lib-python-cloud | c6a48ab8c6990c5c99d136d9a8cf1df01a7c094d | [
"MIT"
] | 1 | 2021-11-09T15:33:01.000Z | 2021-11-09T15:33:01.000Z | """Init file for helpers folder in Crownstone cloud."""
| 28 | 55 | 0.732143 | 8 | 56 | 5.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 56 | 1 | 56 | 56 | 0.854167 | 0.875 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6e1b4e7fe8d5c34a3bb03d3486852fef86e285bd | 4,994 | py | Python | tests/test_image_manager.py | szkkteam/flask_mm | ea96899a41a0573e51792f1554550c6d77f22a07 | [
"MIT"
] | 1 | 2021-03-21T18:46:36.000Z | 2021-03-21T18:46:36.000Z | tests/test_image_manager.py | szkkteam/flask_mm | ea96899a41a0573e51792f1554550c6d77f22a07 | [
"MIT"
] | null | null | null | tests/test_image_manager.py | szkkteam/flask_mm | ea96899a41a0573e51792f1554550c6d77f22a07 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Common Python library imports
from __future__ import unicode_literals
import os
import io
from PIL import Image
# Pip package imports
from flask import url_for
import pytest
# Internal package imports
import flask_mm as mm
from flask_mm.postprocess import Watermarker
... | 36.992593 | 131 | 0.640368 | 626 | 4,994 | 4.976038 | 0.153355 | 0.060995 | 0.101124 | 0.091814 | 0.752488 | 0.717175 | 0.717175 | 0.704013 | 0.669021 | 0.661316 | 0 | 0.005288 | 0.204846 | 4,994 | 134 | 132 | 37.268657 | 0.779149 | 0.06668 | 0 | 0.585106 | 0 | 0 | 0.12594 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 1 | 0.095745 | false | 0 | 0.085106 | 0 | 0.223404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6e24b1edc0db012f68587ab507e57932cf0b9995 | 106 | py | Python | textattack/datasets/helpers/__init__.py | xinzhel/TextAttack | 635a76429743d7bd050aa26cc306e01748e1e4c7 | [
"MIT"
] | 1,980 | 2020-04-17T23:43:55.000Z | 2022-03-31T19:22:17.000Z | textattack/datasets/helpers/__init__.py | xinzhel/TextAttack | 635a76429743d7bd050aa26cc306e01748e1e4c7 | [
"MIT"
] | 350 | 2020-04-23T22:34:04.000Z | 2022-03-29T20:57:22.000Z | textattack/datasets/helpers/__init__.py | xinzhel/TextAttack | 635a76429743d7bd050aa26cc306e01748e1e4c7 | [
"MIT"
] | 267 | 2020-04-30T16:55:36.000Z | 2022-03-31T18:59:46.000Z | """
Dataset Helpers
=============================
"""
from .ted_multi import TedMultiTranslationDataset
| 13.25 | 49 | 0.556604 | 7 | 106 | 8.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103774 | 106 | 7 | 50 | 15.142857 | 0.610526 | 0.424528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6e29e84dbb24204a5955fba396b80023d337a359 | 49 | py | Python | Test/test1.py | AndrewZStore/private_proxy_pool | e603a3c432f55547b24b24f281b9a72f9f4d6cae | [
"MIT"
] | null | null | null | Test/test1.py | AndrewZStore/private_proxy_pool | e603a3c432f55547b24b24f281b9a72f9f4d6cae | [
"MIT"
] | null | null | null | Test/test1.py | AndrewZStore/private_proxy_pool | e603a3c432f55547b24b24f281b9a72f9f4d6cae | [
"MIT"
] | null | null | null | list1 = ['hellow' for i in range(4)]
print(list1) | 24.5 | 36 | 0.673469 | 9 | 49 | 3.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.142857 | 49 | 2 | 37 | 24.5 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
28322e68af225c389a6d369df05723ae08027bec | 213 | py | Python | 01_Workshop-master/Chapter03/my_module.py | Anna-MarieTomm/Learn_Python_with_Anna-Marie | e1d7b0f95674a91b1f30acd8923e0fc54f823182 | [
"MIT"
] | null | null | null | 01_Workshop-master/Chapter03/my_module.py | Anna-MarieTomm/Learn_Python_with_Anna-Marie | e1d7b0f95674a91b1f30acd8923e0fc54f823182 | [
"MIT"
] | null | null | null | 01_Workshop-master/Chapter03/my_module.py | Anna-MarieTomm/Learn_Python_with_Anna-Marie | e1d7b0f95674a91b1f30acd8923e0fc54f823182 | [
"MIT"
] | null | null | null | #module: now being extended
"""
Docstring: This script comutes the sum of the factorial of a list of numbers
"""
import math
def compute (numbers):
return([math.factorial(n) for n in numbers])
| 17.75 | 77 | 0.676056 | 31 | 213 | 4.645161 | 0.741935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234742 | 213 | 12 | 78 | 17.75 | 0.883436 | 0.488263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
284477dfcb18fcfa26f5ca86714847e85c91aaac | 408 | py | Python | raster_tester/__init__.py | mapbox/raster-tester | 273d2b7194d52d0cc771d3453800909e4b699850 | [
"MIT"
] | null | null | null | raster_tester/__init__.py | mapbox/raster-tester | 273d2b7194d52d0cc771d3453800909e4b699850 | [
"MIT"
] | 3 | 2018-06-05T16:47:05.000Z | 2018-06-07T22:38:19.000Z | raster_tester/__init__.py | mapbox/raster-tester | 273d2b7194d52d0cc771d3453800909e4b699850 | [
"MIT"
] | 1 | 2021-02-23T10:54:43.000Z | 2021-02-23T10:54:43.000Z | from .compare import compare, array_compare, compare_properties
from .empty import is_empty
from .aligned import tiled, aligned
from .crosses_dateline import crosses_dateline, winding_order, densify, make_bounds_array, transform_bounds
__all__ = [is_empty, compare, array_compare, compare_properties,
tiled, ... | 51 | 107 | 0.823529 | 52 | 408 | 6.057692 | 0.346154 | 0.142857 | 0.120635 | 0.165079 | 0.634921 | 0.406349 | 0.406349 | 0.406349 | 0.406349 | 0.406349 | 0 | 0 | 0.117647 | 408 | 7 | 108 | 58.285714 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
286ef29f9fbdbdaebed2f91a968a4190cfba368a | 59 | py | Python | CodeUp/6020.py | chae-heechan/Algorithm_Study | 183a77e2cfe352cd82fb5e988b493082529a73dd | [
"MIT"
] | null | null | null | CodeUp/6020.py | chae-heechan/Algorithm_Study | 183a77e2cfe352cd82fb5e988b493082529a73dd | [
"MIT"
] | null | null | null | CodeUp/6020.py | chae-heechan/Algorithm_Study | 183a77e2cfe352cd82fb5e988b493082529a73dd | [
"MIT"
] | null | null | null | # 주민번호 입력받아 형태 바꿔 출력하기
a, b = input().split("-")
print(a+b) | 19.666667 | 25 | 0.59322 | 12 | 59 | 2.916667 | 0.833333 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 59 | 3 | 26 | 19.666667 | 0.714286 | 0.338983 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
2875cc245d2c39345f660d30d0416853610152b3 | 67 | py | Python | src/Python/pandasDynamo/run.py | SHKnudsen/Pandamo | ee99abf406d0609e766702aae98309a0936dae6e | [
"MIT"
] | 19 | 2019-11-10T21:17:44.000Z | 2021-01-29T00:02:57.000Z | src/Python/pandasDynamo/run.py | SHKnudsen/Pandamo | ee99abf406d0609e766702aae98309a0936dae6e | [
"MIT"
] | 1 | 2019-11-14T08:21:46.000Z | 2020-02-18T12:59:42.000Z | release packages/DynamoPandas/extra/pandasDynamo/run.py | SHKnudsen/Pandamo | ee99abf406d0609e766702aae98309a0936dae6e | [
"MIT"
] | 3 | 2019-12-24T20:36:04.000Z | 2020-03-16T16:27:17.000Z | from pandamo import app
if( __name__ == "__main__"):
app.run() | 16.75 | 28 | 0.656716 | 9 | 67 | 4 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19403 | 67 | 4 | 29 | 16.75 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
954e8ded72cbe65c88e7503c98c2596b838d1ffe | 171 | py | Python | src/print_func.py | DjamelALI/covid-19-database | 41024fd0858c63616e5b4571bf56904a3467a93f | [
"MIT"
] | null | null | null | src/print_func.py | DjamelALI/covid-19-database | 41024fd0858c63616e5b4571bf56904a3467a93f | [
"MIT"
] | null | null | null | src/print_func.py | DjamelALI/covid-19-database | 41024fd0858c63616e5b4571bf56904a3467a93f | [
"MIT"
] | null | null | null | def print_head(msg: str):
start = "| "
end = " |"
line = "-" * (len(msg) + len(start) + len(end))
print(line)
print(start + msg + end)
print(line)
| 21.375 | 51 | 0.497076 | 22 | 171 | 3.818182 | 0.409091 | 0.190476 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.298246 | 171 | 7 | 52 | 24.428571 | 0.7 | 0 | 0 | 0.285714 | 0 | 0 | 0.02924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.571429 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
9552f80b22b06089d3eafd6e73cbb6eb4fb58bbc | 96 | py | Python | carbon0/carbon_quiz/apps.py | Carbon0-Games/carbon0-web-app | 068a7223b2717d602944ec561adcde39930cba85 | [
"MIT"
] | 2 | 2020-10-30T15:07:28.000Z | 2020-12-22T04:29:50.000Z | carbon0/carbon_quiz/apps.py | Carbon0-Games/carbon0-web-app | 068a7223b2717d602944ec561adcde39930cba85 | [
"MIT"
] | 45 | 2020-09-22T12:47:55.000Z | 2022-03-12T00:48:18.000Z | carbon0/carbon_quiz/apps.py | Carbon0-Games/carbon0-web-app | 068a7223b2717d602944ec561adcde39930cba85 | [
"MIT"
] | 1 | 2020-09-08T15:48:13.000Z | 2020-09-08T15:48:13.000Z | from django.apps import AppConfig
class CarbonQuizConfig(AppConfig):
name = "carbon_quiz"
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
955ea118a5a6b732c99db4af29002d34ec9e3e16 | 205 | py | Python | projects/project02/Notebooks/global_defs.py | xbresson/CE7454_2018 | 32647cae8122ddb50775329f76f7a0c4a26f3276 | [
"MIT"
] | 84 | 2018-08-14T10:10:09.000Z | 2021-11-25T10:07:13.000Z | projects/project02/Notebooks/global_defs.py | erichhhhho/CE7454_2018 | 32647cae8122ddb50775329f76f7a0c4a26f3276 | [
"MIT"
] | 1 | 2018-08-17T03:35:25.000Z | 2018-08-17T03:35:25.000Z | projects/project02/Notebooks/global_defs.py | erichhhhho/CE7454_2018 | 32647cae8122ddb50775329f76f7a0c4a26f3276 | [
"MIT"
] | 44 | 2018-08-15T04:27:26.000Z | 2021-11-25T10:07:22.000Z | import torch
if torch.cuda.is_available():
device= torch.device("cuda")
map_loc = 'cuda'
else:
device= torch.device("cpu")
map_loc = 'cpu'
device = torch.device("cpu")
map_loc = 'cpu' | 13.666667 | 32 | 0.634146 | 29 | 205 | 4.344828 | 0.37931 | 0.261905 | 0.404762 | 0.31746 | 0.460317 | 0.460317 | 0.460317 | 0 | 0 | 0 | 0 | 0 | 0.204878 | 205 | 15 | 33 | 13.666667 | 0.773006 | 0 | 0 | 0.444444 | 0 | 0 | 0.097087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
956517ededc725def855814269a245af2283b918 | 88 | py | Python | main.py | popescuaaa/nmf | c65263198158e1ba6e1b9270b7d7a87a8803fb72 | [
"MIT"
] | null | null | null | main.py | popescuaaa/nmf | c65263198158e1ba6e1b9270b7d7a87a8803fb72 | [
"MIT"
] | null | null | null | main.py | popescuaaa/nmf | c65263198158e1ba6e1b9270b7d7a87a8803fb72 | [
"MIT"
] | null | null | null | from src import NMF
if __name__ == '__main__':
print("Hello World!")
print(NMF) | 17.6 | 26 | 0.647727 | 12 | 88 | 4.083333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215909 | 88 | 5 | 27 | 17.6 | 0.710145 | 0 | 0 | 0 | 0 | 0 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
957ea4b23617286a50ea0937e642d81b7f145497 | 147 | py | Python | contohRekursif.py | muhiqsimui/PyTraining | 41c99adf0d5bd330b3c35242c9f447e8992d9074 | [
"MIT"
] | 6 | 2021-07-15T01:33:31.000Z | 2021-11-17T11:05:50.000Z | contohRekursif.py | cxml2/PyTraining | 41c99adf0d5bd330b3c35242c9f447e8992d9074 | [
"MIT"
] | null | null | null | contohRekursif.py | cxml2/PyTraining | 41c99adf0d5bd330b3c35242c9f447e8992d9074 | [
"MIT"
] | 1 | 2021-08-23T11:22:53.000Z | 2021-08-23T11:22:53.000Z | #rekursif adalah fungsi yg memanggil dirinya sendiri ok sip
def cetak(x):
print(x)
if x>1:
cetak(x-1)
elif x<1:
cetak(x+1)
cetak(5)
| 14.7 | 59 | 0.646259 | 28 | 147 | 3.392857 | 0.607143 | 0.084211 | 0.221053 | 0.168421 | 0.189474 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044248 | 0.231293 | 147 | 9 | 60 | 16.333333 | 0.79646 | 0.394558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.142857 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
958acddf13fe4d79dfbd1ceeba67585864302b16 | 1,140 | py | Python | lib/systems/d-xylulose.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/d-xylulose.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/d-xylulose.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | import pulsar as psr
def load_ref_system():
""" Returns d-xylulose as found in the IQMol fragment library.
All credit to https://github.com/nutjunkie/IQmol
"""
return psr.make_system("""
C 2.5413 -0.0840 0.1586
C 1.0785 0.2582 -0.2141
C 0.1112... | 40.714286 | 66 | 0.405263 | 170 | 1,140 | 2.7 | 0.547059 | 0.013072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.518135 | 0.492105 | 1,140 | 27 | 67 | 42.222222 | 0.274611 | 0.09386 | 0 | 0 | 0 | 0 | 0.917078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | true | 0 | 0.041667 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
95acca8f714978975bf225f38e6fad15792df99d | 106 | py | Python | hierarchy_system/apps.py | GregSpurgeon/fileStructuring | 13b69e6f2bbe8b220a1cbdbc4dfdd697e940368b | [
"MIT"
] | null | null | null | hierarchy_system/apps.py | GregSpurgeon/fileStructuring | 13b69e6f2bbe8b220a1cbdbc4dfdd697e940368b | [
"MIT"
] | null | null | null | hierarchy_system/apps.py | GregSpurgeon/fileStructuring | 13b69e6f2bbe8b220a1cbdbc4dfdd697e940368b | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class HierarchySystemConfig(AppConfig):
name = 'hierarchy_system'
| 17.666667 | 39 | 0.792453 | 11 | 106 | 7.545455 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 106 | 5 | 40 | 21.2 | 0.912088 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
95b86466ca72b2aecfda2932550215f41e6ac27f | 995 | py | Python | tests/test_math.py | exterkamps/Python-Data-Structures | 8594ed934edeaded4866999932384d12fb4519c3 | [
"Apache-2.0"
] | 3 | 2018-10-15T17:38:29.000Z | 2021-03-24T02:55:46.000Z | tests/test_math.py | exterkamp/Python-Data-Structures | 8594ed934edeaded4866999932384d12fb4519c3 | [
"Apache-2.0"
] | null | null | null | tests/test_math.py | exterkamp/Python-Data-Structures | 8594ed934edeaded4866999932384d12fb4519c3 | [
"Apache-2.0"
] | null | null | null | import unittest
from algorithms.math.factorial import factorial
from algorithms.math.fibonacci import fibonacci_dp, fibonacci_recursive
class test_math(unittest.TestCase):
def test_factorial(self):
self.assertEqual(factorial(0), 0)
self.assertEqual(factorial(1), 1)
self.assertEqual(factori... | 36.851852 | 71 | 0.699497 | 121 | 995 | 5.603306 | 0.206612 | 0.331858 | 0.353982 | 0.19174 | 0.426254 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055831 | 0.18995 | 995 | 26 | 72 | 38.269231 | 0.78536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.681818 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
95c2736261fe987788c17106ce9a676e8fb0e026 | 152 | py | Python | examples/VECs/microbench/test_load.py | UTexas-PSAAP/Parla.py | 3d92a156be41983e32576940ef6baffd78d4eb84 | [
"BSD-3-Clause"
] | 11 | 2020-06-22T16:20:15.000Z | 2022-03-20T22:54:40.000Z | examples/VECs/microbench/test_load.py | UTexas-PSAAP/Parla.py | 3d92a156be41983e32576940ef6baffd78d4eb84 | [
"BSD-3-Clause"
] | 86 | 2019-10-24T07:43:05.000Z | 2022-03-28T05:20:17.000Z | examples/VECs/microbench/test_load.py | UTexas-PSAAP/Parla.py | 3d92a156be41983e32576940ef6baffd78d4eb84 | [
"BSD-3-Clause"
] | 7 | 2019-10-24T05:46:27.000Z | 2022-02-09T19:47:58.000Z | import time
t = time.perf_counter()
from parla.multiload import multiload_contexts
begin_multiload = time.perf_counter() - t
print(begin_multiload)
| 15.2 | 46 | 0.796053 | 21 | 152 | 5.52381 | 0.52381 | 0.137931 | 0.258621 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 152 | 9 | 47 | 16.888889 | 0.87218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
95cc390f0b37516f1ac485886c0f430f1b862809 | 103 | py | Python | src/local_run.py | marshcode/marshcode | 87de5ce14285301f1c1729a209f7ef88f280678a | [
"MIT"
] | null | null | null | src/local_run.py | marshcode/marshcode | 87de5ce14285301f1c1729a209f7ef88f280678a | [
"MIT"
] | null | null | null | src/local_run.py | marshcode/marshcode | 87de5ce14285301f1c1729a209f7ef88f280678a | [
"MIT"
] | null | null | null | __author__ = 'david'
from davesite.app.factory import create_app
app = create_app()
app.run("", 8080) | 17.166667 | 43 | 0.737864 | 15 | 103 | 4.666667 | 0.666667 | 0.257143 | 0.342857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.126214 | 103 | 6 | 44 | 17.166667 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0.048077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
95cc52708b91fe912de9cc00361e2784549c91fb | 68 | py | Python | src/__init__.py | LaudateCorpus1/hermes-5 | d9b50452379fe636da96c2bad2d286afa15cd7b9 | [
"Apache-2.0"
] | 135 | 2015-11-17T09:04:37.000Z | 2022-01-14T07:00:34.000Z | src/__init__.py | cacan/hermes | d9b50452379fe636da96c2bad2d286afa15cd7b9 | [
"Apache-2.0"
] | 16 | 2015-11-19T18:04:13.000Z | 2016-11-19T00:30:12.000Z | src/__init__.py | cacan/hermes | d9b50452379fe636da96c2bad2d286afa15cd7b9 | [
"Apache-2.0"
] | 68 | 2015-11-13T22:51:57.000Z | 2022-01-26T01:51:09.000Z | __version__ = '1.0'
import algorithms
import data_prep
import utils
| 13.6 | 19 | 0.808824 | 10 | 68 | 5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.132353 | 68 | 4 | 20 | 17 | 0.813559 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
254012f39184189d4ce825f535a9d2c592877451 | 364 | py | Python | bindings/pydeck/pydeck/types/string.py | acebelowzero/deck.gl | 7acf1fefc337486f129670b3a19c0ce9c13003d5 | [
"MIT"
] | 2 | 2021-08-11T08:05:51.000Z | 2021-08-11T08:05:54.000Z | bindings/pydeck/pydeck/types/string.py | acebelowzero/deck.gl | 7acf1fefc337486f129670b3a19c0ce9c13003d5 | [
"MIT"
] | null | null | null | bindings/pydeck/pydeck/types/string.py | acebelowzero/deck.gl | 7acf1fefc337486f129670b3a19c0ce9c13003d5 | [
"MIT"
] | null | null | null | from functools import total_ordering
@total_ordering
class String:
def __init__(self, s: str, quote_type: str = '"'):
self.value = f"{quote_type}{s}{quote_type}"
def __lt__(self, other):
return str(self) < str(other)
def __eq__(self, other):
return str(self) == str(other)
de... | 21.411765 | 54 | 0.629121 | 49 | 364 | 4.244898 | 0.428571 | 0.129808 | 0.144231 | 0.173077 | 0.317308 | 0.317308 | 0.317308 | 0.317308 | 0 | 0 | 0 | 0 | 0.244505 | 364 | 16 | 55 | 22.75 | 0.756364 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.074176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.090909 | 0.272727 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
2545f26ea313edcb67b629591d95e9b619f2a540 | 132 | py | Python | whileloops/whileloops.py | IMBLACK-CMD/Pythonister | 801a8fef7ef67fa84df2496a7d93738ced25e9d8 | [
"MIT"
] | null | null | null | whileloops/whileloops.py | IMBLACK-CMD/Pythonister | 801a8fef7ef67fa84df2496a7d93738ced25e9d8 | [
"MIT"
] | null | null | null | whileloops/whileloops.py | IMBLACK-CMD/Pythonister | 801a8fef7ef67fa84df2496a7d93738ced25e9d8 | [
"MIT"
] | null | null | null | counter = 0
while counter <= 5:
print("counter", counter)
counter = counter + 1
else:
print("counter has become false ") | 22 | 38 | 0.643939 | 17 | 132 | 5 | 0.588235 | 0.494118 | 0.494118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.234848 | 132 | 6 | 38 | 22 | 0.811881 | 0 | 0 | 0 | 0 | 0 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
25605727da938717725472e5f3fb5f908ccad9ef | 336 | py | Python | configs/detect/mmdetection/faster_rcnn_x101_64x4d_fpn_1x_coco.py | linkinpark213/online-mot-by-detection | 3bde45cc68815f84fa73bec816a557349e5a33fd | [
"MIT"
] | null | null | null | configs/detect/mmdetection/faster_rcnn_x101_64x4d_fpn_1x_coco.py | linkinpark213/online-mot-by-detection | 3bde45cc68815f84fa73bec816a557349e5a33fd | [
"MIT"
] | null | null | null | configs/detect/mmdetection/faster_rcnn_x101_64x4d_fpn_1x_coco.py | linkinpark213/online-mot-by-detection | 3bde45cc68815f84fa73bec816a557349e5a33fd | [
"MIT"
] | null | null | null | type = 'MMDetector'
config = '/home/linkinpark213/Source/mmdetection/configs/faster_rcnn/faster_rcnn_x101_64x4d_fpn_1x_coco.py'
checkpoint = 'https://open-mmlab.s3.ap-northeast-2.amazonaws.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_x101_64x4d_fpn_1x_coco/faster_rcnn_x101_64x4d_fpn_1x_coco_20200204-833ee192.pth'
conf_... | 67.2 | 186 | 0.854167 | 54 | 336 | 4.907407 | 0.62963 | 0.188679 | 0.158491 | 0.215094 | 0.392453 | 0.392453 | 0.392453 | 0.286792 | 0.286792 | 0 | 0 | 0.135802 | 0.035714 | 336 | 4 | 187 | 84 | 0.682099 | 0 | 0 | 0 | 0 | 0.25 | 0.824405 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c261ba50b45a089103a148a3fd4fcd4932f27b0d | 128 | py | Python | itcast/Python/BasicItcast/day5/com.dhcc/jiujiu.py | diqiuonline/Demo | cba12f44b57b47a4ea7f23ed3e28b21de5ef0d86 | [
"MIT"
] | null | null | null | itcast/Python/BasicItcast/day5/com.dhcc/jiujiu.py | diqiuonline/Demo | cba12f44b57b47a4ea7f23ed3e28b21de5ef0d86 | [
"MIT"
] | 22 | 2020-04-14T15:52:45.000Z | 2022-02-28T14:52:14.000Z | itcast/Python/BasicItcast/day5/com.dhcc/jiujiu.py | diqiuonline/Demo | cba12f44b57b47a4ea7f23ed3e28b21de5ef0d86 | [
"MIT"
] | 1 | 2020-08-31T06:51:57.000Z | 2020-08-31T06:51:57.000Z | j = 1
while j <= 9:
i = 1
while i <= j:
print(f'{i}*{j}={i*j}' , end='\t')
i += 1
j += 1
print() | 16 | 42 | 0.320313 | 23 | 128 | 1.782609 | 0.391304 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068493 | 0.429688 | 128 | 8 | 43 | 16 | 0.493151 | 0 | 0 | 0 | 0 | 0 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c2791df0a839bdadc5aa868b8f7fc8fd45afa365 | 264 | py | Python | main.py | joway/statsd-server | ffa5bb696ad28b6c3fc1c619d4ca1dc413a7b986 | [
"MIT"
] | null | null | null | main.py | joway/statsd-server | ffa5bb696ad28b6c3fc1c619d4ca1dc413a7b986 | [
"MIT"
] | null | null | null | main.py | joway/statsd-server | ffa5bb696ad28b6c3fc1c619d4ca1dc413a7b986 | [
"MIT"
] | null | null | null | from time import sleep
from monitor import monitoring_mem, monitoring_swap, monitoring_cpu, monitoring_net
from settings import INTERVAL
while True:
monitoring_mem()
monitoring_swap()
monitoring_cpu()
monitoring_net()
sleep(INTERVAL // 1000)
| 22 | 83 | 0.765152 | 32 | 264 | 6.0625 | 0.46875 | 0.134021 | 0.237113 | 0.278351 | 0.546392 | 0.546392 | 0.546392 | 0.546392 | 0 | 0 | 0 | 0.018349 | 0.174242 | 264 | 11 | 84 | 24 | 0.87156 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c292e8980cf31c69ffbc9b8c354a94b0a019cf0c | 347 | py | Python | 2.py | chuzhinoves/DevOps_python_HW2 | 1f1d83bd69b62fa45f36758290335d5322983c37 | [
"MIT"
] | null | null | null | 2.py | chuzhinoves/DevOps_python_HW2 | 1f1d83bd69b62fa45f36758290335d5322983c37 | [
"MIT"
] | null | null | null | 2.py | chuzhinoves/DevOps_python_HW2 | 1f1d83bd69b62fa45f36758290335d5322983c37 | [
"MIT"
] | null | null | null | #уверен, что есть способ короче, но в голову не пришел
input_array_str = input("введите список разделенный пробелами: ").split(" ")
if len(input_array_str) > 0:
for i in range(1, len(input_array_str), 2):
a = input_array_str[i]
input_array_str[i] = input_array_str[i-1]
input_array_str[i-1] ... | 38.555556 | 76 | 0.691643 | 59 | 347 | 3.79661 | 0.491525 | 0.357143 | 0.464286 | 0.25 | 0.258929 | 0.1875 | 0.1875 | 0.1875 | 0 | 0 | 0 | 0.017857 | 0.193084 | 347 | 8 | 77 | 43.375 | 0.782143 | 0.152738 | 0 | 0 | 0 | 0 | 0.133106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c2a13d7fe3eb637673dc5e1e9cc3d684eaffed54 | 353 | py | Python | clip_retrieval/cli.py | afiaka87/clip-retrieval | 97a17e0952524d4565620249228a11f91390462c | [
"MIT"
] | null | null | null | clip_retrieval/cli.py | afiaka87/clip-retrieval | 97a17e0952524d4565620249228a11f91390462c | [
"MIT"
] | null | null | null | clip_retrieval/cli.py | afiaka87/clip-retrieval | 97a17e0952524d4565620249228a11f91390462c | [
"MIT"
] | null | null | null | from clip_retrieval.clip_back import clip_back
from clip_retrieval.clip_batch import clip_batch
from clip_retrieval.clip_filter import clip_filter
import fire
import logging
def main():
"""Main entry point"""
fire.Fire(
{
"back": clip_back,
"batch": clip_batch,
"fil... | 22.0625 | 50 | 0.648725 | 44 | 353 | 4.931818 | 0.295455 | 0.110599 | 0.235023 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271955 | 353 | 16 | 51 | 22.0625 | 0.844358 | 0.045326 | 0 | 0 | 0 | 0 | 0.045181 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | true | 0 | 0.384615 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
c2f12b4b1585cd84dfcf0327bd0c64f9ad855d2c | 254 | py | Python | codetools/util/tests/sequence_test_case.py | braidedlogix/Codetools_wxPhoenix_py3 | 555e7e3e4895ef9d79716e0323db4445436d10dc | [
"BSD-3-Clause"
] | 1 | 2017-05-12T04:17:50.000Z | 2017-05-12T04:17:50.000Z | codetools/util/tests/sequence_test_case.py | braidedlogix/Codetools_wxPhoenix_py3 | 555e7e3e4895ef9d79716e0323db4445436d10dc | [
"BSD-3-Clause"
] | null | null | null | codetools/util/tests/sequence_test_case.py | braidedlogix/Codetools_wxPhoenix_py3 | 555e7e3e4895ef9d79716e0323db4445436d10dc | [
"BSD-3-Clause"
] | null | null | null | import unittest
from traits.testing.api import doctest_for_module
import codetools.util.sequence as sequence
class SequenceDocTestCase(doctest_for_module(sequence)):
pass
if __name__ == '__main__':
import sys
unittest.main(argv=sys.argv)
| 19.538462 | 56 | 0.783465 | 33 | 254 | 5.666667 | 0.636364 | 0.106952 | 0.171123 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141732 | 254 | 12 | 57 | 21.166667 | 0.857798 | 0 | 0 | 0 | 0 | 0 | 0.031496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.125 | 0.5 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
6c3fc5e5ae7eafb4ee1c1dfef1b12fd41a38900f | 46 | py | Python | application/workprogramsapp/expertise/expertise_logic.py | rendex85/analytics_backend-1 | 02ac45bde8754491795c99fbddcfc249d64a2fd3 | [
"MIT"
] | null | null | null | application/workprogramsapp/expertise/expertise_logic.py | rendex85/analytics_backend-1 | 02ac45bde8754491795c99fbddcfc249d64a2fd3 | [
"MIT"
] | null | null | null | application/workprogramsapp/expertise/expertise_logic.py | rendex85/analytics_backend-1 | 02ac45bde8754491795c99fbddcfc249d64a2fd3 | [
"MIT"
] | null | null | null | def add_expert_to_wp(wp_id, expertise):
re | 23 | 39 | 0.76087 | 9 | 46 | 3.444444 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152174 | 46 | 2 | 40 | 23 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6c5118383b2f5301b854f8a22fa188b7a7052994 | 130 | py | Python | demo/User.py | tongnainfo/learn_python | 47514eb03c60b65b3fccdd6a1eb1cba5a45f28f5 | [
"MIT"
] | null | null | null | demo/User.py | tongnainfo/learn_python | 47514eb03c60b65b3fccdd6a1eb1cba5a45f28f5 | [
"MIT"
] | null | null | null | demo/User.py | tongnainfo/learn_python | 47514eb03c60b65b3fccdd6a1eb1cba5a45f28f5 | [
"MIT"
] | null | null | null | class User:
def __init__(self,name):
self.name=name
def show(self):
print(self.name)
user =User("ada66")
user.show() | 14.444444 | 26 | 0.653846 | 20 | 130 | 4.05 | 0.45 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.184615 | 130 | 9 | 27 | 14.444444 | 0.745283 | 0 | 0 | 0 | 0 | 0 | 0.038168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
665af2716bfb387419b1614d37ad347eb499ce7b | 72 | py | Python | centralauth/provider/__init__.py | lenarother/django-centralauth | dadd78191d879c96fc2730cb5625ab833c1ea0da | [
"MIT"
] | 6 | 2018-11-22T15:06:57.000Z | 2021-03-16T18:44:41.000Z | centralauth/provider/__init__.py | lenarother/django-centralauth | dadd78191d879c96fc2730cb5625ab833c1ea0da | [
"MIT"
] | 10 | 2021-05-04T18:55:50.000Z | 2021-06-01T22:58:43.000Z | centralauth/provider/__init__.py | lenarother/django-centralauth | dadd78191d879c96fc2730cb5625ab833c1ea0da | [
"MIT"
] | 1 | 2019-04-30T08:07:38.000Z | 2019-04-30T08:07:38.000Z | default_app_config = 'centralauth.provider.apps.ProviderConfig' # noqa
| 36 | 71 | 0.819444 | 8 | 72 | 7.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 72 | 1 | 72 | 72 | 0.863636 | 0.055556 | 0 | 0 | 0 | 0 | 0.606061 | 0.606061 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
669fca25d36a642429a7a5090bcd4265194f41ad | 267 | py | Python | 7term/TT/compiler/lab3/SemanticException.py | nik-sergeson/bsuir-informatics-labs | 14805fb83b8e2324580b6253158565068595e804 | [
"Apache-2.0"
] | null | null | null | 7term/TT/compiler/lab3/SemanticException.py | nik-sergeson/bsuir-informatics-labs | 14805fb83b8e2324580b6253158565068595e804 | [
"Apache-2.0"
] | null | null | null | 7term/TT/compiler/lab3/SemanticException.py | nik-sergeson/bsuir-informatics-labs | 14805fb83b8e2324580b6253158565068595e804 | [
"Apache-2.0"
] | null | null | null | class SemanticException(Exception):
def __init__(self, message, token=None):
if token is None:
super(SemanticException, self).__init__(message)
else:
super(SemanticException, self).__init__(message + ': ' + token.__str__()) | 44.5 | 85 | 0.64794 | 26 | 267 | 6.038462 | 0.538462 | 0.152866 | 0.33121 | 0.382166 | 0.471338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235955 | 267 | 6 | 85 | 44.5 | 0.769608 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
66a1eecfeadd419b04801069cefedd08bd83b208 | 114 | py | Python | mediatracker/movies/urls.py | theKeithSequeira/MediaTracker | 529ac75032f9856d2dff0ed34bd1c71d37aae4cb | [
"MIT"
] | null | null | null | mediatracker/movies/urls.py | theKeithSequeira/MediaTracker | 529ac75032f9856d2dff0ed34bd1c71d37aae4cb | [
"MIT"
] | null | null | null | mediatracker/movies/urls.py | theKeithSequeira/MediaTracker | 529ac75032f9856d2dff0ed34bd1c71d37aae4cb | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns=[
path('',views.movie_list,name='movie_list')
] | 19 | 47 | 0.72807 | 16 | 114 | 5.0625 | 0.625 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 114 | 6 | 48 | 19 | 0.826531 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
66ac96d2dd67a7b538e7491bed60b997b0156975 | 164 | py | Python | src/hootingyard/utils/get_from_internet_archive.py | HootingYard/archive_management | 448f15f74c035ef846e1a6f762e448d922744b9b | [
"CC0-1.0"
] | null | null | null | src/hootingyard/utils/get_from_internet_archive.py | HootingYard/archive_management | 448f15f74c035ef846e1a6f762e448d922744b9b | [
"CC0-1.0"
] | null | null | null | src/hootingyard/utils/get_from_internet_archive.py | HootingYard/archive_management | 448f15f74c035ef846e1a6f762e448d922744b9b | [
"CC0-1.0"
] | null | null | null | import pprint
from internetarchive import get_item, delete
item = get_item("hooting_yard_2007-01-10")
pprint.pprint(item.item_metadata)
# delete(item.identifier)
| 20.5 | 44 | 0.810976 | 24 | 164 | 5.333333 | 0.583333 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053691 | 0.091463 | 164 | 7 | 45 | 23.428571 | 0.805369 | 0.140244 | 0 | 0 | 0 | 0 | 0.165468 | 0.165468 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
66b3691e76faf1374f62afa3d0c5a5eb647a8de3 | 95 | py | Python | visualizer/apps.py | dipapaspyros/bdo_platform | 336de07c6ed14290c54f2154117dbf90a187e4ea | [
"MIT"
] | 4 | 2019-09-21T16:02:39.000Z | 2020-09-08T00:56:40.000Z | visualizer/apps.py | dipapaspyros/bdo_platform | 336de07c6ed14290c54f2154117dbf90a187e4ea | [
"MIT"
] | 11 | 2020-11-09T19:55:58.000Z | 2022-02-13T19:43:03.000Z | visualizer/apps.py | dipapaspyros/bdo_platform | 336de07c6ed14290c54f2154117dbf90a187e4ea | [
"MIT"
] | 5 | 2019-09-21T15:46:47.000Z | 2021-05-26T19:30:29.000Z | from django.apps import AppConfig
class VisualizerConfig(AppConfig):
name = 'visualizer'
| 15.833333 | 34 | 0.768421 | 10 | 95 | 7.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 95 | 5 | 35 | 19 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
66b57e8cb7432b7a43e3b8d46677973d3375aafa | 960 | py | Python | ebl/transliteration/application/sign_repository.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 4 | 2020-04-12T14:24:51.000Z | 2020-10-15T15:48:15.000Z | ebl/transliteration/application/sign_repository.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 200 | 2019-12-04T09:53:20.000Z | 2022-03-30T20:11:31.000Z | ebl/transliteration/application/sign_repository.py | ElectronicBabylonianLiterature/dictionary | 5977a57314cf57f94f75cd12520f178b1d6a6555 | [
"MIT"
] | 1 | 2021-09-06T16:22:39.000Z | 2021-09-06T16:22:39.000Z | from abc import ABC, abstractmethod
from typing import Optional, Sequence
from ebl.transliteration.domain.sign import Sign, SignName
class SignRepository(ABC):
@abstractmethod
def create(self, sign: Sign) -> str:
...
@abstractmethod
def find(self, name: SignName) -> Sign:
...
@a... | 24.615385 | 85 | 0.639583 | 105 | 960 | 5.72381 | 0.333333 | 0.22629 | 0.209651 | 0.269551 | 0.477537 | 0.389351 | 0.199667 | 0.199667 | 0.199667 | 0.199667 | 0 | 0 | 0.236458 | 960 | 38 | 86 | 25.263158 | 0.819918 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.107143 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
66bc06326757e5fe39f1957af8b8037108ceb23c | 587 | py | Python | code/ch08/8.1.3_155.min-stack.py | leetcode-pp/leetcode-pp1 | a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5 | [
"MIT"
] | 22 | 2021-02-23T13:42:28.000Z | 2022-03-02T11:19:28.000Z | code/ch08/8.1.3_155.min-stack.py | leetcode-pp/leetcode-pp1 | a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5 | [
"MIT"
] | 9 | 2021-06-16T10:42:01.000Z | 2021-08-24T09:06:29.000Z | code/ch08/8.1.3_155.min-stack.py | leetcode-pp/leetcode-pp1 | a1f9e46fdd2f480d2fcb94e76370e040e0f0a4f5 | [
"MIT"
] | 9 | 2021-02-20T08:29:00.000Z | 2021-09-18T08:52:25.000Z | class MinStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.stack = []
self.helper = []
def push(self, x: int) -> None:
self.stack.append(x)
if not self.helper or x <= self.helper[-1]:
self.helper.append(x)
def p... | 23.48 | 51 | 0.512777 | 74 | 587 | 4.013514 | 0.351351 | 0.26936 | 0.111111 | 0.10101 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010444 | 0.34753 | 587 | 24 | 52 | 24.458333 | 0.765013 | 0.061329 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0 | 0.117647 | 0.529412 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
66d2677a7560c4b4593eb92c85e7450ae99a4c38 | 4,480 | py | Python | mmnas/utils/ops_adapter.py | ParadoxZW/mmnas | 186ef8648e71b5fc4433faf80431a0f8bc9261a0 | [
"Apache-2.0"
] | 23 | 2020-09-23T03:26:37.000Z | 2022-01-24T03:35:17.000Z | mmnas/utils/ops_adapter.py | ParadoxZW/mmnas | 186ef8648e71b5fc4433faf80431a0f8bc9261a0 | [
"Apache-2.0"
] | 9 | 2021-02-24T02:59:03.000Z | 2021-11-16T22:41:36.000Z | mmnas/utils/ops_adapter.py | ParadoxZW/mmnas | 186ef8648e71b5fc4433faf80431a0f8bc9261a0 | [
"Apache-2.0"
] | 8 | 2020-09-18T06:38:47.000Z | 2022-01-24T03:35:19.000Z | import torch.nn as nn
from mmnas.model.modules import *
class OpsAdapter:
def __init__(self):
self.Used_OPS = {
'enc_safe': [
# 'skip_connect', # identity
'self_att_64',
'feed_forward',
],
'dec_safe': [
# ... | 60.540541 | 110 | 0.61183 | 581 | 4,480 | 4.259897 | 0.115318 | 0.155556 | 0.404444 | 0.314747 | 0.797576 | 0.734949 | 0.701818 | 0.625455 | 0.602424 | 0.150303 | 0 | 0.042464 | 0.253571 | 4,480 | 74 | 111 | 60.540541 | 0.697667 | 0.01183 | 0 | 0.098361 | 0 | 0 | 0.13995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016393 | false | 0 | 0.032787 | 0 | 0.065574 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dd0f1fecc74593a80db2f2bc31beb972611e8334 | 192 | py | Python | ramda/all_pass.py | Rafi993/pyramda | 4fa7fe28d5eaa798b702d28bdd3948515cb88f48 | [
"MIT"
] | 1 | 2018-08-05T04:41:14.000Z | 2018-08-05T04:41:14.000Z | ramda/all_pass.py | Rafi993/pyramda | 4fa7fe28d5eaa798b702d28bdd3948515cb88f48 | [
"MIT"
] | 3 | 2018-06-12T18:42:05.000Z | 2018-07-23T11:50:25.000Z | ramda/all_pass.py | slavaGanzin/pyramda | 4fa7fe28d5eaa798b702d28bdd3948515cb88f48 | [
"MIT"
] | null | null | null | from ramda.curry import curry
from ramda.always import always
from ramda.reduce import reduce
from .both import both
@curry
def all_pass(ps, v):
return reduce(both, always(True), ps)(v)
| 19.2 | 44 | 0.755208 | 32 | 192 | 4.5 | 0.4375 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 192 | 9 | 45 | 21.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.571429 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 4 |
dd29b0acaa6476aaf372568a2878b14413abebc8 | 76 | py | Python | examples/turbogears/depotexample/controllers/__init__.py | tcmike/depot | f2999ab18f8bf3f5e6f0c3c3b058b9bd8d936d65 | [
"MIT"
] | 128 | 2015-02-18T05:53:25.000Z | 2022-03-02T10:23:27.000Z | examples/turbogears/depotexample/controllers/__init__.py | tcmike/depot | f2999ab18f8bf3f5e6f0c3c3b058b9bd8d936d65 | [
"MIT"
] | 68 | 2015-03-19T17:04:24.000Z | 2022-01-13T19:38:34.000Z | examples/turbogears/depotexample/controllers/__init__.py | tcmike/depot | f2999ab18f8bf3f5e6f0c3c3b058b9bd8d936d65 | [
"MIT"
] | 42 | 2015-04-24T15:05:42.000Z | 2022-01-13T18:23:17.000Z | # -*- coding: utf-8 -*-
"""Controllers for the depotexample application."""
| 25.333333 | 51 | 0.657895 | 8 | 76 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015152 | 0.131579 | 76 | 2 | 52 | 38 | 0.742424 | 0.894737 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dd47b2decdba037245199ce13ec873ea347568f4 | 595 | py | Python | microcosm/errors.py | Sinon/microcosm | e8bab13b19e873b9b097968feeb8c3cb84bca045 | [
"Apache-2.0"
] | 30 | 2016-04-05T18:37:57.000Z | 2021-06-21T18:58:43.000Z | microcosm/errors.py | Sinon/microcosm | e8bab13b19e873b9b097968feeb8c3cb84bca045 | [
"Apache-2.0"
] | 24 | 2016-03-08T17:33:00.000Z | 2020-04-26T06:55:48.000Z | microcosm/errors.py | Sinon/microcosm | e8bab13b19e873b9b097968feeb8c3cb84bca045 | [
"Apache-2.0"
] | 6 | 2016-12-19T22:39:20.000Z | 2020-11-15T15:27:58.000Z | """
Error types
"""
class AlreadyBoundError(Exception):
"""
Raised if a factory is already bound to a name.
"""
pass
class CyclicGraphError(Exception):
"""
Raised if a graph has a cycle.
"""
pass
class LockedGraphError(Exception):
"""
Raised when attempting to create a c... | 13.222222 | 74 | 0.620168 | 67 | 595 | 5.507463 | 0.507463 | 0.203252 | 0.184282 | 0.146341 | 0.113821 | 0.113821 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 595 | 44 | 75 | 13.522727 | 0.868235 | 0.42521 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
dd6446da55c56b4177812ee8391a597ae6149fd5 | 102 | py | Python | torchsupport/data/tensor_provider.py | bobelly/torchsupport | 5aa0a04f20c193ec99310f5d6a3375d2e95e740d | [
"MIT"
] | 18 | 2019-05-02T16:32:15.000Z | 2021-04-16T09:33:54.000Z | torchsupport/data/tensor_provider.py | bobelly/torchsupport | 5aa0a04f20c193ec99310f5d6a3375d2e95e740d | [
"MIT"
] | 5 | 2019-10-14T13:46:49.000Z | 2021-06-08T11:48:34.000Z | torchsupport/data/tensor_provider.py | bobelly/torchsupport | 5aa0a04f20c193ec99310f5d6a3375d2e95e740d | [
"MIT"
] | 12 | 2019-05-12T21:34:24.000Z | 2021-07-15T14:14:16.000Z | import torch
class TensorProvider():
def tensors(self):
raise NotImplementedError("Abstract.")
| 17 | 42 | 0.745098 | 10 | 102 | 7.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 102 | 5 | 43 | 20.4 | 0.873563 | 0 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
dd6d894beb491fa0df37cfc35327a9f26a1d6002 | 67 | py | Python | srpmod/tests.py | pvyParts/allianceauth-srp-mod | 1b10910923141a6e2500f69bda67a81de172591b | [
"MIT"
] | null | null | null | srpmod/tests.py | pvyParts/allianceauth-srp-mod | 1b10910923141a6e2500f69bda67a81de172591b | [
"MIT"
] | null | null | null | srpmod/tests.py | pvyParts/allianceauth-srp-mod | 1b10910923141a6e2500f69bda67a81de172591b | [
"MIT"
] | 3 | 2020-07-25T07:34:50.000Z | 2022-03-09T23:31:45.000Z | from django.test import TestCase
# My tests wont be going here... | 16.75 | 32 | 0.746269 | 11 | 67 | 4.545455 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179104 | 67 | 4 | 33 | 16.75 | 0.909091 | 0.447761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dd874a091f8100a270d0cc54f0509c80ae36fbc8 | 259 | py | Python | 5.3 Break And Continue/5.3.7 Higher Lower.py | ferrerinicolas/python_samples | 107cead4fbee30b275a5e2be1257833129ce5e46 | [
"MIT"
] | null | null | null | 5.3 Break And Continue/5.3.7 Higher Lower.py | ferrerinicolas/python_samples | 107cead4fbee30b275a5e2be1257833129ce5e46 | [
"MIT"
] | null | null | null | 5.3 Break And Continue/5.3.7 Higher Lower.py | ferrerinicolas/python_samples | 107cead4fbee30b275a5e2be1257833129ce5e46 | [
"MIT"
] | null | null | null | magic_number = 3
#Your code here...
while True:
guess = int(input("Enter a guess: "))
if guess == magic_number:
print("You got it!")
break
elif guess > magic_number:
print("Too high!")
else:
print("Too low!")
| 18.5 | 41 | 0.552124 | 34 | 259 | 4.117647 | 0.705882 | 0.235714 | 0.228571 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005618 | 0.312741 | 259 | 13 | 42 | 19.923077 | 0.780899 | 0.065637 | 0 | 0 | 0 | 0 | 0.179167 | 0 | 0 | 0 | 0 | 0.076923 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dd88c1f54c7221aaa4eb0299524e7b89a8020b65 | 82 | py | Python | aiopenapi3/v31/__init__.py | commonism/aiopenapi3 | 3efb0e65fdcdce7408c888df3f4adbad8abb4359 | [
"BSD-3-Clause"
] | null | null | null | aiopenapi3/v31/__init__.py | commonism/aiopenapi3 | 3efb0e65fdcdce7408c888df3f4adbad8abb4359 | [
"BSD-3-Clause"
] | 7 | 2022-01-03T19:48:06.000Z | 2022-03-14T22:01:57.000Z | aiopenapi3/v31/__init__.py | commonism/aiopenapi3 | 3efb0e65fdcdce7408c888df3f4adbad8abb4359 | [
"BSD-3-Clause"
] | null | null | null | from .schemas import Schema
from .root import Root
from .general import Reference
| 20.5 | 30 | 0.817073 | 12 | 82 | 5.583333 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 82 | 3 | 31 | 27.333333 | 0.957143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
06ee169210e443092afc4583cc4acdd6c11a0c6f | 94 | py | Python | test_project/test_image/apps.py | francescortiz/image | 0abda89644c9c489bdfec91acd45d8f6cacca7e7 | [
"BSD-3-Clause"
] | 96 | 2015-02-06T18:35:05.000Z | 2022-03-25T17:34:45.000Z | test_project/test_image/apps.py | francescortiz/image | 0abda89644c9c489bdfec91acd45d8f6cacca7e7 | [
"BSD-3-Clause"
] | 9 | 2015-03-27T19:57:28.000Z | 2020-09-11T02:02:39.000Z | test_project/test_image/apps.py | francescortiz/image | 0abda89644c9c489bdfec91acd45d8f6cacca7e7 | [
"BSD-3-Clause"
] | 26 | 2015-05-13T08:57:34.000Z | 2021-03-22T14:11:59.000Z | from django.apps import AppConfig
class TestImageConfig(AppConfig):
name = 'test_image'
| 15.666667 | 33 | 0.765957 | 11 | 94 | 6.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 94 | 5 | 34 | 18.8 | 0.898734 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6614577bf08e9c5aa745097c1a41c442572ea4c5 | 285 | py | Python | src/oscar/apps/dashboard/communications/config.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | src/oscar/apps/dashboard/communications/config.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | src/oscar/apps/dashboard/communications/config.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class CommunicationsDashboardConfig(AppConfig):
label = 'communications_dashboard'
name = 'oscar.apps.dashboard.communications'
verbose_name = _('Communications dashboard')
| 31.666667 | 56 | 0.775439 | 28 | 285 | 7.714286 | 0.642857 | 0.092593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154386 | 285 | 8 | 57 | 35.625 | 0.896266 | 0 | 0 | 0 | 0 | 0 | 0.299639 | 0.212996 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
661682d22f5d95e0fb78f57c0ef5b1bf46bd9696 | 28 | py | Python | src/__init__.py | klein203/Python-Learning | 98ac61eb439e516198dd9cdf0dd9255e2541ea9b | [
"MIT"
] | null | null | null | src/__init__.py | klein203/Python-Learning | 98ac61eb439e516198dd9cdf0dd9255e2541ea9b | [
"MIT"
] | null | null | null | src/__init__.py | klein203/Python-Learning | 98ac61eb439e516198dd9cdf0dd9255e2541ea9b | [
"MIT"
] | null | null | null | '''
@author: xusheng
'''
| 7 | 17 | 0.464286 | 2 | 28 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 28 | 3 | 18 | 9.333333 | 0.619048 | 0.571429 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b074a5a9eda921b7fe9787f5db7bb9a54517f9f3 | 201 | py | Python | design-patterns/single-container/math_app.py | pwcz/docker-learning | f2f4eb76e41cd10c4b61813760eedcc2ed2c34ce | [
"MIT"
] | null | null | null | design-patterns/single-container/math_app.py | pwcz/docker-learning | f2f4eb76e41cd10c4b61813760eedcc2ed2c34ce | [
"MIT"
] | null | null | null | design-patterns/single-container/math_app.py | pwcz/docker-learning | f2f4eb76e41cd10c4b61813760eedcc2ed2c34ce | [
"MIT"
] | null | null | null | import flask
api = flask.Flask(__name__)
@api.route('/', methods=['GET'])
def home():
return "<h1>Test API</h1>"
@api.route("/power/<int:number>")
def power(number):
return str(number**2)
| 14.357143 | 33 | 0.626866 | 29 | 201 | 4.206897 | 0.586207 | 0.131148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.149254 | 201 | 13 | 34 | 15.461538 | 0.695906 | 0 | 0 | 0 | 0 | 0 | 0.199005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.625 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b076765b64dbb0f3a42e016d5a8c9588944e4176 | 9,296 | py | Python | src/QueueTest.py | fuzziqersoftware/sharedstructures | 23471fc24484b472e4b2399d7c64c1071d12c641 | [
"MIT"
] | 21 | 2016-11-30T06:40:04.000Z | 2022-03-23T13:16:53.000Z | src/QueueTest.py | fuzziqersoftware/sharedstructures | 23471fc24484b472e4b2399d7c64c1071d12c641 | [
"MIT"
] | null | null | null | src/QueueTest.py | fuzziqersoftware/sharedstructures | 23471fc24484b472e4b2399d7c64c1071d12c641 | [
"MIT"
] | 3 | 2018-02-21T12:25:08.000Z | 2021-12-16T06:14:05.000Z | import os
import subprocess
import sys
import time
import sharedstructures
POOL_NAME_PREFIX = "QueueTest-py-pool-"
ALLOCATOR_TYPES = ('simple', 'logarithmic')
def get_current_process_lsof():
return subprocess.check_output(['lsof', '-p', str(os.getpid())])
def q_push(q, front, item, raw=False):
... | 28.869565 | 98 | 0.610047 | 1,335 | 9,296 | 4.06367 | 0.123596 | 0.103041 | 0.019355 | 0.059355 | 0.815853 | 0.790046 | 0.732166 | 0.695853 | 0.64977 | 0.632995 | 0 | 0.021264 | 0.266459 | 9,296 | 321 | 99 | 28.959502 | 0.774307 | 0.057121 | 0 | 0.618474 | 0 | 0 | 0.062974 | 0 | 0 | 0 | 0 | 0 | 0.293173 | 1 | 0.048193 | false | 0.028112 | 0.02008 | 0.004016 | 0.084337 | 0.052209 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b0878be9e684e61d99a80d32086d7c4ecf7e7fa0 | 1,076 | py | Python | gtsfm/feature_extractor.py | swershrimpy/gtsfm | 8d301eb3ef9172345a1ac1369fd4e19764d28946 | [
"Apache-2.0"
] | 122 | 2021-02-07T23:01:58.000Z | 2022-03-30T13:10:35.000Z | gtsfm/feature_extractor.py | swershrimpy/gtsfm | 8d301eb3ef9172345a1ac1369fd4e19764d28946 | [
"Apache-2.0"
] | 273 | 2021-01-30T16:45:26.000Z | 2022-03-16T15:02:33.000Z | gtsfm/feature_extractor.py | swershrimpy/gtsfm | 8d301eb3ef9172345a1ac1369fd4e19764d28946 | [
"Apache-2.0"
] | 13 | 2021-03-12T03:01:27.000Z | 2022-03-11T03:16:54.000Z | """Extracts features and their descriptors from a single image.
Authors: Ayush Baid, John Lambert
"""
from typing import Tuple
from dask.delayed import Delayed
from gtsfm.frontend.detector_descriptor.detector_descriptor_base import DetectorDescriptorBase
class FeatureExtractor:
"""Wrapper for running detection... | 31.647059 | 94 | 0.716543 | 117 | 1,076 | 6.42735 | 0.512821 | 0.215426 | 0.087766 | 0.095745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22026 | 1,076 | 33 | 95 | 32.606061 | 0.896305 | 0.44052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.375 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b088e3d6ca12d2d57e5fea723a2db90996f8cf08 | 474 | py | Python | packages/micropython-official/v1.9.4/esp32/stubs/micropython.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 18 | 2019-07-11T13:31:09.000Z | 2022-01-27T06:38:40.000Z | packages/micropython-official/v1.9.4/esp32/stubs/micropython.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 9 | 2019-09-01T21:44:49.000Z | 2022-02-04T20:55:08.000Z | packages/micropython-official/v1.9.4/esp32/stubs/micropython.py | TheVinhLuong102/micropy-stubs | 55ff1773008f7c4dfc3d70a403986486226eb6b3 | [
"MIT"
] | 6 | 2019-10-08T05:31:21.000Z | 2021-04-22T10:21:01.000Z | """
Module: 'micropython' on esp32 1.9.4
"""
# MCU: (sysname='esp32', nodename='esp32', release='1.9.4', version='v1.9.4 on 2018-05-11', machine='ESP32 module with ESP32')
# Stubber: 1.2.0
def alloc_emergency_exception_buf():
pass
def const():
pass
def heap_lock():
pass
def heap_unlock():
pass
def k... | 13.166667 | 126 | 0.628692 | 73 | 474 | 3.945205 | 0.561644 | 0.21875 | 0.020833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0.21519 | 474 | 35 | 127 | 13.542857 | 0.693548 | 0.373418 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
b0a8026693675c2a22565d6daa5748a1dba33799 | 269 | py | Python | tests/test_import.py | mace-space/histLM | 3f6460f6fad703feb99e48f244396f8ef007c582 | [
"MIT"
] | 6 | 2021-05-24T12:40:30.000Z | 2022-02-09T11:04:07.000Z | tests/test_import.py | mace-space/histLM | 3f6460f6fad703feb99e48f244396f8ef007c582 | [
"MIT"
] | 1 | 2021-09-30T09:11:15.000Z | 2021-09-30T09:11:15.000Z | tests/test_import.py | mace-space/histLM | 3f6460f6fad703feb99e48f244396f8ef007c582 | [
"MIT"
] | 19 | 2021-06-03T12:25:42.000Z | 2021-07-30T13:54:21.000Z | import pytest
def test_import():
from transformers import pipeline
from flair.embeddings import FlairEmbeddings
from flair.data import Sentence
import flair, torch
from gensim.models import FastText
from gensim.models import Word2Vec
| 16.8125 | 48 | 0.739777 | 32 | 269 | 6.1875 | 0.53125 | 0.090909 | 0.161616 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004831 | 0.230483 | 269 | 15 | 49 | 17.933333 | 0.951691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 1 | 0 | 1.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b0bc973f2a51a87bf18f8614c9fcb313b63606ab | 62 | py | Python | wsgi.py | yoophi/flask-login-sample | ae76e2c396896f99b1ba8add44c752d5abc22c01 | [
"MIT"
] | null | null | null | wsgi.py | yoophi/flask-login-sample | ae76e2c396896f99b1ba8add44c752d5abc22c01 | [
"MIT"
] | null | null | null | wsgi.py | yoophi/flask-login-sample | ae76e2c396896f99b1ba8add44c752d5abc22c01 | [
"MIT"
] | null | null | null | from flask_login_sample import create_app
app = create_app()
| 15.5 | 41 | 0.822581 | 10 | 62 | 4.7 | 0.7 | 0.382979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 62 | 3 | 42 | 20.666667 | 0.87037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b0d735aa8ad231893e317bbee17f3854072723f8 | 68 | py | Python | tuiuiu/tuiuiuadmin/__init__.py | caputomarcos/tuiuiu.io | d8fb57cf95487e7fe1454b2130ef18acc916da46 | [
"BSD-3-Clause"
] | 3 | 2019-08-08T09:09:35.000Z | 2020-12-15T18:04:17.000Z | tuiuiu/tuiuiuadmin/__init__.py | caputomarcos/tuiuiu.io | d8fb57cf95487e7fe1454b2130ef18acc916da46 | [
"BSD-3-Clause"
] | null | null | null | tuiuiu/tuiuiuadmin/__init__.py | caputomarcos/tuiuiu.io | d8fb57cf95487e7fe1454b2130ef18acc916da46 | [
"BSD-3-Clause"
] | 1 | 2017-09-09T20:10:40.000Z | 2017-09-09T20:10:40.000Z | default_app_config = 'tuiuiu.tuiuiuadmin.apps.TuiuiuAdminAppConfig'
| 34 | 67 | 0.867647 | 7 | 68 | 8.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 68 | 1 | 68 | 68 | 0.876923 | 0 | 0 | 0 | 0 | 0 | 0.647059 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b0da6b2e0eeed2fb6296dc97922b44ec158d8b59 | 248 | py | Python | vfmgui/fonts.py | sharkwouter/vaporos-flatpak-manager | da1dce2a806fdb51aa9366408ace50c28fbc3ff6 | [
"MIT"
] | null | null | null | vfmgui/fonts.py | sharkwouter/vaporos-flatpak-manager | da1dce2a806fdb51aa9366408ace50c28fbc3ff6 | [
"MIT"
] | 21 | 2019-09-15T08:42:58.000Z | 2021-08-28T16:48:54.000Z | vfmgui/fonts.py | sharkwouter/vaporos-flatpak-manager | da1dce2a806fdb51aa9366408ace50c28fbc3ff6 | [
"MIT"
] | null | null | null | import pygame
pygame.font.init()
class Fonts:
_font = pygame.font.match_font('liberationsansnarrow')
print(_font)
REGULAR = pygame.font.Font(_font, 64)
SMALL = pygame.font.Font(_font, 32)
LARGE = pygame.font.Font(_font, 96)
| 19.076923 | 58 | 0.689516 | 33 | 248 | 5 | 0.454545 | 0.290909 | 0.254545 | 0.327273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029557 | 0.181452 | 248 | 12 | 59 | 20.666667 | 0.783251 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.75 | 0.125 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b0e0d6df21aca22cac1fcc5be6f5d694c8c35cd9 | 492 | py | Python | strategy/auto_spider/autospider_strategy.py | yfsoftcom/crawler | 37b48285a74d587024f9f6b88de0de2f5dbc9d1d | [
"MIT"
] | null | null | null | strategy/auto_spider/autospider_strategy.py | yfsoftcom/crawler | 37b48285a74d587024f9f6b88de0de2f5dbc9d1d | [
"MIT"
] | null | null | null | strategy/auto_spider/autospider_strategy.py | yfsoftcom/crawler | 37b48285a74d587024f9f6b88de0de2f5dbc9d1d | [
"MIT"
] | null | null | null | import re
from strategy.strategy import Strategy
from strategy.parser.unknown_parser import UnknownParser
from strategy.parser.autospider_parser import DefaultAutoSpiderParser
class AutoSpiderStrategy(Strategy):
def __init__(self, spider = None):
self._spider = spider
def get_parser(self, url, is_html = True... | 27.333333 | 77 | 0.760163 | 59 | 492 | 6.152542 | 0.491525 | 0.099174 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002427 | 0.162602 | 492 | 17 | 78 | 28.941176 | 0.878641 | 0.018293 | 0 | 0 | 0 | 0 | 0.010395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.363636 | 0.181818 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
9ff82e1e50901d8f1404bd9895ee3c2613ee71a2 | 149 | py | Python | multispinsys/TensorOps/__init__.py | Marcupio/SpinProgram | 4d47e5e5048423ae69869a0300558e1fee809bf0 | [
"Apache-2.0"
] | null | null | null | multispinsys/TensorOps/__init__.py | Marcupio/SpinProgram | 4d47e5e5048423ae69869a0300558e1fee809bf0 | [
"Apache-2.0"
] | null | null | null | multispinsys/TensorOps/__init__.py | Marcupio/SpinProgram | 4d47e5e5048423ae69869a0300558e1fee809bf0 | [
"Apache-2.0"
] | null | null | null | from . import Reduce
from . import spinops
from . import spintensor
__all__ = ["Reduce",
"spinops",
"spintensor"
]
| 16.555556 | 24 | 0.557047 | 13 | 149 | 6.076923 | 0.461538 | 0.379747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.348993 | 149 | 8 | 25 | 18.625 | 0.814433 | 0 | 0 | 0 | 0 | 0 | 0.155405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b01edffa4e178342041a6ca5d2904014575d1da9 | 24,276 | py | Python | tests/test_agglomerative.py | leolani/cltl-face-recognition | b98e4791c9943b4a4a91d00e2ede5ead2d5fa61f | [
"MIT"
] | null | null | null | tests/test_agglomerative.py | leolani/cltl-face-recognition | b98e4791c9943b4a4a91d00e2ede5ead2d5fa61f | [
"MIT"
] | null | null | null | tests/test_agglomerative.py | leolani/cltl-face-recognition | b98e4791c9943b4a4a91d00e2ede5ead2d5fa61f | [
"MIT"
] | null | null | null | import dataclasses
import unittest
import numpy as np
from cltl.vector_id.clusterid import ClusterIdentity
@dataclasses.dataclass
class TestCluster:
labels_: list
class TestClustering:
"""Cluster id is determined by the first dimension of the vector being zero."""
def fit(self, X):
return TestC... | 192.666667 | 4,899 | 0.634289 | 4,825 | 24,276 | 3.156062 | 0.307772 | 0.024691 | 0.00591 | 0.024954 | 0.564289 | 0.554439 | 0.548923 | 0.548923 | 0.541437 | 0.541437 | 0 | 0.588406 | 0.122384 | 24,276 | 126 | 4,900 | 192.666667 | 0.126355 | 0.003007 | 0 | 0.593023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.337209 | 1 | 0.127907 | false | 0 | 0.046512 | 0.011628 | 0.232558 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b0561a8bef98272dbbce0329c3973c249eb3dd0d | 269 | py | Python | bireme/help/urls.py | rfdeoliveira/fi-admin | c2df084c7e79d587e2273dc222f106fa243b7f6e | [
"MIT",
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | bireme/help/urls.py | rfdeoliveira/fi-admin | c2df084c7e79d587e2273dc222f106fa243b7f6e | [
"MIT",
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | bireme/help/urls.py | rfdeoliveira/fi-admin | c2df084c7e79d587e2273dc222f106fa243b7f6e | [
"MIT",
"Python-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | from django.conf import settings
from django.conf.urls.static import static
from django.conf.urls import patterns, include, url
from views import *
urlpatterns = patterns('',
url(r'^view/(?P<source_param>\w{0,35})/(?P<fieldname_param>\w{0,55})/?$', view_help),
)
| 26.9 | 89 | 0.72119 | 42 | 269 | 4.547619 | 0.547619 | 0.157068 | 0.219895 | 0.188482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025105 | 0.111524 | 269 | 9 | 90 | 29.888889 | 0.774059 | 0 | 0 | 0 | 0 | 0.142857 | 0.241636 | 0.241636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b0634bcaf4117a97ca437786843d0ac25adc9bcb | 57 | py | Python | Dynamics/Discrete/test.py | jesusdalvarado/CalculiX-Examples | 79150c1167026cb6c0dfd2bd83f8abed144dcd75 | [
"MIT"
] | 2 | 2019-03-16T09:22:21.000Z | 2019-03-16T09:22:23.000Z | Dynamics/Discrete/test.py | jesusdalvarado/CalculiX-Examples | 79150c1167026cb6c0dfd2bd83f8abed144dcd75 | [
"MIT"
] | null | null | null | Dynamics/Discrete/test.py | jesusdalvarado/CalculiX-Examples | 79150c1167026cb6c0dfd2bd83f8abed144dcd75 | [
"MIT"
] | 1 | 2019-04-26T14:35:22.000Z | 2019-04-26T14:35:22.000Z | #!/usr/bin/python
import os
os.system("cgx -b run.fbd")
| 11.4 | 27 | 0.666667 | 11 | 57 | 3.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.122807 | 57 | 4 | 28 | 14.25 | 0.76 | 0.280702 | 0 | 0 | 0 | 0 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b06cd80d0661a4fad14051b55b76c6e62676ec9b | 134 | py | Python | utilities/ray.py | fietensen/raytracer | 856e9dfa39d1c7fd77fd2409ce19a244af6e479c | [
"MIT"
] | null | null | null | utilities/ray.py | fietensen/raytracer | 856e9dfa39d1c7fd77fd2409ce19a244af6e479c | [
"MIT"
] | null | null | null | utilities/ray.py | fietensen/raytracer | 856e9dfa39d1c7fd77fd2409ce19a244af6e479c | [
"MIT"
] | null | null | null | class Ray:
def __init__(self, origin, direction):
self.origin = origin
self.direction = direction.normalize()
| 26.8 | 47 | 0.634328 | 14 | 134 | 5.785714 | 0.571429 | 0.246914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268657 | 134 | 4 | 48 | 33.5 | 0.826531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.