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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
032953974c13a4811a2d2ae339ca52350d7b02a7 | 451 | py | Python | CMNFvsUT/OutputScripts/pics_AiT-8pics/multiplypoints.py | horribleheffalump/MinimaxResearch | 47ea0971e4a4d721f1293b2f8608dec0e2d818e0 | [
"MIT"
] | 2 | 2019-02-04T15:10:37.000Z | 2021-03-06T04:44:54.000Z | CMNFvsUT/OutputScripts/pics_IEEPR/multiplypoints.py | horribleheffalump/MinimaxResearch | 47ea0971e4a4d721f1293b2f8608dec0e2d818e0 | [
"MIT"
] | null | null | null | CMNFvsUT/OutputScripts/pics_IEEPR/multiplypoints.py | horribleheffalump/MinimaxResearch | 47ea0971e4a4d721f1293b2f8608dec0e2d818e0 | [
"MIT"
] | null | null | null | import numpy as np
def multx(x):
xplot = np.zeros(x.size * 2 - 1)
for i in range(0, x.size - 1):
xplot[i * 2] = x[i]
xplot[i * 2 + 1] = x[i + 1]
xplot[x.size * 2 - 2] = x[x.size - 1]
return(xplot)
def multy(x):
xplot = np.zeros(x.size * 2 - 1)
for i in range(0, x.... | 28.1875 | 41 | 0.456763 | 85 | 451 | 2.423529 | 0.223529 | 0.194175 | 0.116505 | 0.126214 | 0.84466 | 0.84466 | 0.84466 | 0.84466 | 0.84466 | 0.84466 | 0 | 0.072664 | 0.359202 | 451 | 15 | 42 | 30.066667 | 0.640138 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3034ed184c2b450a9d226469e5f65f9eecd9744e | 32,786 | py | Python | pkgs/ops-pkg/src/genie/libs/ops/interface/iosxr/tests/interface_output.py | kecorbin/genielibs | 5d3951b8911013691822e73e9c3d0f557ca10f43 | [
"Apache-2.0"
] | null | null | null | pkgs/ops-pkg/src/genie/libs/ops/interface/iosxr/tests/interface_output.py | kecorbin/genielibs | 5d3951b8911013691822e73e9c3d0f557ca10f43 | [
"Apache-2.0"
] | null | null | null | pkgs/ops-pkg/src/genie/libs/ops/interface/iosxr/tests/interface_output.py | kecorbin/genielibs | 5d3951b8911013691822e73e9c3d0f557ca10f43 | [
"Apache-2.0"
] | null | null | null | '''
Interface Genie Ops Object Outputs for IOSXR.
'''
class InterfaceOutput(object):
ShowInterfacesDetail = {
'GigabitEthernet0/0/0/0': {
'auto_negotiate': True,
'bandwidth': 768,
'counters': {'carrier_transitions': 0,
'drops': 0,
... | 39.596618 | 104 | 0.322912 | 2,326 | 32,786 | 4.294927 | 0.105331 | 0.024324 | 0.064865 | 0.034034 | 0.842543 | 0.776577 | 0.741942 | 0.718318 | 0.67978 | 0.663263 | 0 | 0.100198 | 0.552827 | 32,786 | 827 | 105 | 39.644498 | 0.581202 | 0.001373 | 0 | 0.683047 | 0 | 0 | 0.307008 | 0.036173 | 0 | 0 | 0.006721 | 0 | 0 | 1 | 0 | false | 0 | 0.007371 | 0 | 0.017199 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
065c774641048c3059979874ed84953eb4784f52 | 80 | py | Python | Algorithms/BitManipulation/lonely_integer.py | bhansa/Hack | dd312af4446fa86da5e4740f6efc3c1ba50e53de | [
"Apache-2.0"
] | null | null | null | Algorithms/BitManipulation/lonely_integer.py | bhansa/Hack | dd312af4446fa86da5e4740f6efc3c1ba50e53de | [
"Apache-2.0"
] | null | null | null | Algorithms/BitManipulation/lonely_integer.py | bhansa/Hack | dd312af4446fa86da5e4740f6efc3c1ba50e53de | [
"Apache-2.0"
] | null | null | null | n = int(raw_input())
print reduce((lambda x,y:x^y),map(int,raw_input().split())) | 40 | 59 | 0.675 | 16 | 80 | 3.25 | 0.6875 | 0.230769 | 0.423077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 80 | 2 | 59 | 40 | 0.693333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
067d230cd907818b9802c5d9dbd778db47d97263 | 4,069 | py | Python | apysc/_event/timer_event.py | ynsnf/apysc | b10ffaf76ec6beb187477d0a744fca00e3efc3fb | [
"MIT"
] | null | null | null | apysc/_event/timer_event.py | ynsnf/apysc | b10ffaf76ec6beb187477d0a744fca00e3efc3fb | [
"MIT"
] | null | null | null | apysc/_event/timer_event.py | ynsnf/apysc | b10ffaf76ec6beb187477d0a744fca00e3efc3fb | [
"MIT"
] | null | null | null | """Class implementation for the timer event.
"""
from apysc._event.event import Event
from apysc._time import timer
class TimerEvent(Event):
"""
Timer event class.
References
----------
- TimerEvent class document
- https://simon-ritchie.github.io/apysc/timer_event.html
... | 33.628099 | 74 | 0.525436 | 406 | 4,069 | 5.142857 | 0.192118 | 0.063218 | 0.086207 | 0.028736 | 0.784004 | 0.784004 | 0.750479 | 0.750479 | 0.750479 | 0.750479 | 0 | 0.015251 | 0.323175 | 4,069 | 120 | 75 | 33.908333 | 0.742919 | 0.672893 | 0 | 0 | 0 | 0 | 0.067993 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
ebfd2214c4163ab07f290165c06ca4c05f8448e4 | 214 | py | Python | app/routes/v1/__init__.py | fossabot/cssi-api | 6d666edfcccb9c08d5201fb0b5bfebfe5435ec1d | [
"MIT"
] | 2 | 2019-07-04T16:57:07.000Z | 2019-07-09T16:21:12.000Z | app/routes/v1/__init__.py | fossabot/cssi-api | 6d666edfcccb9c08d5201fb0b5bfebfe5435ec1d | [
"MIT"
] | null | null | null | app/routes/v1/__init__.py | fossabot/cssi-api | 6d666edfcccb9c08d5201fb0b5bfebfe5435ec1d | [
"MIT"
] | 3 | 2019-05-31T06:05:15.000Z | 2019-06-27T19:02:54.000Z | from app.routes.v1.application import application # noqa
from app.routes.v1.main import main # noqa
from app.routes.v1.session import session # noqa
from app.routes.v1.questionnaire import questionnaire # noqa
| 42.8 | 61 | 0.794393 | 32 | 214 | 5.3125 | 0.3125 | 0.164706 | 0.305882 | 0.352941 | 0.335294 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.130841 | 214 | 4 | 62 | 53.5 | 0.892473 | 0.088785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
232355fd98e7848a82c9a7b86ef6efc23dbeb57f | 17,879 | py | Python | wren/actions/news_quester.py | tzano/wren | 2b1d8050e701f574890d3484d49954ee6e22df52 | [
"MIT"
] | 245 | 2018-05-02T21:43:16.000Z | 2020-12-27T18:46:46.000Z | wren/actions/news_quester.py | tzano/wren | 2b1d8050e701f574890d3484d49954ee6e22df52 | [
"MIT"
] | 6 | 2018-05-06T07:43:00.000Z | 2019-01-10T20:35:26.000Z | wren/actions/news_quester.py | tzano/wren | 2b1d8050e701f574890d3484d49954ee6e22df52 | [
"MIT"
] | 19 | 2018-05-04T08:48:52.000Z | 2020-08-25T07:58:14.000Z | # -*- coding: utf-8 -*-
from resources.constants import HOST, PORT, KAFKA, MONGODB, ARTICLES, PODCASTS, VIDEOS, COLLECTION_ARTICLES, \
COLLECTION_PODCASTS, COLLECTION_VIDEOS
from dateutil import parser
from datetime import datetime
import re
class NewsQuester():
"""
Find / Fiter Content
"""
d... | 43.081928 | 130 | 0.599866 | 2,061 | 17,879 | 4.944687 | 0.061135 | 0.089589 | 0.051516 | 0.071239 | 0.87067 | 0.85183 | 0.837994 | 0.822981 | 0.80944 | 0.791385 | 0 | 0.002381 | 0.271883 | 17,879 | 414 | 131 | 43.18599 | 0.780458 | 0.198389 | 0 | 0.690987 | 0 | 0 | 0.070995 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055794 | false | 0 | 0.017167 | 0 | 0.175966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
88e5e9cd57f3d129d6b6f11d53439762a0a1d281 | 204,213 | py | Python | cardfunction.py | manhon95/QMG_bot | 3409bb3d3031aa22e3dd27cbbc37c6b0bf20fc42 | [
"BSD-3-Clause"
] | null | null | null | cardfunction.py | manhon95/QMG_bot | 3409bb3d3031aa22e3dd27cbbc37c6b0bf20fc42 | [
"BSD-3-Clause"
] | 4 | 2021-12-15T05:06:13.000Z | 2021-12-15T05:07:32.000Z | cardfunction.py | manhon95/QMG_bot | 3409bb3d3031aa22e3dd27cbbc37c6b0bf20fc42 | [
"BSD-3-Clause"
] | null | null | null | import telegram
import sqlite3
import function
import thread_lock
import battlebuild
import random
import air
import drawmap
import traceback
from telegram import ReplyKeyboardRemove, ReplyKeyboardMarkup
from telegram import InlineKeyboardButton, InlineKeyboardMarkup
from telegram.ext import Updater, CommandHandler, C... | 53.263693 | 332 | 0.624588 | 27,392 | 204,213 | 4.45119 | 0.033294 | 0.027115 | 0.044486 | 0.063948 | 0.895716 | 0.875229 | 0.850812 | 0.827348 | 0.807795 | 0.779417 | 0 | 0.037986 | 0.181272 | 204,213 | 3,833 | 333 | 53.277589 | 0.691265 | 0.072517 | 0 | 0.615751 | 0 | 0.02604 | 0.139701 | 0 | 0 | 0 | 0 | 0.000261 | 0 | 1 | 0.111146 | false | 0.016831 | 0.004446 | 0 | 0.118768 | 0.007939 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
88fed00378e1c1689d76cee52081b554909366e6 | 1,518 | py | Python | send.py | aceat64/bitcoin_aprs | 74d01532a1b8223e19059c651478cf8a940cb989 | [
"MIT"
] | 15 | 2017-08-19T03:59:08.000Z | 2018-10-10T22:50:56.000Z | send.py | aceat64/bitcoin_aprs | 74d01532a1b8223e19059c651478cf8a940cb989 | [
"MIT"
] | null | null | null | send.py | aceat64/bitcoin_aprs | 74d01532a1b8223e19059c651478cf8a940cb989 | [
"MIT"
] | 3 | 2017-08-19T06:58:53.000Z | 2017-10-25T15:37:54.000Z | #!/usr/bin/python3
import aprslib
import codecs
import base64
from random import randint
mycall = "N0CALL"
passwd = "-1"
# Random transaction that I pulled from mainnet
txn_hex = "010000000217fcb1b44f8295db8f6395a3fc3acb764c979c0202b86ce36e7422a754a17864000000008a4730440220334be1268ace191bc0c96568e8cad680b51d9d20e2f2... | 52.344828 | 882 | 0.871542 | 101 | 1,518 | 13.009901 | 0.544554 | 0.020548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.426346 | 0.069829 | 1,518 | 28 | 883 | 54.214286 | 0.504249 | 0.083004 | 0 | 0 | 0 | 0 | 0.670266 | 0.643629 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0.095238 | 0.190476 | 0 | 0.190476 | 0.047619 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
001e31a323ba01ce2792973aad8329679709f445 | 259 | py | Python | test/test_py_code/py_src_code_classes_inheritance.py | chenjd/pyuml | d4af3040f443d61d339c06faab51a4c3aa4775b4 | [
"MIT"
] | 4 | 2021-01-22T05:47:13.000Z | 2021-11-06T08:29:31.000Z | test/test_py_code/py_src_code_classes_inheritance.py | chenjd/pyuml | d4af3040f443d61d339c06faab51a4c3aa4775b4 | [
"MIT"
] | 2 | 2021-01-22T05:47:28.000Z | 2022-03-12T00:44:22.000Z | test/test_py_code/py_src_code_classes_inheritance.py | chenjd/pyuml | d4af3040f443d61d339c06faab51a4c3aa4775b4 | [
"MIT"
] | 1 | 2021-01-22T05:46:57.000Z | 2021-01-22T05:46:57.000Z | class BaseClass:
def __init__(self):
pass
@staticmethod
def say_hi():
print("hi")
class MyClassOne(BaseClass):
def __init__(self):
pass
class MyClassTwo(BaseClass, MyClassOne):
def __init__(self):
pass
| 14.388889 | 40 | 0.606178 | 27 | 259 | 5.333333 | 0.444444 | 0.145833 | 0.229167 | 0.3125 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297297 | 259 | 17 | 41 | 15.235294 | 0.791209 | 0 | 0 | 0.5 | 0 | 0 | 0.007722 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.25 | 0 | 0 | 0.583333 | 0.083333 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 6 |
004dddf07231f1dba6442ba498e0433d35decb8d | 46 | py | Python | frontur_utilities/df_solver_classes/parameter_initializers.py | miguelbravo7/frontur_utilities | 7d22d8ccaadf96c1a9cb0e942d0c3537b9ea12f9 | [
"MIT"
] | null | null | null | frontur_utilities/df_solver_classes/parameter_initializers.py | miguelbravo7/frontur_utilities | 7d22d8ccaadf96c1a9cb0e942d0c3537b9ea12f9 | [
"MIT"
] | null | null | null | frontur_utilities/df_solver_classes/parameter_initializers.py | miguelbravo7/frontur_utilities | 7d22d8ccaadf96c1a9cb0e942d0c3537b9ea12f9 | [
"MIT"
] | null | null | null |
def initialize_pollsters():
return [0, 1] | 15.333333 | 27 | 0.673913 | 6 | 46 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 0.195652 | 46 | 3 | 28 | 15.333333 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 0 | 0.5 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 6 |
cc51e2f7cbc2b7ecd61c6497517d9e2eed9de020 | 193 | py | Python | tests/context.py | jpvlsmv/didactic-spork | 3a92f7624e95749602808ff971f337683913375c | [
"Apache-2.0"
] | null | null | null | tests/context.py | jpvlsmv/didactic-spork | 3a92f7624e95749602808ff971f337683913375c | [
"Apache-2.0"
] | 311 | 2018-01-28T01:55:19.000Z | 2022-03-28T00:44:19.000Z | tests/context.py | jpvlsmv/didactic-spork | 3a92f7624e95749602808ff971f337683913375c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import os
import sys
sys.path.insert(0,os.path.abspath('..'))
sys.path.insert(0,os.path.abspath('.'))
import archstore
# Then, in each test "from .context import archstore"
| 21.444444 | 53 | 0.720207 | 31 | 193 | 4.483871 | 0.548387 | 0.100719 | 0.18705 | 0.201439 | 0.388489 | 0.388489 | 0.388489 | 0 | 0 | 0 | 0 | 0.017241 | 0.098446 | 193 | 8 | 54 | 24.125 | 0.781609 | 0.357513 | 0 | 0 | 0 | 0 | 0.02459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
aea15085fb40ced7e9af15820d9943cc5f8ac19c | 351 | py | Python | util/stack.py | gabinewman/x-perts | 0d239838da1ddb6b0b53949ced939c82175c9048 | [
"MIT"
] | null | null | null | util/stack.py | gabinewman/x-perts | 0d239838da1ddb6b0b53949ced939c82175c9048 | [
"MIT"
] | null | null | null | util/stack.py | gabinewman/x-perts | 0d239838da1ddb6b0b53949ced939c82175c9048 | [
"MIT"
] | null | null | null | class Stack:
def __init__ (self):
self.elements = []
def is_empty(self):
return self.elements == []
def push(self, item):
self.elements.append(item)
def pop(self):
return self.elements.pop()
def peek(self):
return self.elements[-1]
def size(self):
... | 18.473684 | 34 | 0.569801 | 43 | 351 | 4.534884 | 0.395349 | 0.369231 | 0.215385 | 0.338462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004098 | 0.304843 | 351 | 18 | 35 | 19.5 | 0.795082 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0 | 0 | 0.307692 | 0.846154 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
aef04bb2801fd316e14b9900f8bf773bc58d261b | 86 | py | Python | 0362 Shortest String.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | 1 | 2020-12-29T21:17:26.000Z | 2020-12-29T21:17:26.000Z | 0362 Shortest String.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | null | null | null | 0362 Shortest String.py | ansabgillani/binarysearchcomproblems | 12fe8632f8cbb5058c91a55bae53afa813a3247e | [
"MIT"
] | 4 | 2021-09-09T17:42:43.000Z | 2022-03-18T04:54:03.000Z | class Solution:
def solve(self, s):
return abs(s.count("1")-s.count("0"))
| 21.5 | 45 | 0.569767 | 14 | 86 | 3.5 | 0.785714 | 0.244898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.22093 | 86 | 3 | 46 | 28.666667 | 0.701493 | 0 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
4e222603d5a39f7a65eb1a8e40e7e43b0bdb6943 | 28 | py | Python | linkml_model_enrichment/importers/import_engine.py | noelmcloughlin/linkml-model-enrichment | 529f1623af9cc766b1fd119ba704445fc21e9846 | [
"BSD-3-Clause"
] | 6 | 2021-08-11T11:57:36.000Z | 2022-03-01T21:25:16.000Z | linkml_model_enrichment/importers/import_engine.py | noelmcloughlin/linkml-model-enrichment | 529f1623af9cc766b1fd119ba704445fc21e9846 | [
"BSD-3-Clause"
] | 41 | 2021-03-30T01:27:25.000Z | 2022-03-04T20:44:15.000Z | linkml_model_enrichment/importers/import_engine.py | noelmcloughlin/linkml-model-enrichment | 529f1623af9cc766b1fd119ba704445fc21e9846 | [
"BSD-3-Clause"
] | 3 | 2022-01-02T21:18:09.000Z | 2022-03-30T11:27:54.000Z | class ImportEngine:
None | 14 | 19 | 0.75 | 3 | 28 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 28 | 2 | 20 | 14 | 0.954545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9d7b66794bd58f18728111a9c60558374ef48699 | 43 | py | Python | code/python/echomesh/util/command/test/Bar.py | rec/echomesh | be668971a687b141660fd2e5635d2fd598992a01 | [
"MIT"
] | 30 | 2015-02-18T14:07:00.000Z | 2021-12-11T15:19:01.000Z | code/python/echomesh/util/command/test/Bar.py | rec/echomesh | be668971a687b141660fd2e5635d2fd598992a01 | [
"MIT"
] | 16 | 2015-01-01T23:17:24.000Z | 2015-04-18T23:49:27.000Z | code/python/echomesh/util/command/test/Bar.py | rec/echomesh | be668971a687b141660fd2e5635d2fd598992a01 | [
"MIT"
] | 31 | 2015-03-11T20:04:07.000Z | 2020-11-02T13:56:59.000Z | def foo():
return 'bar'
COMMAND = foo
| 8.6 | 16 | 0.581395 | 6 | 43 | 4.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27907 | 43 | 4 | 17 | 10.75 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.069767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
9d82a6a611b563d0118e1c25a92fc69bb54be98a | 2,521 | py | Python | hms_tz/patches/update_accounting_dimension_to_old_sales_invoice.py | m-taha52/hms_tz | e8a5bf7cafea2aec35c6c1a9f094f3ea5161bf2f | [
"MIT"
] | null | null | null | hms_tz/patches/update_accounting_dimension_to_old_sales_invoice.py | m-taha52/hms_tz | e8a5bf7cafea2aec35c6c1a9f094f3ea5161bf2f | [
"MIT"
] | null | null | null | hms_tz/patches/update_accounting_dimension_to_old_sales_invoice.py | m-taha52/hms_tz | e8a5bf7cafea2aec35c6c1a9f094f3ea5161bf2f | [
"MIT"
] | null | null | null | import frappe
def execute():
refdocs = [
"Lab Prescription",
"Radiology Procedure Prescription",
"Procedure Prescription",
"Therapy Plan Detail"
]
sii_items = frappe.get_all("Sales Invoice Item",
filters={"reference_dt": ["in", refdocs], "reference_dn": ["!=", ""],
... | 42.016667 | 93 | 0.626339 | 306 | 2,521 | 5.03268 | 0.189542 | 0.046753 | 0.045455 | 0.044156 | 0.777922 | 0.777922 | 0.777922 | 0.777922 | 0.777922 | 0.777922 | 0 | 0 | 0.250694 | 2,521 | 60 | 94 | 42.016667 | 0.815246 | 0 | 0 | 0.518519 | 0 | 0 | 0.740285 | 0.103886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0.018519 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9d84fefda2295a05902e977061bb6aa0a8e1bb67 | 2,449 | py | Python | tests/codelets/test_frame_finalizer.py | juliakzn/construction_finder | 92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8 | [
"MIT"
] | null | null | null | tests/codelets/test_frame_finalizer.py | juliakzn/construction_finder | 92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8 | [
"MIT"
] | null | null | null | tests/codelets/test_frame_finalizer.py | juliakzn/construction_finder | 92e9f044163fbe8bde3a6c5f9ec125a7ecf96de8 | [
"MIT"
] | null | null | null | import pytest
from construction_finder import codelets
class TestFrameFinalizer:
@pytest.fixture
def some_frame_finalizer(
self, codelet_info, wonderful_gifts_distributive_frame_matcher
):
slot_bonds = {0: [3], 1: [4], 2: [5, 6, 7, 8]}
for slot_id, candidate in slot_bonds.items():... | 36.014706 | 82 | 0.665578 | 262 | 2,449 | 5.748092 | 0.229008 | 0.135458 | 0.224436 | 0.267596 | 0.833997 | 0.833997 | 0.784861 | 0.784861 | 0.683931 | 0.547145 | 0 | 0.01455 | 0.270314 | 2,449 | 67 | 83 | 36.552239 | 0.828204 | 0 | 0 | 0.516667 | 0 | 0 | 0.00245 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.033333 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9db6d8bbd4642e2214300fa51a6680718f375262 | 12,118 | py | Python | py/device/usb_c_unittest.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 3 | 2022-01-06T16:52:52.000Z | 2022-03-07T11:30:47.000Z | py/device/usb_c_unittest.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | null | null | null | py/device/usb_c_unittest.py | arccode/factory | a1b0fccd68987d8cd9c89710adc3c04b868347ec | [
"BSD-3-Clause"
] | 1 | 2021-10-24T01:47:22.000Z | 2021-10-24T01:47:22.000Z | #!/usr/bin/env python3
#
# Copyright 2016 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Unittest for USBTypeC."""
import unittest
from unittest import mock
from cros.factory.device import device_types
from cros.f... | 39.731148 | 79 | 0.654894 | 1,454 | 12,118 | 5.367263 | 0.127923 | 0.144157 | 0.082009 | 0.045105 | 0.799974 | 0.762942 | 0.745387 | 0.715659 | 0.704254 | 0.68734 | 0 | 0.020837 | 0.172306 | 12,118 | 304 | 80 | 39.861842 | 0.757228 | 0.01865 | 0 | 0.640927 | 0 | 0 | 0.303275 | 0.019449 | 0 | 0 | 0 | 0 | 0.474903 | 1 | 0.050193 | false | 0.011583 | 0.015444 | 0 | 0.07722 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9def45c115e7e3127664014372ac97a1a09110b1 | 204 | py | Python | RecoLocalMuon/DTSegment/python/DTSegment2DProducer_CombPatternReco2D_NoDrift_CosmicData_cfi.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | RecoLocalMuon/DTSegment/python/DTSegment2DProducer_CombPatternReco2D_NoDrift_CosmicData_cfi.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | RecoLocalMuon/DTSegment/python/DTSegment2DProducer_CombPatternReco2D_NoDrift_CosmicData_cfi.py | SWuchterl/cmssw | 769b4a7ef81796579af7d626da6039dfa0347b8e | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | import FWCore.ParameterSet.Config as cms
#FIXME: please use the file below, this old one will disappear soon.
from RecoLocalMuon.DTSegment.dt2DSegments_CombPatternReco2D_NoDrift_CosmicData_cfi import *
| 34 | 91 | 0.848039 | 27 | 204 | 6.259259 | 0.962963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010989 | 0.107843 | 204 | 5 | 92 | 40.8 | 0.917582 | 0.328431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d1cd7916d15286b53c20a0415611a54bd796d476 | 40 | py | Python | holoviz/tests/test_dummy.py | tacaswell/holoviz | f907d99d520613cf5f39f5821c745cd83cfc22ed | [
"BSD-3-Clause"
] | 207 | 2019-11-14T08:41:44.000Z | 2022-03-31T11:26:18.000Z | holoviz/tests/test_dummy.py | tacaswell/holoviz | f907d99d520613cf5f39f5821c745cd83cfc22ed | [
"BSD-3-Clause"
] | 74 | 2019-11-21T16:39:45.000Z | 2022-02-15T16:46:51.000Z | holoviz/tests/test_dummy.py | tacaswell/holoviz | f907d99d520613cf5f39f5821c745cd83cfc22ed | [
"BSD-3-Clause"
] | 36 | 2020-01-17T08:01:53.000Z | 2022-03-11T01:33:47.000Z | def test_dummy():
print(1)
pass
| 10 | 17 | 0.575 | 6 | 40 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 0.3 | 40 | 3 | 18 | 13.333333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0.333333 | 0 | 0 | 0.333333 | 0.333333 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
d1e5c94f42f66f851b6d2cc55a075f6740cc0153 | 12,338 | py | Python | doubleml/tests/test_plr_no_cross_fit.py | SvenKlaassen/doubleml-for-py | b3cbdb572fce435c18ec67ca323645900fc901b5 | [
"MIT"
] | 103 | 2020-12-21T08:41:17.000Z | 2022-03-29T07:49:48.000Z | doubleml/tests/test_plr_no_cross_fit.py | SvenKlaassen/doubleml-for-py | b3cbdb572fce435c18ec67ca323645900fc901b5 | [
"MIT"
] | 27 | 2020-12-23T09:25:25.000Z | 2022-03-31T12:22:30.000Z | doubleml/tests/test_plr_no_cross_fit.py | SvenKlaassen/doubleml-for-py | b3cbdb572fce435c18ec67ca323645900fc901b5 | [
"MIT"
] | 17 | 2021-02-10T10:03:08.000Z | 2022-03-23T15:44:57.000Z | import numpy as np
import pytest
import math
from sklearn.base import clone
from sklearn.linear_model import Lasso
import doubleml as dml
from ._utils import draw_smpls
from ._utils_plr_manual import fit_plr, plr_dml1, fit_nuisance_plr, boot_plr, tune_nuisance_plr
@pytest.fixture(scope='module',
p... | 36.502959 | 121 | 0.590939 | 1,720 | 12,338 | 3.836047 | 0.084884 | 0.061837 | 0.069718 | 0.059109 | 0.844498 | 0.82525 | 0.816308 | 0.789027 | 0.770233 | 0.705668 | 0 | 0.017225 | 0.303615 | 12,338 | 337 | 122 | 36.611276 | 0.750698 | 0.020263 | 0 | 0.573705 | 0 | 0 | 0.061103 | 0 | 0 | 0 | 0 | 0 | 0.043825 | 1 | 0.067729 | false | 0 | 0.031873 | 0.01992 | 0.131474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
d1fbbc066bb5a36a939fc9025e3241779a9d77ee | 8,302 | py | Python | Homework/HW3/Python_code/variableSelection.py | shijiale0609/Statistical-Computing-Methods | e780746d5f1e4b475bf38eb15d9d825daf45ffa6 | [
"MIT"
] | null | null | null | Homework/HW3/Python_code/variableSelection.py | shijiale0609/Statistical-Computing-Methods | e780746d5f1e4b475bf38eb15d9d825daf45ffa6 | [
"MIT"
] | null | null | null | Homework/HW3/Python_code/variableSelection.py | shijiale0609/Statistical-Computing-Methods | e780746d5f1e4b475bf38eb15d9d825daf45ffa6 | [
"MIT"
] | null | null | null | import random
import numpy as np
import scipy as sc
import util
import log
from scipy import special
from scipy import stats
def variableSelection(x0, y0, beta_tilde, c, clim):
'''
Performs variable (model) selection by computing the evidence of each model
@params:
x0 (np.array): array of input da... | 37.2287 | 96 | 0.583233 | 1,291 | 8,302 | 3.624322 | 0.130906 | 0.008976 | 0.016029 | 0.015388 | 0.746954 | 0.737978 | 0.724941 | 0.717247 | 0.711263 | 0.69673 | 0 | 0.04121 | 0.275114 | 8,302 | 223 | 97 | 37.2287 | 0.736291 | 0.213322 | 0 | 0.724638 | 0 | 0 | 0.066792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.050725 | 0 | 0.094203 | 0.028986 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ae85927c9b5597f67bca19b780d491d79a557b7e | 31 | py | Python | ble2lsl/__init__.py | Tony-Feng/ble2lsl | 8dc859b00de14a8383c2c877d8ce6ef1e37527f3 | [
"BSD-3-Clause"
] | 3 | 2019-01-27T05:15:23.000Z | 2021-06-16T19:11:40.000Z | ble2lsl/__init__.py | Tony-Feng/ble2lsl | 8dc859b00de14a8383c2c877d8ce6ef1e37527f3 | [
"BSD-3-Clause"
] | 4 | 2018-11-06T17:29:59.000Z | 2018-11-28T23:58:21.000Z | ble2lsl/__init__.py | Tony-Feng/ble2lsl | 8dc859b00de14a8383c2c877d8ce6ef1e37527f3 | [
"BSD-3-Clause"
] | 15 | 2018-11-07T13:38:44.000Z | 2020-12-29T19:08:44.000Z |
from ble2lsl.ble2lsl import *
| 10.333333 | 29 | 0.774194 | 4 | 31 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.16129 | 31 | 2 | 30 | 15.5 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ae8761b33209ecdba1e38bfbf19366927a1edd96 | 17,814 | py | Python | Hessian/Figure1_hessian_axis_comparison.py | Animadversio/Visual_Neuro_InSilico_Exp | 39b1e65e5613b064361c09c7d3f88496f3a7efd2 | [
"Apache-2.0"
] | 2 | 2020-02-03T18:16:26.000Z | 2020-05-01T18:27:01.000Z | Hessian/Figure1_hessian_axis_comparison.py | Animadversio/Visual_Neuro_InSilico_Exp | 39b1e65e5613b064361c09c7d3f88496f3a7efd2 | [
"Apache-2.0"
] | null | null | null | Hessian/Figure1_hessian_axis_comparison.py | Animadversio/Visual_Neuro_InSilico_Exp | 39b1e65e5613b064361c09c7d3f88496f3a7efd2 | [
"Apache-2.0"
] | 2 | 2020-01-24T17:27:33.000Z | 2020-08-30T02:54:13.000Z | from Hessian.hessian_axis_visualize import vis_eigen_frame, vis_eigen_action, vis_distance_curve, vis_eigen_explore
from Hessian.hessian_analysis_tools import scan_hess_npz, average_H, compute_hess_corr, plot_consistentcy_mat, \
plot_consistency_hist, plot_consistency_example, plot_spectra
from GAN_utils import loa... | 64.543478 | 140 | 0.708319 | 2,919 | 17,814 | 4.090099 | 0.095238 | 0.037692 | 0.023034 | 0.050255 | 0.82486 | 0.809281 | 0.797973 | 0.770081 | 0.755256 | 0.755256 | 0 | 0.052378 | 0.12653 | 17,814 | 275 | 141 | 64.778182 | 0.71491 | 0.194398 | 0 | 0.538462 | 0 | 0 | 0.113691 | 0.043395 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071795 | 0 | 0.071795 | 0.035897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ae97776bca0acb7992f763ec93ef6d072578e892 | 7,916 | py | Python | dmipy/core/signal_model_properties.py | AthenaEPI/mipy | dbbca4066a6c162dcb05865df5ff666af0e4020a | [
"MIT"
] | 59 | 2018-02-22T19:14:19.000Z | 2022-02-22T05:40:27.000Z | dmipy/core/signal_model_properties.py | AthenaEPI/mipy | dbbca4066a6c162dcb05865df5ff666af0e4020a | [
"MIT"
] | 95 | 2018-02-03T11:55:30.000Z | 2022-03-31T15:10:39.000Z | dmipy/core/signal_model_properties.py | AthenaEPI/mipy | dbbca4066a6c162dcb05865df5ff666af0e4020a | [
"MIT"
] | 23 | 2018-02-13T07:21:01.000Z | 2022-02-22T20:12:08.000Z | import numpy as np
from ..utils.construct_observation_matrix import construct_model_based_A_matrix
class AnisotropicSignalModelProperties:
def __init__(self):
pass
def __call__(self):
raise NotImplementedError()
def rotational_harmonics_representation(
self, acquisition_schem... | 38.803922 | 81 | 0.63858 | 903 | 7,916 | 5.413068 | 0.182724 | 0.114771 | 0.030074 | 0.060147 | 0.903232 | 0.893617 | 0.893617 | 0.870704 | 0.870704 | 0.834288 | 0 | 0.009392 | 0.28714 | 7,916 | 203 | 82 | 38.995074 | 0.856814 | 0.51857 | 0 | 0.530303 | 0 | 0 | 0.00067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151515 | false | 0.030303 | 0.030303 | 0 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
8899851e013dee1cb5d9de820f271e946a79ac99 | 11,873 | py | Python | tests/standard_cell.py | enics-labs/salamandra | e3f334d0ead5296b02c471b56cb90b1516e12769 | [
"Apache-2.0"
] | 1 | 2021-11-18T10:45:26.000Z | 2021-11-18T10:45:26.000Z | tests/standard_cell.py | enics-labs/salamandra | e3f334d0ead5296b02c471b56cb90b1516e12769 | [
"Apache-2.0"
] | null | null | null | tests/standard_cell.py | enics-labs/salamandra | e3f334d0ead5296b02c471b56cb90b1516e12769 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 EnICS Labs, Bar-Ilan University.
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
# SPDX-License-Identifier: Apache-2.0
####################### standard_cell #######################
import sys, os
from salamandra import *
from scm_compiler.define_parameters import *
def str_... | 36.872671 | 115 | 0.497178 | 1,668 | 11,873 | 3.320144 | 0.08693 | 0.032503 | 0.079451 | 0.069339 | 0.815096 | 0.806067 | 0.806067 | 0.773203 | 0.753341 | 0.752257 | 0 | 0.049182 | 0.212246 | 11,873 | 321 | 116 | 36.987539 | 0.542927 | 0.055504 | 0 | 0.538462 | 0 | 0 | 0.304953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.004525 | false | 0 | 0.027149 | 0.004525 | 0.036199 | 0.00905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
88a772673928e12f23ae26870686de37d8aadc5e | 21 | py | Python | codebase/code/font_classifier/networks/__init__.py | mhmoodlan/arabic-font-classification | 8810053b16cb438e017844a28968f9f64c16c056 | [
"MIT"
] | 20 | 2020-07-18T07:20:24.000Z | 2022-01-29T10:29:38.000Z | codebase/code/font_classifier/networks/__init__.py | mhmoodlan/arabic-font-classification | 8810053b16cb438e017844a28968f9f64c16c056 | [
"MIT"
] | 3 | 2021-06-10T19:51:50.000Z | 2021-09-22T19:27:28.000Z | codebase/code/font_classifier/networks/__init__.py | mhmoodlan/arabic-font-classification | 8810053b16cb438e017844a28968f9f64c16c056 | [
"MIT"
] | null | null | null | from .cnn import cnn
| 10.5 | 20 | 0.761905 | 4 | 21 | 4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 21 | 1 | 21 | 21 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
31f5e178eee748c8ea67af43b2981217cb61420b | 40,910 | py | Python | test/services/policy_engine/test_bundles.py | roachmd/anchore-engine | 521d6796778139a95f51542670714205c2735a81 | [
"Apache-2.0"
] | null | null | null | test/services/policy_engine/test_bundles.py | roachmd/anchore-engine | 521d6796778139a95f51542670714205c2735a81 | [
"Apache-2.0"
] | null | null | null | test/services/policy_engine/test_bundles.py | roachmd/anchore-engine | 521d6796778139a95f51542670714205c2735a81 | [
"Apache-2.0"
] | null | null | null | import unittest
import json
import copy
import os
from anchore_engine.services.policy_engine.engine.policy.gate import ExecutionContext
from anchore_engine.services.policy_engine.engine.policy.bundles import build_bundle, GateAction
from anchore_engine.db import get_thread_scoped_session as get_session, Image
from anch... | 38.341143 | 213 | 0.423026 | 2,984 | 40,910 | 5.616287 | 0.08311 | 0.021839 | 0.024166 | 0.025598 | 0.807387 | 0.791694 | 0.774748 | 0.757444 | 0.729996 | 0.717823 | 0 | 0.02442 | 0.45847 | 40,910 | 1,066 | 214 | 38.377111 | 0.732057 | 0.027964 | 0 | 0.677766 | 0 | 0 | 0.180428 | 0.01779 | 0 | 0 | 0 | 0 | 0.075188 | 1 | 0.019334 | false | 0 | 0.010741 | 0 | 0.03652 | 0.033298 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
31f65dc90ce4198a5f60abc8fa3e0e9f7b7de1b8 | 203 | py | Python | terra/terra/worker.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | null | null | null | terra/terra/worker.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | 1 | 2022-01-21T20:07:50.000Z | 2022-01-21T20:07:50.000Z | terra/terra/worker.py | dymaxionlabs/platform | 98fe893d4632d62fea3e2357f16d970014037cdf | [
"BSD-3-Clause"
] | null | null | null | import os
import sentry_sdk
from sentry_sdk.integrations.rq import RqIntegration
if os.environ['SENTRY_DNS']:
sentry_sdk.init(
dsn=os.environ['SENTRY_DNS'], integrations=[RqIntegration()])
| 22.555556 | 69 | 0.753695 | 27 | 203 | 5.481481 | 0.481481 | 0.182432 | 0.202703 | 0.243243 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133005 | 203 | 8 | 70 | 25.375 | 0.840909 | 0 | 0 | 0 | 0 | 0 | 0.098522 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
ee01653b702fe74793970d4db464f824270e842d | 3,588 | py | Python | Bot/DataBase/auto_role.py | ChrissisCodeXD/Hikari-TestProject | 236c8fc9081172d9edff6d629e5d11c5abe64205 | [
"MIT"
] | null | null | null | Bot/DataBase/auto_role.py | ChrissisCodeXD/Hikari-TestProject | 236c8fc9081172d9edff6d629e5d11c5abe64205 | [
"MIT"
] | null | null | null | Bot/DataBase/auto_role.py | ChrissisCodeXD/Hikari-TestProject | 236c8fc9081172d9edff6d629e5d11c5abe64205 | [
"MIT"
] | null | null | null | from imports import *
from Bot.DataBase.Connection import DBConnection
class DBRole:
def __init__(self, dbconnection):
self.dbConnection = dbconnection
def create(self):
mydb = self.dbConnection.getConnection()
mycursor = mydb.cursor()
query = f"CREATE TABLE IF NOT EXISTS `a... | 35.176471 | 144 | 0.576087 | 408 | 3,588 | 4.914216 | 0.169118 | 0.083791 | 0.079801 | 0.131671 | 0.769576 | 0.747132 | 0.747132 | 0.713217 | 0.713217 | 0.684788 | 0 | 0.003678 | 0.318004 | 3,588 | 101 | 145 | 35.524752 | 0.815693 | 0 | 0 | 0.78022 | 0 | 0.010989 | 0.126812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.021978 | 0 | 0.197802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ee31c7cd73ba9059affa55803a6085c38b14553a | 25,278 | py | Python | src/models/layers/mlp.py | xxchenxx/pixelfly | 6c366dab855bede8b8ff0d6c8473a64a790bd042 | [
"Apache-2.0"
] | 49 | 2021-12-07T11:51:49.000Z | 2022-03-12T20:07:32.000Z | src/models/layers/mlp.py | xxchenxx/pixelfly | 6c366dab855bede8b8ff0d6c8473a64a790bd042 | [
"Apache-2.0"
] | 7 | 2021-12-07T11:51:35.000Z | 2022-02-07T14:36:08.000Z | src/models/layers/mlp.py | xxchenxx/pixelfly | 6c366dab855bede8b8ff0d6c8473a64a790bd042 | [
"Apache-2.0"
] | 6 | 2021-12-16T09:24:09.000Z | 2022-03-14T04:59:27.000Z | """ MLP module w/ dropout and configurable activation layer
Hacked together by / Copyright 2020 Ross Wightman
"""
import torch
import torch.nn as nn
import torch.nn.functional as F
from src.models.layers.fastlinear import FastLinear, ButterflyLinear, RandomLinear, SLLinear, \
SLXLinear, TopkLinear, TopkLrLinear, B... | 41.371522 | 171 | 0.640201 | 3,605 | 25,278 | 4.258807 | 0.081553 | 0.104866 | 0.127532 | 0.103172 | 0.784733 | 0.776917 | 0.763499 | 0.748909 | 0.740311 | 0.729499 | 0 | 0.0165 | 0.249545 | 25,278 | 610 | 172 | 41.439344 | 0.792831 | 0.10614 | 0 | 0.725108 | 0 | 0 | 0.00692 | 0 | 0 | 0 | 0 | 0.001639 | 0.004329 | 1 | 0.103896 | false | 0 | 0.019481 | 0.002165 | 0.225108 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ee375ce5931eaf395105a6fa8c0ec1ca1a93b997 | 34 | py | Python | discord/types/emoji.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | discord/types/emoji.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | discord/types/emoji.py | Harukomaze/disnake | 541f5c9623a02be894cd1015dbb344070700cb87 | [
"MIT"
] | null | null | null | from disnake.types.emoji import *
| 17 | 33 | 0.794118 | 5 | 34 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 34 | 1 | 34 | 34 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ee607a818521b0c89b0fc320c137b099b633a52e | 77 | py | Python | Hello.py | EranOvadia/try | 22b57ed588de4d16d738b72404b14d00bf3c3c6f | [
"MIT"
] | 1 | 2019-12-16T19:17:01.000Z | 2019-12-16T19:17:01.000Z | Hello.py | EranOvadia/try | 22b57ed588de4d16d738b72404b14d00bf3c3c6f | [
"MIT"
] | null | null | null | Hello.py | EranOvadia/try | 22b57ed588de4d16d738b72404b14d00bf3c3c6f | [
"MIT"
] | null | null | null | class Try(object):
@staticmethod
def print_hi():
print('hi')
| 15.4 | 19 | 0.571429 | 9 | 77 | 4.777778 | 0.777778 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 77 | 4 | 20 | 19.25 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
ee863e47cac22b9dc20c1eea23a1ce6aafd778bf | 2,828 | py | Python | src/genie/libs/parser/junos/tests/ShowRouteAdvertisingProtocol/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 204 | 2018-06-27T00:55:27.000Z | 2022-03-06T21:12:18.000Z | src/genie/libs/parser/junos/tests/ShowRouteAdvertisingProtocol/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 468 | 2018-06-19T00:33:18.000Z | 2022-03-31T23:23:35.000Z | src/genie/libs/parser/junos/tests/ShowRouteAdvertisingProtocol/cli/equal/golden_output_expected.py | balmasea/genieparser | d1e71a96dfb081e0a8591707b9d4872decd5d9d3 | [
"Apache-2.0"
] | 309 | 2019-01-16T20:21:07.000Z | 2022-03-30T12:56:41.000Z | expected_output = {
"route-information": {
"route-table": {
"active-route-count": "929",
"destination-count": "929",
"hidden-route-count": "0",
"holddown-route-count": "0",
"rt": [
{
"rt-destination": "10.220.0.0... | 37.706667 | 61 | 0.284653 | 190 | 2,828 | 4.231579 | 0.236842 | 0.080846 | 0.093284 | 0.037313 | 0.777363 | 0.777363 | 0.777363 | 0.777363 | 0.777363 | 0.777363 | 0 | 0.117647 | 0.555163 | 2,828 | 74 | 62 | 38.216216 | 0.521463 | 0 | 0 | 0.540541 | 0 | 0 | 0.315771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c98e086917d499bb3c8ebd11677c902cd6da5d2a | 295 | py | Python | Ultra Easy/odd_even.py | dabockster/PythonExcercises | 3fdf6f406e588d0e854abe57a684d2f639071586 | [
"MIT"
] | 1 | 2018-10-11T01:49:26.000Z | 2018-10-11T01:49:26.000Z | Ultra Easy/odd_even.py | dabockster/PythonExcercises | 3fdf6f406e588d0e854abe57a684d2f639071586 | [
"MIT"
] | null | null | null | Ultra Easy/odd_even.py | dabockster/PythonExcercises | 3fdf6f406e588d0e854abe57a684d2f639071586 | [
"MIT"
] | null | null | null | # Modulo
for i in range(0, 101):
if i % 2 == 0:
print (str(i) + " is even")
else:
print (str(i) + " is odd")
print ("----------------------")
# Without modulo
for i in range (0,101):
num = int(i/2)
if (num * 2 == i):
print (str(i) + " is even")
else:
print (str(i) + " is odd")
| 15.526316 | 32 | 0.474576 | 50 | 295 | 2.8 | 0.36 | 0.228571 | 0.257143 | 0.314286 | 0.771429 | 0.771429 | 0.771429 | 0.471429 | 0.471429 | 0.471429 | 0 | 0.054545 | 0.254237 | 295 | 18 | 33 | 16.388889 | 0.581818 | 0.071186 | 0 | 0.666667 | 0 | 0 | 0.192593 | 0.081481 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
c9c5e2e002db85f1a0d26e2a02cec3f1cd2710c7 | 57,649 | py | Python | tests/test_factories.py | neuro-inc/neuro-config-client | 29dae0be0ce2238e1f5be0250fc810156ec53fee | [
"Apache-2.0"
] | null | null | null | tests/test_factories.py | neuro-inc/neuro-config-client | 29dae0be0ce2238e1f5be0250fc810156ec53fee | [
"Apache-2.0"
] | 3 | 2022-02-21T16:44:50.000Z | 2022-03-31T15:08:14.000Z | tests/test_factories.py | neuro-inc/neuro-config-client | 29dae0be0ce2238e1f5be0250fc810156ec53fee | [
"Apache-2.0"
] | null | null | null | from dataclasses import replace
from datetime import datetime
from decimal import Decimal
from typing import Any
from unittest import mock
import pytest
from yarl import URL
from neuro_config_client.entities import (
ACMEEnvironment,
ARecord,
AWSCloudProvider,
AWSCredentials,
AWSStorage,
Azure... | 35.607783 | 88 | 0.473746 | 5,112 | 57,649 | 5.092723 | 0.073161 | 0.017093 | 0.021203 | 0.044173 | 0.861297 | 0.835023 | 0.804947 | 0.749213 | 0.715487 | 0.685949 | 0 | 0.035685 | 0.404049 | 57,649 | 1,618 | 89 | 35.62979 | 0.722086 | 0 | 0 | 0.558217 | 0 | 0 | 0.208694 | 0.031275 | 0 | 0 | 0 | 0 | 0.042582 | 1 | 0.043247 | false | 0.020625 | 0.005988 | 0.009315 | 0.05988 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a000c2f49c39eda3ec43c4ab57f89c12b9694243 | 34,190 | py | Python | sdk/python/pulumi_azure/iot/_inputs.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/iot/_inputs.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_azure/iot/_inputs.py | suresh198526/pulumi-azure | bf27206a38d7a5c58b3c2c57ec8769fe3d0fc5d7 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilitie... | 42.7375 | 352 | 0.662504 | 4,164 | 34,190 | 5.298751 | 0.07781 | 0.099211 | 0.088832 | 0.044869 | 0.870785 | 0.787573 | 0.739168 | 0.695794 | 0.660805 | 0.607143 | 0 | 0.007163 | 0.228254 | 34,190 | 799 | 353 | 42.790989 | 0.829038 | 0.356742 | 0 | 0.501044 | 1 | 0 | 0.096681 | 0.021931 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210856 | false | 0 | 0.010438 | 0 | 0.338205 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
a01ac567730de3df4ba7ad031c1b01eef8a11b0f | 59 | py | Python | soccer/data/config.py | RayYu03/pysoccer | 65a4f930e66e21d640e5f0f66f19bdfb0d735fe1 | [
"MIT"
] | 18 | 2017-04-22T10:49:49.000Z | 2019-04-08T20:16:42.000Z | soccer/data/config.py | Tiierr/pysoccer | 65a4f930e66e21d640e5f0f66f19bdfb0d735fe1 | [
"MIT"
] | 3 | 2017-04-22T15:42:53.000Z | 2018-03-09T08:49:48.000Z | soccer/data/config.py | RayYu03/pysoccer | 65a4f930e66e21d640e5f0f66f19bdfb0d735fe1 | [
"MIT"
] | 5 | 2017-04-22T10:49:51.000Z | 2017-04-28T05:05:55.000Z | config = {
'key': '1e20a74731d24653b14db5a6f73a7745'
}
| 14.75 | 45 | 0.694915 | 3 | 59 | 13.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.469388 | 0.169492 | 59 | 3 | 46 | 19.666667 | 0.367347 | 0 | 0 | 0 | 0 | 0 | 0.59322 | 0.542373 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4e53c2f9242a3c6f33d61d0128cba9ba36b2879a | 66 | py | Python | kornia/augmentation/random_generator/__init__.py | AK391/kornia | a2535eb7593ee2fed94d23cc720804a16f9f0e7e | [
"ECL-2.0",
"Apache-2.0"
] | 4,894 | 2019-10-24T15:51:39.000Z | 2022-03-30T22:58:33.000Z | kornia/augmentation/random_generator/__init__.py | AK391/kornia | a2535eb7593ee2fed94d23cc720804a16f9f0e7e | [
"ECL-2.0",
"Apache-2.0"
] | 912 | 2019-10-24T16:08:42.000Z | 2022-03-31T19:07:09.000Z | kornia/augmentation/random_generator/__init__.py | AK391/kornia | a2535eb7593ee2fed94d23cc720804a16f9f0e7e | [
"ECL-2.0",
"Apache-2.0"
] | 557 | 2019-10-24T16:02:43.000Z | 2022-03-28T07:33:33.000Z | from .random_generator import *
from .random_generator3d import *
| 22 | 33 | 0.818182 | 8 | 66 | 6.5 | 0.625 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.121212 | 66 | 2 | 34 | 33 | 0.87931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4ebb760ff9d451ab766a06d2147ea3220d1eb1a3 | 130 | py | Python | unit_test.py | yusif-ifraimov/FlapPy_Bird_SWT | f6bf746d325dde3391116d3405bd9a9c87197263 | [
"MIT"
] | 2 | 2020-02-14T08:52:10.000Z | 2020-02-24T09:25:42.000Z | unit_test.py | yusif-ifraimov/FlapPy_Bird_SWT | f6bf746d325dde3391116d3405bd9a9c87197263 | [
"MIT"
] | null | null | null | unit_test.py | yusif-ifraimov/FlapPy_Bird_SWT | f6bf746d325dde3391116d3405bd9a9c87197263 | [
"MIT"
] | null | null | null | import unittest
from test import test_this_nasty_bird
if __name__ == '__main__':
unittest.main(module=test_this_nasty_bird)
| 18.571429 | 46 | 0.8 | 19 | 130 | 4.736842 | 0.578947 | 0.177778 | 0.288889 | 0.377778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130769 | 130 | 6 | 47 | 21.666667 | 0.79646 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
14cd0ce273b5ca8ed20edabd22af491d84307256 | 26 | py | Python | src/packerpal/__init__.py | minskmaz/packerpal | 1c596f2d175086e7e66b156705dc7fcf77e984b9 | [
"Apache-2.0"
] | null | null | null | src/packerpal/__init__.py | minskmaz/packerpal | 1c596f2d175086e7e66b156705dc7fcf77e984b9 | [
"Apache-2.0"
] | null | null | null | src/packerpal/__init__.py | minskmaz/packerpal | 1c596f2d175086e7e66b156705dc7fcf77e984b9 | [
"Apache-2.0"
] | null | null | null |
from packit import Packer | 13 | 25 | 0.846154 | 4 | 26 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 2 | 25 | 13 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
14e34e412ebb20bdff3f62a6dd0095a6703157e3 | 42 | py | Python | particle_packing/ellipse/pack/__init__.py | aluchies/particle_packing | 127603a519ae25979de6c6197810a7ea38ec945b | [
"BSD-3-Clause"
] | null | null | null | particle_packing/ellipse/pack/__init__.py | aluchies/particle_packing | 127603a519ae25979de6c6197810a7ea38ec945b | [
"BSD-3-Clause"
] | null | null | null | particle_packing/ellipse/pack/__init__.py | aluchies/particle_packing | 127603a519ae25979de6c6197810a7ea38ec945b | [
"BSD-3-Clause"
] | null | null | null | from ...ext.ellipse import rsa_mda, rsa_md | 42 | 42 | 0.785714 | 8 | 42 | 3.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 42 | 1 | 42 | 42 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0924e443aa0132804a0eab9d87ece0538cd75c64 | 264 | py | Python | apps/authentication/serializers.py | Jingil-Integrated-Management/JIM_backend | f0e7860d57eddaee034531a52ab91d6715d12c18 | [
"Apache-2.0"
] | null | null | null | apps/authentication/serializers.py | Jingil-Integrated-Management/JIM_backend | f0e7860d57eddaee034531a52ab91d6715d12c18 | [
"Apache-2.0"
] | null | null | null | apps/authentication/serializers.py | Jingil-Integrated-Management/JIM_backend | f0e7860d57eddaee034531a52ab91d6715d12c18 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from django.contrib.auth.models import User
class PasswordSerializer(serializers.Serializer):
model = User
old_password = serializers.CharField(required=True)
new_password = serializers.CharField(required=True)
| 29.333333 | 55 | 0.806818 | 30 | 264 | 7 | 0.666667 | 0.180952 | 0.266667 | 0.342857 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 264 | 8 | 56 | 33 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0.333333 | 0 | 1 | 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 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
093eb7dcf5ff4b82e5b598ff891d7192355d5ad3 | 128 | py | Python | jina/types/request/index.py | Immich/jina | 1f5f7cf4d82029d76ab41df157526fe6f6e0da50 | [
"Apache-2.0"
] | null | null | null | jina/types/request/index.py | Immich/jina | 1f5f7cf4d82029d76ab41df157526fe6f6e0da50 | [
"Apache-2.0"
] | null | null | null | jina/types/request/index.py | Immich/jina | 1f5f7cf4d82029d76ab41df157526fe6f6e0da50 | [
"Apache-2.0"
] | null | null | null | from . import Request
from .mixin import *
class IndexRequest(Request, DocsPropertyMixin, GroundtruthPropertyMixin):
pass
| 18.285714 | 73 | 0.789063 | 12 | 128 | 8.416667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148438 | 128 | 6 | 74 | 21.333333 | 0.926606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 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 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
0947917375d58fa154a556ccfee00c00778dc453 | 11,299 | py | Python | real_cnn_model/utils/convert_utils.py | 82magnolia/ev_tta | c99ea780491c4a53502afd2cc68c40fbb8183471 | [
"CC-BY-4.0"
] | 1 | 2022-03-24T09:51:23.000Z | 2022-03-24T09:51:23.000Z | real_cnn_model/utils/convert_utils.py | 82magnolia/ev_tta | c99ea780491c4a53502afd2cc68c40fbb8183471 | [
"CC-BY-4.0"
] | null | null | null | real_cnn_model/utils/convert_utils.py | 82magnolia/ev_tta | c99ea780491c4a53502afd2cc68c40fbb8183471 | [
"CC-BY-4.0"
] | null | null | null | from numpy.lib.shape_base import split
import torch
from math import ceil
"""
Collection of functions for converting (N, 4) event tensor to some other form
"""
def event_to_voxel(event: torch.Tensor, num_bins: int, num_events: int, height: int, width: int):
"""
Convert (N, 4) event tensor into a new tensor o... | 42.003717 | 135 | 0.614568 | 1,633 | 11,299 | 4.018371 | 0.087569 | 0.137458 | 0.09875 | 0.039013 | 0.842274 | 0.809966 | 0.800823 | 0.762268 | 0.756477 | 0.729046 | 0 | 0.025898 | 0.241349 | 11,299 | 268 | 136 | 42.160448 | 0.739617 | 0.178865 | 0 | 0.65493 | 0 | 0 | 0.023006 | 0.003909 | 0 | 0 | 0 | 0 | 0.007042 | 1 | 0.042254 | false | 0 | 0.021127 | 0 | 0.112676 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
11700a73fdfdec6acce410558d05cf4c0da7b59f | 2,224 | py | Python | cogs/custom_events.py | Ariz-z/Moderation-By-Pok-mon-Bot-Discord | 1e3691244719184487e05d484232ca8ae053d21b | [
"MIT"
] | null | null | null | cogs/custom_events.py | Ariz-z/Moderation-By-Pok-mon-Bot-Discord | 1e3691244719184487e05d484232ca8ae053d21b | [
"MIT"
] | null | null | null | cogs/custom_events.py | Ariz-z/Moderation-By-Pok-mon-Bot-Discord | 1e3691244719184487e05d484232ca8ae053d21b | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from cogs.moderation import ActionType
def setup(bot):
bot.add_cog(Events(bot))
class Events(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.Cog.listener()
async def on_blacklist_words(self, message):
checks = await self... | 44.48 | 182 | 0.669514 | 299 | 2,224 | 4.876254 | 0.227425 | 0.04321 | 0.053498 | 0.046639 | 0.794925 | 0.781207 | 0.753086 | 0.753086 | 0.753086 | 0.753086 | 0 | 0.001733 | 0.221673 | 2,224 | 50 | 183 | 44.48 | 0.840555 | 0 | 0 | 0.394737 | 0 | 0 | 0.149663 | 0.03236 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.078947 | 0.078947 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
11924a0129d6a62e46cc0fb0a62cd495c9ccd5c7 | 166 | py | Python | src/onegov/directory/models/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/directory/models/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | src/onegov/directory/models/__init__.py | politbuero-kampagnen/onegov-cloud | 20148bf321b71f617b64376fe7249b2b9b9c4aa9 | [
"MIT"
] | null | null | null | from onegov.directory.models.directory import Directory
from onegov.directory.models.directory_entry import DirectoryEntry
__all__ = ('Directory', 'DirectoryEntry')
| 33.2 | 66 | 0.837349 | 18 | 166 | 7.444444 | 0.444444 | 0.149254 | 0.283582 | 0.373134 | 0.507463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078313 | 166 | 4 | 67 | 41.5 | 0.875817 | 0 | 0 | 0 | 0 | 0 | 0.138554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
11abbe1f2cc0e423421447f1b0fd4ff9bbef3f43 | 8,652 | py | Python | pyinstl/instlClientUninstall.py | Nizarazo/instl | d04e9aede292caa1174447189a423726fa3bb97f | [
"BSD-3-Clause"
] | null | null | null | pyinstl/instlClientUninstall.py | Nizarazo/instl | d04e9aede292caa1174447189a423726fa3bb97f | [
"BSD-3-Clause"
] | null | null | null | pyinstl/instlClientUninstall.py | Nizarazo/instl | d04e9aede292caa1174447189a423726fa3bb97f | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3.6
from collections import deque, defaultdict
from configVar import config_vars
import logging
log = logging.getLogger()
from .instlClientRemove import InstlClientRemove
from pybatch import PythonDoSomething
class InstlClientUninstall(InstlClientRemove):
def __init__(self, initial_vars) ->... | 48.606742 | 131 | 0.667591 | 1,127 | 8,652 | 4.710736 | 0.145519 | 0.054248 | 0.06084 | 0.054248 | 0.790733 | 0.788849 | 0.76926 | 0.762856 | 0.762856 | 0.762856 | 0 | 0.006246 | 0.259824 | 8,652 | 177 | 132 | 48.881356 | 0.822767 | 0.164124 | 0 | 0.708333 | 0 | 0 | 0.078801 | 0.052026 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058333 | false | 0 | 0.041667 | 0 | 0.108333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
01301ef4b6feeb3723ba8a2278f5bc9fca1e09b6 | 1,578 | py | Python | tests/getl/test_fileregistry_utils.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 8 | 2020-06-10T09:00:17.000Z | 2021-06-07T18:02:19.000Z | tests/getl/test_fileregistry_utils.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 5 | 2020-07-03T10:39:25.000Z | 2021-08-30T14:52:47.000Z | tests/getl/test_fileregistry_utils.py | husqvarnagroup/GETL | 37251abf12bac2efed1fe463b09a288d85969141 | [
"MIT"
] | 1 | 2020-05-28T07:53:48.000Z | 2020-05-28T07:53:48.000Z | from datetime import datetime
from pyspark.sql import types as T
import getl.fileregistry.fileregistry_utils as fr_utils
def test_doesnt_exist(spark_session, tmp_path):
assert (
fr_utils.fetch_file_registry(str(tmp_path / "unknown"), spark_session) is None
)
def test_empty(spark_session, tmp_path)... | 31.56 | 86 | 0.693916 | 202 | 1,578 | 5.138614 | 0.257426 | 0.115607 | 0.092486 | 0.073218 | 0.837187 | 0.837187 | 0.813102 | 0.77842 | 0.77842 | 0.77842 | 0 | 0 | 0.192015 | 1,578 | 49 | 87 | 32.204082 | 0.814118 | 0 | 0 | 0.342857 | 0 | 0 | 0.069708 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 1 | 0.114286 | false | 0 | 0.085714 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
0136a60af19e88aeeadf5898dbd3f05fba814ef5 | 1,717 | py | Python | project/model.py | Yanshihang/NEUWaterNet | 345eb78d7e1787b621027ee662ff221c7efab840 | [
"MIT"
] | 1 | 2022-02-19T04:22:45.000Z | 2022-02-19T04:22:45.000Z | project/model.py | Yanshihang/NEUWaterNet | 345eb78d7e1787b621027ee662ff221c7efab840 | [
"MIT"
] | null | null | null | project/model.py | Yanshihang/NEUWaterNet | 345eb78d7e1787b621027ee662ff221c7efab840 | [
"MIT"
] | null | null | null |
# Created by 闫世航 on 2021/10/11
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
from sqlalchemy import ForeignKey
db = SQLAlchemy()
class Students(db.Model):
id = db.Column(db.String(8), primary_key=True)
username = db.Column(db.String(15), nullable=False)
password = db.Column(db.... | 34.34 | 92 | 0.713454 | 249 | 1,717 | 4.895582 | 0.208835 | 0.164069 | 0.205086 | 0.183757 | 0.760459 | 0.745693 | 0.702215 | 0.681706 | 0.645611 | 0.604594 | 0 | 0.026585 | 0.145603 | 1,717 | 49 | 93 | 35.040816 | 0.804363 | 0.036692 | 0 | 0.558824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.088235 | 0.088235 | 0 | 0.970588 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
01377d2fb47b16faf4ab079fe663fbdc97c567fd | 20,877 | py | Python | pygol/game/rules.py | umcconnell/pygol | f0ef91b4d785b102ab3d65ff1f7de1fd536ca9b3 | [
"MIT"
] | null | null | null | pygol/game/rules.py | umcconnell/pygol | f0ef91b4d785b102ab3d65ff1f7de1fd536ca9b3 | [
"MIT"
] | null | null | null | pygol/game/rules.py | umcconnell/pygol | f0ef91b4d785b102ab3d65ff1f7de1fd536ca9b3 | [
"MIT"
] | null | null | null | """Common Game of Life Rules"""
# pylint: disable=unused-argument
from typing import Callable, Iterator, Tuple
Neighbors = Iterator[Tuple[int, int, int]]
Signature = Callable[[int, int, Neighbors], int]
def conways_life(cell: int, live_count: int, neighbors: Neighbors = None) -> int:
"""Standard Game of Life rul... | 30.701471 | 90 | 0.627628 | 2,865 | 20,877 | 4.507155 | 0.058639 | 0.046 | 0.045536 | 0.036862 | 0.889878 | 0.879269 | 0.861457 | 0.856888 | 0.853326 | 0.814915 | 0 | 0.030693 | 0.258706 | 20,877 | 679 | 91 | 30.746686 | 0.803696 | 0.716626 | 0 | 0.368 | 0 | 0 | 0.085454 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112 | false | 0 | 0.008 | 0 | 0.424 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
013ed8c93bfa46abc98ea16a26b5257c3f83f664 | 161 | py | Python | cisco_umbrella_dns_rules/domain_blocked.py | panther-labs/panther-cli | 4e5c0a21570e1a02dada990fd91e324416afac96 | [
"MIT"
] | 4 | 2019-10-17T19:33:29.000Z | 2019-10-21T15:23:30.000Z | cisco_umbrella_dns_rules/domain_blocked.py | jacknagz/panther-analysis | fceab78ba5624136776596ee1b25fa0dc8a02a42 | [
"Apache-2.0"
] | null | null | null | cisco_umbrella_dns_rules/domain_blocked.py | jacknagz/panther-analysis | fceab78ba5624136776596ee1b25fa0dc8a02a42 | [
"Apache-2.0"
] | null | null | null | def rule(event):
return event.get("action") == "Blocked"
def title(event):
return "Access denied to domain " + event.get("domain", "<UNKNOWN_DOMAIN>")
| 23 | 79 | 0.658385 | 21 | 161 | 5 | 0.619048 | 0.209524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167702 | 161 | 6 | 80 | 26.833333 | 0.783582 | 0 | 0 | 0 | 0 | 0 | 0.36646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 6 |
a301573b1a3ee4b8d3f47bcad8c1ddccdb64a5f5 | 39 | py | Python | src/models/selectors/__init__.py | ddlatumalea/disease_and_life | aa8c84fdd4a0b41bc0ee275538ac70a362eb26ba | [
"Apache-2.0"
] | null | null | null | src/models/selectors/__init__.py | ddlatumalea/disease_and_life | aa8c84fdd4a0b41bc0ee275538ac70a362eb26ba | [
"Apache-2.0"
] | null | null | null | src/models/selectors/__init__.py | ddlatumalea/disease_and_life | aa8c84fdd4a0b41bc0ee275538ac70a362eb26ba | [
"Apache-2.0"
] | null | null | null | from .selector import DataFrameSelector | 39 | 39 | 0.897436 | 4 | 39 | 8.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 39 | 1 | 39 | 39 | 0.972222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a302fb95f25d91de084163045c850fe171007929 | 17 | py | Python | test.py | Ozen7/vSketch | 065c40bd4d815d2a749948769b2d33d4edee5bf7 | [
"MIT"
] | null | null | null | test.py | Ozen7/vSketch | 065c40bd4d815d2a749948769b2d33d4edee5bf7 | [
"MIT"
] | null | null | null | test.py | Ozen7/vSketch | 065c40bd4d815d2a749948769b2d33d4edee5bf7 | [
"MIT"
] | 1 | 2021-03-04T15:30:37.000Z | 2021-03-04T15:30:37.000Z | from p5 import *
| 8.5 | 16 | 0.705882 | 3 | 17 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.235294 | 17 | 1 | 17 | 17 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a3090adde01d3a577998bcef44a8ad3bf94240a8 | 140 | py | Python | comments/admin.py | Vicky-Rathod/django-blog | 1c15210376c9e365052dd5c106dbd903a9717bba | [
"MIT"
] | null | null | null | comments/admin.py | Vicky-Rathod/django-blog | 1c15210376c9e365052dd5c106dbd903a9717bba | [
"MIT"
] | null | null | null | comments/admin.py | Vicky-Rathod/django-blog | 1c15210376c9e365052dd5c106dbd903a9717bba | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Comment
@admin.register(Comment)
class CommentAdminModel(admin.ModelAdmin):
pass
| 17.5 | 42 | 0.8 | 17 | 140 | 6.588235 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 140 | 7 | 43 | 20 | 0.918033 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
0980b2d908e89d94086c432ba61ab459209ff1c2 | 252 | py | Python | fileparser/TMVOC.py | temmy222/tough_refactor | b22e8dd97213a7ad347a5c95b98671df08a35847 | [
"Unlicense"
] | 2 | 2021-01-10T02:04:01.000Z | 2021-01-27T06:23:20.000Z | fileparser/TMVOC.py | temmy222/tough_refactor | b22e8dd97213a7ad347a5c95b98671df08a35847 | [
"Unlicense"
] | null | null | null | fileparser/TMVOC.py | temmy222/tough_refactor | b22e8dd97213a7ad347a5c95b98671df08a35847 | [
"Unlicense"
] | null | null | null | import csv
import fileparser.tough3 as tough3
class TMVOC(tough3.Tough3):
def __init__(self, simulatortype, filelocation, filetitle):
super().__init__(simulatortype, filelocation, filetitle)
# super().__init__(getfileinfo.FileRead)
| 22.909091 | 64 | 0.75 | 26 | 252 | 6.807692 | 0.615385 | 0.282486 | 0.384181 | 0.440678 | 0.485876 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.150794 | 252 | 10 | 65 | 25.2 | 0.808411 | 0.150794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 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 | 1 | 0 | 1 | 0 | 0 | 6 |
0994c49f8c9e609b1804119aed357eafacff3420 | 280 | py | Python | etl/copy_from_tsv.py | david4096/cell-server | 72961e60ef05b3ecde2249cd16c69ef940149f40 | [
"Apache-2.0"
] | null | null | null | etl/copy_from_tsv.py | david4096/cell-server | 72961e60ef05b3ecde2249cd16c69ef940149f40 | [
"Apache-2.0"
] | 17 | 2017-07-01T01:27:03.000Z | 2017-08-17T23:15:45.000Z | celldb/etl/copy_from_tsv.py | david4096/celldb-etl-10x | 5c9bd40ff423a24b1f0de8b12722c9b8fa8b7d09 | [
"Apache-2.0"
] | null | null | null | # This script generates a copy table statement that can be used to load data.
#
# Usage
#
# python tabletocopyto mytsv.tsv
#
import sys
# TODO needs to point to absolute path
print("COPY {} FROM '{}' [WITH (delimiter = '\t', header = 'false')];".format(sys.argv[1], sys.argv[2]))
| 28 | 104 | 0.685714 | 43 | 280 | 4.465116 | 0.860465 | 0.072917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 0.164286 | 280 | 9 | 105 | 31.111111 | 0.811966 | 0.532143 | 0 | 0 | 1 | 0 | 0.504065 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
09f0148cf46337fd4d5a38a4d9166be95bd7bf8f | 42 | py | Python | unseal/interface/__init__.py | puffy310/unseal | 0768aaa7f0acf0be1ea50955051ab5cca6345496 | [
"MIT"
] | null | null | null | unseal/interface/__init__.py | puffy310/unseal | 0768aaa7f0acf0be1ea50955051ab5cca6345496 | [
"MIT"
] | null | null | null | unseal/interface/__init__.py | puffy310/unseal | 0768aaa7f0acf0be1ea50955051ab5cca6345496 | [
"MIT"
] | null | null | null | from . import utils
from .commons import * | 21 | 22 | 0.761905 | 6 | 42 | 5.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 42 | 2 | 22 | 21 | 0.914286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
61e0fe09d08a40926f1e2abf69acf171d809223d | 44 | py | Python | LibSRC/xlsProLib/__init__.py | wangzhongtian/vobTool.srcGit | 255a33ce109b63d335084007b3d1f3635a2992bf | [
"Unlicense"
] | null | null | null | LibSRC/xlsProLib/__init__.py | wangzhongtian/vobTool.srcGit | 255a33ce109b63d335084007b3d1f3635a2992bf | [
"Unlicense"
] | null | null | null | LibSRC/xlsProLib/__init__.py | wangzhongtian/vobTool.srcGit | 255a33ce109b63d335084007b3d1f3635a2992bf | [
"Unlicense"
] | null | null | null | #-*-coding:utf8-*-
from .xlsProLib import * | 22 | 25 | 0.659091 | 5 | 44 | 5.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.113636 | 44 | 2 | 25 | 22 | 0.717949 | 0.386364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
61e24819439175e495c851aaabd204789e0d5f06 | 26,741 | py | Python | pybind/slxos/v17r_2_00/ntp/peer/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17r_2_00/ntp/peer/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | null | null | null | pybind/slxos/v17r_2_00/ntp/peer/__init__.py | extremenetworks/pybind | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | [
"Apache-2.0"
] | 1 | 2021-11-05T22:15:42.000Z | 2021-11-05T22:15:42.000Z |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | 88.254125 | 899 | 0.702592 | 4,024 | 26,741 | 4.454523 | 0.054672 | 0.007141 | 0.090377 | 0.055342 | 0.87007 | 0.846583 | 0.83537 | 0.829121 | 0.822427 | 0.822427 | 0 | 0.043077 | 0.112786 | 26,741 | 302 | 900 | 88.546358 | 0.712455 | 0.101193 | 0 | 0.447917 | 0 | 0.078125 | 0.409765 | 0.192603 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109375 | false | 0 | 0.041667 | 0 | 0.270833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
113d278ece620c0ffe8b851e330442ca64bccbbc | 11,951 | py | Python | account/test_forms.py | robpop/explore_engine | 21942c73b28b7b22351877b9772773dfdf298667 | [
"MIT"
] | null | null | null | account/test_forms.py | robpop/explore_engine | 21942c73b28b7b22351877b9772773dfdf298667 | [
"MIT"
] | null | null | null | account/test_forms.py | robpop/explore_engine | 21942c73b28b7b22351877b9772773dfdf298667 | [
"MIT"
] | null | null | null | from django.test import TestCase
from account.forms import UserCreationForm
from django.contrib.auth.models import User
class AccountFormTests(TestCase):
def setUp(self):
taken_user = User.objects.create_user(username='taken', email='unsift5@mailinator.com', password='BlueGreen123!')
def test_user_cr... | 39.442244 | 157 | 0.586562 | 1,141 | 11,951 | 5.957055 | 0.117441 | 0.054142 | 0.037222 | 0.064293 | 0.802119 | 0.789025 | 0.758276 | 0.716493 | 0.697808 | 0.628954 | 0 | 0.062074 | 0.28826 | 11,951 | 303 | 158 | 39.442244 | 0.737009 | 0 | 0 | 0.628159 | 0 | 0 | 0.298444 | 0.066516 | 0 | 0 | 0 | 0 | 0.162455 | 1 | 0.086643 | false | 0.241877 | 0.01083 | 0 | 0.101083 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
fecb22293f6617106a14408a14e7486dc97482f0 | 182 | py | Python | blackboard_analysis_tools/__main__.py | jeroendoggen/blackboard-analysis-tools | 9fb289130740bd125914be54d453e77b63de8ebb | [
"MIT"
] | 1 | 2016-04-21T15:18:18.000Z | 2016-04-21T15:18:18.000Z | blackboard_analysis_tools/__main__.py | jeroendoggen/blackboard-analysis-tools | 9fb289130740bd125914be54d453e77b63de8ebb | [
"MIT"
] | null | null | null | blackboard_analysis_tools/__main__.py | jeroendoggen/blackboard-analysis-tools | 9fb289130740bd125914be54d453e77b63de8ebb | [
"MIT"
] | null | null | null | """
Blackboard Analysis Tools
Copyright 2013, Jeroen Doggen, jeroendoggen@gmail.com
"""
from blackboard_analysis_tools.main import run
if __name__ == '__main__':
run()
| 18.2 | 57 | 0.71978 | 21 | 182 | 5.761905 | 0.761905 | 0.297521 | 0.380165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026846 | 0.181319 | 182 | 9 | 58 | 20.222222 | 0.785235 | 0.434066 | 0 | 0 | 0 | 0 | 0.091954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
fee21e9871abc0db32818027a3dc2b50c8bd5f81 | 167 | py | Python | generator/__init__.py | binary-hideout/p-dispersion-problem | 123a6110dbf64d19a221da545c0590f7efc500dc | [
"MIT"
] | 1 | 2020-03-29T23:42:15.000Z | 2020-03-29T23:42:15.000Z | generator/__init__.py | binary-hideout/p-dispersion-problem | 123a6110dbf64d19a221da545c0590f7efc500dc | [
"MIT"
] | 1 | 2021-08-31T15:15:08.000Z | 2021-08-31T15:15:08.000Z | generator/__init__.py | netotz/p-dispersion-problem | 123a6110dbf64d19a221da545c0590f7efc500dc | [
"MIT"
] | 1 | 2020-05-19T04:46:47.000Z | 2020-05-19T04:46:47.000Z | '''
Package that contains necessary functions to generate an instance.
'''
from .generate_instance import generate_instance
from .cl_argsparse import parse_arguments
| 23.857143 | 66 | 0.826347 | 21 | 167 | 6.380952 | 0.714286 | 0.179104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11976 | 167 | 6 | 67 | 27.833333 | 0.911565 | 0.39521 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3a2721d837611a6c491caba97e3f0bdd62e2ad16 | 29 | py | Python | ntfs_parse/logfile/__init__.py | NTFSparse/ntfs_parse | 048d6b1146a147bfc1ccc92224a92683ee30e478 | [
"MIT"
] | 30 | 2016-03-11T10:03:25.000Z | 2021-12-24T00:34:58.000Z | ntfs_parse/logfile/__init__.py | NTFSparse/ntfs_parse | 048d6b1146a147bfc1ccc92224a92683ee30e478 | [
"MIT"
] | null | null | null | ntfs_parse/logfile/__init__.py | NTFSparse/ntfs_parse | 048d6b1146a147bfc1ccc92224a92683ee30e478 | [
"MIT"
] | 6 | 2017-04-20T01:56:39.000Z | 2021-07-10T11:06:11.000Z | from .logfile import LogFile
| 14.5 | 28 | 0.827586 | 4 | 29 | 6 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 29 | 1 | 29 | 29 | 0.96 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
28a5de62fdbf866201142d8f1e90603769c0fad6 | 13,483 | py | Python | problems/count-of-range-sum/solution.py | HearyShen/leetcode-cn | c9d5bb53799f9428d7615e095c89997897b5b8ab | [
"MIT"
] | 1 | 2021-01-05T06:18:46.000Z | 2021-01-05T06:18:46.000Z | problems/count-of-range-sum/solution.py | HearyShen/leetcode-cn | c9d5bb53799f9428d7615e095c89997897b5b8ab | [
"MIT"
] | null | null | null | problems/count-of-range-sum/solution.py | HearyShen/leetcode-cn | c9d5bb53799f9428d7615e095c89997897b5b8ab | [
"MIT"
] | 1 | 2020-03-10T13:24:30.000Z | 2020-03-10T13:24:30.000Z | import time
from typing import List
class Solution:
def countRangeSum(self, nums: List[int], lower: int, upper: int) -> int:
# TODO: 2020.3.19, need to use faster method than O(n^2)
count = 0
for i in range(len(nums)):
for j in range(i+1, len(nums) + 1):
rangeSu... | 539.32 | 12,734 | 0.529185 | 4,112 | 13,483 | 1.73322 | 0.019698 | 0.005051 | 0.002526 | 0.001964 | 0.002245 | 0 | 0 | 0 | 0 | 0 | 0 | 0.508655 | 0.018839 | 13,483 | 24 | 12,735 | 561.791667 | 0.030085 | 0.004005 | 0 | 0 | 0 | 0.052632 | 0.00432 | 0 | 0 | 0 | 0 | 0.041667 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.263158 | 0.052632 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
3a943596b1fcac8c634d46e31cc092d5ce93d1d5 | 9,217 | py | Python | scripts/loading/variant/update_variant_data.py | dougli1sqrd/SGDBackend-Nex2 | 2ecb2436db142cf08c6f2dbab6b115a394116632 | [
"MIT"
] | 5 | 2015-11-24T23:09:46.000Z | 2019-11-06T17:48:13.000Z | scripts/loading/variant/update_variant_data.py | dougli1sqrd/SGDBackend-Nex2 | 2ecb2436db142cf08c6f2dbab6b115a394116632 | [
"MIT"
] | 188 | 2017-08-28T22:39:03.000Z | 2022-03-02T14:53:46.000Z | scripts/loading/variant/update_variant_data.py | dougli1sqrd/SGDBackend-Nex2 | 2ecb2436db142cf08c6f2dbab6b115a394116632 | [
"MIT"
] | 7 | 2018-05-13T01:58:07.000Z | 2021-06-25T19:08:33.000Z | import os
import sys
from src.models import Sequencevariant
from scripts.loading.database_session import get_session
__author__ = 'sweng66'
CREATED_BY = os.environ['DEFAULT_USER']
dna_data_file = "scripts/loading/variant/data/dna_variant.txt"
protein_data_file = "scripts/loading/variant/data/protein_variant.txt"
int... | 32.568905 | 112 | 0.530107 | 1,134 | 9,217 | 4.022928 | 0.09612 | 0.103025 | 0.031565 | 0.033538 | 0.809513 | 0.781675 | 0.731477 | 0.700789 | 0.682595 | 0.682595 | 0 | 0.015775 | 0.367256 | 9,217 | 282 | 113 | 32.684397 | 0.766461 | 0.059781 | 0 | 0.722222 | 0 | 0 | 0.066628 | 0.016541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023148 | false | 0 | 0.018519 | 0 | 0.041667 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
c9546ce24edabbf68d8c9e2e3e188ac312398b16 | 159 | py | Python | models/__init__.py | hedra-digital/SOC | 36a99dca15424ff8c06d51eaad2bb21afbfdace5 | [
"MIT"
] | null | null | null | models/__init__.py | hedra-digital/SOC | 36a99dca15424ff8c06d51eaad2bb21afbfdace5 | [
"MIT"
] | null | null | null | models/__init__.py | hedra-digital/SOC | 36a99dca15424ff8c06d51eaad2bb21afbfdace5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from . import res
from . import product
from . import stock
from . import sale
from . import import_products
from . import consignment | 19.875 | 29 | 0.72327 | 22 | 159 | 5.181818 | 0.5 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.18239 | 159 | 8 | 30 | 19.875 | 0.869231 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c9722f10eceb0168603dcf55458f35d35fb8428b | 23 | py | Python | test/randist/__init__.py | tidues/Distance-Distribution-of-Random-Events | 652104f3a2a6c5422b8529a4d0d37453545a5f8e | [
"MIT"
] | 1 | 2020-07-10T22:12:55.000Z | 2020-07-10T22:12:55.000Z | test/randist/__init__.py | jwalteros/RanDist | 652104f3a2a6c5422b8529a4d0d37453545a5f8e | [
"MIT"
] | null | null | null | test/randist/__init__.py | jwalteros/RanDist | 652104f3a2a6c5422b8529a4d0d37453545a5f8e | [
"MIT"
] | 1 | 2019-12-18T20:36:54.000Z | 2019-12-18T20:36:54.000Z | from .randist import *
| 11.5 | 22 | 0.73913 | 3 | 23 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 23 | 1 | 23 | 23 | 0.894737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c97e4ca7f956ede383645f2b690cce299ec71608 | 163 | py | Python | orchestra/contrib/contacts/validators.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 68 | 2015-02-09T10:28:44.000Z | 2022-03-12T11:08:36.000Z | orchestra/contrib/contacts/validators.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 17 | 2015-05-01T18:10:03.000Z | 2021-03-19T21:52:55.000Z | orchestra/contrib/contacts/validators.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 29 | 2015-03-31T04:51:03.000Z | 2022-02-17T02:58:50.000Z | from orchestra.core import validators
from . import settings
def validate_phone(phone):
validators.validate_phone(phone, settings.CONTACTS_DEFAULT_COUNTRY)
| 20.375 | 71 | 0.822086 | 20 | 163 | 6.5 | 0.6 | 0.2 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116564 | 163 | 7 | 72 | 23.285714 | 0.902778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a341457208deb17d3623efe9bf5a64b7b1e252b7 | 186 | py | Python | scholarships/scholarship/admin.py | smi96/django_scholarship_sample | e12915212a68882aad9ff48fa161343177e065e9 | [
"MIT"
] | null | null | null | scholarships/scholarship/admin.py | smi96/django_scholarship_sample | e12915212a68882aad9ff48fa161343177e065e9 | [
"MIT"
] | null | null | null | scholarships/scholarship/admin.py | smi96/django_scholarship_sample | e12915212a68882aad9ff48fa161343177e065e9 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Userprofile
from .models import options
# Register your models here.
admin.site.register(Userprofile, )
admin.site.register(options) | 26.571429 | 34 | 0.817204 | 25 | 186 | 6.08 | 0.48 | 0.131579 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 186 | 7 | 35 | 26.571429 | 0.915663 | 0.139785 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a387d77823a94ccffef33f27613c60699fdce5b4 | 38 | py | Python | package/discombob/__init__.py | sbuckleybonanno/Essay-Discombubulator | ac9f718fccfb19d9da2f5e0ffff791e58f1d2aaa | [
"MIT"
] | null | null | null | package/discombob/__init__.py | sbuckleybonanno/Essay-Discombubulator | ac9f718fccfb19d9da2f5e0ffff791e58f1d2aaa | [
"MIT"
] | null | null | null | package/discombob/__init__.py | sbuckleybonanno/Essay-Discombubulator | ac9f718fccfb19d9da2f5e0ffff791e58f1d2aaa | [
"MIT"
] | null | null | null | from discombob.discombob import Essay
| 19 | 37 | 0.868421 | 5 | 38 | 6.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 1 | 38 | 38 | 0.970588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6e57658e14af65a6a6166b89915f9d365d2b541a | 214 | py | Python | 1500-1599/1518.py | linyk9/leetcode | eaaadead32cc9d3884543f4ed832bb3cb5aa68e6 | [
"MIT"
] | null | null | null | 1500-1599/1518.py | linyk9/leetcode | eaaadead32cc9d3884543f4ed832bb3cb5aa68e6 | [
"MIT"
] | null | null | null | 1500-1599/1518.py | linyk9/leetcode | eaaadead32cc9d3884543f4ed832bb3cb5aa68e6 | [
"MIT"
] | null | null | null | class Solution:
def numWaterBottles(self, numBottles: int, numExchange: int) -> int:
ans = numBottles // (numExchange - 1) + numBottles
return ans if numBottles % (numExchange - 1) else ans - 1
| 42.8 | 72 | 0.658879 | 24 | 214 | 5.875 | 0.541667 | 0.297872 | 0.312057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018405 | 0.238318 | 214 | 4 | 73 | 53.5 | 0.846626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
6e70de3e57b7e4feb7d364b61784c9e3d7fb9aff | 116 | py | Python | hypney/utils/all.py | JelleAalbers/hypney | 3e38e21743fc9babe0ed47af299d08242a9b6d32 | [
"MIT"
] | null | null | null | hypney/utils/all.py | JelleAalbers/hypney | 3e38e21743fc9babe0ed47af299d08242a9b6d32 | [
"MIT"
] | null | null | null | hypney/utils/all.py | JelleAalbers/hypney | 3e38e21743fc9babe0ed47af299d08242a9b6d32 | [
"MIT"
] | null | null | null | from .eagerpy import *
from .hashing import *
from .interpolation import *
from .numba import *
from .misc import *
| 19.333333 | 28 | 0.741379 | 15 | 116 | 5.733333 | 0.466667 | 0.465116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 116 | 5 | 29 | 23.2 | 0.895833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6e75e7f1ec54feb2722c65caf58a4586e9960b0a | 18,385 | py | Python | tests/models/test_modules.py | tn1031/set-matching-pytorch | f88ee1e374fef15c70f1ad2da92ce653de22f1eb | [
"MIT"
] | 5 | 2021-08-16T08:22:03.000Z | 2022-02-09T08:30:54.000Z | tests/models/test_modules.py | tn1031/set-matching-pytorch | f88ee1e374fef15c70f1ad2da92ce653de22f1eb | [
"MIT"
] | null | null | null | tests/models/test_modules.py | tn1031/set-matching-pytorch | f88ee1e374fef15c70f1ad2da92ce653de22f1eb | [
"MIT"
] | null | null | null | import torch
from set_matching.models.modules import (
ISAB,
MAB,
PMA,
SAB,
ConvolutionSentence,
CrossSetDecoder,
FeedForwardLayer,
LayerNormalizationSentence,
MultiHeadAttention,
MultiHeadExpectation,
MultiHeadSimilarity,
SetDecoder,
SetEncoder,
SetISABEncoder,
... | 37.443992 | 118 | 0.620179 | 3,117 | 18,385 | 3.423484 | 0.045557 | 0.057352 | 0.07169 | 0.090526 | 0.859713 | 0.820823 | 0.784744 | 0.74248 | 0.720364 | 0.701902 | 0 | 0.044055 | 0.212293 | 18,385 | 490 | 119 | 37.520408 | 0.692791 | 0.040957 | 0 | 0.625337 | 0 | 0 | 0.001765 | 0 | 0 | 0 | 0 | 0 | 0.191375 | 1 | 0.051213 | false | 0 | 0.005391 | 0 | 0.056604 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6eae9a6b94f53a34531db40962adcc461f9029a5 | 13,931 | py | Python | products/tests.py | UB-ES-2021-A1/wannasell-backend | 84360b2985fc28971867601373697f39303e396b | [
"Unlicense"
] | null | null | null | products/tests.py | UB-ES-2021-A1/wannasell-backend | 84360b2985fc28971867601373697f39303e396b | [
"Unlicense"
] | 62 | 2021-11-22T21:52:44.000Z | 2021-12-17T15:07:02.000Z | products/tests.py | UB-ES-2021-A1/wannasell-backend | 84360b2985fc28971867601373697f39303e396b | [
"Unlicense"
] | null | null | null | import tempfile
from django.test import TestCase
import PIL
from rest_framework.authtoken.admin import User
from rest_framework.authtoken.models import Token
from rest_framework.test import APIClient
from products.models import Product, Category, Image
# Create your tests here.
class ProductsTestCase(TestCase):
... | 39.022409 | 117 | 0.627378 | 1,773 | 13,931 | 4.820643 | 0.076142 | 0.02457 | 0.047619 | 0.08775 | 0.852697 | 0.819001 | 0.799228 | 0.770446 | 0.738856 | 0.705277 | 0 | 0.019015 | 0.226114 | 13,931 | 356 | 118 | 39.132022 | 0.773769 | 0.011557 | 0 | 0.621622 | 0 | 0 | 0.14188 | 0.059517 | 0 | 0 | 0 | 0 | 0.204633 | 1 | 0.119691 | false | 0.003861 | 0.027027 | 0 | 0.150579 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
42ba5b1a3a424d525b41a801a0e793d21c7e82ac | 124 | py | Python | highcharts_loader/__init__.py | lionasp/highcharts-loader | 7a5f66dd41fd7eb9ca8fa46a3ffd28dd6831e91d | [
"MIT"
] | 2 | 2020-01-28T20:45:23.000Z | 2020-05-27T12:41:48.000Z | highcharts_loader/__init__.py | lionasp/highcharts-loader | 7a5f66dd41fd7eb9ca8fa46a3ffd28dd6831e91d | [
"MIT"
] | null | null | null | highcharts_loader/__init__.py | lionasp/highcharts-loader | 7a5f66dd41fd7eb9ca8fa46a3ffd28dd6831e91d | [
"MIT"
] | null | null | null | __version__ = '1.4.0'
from highcharts_loader.chart_loader import ChartLoader
from highcharts_loader.options import Options
| 24.8 | 54 | 0.846774 | 17 | 124 | 5.764706 | 0.647059 | 0.285714 | 0.408163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.096774 | 124 | 4 | 55 | 31 | 0.848214 | 0 | 0 | 0 | 0 | 0 | 0.040323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6e0d3625d4fefa2bdddc93411275b07e386510fe | 11,018 | py | Python | tests/test_pdp_calc_utils.py | antwhite/PDPbox | b022a0aabcc6dbe2440244bf48d08fbb6ecdaf2d | [
"MIT"
] | 675 | 2017-08-08T03:37:46.000Z | 2022-03-31T20:14:02.000Z | tests/test_pdp_calc_utils.py | antwhite/PDPbox | b022a0aabcc6dbe2440244bf48d08fbb6ecdaf2d | [
"MIT"
] | 60 | 2017-08-02T15:59:02.000Z | 2022-03-29T03:57:22.000Z | tests/test_pdp_calc_utils.py | antwhite/PDPbox | b022a0aabcc6dbe2440244bf48d08fbb6ecdaf2d | [
"MIT"
] | 121 | 2017-08-08T03:37:50.000Z | 2022-03-29T10:06:11.000Z | import numpy as np
from numpy.testing import assert_array_equal
from pandas.testing import assert_frame_equal
import pandas as pd
from pdpbox.pdp_calc_utils import (
_calc_ice_lines,
_calc_ice_lines_inter,
_prepare_pdp_count_data,
)
import pytest
class TestCalcICELinesBinary(object):
def test_ice_bina... | 32.02907 | 88 | 0.562262 | 1,216 | 11,018 | 4.699013 | 0.097862 | 0.053903 | 0.042002 | 0.043227 | 0.859993 | 0.810991 | 0.79454 | 0.760588 | 0.70756 | 0.658733 | 0 | 0.028606 | 0.333727 | 11,018 | 343 | 89 | 32.122449 | 0.749762 | 0.027682 | 0 | 0.66113 | 0 | 0 | 0.0703 | 0 | 0 | 0 | 0 | 0 | 0.049834 | 1 | 0.066445 | false | 0 | 0.019934 | 0 | 0.10299 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6e26eb26aa19d771a78145efcf1a32573faffb36 | 25,528 | py | Python | tests/objects/test_mc_member.py | andreask/mailchimp-python | 5823b93be8bc1d6d93c7d0e01bfa9b0be276a4b1 | [
"MIT"
] | null | null | null | tests/objects/test_mc_member.py | andreask/mailchimp-python | 5823b93be8bc1d6d93c7d0e01bfa9b0be276a4b1 | [
"MIT"
] | null | null | null | tests/objects/test_mc_member.py | andreask/mailchimp-python | 5823b93be8bc1d6d93c7d0e01bfa9b0be276a4b1 | [
"MIT"
] | 1 | 2018-02-12T18:11:04.000Z | 2018-02-12T18:11:04.000Z | # coding=utf-8
import datetime
from dateutil.tz import tzutc
import responses
import unittest
from mailchimp.config import mailchimp_config
from mailchimp.exceptions import MCMemberNotFound
from mailchimp.objects import MCMember, MCLocation
class TestMCMember(unittest.TestCase):
def setUp(self):
mailchimp... | 46.330309 | 131 | 0.528831 | 2,326 | 25,528 | 5.701204 | 0.080825 | 0.091622 | 0.072393 | 0.043436 | 0.875952 | 0.862152 | 0.843526 | 0.837267 | 0.82769 | 0.796245 | 0 | 0.100746 | 0.332772 | 25,528 | 550 | 132 | 46.414545 | 0.677802 | 0.00047 | 0 | 0.683495 | 0 | 0.093204 | 0.353375 | 0.04523 | 0 | 0 | 0 | 0 | 0.174757 | 1 | 0.038835 | false | 0 | 0.013592 | 0.005825 | 0.060194 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6e320a47c5779fd59096bb408ee96c4165cb6a72 | 2,173 | py | Python | helpers/tic_tac_toe/tic_tac_toe_help_functions.py | v1s1t0r999/Novell | 4499e5c0634b12dfbd5b5e8ba671b579b7ac5be9 | [
"MIT"
] | 8 | 2021-08-13T03:00:34.000Z | 2021-08-22T05:08:03.000Z | helpers/tic_tac_toe/tic_tac_toe_help_functions.py | v1s1t0r999/Novell | 4499e5c0634b12dfbd5b5e8ba671b579b7ac5be9 | [
"MIT"
] | 9 | 2021-08-15T20:27:59.000Z | 2021-09-06T20:22:36.000Z | helpers/tic_tac_toe/tic_tac_toe_help_functions.py | v1s1t0r999/Novell | 4499e5c0634b12dfbd5b5e8ba671b579b7ac5be9 | [
"MIT"
] | 9 | 2021-08-14T16:43:04.000Z | 2021-09-07T19:14:33.000Z | def corner_move(game):
return list(set(game.possible_moves()) & {1, 3, 7, 9})
def center_move(game):
return list(set(game.possible_moves()) & {5})
def side_move(game):
return list(set(game.possible_moves()) & {2, 4, 6, 8})
def test_if_win_is_possible(game, to_check=None):
if to_check is None:
... | 27.1625 | 73 | 0.672803 | 307 | 2,173 | 4.442997 | 0.140065 | 0.314516 | 0.11217 | 0.057185 | 0.844575 | 0.844575 | 0.813783 | 0.736804 | 0.601906 | 0.601906 | 0 | 0.011425 | 0.234699 | 2,173 | 79 | 74 | 27.506329 | 0.808779 | 0.005983 | 0 | 0.672414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0 | 0.051724 | 0.344828 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 1 | 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 | 6 |
6e42d258b833c073891ebe93ca541a2e1455d495 | 96 | py | Python | venv/lib/python3.8/site-packages/cleo/testers/command_tester.py | Retraces/UkraineBot | 3d5d7f8aaa58fa0cb8b98733b8808e5dfbdb8b71 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/cleo/testers/command_tester.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/cleo/testers/command_tester.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/32/7c/9c/88f0d15732ccaee428dc59b502638f2bfb5bdacc8142a2394c0d6b4391 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.40625 | 0 | 96 | 1 | 96 | 96 | 0.489583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
284ea1e91886d33acd1f0c51eed822e467a6749a | 2,143 | py | Python | tests/test_parse.py | jonnymcgow7/locust | 955f7707b7e85ac7c405f47f0e83d722091e6e76 | [
"MIT"
] | 34 | 2020-10-29T21:21:10.000Z | 2022-03-31T21:54:14.000Z | tests/test_parse.py | jonnymcgow7/locust | 955f7707b7e85ac7c405f47f0e83d722091e6e76 | [
"MIT"
] | 32 | 2020-10-28T19:36:13.000Z | 2022-03-30T23:54:59.000Z | tests/test_parse.py | jonnymcgow7/locust | 955f7707b7e85ac7c405f47f0e83d722091e6e76 | [
"MIT"
] | 3 | 2020-10-16T15:34:06.000Z | 2020-10-17T12:25:09.000Z | import json
import os
import unittest
from google.protobuf.json_format import MessageToDict, Parse
from locust import git, parse
from . import config
class TestLocustParse(unittest.TestCase):
maxDiff = None
def test_parse_run(self):
repo_dir = config.TESTCASES_DIR
test_input_fixture = os.p... | 34.564516 | 88 | 0.659356 | 260 | 2,143 | 5.107692 | 0.196154 | 0.081325 | 0.048193 | 0.051205 | 0.823795 | 0.823795 | 0.823795 | 0.823795 | 0.823795 | 0.823795 | 0 | 0 | 0.250117 | 2,143 | 61 | 89 | 35.131148 | 0.826385 | 0 | 0 | 0.541667 | 0 | 0 | 0.053196 | 0.025198 | 0 | 0 | 0 | 0 | 0.041667 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.208333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
95552e3fd72a36e5a36485ea91359a7bdafacfeb | 38 | py | Python | src/services/base_service/__init__.py | taonguyen740/flask_based_3tier_framework | f02e492eff0206e661925dddcf0ba978ead38b5e | [
"MIT"
] | 1 | 2021-12-04T18:44:37.000Z | 2021-12-04T18:44:37.000Z | src/services/base_service/__init__.py | taonguyen740/flask_based_3tier_framework | f02e492eff0206e661925dddcf0ba978ead38b5e | [
"MIT"
] | null | null | null | src/services/base_service/__init__.py | taonguyen740/flask_based_3tier_framework | f02e492eff0206e661925dddcf0ba978ead38b5e | [
"MIT"
] | 1 | 2022-03-18T07:51:49.000Z | 2022-03-18T07:51:49.000Z | from .base_service import BaseService
| 19 | 37 | 0.868421 | 5 | 38 | 6.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 38 | 1 | 38 | 38 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
958dfb839c3f96c014eee1aa83280231572141df | 63 | py | Python | src/aspire/basis/pswf_2d.py | janden/ASPIRE-Python | 5bcf831881fd0e42630c3b99671c5ed08de260ea | [
"MIT"
] | null | null | null | src/aspire/basis/pswf_2d.py | janden/ASPIRE-Python | 5bcf831881fd0e42630c3b99671c5ed08de260ea | [
"MIT"
] | null | null | null | src/aspire/basis/pswf_2d.py | janden/ASPIRE-Python | 5bcf831881fd0e42630c3b99671c5ed08de260ea | [
"MIT"
] | null | null | null | from aspire.basis import Basis
class PSWF2D(Basis):
pass
| 10.5 | 30 | 0.730159 | 9 | 63 | 5.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.206349 | 63 | 5 | 31 | 12.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 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 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
252418a0bfab6679be2f03b9fedd91e58469d401 | 250 | py | Python | rlcard/games/shortlimitholdem/__init__.py | Branbados/rlcard | f474d38d10d855a0b68f2996f4520b96dfa08445 | [
"MIT"
] | 1 | 2021-07-05T17:27:43.000Z | 2021-07-05T17:27:43.000Z | rlcard/games/shortlimitholdem/__init__.py | brandonaltermatt/rlcard | f474d38d10d855a0b68f2996f4520b96dfa08445 | [
"MIT"
] | 18 | 2020-07-06T01:39:24.000Z | 2020-08-13T03:03:45.000Z | rlcard/games/shortlimitholdem/__init__.py | brandonaltermatt/rlcard | f474d38d10d855a0b68f2996f4520b96dfa08445 | [
"MIT"
] | 1 | 2020-07-11T19:41:01.000Z | 2020-07-11T19:41:01.000Z | from rlcard.games.limitholdem import Player
from rlcard.games.shortlimitholdem.dealer import ShortLimitHoldemDealer as Dealer
from rlcard.games.limitholdem import Judger
from rlcard.games.shortlimitholdem.game import ShortLimitHoldemGame as Game
| 50 | 82 | 0.864 | 30 | 250 | 7.2 | 0.433333 | 0.185185 | 0.277778 | 0.240741 | 0.296296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096 | 250 | 4 | 83 | 62.5 | 0.955752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
2530bda3276ab68766396c838053833aa84d85b1 | 50,039 | py | Python | climate/radiation_fluxes.py | confused0wl/CEAOS | 1b5efe980d02c319b0f052252ecf88bc363d8e98 | [
"MIT"
] | null | null | null | climate/radiation_fluxes.py | confused0wl/CEAOS | 1b5efe980d02c319b0f052252ecf88bc363d8e98 | [
"MIT"
] | null | null | null | climate/radiation_fluxes.py | confused0wl/CEAOS | 1b5efe980d02c319b0f052252ecf88bc363d8e98 | [
"MIT"
] | null | null | null | """
Note:
PAR: Photosynthetically active radiation
FIR: Far infrared radiation
NIR: Near infrared radiation
"""
from climate.electrical_input import lamp_electrical_input
from climate.heat_fluxes import *
from climate.lumped_cover_layers import *
from constants import *
from data_models import ClimateStates... | 66.629827 | 247 | 0.674574 | 5,382 | 50,039 | 5.787254 | 0.043292 | 0.057084 | 0.046971 | 0.040389 | 0.910489 | 0.880342 | 0.836389 | 0.795325 | 0.75362 | 0.715061 | 0 | 0.008843 | 0.279102 | 50,039 | 750 | 248 | 66.718667 | 0.8546 | 0.114351 | 0 | 0.581633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005333 | 0 | 1 | 0.1 | false | 0 | 0.010204 | 0 | 0.210204 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
25478bc7680b73118ba92eef9677192b0e68137b | 28 | py | Python | automlk/utils/__init__.py | pierre-chaville/automlk | 61386beba62f72360e1f5f8d6bcce17df653e2e8 | [
"MIT"
] | 16 | 2017-09-05T12:26:11.000Z | 2019-10-26T22:55:41.000Z | automlk/utils/__init__.py | pierre-chaville/automlk | 61386beba62f72360e1f5f8d6bcce17df653e2e8 | [
"MIT"
] | 1 | 2018-02-07T11:16:43.000Z | 2018-02-07T11:16:43.000Z | automlk/utils/__init__.py | pierre-chaville/automlk | 61386beba62f72360e1f5f8d6bcce17df653e2e8 | [
"MIT"
] | 8 | 2017-09-21T01:20:52.000Z | 2021-01-21T10:03:34.000Z | from . import keras_wrapper
| 14 | 27 | 0.821429 | 4 | 28 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 1 | 28 | 28 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
255cb051c1d192677f92690d59d1e256bc2fd034 | 120 | py | Python | rapid/examples/__init__.py | limetreeleon/RAPID | 6f922496ccbad84a8594af83cc63e8c7535cc804 | [
"MIT"
] | 2 | 2021-01-14T04:44:51.000Z | 2021-01-14T13:43:38.000Z | rapid/examples/__init__.py | limetreeleon/RAPID | 6f922496ccbad84a8594af83cc63e8c7535cc804 | [
"MIT"
] | null | null | null | rapid/examples/__init__.py | limetreeleon/RAPID | 6f922496ccbad84a8594af83cc63e8c7535cc804 | [
"MIT"
] | 1 | 2020-11-09T02:25:50.000Z | 2020-11-09T02:25:50.000Z | """Contains example uses of the RAPID package."""
from . import em_workbench_lake_model
from . import investment_simple
| 30 | 49 | 0.8 | 17 | 120 | 5.411765 | 0.882353 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 120 | 3 | 50 | 40 | 0.87619 | 0.358333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c2d7af6fcb89a04abd189e89cf60e518d8830e40 | 89 | py | Python | qtools/__init__.py | fiath/test | b50898dafa90e93da48f573e0b3feb1bb6acd8de | [
"MIT",
"BSD-3-Clause"
] | null | null | null | qtools/__init__.py | fiath/test | b50898dafa90e93da48f573e0b3feb1bb6acd8de | [
"MIT",
"BSD-3-Clause"
] | null | null | null | qtools/__init__.py | fiath/test | b50898dafa90e93da48f573e0b3feb1bb6acd8de | [
"MIT",
"BSD-3-Clause"
] | null | null | null | from qtpy import *
from utils import *
from tasks import *
from garbagecollector import * | 22.25 | 30 | 0.786517 | 12 | 89 | 5.833333 | 0.5 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168539 | 89 | 4 | 30 | 22.25 | 0.945946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
c2f162ea582cfef81fba3aaca17cac66fd7dbdee | 47 | py | Python | templaterex/__init__.py | troxel/TemplateRex-Python | 69982c34bcdff3787ce0681e22a3c47a1f40c79d | [
"MIT"
] | null | null | null | templaterex/__init__.py | troxel/TemplateRex-Python | 69982c34bcdff3787ce0681e22a3c47a1f40c79d | [
"MIT"
] | 1 | 2018-12-17T01:47:00.000Z | 2018-12-17T01:47:00.000Z | templaterex/__init__.py | troxel/TemplateRex-Python | 69982c34bcdff3787ce0681e22a3c47a1f40c79d | [
"MIT"
] | null | null | null |
from templaterex.template import TemplateRex
| 11.75 | 44 | 0.851064 | 5 | 47 | 8 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12766 | 47 | 3 | 45 | 15.666667 | 0.97561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6c238e648c59857438e73462815d94b2108af393 | 115 | py | Python | test/test_misc.py | keurfonluu/fteikpy | 39e50b1772642b9c5cdda4d1b8171f6d5abaa5e2 | [
"BSD-3-Clause"
] | 15 | 2020-11-11T21:42:46.000Z | 2022-03-20T10:21:47.000Z | test/test_misc.py | keurfonluu/FTeikPy | 60ffeed603d04753d8d67ea8ba39f3c0aa40c336 | [
"MIT"
] | 10 | 2020-11-12T08:39:25.000Z | 2022-03-30T10:56:51.000Z | test/test_misc.py | keurfonluu/FTeikPy | 60ffeed603d04753d8d67ea8ba39f3c0aa40c336 | [
"MIT"
] | 6 | 2018-04-20T12:13:01.000Z | 2020-09-03T16:40:22.000Z | import fteikpy
def test_num_threads():
fteikpy.set_num_threads(1)
assert fteikpy.get_num_threads() == 1
| 14.375 | 41 | 0.730435 | 17 | 115 | 4.588235 | 0.588235 | 0.384615 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021053 | 0.173913 | 115 | 7 | 42 | 16.428571 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6c44ce8abc8da9b0b0f5d812f4bc71a653b9788a | 3,710 | py | Python | azure_usage/tests/test_totals.py | alan-turing-institute/azure_usage_v1 | ca8a32ec822396aac041f988ab8da6a65b794f0a | [
"MIT"
] | 5 | 2020-02-12T14:58:01.000Z | 2021-12-17T10:50:58.000Z | azure_usage/tests/test_totals.py | alan-turing-institute/azure_usage_v1 | ca8a32ec822396aac041f988ab8da6a65b794f0a | [
"MIT"
] | 8 | 2020-02-25T11:38:54.000Z | 2022-03-12T00:14:51.000Z | azure_usage/tests/test_totals.py | alan-turing-institute/azure_usage_v1 | ca8a32ec822396aac041f988ab8da6a65b794f0a | [
"MIT"
] | null | null | null | """
test totals
Author: Tomas Lazauskas
"""
import os
import pandas as pd
from ..src_webapp.totals import (
group_day,
group_year_month,
group_sub_year_month,
)
from ..src_webapp.data_loader import create_dataframe
from ..src_webapp.constants import (
CONST_COL_NAME_COST,
CONST_COL_NAME_DATE,
... | 25.238095 | 74 | 0.583558 | 478 | 3,710 | 4.075314 | 0.150628 | 0.098563 | 0.147844 | 0.092402 | 0.809548 | 0.7654 | 0.749487 | 0.741786 | 0.726386 | 0.690452 | 0 | 0.083038 | 0.315094 | 3,710 | 146 | 75 | 25.410959 | 0.683589 | 0.009704 | 0 | 0.584071 | 0 | 0 | 0.025095 | 0 | 0 | 0 | 0 | 0 | 0.106195 | 1 | 0.026549 | false | 0 | 0.044248 | 0 | 0.070796 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6c47b2514f6ba360ccde0eb864bc70c0a40fce2e | 18 | py | Python | src/bs/__init__.py | tttienthinh/BinanceSelenium | aa53c45ae8630150e1352cc90d49623d849ea7f6 | [
"MIT"
] | null | null | null | src/bs/__init__.py | tttienthinh/BinanceSelenium | aa53c45ae8630150e1352cc90d49623d849ea7f6 | [
"MIT"
] | null | null | null | src/bs/__init__.py | tttienthinh/BinanceSelenium | aa53c45ae8630150e1352cc90d49623d849ea7f6 | [
"MIT"
] | null | null | null | from .bs import *
| 9 | 17 | 0.666667 | 3 | 18 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 18 | 1 | 18 | 18 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
6c5c0803af18a12d746d3784ab552454e27d9454 | 27,229 | py | Python | ui/permissions_test.py | mitodl/odl-video-service | 9a292c88aa475f2ce720a93a769f7b46bcd8fa62 | [
"BSD-3-Clause"
] | 3 | 2017-08-19T02:00:28.000Z | 2022-01-11T20:53:37.000Z | ui/permissions_test.py | mitodl/odl-video-service | 9a292c88aa475f2ce720a93a769f7b46bcd8fa62 | [
"BSD-3-Clause"
] | 915 | 2017-04-18T15:46:40.000Z | 2022-03-23T17:47:03.000Z | ui/permissions_test.py | mitodl/odl-video-service | 9a292c88aa475f2ce720a93a769f7b46bcd8fa62 | [
"BSD-3-Clause"
] | null | null | null | """
Tests for permission module
"""
from types import SimpleNamespace
from unittest.mock import Mock
from uuid import uuid4
import pytest
from django.contrib.auth.models import AnonymousUser
from rest_framework.exceptions import ValidationError
from ui import factories, permissions
from ui.factories import Collection... | 30.628796 | 117 | 0.722355 | 3,348 | 27,229 | 5.540621 | 0.047491 | 0.100216 | 0.065553 | 0.053369 | 0.882857 | 0.859191 | 0.827871 | 0.800054 | 0.761725 | 0.713154 | 0 | 0.000093 | 0.206691 | 27,229 | 888 | 118 | 30.663288 | 0.858664 | 0.213449 | 0 | 0.599291 | 0 | 0 | 0.016977 | 0 | 0 | 0 | 0 | 0 | 0.086879 | 1 | 0.102837 | false | 0 | 0.015957 | 0 | 0.141844 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6c6065b5de584d84391d8ecb177e4d649b47c93d | 21 | py | Python | MHD/FEniCS/MyPackage/PackageName/Forms/MHD.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2020-10-25T13:30:20.000Z | 2021-08-10T21:27:30.000Z | MHD/FEniCS/MyPackage/PackageName/Forms/MHD.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | null | null | null | MHD/FEniCS/MyPackage/PackageName/Forms/MHD.py | wathen/PhD | 35524f40028541a4d611d8c78574e4cf9ddc3278 | [
"MIT"
] | 3 | 2019-10-28T16:12:13.000Z | 2020-01-13T13:59:44.000Z | from dolfin import *
| 10.5 | 20 | 0.761905 | 3 | 21 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 21 | 1 | 21 | 21 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
66a68936fc8fce5834c88bbb2561eed3848e478a | 23 | py | Python | python/hello_world.py | jungleni/personal_exercise | e80905af209eb3b955023bbfa5627311ae4db272 | [
"Apache-2.0"
] | null | null | null | python/hello_world.py | jungleni/personal_exercise | e80905af209eb3b955023bbfa5627311ae4db272 | [
"Apache-2.0"
] | null | null | null | python/hello_world.py | jungleni/personal_exercise | e80905af209eb3b955023bbfa5627311ae4db272 | [
"Apache-2.0"
] | null | null | null | print "Hello, world!\n" | 23 | 23 | 0.695652 | 4 | 23 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 23 | 1 | 23 | 23 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 6 |
66e8d07fb89ae5d9c48c654f76a4e93ce8311b7c | 162 | py | Python | Python Exercicios/Projeto/BASE PROJETO AI/Ideias/Tocando MP3/tocando a musica 1.py | TiagoSo/PYTHON | a36032786eb506d9c60853460e6d4b37373bafdb | [
"MIT"
] | 1 | 2021-12-23T00:41:22.000Z | 2021-12-23T00:41:22.000Z | Python Exercicios/Projeto/BASE PROJETO AI/Ideias/Tocando MP3/tocando a musica 1.py | TiagoSo/PYTHON | a36032786eb506d9c60853460e6d4b37373bafdb | [
"MIT"
] | null | null | null | Python Exercicios/Projeto/BASE PROJETO AI/Ideias/Tocando MP3/tocando a musica 1.py | TiagoSo/PYTHON | a36032786eb506d9c60853460e6d4b37373bafdb | [
"MIT"
] | null | null | null | import pygame
pygame.mixer.init()
pygame.mixer.music.load('1.mp3')
#pygame.mixer.music.__loader__('1.mp3')
pygame.mixer.music.play()
input()
pygame.event.wait()
| 18 | 39 | 0.746914 | 25 | 162 | 4.68 | 0.52 | 0.376068 | 0.410256 | 0.25641 | 0.34188 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026144 | 0.055556 | 162 | 8 | 40 | 20.25 | 0.738562 | 0.234568 | 0 | 0 | 0 | 0 | 0.04065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
dd848e566232ba8e53052b675b6fb7b3715b3315 | 10,518 | py | Python | elaina/ex_plugins/ImageEditor/edit_1.py | Vishal324140/ElainaRobot | d72092e9d2ddc9f94f21374cad57aea390612586 | [
"MIT"
] | 1 | 2022-01-31T08:44:33.000Z | 2022-01-31T08:44:33.000Z | elaina/ex_plugins/ImageEditor/edit_1.py | Vishal324140/ElainaRobot | d72092e9d2ddc9f94f21374cad57aea390612586 | [
"MIT"
] | 8 | 2022-01-30T22:22:47.000Z | 2022-03-13T03:01:18.000Z | elaina/ex_plugins/ImageEditor/edit_1.py | animeSubbingTeam/MitsuhaTaki | 64ff3ba483656bc1246c863ebffbaddd76cb145f | [
"MIT"
] | 1 | 2022-02-14T03:44:41.000Z | 2022-02-14T03:44:41.000Z | # MIT License
# Copyright (c) 2022 Zenitsu Prjkt™
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge,... | 39.100372 | 80 | 0.57587 | 1,196 | 10,518 | 4.907191 | 0.163043 | 0.122678 | 0.071562 | 0.107344 | 0.771341 | 0.771341 | 0.771341 | 0.771341 | 0.771341 | 0.771341 | 0 | 0.003075 | 0.319833 | 10,518 | 268 | 81 | 39.246269 | 0.817025 | 0.10135 | 0 | 0.772532 | 0 | 0 | 0.145643 | 0 | 0.051502 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.025751 | 0.017167 | 0 | 0.06867 | 0.025751 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
dda21d147af3b30b24088676daf4dcb744650593 | 156 | py | Python | level1/question24.py | kevin00000000/Python-programming-exercises | 87546906d817263ae7ddbd0276f0bb36e0d63c41 | [
"MIT"
] | null | null | null | level1/question24.py | kevin00000000/Python-programming-exercises | 87546906d817263ae7ddbd0276f0bb36e0d63c41 | [
"MIT"
] | null | null | null | level1/question24.py | kevin00000000/Python-programming-exercises | 87546906d817263ae7ddbd0276f0bb36e0d63c41 | [
"MIT"
] | null | null | null | def testDoc():
"""
Test __doc__
"""
pass
print(abs.__doc__)
print(help(abs))
print(int.__doc__)
print(testDoc.__doc__)
print(help(testDoc))
| 14.181818 | 22 | 0.653846 | 20 | 156 | 4.3 | 0.45 | 0.27907 | 0.27907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 156 | 10 | 23 | 15.6 | 0.671875 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0.142857 | 0 | 0 | 0.142857 | 0.714286 | 1 | 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 | 1 | 0 | 6 |
06e7bbaf52020364b10b3d0830f000f4202536d1 | 97 | py | Python | core/detector/__init__.py | cheese-roll/light-anime-face-detector | 3328feea0bf2aff79413c358b5ae6b2d8f129d5a | [
"MIT"
] | 36 | 2020-04-30T14:17:05.000Z | 2022-03-04T06:44:49.000Z | core/detector/__init__.py | Mirai-Gadget-Lab/Anime-Face-Extract | de03e7801934034b15484d0efb9ceaf9eb329cb4 | [
"MIT"
] | 2 | 2020-05-07T14:52:30.000Z | 2020-08-14T10:28:22.000Z | core/detector/__init__.py | Mirai-Gadget-Lab/Anime-Face-Extract | de03e7801934034b15484d0efb9ceaf9eb329cb4 | [
"MIT"
] | 3 | 2021-03-18T14:24:05.000Z | 2021-03-18T14:34:30.000Z | from core.detector.predictor import LFFDPredictor
from core.detector.detector import LFFDDetector | 48.5 | 49 | 0.886598 | 12 | 97 | 7.166667 | 0.583333 | 0.186047 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072165 | 97 | 2 | 50 | 48.5 | 0.955556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
660634f155a5e0376965c6c313931ce6acda8a48 | 3,751 | py | Python | src/the_tale/the_tale/game/bills/tests/test_logic.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | 1 | 2020-04-02T11:51:20.000Z | 2020-04-02T11:51:20.000Z | src/the_tale/the_tale/game/bills/tests/test_logic.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/game/bills/tests/test_logic.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | null | null | null |
import smart_imports
smart_imports.all()
class LogicTests(helpers.BaseTestPrototypes):
def setUp(self):
super(LogicTests, self).setUp()
@mock.patch('the_tale.game.bills.conf.settings.MIN_VOTES_PERCENT', 0.6)
@mock.patch('the_tale.game.bills.prototypes.BillPrototype.time_before_voting_end', dat... | 48.089744 | 139 | 0.63663 | 414 | 3,751 | 5.449275 | 0.205314 | 0.047872 | 0.067376 | 0.102837 | 0.848404 | 0.800532 | 0.778369 | 0.778369 | 0.725177 | 0.725177 | 0 | 0.010945 | 0.269262 | 3,751 | 77 | 140 | 48.714286 | 0.812112 | 0.005865 | 0 | 0.489796 | 0 | 0 | 0.066309 | 0.048591 | 0 | 0 | 0 | 0 | 0.204082 | 1 | 0.040816 | false | 0 | 0.040816 | 0 | 0.102041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.