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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00ee2872fe511ef9d2143592268930c7e5bec72a | 212 | py | Python | jasper_erpnext_report/jasper_erpnext_report/doctype/jasper_reports/test_jasper_reports.py | Zyten/jasper_erpnext_report | 499fc07d9e1b7e7393d392e1544366ab176ca8ef | [
"MIT"
] | 27 | 2015-07-07T11:43:24.000Z | 2022-03-12T03:46:10.000Z | jasper_erpnext_report/jasper_erpnext_report/doctype/jasper_reports/test_jasper_reports.py | Zyten/jasper_erpnext_report | 499fc07d9e1b7e7393d392e1544366ab176ca8ef | [
"MIT"
] | 13 | 2015-11-10T14:25:18.000Z | 2021-12-20T06:23:30.000Z | jasper_erpnext_report/jasper_erpnext_report/doctype/jasper_reports/test_jasper_reports.py | Zyten/jasper_erpnext_report | 499fc07d9e1b7e7393d392e1544366ab176ca8ef | [
"MIT"
] | 27 | 2015-05-21T21:16:56.000Z | 2021-09-05T17:40:10.000Z | # Copyright (c) 2013, Luis Fernandes and Contributors
# See license.txt
import frappe
import unittest
test_records = frappe.get_test_records('Jasper Reports')
class TestJasperReports(unittest.TestCase):
pass
| 19.272727 | 56 | 0.801887 | 27 | 212 | 6.185185 | 0.814815 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.122642 | 212 | 10 | 57 | 21.2 | 0.876344 | 0.316038 | 0 | 0 | 0 | 0 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
daabaadb0301a384dd8bb37b292d53ff39ad46ac | 421 | py | Python | testfiles.py | avarchival/IFI_scripts | c4fd5a11de6d12a2b9f315c9fcec80f13306eadc | [
"MIT"
] | null | null | null | testfiles.py | avarchival/IFI_scripts | c4fd5a11de6d12a2b9f315c9fcec80f13306eadc | [
"MIT"
] | null | null | null | testfiles.py | avarchival/IFI_scripts | c4fd5a11de6d12a2b9f315c9fcec80f13306eadc | [
"MIT"
] | 1 | 2020-07-09T06:14:31.000Z | 2020-07-09T06:14:31.000Z | #!/usr/bin/env python
import sys
import subprocess
input_dir = sys.argv[1]
subprocess.call(['ffmpeg', '-f', 'lavfi', '-i', 'testsrc', '-c:v', 'prores', '-t', '20', input_dir + 'bars.mov'])
subprocess.call(['ffmpeg', '-f', 'lavfi', '-i', 'mandelbrot', '-c:v', 'prores', '-t', '20', input_dir + 'mandel.mov'])
subprocess... | 42.1 | 118 | 0.574822 | 61 | 421 | 3.901639 | 0.442623 | 0.134454 | 0.252101 | 0.264706 | 0.605042 | 0.605042 | 0.491597 | 0 | 0 | 0 | 0 | 0.018717 | 0.111639 | 421 | 9 | 119 | 46.777778 | 0.617647 | 0.047506 | 0 | 0 | 0 | 0 | 0.335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dab35101a6c5c05d91503ff542d6ea92cc583540 | 175 | py | Python | tests/unit/servicemanager/test_service_manager_config.py | pauleveritt/predico | 2bbf88a7775d31907d2229a32a89490172acd988 | [
"Apache-2.0"
] | null | null | null | tests/unit/servicemanager/test_service_manager_config.py | pauleveritt/predico | 2bbf88a7775d31907d2229a32a89490172acd988 | [
"Apache-2.0"
] | null | null | null | tests/unit/servicemanager/test_service_manager_config.py | pauleveritt/predico | 2bbf88a7775d31907d2229a32a89490172acd988 | [
"Apache-2.0"
] | null | null | null | def test_construction(sm_config):
assert True is sm_config.debug
viewservice_config = sm_config.serviceconfigs['viewservice']
assert 99 == viewservice_config.flag
| 35 | 64 | 0.782857 | 22 | 175 | 5.954545 | 0.590909 | 0.183206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.142857 | 175 | 4 | 65 | 43.75 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0.062857 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dacff077f78bc298c897cfb85f0c84e121c08db4 | 1,154 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/draw_buffers2.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/draw_buffers2.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GL/EXT/draw_buffers2.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import... | 34.969697 | 115 | 0.780763 | 171 | 1,154 | 4.976608 | 0.362573 | 0.014101 | 0.049354 | 0.06463 | 0.40658 | 0.292597 | 0.240893 | 0.192714 | 0.192714 | 0.192714 | 0 | 0.001931 | 0.102253 | 1,154 | 32 | 116 | 36.0625 | 0.819498 | 0.086655 | 0 | 0.296296 | 1 | 0 | 0.039409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259259 | false | 0.222222 | 0.222222 | 0.037037 | 0.518519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
daea5615d7b4624359a53f63eb11b2e71d75d534 | 163 | py | Python | flask-app/app/app/core/cors.py | mcelisr1/flask-docker-backend-stack | 07c640401c42db843ba3e77bba460224591506ab | [
"MIT"
] | 2 | 2019-04-30T23:48:36.000Z | 2019-07-17T15:26:57.000Z | flask-app/app/app/core/cors.py | mcelisr1/flask-docker-backend-stack | 07c640401c42db843ba3e77bba460224591506ab | [
"MIT"
] | null | null | null | flask-app/app/app/core/cors.py | mcelisr1/flask-docker-backend-stack | 07c640401c42db843ba3e77bba460224591506ab | [
"MIT"
] | null | null | null | # Import installed packages
from flask_cors import CORS
# Import app code
from app.main import app
# Anything
CORS(app, origins='*', supports_credentials=True)
| 16.3 | 49 | 0.773006 | 23 | 163 | 5.391304 | 0.608696 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147239 | 163 | 9 | 50 | 18.111111 | 0.892086 | 0.306748 | 0 | 0 | 0 | 0 | 0.009174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
daf8757a94e754756c4365318728a4d73811b19c | 1,037 | py | Python | memoizit/storage/redis_backend.py | blixhavn/advanced-memoize | 663846fb2b92b21989d4bc0596bc559337012b13 | [
"MIT"
] | 1 | 2022-03-07T19:50:28.000Z | 2022-03-07T19:50:28.000Z | memoizit/storage/redis_backend.py | blixhavn/advanced-memoize | 663846fb2b92b21989d4bc0596bc559337012b13 | [
"MIT"
] | 1 | 2021-09-17T11:11:55.000Z | 2021-09-17T11:11:55.000Z | memoizit/storage/redis_backend.py | blixhavn/memoizit | 663846fb2b92b21989d4bc0596bc559337012b13 | [
"MIT"
] | null | null | null | import os
from typing import Any, List, Optional
import redis
from .backend import StorageBackend
class RedisBackend(StorageBackend):
def __init__(self, **kwargs):
env_host = os.getenv("REDIS_HOST", "localhost")
env_port = os.getenv("REDIS_PORT", "6379")
env_username = os.getenv("REDIS_U... | 29.628571 | 82 | 0.641273 | 135 | 1,037 | 4.785185 | 0.311111 | 0.04644 | 0.080495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004951 | 0.220829 | 1,037 | 34 | 83 | 30.5 | 0.794554 | 0 | 0 | 0 | 0 | 0 | 0.082932 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0.083333 | 0.166667 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
97103a6af9f7de0afc85bdc85b7129303c7545de | 408 | py | Python | Case4/MuscleTorquesWithBspline/BsplineMuscleTorques/__init__.py | davenpi/Elastica-RL-control | 52e2f064ae59448bbb82735fa326a30b5405c667 | [
"MIT"
] | 9 | 2020-11-02T20:27:20.000Z | 2022-03-26T04:54:17.000Z | Case4/MuscleTorquesWithBspline/BsplineMuscleTorques/__init__.py | davenpi/Elastica-RL-control | 52e2f064ae59448bbb82735fa326a30b5405c667 | [
"MIT"
] | 6 | 2021-02-22T04:07:17.000Z | 2022-01-18T02:39:01.000Z | Case4/MuscleTorquesWithBspline/BsplineMuscleTorques/__init__.py | davenpi/Elastica-RL-control | 52e2f064ae59448bbb82735fa326a30b5405c667 | [
"MIT"
] | 5 | 2020-11-04T23:09:18.000Z | 2021-06-13T09:48:02.000Z | __all__ = ["MuscleTorquesWithVaryingBetaSplines"]
from elastica import IMPORT_NUMBA
if IMPORT_NUMBA:
from MuscleTorquesWithBspline.BsplineMuscleTorques.muscle_torques_with_bspline_numba import (
MuscleTorquesWithVaryingBetaSplines,
)
else:
from MuscleTorquesWithBspline.BsplineMuscleTorques.muscle... | 29.142857 | 97 | 0.818627 | 31 | 408 | 10.322581 | 0.483871 | 0.06875 | 0.3 | 0.3375 | 0.45 | 0.45 | 0.45 | 0 | 0 | 0 | 0 | 0 | 0.139706 | 408 | 13 | 98 | 31.384615 | 0.911681 | 0 | 0 | 0.2 | 0 | 0 | 0.085784 | 0.085784 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 4 |
97247eafcc761de6d523c9859df41956397dfd74 | 102 | py | Python | dotcontrol/__init__.py | mwoyuan/dotcontrol | 4a3eeff1608408e350433dde38a41e7b8660e7e0 | [
"BSD-3-Clause"
] | null | null | null | dotcontrol/__init__.py | mwoyuan/dotcontrol | 4a3eeff1608408e350433dde38a41e7b8660e7e0 | [
"BSD-3-Clause"
] | 1 | 2019-08-14T17:16:22.000Z | 2019-08-14T17:16:22.000Z | dotcontrol/__init__.py | mwoyuan/dotcontrol | 4a3eeff1608408e350433dde38a41e7b8660e7e0 | [
"BSD-3-Clause"
] | null | null | null | __version__ = '0.0.3'
from .control import Control
from .profile import Profile
from .dot import Dot
| 17 | 28 | 0.764706 | 16 | 102 | 4.625 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034884 | 0.156863 | 102 | 5 | 29 | 20.4 | 0.825581 | 0 | 0 | 0 | 0 | 0 | 0.04902 | 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 |
974afa400a5c5c92fdc3110459ce9d10faf92b41 | 155 | py | Python | examples/data/DAS_pick_3km/listFile.py | jhgeeyang/EvoDCinv | 37a1a64812d27efad395735f93491f7988da3564 | [
"MIT"
] | null | null | null | examples/data/DAS_pick_3km/listFile.py | jhgeeyang/EvoDCinv | 37a1a64812d27efad395735f93491f7988da3564 | [
"MIT"
] | null | null | null | examples/data/DAS_pick_3km/listFile.py | jhgeeyang/EvoDCinv | 37a1a64812d27efad395735f93491f7988da3564 | [
"MIT"
] | null | null | null | from os import listdir
from os.path import isfile, join
mypath = './'
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
print(onlyfiles)
| 25.833333 | 67 | 0.729032 | 25 | 155 | 4.52 | 0.56 | 0.106195 | 0.283186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148387 | 155 | 5 | 68 | 31 | 0.856061 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 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 |
975696bdf82436f100237c720114107f8fcbddf2 | 83 | py | Python | comm/apps.py | foxstarx2beijing/ajms | 9ce241ce56670f423f72ed1511f232486c5a291c | [
"MIT"
] | null | null | null | comm/apps.py | foxstarx2beijing/ajms | 9ce241ce56670f423f72ed1511f232486c5a291c | [
"MIT"
] | null | null | null | comm/apps.py | foxstarx2beijing/ajms | 9ce241ce56670f423f72ed1511f232486c5a291c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class CommConfig(AppConfig):
name = 'comm'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 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 |
97704a19136c96b4c05d79797855cbde8182f957 | 218 | py | Python | common/structure/job/result.py | actumn/jraze | a02ceeaca4373f27f26fea618dda08d69c639f58 | [
"MIT"
] | null | null | null | common/structure/job/result.py | actumn/jraze | a02ceeaca4373f27f26fea618dda08d69c639f58 | [
"MIT"
] | null | null | null | common/structure/job/result.py | actumn/jraze | a02ceeaca4373f27f26fea618dda08d69c639f58 | [
"MIT"
] | null | null | null | from typing import Optional
import deserialize
@deserialize.default('id', None)
@deserialize.default('sent', 0)
@deserialize.default('failed', 0)
class ResultJob:
id: Optional[str]
sent: int
failed: int
| 16.769231 | 33 | 0.715596 | 27 | 218 | 5.777778 | 0.555556 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0.16055 | 218 | 12 | 34 | 18.166667 | 0.84153 | 0 | 0 | 0 | 0 | 0 | 0.055046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
97832769fc4d314e483e4313da050ea784c309ec | 134,681 | py | Python | etl/parsers/etw/Microsoft_WindowsPhone_CoreUIComponents.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 104 | 2020-03-04T14:31:31.000Z | 2022-03-28T02:59:36.000Z | etl/parsers/etw/Microsoft_WindowsPhone_CoreUIComponents.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 7 | 2020-04-20T09:18:39.000Z | 2022-03-19T17:06:19.000Z | etl/parsers/etw/Microsoft_WindowsPhone_CoreUIComponents.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 16 | 2020-03-05T18:55:59.000Z | 2022-03-01T10:19:28.000Z | # -*- coding: utf-8 -*-
"""
Microsoft-WindowsPhone-CoreUIComponents
GUID : a0b7550f-4e9a-4f03-ad41-b8042d06a2f7
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Si... | 29.069933 | 123 | 0.688768 | 14,793 | 134,681 | 6.084905 | 0.046914 | 0.128547 | 0.226487 | 0.122425 | 0.935854 | 0.934932 | 0.621726 | 0.620481 | 0.610638 | 0.606983 | 0 | 0.1748 | 0.185891 | 134,681 | 4,632 | 124 | 29.076209 | 0.646158 | 0.000787 | 0 | 0.511912 | 0 | 0 | 0.218985 | 0.149198 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001418 | 0 | 0.313386 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
97b3ad8c16eebf5cd62d2b3dc8e7773aab216b9e | 63 | py | Python | enthought/pyface/viewer/tree_label_provider.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 3 | 2016-12-09T06:05:18.000Z | 2018-03-01T13:00:29.000Z | enthought/pyface/viewer/tree_label_provider.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | 1 | 2020-12-02T00:51:32.000Z | 2020-12-02T08:48:55.000Z | enthought/pyface/viewer/tree_label_provider.py | enthought/etsproxy | 4aafd628611ebf7fe8311c9d1a0abcf7f7bb5347 | [
"BSD-3-Clause"
] | null | null | null | # proxy module
from pyface.viewer.tree_label_provider import *
| 21 | 47 | 0.825397 | 9 | 63 | 5.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 63 | 2 | 48 | 31.5 | 0.892857 | 0.190476 | 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 |
97c989bebf40da73a6097b2f07e95794c95ce92b | 915 | py | Python | aiotdlib/api/functions/join_chat.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 37 | 2021-05-04T10:41:41.000Z | 2022-03-30T13:48:05.000Z | aiotdlib/api/functions/join_chat.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 13 | 2021-07-17T19:54:51.000Z | 2022-02-26T06:50:00.000Z | aiotdlib/api/functions/join_chat.py | jraylan/aiotdlib | 4528fcfca7c5c69b54a878ce6ce60e934a2dcc73 | [
"MIT"
] | 7 | 2021-09-22T21:27:11.000Z | 2022-02-20T02:33:19.000Z | # =============================================================================== #
# #
# This file has been generated automatically!! Do not change this manually! #
# ... | 32.678571 | 111 | 0.427322 | 78 | 915 | 4.910256 | 0.705128 | 0.046997 | 0.052219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.336612 | 915 | 27 | 112 | 33.888889 | 0.630972 | 0.62623 | 0 | 0 | 1 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
8adcb8388dfcc5f236cfe594d8f5d6c7889fd156 | 123 | py | Python | python/screens/ContinuePrompt.py | ramity/apexcv | f3da9bd8f9b7c7cbc26d04011cfa1a4af7381ed7 | [
"Unlicense"
] | 13 | 2019-04-16T15:39:30.000Z | 2022-02-23T20:59:48.000Z | python/screens/ContinuePrompt.py | ramity/apexcv | f3da9bd8f9b7c7cbc26d04011cfa1a4af7381ed7 | [
"Unlicense"
] | 10 | 2019-04-26T23:41:00.000Z | 2019-04-28T01:14:34.000Z | python/screens/ContinuePrompt.py | ramity/apexcv | f3da9bd8f9b7c7cbc26d04011cfa1a4af7381ed7 | [
"Unlicense"
] | null | null | null | import cv2
import pytesseract
from Base import Base
class ContinuePrompt(Base):
def __init__(self):
| 13.666667 | 28 | 0.666667 | 14 | 123 | 5.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011364 | 0.284553 | 123 | 8 | 29 | 15.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.6 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
8afd24d2b4b01910291bd4299f4635975da3df88 | 89 | py | Python | pinry/wsgi.py | nickali/pinry | 5e0c9ee79a70c4997810c6e6b51a460db4fe4fa0 | [
"BSD-2-Clause"
] | 1,193 | 2015-01-04T15:48:41.000Z | 2022-03-31T21:17:59.000Z | pinry/wsgi.py | nickali/pinry | 5e0c9ee79a70c4997810c6e6b51a460db4fe4fa0 | [
"BSD-2-Clause"
] | 201 | 2015-01-17T09:12:01.000Z | 2022-03-29T03:04:15.000Z | pinry/wsgi.py | nickali/pinry | 5e0c9ee79a70c4997810c6e6b51a460db4fe4fa0 | [
"BSD-2-Clause"
] | 234 | 2015-01-05T18:57:32.000Z | 2022-03-08T11:17:52.000Z | from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
| 17.8 | 49 | 0.842697 | 12 | 89 | 5.916667 | 0.583333 | 0.197183 | 0.507042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101124 | 89 | 4 | 50 | 22.25 | 0.8875 | 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 | 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 |
c10068c5667786d9f87da3f271d4d17b459f589e | 81 | py | Python | heater/utils.py | dsilvers/hangar | 3190b05422a59a22f1fa4fd46cdec322b7f58953 | [
"BSD-3-Clause"
] | null | null | null | heater/utils.py | dsilvers/hangar | 3190b05422a59a22f1fa4fd46cdec322b7f58953 | [
"BSD-3-Clause"
] | null | null | null | heater/utils.py | dsilvers/hangar | 3190b05422a59a22f1fa4fd46cdec322b7f58953 | [
"BSD-3-Clause"
] | null | null | null | def bool_to_switch_state(bool):
if bool:
return "ON"
return "OFF" | 20.25 | 31 | 0.617284 | 12 | 81 | 3.916667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.283951 | 81 | 4 | 32 | 20.25 | 0.810345 | 0 | 0 | 0 | 0 | 0 | 0.060976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 |
c1081ebe9e36919896ee8dec2056e56c7c510d0b | 181 | py | Python | siga/sensibilizacao/forms.py | JenniferAmaral/DjangoSpike | 768237bb0f3cffe7bbdbcab38a8bae6faa78e495 | [
"Apache-2.0"
] | null | null | null | siga/sensibilizacao/forms.py | JenniferAmaral/DjangoSpike | 768237bb0f3cffe7bbdbcab38a8bae6faa78e495 | [
"Apache-2.0"
] | 2 | 2021-03-19T03:21:17.000Z | 2021-03-30T13:24:07.000Z | siga/sensibilizacao/forms.py | JenniferAmaral/DjangoSpike | 768237bb0f3cffe7bbdbcab38a8bae6faa78e495 | [
"Apache-2.0"
] | null | null | null | from django import forms
from sensibilizacao.models import Palestra
class CreatePalestraForm(forms.ModelForm):
class Meta:
model = Palestra
fields = '__all__'
| 20.111111 | 42 | 0.723757 | 19 | 181 | 6.684211 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220994 | 181 | 8 | 43 | 22.625 | 0.900709 | 0 | 0 | 0 | 0 | 0 | 0.038674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c160a69875c5aecf762b40093ed18ba155b5ee7c | 993 | py | Python | src/skdh/sleep/__init__.py | PfizerRD/scikit-digital-health | f834a82d750d9e3cdd35f4f5692a0a388210b821 | [
"MIT"
] | 1 | 2022-03-31T20:56:49.000Z | 2022-03-31T20:56:49.000Z | src/skdh/sleep/__init__.py | PfizerRD/scikit-digital-health | f834a82d750d9e3cdd35f4f5692a0a388210b821 | [
"MIT"
] | null | null | null | src/skdh/sleep/__init__.py | PfizerRD/scikit-digital-health | f834a82d750d9e3cdd35f4f5692a0a388210b821 | [
"MIT"
] | null | null | null | """
IMU Sleep Analysis (:mod:`skdh.sleep`)
======================================
.. currentmodule:: skdh.sleep
Pipeline sleep processing
-------------------------
.. autosummary::
:toctree: generated/
Sleep
.. _sleep-metrics:
Sleep Endpoints
---------------
.. autosummary::
:toctree: generated/
... | 17.12069 | 52 | 0.654582 | 72 | 993 | 8.902778 | 0.5 | 0.084243 | 0.081123 | 0.062403 | 0.082683 | 0.082683 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164149 | 993 | 57 | 53 | 17.421053 | 0.772289 | 0.802618 | 0 | 0 | 0 | 0 | 0.074866 | 0 | 0 | 0 | 0 | 0.035088 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c1790aa82f9a7dc28f8d5fcb6213379c60d11e19 | 105 | py | Python | src/pydrs/info.py | lnls-sirius/pydrs | 4e44cf0272fcf0020139a6c176a708b4642a644a | [
"MIT"
] | null | null | null | src/pydrs/info.py | lnls-sirius/pydrs | 4e44cf0272fcf0020139a6c176a708b4642a644a | [
"MIT"
] | 1 | 2022-01-14T14:59:09.000Z | 2022-01-21T18:48:32.000Z | src/pydrs/info.py | lnls-sirius/pydrs | 4e44cf0272fcf0020139a6c176a708b4642a644a | [
"MIT"
] | 1 | 2022-01-14T14:54:14.000Z | 2022-01-14T14:54:14.000Z | __author__ = ""
__version__ = "0.0.1"
__date__ = ""
__all__ = ["__author__", "__version__", "__date__"]
| 17.5 | 51 | 0.647619 | 10 | 105 | 4 | 0.6 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033333 | 0.142857 | 105 | 5 | 52 | 21 | 0.411111 | 0 | 0 | 0 | 0 | 0 | 0.32381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c17e1c6e4431b9dbf91db5ca76d4d5a8acb76e91 | 112 | py | Python | utils.py | PitPietro/arduino-py | cd9b5da7c409cc84c24e9b366b026f3372c6dcb8 | [
"MIT"
] | null | null | null | utils.py | PitPietro/arduino-py | cd9b5da7c409cc84c24e9b366b026f3372c6dcb8 | [
"MIT"
] | null | null | null | utils.py | PitPietro/arduino-py | cd9b5da7c409cc84c24e9b366b026f3372c6dcb8 | [
"MIT"
] | null | null | null | def analog_state(analog_input):
if analog_input.read():
return 'UP'
else:
return 'DOWN'
| 18.666667 | 31 | 0.598214 | 14 | 112 | 4.571429 | 0.714286 | 0.34375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.294643 | 112 | 5 | 32 | 22.4 | 0.810127 | 0 | 0 | 0 | 0 | 0 | 0.053571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
c189402b41701bf73691c90772c3b3e2d570f82b | 63 | py | Python | framworm_client/main.py | Framworm/framworm | e17260d0e0e6c39f37be86867c3daf132e3140ec | [
"Apache-2.0"
] | 2 | 2021-05-10T17:28:17.000Z | 2021-05-13T16:03:43.000Z | framworm_client/main.py | Framworm/framworm | e17260d0e0e6c39f37be86867c3daf132e3140ec | [
"Apache-2.0"
] | null | null | null | framworm_client/main.py | Framworm/framworm | e17260d0e0e6c39f37be86867c3daf132e3140ec | [
"Apache-2.0"
] | null | null | null | #Imports
from app import app
app.app.run("0.0.0.0", port=8000) | 15.75 | 33 | 0.698413 | 14 | 63 | 3.142857 | 0.571429 | 0.136364 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0.111111 | 63 | 4 | 33 | 15.75 | 0.642857 | 0.111111 | 0 | 0 | 0 | 0 | 0.125 | 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 |
c18ca059216f09e0ad85d30842f3e254cee0062b | 519 | py | Python | examples/example1.py | pywebdata/pywebdata | 74fb3d5adcdb549008ee04de5ae284066c0db362 | [
"MIT"
] | null | null | null | examples/example1.py | pywebdata/pywebdata | 74fb3d5adcdb549008ee04de5ae284066c0db362 | [
"MIT"
] | 8 | 2015-09-07T17:48:15.000Z | 2016-01-31T19:56:28.000Z | examples/example1.py | pywebdata/pywebdata | 74fb3d5adcdb549008ee04de5ae284066c0db362 | [
"MIT"
] | null | null | null | import baseexample as be
print 'Inputs: ', be.elevation.get_input_names()
print 'Outputs: ', be.elevation.get_output_names()
print
print 'Example 1 : ', be.elevation.query(latitude=24, longitude=30)
print
print 'Example 2 : ', be.elevation.query({'latitude':24, 'longitude':30})
print
print 'Example 3 : ', be.elevatio... | 39.923077 | 116 | 0.709056 | 73 | 519 | 4.986301 | 0.342466 | 0.181319 | 0.186813 | 0.263736 | 0.546703 | 0.398352 | 0.398352 | 0.296703 | 0.296703 | 0.296703 | 0 | 0.061135 | 0.117534 | 519 | 12 | 117 | 43.25 | 0.733624 | 0 | 0 | 0.363636 | 0 | 0 | 0.364162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.909091 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
c1b7df187ceef83e26f1d99aef5f2f8e8538b94f | 398 | py | Python | backend/core/models_utils.py | SiddharthSham/flowie | 376f85cf6b0683a88f18c889f7bc18f228700817 | [
"MIT"
] | null | null | null | backend/core/models_utils.py | SiddharthSham/flowie | 376f85cf6b0683a88f18c889f7bc18f228700817 | [
"MIT"
] | 22 | 2020-07-13T08:28:06.000Z | 2020-07-15T09:15:19.000Z | backend/core/models_utils.py | Xtremilicious/flowie | 376f85cf6b0683a88f18c889f7bc18f228700817 | [
"MIT"
] | 1 | 2020-07-19T15:29:51.000Z | 2020-07-19T15:29:51.000Z | from . import models
def sample_user(name="sample_user", password="sample_user", **kwargs):
"""Create a sample user"""
return models.User.objects.create_user(name, password, **kwargs)
def sample_tracked_repo(repo_name, user=None, **kwargs):
return models.TrackedRepository.objects.create(
repo_na... | 30.615385 | 70 | 0.71608 | 54 | 398 | 5.092593 | 0.37037 | 0.181818 | 0.087273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158291 | 398 | 12 | 71 | 33.166667 | 0.820896 | 0.050251 | 0 | 0 | 0 | 0 | 0.05914 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0.285714 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
c1c2abb35e82c67af471067301cc6d342c67dbd9 | 924 | py | Python | ixian_docker/tests/modules/django/snapshots/snap_test_config.py | kreneskyp/ixian-docker | ce7a6cee2f961b8446dc3d9429a809ab5a235467 | [
"Apache-2.0"
] | null | null | null | ixian_docker/tests/modules/django/snapshots/snap_test_config.py | kreneskyp/ixian-docker | ce7a6cee2f961b8446dc3d9429a809ab5a235467 | [
"Apache-2.0"
] | null | null | null | ixian_docker/tests/modules/django/snapshots/snap_test_config.py | kreneskyp/ixian-docker | ce7a6cee2f961b8446dc3d9429a809ab5a235467 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from pysnap import Snapshot
snapshots = Snapshot()
snapshots['TestDjangoConfig.test_read[HOST] 1'] = {
'field': '0.0.0.0'
}
snapshots['TestDjangoConfig.test_read[MODULE_DIR] 1'] = {
'field': '/opt/ixi... | 22.536585 | 62 | 0.702381 | 106 | 924 | 5.924528 | 0.367925 | 0.318471 | 0.369427 | 0.420382 | 0.334395 | 0.203822 | 0.203822 | 0.203822 | 0.203822 | 0 | 0 | 0.023632 | 0.12987 | 924 | 40 | 63 | 23.1 | 0.757463 | 0.0671 | 0 | 0 | 0 | 0 | 0.590221 | 0.459837 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c1e2ddc2b6fcf1214c0b1c6b5379eac1cc67d48f | 108 | py | Python | examples/spin.py | scalabli/quo | 70b6d4129ee705930f1f8a792fc4c9247d973f9d | [
"MIT"
] | 3 | 2022-03-13T13:22:35.000Z | 2022-03-18T08:22:51.000Z | examples/spin.py | scalabli/quo | 70b6d4129ee705930f1f8a792fc4c9247d973f9d | [
"MIT"
] | 1 | 2022-03-21T16:29:54.000Z | 2022-03-21T16:29:54.000Z | examples/spin.py | scalabli/quo | 70b6d4129ee705930f1f8a792fc4c9247d973f9d | [
"MIT"
] | null | null | null | from quo.spin import Spinner
with Spinner():
import time
time.sleep(5)
print("Hello, world")
| 12 | 28 | 0.648148 | 15 | 108 | 4.666667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.240741 | 108 | 8 | 29 | 13.5 | 0.841463 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
de0388b78de81125460682fad74438dc08a6a711 | 252 | py | Python | src/trw/hparams/params_optimizer.py | civodlu/trw | b9a1cf045f61d6df9c65c014ef63b4048972dcdc | [
"MIT"
] | 3 | 2019-07-04T01:20:41.000Z | 2020-01-27T02:36:12.000Z | src/trw/hparams/params_optimizer.py | civodlu/trw | b9a1cf045f61d6df9c65c014ef63b4048972dcdc | [
"MIT"
] | null | null | null | src/trw/hparams/params_optimizer.py | civodlu/trw | b9a1cf045f61d6df9c65c014ef63b4048972dcdc | [
"MIT"
] | 2 | 2020-10-19T13:46:06.000Z | 2021-12-27T02:18:10.000Z | from abc import ABC, abstractmethod
from typing import Optional, List
from .store import RunStore, RunResult
class HyperParametersOptimizer(ABC):
@abstractmethod
def optimize(self, store: Optional[RunStore]) -> List[RunResult]:
pass
| 22.909091 | 69 | 0.75 | 28 | 252 | 6.75 | 0.571429 | 0.179894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174603 | 252 | 10 | 70 | 25.2 | 0.908654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.428571 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
a9ad43c18e5a86092f78bad4ecfca471d7295b5e | 60 | py | Python | CodeChef/Practice/testcasegenerator.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 2 | 2020-06-25T21:10:32.000Z | 2020-12-10T06:53:45.000Z | CodeChef/Practice/testcasegenerator.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | null | null | null | CodeChef/Practice/testcasegenerator.py | mishrakeshav/Competitive-Programming | b25dcfeec0fb9a9c71bf3a05644b619f4ca83dd2 | [
"MIT"
] | 3 | 2020-05-15T14:17:09.000Z | 2021-07-25T13:18:20.000Z | #for PLMU
# for i in range(200):
# print(i, end = " ") | 15 | 25 | 0.5 | 10 | 60 | 3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.3 | 60 | 4 | 25 | 15 | 0.642857 | 0.9 | 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 |
a9bb03e573e8fa51db988497f61206e1f83e9cd9 | 9 | py | Python | hello_world/01_introduction/student/hello_world.py | fthuin/INGInious_blockly_tasks | 1ec6892ab56d36dbc9ff1ea7ebc5a3d83bbcb197 | [
"Apache-2.0"
] | null | null | null | hello_world/01_introduction/student/hello_world.py | fthuin/INGInious_blockly_tasks | 1ec6892ab56d36dbc9ff1ea7ebc5a3d83bbcb197 | [
"Apache-2.0"
] | null | null | null | hello_world/01_introduction/student/hello_world.py | fthuin/INGInious_blockly_tasks | 1ec6892ab56d36dbc9ff1ea7ebc5a3d83bbcb197 | [
"Apache-2.0"
] | null | null | null | @@code@@
| 4.5 | 8 | 0.444444 | 1 | 9 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 9 | 1 | 9 | 9 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a9d346be8b0822f5ce210b28f79bd2353c50130a | 53 | py | Python | test/pytorch/__init__.py | t0kk35/d373c7 | 7780b97545e581244fb4fb74347bb1b052b9ec3f | [
"Apache-2.0"
] | 1 | 2021-07-23T18:04:55.000Z | 2021-07-23T18:04:55.000Z | test/pytorch/__init__.py | t0kk35/d373c7 | 7780b97545e581244fb4fb74347bb1b052b9ec3f | [
"Apache-2.0"
] | null | null | null | test/pytorch/__init__.py | t0kk35/d373c7 | 7780b97545e581244fb4fb74347bb1b052b9ec3f | [
"Apache-2.0"
] | null | null | null | """
Unit Tests for Pytorch stuff.
(c) 2020 d373c7
""" | 13.25 | 29 | 0.660377 | 8 | 53 | 4.375 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0.169811 | 53 | 4 | 30 | 13.25 | 0.613636 | 0.849057 | 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 |
a9f31e4b82978a7ee4f158595ff7806407129be8 | 121 | py | Python | deep_learning_zero/ch3/neural_net_matrix_dot.py | kaito0223/shakyou | 8d901b4da24fbf0c708e3eb429a57d194e9857c1 | [
"MIT"
] | null | null | null | deep_learning_zero/ch3/neural_net_matrix_dot.py | kaito0223/shakyou | 8d901b4da24fbf0c708e3eb429a57d194e9857c1 | [
"MIT"
] | null | null | null | deep_learning_zero/ch3/neural_net_matrix_dot.py | kaito0223/shakyou | 8d901b4da24fbf0c708e3eb429a57d194e9857c1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
X = np.array([1,2])
W = np.array([[1,3,5],[2,4,6]])
Y = np.dot(X,W)
print(Y) | 15.125 | 31 | 0.520661 | 28 | 121 | 2.25 | 0.678571 | 0.222222 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089109 | 0.165289 | 121 | 8 | 32 | 15.125 | 0.534653 | 0.173554 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 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 |
e70c209631aa6df8250b3dcd4b74b1dfd43fde62 | 268 | py | Python | stubs/3.2/_thread.py | TimSimpsonR/mypy | 5e6fd6335e0662b0477e1d678269f33e6f4194ba | [
"PSF-2.0"
] | 1 | 2019-06-27T11:34:27.000Z | 2019-06-27T11:34:27.000Z | stubs/3.2/_thread.py | silky/mypy | de6a8d3710df9f49109cb682f2092e4967bfb92c | [
"PSF-2.0"
] | null | null | null | stubs/3.2/_thread.py | silky/mypy | de6a8d3710df9f49109cb682f2092e4967bfb92c | [
"PSF-2.0"
] | null | null | null | # Stubs for _thread
# NOTE: These are incomplete!
from typing import Undefined, Any
def _count() -> int: pass
_dangling = Undefined(Any)
class LockType:
def acquire(self) -> None: pass
def release(self) -> None: pass
def allocate_lock() -> LockType: pass
| 17.866667 | 37 | 0.697761 | 36 | 268 | 5.083333 | 0.694444 | 0.131148 | 0.131148 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19403 | 268 | 14 | 38 | 19.142857 | 0.847222 | 0.16791 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.571429 | false | 0.571429 | 0.142857 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
e70fa91061ac92b77473c80b2313dfd71773659e | 7,620 | py | Python | Yuanjunling1/test_case/testDemo.py | yuanjunling/PycharmProjects | 087b1a30818bbe2bf3972c9340f61ca4b792eb7d | [
"bzip2-1.0.6"
] | null | null | null | Yuanjunling1/test_case/testDemo.py | yuanjunling/PycharmProjects | 087b1a30818bbe2bf3972c9340f61ca4b792eb7d | [
"bzip2-1.0.6"
] | null | null | null | Yuanjunling1/test_case/testDemo.py | yuanjunling/PycharmProjects | 087b1a30818bbe2bf3972c9340f61ca4b792eb7d | [
"bzip2-1.0.6"
] | null | null | null | # -*- coding:utf-8 -*-
import os
import unittest
from appium import webdriver
from time import sleep
from random import choice
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
import time,random,HTMLTestRunner
#... | 41.639344 | 129 | 0.687402 | 1,118 | 7,620 | 4.400716 | 0.159213 | 0.132114 | 0.217683 | 0.243293 | 0.699187 | 0.691057 | 0.680285 | 0.680285 | 0.673374 | 0.673374 | 0 | 0.021219 | 0.17126 | 7,620 | 182 | 130 | 41.868132 | 0.757561 | 0.125853 | 0 | 0.513274 | 0 | 0 | 0.314031 | 0.275023 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.079646 | null | null | 0.017699 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e729acd2df47e8f8f3fa16b17de660762e9b3b7d | 228 | py | Python | tests/__init__.py | umeboshi2/juriscraper | 16abceb3747947593841b1c2708de84dcc85c59d | [
"BSD-2-Clause"
] | null | null | null | tests/__init__.py | umeboshi2/juriscraper | 16abceb3747947593841b1c2708de84dcc85c59d | [
"BSD-2-Clause"
] | null | null | null | tests/__init__.py | umeboshi2/juriscraper | 16abceb3747947593841b1c2708de84dcc85c59d | [
"BSD-2-Clause"
] | 1 | 2021-03-03T00:03:16.000Z | 2021-03-03T00:03:16.000Z | import juriscraper
import os
JURISCRAPER_ROOT = os.path.realpath(
os.path.join(
os.path.realpath(juriscraper.__file__),
'..'
)
)
TESTS_ROOT = os.path.realpath(os.path.join(JURISCRAPER_ROOT, '../tests'))
| 20.727273 | 73 | 0.671053 | 28 | 228 | 5.214286 | 0.321429 | 0.205479 | 0.287671 | 0.246575 | 0.383562 | 0.383562 | 0.383562 | 0 | 0 | 0 | 0 | 0 | 0.179825 | 228 | 10 | 74 | 22.8 | 0.780749 | 0 | 0 | 0 | 0 | 0 | 0.04386 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 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 |
e72a124af9ed664f75566ab369dcbbdf1029c2f9 | 290 | py | Python | ope-backend/src/domain/dto/order_dto.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | 2 | 2021-08-12T23:31:38.000Z | 2021-08-24T11:16:53.000Z | ope-backend/src/domain/dto/order_dto.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | 1 | 2021-09-16T18:17:23.000Z | 2021-09-16T18:17:23.000Z | ope-backend/src/domain/dto/order_dto.py | clauddio-silva/ope-1 | 8be8a10c0db3d2f17e8e90a594abdf5770d53fa3 | [
"CC0-1.0"
] | 6 | 2021-08-23T23:19:53.000Z | 2021-11-30T23:24:12.000Z | from flask_restx import fields
Order = {
'id': fields.Integer(readonly=True),
'consumed_in': fields.Integer(required=True),
'table': fields.Integer(required=False),
'payment_method': fields.Integer(required=True),
'obs': fields.String(required=False, max_length=200)
}
| 29 | 56 | 0.710345 | 36 | 290 | 5.611111 | 0.611111 | 0.257426 | 0.311881 | 0.247525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012 | 0.137931 | 290 | 9 | 57 | 32.222222 | 0.796 | 0 | 0 | 0 | 0 | 0 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e74139db4320c911626d99f84b62c0be5e14118a | 404 | py | Python | coreapp/apps.py | Quanscendence/braynai | ab828ca95571c6dffef2b2392522e6a4160a2304 | [
"MIT"
] | null | null | null | coreapp/apps.py | Quanscendence/braynai | ab828ca95571c6dffef2b2392522e6a4160a2304 | [
"MIT"
] | null | null | null | coreapp/apps.py | Quanscendence/braynai | ab828ca95571c6dffef2b2392522e6a4160a2304 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from actstream import registry
from django.contrib.auth.models import User
from coreapp.models import Project
class CoreappConfig(AppConfig):
name = 'coreapp'
def ready(self):
registry.register(User,self.get_model('ProjectType'),self.get_model('Project'),self.get_model... | 40.4 | 184 | 0.782178 | 52 | 404 | 5.980769 | 0.5 | 0.11254 | 0.192926 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101485 | 404 | 9 | 185 | 44.888889 | 0.856749 | 0 | 0 | 0 | 0 | 0 | 0.160891 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e746b02b93407310f9ffdd307b7238ea35081615 | 118 | py | Python | neuralcoref/__init__.py | cclauss/neuralcoref | a76f1cc22e39b1dd16f3df4a3b6d1b74ce628639 | [
"MIT"
] | 1 | 2019-04-03T12:08:48.000Z | 2019-04-03T12:08:48.000Z | neuralcoref/__init__.py | Sivaneshmsc/neuralcoref | 8c266c4ec9a5532c4998a85a21fbf2bbfc3b1485 | [
"MIT"
] | null | null | null | neuralcoref/__init__.py | Sivaneshmsc/neuralcoref | 8c266c4ec9a5532c4998a85a21fbf2bbfc3b1485 | [
"MIT"
] | null | null | null | # coding: utf8
from __future__ import unicode_literals
from .neuralcoref import NeuralCoref
__all__ = ['NeuralCoref'] | 23.6 | 39 | 0.813559 | 13 | 118 | 6.692308 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.118644 | 118 | 5 | 40 | 23.6 | 0.826923 | 0.101695 | 0 | 0 | 0 | 0 | 0.104762 | 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 |
e75ae9fafaf84bb0f03db119e7d8294001066284 | 214 | py | Python | pytorch_nn_tools/memory/memory.py | serge-m/pytorch_nn_tools | 55204c31285089e294875226a01971f6bae86b0d | [
"MIT"
] | null | null | null | pytorch_nn_tools/memory/memory.py | serge-m/pytorch_nn_tools | 55204c31285089e294875226a01971f6bae86b0d | [
"MIT"
] | null | null | null | pytorch_nn_tools/memory/memory.py | serge-m/pytorch_nn_tools | 55204c31285089e294875226a01971f6bae86b0d | [
"MIT"
] | null | null | null | import torch
from torch import nn
from typing import Tuple
def dummy_batch(m: nn.Module, size: Tuple) -> torch.Tensor:
return next(m.parameters()).new_empty(size=size).requires_grad_(False).uniform_(-1., 1.)
| 26.75 | 92 | 0.742991 | 34 | 214 | 4.529412 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.121495 | 214 | 7 | 93 | 30.571429 | 0.808511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
e77d4ef3aec8040357f6920057ce02bfa67b23b5 | 953 | py | Python | lib/systems/guanine.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/guanine.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | lib/systems/guanine.py | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | import pulsar as psr
def load_ref_system():
""" Returns guanine as found in the IQMol fragment library.
All credit to https://github.com/nutjunkie/IQmol
"""
return psr.make_system("""
N 1.9866 1.1836 -0.0283
C 2.8388 0.1449 -0.0508
N 2.1080 ... | 39.708333 | 63 | 0.41553 | 141 | 953 | 2.787234 | 0.567376 | 0.015267 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.484848 | 0.480588 | 953 | 23 | 64 | 41.434783 | 0.309091 | 0.109129 | 0 | 0 | 0 | 0 | 0.898673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | true | 0 | 0.05 | 0 | 0.15 | 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 |
e797a1282fd34f696a7c0bb4bcb09613e05564cd | 21,222 | py | Python | tests/python-opcua/tests/tests_subscriptions.py | iit-danieli-joint-lab/opcua-modeling-tool | f8c3d940a61334b0e6deda9099844a6b429d7c08 | [
"MIT"
] | 32 | 2018-03-27T12:25:24.000Z | 2022-01-11T21:20:06.000Z | tests/python-opcua/tests/tests_subscriptions.py | iit-danieli-joint-lab/opcua-modeling-tool | f8c3d940a61334b0e6deda9099844a6b429d7c08 | [
"MIT"
] | 5 | 2018-04-09T07:35:54.000Z | 2020-03-10T11:04:45.000Z | tests/python-opcua/tests/tests_subscriptions.py | iit-danieli-joint-lab/opcua-modeling-tool | f8c3d940a61334b0e6deda9099844a6b429d7c08 | [
"MIT"
] | 12 | 2018-06-04T20:06:06.000Z | 2021-07-02T22:09:53.000Z |
from concurrent.futures import Future, TimeoutError
import time
from datetime import datetime, timedelta
import opcua
from opcua import ua
class SubHandler():
"""
Dummy subscription client
"""
def datachange_notification(self, node, val, data):
pass
def event_notification(self, event)... | 36.091837 | 178 | 0.636933 | 2,531 | 21,222 | 5.216515 | 0.101146 | 0.063622 | 0.03734 | 0.041657 | 0.801712 | 0.748921 | 0.72226 | 0.682496 | 0.645232 | 0.626221 | 0 | 0.023278 | 0.259118 | 21,222 | 587 | 179 | 36.153322 | 0.816447 | 0.065639 | 0 | 0.644342 | 0 | 0 | 0.04356 | 0.007846 | 0 | 0 | 0 | 0 | 0.17321 | 1 | 0.080831 | false | 0.004619 | 0.011547 | 0 | 0.103926 | 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 |
e7d2b6ad2494754d6e9931487c2afe465719b822 | 5,490 | py | Python | tap_ranking/search_data.py | andyrenpanlong/taptap_ranking | 2a08a8e336f213b2e177d30a603b3cceacd10fbf | [
"MIT"
] | null | null | null | tap_ranking/search_data.py | andyrenpanlong/taptap_ranking | 2a08a8e336f213b2e177d30a603b3cceacd10fbf | [
"MIT"
] | null | null | null | tap_ranking/search_data.py | andyrenpanlong/taptap_ranking | 2a08a8e336f213b2e177d30a603b3cceacd10fbf | [
"MIT"
] | null | null | null | from pymongo import MongoClient
import json
import re
from .apk_pure import search_game_url
def add_index(result):
lists = []
if len(result) > 0:
keys = result[0].keys()
for i in range(0, len(result), 1):
dataobj = {}
for j in keys:
if j != "_id":
... | 31.734104 | 94 | 0.531876 | 655 | 5,490 | 4.274809 | 0.128244 | 0.070714 | 0.055714 | 0.0825 | 0.735714 | 0.735714 | 0.734643 | 0.715357 | 0.685357 | 0.671786 | 0 | 0.047119 | 0.288707 | 5,490 | 172 | 95 | 31.918605 | 0.66991 | 0.086339 | 0 | 0.619048 | 0 | 0 | 0.109556 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07483 | false | 0.013605 | 0.027211 | 0 | 0.183673 | 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 |
e7e2a28f01df59621dd44cbbd23be3dd2544084e | 1,965 | py | Python | DataCleaning/Filters.py | actuatech/fuel-tourism | 60e6953cdcccf164e5cd03916a1c3b3c2b071a85 | [
"MIT"
] | null | null | null | DataCleaning/Filters.py | actuatech/fuel-tourism | 60e6953cdcccf164e5cd03916a1c3b3c2b071a85 | [
"MIT"
] | null | null | null | DataCleaning/Filters.py | actuatech/fuel-tourism | 60e6953cdcccf164e5cd03916a1c3b3c2b071a85 | [
"MIT"
] | null | null | null | from datetime import datetime
import pandas as pd
import logging
info_logger = logging.getLogger('info_logger' + '.Filters')
def filter_by_year_greater_or_equal_than(registre_df: pd.DataFrame, colname: str, date) -> pd.DataFrame:
return registre_df[registre_df[colname] >= date]
def keep_row_if_na_in_column(re... | 40.9375 | 105 | 0.751654 | 258 | 1,965 | 5.445736 | 0.25969 | 0.142349 | 0.130961 | 0.170819 | 0.580071 | 0.495374 | 0.345196 | 0.264769 | 0.233452 | 0.233452 | 0 | 0.001182 | 0.138931 | 1,965 | 47 | 106 | 41.808511 | 0.829196 | 0.03715 | 0 | 0 | 0 | 0 | 0.149787 | 0.026119 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.103448 | 0.103448 | 0.517241 | 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 |
99ba7475873db9cd1ea15016c57758b9458c0d1b | 211 | py | Python | cellx/__init__.py | pranav-bhamidipati/cell-lattices | bb1def983b4833157087814fe9636164ec520046 | [
"MIT"
] | null | null | null | cellx/__init__.py | pranav-bhamidipati/cell-lattices | bb1def983b4833157087814fe9636164ec520046 | [
"MIT"
] | null | null | null | cellx/__init__.py | pranav-bhamidipati/cell-lattices | bb1def983b4833157087814fe9636164ec520046 | [
"MIT"
] | null | null | null | from . import utils
from . import geom
from . import graph
from . import viz
from . import poly
from .cellx import *
__author__ = 'Pranav Bhamidipati'
__email__ = 'pbhamidi@caltech.edu'
__version__ = '0.0.1'
| 16.230769 | 34 | 0.729858 | 29 | 211 | 4.896552 | 0.62069 | 0.352113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.175355 | 211 | 12 | 35 | 17.583333 | 0.798851 | 0 | 0 | 0 | 0 | 0 | 0.204762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
99da040a8fa32449f6c5f34c906eb472048c6cbd | 122 | py | Python | git_stacktrace/__init__.py | pinterest/git-stacktrace | 6150778836ca1314a19c5d95f60430c5768baf2e | [
"Apache-2.0"
] | 154 | 2016-07-29T21:56:29.000Z | 2021-04-04T05:56:12.000Z | git_stacktrace/__init__.py | pinterest/git-stacktrace | 6150778836ca1314a19c5d95f60430c5768baf2e | [
"Apache-2.0"
] | 12 | 2016-08-01T21:13:07.000Z | 2021-09-17T03:34:37.000Z | git_stacktrace/__init__.py | pinterest/git-stacktrace | 6150778836ca1314a19c5d95f60430c5768baf2e | [
"Apache-2.0"
] | 22 | 2016-08-02T13:35:15.000Z | 2022-01-05T15:22:02.000Z | import pkg_resources
__version__ = pkg_resources.get_provider(pkg_resources.Requirement.parse("git-stacktrace")).version
| 30.5 | 99 | 0.852459 | 15 | 122 | 6.4 | 0.666667 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04918 | 122 | 3 | 100 | 40.666667 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 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 |
412dfbcf55db0fed01f499cd5f27a83813ffae1b | 131 | py | Python | python/testData/resolve/GoogleDocstringParamType.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/resolve/GoogleDocstringParamType.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/resolve/GoogleDocstringParamType.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | from datetime import datetime
def f(param):
"""
Parameters:
param (datetime) : timestamp
<ref>
""" | 16.375 | 34 | 0.534351 | 12 | 131 | 5.833333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.351145 | 131 | 8 | 35 | 16.375 | 0.823529 | 0.442748 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4187fc2aee091091b3141d256e759ebfef068fa1 | 103 | py | Python | sandbox/partner/apps.py | Bastilla123/shop2 | b2a7ded5b39d0228fadfdb1c9e1fbd3ab0e4cfba | [
"BSD-3-Clause"
] | null | null | null | sandbox/partner/apps.py | Bastilla123/shop2 | b2a7ded5b39d0228fadfdb1c9e1fbd3ab0e4cfba | [
"BSD-3-Clause"
] | 12 | 2021-12-01T11:05:47.000Z | 2022-03-01T11:06:09.000Z | sandbox/partner/apps.py | Bastilla123/shop2 | b2a7ded5b39d0228fadfdb1c9e1fbd3ab0e4cfba | [
"BSD-3-Clause"
] | null | null | null | import oscar.apps.partner.apps as apps
class PartnerConfig(apps.PartnerConfig):
name = 'partner'
| 17.166667 | 40 | 0.757282 | 13 | 103 | 6 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145631 | 103 | 5 | 41 | 20.6 | 0.886364 | 0 | 0 | 0 | 0 | 0 | 0.067961 | 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 |
419164c1dded7f9e1dea744e43c29c9e2215d5d8 | 256 | py | Python | word2vec/wordclusters.py | fangyw/word2vec | 37308f1ffab15249d884d2be32ea5df1f28750dd | [
"Apache-2.0"
] | 1 | 2017-09-01T06:28:05.000Z | 2017-09-01T06:28:05.000Z | word2vec/wordclusters.py | fangyw/word2vec | 37308f1ffab15249d884d2be32ea5df1f28750dd | [
"Apache-2.0"
] | null | null | null | word2vec/wordclusters.py | fangyw/word2vec | 37308f1ffab15249d884d2be32ea5df1f28750dd | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import numpy as np
class WordClusters(object):
def __init__(self, vocab, clusters):
self.vocab = vocab
self.clusters = clusters
def __getitem__(self, cluster):
return self.vocab[self.clusters == cluster]
| 19.692308 | 51 | 0.660156 | 31 | 256 | 5.193548 | 0.580645 | 0.167702 | 0.21118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005155 | 0.242188 | 256 | 12 | 52 | 21.333333 | 0.824742 | 0.050781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
68cddd02efe084e095472b5d71dc9ea12a2a4877 | 145 | py | Python | camera_interface.py | EmilRyberg/P6BinPicking | c33b650db3ae16c56d46d12bfbc59d26c0d9e6aa | [
"MIT"
] | 1 | 2021-08-04T16:18:22.000Z | 2021-08-04T16:18:22.000Z | camera_interface.py | EmilRyberg/P6BinPicking | c33b650db3ae16c56d46d12bfbc59d26c0d9e6aa | [
"MIT"
] | null | null | null | camera_interface.py | EmilRyberg/P6BinPicking | c33b650db3ae16c56d46d12bfbc59d26c0d9e6aa | [
"MIT"
] | 1 | 2021-08-03T03:41:41.000Z | 2021-08-03T03:41:41.000Z | class CameraInterface:
def get_image(self):
raise NotImplementedError()
def get_depth(self):
raise NotImplementedError() | 24.166667 | 35 | 0.689655 | 14 | 145 | 7 | 0.642857 | 0.122449 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234483 | 145 | 6 | 36 | 24.166667 | 0.882883 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ec1fbadafc921c1370e38fe5d6a6b4efbec0fe12 | 24 | py | Python | data/studio21_generated/introductory/2969/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/2969/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/2969/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def advice(agents, n):
| 12 | 22 | 0.666667 | 4 | 24 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 24 | 2 | 23 | 12 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ec3f4f619c173111c5e657837c0e50fcbdece18e | 590 | py | Python | waitlist/blueprints/settings/__init__.py | kimnnmadsen/eve-inc-waitlist | c3e4853c5563a95edbf105c11e73d481595fb3ab | [
"MIT"
] | null | null | null | waitlist/blueprints/settings/__init__.py | kimnnmadsen/eve-inc-waitlist | c3e4853c5563a95edbf105c11e73d481595fb3ab | [
"MIT"
] | 1 | 2020-02-18T05:11:20.000Z | 2020-02-18T05:29:10.000Z | waitlist/blueprints/settings/__init__.py | kimnnmadsen/eve-inc-waitlist | c3e4853c5563a95edbf105c11e73d481595fb3ab | [
"MIT"
] | null | null | null | from typing import Callable, Tuple, List
from waitlist.base import app
from flask_babel import lazy_gettext
from flask.helpers import url_for
__settings_menu: List[Tuple[str, str, Callable[[], bool]]] = []
def __get__menu_entry_key(entry: Tuple[str, str, Callable[[], bool]]):
return entry[1]
def add_menu_ent... | 26.818182 | 81 | 0.761017 | 84 | 590 | 4.940476 | 0.416667 | 0.144578 | 0.053012 | 0.091566 | 0.110843 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001942 | 0.127119 | 590 | 21 | 82 | 28.095238 | 0.803884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0.153846 | 0.692308 | 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 |
ec49dae95b6219fdbc3bf67e60d619bc70b7ff6e | 429 | py | Python | MySQLdb/exceptions.py | montag451/mysql-ctypes | feb1c9a15f41748d51caee8eab3f011fb35634c1 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-01T20:39:18.000Z | 2015-11-01T22:15:17.000Z | MySQLdb/exceptions.py | amit2014/mysql-ctypes | 32d79b05c2394875ed9dec45eac69ede3bc45384 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | MySQLdb/exceptions.py | amit2014/mysql-ctypes | 32d79b05c2394875ed9dec45eac69ede3bc45384 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | class Warning(StandardError):
pass
class Error(StandardError):
pass
class InterfaceError(Error):
pass
class DatabaseError(Error):
pass
class DataError(DatabaseError):
pass
class OperationalError(DatabaseError):
pass
class IntegrityError(DatabaseError):
pass
class InternalError(DatabaseError... | 19.5 | 39 | 0.764569 | 40 | 429 | 8.2 | 0.325 | 0.246951 | 0.335366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165501 | 429 | 21 | 40 | 20.428571 | 0.916201 | 0 | 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 |
6b6336af8c41be74c01f5248f7b9821a60c99814 | 265 | py | Python | MirrorMirror/theme/__init__.py | RubanSeven/MirrorMirror | 47c7a1f458f87c536d068fcf249625f426920cc3 | [
"Apache-2.0"
] | 2 | 2021-07-07T13:21:11.000Z | 2021-09-24T06:57:16.000Z | MirrorMirror/theme/__init__.py | RubanSeven/MirrorMirror | 47c7a1f458f87c536d068fcf249625f426920cc3 | [
"Apache-2.0"
] | null | null | null | MirrorMirror/theme/__init__.py | RubanSeven/MirrorMirror | 47c7a1f458f87c536d068fcf249625f426920cc3 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
"""
@author: RubanSeven
@project: MirrorMirror
"""
from .TextBox import *
from .Button import *
from .Tab import *
from .ComboBox import *
from .Frame import *
from .SpinBox import *
from .ScrollArea import *
from .List import *
| 18.928571 | 26 | 0.660377 | 31 | 265 | 5.645161 | 0.548387 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.207547 | 265 | 13 | 27 | 20.384615 | 0.828571 | 0.241509 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6b7aa85d771a1f90fb32a1fac358e631d361bcc9 | 408 | py | Python | publish.py | millarm/django-regex-field | f9f8f41d576ac78f36159ec9408d1cf65bdb9532 | [
"MIT"
] | 110 | 2015-01-28T17:38:38.000Z | 2022-02-17T02:51:55.000Z | publish.py | millarm/django-regex-field | f9f8f41d576ac78f36159ec9408d1cf65bdb9532 | [
"MIT"
] | 31 | 2015-02-17T19:57:29.000Z | 2021-08-30T03:44:55.000Z | publish.py | millarm/django-regex-field | f9f8f41d576ac78f36159ec9408d1cf65bdb9532 | [
"MIT"
] | 33 | 2015-02-05T22:08:46.000Z | 2021-12-06T08:12:49.000Z | import subprocess
subprocess.call(['rm', '-r', 'dist/'])
subprocess.call(['pip', 'install', 'wheel'])
subprocess.call(['pip', 'install', 'twine'])
subprocess.call(['python', 'setup.py', 'clean', '--all'])
subprocess.call(['python', 'setup.py', 'register', 'sdist', 'bdist_wheel'])
subprocess.call(['twine', 'upload', 'd... | 37.090909 | 75 | 0.620098 | 48 | 408 | 5.25 | 0.416667 | 0.444444 | 0.190476 | 0.202381 | 0.519841 | 0.277778 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0.073529 | 408 | 10 | 76 | 40.8 | 0.666667 | 0 | 0 | 0.222222 | 0 | 0 | 0.335784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.111111 | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d406d390b6aaecc2f5743560ed778d49514d78c6 | 72 | py | Python | zhihu/zhihu/entrypoint.py | jfzhang95/web_spider | 9ad31d9cbbdf2a4bddfed8e649d5e0fa1b24d1b6 | [
"MIT"
] | null | null | null | zhihu/zhihu/entrypoint.py | jfzhang95/web_spider | 9ad31d9cbbdf2a4bddfed8e649d5e0fa1b24d1b6 | [
"MIT"
] | null | null | null | zhihu/zhihu/entrypoint.py | jfzhang95/web_spider | 9ad31d9cbbdf2a4bddfed8e649d5e0fa1b24d1b6 | [
"MIT"
] | 1 | 2020-05-16T06:55:36.000Z | 2020-05-16T06:55:36.000Z | from scrapy.cmdline import execute
execute(['scrapy', 'crawl', 'zhihu']) | 36 | 37 | 0.736111 | 9 | 72 | 5.888889 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 72 | 2 | 37 | 36 | 0.80303 | 0 | 0 | 0 | 0 | 0 | 0.219178 | 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 |
d43519c93c34d12b4fdad89417eca40395e1229e | 28 | py | Python | tests/conftest.py | unocongafas/staticforms | d16d298fcb4b18f2a8658ba40c1ee14e17dd8305 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | unocongafas/staticforms | d16d298fcb4b18f2a8658ba40c1ee14e17dd8305 | [
"Apache-2.0"
] | null | null | null | tests/conftest.py | unocongafas/staticforms | d16d298fcb4b18f2a8658ba40c1ee14e17dd8305 | [
"Apache-2.0"
] | null | null | null | """Global pytest config."""
| 14 | 27 | 0.642857 | 3 | 28 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107143 | 28 | 1 | 28 | 28 | 0.72 | 0.75 | 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 |
d45502b862f8729210144dc66ed0be5932ea42bd | 125 | py | Python | terrascript/provider/azurerm.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | 4 | 2022-02-07T21:08:14.000Z | 2022-03-03T04:41:28.000Z | terrascript/provider/azurerm.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | null | null | null | terrascript/provider/azurerm.py | hugovk/python-terrascript | 08fe185904a70246822f5cfbdc9e64e9769ec494 | [
"BSD-2-Clause"
] | 2 | 2022-02-06T01:49:42.000Z | 2022-02-08T14:15:00.000Z | # terrascript/provider/azurerm.py
import terrascript
class azurerm(terrascript.Provider):
pass
__all__ = ["azurerm"]
| 12.5 | 36 | 0.752 | 13 | 125 | 6.923077 | 0.615385 | 0.422222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144 | 125 | 9 | 37 | 13.888889 | 0.841122 | 0.248 | 0 | 0 | 0 | 0 | 0.076087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2e10e025ec85ad746bd50bc9a4f025823c7ccecb | 162 | py | Python | Python/Woojin/check123.py | Marius-Juston/MatLab-RL-ANFIS | 650645345dc197ca5b7069085bf95185acc40467 | [
"BSD-3-Clause"
] | null | null | null | Python/Woojin/check123.py | Marius-Juston/MatLab-RL-ANFIS | 650645345dc197ca5b7069085bf95185acc40467 | [
"BSD-3-Clause"
] | null | null | null | Python/Woojin/check123.py | Marius-Juston/MatLab-RL-ANFIS | 650645345dc197ca5b7069085bf95185acc40467 | [
"BSD-3-Clause"
] | null | null | null | from model import *
agent = torch.load('anfis_initialized.model')
print(agent.actor)
print(agent.actor.layer['fuzzify'].varmfs['distance_line'].mfdefs['mf0'].c)
| 27 | 75 | 0.753086 | 23 | 162 | 5.217391 | 0.782609 | 0.166667 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.061728 | 162 | 5 | 76 | 32.4 | 0.782895 | 0 | 0 | 0 | 0 | 0 | 0.283951 | 0.141975 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 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 |
2e1b5b2c45e094704f73979d1001727dac01b58b | 1,413 | py | Python | Main/AlphaZero/LabelGenerator.py | ikaroszhang96/Convex-AlphaZero | d96c9790529e48ff4e2ec34649bdc312a0abcc53 | [
"MIT"
] | null | null | null | Main/AlphaZero/LabelGenerator.py | ikaroszhang96/Convex-AlphaZero | d96c9790529e48ff4e2ec34649bdc312a0abcc53 | [
"MIT"
] | null | null | null | Main/AlphaZero/LabelGenerator.py | ikaroszhang96/Convex-AlphaZero | d96c9790529e48ff4e2ec34649bdc312a0abcc53 | [
"MIT"
] | null | null | null | import numpy as np
from Main.Environments.Connect4 import Constants, GetPossibleActions, Utils
# Instead of recursively returning elements we just append them to an global list
def generateLabels(root):
# validateTree(root)
# return Utils.state2ConvState(root.state, root.currentPlayer), _createPolicyLa... | 36.230769 | 119 | 0.745223 | 156 | 1,413 | 6.679487 | 0.429487 | 0.038388 | 0.057582 | 0.057582 | 0.255278 | 0.220729 | 0.220729 | 0.107486 | 0 | 0 | 0 | 0.006849 | 0.17339 | 1,413 | 38 | 120 | 37.184211 | 0.885274 | 0.33758 | 0 | 0.1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.25 | false | 0 | 0.15 | 0.15 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
2e3bcf2b02328e9c5ed4f47bd2ff3abc7a1628c7 | 93 | py | Python | Develop/subgroup2_dev/evaluates/apps.py | Youhoseong/MovieProject | c8649872a364e2e2ea1a58d6a7431f0282f8e90c | [
"MIT"
] | 11 | 2021-03-24T13:20:22.000Z | 2021-08-22T15:43:04.000Z | Develop/subgroup2_dev/evaluates/apps.py | Youhoseong/MovieProject | c8649872a364e2e2ea1a58d6a7431f0282f8e90c | [
"MIT"
] | null | null | null | Develop/subgroup2_dev/evaluates/apps.py | Youhoseong/MovieProject | c8649872a364e2e2ea1a58d6a7431f0282f8e90c | [
"MIT"
] | 5 | 2021-03-24T13:24:44.000Z | 2021-07-14T07:05:23.000Z | from django.apps import AppConfig
class EvaluatesConfig(AppConfig):
name = 'evaluates'
| 15.5 | 33 | 0.763441 | 10 | 93 | 7.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 93 | 5 | 34 | 18.6 | 0.910256 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2e4f090f4c86ca1c4a4e8500d3b0c3dfb57b4020 | 15 | py | Python | src/flyswot/__init__.py | davanstrien/flyswot | 630aa4f51c4381a7832846a7ef5be7af06a4b47b | [
"MIT"
] | 4 | 2021-08-25T10:51:09.000Z | 2022-03-21T14:12:26.000Z | src/flyswot/__init__.py | davanstrien/flyswot | 630aa4f51c4381a7832846a7ef5be7af06a4b47b | [
"MIT"
] | 171 | 2021-04-27T16:09:51.000Z | 2022-03-25T23:09:56.000Z | src/flyswot/__init__.py | davanstrien/flyswot | 630aa4f51c4381a7832846a7ef5be7af06a4b47b | [
"MIT"
] | 1 | 2021-07-28T12:38:05.000Z | 2021-07-28T12:38:05.000Z | """flyswot."""
| 7.5 | 14 | 0.466667 | 1 | 15 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 15 | 1 | 15 | 15 | 0.5 | 0.533333 | 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 |
2e535132abc0de68a52fc875934512a3511c5094 | 440 | py | Python | src/hypercorn/events.py | markojaadam/hypercorn | b6fd5e48a79e1246cc8171ea8f93dab99f2a1b5c | [
"MIT"
] | 3 | 2020-03-31T10:36:31.000Z | 2020-04-23T12:01:10.000Z | src/hypercorn/events.py | markojaadam/hypercorn | b6fd5e48a79e1246cc8171ea8f93dab99f2a1b5c | [
"MIT"
] | 6 | 2020-09-05T01:40:23.000Z | 2022-03-12T00:40:58.000Z | src/hypercorn/events.py | markojaadam/hypercorn | b6fd5e48a79e1246cc8171ea8f93dab99f2a1b5c | [
"MIT"
] | 1 | 2020-09-05T00:19:03.000Z | 2020-09-05T00:19:03.000Z | from abc import ABC
from dataclasses import dataclass
from typing import Optional, Tuple
class Event(ABC):
pass
@dataclass(frozen=True)
class RawData(Event):
data: bytes
address: Optional[Tuple[str, int]] = None
@dataclass(frozen=True)
class Closed(Event):
pass
@dataclass(frozen=True)
class Upda... | 16.923077 | 69 | 0.715909 | 60 | 440 | 5.25 | 0.566667 | 0.142857 | 0.180952 | 0.228571 | 0.177778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197727 | 440 | 25 | 70 | 17.6 | 0.892351 | 0.195455 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.2 | 0.2 | 0 | 0.6 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2e6f74e5352b82b9b4afe2383a6446f511abe92d | 98 | py | Python | cnlp/data/tokenizers/__init__.py | dovolopor-research/cnlp | a3255f9870e63654c3f7805e1c9218f69fbb35be | [
"MIT"
] | 5 | 2020-09-17T03:56:34.000Z | 2022-02-25T02:31:04.000Z | cnlp/data/tokenizers/__init__.py | dovolopor-research/cnlp | a3255f9870e63654c3f7805e1c9218f69fbb35be | [
"MIT"
] | 1 | 2020-05-12T19:38:05.000Z | 2020-05-12T19:38:05.000Z | cnlp/data/tokenizers/__init__.py | dovolopor-research/cnlp | a3255f9870e63654c3f7805e1c9218f69fbb35be | [
"MIT"
] | null | null | null | from . import mechanical
from . import tokenizer
__all__ = [
"mechanical",
"tokenizer"
]
| 12.25 | 24 | 0.663265 | 9 | 98 | 6.777778 | 0.555556 | 0.327869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.234694 | 98 | 7 | 25 | 14 | 0.813333 | 0 | 0 | 0 | 0 | 0 | 0.193878 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cf167b5e51a9cc78a4dbc81e1ef73d336458f571 | 155 | py | Python | app/main.py | AlexeyLuch/Censor | 6e7634a7cefdb876830dcf14a9e2380b41b403a1 | [
"Apache-2.0"
] | null | null | null | app/main.py | AlexeyLuch/Censor | 6e7634a7cefdb876830dcf14a9e2380b41b403a1 | [
"Apache-2.0"
] | 1 | 2020-08-28T15:04:07.000Z | 2020-08-28T15:04:07.000Z | app/main.py | AlexeyLuch/Censor | 6e7634a7cefdb876830dcf14a9e2380b41b403a1 | [
"Apache-2.0"
] | null | null | null | from app import app,db
from war.blueprint import war
import view
app.register_blueprint(war,url_prefix="/war")
if __name__ == '__main__':
app.run()
| 15.5 | 45 | 0.735484 | 24 | 155 | 4.333333 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148387 | 155 | 9 | 46 | 17.222222 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cf4eecbb77e6e23b6046355181983b3f1bc2b654 | 55,980 | py | Python | leetcode/pairs-of-songs-with-total-durations-divisible-by-60.py | zhangao0086/Python-Algorithm | 981c875b2e0f30619bd3d44e1f2bd0c47d1464a2 | [
"MIT"
] | null | null | null | leetcode/pairs-of-songs-with-total-durations-divisible-by-60.py | zhangao0086/Python-Algorithm | 981c875b2e0f30619bd3d44e1f2bd0c47d1464a2 | [
"MIT"
] | null | null | null | leetcode/pairs-of-songs-with-total-durations-divisible-by-60.py | zhangao0086/Python-Algorithm | 981c875b2e0f30619bd3d44e1f2bd0c47d1464a2 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*-coding:utf-8-*-
__author__ = "Bannings"
from typing import List
from collections import defaultdict
class Solution:
def numPairsDivisibleBy60(self, time: List[int]) -> int:
ans = 0
# counter = defaultdict(int)
counter = [0] * 60
for item in time:
... | 2,433.913043 | 55,392 | 0.733959 | 14,713 | 55,980 | 2.791749 | 0.036226 | 0.000487 | 0.002556 | 0.001753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.729911 | 0.002947 | 55,980 | 23 | 55,392 | 2,433.913043 | 0.006002 | 0.002144 | 0 | 0 | 0 | 0 | 0.000286 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.333333 | 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 |
cf6d169c20ad80c35b939ad7427cd9df1a0fe238 | 55 | py | Python | OpenCast/infra/event/__init__.py | Tastyep/Pi-OpenCast | 1ed07130c26e6dd70184446af3c9143094d0c9a0 | [
"MIT"
] | 31 | 2019-10-05T14:23:10.000Z | 2022-02-27T19:38:55.000Z | OpenCast/infra/event/__init__.py | Tastyep/RaspberryCast | 8ae8cf986b373b04c43d248ee72c77b1a29daa43 | [
"MIT"
] | 199 | 2020-08-30T16:33:03.000Z | 2022-03-28T04:10:06.000Z | OpenCast/infra/event/__init__.py | Tastyep/RaspberryCast | 8ae8cf986b373b04c43d248ee72c77b1a29daa43 | [
"MIT"
] | 1 | 2019-10-05T16:00:49.000Z | 2019-10-05T16:00:49.000Z | """ Events emitted from infrastructural components """
| 27.5 | 54 | 0.763636 | 5 | 55 | 8.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127273 | 55 | 1 | 55 | 55 | 0.875 | 0.836364 | 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 |
cf739d228892fb973944fe3af65b3bdfa69f75e6 | 32,618 | py | Python | code/examples/classifier_compression/sinreq_v2_svhn_runcode/networks/resnet18.py | he-actlab/waveq.code | 024d55af6d989d4074d3e555d03b76a2f7eac209 | [
"CNRI-Python"
] | 1 | 2020-04-09T03:21:32.000Z | 2020-04-09T03:21:32.000Z | code/examples/classifier_compression/sinreq_v2_svhn_runcode/networks/resnet18.py | he-actlab/waveq.code | 024d55af6d989d4074d3e555d03b76a2f7eac209 | [
"CNRI-Python"
] | 4 | 2020-09-26T00:53:47.000Z | 2022-02-10T01:23:34.000Z | code/examples/classifier_compression/sinreq_v2_svhn_runcode/networks/resnet18.py | sinreq-learn/sinreq-learn.code | a205d3fa22a41d5f4fc1ef1e5698c4f1dbb11e6a | [
"BSD-4-Clause-UC"
] | null | null | null | import tensorflow as tf
from .helper import *
def resnet18_noisy(input_node, netparams, err_mean, err_stddev, train_vars):
weights_noisy, biases_noisy, err_w, err_b = helper.add_noise(netparams['weights'], netparams['biases'], err_mean, err_stddev, train_vars)
mean, variance, scale, offset = netparams['mean']... | 102.572327 | 238 | 0.765498 | 4,527 | 32,618 | 5.190855 | 0.019439 | 0.025278 | 0.040214 | 0.053619 | 0.82195 | 0.771565 | 0.692668 | 0.675859 | 0.668114 | 0.622197 | 0 | 0.072407 | 0.075694 | 32,618 | 317 | 239 | 102.895899 | 0.707022 | 0.007634 | 0 | 0.346154 | 0 | 0 | 0.2428 | 0.013605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.01049 | false | 0 | 0.006993 | 0 | 0.027972 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d84fa54631eb3af09f2abc2417b2a3e8d0ba7faa | 16,102 | py | Python | webhook.py | Adivise/webhook-spam | 1c2ae66a18e191768dd8f51204d6ae7e601a4ce7 | [
"MIT"
] | null | null | null | webhook.py | Adivise/webhook-spam | 1c2ae66a18e191768dd8f51204d6ae7e601a4ce7 | [
"MIT"
] | null | null | null | webhook.py | Adivise/webhook-spam | 1c2ae66a18e191768dd8f51204d6ae7e601a4ce7 | [
"MIT"
] | null | null | null | from __future__ import unicode_literals
import os
import sys
import time
try:
import requests
except:
os.system("pip install requests")
import requests
try:
import json
except:
os.system("pip install json")
import json
try:
import ctypes
except:
os.system("pip install ctypes")
import... | 46.944606 | 1,562 | 0.640542 | 2,121 | 16,102 | 4.811881 | 0.158416 | 0.322163 | 0.477954 | 0.630218 | 0.61748 | 0.564178 | 0.55389 | 0.534098 | 0.522634 | 0.519008 | 0 | 0.016721 | 0.216309 | 16,102 | 342 | 1,563 | 47.081871 | 0.79206 | 0.02478 | 0 | 0.459459 | 0 | 0.037162 | 0.562819 | 0.153861 | 0 | 0 | 0.001019 | 0 | 0 | 1 | 0.006757 | false | 0.013514 | 0.118243 | 0 | 0.125 | 0.016892 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d86a9cfacf8dfcbd91bb0cddc50cd8c89e9542ff | 112 | py | Python | base/apps.py | SpenceChakabva/Django-Web-Gallery | 37c548b23742a338ede7fe7d32d89c349644c6a1 | [
"MIT"
] | null | null | null | base/apps.py | SpenceChakabva/Django-Web-Gallery | 37c548b23742a338ede7fe7d32d89c349644c6a1 | [
"MIT"
] | null | null | null | base/apps.py | SpenceChakabva/Django-Web-Gallery | 37c548b23742a338ede7fe7d32d89c349644c6a1 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
# Assign name of applicationg
class BaseConfig(AppConfig):
name = 'base' | 22.4 | 33 | 0.758929 | 14 | 112 | 6.071429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169643 | 112 | 5 | 34 | 22.4 | 0.913978 | 0.241071 | 0 | 0 | 0 | 0 | 0.048193 | 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 |
d86e3c693eae144ac3ff801b4e01c303fa39a4b2 | 101 | py | Python | Python/PyLearning/test2.py | Navneets060/Dev | 3a0844a98fd0609103e0fdb888f8e29144a15f22 | [
"Apache-2.0"
] | null | null | null | Python/PyLearning/test2.py | Navneets060/Dev | 3a0844a98fd0609103e0fdb888f8e29144a15f22 | [
"Apache-2.0"
] | null | null | null | Python/PyLearning/test2.py | Navneets060/Dev | 3a0844a98fd0609103e0fdb888f8e29144a15f22 | [
"Apache-2.0"
] | null | null | null |
def some_function():
for i in range(4):
yield i
for i in some_function():
print(i) | 12.625 | 25 | 0.584158 | 17 | 101 | 3.352941 | 0.588235 | 0.421053 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.306931 | 101 | 8 | 26 | 12.625 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.2 | 0.2 | 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 |
d886fac539ba3ca6b513fc61f5535e382bf053ab | 199 | py | Python | ki67/interfaces/predictions.py | jamebs/ki67 | 2de6d6ce08cd0a90a5f0c6f50dc9ca058a6fa3d1 | [
"Apache-2.0"
] | 3 | 2021-08-11T19:11:42.000Z | 2022-02-25T08:51:34.000Z | ki67/interfaces/predictions.py | jamebs/ki67 | 2de6d6ce08cd0a90a5f0c6f50dc9ca058a6fa3d1 | [
"Apache-2.0"
] | null | null | null | ki67/interfaces/predictions.py | jamebs/ki67 | 2de6d6ce08cd0a90a5f0c6f50dc9ca058a6fa3d1 | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from pandas import DataFrame
from magda.module import Module
@dataclass(frozen=True)
class Predictions(Module.Interface):
uid: str
predictions: DataFrame
| 18.090909 | 36 | 0.79397 | 24 | 199 | 6.583333 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150754 | 199 | 10 | 37 | 19.9 | 0.934911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.857143 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d88baceeb91bd34c9963c4c211ffef105132c47a | 121 | py | Python | tests/__init__.py | Lenders-Cooperative/ListmonkWrapper | 130f0487ea50729623d16c79b214365a6de7678d | [
"BSD-3-Clause"
] | null | null | null | tests/__init__.py | Lenders-Cooperative/ListmonkWrapper | 130f0487ea50729623d16c79b214365a6de7678d | [
"BSD-3-Clause"
] | null | null | null | tests/__init__.py | Lenders-Cooperative/ListmonkWrapper | 130f0487ea50729623d16c79b214365a6de7678d | [
"BSD-3-Clause"
] | null | null | null | #
# Created on Wed Dec 22 2021
#
# Copyright (c) 2021 Lenders Cooperative, a division of Summit Technology Group, Inc.
#
| 20.166667 | 85 | 0.727273 | 18 | 121 | 4.888889 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 0.190083 | 121 | 5 | 86 | 24.2 | 0.795918 | 0.909091 | 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 |
d8d93b45af50787c8fd2909a533fc9d36e104233 | 331 | py | Python | p28_test.py | alpatine/project-euler-python | d731d2deebff4bfb812811921f56da7b984652c0 | [
"MIT"
] | null | null | null | p28_test.py | alpatine/project-euler-python | d731d2deebff4bfb812811921f56da7b984652c0 | [
"MIT"
] | null | null | null | p28_test.py | alpatine/project-euler-python | d731d2deebff4bfb812811921f56da7b984652c0 | [
"MIT"
] | null | null | null | from unittest import TestCase
from p28 import p28
class P28_Test(TestCase):
def test_1(self):
self.assertEqual(p28(1), 1)
def test_2(self):
self.assertEqual(p28(2), 25)
def test_3(self):
self.assertEqual(p28(3), 101)
def test_501(self):
self.assertEqual(p28(501), ... | 20.6875 | 45 | 0.634441 | 48 | 331 | 4.270833 | 0.354167 | 0.136585 | 0.370732 | 0.429268 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164659 | 0.247734 | 331 | 15 | 46 | 22.066667 | 0.658635 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 1 | 0.363636 | false | 0 | 0.181818 | 0 | 0.636364 | 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 | 0 | 1 | 0 | 0 | 4 |
d8e84e213e4017ce40b29a7ad0c436e2e620a133 | 1,042 | py | Python | src/stripe/importer.py | bobwol/subscribely | 4d6ac60358b5fe26f0c01be68f1ba063df3b1ea0 | [
"MIT",
"BSD-3-Clause"
] | 43 | 2015-01-02T11:59:27.000Z | 2021-06-03T18:47:09.000Z | src/stripe/importer.py | danecjensen/subscribely | 4d6ac60358b5fe26f0c01be68f1ba063df3b1ea0 | [
"MIT",
"BSD-3-Clause"
] | 7 | 2019-10-06T14:48:03.000Z | 2021-09-08T01:20:06.000Z | virtual/lib/python3.6/site-packages/stripe/importer.py | LeoAmby/Galleria | 5daaeaeedc2682af878c2e925a2131033d631333 | [
"MIT"
] | 5 | 2017-04-17T05:07:30.000Z | 2021-03-15T03:34:18.000Z | # Imports needed in setup.py and __init__.py
def import_json():
# Python 2.5 and below do not ship with json
_json_loaded = None
try:
import json
if hasattr(json, 'loads'):
return json
_json_loaded = False
except ImportError:
pass
try:
import simplejson
return simplejson
exce... | 47.363636 | 377 | 0.746641 | 149 | 1,042 | 5.134228 | 0.402685 | 0.057516 | 0.099346 | 0.078431 | 0.528105 | 0.528105 | 0.528105 | 0.418301 | 0.418301 | 0.418301 | 0 | 0.004779 | 0.196737 | 1,042 | 21 | 378 | 49.619048 | 0.9092 | 0.081574 | 0 | 0.235294 | 0 | 0.117647 | 0.645702 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.411765 | 0 | 0.588235 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
d8eca7dffa7b8f7545524a610d4f95c9e9ac00fc | 138 | py | Python | myProj/myApp/admin.py | cs-fullstack-2019-spring/django-authentication-cw-DB225 | 3107ce7ad829312a6d534e1c585eb1a931dfc698 | [
"Apache-2.0"
] | null | null | null | myProj/myApp/admin.py | cs-fullstack-2019-spring/django-authentication-cw-DB225 | 3107ce7ad829312a6d534e1c585eb1a931dfc698 | [
"Apache-2.0"
] | null | null | null | myProj/myApp/admin.py | cs-fullstack-2019-spring/django-authentication-cw-DB225 | 3107ce7ad829312a6d534e1c585eb1a931dfc698 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import FoodFitnessModel
# Register your models here.
admin.site.register(FoodFitnessModel)
| 23 | 37 | 0.833333 | 17 | 138 | 6.764706 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 138 | 5 | 38 | 27.6 | 0.934959 | 0.188406 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d8f60e27886a4131350f5d55b186402042aaebcf | 110 | py | Python | pydicom_seg/typing.py | LeonhardFeiner/pydicom-seg | 1b6d1fb71f98e167eac16c0032728d4c918d4bea | [
"MIT"
] | 54 | 2020-01-08T12:43:57.000Z | 2022-03-18T23:56:19.000Z | pydicom_seg/typing.py | LeonhardFeiner/pydicom-seg | 1b6d1fb71f98e167eac16c0032728d4c918d4bea | [
"MIT"
] | 27 | 2020-01-06T20:06:27.000Z | 2021-12-20T11:48:09.000Z | pydicom_seg/typing.py | LeonhardFeiner/pydicom-seg | 1b6d1fb71f98e167eac16c0032728d4c918d4bea | [
"MIT"
] | 9 | 2020-04-03T11:39:18.000Z | 2021-11-18T10:34:13.000Z | from os import PathLike
from typing import Union
AnyStr = Union[bytes, str]
FSPath = Union[AnyStr, PathLike]
| 18.333333 | 32 | 0.772727 | 16 | 110 | 5.3125 | 0.625 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154545 | 110 | 5 | 33 | 22 | 0.913978 | 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 |
d8f8df029534d03ddc2c39540936bd22bd76171e | 26 | py | Python | tango_subarray/src/tests/__init__.py | bmort/sarch-128 | dc81aaa00a705d5fdfac85219d78bf0bdc25f3c1 | [
"BSD-3-Clause"
] | null | null | null | tango_subarray/src/tests/__init__.py | bmort/sarch-128 | dc81aaa00a705d5fdfac85219d78bf0bdc25f3c1 | [
"BSD-3-Clause"
] | 4 | 2019-02-17T20:52:19.000Z | 2019-02-18T03:45:42.000Z | tango_subarray/src/tests/__init__.py | bmort/sarch-128 | dc81aaa00a705d5fdfac85219d78bf0bdc25f3c1 | [
"BSD-3-Clause"
] | null | null | null | """Tango Master tests."""
| 13 | 25 | 0.615385 | 3 | 26 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 26 | 1 | 26 | 26 | 0.695652 | 0.730769 | 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 |
d8fc9c6bd3cd79842432a25248cc6d23a91217da | 155 | py | Python | tableschema_to_template/errors.py | mccalluc/tableschema-to-template | 6a206fcaf29227491259502f7a7743ca8d2a710a | [
"MIT"
] | 5 | 2020-12-05T18:53:54.000Z | 2021-06-07T15:54:44.000Z | tableschema_to_template/errors.py | mccalluc/tableschema-to-template | 6a206fcaf29227491259502f7a7743ca8d2a710a | [
"MIT"
] | 13 | 2020-12-01T19:20:01.000Z | 2021-03-07T03:03:04.000Z | tableschema_to_template/errors.py | mccalluc/tableschema-to-excel-template | 6a206fcaf29227491259502f7a7743ca8d2a710a | [
"MIT"
] | 2 | 2021-02-08T15:15:33.000Z | 2021-06-07T15:55:49.000Z | class Ts2xlException(Exception):
'''
Used for expected errors, where the command-line tool
shouldn't show a full stack trace.
'''
pass
| 22.142857 | 57 | 0.664516 | 20 | 155 | 5.15 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008621 | 0.251613 | 155 | 6 | 58 | 25.833333 | 0.87931 | 0.567742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2b19c94ddf750308ceb782e555023da0b65748a0 | 177 | py | Python | scrapy_podcast_rss/exceptions.py | igarizio/scrapy-podcast-rss | 9de335e09e28adb160fc3e57d80277eafa8aa6c1 | [
"MIT"
] | null | null | null | scrapy_podcast_rss/exceptions.py | igarizio/scrapy-podcast-rss | 9de335e09e28adb160fc3e57d80277eafa8aa6c1 | [
"MIT"
] | null | null | null | scrapy_podcast_rss/exceptions.py | igarizio/scrapy-podcast-rss | 9de335e09e28adb160fc3e57d80277eafa8aa6c1 | [
"MIT"
] | null | null | null | """This module defines custom exceptions
"""
class InvalidItemException(Exception):
"""Exception for when the pipeline tries to process an non-supported item."""
pass
| 22.125 | 81 | 0.734463 | 21 | 177 | 6.190476 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169492 | 177 | 7 | 82 | 25.285714 | 0.884354 | 0.615819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2b35e046a6be30bb1c9678df43855dcf80d1d620 | 2,328 | py | Python | src/utils/save-pretrained.py | zion-dup/lightning-hydra-template | 90275e90a2395d435a8de8e6eadb749376f83d64 | [
"MIT"
] | null | null | null | src/utils/save-pretrained.py | zion-dup/lightning-hydra-template | 90275e90a2395d435a8de8e6eadb749376f83d64 | [
"MIT"
] | null | null | null | src/utils/save-pretrained.py | zion-dup/lightning-hydra-template | 90275e90a2395d435a8de8e6eadb749376f83d64 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from transformers import (
BertConfig,
BertTokenizer,
BertForTokenClassification,
)
from pathlib import Path
# config = BertConfig.from_pretrained(
# 'hfl/chinese-macbert-base',
# num_labels = 4,
# # labels = ['O', ',', '。', '?'],
# id2label = {0: 'O', 1: ',', 2: '。',... | 28.390244 | 83 | 0.625 | 253 | 2,328 | 5.557312 | 0.233202 | 0.051209 | 0.060455 | 0.07468 | 0.743954 | 0.743954 | 0.743954 | 0.743954 | 0.671408 | 0.671408 | 0 | 0.014623 | 0.236254 | 2,328 | 82 | 84 | 28.390244 | 0.776153 | 0.180842 | 0 | 0.677966 | 0 | 0 | 0.074367 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.050847 | 0 | 0.084746 | 0.033898 | 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 |
2b3a20241324e9f7fa57311fc3d7311d5dae0e79 | 173 | py | Python | django_project/src/exports/apps.py | icrc-fdeniger/waterboard | 10d95b15938b495f4c83c6e125cbb6a2ba41e506 | [
"MIT"
] | 1 | 2019-01-19T09:01:48.000Z | 2019-01-19T09:01:48.000Z | django_project/src/exports/apps.py | icrc-fdeniger/waterboard | 10d95b15938b495f4c83c6e125cbb6a2ba41e506 | [
"MIT"
] | 32 | 2017-12-15T14:35:17.000Z | 2022-03-11T23:16:10.000Z | django_project/src/exports/apps.py | icrc-fdeniger/waterboard | 10d95b15938b495f4c83c6e125cbb6a2ba41e506 | [
"MIT"
] | 4 | 2019-02-13T07:52:05.000Z | 2021-04-29T08:20:58.000Z | from __future__ import absolute_import, division, print_function, unicode_literals
from django.apps import AppConfig
class ExportsConfig(AppConfig):
name = 'exports'
| 21.625 | 82 | 0.809249 | 20 | 173 | 6.65 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132948 | 173 | 7 | 83 | 24.714286 | 0.886667 | 0 | 0 | 0 | 0 | 0 | 0.040462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
2b3c9bd42384cf4590ab8b593ace21aa35881067 | 261 | py | Python | mmdet3d/models/model_utils/__init__.py | rasd3/mmdet3d_actr | d1c86d54f498fca166e957d249b109645ea13627 | [
"Apache-2.0"
] | null | null | null | mmdet3d/models/model_utils/__init__.py | rasd3/mmdet3d_actr | d1c86d54f498fca166e957d249b109645ea13627 | [
"Apache-2.0"
] | null | null | null | mmdet3d/models/model_utils/__init__.py | rasd3/mmdet3d_actr | d1c86d54f498fca166e957d249b109645ea13627 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
from .transformer import GroupFree3DMHA
from .vote_module import VoteModule
from .actr import ACTR
from .pointformer import LocalTransformer
__all__ = ['VoteModule', 'GroupFree3DMHA', 'ACTR', 'LocalTransformer']
| 32.625 | 70 | 0.796935 | 28 | 261 | 7.25 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008658 | 0.114943 | 261 | 7 | 71 | 37.285714 | 0.87013 | 0.172414 | 0 | 0 | 0 | 0 | 0.205607 | 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 |
2b5b5132d26732202b01c7f3b8587e0d2bb603ce | 181 | py | Python | contrib/experimental/modeswitch/setup_path.py | bitcraft/pyglet | 144257c365ca85528c6a4c5bed8141e683d7a9b6 | [
"BSD-3-Clause"
] | 15 | 2015-01-21T12:29:01.000Z | 2018-12-09T09:17:33.000Z | contrib/experimental/modeswitch/setup_path.py | bitcraft/pyglet | 144257c365ca85528c6a4c5bed8141e683d7a9b6 | [
"BSD-3-Clause"
] | null | null | null | contrib/experimental/modeswitch/setup_path.py | bitcraft/pyglet | 144257c365ca85528c6a4c5bed8141e683d7a9b6 | [
"BSD-3-Clause"
] | 9 | 2015-12-12T09:12:46.000Z | 2021-12-26T13:29:14.000Z | #!/usr/bin/python
# $Id:$
import os.path
import sys
script_dir = os.path.dirname(__file__)
sys.path.insert(0, os.path.join(script_dir, '..', '..'))
sys.path.insert(0, script_dir)
| 18.1 | 56 | 0.685083 | 30 | 181 | 3.9 | 0.5 | 0.153846 | 0.222222 | 0.239316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.099448 | 181 | 9 | 57 | 20.111111 | 0.705521 | 0.121547 | 0 | 0 | 0 | 0 | 0.025478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 |
2b5b56e229d51b16a4df3bacc3d49ecca2ec2206 | 1,721 | py | Python | terrainbento/precipitators/uniform_precipitation.py | alexmitchell/terrainbento | b8f6dd7fd9c96d3a40e0d1f8cd41b1dfe8d0b5da | [
"MIT"
] | 18 | 2018-03-06T01:17:12.000Z | 2022-02-11T16:10:31.000Z | terrainbento/precipitators/uniform_precipitation.py | alexmitchell/terrainbento | b8f6dd7fd9c96d3a40e0d1f8cd41b1dfe8d0b5da | [
"MIT"
] | 105 | 2018-03-05T23:36:05.000Z | 2021-03-22T01:31:06.000Z | terrainbento/precipitators/uniform_precipitation.py | alexmitchell/terrainbento | b8f6dd7fd9c96d3a40e0d1f8cd41b1dfe8d0b5da | [
"MIT"
] | 7 | 2018-03-13T03:46:38.000Z | 2021-03-07T01:03:56.000Z | """terrainbento **UniformPrecipitator**."""
class UniformPrecipitator(object):
"""Generate uniform precipitation.
UniformPrecipitator populates the at-node field "rainfall__flux" with a
value provided by the keyword argument ``rainfall_flux``.
To make discharge proprortional to drainage area, use th... | 34.42 | 75 | 0.546775 | 244 | 1,721 | 3.721311 | 0.266393 | 0.112335 | 0.15859 | 0.211454 | 0.229075 | 0.204846 | 0.204846 | 0.204846 | 0.204846 | 0.204846 | 0 | 0.090244 | 0.285299 | 1,721 | 49 | 76 | 35.122449 | 0.647967 | 0.69204 | 0 | 0 | 1 | 0 | 0.127072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0 | 0 | 0.375 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
2b6c6be5ab3e7f4fd9c71558b6802737b0930fc9 | 222 | py | Python | nni/runtime/common.py | sky-dust-intelligence-bv/nni | d38359e2f56603ddd5bad00ee2bcb7b38d9a88a5 | [
"MIT"
] | 2,305 | 2018-09-07T12:42:26.000Z | 2019-05-06T20:14:24.000Z | nni/runtime/common.py | sky-dust-intelligence-bv/nni | d38359e2f56603ddd5bad00ee2bcb7b38d9a88a5 | [
"MIT"
] | 379 | 2018-09-10T10:19:50.000Z | 2019-05-06T18:04:46.000Z | nni/runtime/common.py | sky-dust-intelligence-bv/nni | d38359e2f56603ddd5bad00ee2bcb7b38d9a88a5 | [
"MIT"
] | 314 | 2018-09-08T05:36:08.000Z | 2019-05-06T08:48:51.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
_multi_phase = False
def enable_multi_phase():
global _multi_phase
_multi_phase = True
def multi_phase_enabled():
return _multi_phase
| 18.5 | 38 | 0.756757 | 29 | 222 | 5.37931 | 0.62069 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18018 | 222 | 11 | 39 | 20.181818 | 0.857143 | 0.306306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.5 | 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 | 1 | 0 | 0 | 0 | 4 |
991d8c9b292c8a326c7a897c849ddf72c6ee3d50 | 1,084 | py | Python | test/heap_test.py | chrisconley/python-data-structures | f31bfafa25236ca4a703e37b547d60c31e0e17f0 | [
"MIT"
] | null | null | null | test/heap_test.py | chrisconley/python-data-structures | f31bfafa25236ca4a703e37b547d60c31e0e17f0 | [
"MIT"
] | null | null | null | test/heap_test.py | chrisconley/python-data-structures | f31bfafa25236ca4a703e37b547d60c31e0e17f0 | [
"MIT"
] | null | null | null | import unittest
from heap import MaxHeap
class MaxHeapTests(unittest.TestCase):
def test_is_empty(self):
heap = MaxHeap()
self.assertTrue(heap.is_empty())
heap = MaxHeap([1, 2])
self.assertFalse(heap.is_empty())
def test_size_after_insertion(self):
heap = MaxHeap([1,... | 27.1 | 74 | 0.588561 | 147 | 1,084 | 4.163265 | 0.272109 | 0.245098 | 0.310458 | 0.287582 | 0.570261 | 0.330065 | 0.088235 | 0 | 0 | 0 | 0 | 0.019704 | 0.250923 | 1,084 | 39 | 75 | 27.794872 | 0.73399 | 0 | 0 | 0.310345 | 0 | 0 | 0.013838 | 0 | 0 | 0 | 0 | 0 | 0.413793 | 1 | 0.137931 | false | 0 | 0.068966 | 0 | 0.241379 | 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 |
9935483d7318b6d0ca8c4394621c28edeb30e52e | 182 | py | Python | application/__init__.py | DelgadGuilherme/aula-30.03 | 97f2ef904adced5b437c578546297f3ba62a9b8b | [
"Apache-2.0"
] | null | null | null | application/__init__.py | DelgadGuilherme/aula-30.03 | 97f2ef904adced5b437c578546297f3ba62a9b8b | [
"Apache-2.0"
] | null | null | null | application/__init__.py | DelgadGuilherme/aula-30.03 | 97f2ef904adced5b437c578546297f3ba62a9b8b | [
"Apache-2.0"
] | null | null | null | from flask import Flask
import os
app = Flask(__name__,
static_folder=os.path.abspath('application/view/static'),
template_folder=os.path.abspath('application/view/templates')) | 30.333333 | 62 | 0.785714 | 25 | 182 | 5.48 | 0.56 | 0.160584 | 0.175182 | 0.277372 | 0.49635 | 0.49635 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 182 | 6 | 62 | 30.333333 | 0.825301 | 0 | 0 | 0 | 0 | 0 | 0.275281 | 0.275281 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
41d79108fbdb5a3e213054171dd5c693e29c542b | 174 | py | Python | photoalbum/users/admin.py | patya3/photoalbum | c38bb0bc10b099cfa889b0f378246acb8a2ce03a | [
"MIT"
] | null | null | null | photoalbum/users/admin.py | patya3/photoalbum | c38bb0bc10b099cfa889b0f378246acb8a2ce03a | [
"MIT"
] | null | null | null | photoalbum/users/admin.py | patya3/photoalbum | c38bb0bc10b099cfa889b0f378246acb8a2ce03a | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import User
class UsersAdmin(admin.ModelAdmin):
list_display = ('id', 'username')
admin.site.register(User, UsersAdmin)
| 17.4 | 37 | 0.752874 | 22 | 174 | 5.909091 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 174 | 9 | 38 | 19.333333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.057471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
41ef6a1b9378f4c5c12bbf476f519c7ff849bca3 | 32,019 | py | Python | examples/sam/distributedtracing/python/rest_handler/app.py | irishgordo/newrelic-lambda-extension | 0ce062bee9e364b9bb19e7a37a0743360ff896b2 | [
"Apache-2.0"
] | 41 | 2020-10-12T19:49:51.000Z | 2022-03-28T22:23:58.000Z | examples/sam/distributedtracing/python/rest_handler/app.py | irishgordo/newrelic-lambda-extension | 0ce062bee9e364b9bb19e7a37a0743360ff896b2 | [
"Apache-2.0"
] | 64 | 2020-11-13T19:14:18.000Z | 2022-03-29T23:51:20.000Z | examples/sam/distributedtracing/python/rest_handler/app.py | irishgordo/newrelic-lambda-extension | 0ce062bee9e364b9bb19e7a37a0743360ff896b2 | [
"Apache-2.0"
] | 22 | 2020-10-14T14:18:42.000Z | 2022-03-01T22:35:49.000Z | import json
import os
import uuid
# Note that neither of these dependencies needs to be packaged with your function. boto3 is part of the Lambda
# platform and newrelic is packaged with the layer
import boto3
import newrelic
QUEUE_URL = os.environ.get('QUEUE_URL')
# We're using the copy-paste style of browser agent ... | 233.715328 | 27,506 | 0.662544 | 6,053 | 32,019 | 3.488849 | 0.107054 | 0.011744 | 0.031726 | 0.02344 | 0.184771 | 0.134719 | 0.111753 | 0.095653 | 0.079648 | 0.063074 | 0 | 0.015715 | 0.048065 | 32,019 | 136 | 27,507 | 235.433824 | 0.677133 | 0.04057 | 0 | 0.215686 | 0 | 0.04902 | 0.946302 | 0.837602 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04902 | false | 0.009804 | 0.04902 | 0 | 0.156863 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5110bedc14693e0d93d833f467bab05536cf87f6 | 174 | py | Python | timg/methods/method.py | adzierzanowski/timg | 9486c7510df7c8de7c99226e62f60909ab5131c9 | [
"MIT"
] | 14 | 2019-09-07T05:18:46.000Z | 2022-01-02T11:42:51.000Z | timg/methods/method.py | adzierzanowski/timg | 9486c7510df7c8de7c99226e62f60909ab5131c9 | [
"MIT"
] | 2 | 2021-01-06T09:50:04.000Z | 2021-06-16T14:40:17.000Z | timg/methods/method.py | adzierzanowski/timg | 9486c7510df7c8de7c99226e62f60909ab5131c9 | [
"MIT"
] | 4 | 2021-01-05T11:33:34.000Z | 2022-02-22T02:40:44.000Z | class RenderMethod:
def __init__(self, image):
self.image = image
def to_string(self):
raise NotImplementedError('Renderer::to_string() should be implemented!')
| 24.857143 | 77 | 0.729885 | 21 | 174 | 5.761905 | 0.666667 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16092 | 174 | 6 | 78 | 29 | 0.828767 | 0 | 0 | 0 | 0 | 0 | 0.252874 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
512a9faf2e029908bead52a9d0204da41b8cbd0d | 408 | py | Python | deals/admin.py | NumanIbnMazid/invoice_management | 0ff60ad529f3b5702d1f3e31d152b39239f629af | [
"MIT"
] | null | null | null | deals/admin.py | NumanIbnMazid/invoice_management | 0ff60ad529f3b5702d1f3e31d152b39239f629af | [
"MIT"
] | null | null | null | deals/admin.py | NumanIbnMazid/invoice_management | 0ff60ad529f3b5702d1f3e31d152b39239f629af | [
"MIT"
] | null | null | null | from django.contrib import admin
from utils.mixins import CustomModelAdminMixin
from .models import Coupon, Vat
class CouponAdmin(CustomModelAdminMixin, admin.ModelAdmin):
pass
class Meta:
model = Coupon
admin.site.register(Coupon, CouponAdmin)
class VatAdmin(CustomModelAdminMixin, admin.ModelAdm... | 17 | 59 | 0.742647 | 45 | 408 | 6.733333 | 0.444444 | 0.171617 | 0.237624 | 0.264026 | 0.356436 | 0.356436 | 0.356436 | 0 | 0 | 0 | 0 | 0 | 0.188725 | 408 | 23 | 60 | 17.73913 | 0.915408 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.153846 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
51310be6ec7baccf671394cbd22f89f589fc5414 | 109 | py | Python | app/views/icones_view.py | olivierpons/evalr | 7c76474ad41769804965a11550501321d7b1889b | [
"MIT"
] | null | null | null | app/views/icones_view.py | olivierpons/evalr | 7c76474ad41769804965a11550501321d7b1889b | [
"MIT"
] | null | null | null | app/views/icones_view.py | olivierpons/evalr | 7c76474ad41769804965a11550501321d7b1889b | [
"MIT"
] | null | null | null | from django.views import generic
class IconesView(generic.TemplateView):
template_name = 'icones.html'
| 18.166667 | 39 | 0.779817 | 13 | 109 | 6.461538 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 109 | 5 | 40 | 21.8 | 0.893617 | 0 | 0 | 0 | 0 | 0 | 0.100917 | 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 |
5ab32b8ca73af24746e65c804ded8f85894b3781 | 188 | py | Python | setup.py | FragmentedCurve/ImageMarker | 5de3491c1b7195c14515fe5e0bedd5d28eceff50 | [
"MIT"
] | null | null | null | setup.py | FragmentedCurve/ImageMarker | 5de3491c1b7195c14515fe5e0bedd5d28eceff50 | [
"MIT"
] | 1 | 2021-06-08T20:44:42.000Z | 2021-06-08T20:44:42.000Z | setup.py | FragmentedCurve/ImageMarker | 5de3491c1b7195c14515fe5e0bedd5d28eceff50 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name='ImageMarker',
#version='git',
scripts=['ImageMarker.py'],
entry_points={'console_scripts': ['ImageMarker = ImageMarker:main']}
)
| 20.888889 | 72 | 0.680851 | 19 | 188 | 6.631579 | 0.736842 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 188 | 8 | 73 | 23.5 | 0.797468 | 0.074468 | 0 | 0 | 0 | 0 | 0.404624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 |
5abf0c7a8cc9a412680e61c5242321c1a0e7ab5f | 270 | py | Python | python/app/crud/utils.py | lokhiufung/bookshelf-backend | fb34aea726404bd65d7c736afb16abdb2fc424a5 | [
"Apache-2.0"
] | null | null | null | python/app/crud/utils.py | lokhiufung/bookshelf-backend | fb34aea726404bd65d7c736afb16abdb2fc424a5 | [
"Apache-2.0"
] | null | null | null | python/app/crud/utils.py | lokhiufung/bookshelf-backend | fb34aea726404bd65d7c736afb16abdb2fc424a5 | [
"Apache-2.0"
] | null | null | null | from fastapi.encoders import jsonable_encoder
from fastapi.responses import JSONResponse
from pydantic import BaseModel
def create_aliased_response(model: BaseModel) -> JSONResponse:
return JSONResponse(content=jsonable_encoder(
model, by_alias=True
)) | 30 | 62 | 0.8 | 31 | 270 | 6.806452 | 0.645161 | 0.104265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144444 | 270 | 9 | 63 | 30 | 0.91342 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 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 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
5acf44f33419d3b8101e2d5a04696c52b121d755 | 99 | py | Python | src/kandidaturen/apps.py | Sumarbrander/Stura-Mitgliederdatenbank | 691dbd33683b2c2d408efe7a3eb28e083ebcd62a | [
"MIT"
] | 1 | 2021-12-20T20:15:26.000Z | 2021-12-20T20:15:26.000Z | src/kandidaturen/apps.py | Sumarbrander/Stura-Mitgliederdatenbank | 691dbd33683b2c2d408efe7a3eb28e083ebcd62a | [
"MIT"
] | null | null | null | src/kandidaturen/apps.py | Sumarbrander/Stura-Mitgliederdatenbank | 691dbd33683b2c2d408efe7a3eb28e083ebcd62a | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class KandidaturenConfig(AppConfig):
name = 'kandidaturen'
| 16.5 | 36 | 0.777778 | 10 | 99 | 7.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 99 | 5 | 37 | 19.8 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 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 |
5add95f1c534d4177d922e0219eee9c34b7962ac | 97 | py | Python | Website/OperatorApp/apps.py | uofg-cs20/oti-operator | 76aaeb021280dfb40bfc8cf04b2636c85b48ff48 | [
"Apache-2.0"
] | null | null | null | Website/OperatorApp/apps.py | uofg-cs20/oti-operator | 76aaeb021280dfb40bfc8cf04b2636c85b48ff48 | [
"Apache-2.0"
] | null | null | null | Website/OperatorApp/apps.py | uofg-cs20/oti-operator | 76aaeb021280dfb40bfc8cf04b2636c85b48ff48 | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class OperatorappConfig(AppConfig):
name = 'OperatorApp'
| 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 |
85084d31da37f5c36e3814866617ee5ff279887e | 125 | py | Python | pynsett/examples/start_server.py | fractalego/python-nlulite | 982b780adedebf2c8a1e119f0f8b46ae72a9c384 | [
"MIT"
] | 26 | 2019-01-12T21:52:36.000Z | 2022-03-30T11:28:52.000Z | pynsett/examples/start_server.py | fractalego/python-nlulite | 982b780adedebf2c8a1e119f0f8b46ae72a9c384 | [
"MIT"
] | 2 | 2022-02-04T12:03:10.000Z | 2022-02-09T13:24:07.000Z | pynsett/examples/start_server.py | fractalego/python-nlulite | 982b780adedebf2c8a1e119f0f8b46ae72a9c384 | [
"MIT"
] | 3 | 2019-08-18T18:45:48.000Z | 2022-02-04T11:39:38.000Z | from pynsett.server import pynsett_app
if __name__ == '__main__':
pynsett_app.run(debug=True, port=4001, host='0.0.0.0') | 31.25 | 58 | 0.728 | 21 | 125 | 3.857143 | 0.714286 | 0.074074 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0.12 | 125 | 4 | 58 | 31.25 | 0.663636 | 0 | 0 | 0 | 0 | 0 | 0.119048 | 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 |
851fb0a3b774d744c0c8b5733a13b3c0f8cae04a | 61 | py | Python | add_credentials.py | dweissma/qpy | 2933eb1bfd873bbc7bb6dd79674c4f7e4ffd6bcb | [
"MIT"
] | 2 | 2019-08-07T03:20:54.000Z | 2019-08-14T01:10:22.000Z | add_credentials.py | dweissma/qpy | 2933eb1bfd873bbc7bb6dd79674c4f7e4ffd6bcb | [
"MIT"
] | null | null | null | add_credentials.py | dweissma/qpy | 2933eb1bfd873bbc7bb6dd79674c4f7e4ffd6bcb | [
"MIT"
] | null | null | null | from qiskit import IBMQ
IBMQ.save_account("YOUR TOKEN HERE") | 20.333333 | 36 | 0.803279 | 10 | 61 | 4.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114754 | 61 | 3 | 36 | 20.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.241935 | 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 |
517306da0fe8d449584954f62297341f88892872 | 2,102 | py | Python | t3cpo/wrapper/bots.py | mMeijden/three3cpo | 8bbcddc467e48136c41cce66ef4115203f4f3b58 | [
"MIT"
] | 6 | 2021-05-18T21:08:46.000Z | 2022-02-26T18:47:16.000Z | t3cpo/wrapper/bots.py | mMeijden/three3cpo | 8bbcddc467e48136c41cce66ef4115203f4f3b58 | [
"MIT"
] | 1 | 2021-08-02T16:55:09.000Z | 2021-08-09T08:43:28.000Z | t3cpo/wrapper/bots.py | mMeijden/three3cpo | 8bbcddc467e48136c41cce66ef4115203f4f3b58 | [
"MIT"
] | null | null | null | from t3cpo.wrapper.api import Api
class BotsApi(Api):
def __init__(self, key, secret):
super().__init__(key, secret)
self.relative_base = '/public/api/ver1/bots'
def bot_info(self, bot_id: int, params=None):
return self.invoke('GET', f'{self.relative_base}/{bot_id}/show', params=para... | 41.215686 | 105 | 0.683159 | 314 | 2,102 | 4.324841 | 0.16879 | 0.05891 | 0.17673 | 0.175258 | 0.606038 | 0.561119 | 0.557437 | 0.557437 | 0.530928 | 0.501473 | 0 | 0.001124 | 0.153187 | 2,102 | 50 | 106 | 42.04 | 0.761798 | 0 | 0 | 0 | 0 | 0 | 0.277355 | 0.243578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0.030303 | 0.424242 | 0.939394 | 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 |
51c5db94737054d33c0b97fd1bfb6cc60da77fd5 | 193 | py | Python | rest_framework_security/periodic_password_change/models.py | RubenEu/django-rest-framework-security | 638cf271c51a5bafd434a6b6a9c25a7c4849b485 | [
"MIT"
] | 7 | 2020-09-01T09:55:25.000Z | 2021-11-04T06:59:04.000Z | rest_framework_security/periodic_password_change/models.py | RubenEu/django-rest-framework-security | 638cf271c51a5bafd434a6b6a9c25a7c4849b485 | [
"MIT"
] | 32 | 2020-10-28T17:09:18.000Z | 2022-03-12T00:55:09.000Z | rest_framework_security/periodic_password_change/models.py | RubenEu/django-rest-framework-security | 638cf271c51a5bafd434a6b6a9c25a7c4849b485 | [
"MIT"
] | 2 | 2020-12-18T01:26:53.000Z | 2021-11-04T06:59:07.000Z | from django.db import models
class PeriodicPasswordChangeSettingsBase(models.Model):
require_change_password = models.BooleanField(default=False)
class Meta:
abstract = True
| 21.444444 | 64 | 0.766839 | 20 | 193 | 7.3 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170984 | 193 | 8 | 65 | 24.125 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.4 | 0.2 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
51cffc46f30ff0c57a76ae3eb46d9b69b16abd16 | 1,347 | py | Python | isl/datasets/cifar.py | HenryLee97/isl | 0eb357bd45c5ce3ab3ef060deb84707975049d37 | [
"MIT"
] | 2 | 2021-12-14T10:43:53.000Z | 2021-12-14T12:46:50.000Z | isl/datasets/cifar.py | HenryLee97/isl | 0eb357bd45c5ce3ab3ef060deb84707975049d37 | [
"MIT"
] | null | null | null | isl/datasets/cifar.py | HenryLee97/isl | 0eb357bd45c5ce3ab3ef060deb84707975049d37 | [
"MIT"
] | null | null | null | from torchvision import datasets
from torchvision.transforms import Compose
from torchvision.transforms import ToTensor
from torchvision.transforms import Normalize
from isl.datasets.dataset import Dataset
class CIFAR10(Dataset):
def __init__(self, *args, **kwargs) -> None:
super(CIFAR10, self).__init__... | 38.485714 | 114 | 0.691166 | 179 | 1,347 | 4.932961 | 0.184358 | 0.02718 | 0.033975 | 0.0453 | 0.749717 | 0.749717 | 0.715742 | 0.715742 | 0.631937 | 0.631937 | 0 | 0.039497 | 0.172977 | 1,347 | 34 | 115 | 39.617647 | 0.753142 | 0 | 0 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.217391 | 0 | 0.391304 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.