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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3abd2af70b4c6899147e387420f175cc695a36d9 | 952 | py | Python | setup.py | OLC-LOC-Bioinformatics/AzureStorage | ac4dbd83e307a5b8d3fd3b77103ec837b821c564 | [
"MIT"
] | null | null | null | setup.py | OLC-LOC-Bioinformatics/AzureStorage | ac4dbd83e307a5b8d3fd3b77103ec837b821c564 | [
"MIT"
] | null | null | null | setup.py | OLC-LOC-Bioinformatics/AzureStorage | ac4dbd83e307a5b8d3fd3b77103ec837b821c564 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(
name="AzureStorage",
version="0.0.2",
entry_points={
'console_scripts': [
'AzureCredentials = azure_storage.azure_credentials:cli',
'AzureAutomate = azure_storage.azure_automate:cli',
... | 38.08 | 70 | 0.638655 | 100 | 952 | 5.83 | 0.58 | 0.185249 | 0.262436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004172 | 0.244748 | 952 | 24 | 71 | 39.666667 | 0.806676 | 0.021008 | 0 | 0 | 0 | 0 | 0.574421 | 0.328556 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ac2866d5a15c6c3205d722307c8b4e309ca215c | 258 | py | Python | stacks/linkedlistnode.py | nataz77/cs-py | 0b4adfcfa1d8b937d01429fd957dd9e3044dce00 | [
"MIT"
] | null | null | null | stacks/linkedlistnode.py | nataz77/cs-py | 0b4adfcfa1d8b937d01429fd957dd9e3044dce00 | [
"MIT"
] | null | null | null | stacks/linkedlistnode.py | nataz77/cs-py | 0b4adfcfa1d8b937d01429fd957dd9e3044dce00 | [
"MIT"
] | null | null | null | class LinkedListNode:
"""Represents a linked list node"""
def __init__(self, val=None):
self.data = val
self.next = None
self.previous = None
@property
def HasNext(self) -> bool:
return self.next is not None
| 21.5 | 39 | 0.596899 | 32 | 258 | 4.6875 | 0.65625 | 0.106667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.306202 | 258 | 11 | 40 | 23.454545 | 0.837989 | 0.112403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
3ad1945c09cd669cba355d107cf44d1549b7305a | 4,627 | py | Python | Text Categorisation/PreProcess.py | Bennygmate/Machine-Learning | 0dc29d0b28a7e69aebb9a7b6627ab8955b4f82da | [
"MIT"
] | null | null | null | Text Categorisation/PreProcess.py | Bennygmate/Machine-Learning | 0dc29d0b28a7e69aebb9a7b6627ab8955b4f82da | [
"MIT"
] | null | null | null | Text Categorisation/PreProcess.py | Bennygmate/Machine-Learning | 0dc29d0b28a7e69aebb9a7b6627ab8955b4f82da | [
"MIT"
] | null | null | null | # Benjamin Cheung
import sys
import os
import glob
import sklearn.datasets
from colorama import init
from termcolor import colored
from random import sample
import random
import numpy as np
def main():
init()
# get the dataset
path = "20news-18828"
# Create new dataset for processing
cmd = "cp -r "... | 39.887931 | 93 | 0.605144 | 634 | 4,627 | 4.294953 | 0.206625 | 0.12119 | 0.113845 | 0.176276 | 0.408006 | 0.396989 | 0.396989 | 0.37422 | 0 | 0 | 0 | 0.018135 | 0.237303 | 4,627 | 115 | 94 | 40.234783 | 0.753471 | 0.036309 | 0 | 0.019608 | 0 | 0 | 0.204673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009804 | 0.088235 | null | null | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ad910ee1af95212b337caf8b61b63f5d04cf40d | 538 | py | Python | components/interface.py | thautwarm/inc_demo | 7bf53514d01d44f2f67191896d5d02c5cda08c37 | [
"MIT"
] | null | null | null | components/interface.py | thautwarm/inc_demo | 7bf53514d01d44f2f67191896d5d02c5cda08c37 | [
"MIT"
] | null | null | null | components/interface.py | thautwarm/inc_demo | 7bf53514d01d44f2f67191896d5d02c5cda08c37 | [
"MIT"
] | null | null | null | from abc import abstractmethod
class UserParser:
@abstractmethod
def __init__(self, user):
"""
"""
@abstractmethod
def get_user_info(self):
"""
:param user:
:return: {
username: 用户名
number: 学号或工号
avatar: 头像
}
... | 17.933333 | 63 | 0.533457 | 51 | 538 | 5.392157 | 0.411765 | 0.145455 | 0.08 | 0.109091 | 0.130909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.356877 | 538 | 29 | 64 | 18.551724 | 0.794798 | 0.141264 | 0 | 0.5 | 0 | 0 | 0.052356 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3ad9d22f5813fb6a8f9610193fe65908ea40f828 | 1,957 | py | Python | parsetab.py | wangxiaoying/Compiler-Project | 221d5d99e7894b624fd924fe283d14654491a3fb | [
"MIT"
] | null | null | null | parsetab.py | wangxiaoying/Compiler-Project | 221d5d99e7894b624fd924fe283d14654491a3fb | [
"MIT"
] | null | null | null | parsetab.py | wangxiaoying/Compiler-Project | 221d5d99e7894b624fd924fe283d14654491a3fb | [
"MIT"
] | null | null | null |
# parsetab.py
# This file is automatically generated. Do not edit.
_tabversion = '3.2'
_lr_method = 'LALR'
_lr_signature = 'q\xf5X\xfc\x8b\xfa\xfdP\xca\xd7\xc4c\xe9Bv\x05'
_lr_action_items = {'WORD':([2,3,4,5,6,7,18,],[10,10,10,10,10,10,10,]),'SPACE':([10,],[18,]),'H2':([0,17,],[2,2,]),'H3':([0,17,],[3,3,]),'H1... | 47.731707 | 390 | 0.592744 | 357 | 1,957 | 3.019608 | 0.257703 | 0.091837 | 0.09462 | 0.100186 | 0.408163 | 0.339518 | 0.315399 | 0.300557 | 0.122449 | 0.122449 | 0 | 0.129051 | 0.101175 | 1,957 | 40 | 391 | 48.925 | 0.483798 | 0.031681 | 0 | 0.064516 | 1 | 0.032258 | 0.356425 | 0.024326 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3ae5437b79a2b8f158dfe0451f6b1826dbf6aa85 | 288 | py | Python | entrypoint.py | webmsgr/PyOneLife | d8a62cfc7892aab863aa23c991e60dfe0c2aef48 | [
"MIT"
] | 1 | 2019-10-23T17:40:24.000Z | 2019-10-23T17:40:24.000Z | entrypoint.py | webmsgr/PyOneLife | d8a62cfc7892aab863aa23c991e60dfe0c2aef48 | [
"MIT"
] | 1 | 2019-10-23T17:25:02.000Z | 2019-10-23T17:28:07.000Z | entrypoint.py | webmsgr/PyOneLife | d8a62cfc7892aab863aa23c991e60dfe0c2aef48 | [
"MIT"
] | null | null | null | # use after installing the client to run the client
import sys
import multiprocessing
try:
import pyOHOL
except ImportError as e:
print("Client is not installed")
raise e
def main():
multiprocessing.freeze_support()
pyOHOL.main()
if __name__ == "__main__":
main()
| 20.571429 | 51 | 0.711806 | 38 | 288 | 5.157895 | 0.710526 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208333 | 288 | 13 | 52 | 22.153846 | 0.859649 | 0.170139 | 0 | 0 | 0 | 0 | 0.130802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | true | 0 | 0.333333 | 0 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3aebca7405d24813b009c18a5eb8960a8a5a3f49 | 1,824 | py | Python | tests/test_timer_dec.py | pnpnpn/timy | 8f6345c71130fb47afda8027a1d40d51b25a2f80 | [
"MIT"
] | 300 | 2017-01-07T22:44:09.000Z | 2021-07-11T21:14:00.000Z | tests/test_timer_dec.py | pnpnpn/timy | 8f6345c71130fb47afda8027a1d40d51b25a2f80 | [
"MIT"
] | 19 | 2017-01-08T12:01:41.000Z | 2018-09-03T13:36:59.000Z | tests/test_timer_dec.py | ramonsaraiva/timy | 36a97e55f058de002a0da4f2a8e18c00d944821c | [
"MIT"
] | 13 | 2017-01-08T07:32:01.000Z | 2019-09-23T18:14:57.000Z | from unittest import mock
from timy import timer
from timy.settings import timy_config
@mock.patch('timy.output')
def test_timer_no_tracking(p_output):
timy_config.tracking = False
@timer()
def func():
pass
func()
p_output.assert_not_called()
@mock.patch('timy.output')
@mock.patch('ti... | 20.965517 | 70 | 0.628289 | 240 | 1,824 | 4.504167 | 0.2 | 0.101758 | 0.066605 | 0.099907 | 0.736355 | 0.672525 | 0.672525 | 0.636448 | 0.636448 | 0.560592 | 0 | 0.035741 | 0.263706 | 1,824 | 86 | 71 | 21.209302 | 0.769173 | 0 | 0 | 0.761905 | 0 | 0 | 0.151864 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 1 | 0.126984 | false | 0.063492 | 0.047619 | 0 | 0.174603 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
3af284c40a63d23c2d24325f5ab3c1614258b2b9 | 651 | py | Python | challenges/python-solutions/day-13.py | elifloresch/thirty-days-challenge | d3d41f5ce8cc4155ebf9cf52c1ece43c15a1e2af | [
"MIT"
] | null | null | null | challenges/python-solutions/day-13.py | elifloresch/thirty-days-challenge | d3d41f5ce8cc4155ebf9cf52c1ece43c15a1e2af | [
"MIT"
] | null | null | null | challenges/python-solutions/day-13.py | elifloresch/thirty-days-challenge | d3d41f5ce8cc4155ebf9cf52c1ece43c15a1e2af | [
"MIT"
] | null | null | null | # abstract Book class is provided.
# Write just the MyBook class
from abc import ABCMeta, abstractmethod
class Book(object, metaclass=ABCMeta):
def __init__(self, title, author):
self.title = title
self.author = author
@abstractmethod
def display(self):
pass
class MyBook(Book):
... | 22.448276 | 50 | 0.632873 | 78 | 651 | 5.102564 | 0.397436 | 0.090452 | 0.055276 | 0.080402 | 0.110553 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.242704 | 651 | 28 | 51 | 23.25 | 0.807302 | 0.092166 | 0 | 0.111111 | 0 | 0 | 0.037415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.055556 | 0 | 0.388889 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
aae5d58cafc97a72315cf4a244debc95e434be25 | 223 | py | Python | setup.py | kcraley/azdevman | 703267022bbcb93fd310b6537b1a84ea18f961e1 | [
"MIT"
] | null | null | null | setup.py | kcraley/azdevman | 703267022bbcb93fd310b6537b1a84ea18f961e1 | [
"MIT"
] | 1 | 2021-06-01T23:22:52.000Z | 2021-06-01T23:22:52.000Z | setup.py | kcraley/azdevman | 703267022bbcb93fd310b6537b1a84ea18f961e1 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(
name = 'azdevman',
version = '0.0.1',
packages = ['azdevman'],
entry_points = {
'console_scripts': [
'azdevman = azdevman.main:cli'
]
}
)
| 17.153846 | 42 | 0.529148 | 21 | 223 | 5.52381 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020134 | 0.331839 | 223 | 12 | 43 | 18.583333 | 0.758389 | 0 | 0 | 0 | 0 | 0 | 0.286996 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c90415b52bdc47a881d22860a41a74955473c241 | 622 | py | Python | app/routes/build.py | lsst-sqre/ltd-dasher | 176e125839b380f005a092189db760b716e8e23d | [
"MIT"
] | null | null | null | app/routes/build.py | lsst-sqre/ltd-dasher | 176e125839b380f005a092189db760b716e8e23d | [
"MIT"
] | 9 | 2017-01-24T20:28:49.000Z | 2021-10-04T15:36:17.000Z | app/routes/build.py | lsst-sqre/ltd-dasher | 176e125839b380f005a092189db760b716e8e23d | [
"MIT"
] | null | null | null | """Routes at ``/build`` that implement dashboard builds."""
from flask import jsonify, request, current_app
from . import api
from .logging import log_route
from ..worker import build_dashboard_for_product
@api.route('/build', methods=['POST'])
@log_route
def build_dashboards():
"""Build dashboard(s).
:stat... | 29.619048 | 77 | 0.729904 | 84 | 622 | 5.214286 | 0.583333 | 0.09589 | 0.077626 | 0.109589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.160772 | 622 | 20 | 78 | 31.1 | 0.827586 | 0.313505 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c9049e735a81e05c4cbc28e4f61d4b2adb9e4c65 | 2,418 | py | Python | config/fitbit_webservice_config.py | PruthviKumarBK/fitbit_webservice | 68ff427311d888b951d48c98ac35f7b181d416c7 | [
"MIT"
] | 11 | 2018-05-04T08:50:54.000Z | 2021-08-14T21:11:56.000Z | config/fitbit_webservice_config.py | PruthviKumarBK/fitbit_webservice | 68ff427311d888b951d48c98ac35f7b181d416c7 | [
"MIT"
] | 2 | 2022-02-07T23:17:46.000Z | 2022-02-07T23:19:10.000Z | config/fitbit_webservice_config.py | 1x-eng/fitbit_webservice | bed13fa840c7a324b0bb246ad163a409ffe0cf38 | [
"MIT"
] | 2 | 2019-04-17T02:08:25.000Z | 2020-08-31T10:41:58.000Z | __author__ = 'pruthvi kumar'
"""
Author: Pruthvi Kumar BK
Email: pruthvikumar.123@gmail.com
Date: February 2, 2018
This is a simple python file that holds all the configuration parameters required for fitbit webservice wrapper.
"""
class Fitbit_Webservice_Config(object):
def __init__(self):
super(Fitbi... | 54.954545 | 117 | 0.696443 | 298 | 2,418 | 5.38255 | 0.295302 | 0.052993 | 0.149626 | 0.074813 | 0.527431 | 0.448878 | 0.157731 | 0.058603 | 0 | 0 | 0 | 0.024342 | 0.167494 | 2,418 | 44 | 118 | 54.954545 | 0.772479 | 0.061621 | 0 | 0 | 0 | 0 | 0.688146 | 0.643876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c90a79f31b5d1867856783c70226c170d44f3064 | 305 | py | Python | scrapqd/gql/enum/browser.py | dduraipandian/scrapqd | 7515ebebd54506af765c65e5c9b14331208e6cf6 | [
"MIT"
] | null | null | null | scrapqd/gql/enum/browser.py | dduraipandian/scrapqd | 7515ebebd54506af765c65e5c9b14331208e6cf6 | [
"MIT"
] | 2 | 2022-03-14T00:42:59.000Z | 2022-03-15T15:50:14.000Z | scrapqd/gql/enum/browser.py | dduraipandian/scrapqd | 7515ebebd54506af765c65e5c9b14331208e6cf6 | [
"MIT"
] | null | null | null | from graphql import GraphQLEnumType as EnumType
from scrapqd.executor.selenium_driver.factory import BrowserFactory
BrowserEnum = EnumType("Browser",
{d.upper(): d for d in BrowserFactory().mapping()},
description="Browser option in the selenium executor")
| 38.125 | 77 | 0.681967 | 32 | 305 | 6.46875 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239344 | 305 | 7 | 78 | 43.571429 | 0.892241 | 0 | 0 | 0 | 0 | 0 | 0.15082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c93314dc8bd646c191d60301708923ebf238ee72 | 3,970 | py | Python | plugins/GPP.py | AlienExo/FListBot-Python- | 444a8fd93d64e63a9a4ff5281135fa4a3358d15e | [
"MIT"
] | null | null | null | plugins/GPP.py | AlienExo/FListBot-Python- | 444a8fd93d64e63a9a4ff5281135fa4a3358d15e | [
"MIT"
] | null | null | null | plugins/GPP.py | AlienExo/FListBot-Python- | 444a8fd93d64e63a9a4ff5281135fa4a3358d15e | [
"MIT"
] | null | null | null | #1dbdc6da34094db4e661ed43aac83d91
#Genuine People Personality Plugin v0.1
import traceback
import random
import re
from config import character
modules = ['traceback', 'random', 're']
request = re.compile('(could|can|would|might)(.*you)?(.*please)?(\?)?')
name = re.compile('({})[.,!\?:]?\s?'.format(character))
talk=... | 67.288136 | 651 | 0.653904 | 657 | 3,970 | 3.939117 | 0.407915 | 0.016229 | 0.004637 | 0.020866 | 0.073802 | 0.055255 | 0.023957 | 0.023957 | 0.023957 | 0.023957 | 0 | 0.009231 | 0.18136 | 3,970 | 59 | 652 | 67.288136 | 0.787077 | 0.033249 | 0 | 0.040816 | 0 | 0.265306 | 0.634776 | 0.049531 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040816 | false | 0 | 0.081633 | 0 | 0.122449 | 0.020408 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c939295f7d37f66b5614f5e7129e9313287a6d09 | 700 | py | Python | modules/bullet.py | relrix/simplegame | 68b8970b9eb7f463b0d5d00c1f0d86086d88e22c | [
"MIT"
] | null | null | null | modules/bullet.py | relrix/simplegame | 68b8970b9eb7f463b0d5d00c1f0d86086d88e22c | [
"MIT"
] | null | null | null | modules/bullet.py | relrix/simplegame | 68b8970b9eb7f463b0d5d00c1f0d86086d88e22c | [
"MIT"
] | 1 | 2020-05-02T16:27:36.000Z | 2020-05-02T16:27:36.000Z | from constants import *
from helper.spritesheet import *
class Bullet(pygame.sprite.Sprite):
""" This class represents the bullet . """
def __init__(self, sprite_sheet_data):
pygame.sprite.Sprite.__init__(self)
sprite_sheet = SpriteSheet(BULLET)
self.image = sprite_sheet.get_image(spr... | 31.818182 | 65 | 0.547143 | 75 | 700 | 4.8 | 0.4 | 0.213889 | 0.208333 | 0.105556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011111 | 0.357143 | 700 | 21 | 66 | 33.333333 | 0.788889 | 0.074286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c93c1aaf6484e6fa4919f89601520939458d7836 | 219 | py | Python | src/utils/pythonSrc/watchFaceParser/elements/weatherElements/today.py | chm-dev/amazfitGTSwatchfaceBundle | 4cb04be5215de16628418e9b38152a35d5372d3e | [
"MIT"
] | 49 | 2019-12-18T11:24:56.000Z | 2022-03-28T09:56:27.000Z | src/utils/pythonSrc/watchFaceParser/elements/weatherElements/today.py | chm-dev/amazfitGTSwatchfaceBundle | 4cb04be5215de16628418e9b38152a35d5372d3e | [
"MIT"
] | 6 | 2020-01-08T21:31:15.000Z | 2022-03-25T19:13:26.000Z | src/utils/pythonSrc/watchFaceParser/elements/weatherElements/today.py | chm-dev/amazfitGTSwatchfaceBundle | 4cb04be5215de16628418e9b38152a35d5372d3e | [
"MIT"
] | 6 | 2019-12-27T17:30:24.000Z | 2021-09-30T08:11:01.000Z | from watchFaceParser.elements.weatherElements.separate import Separate
class Today:
definitions = {
1: { 'Name': 'Separate', 'Type': Separate},
3: { 'Name': 'AppendDegreesForBoth', 'Type': 'bool'},
}
| 27.375 | 70 | 0.652968 | 20 | 219 | 7.15 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.187215 | 219 | 7 | 71 | 31.285714 | 0.792135 | 0 | 0 | 0 | 0 | 0 | 0.219178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c940655e333afd6fac4263862cb3f86dd951a365 | 780 | py | Python | glyphrepository/soterm/models.py | BDAthlon/2017-Triple_Helix-1 | 3aa17be9a69af5d97e151a0be7ce7a1d8ad4f473 | [
"BSD-3-Clause"
] | 1 | 2018-04-15T14:33:58.000Z | 2018-04-15T14:33:58.000Z | glyphrepository/soterm/models.py | BDAthlon/2017-Triple_Helix-1 | 3aa17be9a69af5d97e151a0be7ce7a1d8ad4f473 | [
"BSD-3-Clause"
] | 5 | 2017-08-16T16:40:32.000Z | 2017-08-22T16:30:21.000Z | glyphrepository/soterm/models.py | BDAthlon/2017-Triple_Helix-1 | 3aa17be9a69af5d97e151a0be7ce7a1d8ad4f473 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""BO term models."""
from glyphrepository.database import Column, Model, SurrogatePK, db, reference_col, relationship
class SOterm(SurrogatePK, Model):
"""A glyph."""
__tablename__ = 'soterms'
name = Column(db.String(80), unique=False, nullable=False)
definition = Column(db.S... | 31.2 | 96 | 0.646154 | 95 | 780 | 5.084211 | 0.557895 | 0.049689 | 0.057971 | 0.099379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011094 | 0.191026 | 780 | 25 | 97 | 31.2 | 0.754358 | 0.132051 | 0 | 0 | 0 | 0 | 0.056317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0.076923 | 0.923077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c957ac4c3a451d54405c87f31d4659d1d9a189f0 | 564 | py | Python | byceps/services/shop/order/transfer/number.py | GyBraLAN/byceps | b53087849c10a531b66d08999116fa1bef312a7f | [
"BSD-3-Clause"
] | null | null | null | byceps/services/shop/order/transfer/number.py | GyBraLAN/byceps | b53087849c10a531b66d08999116fa1bef312a7f | [
"BSD-3-Clause"
] | null | null | null | byceps/services/shop/order/transfer/number.py | GyBraLAN/byceps | b53087849c10a531b66d08999116fa1bef312a7f | [
"BSD-3-Clause"
] | null | null | null | """
byceps.services.shop.order.transfer.number
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:Copyright: 2006-2021 Jochen Kupperschmidt
:License: Revised BSD (see `LICENSE` file for details)
"""
from dataclasses import dataclass
from typing import NewType
from uuid import UUID
from ...shop.transfer.models import ShopID... | 20.142857 | 62 | 0.70922 | 59 | 564 | 6.762712 | 0.644068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.134752 | 564 | 27 | 63 | 20.888889 | 0.80123 | 0.326241 | 0 | 0 | 0 | 0 | 0.086022 | 0.056452 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c966f18b8d5f181e98e8934738ae0d700b4927c0 | 1,618 | py | Python | src/github_bot_api/signature.py | NiklasRosenstein/python-github-bot-api | 3e019bb112e790347a047e72c94d8ded2ae9f200 | [
"MIT"
] | 8 | 2020-10-23T10:37:39.000Z | 2022-01-17T12:29:41.000Z | src/github_bot_api/signature.py | NiklasRosenstein/python-github-bot-api | 3e019bb112e790347a047e72c94d8ded2ae9f200 | [
"MIT"
] | 8 | 2021-05-04T20:38:47.000Z | 2021-12-21T05:51:21.000Z | src/github_bot_api/signature.py | NiklasRosenstein/python-github-bot-api | 3e019bb112e790347a047e72c94d8ded2ae9f200 | [
"MIT"
] | 4 | 2020-10-23T10:37:42.000Z | 2021-12-13T02:52:53.000Z |
"""
Helper to check the signature of a GitHub event request.
"""
import hmac
def compute_signature(payload: bytes, secret: bytes, algo: str = 'sha256') -> str:
"""
Computes the HMAC signature of *payload* given the specified *secret* and the given hashing *algo*.
# Parmeters
payload: The payload for which ... | 33.020408 | 101 | 0.715698 | 218 | 1,618 | 5.243119 | 0.399083 | 0.038495 | 0.040245 | 0.040245 | 0.118985 | 0.118985 | 0.062992 | 0 | 0 | 0 | 0 | 0.013534 | 0.177998 | 1,618 | 48 | 102 | 33.708333 | 0.845865 | 0.413473 | 0 | 0 | 0 | 0.0625 | 0.242458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.0625 | 0.0625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c97140acebcbb96dd2870eedf67654a274c7d693 | 3,244 | py | Python | core/parser.py | ceilingfans/emond | 6f0de860a865b62aeabbd3fb587c81ff8ebd81bf | [
"MIT"
] | null | null | null | core/parser.py | ceilingfans/emond | 6f0de860a865b62aeabbd3fb587c81ff8ebd81bf | [
"MIT"
] | null | null | null | core/parser.py | ceilingfans/emond | 6f0de860a865b62aeabbd3fb587c81ff8ebd81bf | [
"MIT"
] | null | null | null | from enum import Enum, auto
from typing import List
from core.error import print_error, Errors
VALID_TOKENS = "+-><][%|^$?!/"
class TokenType(Enum):
ADD = auto() # +
MINUS = auto() # -
CELL_SHIFT_LEFT = auto() # <
CELL_SHIFT_RIGHT = auto() # >
LOOP_START = auto() ... | 30.317757 | 87 | 0.469174 | 298 | 3,244 | 4.936242 | 0.261745 | 0.122366 | 0.21414 | 0.220938 | 0.290279 | 0.169273 | 0.075459 | 0 | 0 | 0 | 0 | 0.005353 | 0.424168 | 3,244 | 106 | 88 | 30.603774 | 0.78212 | 0.007707 | 0 | 0.119565 | 0 | 0 | 0.009984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032609 | false | 0 | 0.032609 | 0 | 0.271739 | 0.054348 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c9727b7c553da585e3f329b88af13e862f25d536 | 2,089 | py | Python | models/morphing_encoder.py | Gerryflap/master_thesis | 5dc16e21b23837fee8a4532679bb5cb961af0b7c | [
"MIT"
] | null | null | null | models/morphing_encoder.py | Gerryflap/master_thesis | 5dc16e21b23837fee8a4532679bb5cb961af0b7c | [
"MIT"
] | null | null | null | models/morphing_encoder.py | Gerryflap/master_thesis | 5dc16e21b23837fee8a4532679bb5cb961af0b7c | [
"MIT"
] | null | null | null | """
Models a Gz/Encoder that is able to generate morphs.
This allows for a single method that captures all morphing methods proposed in RT, apart from gradient descend.
This method is meant to be overridden by some encoders but the default implementation takes the mean.
"""
import torch
class MorphingEnco... | 40.173077 | 115 | 0.647678 | 323 | 2,089 | 4.136223 | 0.362229 | 0.041916 | 0.035928 | 0.031437 | 0.11003 | 0.089072 | 0.089072 | 0 | 0 | 0 | 0 | 0.01897 | 0.293442 | 2,089 | 51 | 116 | 40.960784 | 0.886179 | 0.635711 | 0 | 0.176471 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.058824 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c9837a61fb94391a29989bb578e535fe9e3574da | 493 | py | Python | src/rayoptics/qtgui/__init__.py | NelisW/ray-optics | 9ac6f43a58520dd0cd34534b33900236e3dc7302 | [
"BSD-3-Clause"
] | null | null | null | src/rayoptics/qtgui/__init__.py | NelisW/ray-optics | 9ac6f43a58520dd0cd34534b33900236e3dc7302 | [
"BSD-3-Clause"
] | null | null | null | src/rayoptics/qtgui/__init__.py | NelisW/ray-optics | 9ac6f43a58520dd0cd34534b33900236e3dc7302 | [
"BSD-3-Clause"
] | 1 | 2021-05-23T05:03:58.000Z | 2021-05-23T05:03:58.000Z | """ package supplying Qt5 desktop application and associated functional support
The ``rayoptics.qtgui`` subpackage provides a desktop app that runs under
Anaconda. It also provides a series of higher level interfaces used by
rayoptics. These include:
- an interface that hosts matplotlib graphics
... | 41.083333 | 79 | 0.726166 | 62 | 493 | 5.774194 | 0.83871 | 0.050279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002625 | 0.227181 | 493 | 11 | 80 | 44.818182 | 0.937008 | 0.924949 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a3290f941c121f8072ee7f718b0e68e4a5088ac0 | 470 | py | Python | nlpsc/test/test_vboard.py | BSlience/nlpsc | 3a62ed81cacc4b71e8d4d30225ccf99bba318858 | [
"MIT"
] | 4 | 2019-05-09T10:18:46.000Z | 2021-02-27T17:10:12.000Z | nlpsc/test/test_vboard.py | BSlience/nlpsc | 3a62ed81cacc4b71e8d4d30225ccf99bba318858 | [
"MIT"
] | null | null | null | nlpsc/test/test_vboard.py | BSlience/nlpsc | 3a62ed81cacc4b71e8d4d30225ccf99bba318858 | [
"MIT"
] | null | null | null | # encoding:utf-8
from nlpsc.dataset import Dataset
from nlpsc.vboard.dataset import DatasetVBoard
class TestVBoard(object):
def test_dataset_vboard(self):
# from nlpsc.vboard.dataset import index
from ..vboard import bottle
bottle.TEMPLATE_PATH.append('../vboard/views/')
dataset... | 22.380952 | 81 | 0.687234 | 62 | 470 | 5.112903 | 0.580645 | 0.085174 | 0.094637 | 0.138801 | 0.176656 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007979 | 0.2 | 470 | 20 | 82 | 23.5 | 0.835106 | 0.112766 | 0 | 0 | 0 | 0.111111 | 0.175182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
a32d07907b74e2ba74a990c498857402b5071341 | 2,901 | py | Python | launchkey/entities/validation.py | bgroveben/launchkey-python | c102d76040221059e7b87d96496edb1be3824d3b | [
"MIT"
] | 1 | 2018-12-06T04:42:35.000Z | 2018-12-06T04:42:35.000Z | launchkey/entities/validation.py | bgroveben/launchkey-python | c102d76040221059e7b87d96496edb1be3824d3b | [
"MIT"
] | 1 | 2018-12-11T22:31:03.000Z | 2018-12-11T22:31:03.000Z | launchkey/entities/validation.py | bgroveben/launchkey-python | c102d76040221059e7b87d96496edb1be3824d3b | [
"MIT"
] | null | null | null | from formencode import Schema, validators, FancyValidator, Invalid, ForEach
from dateutil.parser import parse
class ValidateISODate(FancyValidator):
@staticmethod
def _to_python(value, state):
try:
val = parse(value)
except ValueError:
raise Invalid("Date/time format i... | 28.441176 | 93 | 0.717339 | 304 | 2,901 | 6.657895 | 0.351974 | 0.26087 | 0.086957 | 0.108696 | 0.333004 | 0.143775 | 0.143775 | 0.04249 | 0 | 0 | 0 | 0.00812 | 0.193382 | 2,901 | 101 | 94 | 28.722772 | 0.856838 | 0.002758 | 0 | 0.355263 | 0 | 0 | 0.037716 | 0.007266 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.026316 | 0 | 0.921053 | 0.013158 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
a33b103b3f8dbda48725ad746cb1e77d7721e739 | 1,716 | py | Python | checker.py | Stefania12/Router | 07086cca8a6449f51df466e3ecdf4cca79b8f6f5 | [
"MIT"
] | null | null | null | checker.py | Stefania12/Router | 07086cca8a6449f51df466e3ecdf4cca79b8f6f5 | [
"MIT"
] | null | null | null | checker.py | Stefania12/Router | 07086cca8a6449f51df466e3ecdf4cca79b8f6f5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import argparse
import os
import shutil
import sys
import traceback
from scapy.sendrecv import sendp, sniff
import info
import tests
def capture(interface, output_file="test"):
cap = sniff(iface=interface, timeout=info.TIMEOUT)
# FIXME
packets = []
for i in range(len(cap)):
... | 22 | 64 | 0.653263 | 219 | 1,716 | 4.968037 | 0.392694 | 0.033088 | 0.0625 | 0.036765 | 0.134191 | 0.134191 | 0.075368 | 0.075368 | 0.075368 | 0 | 0 | 0.000756 | 0.229021 | 1,716 | 77 | 65 | 22.285714 | 0.821618 | 0.050117 | 0 | 0.127273 | 0 | 0 | 0.059619 | 0 | 0 | 0 | 0 | 0.012987 | 0.036364 | 1 | 0.090909 | false | 0.127273 | 0.145455 | 0 | 0.254545 | 0.054545 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
a35689d1424cfa7fa33b5f63f3d2c2f23b905a2a | 44,719 | py | Python | tests/test_utils.py | audeering/audformat | a9ffce03e333e21a1ceb0db1d13e9f1fb5b61cca | [
"MIT"
] | 4 | 2021-01-04T12:22:33.000Z | 2021-08-12T13:56:19.000Z | tests/test_utils.py | audeering/audformat | a9ffce03e333e21a1ceb0db1d13e9f1fb5b61cca | [
"MIT"
] | 134 | 2020-12-18T16:29:13.000Z | 2022-03-30T07:59:46.000Z | tests/test_utils.py | audeering/audformat | a9ffce03e333e21a1ceb0db1d13e9f1fb5b61cca | [
"MIT"
] | null | null | null | from io import StringIO
import os
import shutil
import numpy as np
import pandas as pd
import pytest
import audeer
import audformat
from audformat import utils
from audformat import define
@pytest.mark.parametrize(
'objs, overwrite, expected',
[
# empty
(
[],
False,
... | 28.702824 | 77 | 0.398444 | 3,899 | 44,719 | 4.451398 | 0.062324 | 0.123588 | 0.206614 | 0.152109 | 0.778636 | 0.735308 | 0.694803 | 0.611777 | 0.56891 | 0.526158 | 0 | 0.051793 | 0.441736 | 44,719 | 1,557 | 78 | 28.721259 | 0.643421 | 0.017509 | 0 | 0.624413 | 0 | 0 | 0.061108 | 0.005011 | 0 | 0 | 0 | 0 | 0.016767 | 1 | 0.008719 | false | 0 | 0.006707 | 0 | 0.015426 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a36298f7ac00f2eeae31b140a3b04baa2c470a59 | 2,329 | py | Python | Connector/rpcutils/error.py | bridgedragon/NodeChain | 2554eb7fa7f677037a800eca43e58e1ab15c41a6 | [
"MIT"
] | null | null | null | Connector/rpcutils/error.py | bridgedragon/NodeChain | 2554eb7fa7f677037a800eca43e58e1ab15c41a6 | [
"MIT"
] | null | null | null | Connector/rpcutils/error.py | bridgedragon/NodeChain | 2554eb7fa7f677037a800eca43e58e1ab15c41a6 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from .constants import *
from json import JSONEncoder
from httputils import error
class RpcError(Exception):
def __init__(self, id, message, code):
self._message = message
self._code = code
self._id = id
super().__init__(self.message)
@property
def code(... | 20.794643 | 64 | 0.588665 | 236 | 2,329 | 5.54661 | 0.199153 | 0.061879 | 0.042017 | 0.049656 | 0.337662 | 0.296409 | 0.18029 | 0.18029 | 0.18029 | 0.18029 | 0 | 0 | 0.320309 | 2,329 | 111 | 65 | 20.981982 | 0.826911 | 0.00687 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225 | false | 0 | 0.0375 | 0.125 | 0.4625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
a364bc106759245d389405aeca9a70fdb48b4aa7 | 3,707 | py | Python | tests/test_encoding.py | kube-HPC/python-wrapper.hkube | 74713d9fea6689c116ade7d67b7ab67373a79d3b | [
"MIT"
] | 1 | 2021-03-20T06:18:57.000Z | 2021-03-20T06:18:57.000Z | tests/test_encoding.py | kube-HPC/python-wrapper.hkube | 74713d9fea6689c116ade7d67b7ab67373a79d3b | [
"MIT"
] | 10 | 2020-04-24T06:58:59.000Z | 2022-03-30T14:42:55.000Z | tests/test_encoding.py | kube-HPC/python-wrapper.hkube | 74713d9fea6689c116ade7d67b7ab67373a79d3b | [
"MIT"
] | null | null | null | import os
import random
from hkube_python_wrapper.util.encoding import Encoding
size = 1 * 1024
def test_none_encoding():
encoding = Encoding('msgpack')
decoded = encoding.decode(header=None, value=None)
assert decoded is None
def test_json_encoding():
encoding = Encoding('json')
data = createObj... | 31.415254 | 66 | 0.677907 | 400 | 3,707 | 6.165 | 0.19 | 0.075831 | 0.085158 | 0.09854 | 0.715328 | 0.705596 | 0.690998 | 0.690998 | 0.652068 | 0.652068 | 0 | 0.006104 | 0.204478 | 3,707 | 117 | 67 | 31.683761 | 0.830112 | 0.006744 | 0 | 0.60396 | 0 | 0 | 0.073641 | 0 | 0 | 0 | 0 | 0 | 0.09901 | 1 | 0.148515 | false | 0 | 0.029703 | 0.019802 | 0.227723 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
a379ad88f5cb98c7fc620f3f7a228f13842cf6a9 | 279 | py | Python | src/test/py/ltprg/game/snli/data/annotate_sua_nlp.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | 11 | 2017-08-03T15:42:19.000Z | 2021-02-04T12:43:35.000Z | src/test/py/ltprg/game/snli/data/annotate_sua_nlp.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | null | null | null | src/test/py/ltprg/game/snli/data/annotate_sua_nlp.py | forkunited/ltprg | 4e40d3571d229023df0f845c68643024e04bc202 | [
"MIT"
] | 1 | 2021-02-04T12:43:37.000Z | 2021-02-04T12:43:37.000Z | import sys
import mung.nlp.corenlp
input_data_dir = sys.argv[1]
output_data_dir = sys.argv[2]
annotator = mung.nlp.corenlp.CoreNLPAnnotator('$.[state, utterance]', 'contents', 'nlp')
annotator.annotate_directory(input_data_dir, output_data_dir, id_key="id", batch=100)
| 31 | 89 | 0.752688 | 41 | 279 | 4.878049 | 0.560976 | 0.14 | 0.14 | 0.14 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02008 | 0.107527 | 279 | 8 | 90 | 34.875 | 0.783133 | 0 | 0 | 0 | 0 | 0 | 0.121771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
a37c15cd097615b090c3bb3f0e94574d97780a1b | 927 | py | Python | osc_tui/imageGrid.py | outscale-mdr/osc-tui | 7d562c3f3ed88add27586bb0c3c14bee7053c37e | [
"BSD-3-Clause"
] | 5 | 2020-06-05T11:46:01.000Z | 2022-02-01T18:05:11.000Z | osc_tui/imageGrid.py | outscale-mdr/osc-tui | 7d562c3f3ed88add27586bb0c3c14bee7053c37e | [
"BSD-3-Clause"
] | 23 | 2020-04-29T19:26:49.000Z | 2022-03-07T09:21:34.000Z | osc_tui/imageGrid.py | outscale-mdr/osc-tui | 7d562c3f3ed88add27586bb0c3c14bee7053c37e | [
"BSD-3-Clause"
] | 10 | 2020-02-21T14:00:28.000Z | 2021-09-23T12:06:39.000Z | import npyscreen
import pyperclip
import time
import createVm
import main
import popup
import selectableGrid
import virtualMachine
class ImageGrid(selectableGrid.SelectableGrid):
def __init__(self, screen, *args, **keywords):
super().__init__(screen, *args, **keywords)
self.col_titles = ["Name", ... | 30.9 | 96 | 0.634304 | 104 | 927 | 5.509615 | 0.519231 | 0.057592 | 0.062827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235167 | 927 | 29 | 97 | 31.965517 | 0.808181 | 0 | 0 | 0 | 0 | 0 | 0.119741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.347826 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6e64d9cafef7e6d2a98fad93adcdb2578d5efdaf | 1,738 | py | Python | examples/copernicus_downloader.py | freol35241/voyapt | 6454d92a1fe2829b1c2f8ba8271cf8aa4fa0151f | [
"MIT"
] | 3 | 2021-04-19T08:12:16.000Z | 2021-11-14T19:41:15.000Z | examples/copernicus_downloader.py | freol35241/voyapt | 6454d92a1fe2829b1c2f8ba8271cf8aa4fa0151f | [
"MIT"
] | null | null | null | examples/copernicus_downloader.py | freol35241/voyapt | 6454d92a1fe2829b1c2f8ba8271cf8aa4fa0151f | [
"MIT"
] | null | null | null | from pathlib import Path
import cdsapi
YEARS = [2019]
MONTHS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
ROOT = Path("wind_data")
ROOT.mkdir(exist_ok=True)
c = cdsapi.Client(key="YOUR_API_KEY")
for year in YEARS:
for month in MONTHS:
month = str(month).zfill(2)
c.retrieve(
"reanalysis-... | 25.558824 | 54 | 0.250863 | 126 | 1,738 | 3.333333 | 0.690476 | 0.019048 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157252 | 0.62313 | 1,738 | 67 | 55 | 25.940299 | 0.483969 | 0 | 0 | 0.047619 | 0 | 0 | 0.150748 | 0.058113 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031746 | 0 | 0.031746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6e741db717f585b8002ccd8db80ae389942cf9ab | 230 | py | Python | scratch.py | satyarth934/DCASE2020_task1 | a72234d9456086f1024f119505fc84801a383813 | [
"MIT"
] | null | null | null | scratch.py | satyarth934/DCASE2020_task1 | a72234d9456086f1024f119505fc84801a383813 | [
"MIT"
] | null | null | null | scratch.py | satyarth934/DCASE2020_task1 | a72234d9456086f1024f119505fc84801a383813 | [
"MIT"
] | null | null | null | import glob
import numpy as np
from pprint import pprint as pp
g = glob.glob("data/*/*/audio/*.wav")
wavpath = g[:10]
pp(wavpath)
res = [("/".join(wp.split("/")[:-2]), "/".join(wp.split("/")[-2:])) for wp in wavpath]
pp(res) | 16.428571 | 86 | 0.595652 | 38 | 230 | 3.605263 | 0.552632 | 0.087591 | 0.160584 | 0.175182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020305 | 0.143478 | 230 | 14 | 87 | 16.428571 | 0.675127 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6e7f39e6f7405ed8ec8bfd40ee10768164ced183 | 3,878 | py | Python | stats/constants.py | mpope9/nba-sql | f0044c492c593e2d2e3c36492995cd54d24bed61 | [
"Apache-2.0"
] | 113 | 2021-03-06T05:59:36.000Z | 2022-03-19T08:42:06.000Z | stats/constants.py | btharp/nba-sql | 54f53bb342092aafb950720a56958ec87bcaad23 | [
"Apache-2.0"
] | 54 | 2021-03-21T18:55:16.000Z | 2021-12-19T00:59:00.000Z | stats/constants.py | btharp/nba-sql | 54f53bb342092aafb950720a56958ec87bcaad23 | [
"Apache-2.0"
] | 10 | 2021-03-06T08:47:45.000Z | 2022-01-13T04:05:36.000Z | """
Constants used in the application.
"""
"""
List of seasons.
"""
season_list = [
'1996-97',
'1997-98',
'1998-99',
'1999-00',
'2000-01',
'2001-02',
'2002-03',
'2003-04',
'2004-05',
'2005-06',
'2006-07',
'2007-08',
'2008-09',
'2009-10',
'2010-11',
'2011-... | 24.2375 | 131 | 0.53739 | 433 | 3,878 | 4.771363 | 0.579677 | 0.016941 | 0.008712 | 0.017425 | 0.06486 | 0.06486 | 0.06486 | 0.03001 | 0.03001 | 0 | 0 | 0.313622 | 0.267406 | 3,878 | 159 | 132 | 24.389937 | 0.413587 | 0.100825 | 0 | 0 | 0 | 0.007813 | 0.297075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6e8859fbc8ef50f723823e0c4f4a9ce70fd2c690 | 334 | py | Python | layersclick/efs.py | hdknr/py-layers | 884ffb2a681910cec7c8deb934c60a71dbd72b80 | [
"MIT"
] | null | null | null | layersclick/efs.py | hdknr/py-layers | 884ffb2a681910cec7c8deb934c60a71dbd72b80 | [
"MIT"
] | null | null | null | layersclick/efs.py | hdknr/py-layers | 884ffb2a681910cec7c8deb934c60a71dbd72b80 | [
"MIT"
] | null | null | null | import click
from layerslib import efs as EFS
from .utils import J, setup
@click.group()
@click.option("--profile_name", "-p", default=None)
@click.pass_context
def efs(ctx, profile_name):
setup(ctx, profile_name)
@efs.command()
@click.pass_context
def efs_list(ctx):
data = EFS.get_filesystem()
click.... | 16.7 | 51 | 0.712575 | 51 | 334 | 4.529412 | 0.509804 | 0.142857 | 0.138528 | 0.164502 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146707 | 334 | 19 | 52 | 17.578947 | 0.810526 | 0 | 0 | 0.153846 | 0 | 0 | 0.047904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.153846 | 0.230769 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
6eacd386e1e0c9950a5e58725db385c8feba70ff | 1,457 | py | Python | src/covid_model_seiir_pipeline/pipeline/regression/model/containers.py | yukgu/covid-model-seiir-pipeline | 3433034d3f089938e7993b6321d570365bdf62db | [
"BSD-3-Clause"
] | null | null | null | src/covid_model_seiir_pipeline/pipeline/regression/model/containers.py | yukgu/covid-model-seiir-pipeline | 3433034d3f089938e7993b6321d570365bdf62db | [
"BSD-3-Clause"
] | null | null | null | src/covid_model_seiir_pipeline/pipeline/regression/model/containers.py | yukgu/covid-model-seiir-pipeline | 3433034d3f089938e7993b6321d570365bdf62db | [
"BSD-3-Clause"
] | null | null | null | """Containers for regression data."""
from dataclasses import dataclass
from typing import Dict, List, Iterator, Tuple, Union
import pandas as pd
from covid_model_seiir_pipeline.lib import (
utilities,
)
@dataclass
class RatioData:
infection_to_death: int
infection_to_admission: int
infection_to_cas... | 22.765625 | 82 | 0.68291 | 211 | 1,457 | 4.578199 | 0.274882 | 0.140787 | 0.086957 | 0.05383 | 0.575569 | 0.549689 | 0.515528 | 0.515528 | 0.486542 | 0.486542 | 0 | 0.002591 | 0.205216 | 1,457 | 63 | 83 | 23.126984 | 0.831606 | 0.021277 | 0 | 0.522727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.159091 | false | 0 | 0.090909 | 0.159091 | 0.863636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
6ebe34303a7a670812ee16bd0846c241fea901a7 | 2,103 | py | Python | izaber_flask_wamp/wamp.py | zaberaki/izaber-flask-wamp | 8f6c33b583b54f7deb32fc06070db568bf88065d | [
"MIT"
] | null | null | null | izaber_flask_wamp/wamp.py | zaberaki/izaber-flask-wamp | 8f6c33b583b54f7deb32fc06070db568bf88065d | [
"MIT"
] | null | null | null | izaber_flask_wamp/wamp.py | zaberaki/izaber-flask-wamp | 8f6c33b583b54f7deb32fc06070db568bf88065d | [
"MIT"
] | null | null | null | from .app import *
class IZaberFlaskLocalWAMP(object):
""" Allows the creation and sending of calls and functions
"""
def __init__(self,sockets,app):
self.sockets = sockets
self.app = app
self.on_connect = []
self.on_disconnect = []
self.on_authenticated = []
d... | 29.619718 | 64 | 0.602473 | 254 | 2,103 | 4.862205 | 0.220472 | 0.043725 | 0.077733 | 0.087449 | 0.441296 | 0.340081 | 0.340081 | 0.340081 | 0.167611 | 0.068016 | 0 | 0 | 0.308607 | 2,103 | 70 | 65 | 30.042857 | 0.849381 | 0.249168 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.025 | 0 | 0.525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6ec53cdef3c81fbceba9a06eaff7920105b62610 | 69,985 | py | Python | zukuzuku.py | frodotest/test | b05cc992d7dd4f95f621aacfe369304dd873e9d0 | [
"Apache-2.0"
] | null | null | null | zukuzuku.py | frodotest/test | b05cc992d7dd4f95f621aacfe369304dd873e9d0 | [
"Apache-2.0"
] | null | null | null | zukuzuku.py | frodotest/test | b05cc992d7dd4f95f621aacfe369304dd873e9d0 | [
"Apache-2.0"
] | null | null | null | # coding: utf8
import datetime
import logging
import random
import re
import ssl
import subprocess
import threading
import time
from multiprocessing import Process as Thread
import telebot
from aiohttp import web
from telebot import types
import api
import cherrypy
import config
import secret_config
import text
impo... | 41.386753 | 325 | 0.644552 | 9,266 | 69,985 | 4.587848 | 0.062594 | 0.072405 | 0.025193 | 0.018113 | 0.766343 | 0.727741 | 0.695679 | 0.661029 | 0.635718 | 0.6133 | 0 | 0.00503 | 0.230121 | 69,985 | 1,690 | 326 | 41.411243 | 0.783742 | 0.018161 | 0 | 0.52191 | 0 | 0.000654 | 0.124223 | 0.021129 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059516 | false | 0 | 0.012426 | 0 | 0.083715 | 0.003924 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
42c69d359bed45586ffb7396c6fd890b5ac2e4f8 | 563 | py | Python | Projekteuler/projecteuler_aufgabe001.py | kilian-funk/Python-Kurs | f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f | [
"MIT"
] | null | null | null | Projekteuler/projecteuler_aufgabe001.py | kilian-funk/Python-Kurs | f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f | [
"MIT"
] | null | null | null | Projekteuler/projecteuler_aufgabe001.py | kilian-funk/Python-Kurs | f5ef5a2fb2a875d2e80d77c1a6c3596a0e577d7f | [
"MIT"
] | null | null | null | """
Aufgabe 1 aus http://projecteuler.net
(Deutsche Übersetzung auf http://projekteuler.de)
Wenn wir alle natürlichen Zahlen unter 10 auflisten, die Vielfache von 3
oder 5 sind, so erhalten wir 3, 5, 6 und 9. Die Summe dieser Vielfachen ist 23.
Finden Sie die Summe aller Vielfachen von 3 oder 5 unter 1000.
Lösungshi... | 29.631579 | 90 | 0.765542 | 89 | 563 | 4.842697 | 0.719101 | 0.027842 | 0.060325 | 0.041763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042735 | 0.168739 | 563 | 18 | 91 | 31.277778 | 0.878205 | 0.023091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
42d3726719a18680d172eb35c1b61c3207bbcc37 | 2,705 | py | Python | test/python/proto2dict.py | jannekai/protoc-gen-elixir | b183119762c39d844cb6323990178a727fcf0b43 | [
"MIT"
] | 3 | 2015-05-08T07:36:13.000Z | 2017-12-19T03:00:27.000Z | test/python/proto2dict.py | jannekai/protoc-gen-elixir | b183119762c39d844cb6323990178a727fcf0b43 | [
"MIT"
] | 1 | 2022-01-05T13:34:39.000Z | 2022-01-05T14:15:02.000Z | test/python/proto2dict.py | jannekai/protoc-gen-elixir | b183119762c39d844cb6323990178a727fcf0b43 | [
"MIT"
] | 1 | 2022-01-05T13:34:44.000Z | 2022-01-05T13:34:44.000Z | # -*- coding: utf-8 -*-
from base64 import b64encode, b64decode
from google.protobuf.descriptor import FieldDescriptor as FD
def proto_to_dict(msg):
result = {}
for fd, value in msg.ListFields():
result[fd.name] = encode_value(fd, value, encode_func(fd))
return result
def encode_func(fd):
if f... | 34.679487 | 214 | 0.642144 | 408 | 2,705 | 4.105392 | 0.198529 | 0.218507 | 0.143284 | 0.214925 | 0.430448 | 0.368358 | 0.260299 | 0.260299 | 0.260299 | 0.260299 | 0 | 0.02549 | 0.245841 | 2,705 | 77 | 215 | 35.12987 | 0.795588 | 0.007763 | 0 | 0.092308 | 0 | 0 | 0.00783 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107692 | false | 0 | 0.030769 | 0 | 0.276923 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
42dfd73939e8cb0be54cd49628c46cf13b110455 | 2,361 | py | Python | kanbanflow_prj_selector/boards/board.py | igorbasko01/kanbanflow-prj-selector | e8f2ba010e2b09ef55954c564b34fbfd0a991bed | [
"MIT"
] | null | null | null | kanbanflow_prj_selector/boards/board.py | igorbasko01/kanbanflow-prj-selector | e8f2ba010e2b09ef55954c564b34fbfd0a991bed | [
"MIT"
] | null | null | null | kanbanflow_prj_selector/boards/board.py | igorbasko01/kanbanflow-prj-selector | e8f2ba010e2b09ef55954c564b34fbfd0a991bed | [
"MIT"
] | null | null | null | import requests
import logging
from ..constants import KFLOW_BASE_URL
from .column import Column
from .swimlane import Swimlane
from .task import Task
class Board(object):
def __init__(self, token):
self.log = logging.getLogger()
self.FULL_BOARD_URL = f"{KFLOW_BASE_URL}/board"
self.FULL_T... | 40.706897 | 131 | 0.666243 | 336 | 2,361 | 4.431548 | 0.199405 | 0.028207 | 0.032236 | 0.032236 | 0.100739 | 0.048355 | 0.048355 | 0.048355 | 0.048355 | 0 | 0 | 0.001612 | 0.211775 | 2,361 | 57 | 132 | 41.421053 | 0.798495 | 0 | 0 | 0.045455 | 0 | 0.022727 | 0.183898 | 0.074153 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0.136364 | 0.090909 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
42e4a3f197f3d7ae89e3d053f3d6dbe737446aca | 3,800 | py | Python | dataframe.py | UWSEDS/homework-4-documentation-and-style-hyspacex | 4d381b89440390584e70eebb1e0e7621105610df | [
"MIT"
] | null | null | null | dataframe.py | UWSEDS/homework-4-documentation-and-style-hyspacex | 4d381b89440390584e70eebb1e0e7621105610df | [
"MIT"
] | 1 | 2019-11-14T02:21:27.000Z | 2019-11-14T02:21:27.000Z | dataframe.py | UWSEDS/homework-4-documentation-and-style-hyspacex | 4d381b89440390584e70eebb1e0e7621105610df | [
"MIT"
] | null | null | null | """Create dataframe and check the quality
This script downloads a dataset from Seattle Open Data Portal and imports
as a Pandas Dataframe.
This tool checks if the dataframe:
1. Has at least 10 rows of data
2. Contains only the columns that specified as the second argument
3. Values in each column have the same python... | 29.457364 | 91 | 0.605789 | 470 | 3,800 | 4.746809 | 0.280851 | 0.071717 | 0.062752 | 0.060959 | 0.459435 | 0.450022 | 0.385926 | 0.329449 | 0.299866 | 0.299866 | 0 | 0.005712 | 0.308947 | 3,800 | 128 | 92 | 29.6875 | 0.843869 | 0.452632 | 0 | 0.186047 | 0 | 0.046512 | 0.163687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.395349 | 0 | 0.581395 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
42f50388b7d158563eaaab9a6e8c3471c435ba9f | 1,411 | py | Python | apps/home/utils.py | MySmile/sfchat | 4422b4c2e172c238248b2d99ef2d82912710dbf9 | [
"BSD-3-Clause"
] | 4 | 2015-05-06T10:22:03.000Z | 2019-05-21T14:19:25.000Z | apps/home/utils.py | MySmile/sfchat | 4422b4c2e172c238248b2d99ef2d82912710dbf9 | [
"BSD-3-Clause"
] | 2 | 2015-03-01T11:22:43.000Z | 2016-12-18T17:28:42.000Z | apps/home/utils.py | MySmile/sfchat | 4422b4c2e172c238248b2d99ef2d82912710dbf9 | [
"BSD-3-Clause"
] | 1 | 2017-01-23T23:00:11.000Z | 2017-01-23T23:00:11.000Z | from django.http import JsonResponse, HttpResponseNotFound
from django.template import RequestContext, loader, Template, TemplateDoesNotExist
import logging
logger = logging.getLogger(__name__)
def json_html_response(request, template_name, code, message):
"""
Provide response in json or html format accordin... | 35.275 | 94 | 0.725018 | 161 | 1,411 | 6.217391 | 0.409938 | 0.083916 | 0.094905 | 0.091908 | 0.153846 | 0.124875 | 0.08991 | 0.08991 | 0 | 0 | 0 | 0.024034 | 0.174344 | 1,411 | 40 | 95 | 35.275 | 0.835193 | 0.19915 | 0 | 0 | 0 | 0 | 0.106324 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0.095238 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
42fc5e94f1959a511d8ddcd1524a053527f54b21 | 40,274 | py | Python | emotion/emoji_emotion.py | Datalab-AUTH/MSc---Lampridis---MANIFEST | 9c13018313f2681dd27ef56ac0eb8470319a1749 | [
"Apache-2.0"
] | 3 | 2021-03-28T20:13:11.000Z | 2021-08-23T05:52:27.000Z | emotion/emoji_emotion.py | Datalab-AUTH/MSc---Lampridis---MANIFEST | 9c13018313f2681dd27ef56ac0eb8470319a1749 | [
"Apache-2.0"
] | null | null | null | emotion/emoji_emotion.py | Datalab-AUTH/MSc---Lampridis---MANIFEST | 9c13018313f2681dd27ef56ac0eb8470319a1749 | [
"Apache-2.0"
] | null | null | null | # anger, fear, joy, sadness
emoji_emotions = {
":person_surfing:": [0.12, 0.195, 0.08800000000000001, 0.222],
":locked:": [0.146, 0.141, 0.196, 0.212],
":hammer:": [0.33299999999999996, 0.42700000000000005, 0.221, 0.18600000000000003],
":confused_face:": [0.331, 0.34299999999999997, 0.105, 0.34],
"... | 64.645265 | 111 | 0.630183 | 6,265 | 40,274 | 3.946848 | 0.177015 | 0.010717 | 0.003842 | 0.003842 | 0.018077 | 0.001537 | 0 | 0 | 0 | 0 | 0 | 0.509798 | 0.138352 | 40,274 | 622 | 112 | 64.749196 | 0.202755 | 0.000621 | 0 | 0 | 0 | 0 | 0.222153 | 0.063185 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.003226 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6e06595cc1c33bf710537652ba3fd79fe5c7825b | 161 | py | Python | tests/RunTests/PythonTests/test2011_011.py | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/RunTests/PythonTests/test2011_011.py | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/RunTests/PythonTests/test2011_011.py | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | # tests for dictionary displays
a = {}
b = {1: 2}
c = {3: 4, 5: 6}
d = {7: "seven", 8: "eight", 9: "nine", 10: "one" + "zero"}
print a
print b
print c
print d
| 13.416667 | 59 | 0.534161 | 31 | 161 | 2.774194 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.248447 | 161 | 11 | 60 | 14.636364 | 0.619835 | 0.180124 | 0 | 0 | 0 | 0 | 0.161538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
6e2243c2da4930e832aafe35171603a96e22e1b8 | 3,080 | py | Python | course/models.py | Mutghost01/ailms | 1aaa45ad3fb3c71bc1f356069290e2ca016f0e06 | [
"Apache-2.0"
] | null | null | null | course/models.py | Mutghost01/ailms | 1aaa45ad3fb3c71bc1f356069290e2ca016f0e06 | [
"Apache-2.0"
] | null | null | null | course/models.py | Mutghost01/ailms | 1aaa45ad3fb3c71bc1f356069290e2ca016f0e06 | [
"Apache-2.0"
] | null | null | null | from django.core.validators import MaxValueValidator
from django.core.validators import MaxValueValidator
from django.db import models
from django.utils import timezone
class Faculty(models.Model):
name = models.CharField(max_length=80, blank=True, null=True)
faculty_describtion = models.TextField(blank=True,... | 35.402299 | 112 | 0.697403 | 391 | 3,080 | 5.347826 | 0.158568 | 0.086083 | 0.124342 | 0.162602 | 0.692013 | 0.577236 | 0.48111 | 0.42133 | 0.371593 | 0.371593 | 0 | 0.007132 | 0.180519 | 3,080 | 87 | 113 | 35.402299 | 0.821315 | 0.045779 | 0 | 0.393443 | 0 | 0.016393 | 0.143344 | 0.02111 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098361 | false | 0 | 0.065574 | 0.098361 | 0.803279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2816cc76fe4733196dd2eb0a8b2c597da6a2df5f | 722 | py | Python | CHAPTER 07 (linked_list)/position_class.py | ahammadshawki8/Data-Structures-Algorithms-in-Python- | fc18b54128cd5bc7639a14999d8f990190b524eb | [
"MIT"
] | null | null | null | CHAPTER 07 (linked_list)/position_class.py | ahammadshawki8/Data-Structures-Algorithms-in-Python- | fc18b54128cd5bc7639a14999d8f990190b524eb | [
"MIT"
] | null | null | null | CHAPTER 07 (linked_list)/position_class.py | ahammadshawki8/Data-Structures-Algorithms-in-Python- | fc18b54128cd5bc7639a14999d8f990190b524eb | [
"MIT"
] | null | null | null | class Position:
"""An abstraction representing the location of a single element."""
def __init__(self,container,node):
"""Constructor should not be invoked by the user."""
self._container = container
self._node = node
def element(self):
"""Return the element stored at this ... | 36.1 | 80 | 0.639889 | 92 | 722 | 4.782609 | 0.423913 | 0.054545 | 0.068182 | 0.086364 | 0.118182 | 0.118182 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256233 | 722 | 19 | 81 | 38 | 0.819367 | 0.412742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2823891d973004dca1d738cbb0e31ff2083aa099 | 322 | py | Python | webapp/project.py | YajanaRao/WebApp | b6587ac9d4734398ea2aa03fefd7ec35b855e6f8 | [
"Apache-2.0"
] | 1 | 2019-01-31T14:10:23.000Z | 2019-01-31T14:10:23.000Z | webapp/project.py | YajanaRao/WebApp | b6587ac9d4734398ea2aa03fefd7ec35b855e6f8 | [
"Apache-2.0"
] | 4 | 2018-10-18T05:51:27.000Z | 2018-11-16T10:36:16.000Z | webapp/project.py | YajanaRao/WebApp | b6587ac9d4734398ea2aa03fefd7ec35b855e6f8 | [
"Apache-2.0"
] | 1 | 2018-10-17T12:59:33.000Z | 2018-10-17T12:59:33.000Z | from flask import render_template
from webapp import app
from webapp.route import bp
from webapp.database import setup
#
app.register_blueprint(bp)
setup()
@app.route('/')
def index():
return render_template('index.html')
@app.errorhandler(404)
def pagenotfound(error):
return render_template('error.html'... | 15.333333 | 40 | 0.754658 | 44 | 322 | 5.431818 | 0.477273 | 0.175732 | 0.167364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010791 | 0.136646 | 322 | 20 | 41 | 16.1 | 0.848921 | 0 | 0 | 0 | 0 | 0 | 0.065421 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 2 |
2823f6b7191f053d16ff988357d82d6d4abd157d | 137 | py | Python | Exercicios do curso em video/pythonProject/pythonexercicios/ex029.py | HiCosta/Exercicios-de-Python | 1dabbe8764f6742aba1d62a9ea14705534aaf6f7 | [
"MIT"
] | null | null | null | Exercicios do curso em video/pythonProject/pythonexercicios/ex029.py | HiCosta/Exercicios-de-Python | 1dabbe8764f6742aba1d62a9ea14705534aaf6f7 | [
"MIT"
] | null | null | null | Exercicios do curso em video/pythonProject/pythonexercicios/ex029.py | HiCosta/Exercicios-de-Python | 1dabbe8764f6742aba1d62a9ea14705534aaf6f7 | [
"MIT"
] | null | null | null | vel = int(input('Digite a velocidade que o carro está: '))
if vel > 80:
print('Você foi multado em {} reais'.format((vel - 80) * 7))
| 34.25 | 64 | 0.627737 | 23 | 137 | 3.73913 | 0.869565 | 0.116279 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045872 | 0.20438 | 137 | 3 | 65 | 45.666667 | 0.743119 | 0 | 0 | 0 | 0 | 0 | 0.481752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
282431d4c16d5ebd035dc770cddfeb92ed78fec6 | 154 | py | Python | resource/globals.py | Kyando2/TLE | 0e9bea893e2f216ebbb57dbb3b7f2dc739bab92a | [
"Unlicense"
] | 1 | 2020-08-01T02:48:17.000Z | 2020-08-01T02:48:17.000Z | resource/globals.py | Kyando2/TLE | 0e9bea893e2f216ebbb57dbb3b7f2dc739bab92a | [
"Unlicense"
] | null | null | null | resource/globals.py | Kyando2/TLE | 0e9bea893e2f216ebbb57dbb3b7f2dc739bab92a | [
"Unlicense"
] | null | null | null | import json
def get_channels():
with open('bin/channels.json', 'r') as f:
parsed = json.loads(f.read())
f.close()
return parsed
| 17.111111 | 45 | 0.584416 | 22 | 154 | 4.045455 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.266234 | 154 | 8 | 46 | 19.25 | 0.787611 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
283e50d68c8ea8ee220528af22b5d33f709aed5e | 190 | py | Python | codility.com/sorting/__twice_for.py | Jagrmi-C/jagrmitest | 7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96 | [
"MIT"
] | null | null | null | codility.com/sorting/__twice_for.py | Jagrmi-C/jagrmitest | 7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96 | [
"MIT"
] | null | null | null | codility.com/sorting/__twice_for.py | Jagrmi-C/jagrmitest | 7c6cf61317972e5d7ddc4fdced0b4e5e6dd52e96 | [
"MIT"
] | null | null | null | ar = [1, 4, 7, 2, 6]
for i in range(5):
for k in range(i+1, 5):
print(i, k)
print("array")
n = len(ar)
for i in range(n):
for k in range(i, n):
print(ar[i], ar[k])
| 15.833333 | 27 | 0.484211 | 42 | 190 | 2.190476 | 0.380952 | 0.304348 | 0.130435 | 0.23913 | 0.26087 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061069 | 0.310526 | 190 | 11 | 28 | 17.272727 | 0.641221 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2850f3d4ebb435c1b92b528542105cb399941b4e | 71 | py | Python | homeassistant/components/hardkernel/const.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | homeassistant/components/hardkernel/const.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | homeassistant/components/hardkernel/const.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """Constants for the Hardkernel integration."""
DOMAIN = "hardkernel"
| 17.75 | 47 | 0.732394 | 7 | 71 | 7.428571 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126761 | 71 | 3 | 48 | 23.666667 | 0.83871 | 0.577465 | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
285259cb6c8ea0d3fee8de5be7cfe2bca1389c2f | 12,145 | py | Python | main.py | pteoh/serverless-telegram-bot | 0db80c027557852dadef03092c354937f96d9d31 | [
"MIT"
] | 2 | 2019-01-15T07:15:27.000Z | 2019-01-16T21:11:52.000Z | main.py | cybersulu/telegram-queerconbot | 0db80c027557852dadef03092c354937f96d9d31 | [
"MIT"
] | 3 | 2018-12-13T04:45:06.000Z | 2018-12-28T02:33:39.000Z | main.py | cybersulu/telegram-queerconbot | 0db80c027557852dadef03092c354937f96d9d31 | [
"MIT"
] | 3 | 2018-11-30T06:42:31.000Z | 2018-12-17T03:43:55.000Z | import os
import telegram
import random
bot = telegram.Bot(token=os.environ["TELEGRAM_TOKEN"])
# dictionary of trigger words with single 1:1 reply
singlereplydict = {
"tableflip": "(╯°□°)╯︵ ┻━┻",
"bagelflip": "(╯°□°)╯︵ 🥯",
"tacoflip": "(╯°□°)╯︵ 🌮",
"pizzaflip": "(╯°□°)╯︵ 🍕",
"hotdogflip": "(╯°□... | 93.423077 | 403 | 0.691396 | 1,949 | 12,145 | 4.368907 | 0.435095 | 0.012214 | 0.014093 | 0.016911 | 0.062243 | 0.043805 | 0.043805 | 0.016442 | 0.016442 | 0.016442 | 0 | 0.028779 | 0.218938 | 12,145 | 129 | 404 | 94.147287 | 0.854839 | 0.020173 | 0 | 0.116667 | 0 | 0.358333 | 0.825626 | 0.002438 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008333 | false | 0.033333 | 0.033333 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
285c50558c5a390d953742f70f9db5bcb20165a0 | 263 | py | Python | python/gpio.py | trojanspike/qbian-server | 64473e80f04dc7b9ff421b385ab6ad25812e0919 | [
"MIT"
] | null | null | null | python/gpio.py | trojanspike/qbian-server | 64473e80f04dc7b9ff421b385ab6ad25812e0919 | [
"MIT"
] | null | null | null | python/gpio.py | trojanspike/qbian-server | 64473e80f04dc7b9ff421b385ab6ad25812e0919 | [
"MIT"
] | null | null | null | import RPi.GPIO as GPIO
from time import sleep
GPIO.setmode(g.BCM)
try:
GPIO.setup(17, GPIO.OUT) # GPIO17
while True:
GPIO.output(17, GPIO.HIGH)
sleep(1.5)
GPIO.output(17, GPIO.LOW)
sleep(1.5)
except KeyboardInterrupt:
GPIO.cleanup();
| 14.611111 | 36 | 0.669202 | 42 | 263 | 4.190476 | 0.595238 | 0.102273 | 0.136364 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057143 | 0.201521 | 263 | 17 | 37 | 15.470588 | 0.780952 | 0.022814 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
286a0b8d5fe9e11633a8ff2d3c5f818f64c82a27 | 848 | py | Python | scripts/irgen.py | srijan-paul/meep | 7cbc9472287c19e90ede97c50d1a7bfab818e2b8 | [
"MIT"
] | 6 | 2020-10-18T18:16:40.000Z | 2022-01-29T04:04:17.000Z | scripts/irgen.py | srijan-paul/meep | 7cbc9472287c19e90ede97c50d1a7bfab818e2b8 | [
"MIT"
] | null | null | null | scripts/irgen.py | srijan-paul/meep | 7cbc9472287c19e90ede97c50d1a7bfab818e2b8 | [
"MIT"
] | 1 | 2021-01-15T09:32:28.000Z | 2021-01-15T09:32:28.000Z | # This is a helper script to automatically generate code
# since Javascript doesn't have enums and using objects as \
# enums is painful.
import re
IR = """
pop_ push_ inc dec
add sub equals
set_var get_var
inc_n false_ true_
load_byte print start_if close_if_body
end_if start_else end_else start_loop end... | 18.042553 | 60 | 0.650943 | 143 | 848 | 3.685315 | 0.608392 | 0.02277 | 0.026565 | 0.053131 | 0.068311 | 0.068311 | 0 | 0 | 0 | 0 | 0 | 0.002946 | 0.199292 | 848 | 46 | 61 | 18.434783 | 0.773196 | 0.154481 | 0 | 0.225806 | 1 | 0 | 0.650771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
286bf520d019ef24936a7ef8008dd4bd022c140a | 8,405 | py | Python | archive/srcKelly/optimizationMooring.py | mattEhall/FloatingSE | f13e0f38a7742ea00a8f446a9ebf505dcf7acd42 | [
"Apache-2.0"
] | 1 | 2019-03-27T15:09:02.000Z | 2019-03-27T15:09:02.000Z | archive/srcKelly/optimizationMooring.py | mattEhall/FloatingSE | f13e0f38a7742ea00a8f446a9ebf505dcf7acd42 | [
"Apache-2.0"
] | 1 | 2017-05-17T14:57:05.000Z | 2017-05-17T14:57:05.000Z | archive/srcKelly/optimizationMooring.py | mattEhall/FloatingSE | f13e0f38a7742ea00a8f446a9ebf505dcf7acd42 | [
"Apache-2.0"
] | 9 | 2015-12-26T01:06:10.000Z | 2022-01-08T20:19:57.000Z | from openmdao.main.api import Component, Assembly, convert_units
from openmdao.main.datatypes.api import Float, Array, Enum, Str, Int, Bool
from openmdao.lib.drivers.api import COBYLAdriver, SLSQPdriver
from mooring import Mooring
import time
import numpy as np
class optimizationMooring(Assembly):
# variables
... | 46.181319 | 89 | 0.724331 | 1,195 | 8,405 | 4.876987 | 0.270293 | 0.278655 | 0.083391 | 0.033974 | 0.661119 | 0.514585 | 0.435484 | 0.375601 | 0.375601 | 0.345058 | 0 | 0.165765 | 0.142296 | 8,405 | 182 | 90 | 46.181319 | 0.642669 | 0.011422 | 0 | 0.3625 | 0 | 0 | 0.06865 | 0.032759 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0375 | null | null | 0.10625 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
286d52f2b745b2f6acabace5f28790068f9081c3 | 356 | py | Python | OCR.py | developerVictorNkuna/frontend-tools | 76b5a11615141fa43ac2ae93042b480910697dfa | [
"MIT"
] | null | null | null | OCR.py | developerVictorNkuna/frontend-tools | 76b5a11615141fa43ac2ae93042b480910697dfa | [
"MIT"
] | null | null | null | OCR.py | developerVictorNkuna/frontend-tools | 76b5a11615141fa43ac2ae93042b480910697dfa | [
"MIT"
] | null | null | null | import pytesseract
import requests
from PIL import Image
from PIL import ImageFilter
import io
def process_image(url):
image= _get_image(url)
image.filter(ImageFilter.SHARPEN)
return pytesseract.image_to_string(image)
def _get_image(url):
pattern_string = requests.get(url).content()
return Ima... | 23.733333 | 50 | 0.769663 | 49 | 356 | 5.408163 | 0.428571 | 0.090566 | 0.098113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148876 | 356 | 15 | 50 | 23.733333 | 0.874587 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.416667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
289f81e3a5c8a2983b9946b8295e11ccb5ed7c62 | 271 | py | Python | cmds/moderations.py | james10949/sijingprogram | 1ef133dba45cda5576f7461db61b4a9d92c12ecd | [
"MIT"
] | null | null | null | cmds/moderations.py | james10949/sijingprogram | 1ef133dba45cda5576f7461db61b4a9d92c12ecd | [
"MIT"
] | null | null | null | cmds/moderations.py | james10949/sijingprogram | 1ef133dba45cda5576f7461db61b4a9d92c12ecd | [
"MIT"
] | null | null | null | import discord
from discord.ext import commands
from core.classes import Cog_Extension
class Moderations(Cog_Extension):
@commands.command()
async def clean(self, ctx, num : int):
await ctx.channel.purge(limit = num+1)
def setup(bot):
bot.add_cog(Moderations(bot)) | 24.636364 | 40 | 0.771218 | 41 | 271 | 5.02439 | 0.658537 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.121771 | 271 | 11 | 41 | 24.636364 | 0.861345 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
954fa85810947551c8d8d1ced428c7e6579a89f3 | 1,173 | py | Python | toolkit/ev3/simulation/block/block.py | AlexGustafsson/ev3-emulator-toolkit | 641737660839dc85e2caaab9431518597b8fd263 | [
"Unlicense"
] | null | null | null | toolkit/ev3/simulation/block/block.py | AlexGustafsson/ev3-emulator-toolkit | 641737660839dc85e2caaab9431518597b8fd263 | [
"Unlicense"
] | null | null | null | toolkit/ev3/simulation/block/block.py | AlexGustafsson/ev3-emulator-toolkit | 641737660839dc85e2caaab9431518597b8fd263 | [
"Unlicense"
] | null | null | null | from typing import TypedDict, Optional, Dict
from dataclasses import dataclass
@dataclass
class BlockVariableDefinition():
type: str
id: str
name: str
@dataclass
class BlockField():
name: str
id: Optional[str]
variable_type: Optional[str]
value: str
@dataclass
class BlockShadow():
typ... | 21.722222 | 74 | 0.671782 | 149 | 1,173 | 5.268456 | 0.456376 | 0.107006 | 0.043312 | 0.043312 | 0.129936 | 0.076433 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238704 | 1,173 | 53 | 75 | 22.132075 | 0.879059 | 0.228474 | 0 | 0.368421 | 0 | 0 | 0.016797 | 0 | 0 | 0 | 0 | 0.018868 | 0 | 1 | 0.026316 | false | 0 | 0.052632 | 0 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
95922d279871959012bd4b036ca53aaac0a28670 | 419 | py | Python | tests/conftest.py | alexanderrichards/ProductionSystem | ea9b80f13d76be293c8e2a3387d4cb3abc56e314 | [
"MIT"
] | null | null | null | tests/conftest.py | alexanderrichards/ProductionSystem | ea9b80f13d76be293c8e2a3387d4cb3abc56e314 | [
"MIT"
] | 43 | 2018-04-23T08:39:17.000Z | 2019-11-26T12:17:14.000Z | tests/conftest.py | alexanderrichards/ProductionSystem | ea9b80f13d76be293c8e2a3387d4cb3abc56e314 | [
"MIT"
] | 1 | 2019-02-05T04:17:07.000Z | 2019-02-05T04:17:07.000Z | """Define necessary setup fixtures."""
import pytest
import pkg_resources
from productionsystem.config import ConfigSystem
@pytest.fixture(scope="session", autouse=True)
def config():
"""Set up the config entrypoint map."""
config_instance = ConfigSystem.setup(None) # pylint: disable=no-member
config_ins... | 32.230769 | 85 | 0.775656 | 51 | 419 | 6.196078 | 0.647059 | 0.132911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124105 | 419 | 12 | 86 | 34.916667 | 0.861035 | 0.221957 | 0 | 0 | 0 | 0 | 0.073016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
959ad2919859f87afcd92da7fe3d37ffc004c526 | 6,431 | py | Python | test_nagplug.py | aslafy-z/nagplug | bc48bbd6b7221d029d77bbcd850954100e241bbf | [
"MIT"
] | 3 | 2020-09-28T09:49:50.000Z | 2021-09-02T11:43:03.000Z | test_nagplug.py | aslafy-z/nagplug | bc48bbd6b7221d029d77bbcd850954100e241bbf | [
"MIT"
] | 2 | 2019-10-15T08:24:35.000Z | 2022-03-28T13:41:34.000Z | test_nagplug.py | aslafy-z/nagplug | bc48bbd6b7221d029d77bbcd850954100e241bbf | [
"MIT"
] | 2 | 2018-08-14T11:45:39.000Z | 2019-08-26T09:22:07.000Z | import unittest
from nagplug import Plugin, Threshold, ArgumentParserError
from nagplug import OK, WARNING, CRITICAL, UNKNOWN
class TestParsing(unittest.TestCase):
def test_parse(self):
plugin = Plugin()
plugin.add_arg('-e', '--test', action='store_true')
args = plugin.parser.parse_args([... | 33.149485 | 78 | 0.63054 | 726 | 6,431 | 5.366391 | 0.12259 | 0.068275 | 0.077002 | 0.084702 | 0.774127 | 0.700462 | 0.569302 | 0.48691 | 0.425308 | 0.401694 | 0 | 0.021281 | 0.232779 | 6,431 | 193 | 79 | 33.321244 | 0.768342 | 0 | 0 | 0.405594 | 0 | 0 | 0.062821 | 0 | 0 | 0 | 0 | 0 | 0.265734 | 1 | 0.265734 | false | 0 | 0.020979 | 0 | 0.321678 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
95a9548505db1a7d35fe9ff7ecaca941c2e139fb | 439 | py | Python | mmdeploy/backend/sdk/__init__.py | aegis-rider/mmdeploy | 230596bad92fafadb36cf0a69c57d80522cc7c60 | [
"Apache-2.0"
] | 1 | 2022-02-17T06:12:31.000Z | 2022-02-17T06:12:31.000Z | mmdeploy/backend/sdk/__init__.py | aegis-rider/mmdeploy | 230596bad92fafadb36cf0a69c57d80522cc7c60 | [
"Apache-2.0"
] | null | null | null | mmdeploy/backend/sdk/__init__.py | aegis-rider/mmdeploy | 230596bad92fafadb36cf0a69c57d80522cc7c60 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) OpenMMLab. All rights reserved.
import importlib
import os
import sys
lib_dir = os.path.abspath(
os.path.join(os.path.dirname(__file__), '../../../build/lib'))
sys.path.insert(0, lib_dir)
_is_available = False
if importlib.util.find_spec('mmdeploy_python') is not None:
from .wrapper import S... | 20.904762 | 66 | 0.712984 | 61 | 439 | 4.819672 | 0.622951 | 0.14966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00271 | 0.159453 | 439 | 20 | 67 | 21.95 | 0.794038 | 0.102506 | 0 | 0 | 0 | 0 | 0.109694 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.384615 | 0.076923 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
95b5386e5d3ccd403869bf1d193dc8b920cd7dbe | 429 | py | Python | online_doctor/prescription/admin.py | zawad2221/online-doctor-server | 1ad4f34da0c95a0304527fceebbbbd7d955e294e | [
"MIT"
] | null | null | null | online_doctor/prescription/admin.py | zawad2221/online-doctor-server | 1ad4f34da0c95a0304527fceebbbbd7d955e294e | [
"MIT"
] | null | null | null | online_doctor/prescription/admin.py | zawad2221/online-doctor-server | 1ad4f34da0c95a0304527fceebbbbd7d955e294e | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Medicine, MedicineForm, Suggestion, Instruction, Company, Prescription, PrescribedMedicine, PatientHistory
admin.site.register(Medicine)
admin.site.register(MedicineForm)
admin.site.register(Suggestion)
admin.site.register(Instruction)
admin.site.register(Company)
a... | 35.75 | 126 | 0.848485 | 48 | 429 | 7.583333 | 0.333333 | 0.197802 | 0.373626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055944 | 429 | 11 | 127 | 39 | 0.898765 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
95be37e11e14e903e3f41ccb6596c98671b42cdf | 399 | py | Python | spiral/utils.py | miyosuda/variational_walkback | 4aa613a55d41a8fdfac01458a3d2f3386e0f5c28 | [
"Apache-2.0"
] | null | null | null | spiral/utils.py | miyosuda/variational_walkback | 4aa613a55d41a8fdfac01458a3d2f3386e0f5c28 | [
"Apache-2.0"
] | null | null | null | spiral/utils.py | miyosuda/variational_walkback | 4aa613a55d41a8fdfac01458a3d2f3386e0f5c28 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pylab as plt
def save_figure(xs, file_path):
plt.figure()
plt.ylim([-2.0, 2.0])
plt.xlim([-2.0, 2.0])... | 19 | 38 | 0.696742 | 64 | 399 | 4.078125 | 0.515625 | 0.030651 | 0.183908 | 0.030651 | 0.05364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032448 | 0.150376 | 399 | 20 | 39 | 19.95 | 0.737463 | 0.052632 | 0 | 0 | 0 | 0 | 0.013298 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.428571 | 0 | 0.5 | 0.071429 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
95c241c395e1aab12745e9107d13d7c679e04e02 | 180 | py | Python | nautilus/utils/env.py | LeptoSpira/nautilus-chambers | 5aafd9eb599ed35d3e90c3ef7b84a25d28e60922 | [
"MIT"
] | 1 | 2020-05-12T03:01:58.000Z | 2020-05-12T03:01:58.000Z | nautilus/utils/env.py | LeptoFlare/nautilus-chambers | 5aafd9eb599ed35d3e90c3ef7b84a25d28e60922 | [
"MIT"
] | 13 | 2020-05-05T01:06:01.000Z | 2020-07-19T07:17:31.000Z | nautilus/utils/env.py | LeptoFlare/nautilus-chambers | 5aafd9eb599ed35d3e90c3ef7b84a25d28e60922 | [
"MIT"
] | 1 | 2019-08-16T02:35:17.000Z | 2019-08-16T02:35:17.000Z | """Set up local enviroment."""
import yaml
try:
with open('config.yml') as file:
env = yaml.load(file, Loader=yaml.FullLoader)
except FileNotFoundError:
env = {}
| 18 | 53 | 0.65 | 23 | 180 | 5.086957 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.211111 | 180 | 9 | 54 | 20 | 0.823944 | 0.133333 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
95f5bf5a78aa349161aa5e584387adce3737c5fe | 1,178 | py | Python | pypi_wheel/setup.py | mcellteam/mcell_build | e76f6db3bea7b8853a93f82db17e6f7fde15222b | [
"MIT"
] | 2 | 2021-06-12T06:08:38.000Z | 2021-11-09T11:44:04.000Z | pypi_wheel/setup.py | mcellteam/mcell_build | e76f6db3bea7b8853a93f82db17e6f7fde15222b | [
"MIT"
] | null | null | null | pypi_wheel/setup.py | mcellteam/mcell_build | e76f6db3bea7b8853a93f82db17e6f7fde15222b | [
"MIT"
] | null | null | null | import setuptools
import platform
import sys
import os
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
BUILD_DIR = 'mcell/utils/pybind11_test/build/'
if platform.system() == 'Linux':
# TODO: copy mcell library to the current directory
pass
elif platform.system() == 'Darwin':
#
pass
elif 'Windows... | 25.608696 | 103 | 0.651952 | 146 | 1,178 | 5.123288 | 0.657534 | 0.074866 | 0.040107 | 0.050802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0141 | 0.217317 | 1,178 | 45 | 104 | 26.177778 | 0.79718 | 0.082343 | 0 | 0.088235 | 0 | 0 | 0.334572 | 0.02974 | 0 | 0 | 0 | 0.022222 | 0 | 1 | 0.029412 | false | 0.088235 | 0.117647 | 0.029412 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
250469f0206b14ddcf2c6f81c30246138fe44fa1 | 23,939 | py | Python | video_module.py | RoboQYD/cobblr-video-recorder | ca6a86bc813ab2e05a79a7e09fd5cce037fb169f | [
"MIT"
] | null | null | null | video_module.py | RoboQYD/cobblr-video-recorder | ca6a86bc813ab2e05a79a7e09fd5cce037fb169f | [
"MIT"
] | null | null | null | video_module.py | RoboQYD/cobblr-video-recorder | ca6a86bc813ab2e05a79a7e09fd5cce037fb169f | [
"MIT"
] | null | null | null | from engine import SystemState
from engine import Utilities
from engine import Menu
from engine import Screen
from engine import TextWriter
from engine import Events
import RPi.GPIO
import pyaudio
import wave
import atexit
import io
import stat
import os
import signal
import picamera
import time
import sys
import threa... | 37.758675 | 130 | 0.724425 | 2,876 | 23,939 | 5.849791 | 0.168637 | 0.210949 | 0.108179 | 0.041845 | 0.414705 | 0.350511 | 0.294282 | 0.26902 | 0.201438 | 0.190918 | 0 | 0.021264 | 0.165086 | 23,939 | 633 | 131 | 37.818325 | 0.820483 | 0.091399 | 0 | 0.269231 | 0 | 0 | 0.089224 | 0.00253 | 0 | 0 | 0 | 0.00158 | 0 | 0 | null | null | 0.002024 | 0.038462 | null | null | 0.006073 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
25048771fb3aa9d75763d9f9d277632f683708c8 | 763 | py | Python | mysqlsmo/objects/table_constraints/__init__.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 33 | 2019-05-27T13:04:35.000Z | 2022-03-17T13:33:05.000Z | mysqlsmo/objects/table_constraints/__init__.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 31 | 2019-06-10T01:55:47.000Z | 2022-03-09T07:27:49.000Z | mysqlsmo/objects/table_constraints/__init__.py | DaeunYim/pgtoolsservice | b7e548718d797883027b2caee2d4722810b33c0f | [
"MIT"
] | 25 | 2019-05-13T18:39:24.000Z | 2021-11-16T03:07:33.000Z | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | 44.882353 | 94 | 0.619921 | 61 | 763 | 7.590164 | 0.557377 | 0.103672 | 0.164147 | 0.207343 | 0.302376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090433 | 763 | 16 | 95 | 47.6875 | 0.667147 | 0.440367 | 0 | 0 | 0 | 0 | 0.168246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
250f9dc852df5819ef2df4db0c17f62e0acbccfc | 941 | py | Python | tests/src/Composite_report/click_on_district_block_cluster_home.py | JalajaTR/cQube | 6bf58ab25f0c36709630987ab730bbd5d9192c03 | [
"MIT"
] | null | null | null | tests/src/Composite_report/click_on_district_block_cluster_home.py | JalajaTR/cQube | 6bf58ab25f0c36709630987ab730bbd5d9192c03 | [
"MIT"
] | 2 | 2022-02-01T00:55:12.000Z | 2022-03-29T22:29:09.000Z | tests/src/Composite_report/click_on_district_block_cluster_home.py | JalajaTR/cQube | 6bf58ab25f0c36709630987ab730bbd5d9192c03 | [
"MIT"
] | null | null | null | from selenium.webdriver.support.select import Select
from Data.parameters import Data
from reuse_func import GetData
class click_on_home():
def __init__(self,driver):
self.driver = driver
def test_homeicon(self):
self.p = GetData()
self.driver.implicitly_wait(20)
self.driver.... | 32.448276 | 71 | 0.695005 | 130 | 941 | 4.761538 | 0.323077 | 0.210016 | 0.113086 | 0.169628 | 0.528271 | 0.453958 | 0.453958 | 0.193861 | 0.193861 | 0.193861 | 0 | 0.006623 | 0.197662 | 941 | 28 | 72 | 33.607143 | 0.813245 | 0 | 0 | 0.227273 | 0 | 0 | 0.027689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
25172447bfe8706c9f23b367861626ad44950da1 | 807 | py | Python | config.py | marijawo/jp | 665b2246181392790824cedd820edd92fc739729 | [
"MIT"
] | null | null | null | config.py | marijawo/jp | 665b2246181392790824cedd820edd92fc739729 | [
"MIT"
] | null | null | null | config.py | marijawo/jp | 665b2246181392790824cedd820edd92fc739729 | [
"MIT"
] | null | null | null | # config.py
import os
basedir = os.path.abspath((os.path.dirname(__file__)))
class BaseConfig(object):
DEBUG = True
SECRET_KEY = '\x1c\x0fws\xfd=\xeb\xc1\x03\xaf*\xa40\xab\xe8\xaf\xb4*\x8a\xa3\xf6\xfd\x14\xfd'
SQLALCHEMY_DATABASE_URI = 'mysql://username:password@localhost/mitdb'
# SQLALCHEMY_... | 24.454545 | 98 | 0.666667 | 93 | 807 | 5.612903 | 0.645161 | 0.034483 | 0.08046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.201983 | 807 | 32 | 99 | 25.21875 | 0.78882 | 0.172243 | 0 | 0.111111 | 0 | 0.055556 | 0.247227 | 0.18859 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.055556 | 0 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
251b70a629aec5dc886f34cb2a7b4a214c034fc8 | 266 | py | Python | backend/api/migrations/0009_merge_20180723_0852.py | pietervdvn/healthdata | 6cb751ab4bf816903c72b0807412d29ba269a836 | [
"MIT"
] | 6 | 2018-07-02T14:39:02.000Z | 2018-07-12T07:35:21.000Z | backend/api/migrations/0009_merge_20180723_0852.py | pietervdvn/healthdata | 6cb751ab4bf816903c72b0807412d29ba269a836 | [
"MIT"
] | 122 | 2018-07-11T07:55:16.000Z | 2020-09-05T13:55:28.000Z | backend/api/migrations/0009_merge_20180723_0852.py | pietervdvn/healthdata | 6cb751ab4bf816903c72b0807412d29ba269a836 | [
"MIT"
] | 2 | 2018-07-10T07:45:02.000Z | 2018-07-26T12:38:43.000Z | # Generated by Django 2.0.7 on 2018-07-23 08:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('api', '0008_merge_20180723_0613'),
('api', '0006_auto_20180719_2243'),
]
operations = [
]
| 17.733333 | 47 | 0.639098 | 33 | 266 | 4.969697 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231527 | 0.236842 | 266 | 14 | 48 | 19 | 0.576355 | 0.169173 | 0 | 0 | 1 | 0 | 0.242009 | 0.214612 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
25292c703f0de9a3b81287dabc5f5fe71b78766c | 2,819 | py | Python | StudentsPerformance.py | AbhigyanRanjan0505/dvyo5sh6g9vdynxfoiubte | ded6f9856c2794afd328c90d3a1e5b9256b38b15 | [
"MIT"
] | null | null | null | StudentsPerformance.py | AbhigyanRanjan0505/dvyo5sh6g9vdynxfoiubte | ded6f9856c2794afd328c90d3a1e5b9256b38b15 | [
"MIT"
] | null | null | null | StudentsPerformance.py | AbhigyanRanjan0505/dvyo5sh6g9vdynxfoiubte | ded6f9856c2794afd328c90d3a1e5b9256b38b15 | [
"MIT"
] | null | null | null | import plotly.figure_factory as ff
import plotly.graph_objects as go
import pandas as pd
import statistics
dataframe = pd.read_csv("StudentsPerformance.csv")
data_list = dataframe["reading score"].to_list()
data_mean = statistics.mean(data_list)
data_median = statistics.median(data_list)
data_mode = statist... | 55.27451 | 121 | 0.750621 | 441 | 2,819 | 4.405896 | 0.151927 | 0.203809 | 0.087494 | 0.086464 | 0.774575 | 0.739578 | 0.59753 | 0.482244 | 0.416366 | 0.29439 | 0 | 0.020324 | 0.144732 | 2,819 | 50 | 122 | 56.38 | 0.785566 | 0 | 0 | 0.046512 | 0 | 0 | 0.14229 | 0.008306 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.093023 | 0 | 0.093023 | 0.139535 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2542e637ad8788f659e4de98d84f7c4245ba957b | 4,297 | py | Python | tuttle/process.py | lexman/tuttle | dab07db4a1e3e18c876deb2897c07be3935acd60 | [
"MIT"
] | 26 | 2015-10-08T17:12:56.000Z | 2021-10-21T14:47:22.000Z | tuttle/process.py | Pandinosaurus/tuttle | dab07db4a1e3e18c876deb2897c07be3935acd60 | [
"MIT"
] | 11 | 2015-10-09T12:37:15.000Z | 2018-04-01T15:47:49.000Z | tuttle/process.py | Pandinosaurus/tuttle | dab07db4a1e3e18c876deb2897c07be3935acd60 | [
"MIT"
] | 3 | 2016-03-29T17:15:41.000Z | 2018-11-16T13:39:31.000Z | # -*- coding: utf8 -*-
from time import time
class Process:
""" Class wrapping a process. A process has some input resources, some output resources,
some code that produces outputs from inputs, a processor that handle the language specificities
"""
def __init__(self, processor, filename, line_num):... | 28.084967 | 118 | 0.621596 | 527 | 4,297 | 4.842505 | 0.218216 | 0.037618 | 0.038401 | 0.026646 | 0.183777 | 0.131661 | 0.12069 | 0.100313 | 0.100313 | 0.037618 | 0 | 0.000994 | 0.297882 | 4,297 | 153 | 119 | 28.084967 | 0.844879 | 0.172446 | 0 | 0.186275 | 0 | 0 | 0.001755 | 0 | 0 | 0 | 0 | 0.006536 | 0.009804 | 1 | 0.264706 | false | 0 | 0.009804 | 0.107843 | 0.45098 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
254fdf8342527e3c20384021b589f01ff5fcc72c | 169 | py | Python | naughty_string_validator/__init__.py | sachinpali146/naughty_string_validator_python | d4b297afd9698b6811877787dfb2fee506191663 | [
"MIT"
] | null | null | null | naughty_string_validator/__init__.py | sachinpali146/naughty_string_validator_python | d4b297afd9698b6811877787dfb2fee506191663 | [
"MIT"
] | null | null | null | naughty_string_validator/__init__.py | sachinpali146/naughty_string_validator_python | d4b297afd9698b6811877787dfb2fee506191663 | [
"MIT"
] | null | null | null | __author__ = 'Shashi Kumar Raja'
__email__ = 'shashiraja92@gmail.com'
__version__ = '0.1.0'
from .naughty_string_validator import NaughtyStringValidator, SRC_DIRECTORY
| 28.166667 | 75 | 0.810651 | 20 | 169 | 6.1 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032895 | 0.100592 | 169 | 5 | 76 | 33.8 | 0.769737 | 0 | 0 | 0 | 0 | 0 | 0.260355 | 0.130178 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c26c23525e3433d804ea7d0bbe798331a699af67 | 422 | py | Python | dispatcher/models.py | stakewise/bls-horcrux | faa602d27f879fc72e72e27a3dd5bcbd03f6dbd7 | [
"MIT"
] | 16 | 2020-12-29T12:02:33.000Z | 2021-09-11T03:18:52.000Z | dispatcher/models.py | stakewise/bls-horcrux | faa602d27f879fc72e72e27a3dd5bcbd03f6dbd7 | [
"MIT"
] | 6 | 2021-01-01T12:22:51.000Z | 2021-01-10T20:14:29.000Z | dispatcher/models.py | stakewise/bls-horcrux | faa602d27f879fc72e72e27a3dd5bcbd03f6dbd7 | [
"MIT"
] | 3 | 2020-12-30T21:22:54.000Z | 2021-05-03T11:36:28.000Z | from sqlalchemy import Column, Integer, String
from .database import Base
class Share(Base):
__tablename__ = "shares"
id = Column(Integer, primary_key=True, index=True)
recipient_rsa_public_key = Column(String)
sender_rsa_public_key = Column(String)
enc_session_key = Column(String)
ciphertex... | 24.823529 | 54 | 0.720379 | 52 | 422 | 5.596154 | 0.519231 | 0.28866 | 0.154639 | 0.123711 | 0.164948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191943 | 422 | 16 | 55 | 26.375 | 0.853372 | 0 | 0 | 0 | 0 | 0 | 0.014218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c271a7ffbce58808fe236df980ec80151637c49e | 97 | py | Python | test/files/crawl_settings.py | mawentao007/reading_grab | a8b64d235d60e5c895e70f59739888f6748d4407 | [
"MIT"
] | null | null | null | test/files/crawl_settings.py | mawentao007/reading_grab | a8b64d235d60e5c895e70f59739888f6748d4407 | [
"MIT"
] | null | null | null | test/files/crawl_settings.py | mawentao007/reading_grab | a8b64d235d60e5c895e70f59739888f6748d4407 | [
"MIT"
] | null | null | null | GRAB_SPIDER_CONFIG = {
'global': {
'spider_modules': ['test.script_crawl'],
},
}
| 16.166667 | 48 | 0.556701 | 9 | 97 | 5.555556 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257732 | 97 | 5 | 49 | 19.4 | 0.694444 | 0 | 0 | 0 | 0 | 0 | 0.381443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c27af0b491bc4e0c19fc5218337f934ecf967276 | 151 | py | Python | exercicios/aula08-ex-a.py | anildoferreira/CursoPython-PyCharm | 56c3962d6cc7d43482a9649a482619adba780d81 | [
"MIT"
] | null | null | null | exercicios/aula08-ex-a.py | anildoferreira/CursoPython-PyCharm | 56c3962d6cc7d43482a9649a482619adba780d81 | [
"MIT"
] | null | null | null | exercicios/aula08-ex-a.py | anildoferreira/CursoPython-PyCharm | 56c3962d6cc7d43482a9649a482619adba780d81 | [
"MIT"
] | null | null | null | import math
num = int(input('Digite um número para encontrar a raíz: '))
raiz = math.sqrt(num)
print('A raíz quadrada de {}, é {}.'.format(num, raiz))
| 30.2 | 60 | 0.675497 | 25 | 151 | 4.08 | 0.76 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152318 | 151 | 4 | 61 | 37.75 | 0.796875 | 0 | 0 | 0 | 0 | 0 | 0.450331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c282bc8b42698667f4e4abc2cdc05a60e43a978f | 1,953 | py | Python | shepard.py | randbrown/PyWaveTools | e10a138d92e976790134a3d40d21e615e67e18ba | [
"MIT"
] | 1 | 2020-10-05T17:26:29.000Z | 2020-10-05T17:26:29.000Z | shepard.py | randbrown/PyWaveTools | e10a138d92e976790134a3d40d21e615e67e18ba | [
"MIT"
] | null | null | null | shepard.py | randbrown/PyWaveTools | e10a138d92e976790134a3d40d21e615e67e18ba | [
"MIT"
] | 1 | 2022-02-24T10:45:27.000Z | 2022-02-24T10:45:27.000Z | """ Generate shepard tone """
import wavelib
#import plotlib
FREQ_A4 = 440.0
STEPS = 12.0
DURATION_PER_STEP = 1.0 # seconds
TOTAL_DURATION = DURATION_PER_STEP * STEPS
def shepard_glissando(times, freq_start, freq_end):
# the exponential glissando sounds good, but when stitching together with play_n,
... | 36.849057 | 89 | 0.728623 | 291 | 1,953 | 4.652921 | 0.302406 | 0.073117 | 0.077548 | 0.06647 | 0.646972 | 0.631462 | 0.575332 | 0.528065 | 0.462334 | 0.391433 | 0 | 0.01845 | 0.167435 | 1,953 | 52 | 90 | 37.557692 | 0.814268 | 0.279058 | 0 | 0.266667 | 1 | 0 | 0.111833 | 0.099567 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.1 | false | 0 | 0.033333 | 0 | 0.2 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c283a2ab6d7bb1ab1d5cc7eb20d5270f0dc4c25c | 220 | py | Python | retinal-fundus/src/bsmu/retinal_fundus/app/main.py | IvanKosik/vision | 74603d4b727e6d993b562eb4656952e29173323e | [
"BSD-3-Clause"
] | 2 | 2019-10-15T11:34:17.000Z | 2021-02-03T10:46:07.000Z | retinal-fundus/src/bsmu/retinal_fundus/app/main.py | IvanKosik/vision | 74603d4b727e6d993b562eb4656952e29173323e | [
"BSD-3-Clause"
] | null | null | null | retinal-fundus/src/bsmu/retinal_fundus/app/main.py | IvanKosik/vision | 74603d4b727e6d993b562eb4656952e29173323e | [
"BSD-3-Clause"
] | null | null | null | from bsmu.vision.app.base import App
class RetinalFundusApp(App):
pass
def run_app():
print('Run, Retinal Fundus! Run!')
app = RetinalFundusApp()
app.run()
if __name__ == '__main__':
run_app()
| 12.941176 | 38 | 0.645455 | 28 | 220 | 4.714286 | 0.607143 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222727 | 220 | 16 | 39 | 13.75 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.111111 | 0 | 0.333333 | 0.111111 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c285e1c2ef0414547ec25f77bc4482619d261e56 | 1,257 | py | Python | src/powerbidedicated/azext_powerbidedicated/vendored_sdks/powerbidedicated/models/_power_bi_dedicated_management_client_enums.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 8 | 2021-01-13T23:44:08.000Z | 2021-03-17T10:13:36.000Z | src/powerbidedicated/azext_powerbidedicated/vendored_sdks/powerbidedicated/models/_power_bi_dedicated_management_client_enums.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 226 | 2019-07-24T07:57:21.000Z | 2019-10-15T01:07:24.000Z | src/powerbidedicated/azext_powerbidedicated/vendored_sdks/powerbidedicated/models/_power_bi_dedicated_management_client_enums.py | Mannan2812/azure-cli-extensions | e2b34efe23795f6db9c59100534a40f0813c3d95 | [
"MIT"
] | 5 | 2020-05-09T17:47:09.000Z | 2020-10-01T19:52:06.000Z | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | 25.14 | 76 | 0.592681 | 115 | 1,257 | 6.46087 | 0.53913 | 0.028264 | 0.040377 | 0.061911 | 0.551817 | 0.551817 | 0.551817 | 0.551817 | 0.551817 | 0.551817 | 0 | 0.000997 | 0.202068 | 1,257 | 49 | 77 | 25.653061 | 0.739781 | 0.359586 | 0 | 0.827586 | 0 | 0 | 0.261965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.034483 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c29690c505c96d0f168e9a941fb6fb6b3fdb6c27 | 1,616 | py | Python | pbk/util/descriptors.py | dnwobu/pbk | c0bbc944f0af1277a1e3d84835d27dbc6353831c | [
"MIT"
] | 1 | 2021-02-26T16:36:40.000Z | 2021-02-26T16:36:40.000Z | pbk/util/descriptors.py | dnwobu/pbk | c0bbc944f0af1277a1e3d84835d27dbc6353831c | [
"MIT"
] | 1 | 2021-03-15T21:59:34.000Z | 2021-03-16T22:22:11.000Z | pbk/util/descriptors.py | dnwobu/pbk | c0bbc944f0af1277a1e3d84835d27dbc6353831c | [
"MIT"
] | 1 | 2021-02-26T19:33:29.000Z | 2021-02-26T19:33:29.000Z | import abc
class DescriptorClass(abc.ABC):
def __init__(self, prop_name):
self.prop_name = prop_name
@abc.abstractmethod
def __set__(self, instance, value):
"""
Set needs to be defined in subclasses for this to work as a real discriptor
:param instance:
:param val... | 29.381818 | 109 | 0.660891 | 206 | 1,616 | 4.762136 | 0.286408 | 0.106014 | 0.073395 | 0.081549 | 0.524975 | 0.385321 | 0.326198 | 0.283384 | 0.283384 | 0.283384 | 0 | 0 | 0.248144 | 1,616 | 54 | 110 | 29.925926 | 0.807407 | 0.071163 | 0 | 0.40625 | 0 | 0 | 0.100482 | 0.034412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.0625 | 0.03125 | 0.03125 | 0.40625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c299aa420e473353e9ba4bb1614768837ea8e28e | 255 | py | Python | exoskeleton/__init__.py | RuedigerVoigt/exoskeleton | 30865c7b8a570d2825d883c707eeb3c58f174d64 | [
"Apache-2.0"
] | 22 | 2020-04-04T20:45:09.000Z | 2022-01-08T17:55:54.000Z | exoskeleton/__init__.py | RuedigerVoigt/exoskeleton | 30865c7b8a570d2825d883c707eeb3c58f174d64 | [
"Apache-2.0"
] | 23 | 2019-11-07T09:25:03.000Z | 2021-11-01T23:55:35.000Z | exoskeleton/__init__.py | RuedigerVoigt/exoskeleton | 30865c7b8a570d2825d883c707eeb3c58f174d64 | [
"Apache-2.0"
] | 1 | 2020-07-08T12:41:27.000Z | 2020-07-08T12:41:27.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"Exoskeleton Crawler Framwork for Python"
from exoskeleton.__main__ import Exoskeleton
from exoskeleton import _version
NAME = "exoskeleton"
__version__ = _version.__version__
__author__ = "Rüdiger Voigt"
| 21.25 | 44 | 0.772549 | 29 | 255 | 6.172414 | 0.689655 | 0.167598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.129412 | 255 | 11 | 45 | 23.181818 | 0.797297 | 0.32549 | 0 | 0 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c2a723e09ed220ba9e639f6ff3e2f8225d889c04 | 976 | py | Python | main.py | arvinzhang815/jd-assistant | 40490f336a760ee86a1cc8757f3692c9f8d12dd0 | [
"MIT"
] | 2 | 2018-10-20T10:52:45.000Z | 2018-10-20T10:52:52.000Z | main.py | csliangdu/jd-assistant | 215c3bcdf6332b032ab05961aef7041870083465 | [
"MIT"
] | null | null | null | main.py | csliangdu/jd-assistant | 215c3bcdf6332b032ab05961aef7041870083465 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from jd_assistant import Assistant
if __name__ == '__main__':
asst = Assistant()
asst.login_by_QRcode() # 扫码登陆
asst.clear_cart() # 清空购物车
asst.add_item_to_cart(sku_id='1626336666') # 添加到购物车
# 3种订单提交方式:
# 1.直接提交订单
# asst.submit_order()
# 2.... | 32.533333 | 110 | 0.620902 | 144 | 976 | 4.048611 | 0.576389 | 0.072041 | 0.096055 | 0.102916 | 0.144082 | 0.144082 | 0 | 0 | 0 | 0 | 0 | 0.227723 | 0.172131 | 976 | 30 | 111 | 32.533333 | 0.486386 | 0.226434 | 0 | 0 | 0 | 0 | 0.114035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c2e68cf47005b966b2c1e0b208cac4de5245d60a | 271 | py | Python | Hackerrank/World Cup 2016/World Cup/Problem F/gen.py | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | Hackerrank/World Cup 2016/World Cup/Problem F/gen.py | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | Hackerrank/World Cup 2016/World Cup/Problem F/gen.py | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | from math import *
from fractions import *
from random import *
n = 1000000000
q = 200000
print n, q
for _ in xrange(q):
t = randrange(1,4)
l,r,c = randrange(1,n+1), randrange(1,n+1), 1000000000
if t < 3:
print t,l,r,c
else:
print t,l,r
#print 3, 1, 1000000000
| 15.941176 | 55 | 0.656827 | 53 | 271 | 3.339623 | 0.433962 | 0.169492 | 0.033898 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209302 | 0.206642 | 271 | 16 | 56 | 16.9375 | 0.613953 | 0.081181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c2f04e8849d95966829b6aff287712a98ea4fc02 | 348 | py | Python | project_euler/121.py | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | project_euler/121.py | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | project_euler/121.py | huangshenno1/project_euler | 8a3c91fd11bcb6a6a830e963b1d5aed3f5ff787d | [
"MIT"
] | null | null | null | def add(p, b, r, x):
if (b, r) in p: p[(b, r)] += x
else: p[(b, r)] = x
n = 15
dp = []
dp.append({(0,0): 1.0})
for rnd in xrange(1, n+1):
p = {}
for ((b, r), v) in dp[rnd-1].items():
add(p, b+1, r, v/(rnd+1))
add(p, b, r+1, v*rnd/(rnd+1))
dp.append(p)
s = 0
for ((b, r), v) in dp[n].items():
if b > r:
s +=... | 16.571429 | 38 | 0.456897 | 87 | 348 | 1.827586 | 0.275862 | 0.100629 | 0.075472 | 0.075472 | 0.125786 | 0.125786 | 0 | 0 | 0 | 0 | 0 | 0.057034 | 0.244253 | 348 | 20 | 39 | 17.4 | 0.547529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.055556 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c2f424186dd8bd7d36207ff69deaeee93c248dfd | 336 | py | Python | COMP-2080/Week-9/matrixMult.py | kbrezinski/Candidacy-Prep | f4610fb611e6300a7d657af124728d46a8659ba5 | [
"BSD-3-Clause"
] | null | null | null | COMP-2080/Week-9/matrixMult.py | kbrezinski/Candidacy-Prep | f4610fb611e6300a7d657af124728d46a8659ba5 | [
"BSD-3-Clause"
] | null | null | null | COMP-2080/Week-9/matrixMult.py | kbrezinski/Candidacy-Prep | f4610fb611e6300a7d657af124728d46a8659ba5 | [
"BSD-3-Clause"
] | null | null | null |
import numpy as np
A = np.random.randint(10, size=[4, 4])
B = np.random.randint(10, size=[4, 4])
def matMul(A: np.ndarray, B: np.ndarray):
shape = A.shape[0]
mid = shape // 2
C = np.empty([shape, shape])
matMulAux(0, mid)
matMulAux(mid + 1, shape)
def matMulAux(lo: int, hi: int):
if lo == h... | 18.666667 | 41 | 0.577381 | 57 | 336 | 3.403509 | 0.473684 | 0.030928 | 0.154639 | 0.175258 | 0.237113 | 0.237113 | 0.237113 | 0 | 0 | 0 | 0 | 0.047619 | 0.25 | 336 | 17 | 42 | 19.764706 | 0.722222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.083333 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c2f59f0e26e4a041acfbaed6cf7330733be34b6e | 349 | py | Python | src/apps/books/views.py | k0t3n/stepic_drf_tests | a005b23ccbc00f424866e188cf3799ef58309a40 | [
"MIT"
] | 1 | 2020-11-14T14:00:51.000Z | 2020-11-14T14:00:51.000Z | src/apps/books/views.py | k0t3n/stepic_drf_tests | a005b23ccbc00f424866e188cf3799ef58309a40 | [
"MIT"
] | 5 | 2020-11-18T06:22:49.000Z | 2021-06-22T06:41:42.000Z | src/apps/books/views.py | stepik-a-w/drf_tests_app | a005b23ccbc00f424866e188cf3799ef58309a40 | [
"MIT"
] | null | null | null | from rest_framework.permissions import IsAuthenticated
from rest_framework.viewsets import ModelViewSet
from src.apps.books.models import Book
from src.apps.books.serializers import BookSerializer
class BookViewSet(ModelViewSet):
queryset = Book.objects.all()
serializer_class = BookSerializer
permission_... | 29.083333 | 54 | 0.819484 | 39 | 349 | 7.230769 | 0.589744 | 0.056738 | 0.120567 | 0.113475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120344 | 349 | 11 | 55 | 31.727273 | 0.918567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6c27834b47bfd60b911f87e58bf4719906890311 | 999 | py | Python | dpm/transforms/affine.py | nextBillyonair/DPM | 840ffaafe15c208b200b74094ffa8fe493b4c975 | [
"MIT"
] | 1 | 2021-07-20T14:02:55.000Z | 2021-07-20T14:02:55.000Z | dpm/transforms/affine.py | nextBillyonair/DPM | 840ffaafe15c208b200b74094ffa8fe493b4c975 | [
"MIT"
] | null | null | null | dpm/transforms/affine.py | nextBillyonair/DPM | 840ffaafe15c208b200b74094ffa8fe493b4c975 | [
"MIT"
] | null | null | null | from .transform import Transform
from torch.nn import Parameter
import torch
class Affine(Transform):
def __init__(self, loc=0.0, scale=1.0, learnable=True):
super().__init__()
if not isinstance(loc, torch.Tensor):
loc = torch.tensor(loc).view(1, -1)
if not isinstance(scale, t... | 30.272727 | 72 | 0.593594 | 135 | 999 | 4.296296 | 0.325926 | 0.084483 | 0.056897 | 0.082759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012179 | 0.26026 | 999 | 32 | 73 | 31.21875 | 0.772666 | 0 | 0 | 0 | 0 | 0 | 0.018018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.12 | 0.16 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
6c29aed0979f8e3e9492ada886991693f14fd510 | 1,507 | py | Python | entity/turret/Turret.py | SamJakob/SpaceInvaders2 | 4dedb75c48bc45a5a8ce0486db23768ca782e75b | [
"MIT"
] | null | null | null | entity/turret/Turret.py | SamJakob/SpaceInvaders2 | 4dedb75c48bc45a5a8ce0486db23768ca782e75b | [
"MIT"
] | null | null | null | entity/turret/Turret.py | SamJakob/SpaceInvaders2 | 4dedb75c48bc45a5a8ce0486db23768ca782e75b | [
"MIT"
] | null | null | null | import pygame
class Turret:
def __init__(self, MovementControls):
self.speed = 40
self.lives = 3
self.score = 0
self.spriteImage = "assets/sprites/turret/shooter.png"
self.sprite = pygame.image.load(self.spriteImage)
spriteRect = self.sprite.get_rect()
self... | 20.930556 | 62 | 0.588587 | 166 | 1,507 | 5.313253 | 0.301205 | 0.102041 | 0.126984 | 0.088435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007752 | 0.315196 | 1,507 | 71 | 63 | 21.225352 | 0.846899 | 0 | 0 | 0.04 | 0 | 0 | 0.021898 | 0.021898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.34 | false | 0 | 0.02 | 0.18 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
6c428dff50c8cbf64801e8906a4a19f8f4fc4dff | 745 | py | Python | strings/jaden_case.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | strings/jaden_case.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | strings/jaden_case.py | ethyl2/code_challenges | 3c9ccca1782f92728e60a515a7ca797f6d470e81 | [
"MIT"
] | null | null | null | """
https://www.codewars.com/kata/5390bac347d09b7da40006f6
Given a string, return a string in which each word is capitalized
Example:
Not Jaden-Cased: "How can mirrors be real if our eyes aren't real"
Jaden-Cased: "How Can Mirrors Be Real If Our Eyes Aren't Real"
"""
import string
def to_jaden_case(string: str)... | 25.689655 | 72 | 0.703356 | 117 | 745 | 4.393162 | 0.42735 | 0.046693 | 0.101167 | 0.116732 | 0.326848 | 0.326848 | 0.326848 | 0.326848 | 0.326848 | 0.326848 | 0 | 0.029557 | 0.18255 | 745 | 28 | 73 | 26.607143 | 0.81445 | 0.452349 | 0 | 0 | 0 | 0 | 0.256757 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0 | 0.714286 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6c498e0a01e614bb94b21e19ffec2e2a542153ce | 203 | py | Python | tests/demo_migrations/migrations.py | achaussier/copier | 45c5f0d90b8e241c2d93c46bd51c790acf67b0dd | [
"MIT"
] | null | null | null | tests/demo_migrations/migrations.py | achaussier/copier | 45c5f0d90b8e241c2d93c46bd51c790acf67b0dd | [
"MIT"
] | null | null | null | tests/demo_migrations/migrations.py | achaussier/copier | 45c5f0d90b8e241c2d93c46bd51c790acf67b0dd | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import json
import os
import sys
NAME = "{VERSION_FROM}-{VERSION_CURRENT}-{VERSION_TO}-{STAGE}.json"
with open(NAME.format(**os.environ), "w") as fd:
json.dump(sys.argv, fd)
| 20.3 | 67 | 0.699507 | 33 | 203 | 4.212121 | 0.69697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.118227 | 203 | 9 | 68 | 22.555556 | 0.77095 | 0.103448 | 0 | 0 | 0 | 0 | 0.325967 | 0.320442 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6c537c200771b02b0d5b46493f11eee8de0b954e | 289 | py | Python | flask_toolkit/shared/payload_wrap.py | Creditas/flask-toolkit | 830354b4e2c0f9fdac1d000dcc760226b704628a | [
"MIT"
] | 3 | 2018-07-31T16:11:17.000Z | 2021-08-14T17:03:44.000Z | flask_toolkit/shared/payload_wrap.py | Creditas/flask-toolkit | 830354b4e2c0f9fdac1d000dcc760226b704628a | [
"MIT"
] | 6 | 2018-07-11T14:34:09.000Z | 2019-11-29T13:53:13.000Z | flask_toolkit/shared/payload_wrap.py | Creditas/flask-toolkit | 830354b4e2c0f9fdac1d000dcc760226b704628a | [
"MIT"
] | null | null | null | import json
class PayloadWrap:
_payload = dict()
def __init__(self, payload):
if isinstance(payload, str):
self._payload = json.loads(payload)
else:
self._payload = payload
def to_json(self):
return json.dumps(self._payload)
| 19.266667 | 47 | 0.602076 | 32 | 289 | 5.15625 | 0.53125 | 0.266667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.304498 | 289 | 14 | 48 | 20.642857 | 0.820896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6c575578e5c9e778e8cfb07f3fe3eb89f8dad680 | 771 | py | Python | tests/models.py | traktor88/test | cc59eca2482bf36d35de0f15a9eb9895c8039403 | [
"BSD-3-Clause"
] | null | null | null | tests/models.py | traktor88/test | cc59eca2482bf36d35de0f15a9eb9895c8039403 | [
"BSD-3-Clause"
] | null | null | null | tests/models.py | traktor88/test | cc59eca2482bf36d35de0f15a9eb9895c8039403 | [
"BSD-3-Clause"
] | null | null | null | from django.db import models
from tagging.fields import TagField
class Perch(models.Model):
size = models.IntegerField()
smelly = models.BooleanField(default=True)
class Parrot(models.Model):
state = models.CharField(maxlength=50)
perch = models.ForeignKey(Perch, null=True)
def __str__(self):
... | 20.289474 | 47 | 0.658885 | 91 | 771 | 5.450549 | 0.384615 | 0.110887 | 0.145161 | 0.157258 | 0.407258 | 0.366935 | 0.366935 | 0.366935 | 0.366935 | 0.366935 | 0 | 0.010118 | 0.230869 | 771 | 37 | 48 | 20.837838 | 0.826307 | 0 | 0 | 0.461538 | 0 | 0 | 0.016861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0.115385 | 0.884615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
6c63edf61ee9f1f317df38f504b7176a00e62731 | 735 | py | Python | cloudcix_rest/migrations/0001_initial.py | CloudCIX/framework | 321b4b953a2b2083c069fff133e538ea1ecca4a7 | [
"Apache-2.0"
] | null | null | null | cloudcix_rest/migrations/0001_initial.py | CloudCIX/framework | 321b4b953a2b2083c069fff133e538ea1ecca4a7 | [
"Apache-2.0"
] | null | null | null | cloudcix_rest/migrations/0001_initial.py | CloudCIX/framework | 321b4b953a2b2083c069fff133e538ea1ecca4a7 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.7 on 2018-07-09 13:50
from typing import List
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies: List[str] = []
operations = [
migrations.CreateModel(
name='APILog',
fields=[
('id', models.Au... | 31.956522 | 114 | 0.576871 | 79 | 735 | 5.240506 | 0.658228 | 0.108696 | 0.130435 | 0.173913 | 0.125604 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040076 | 0.287075 | 735 | 22 | 115 | 33.409091 | 0.75 | 0.061224 | 0 | 0 | 1 | 0 | 0.059593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6c867ba007d1136bff145c905b5952b4584f34c1 | 183 | py | Python | src/pyTemplateBath/hello.py | StephenRicher/pyTemplate | 7357543ecb9658967f1425246f17e02270c1a212 | [
"MIT"
] | null | null | null | src/pyTemplateBath/hello.py | StephenRicher/pyTemplate | 7357543ecb9658967f1425246f17e02270c1a212 | [
"MIT"
] | null | null | null | src/pyTemplateBath/hello.py | StephenRicher/pyTemplate | 7357543ecb9658967f1425246f17e02270c1a212 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
""" Print Hello World."""
import logging
def hello_world(name='World', **kwargs):
print(f'Hello {name}.')
logging.debug(f"Printed 'Hello {name}.'")
| 16.636364 | 45 | 0.639344 | 25 | 183 | 4.64 | 0.6 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006452 | 0.153005 | 183 | 10 | 46 | 18.3 | 0.741935 | 0.218579 | 0 | 0 | 0 | 0 | 0.301471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6663a03f0de4fc2c9c5803845aaecf1efe270083 | 906 | py | Python | model/MusicalInstrument.py | kerenren/flask-musical-instrument-api | 7a2ae6d5e9df54c272275394e4c7bb8f63106f54 | [
"MIT"
] | null | null | null | model/MusicalInstrument.py | kerenren/flask-musical-instrument-api | 7a2ae6d5e9df54c272275394e4c7bb8f63106f54 | [
"MIT"
] | null | null | null | model/MusicalInstrument.py | kerenren/flask-musical-instrument-api | 7a2ae6d5e9df54c272275394e4c7bb8f63106f54 | [
"MIT"
] | null | null | null |
class MusicalInstrument:
def __init__(self, color, dimensions, name, manufacturer, model):
self._color = color
self._dimensions = dimensions
self._name = name
self._manufacturer = manufacturer
self._model = model
def play(self):
pass
def get_model(self):
... | 25.885714 | 120 | 0.626932 | 97 | 906 | 5.546392 | 0.195876 | 0.083643 | 0.078067 | 0.063197 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273731 | 906 | 34 | 121 | 26.647059 | 0.817629 | 0 | 0 | 0.25 | 0 | 0 | 0.087389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.041667 | 0 | 0.166667 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
666e95dc03279fdefda620aace9658a8e3d09619 | 352 | py | Python | Python/OS Module/Changing_Directories.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | Python/OS Module/Changing_Directories.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | Python/OS Module/Changing_Directories.py | themohitpapneja/Code_Dump | ec72144e66d12cba2ce719c37292517588490b42 | [
"Apache-2.0"
] | null | null | null | from os import *
print(getcwd())
print(listdir('D:\\Users\\Mohit\\PycharmProjects\\PythonLab\\venv'))
print("Current Directory is: ",getcwd())
k=input("Enter Directory Where you want to jump: ")
print("Changing Directory.......")
chdir(k)
print("Current Directory is: ",getcwd())
print("Listing )the directories in curr... | 35.2 | 71 | 0.713068 | 47 | 352 | 5.340426 | 0.638298 | 0.191235 | 0.167331 | 0.183267 | 0.231076 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088068 | 352 | 10 | 71 | 35.2 | 0.781931 | 0 | 0 | 0.222222 | 0 | 0 | 0.594901 | 0.141643 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.666667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
6671f979d6c9b5f2372374d5573d44d369a1f5f9 | 1,168 | py | Python | project/application/models.py | vicinityh2020/vicinity-vas-energy-monitoring | 1ffb51868abcc1b5b52ef27a056ba278cd0f7f65 | [
"MIT"
] | null | null | null | project/application/models.py | vicinityh2020/vicinity-vas-energy-monitoring | 1ffb51868abcc1b5b52ef27a056ba278cd0f7f65 | [
"MIT"
] | 3 | 2020-06-05T19:06:48.000Z | 2021-06-10T20:58:13.000Z | project/application/models.py | vicinityh2020/vicinity-vas-energy-monitoring | 1ffb51868abcc1b5b52ef27a056ba278cd0f7f65 | [
"MIT"
] | null | null | null | from django.db import models
from adapter import models as adapter_models
class SensorUsage(models.Model):
value = models.FloatField()
sensor = models.ForeignKey(adapter_models.Sensor, on_delete=models.CASCADE)
datetime = models.DateTimeField()
@staticmethod
def get_usage_by_day(day, monitors):
... | 38.933333 | 141 | 0.669521 | 133 | 1,168 | 5.639098 | 0.368421 | 0.024 | 0.072 | 0.096 | 0.392 | 0.325333 | 0.325333 | 0.205333 | 0.205333 | 0.205333 | 0 | 0.007795 | 0.231164 | 1,168 | 29 | 142 | 40.275862 | 0.827394 | 0 | 0 | 0.095238 | 0 | 0 | 0.015411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.095238 | 0.142857 | 0.761905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
669dabbcc96a2cfa7d677c6d6c28c6ea4425b153 | 270 | gyp | Python | OpenGL/all.gyp | legendlee1314/GLmacia | 67ef41c83404ae0346c522b0045454826c30b8bd | [
"MIT"
] | null | null | null | OpenGL/all.gyp | legendlee1314/GLmacia | 67ef41c83404ae0346c522b0045454826c30b8bd | [
"MIT"
] | null | null | null | OpenGL/all.gyp | legendlee1314/GLmacia | 67ef41c83404ae0346c522b0045454826c30b8bd | [
"MIT"
] | null | null | null | {
'variables': {
'project_name': 'GLmacia',
'version': '1.0.0',
'current_dir': '<(DEPTH)',
},
'targets': [
{
'target_name': 'All',
'type': 'none',
'dependencies': [
'<(current_dir)/app/app.gyp:app',
],
},
],
}
| 15.882353 | 41 | 0.437037 | 24 | 270 | 4.75 | 0.75 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.311111 | 270 | 16 | 42 | 16.875 | 0.596774 | 0 | 0 | 0.125 | 0 | 0 | 0.481481 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
66dd19738eb2024c061d61740881f51d182f23d2 | 9,235 | py | Python | Levels/level04.py | SC-HARSH/Parkour-Game | c5cd8bf5e003b3c4a121e98ba87e2f8b8be4c3ad | [
"MIT"
] | null | null | null | Levels/level04.py | SC-HARSH/Parkour-Game | c5cd8bf5e003b3c4a121e98ba87e2f8b8be4c3ad | [
"MIT"
] | null | null | null | Levels/level04.py | SC-HARSH/Parkour-Game | c5cd8bf5e003b3c4a121e98ba87e2f8b8be4c3ad | [
"MIT"
] | null | null | null | from ursina import *
import sys
sys.path.append('../Parkour/')
from block import *
normalSpeed = 2
boostSpeed = 5
normalJump = 0.3
# Level04
class Level04(Entity):
def __init__(self):
super().__init__()
self.is_enabled = False
self.on = False
self.level = Entity(model = "lava_le... | 34.203704 | 130 | 0.579643 | 1,280 | 9,235 | 3.948438 | 0.110938 | 0.219034 | 0.243372 | 0.111001 | 0.365849 | 0.341512 | 0.329244 | 0.312624 | 0.293035 | 0.272853 | 0 | 0.109172 | 0.292799 | 9,235 | 269 | 131 | 34.330855 | 0.664676 | 0.009854 | 0 | 0.216814 | 0 | 0 | 0.006018 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022124 | false | 0 | 0.013274 | 0 | 0.039823 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
66f028e575658c7b8a3b37d8bb8586a5f5c03347 | 1,652 | py | Python | utils/scripts/OOOlevelGen/src/sprites/ABTargetScrollFocusSprite.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/sprites/ABTargetScrollFocusSprite.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | utils/scripts/OOOlevelGen/src/sprites/ABTargetScrollFocusSprite.py | fullscreennl/bullettime | 8967449cdf926aaed6bb7ec217d92e0689fb0c3c | [
"MIT"
] | null | null | null | import PhysicsMixin
import ID
BODIES = """
<dict>
<key>body</key>
<dict>
<key>x</key>
<integer>%(x)s</integer>
<key>y</key>
<integer>%(y)s</integer>
<key>width</key>
<integer>10</integer>
<key>height</key>
<integer>10</integer>
<key>sheet_id</key>
<integer>5... | 22.630137 | 76 | 0.519976 | 179 | 1,652 | 4.681564 | 0.301676 | 0.131265 | 0.065632 | 0.026253 | 0.23389 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008569 | 0.293584 | 1,652 | 72 | 77 | 22.944444 | 0.709512 | 0 | 0 | 0.31746 | 0 | 0 | 0.705206 | 0.167676 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.031746 | null | null | 0.015873 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dd01852001eb47c776ed4cf1751a98ab78d097f9 | 379 | py | Python | backend/StudentVillage/serializer.py | henrikhorluck/tdt4140-washlists | a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa | [
"MIT"
] | null | null | null | backend/StudentVillage/serializer.py | henrikhorluck/tdt4140-washlists | a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa | [
"MIT"
] | 2 | 2020-05-02T18:17:44.000Z | 2020-05-02T18:18:02.000Z | backend/StudentVillage/serializer.py | henrikhorluck/tdt4140-washlists | a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa | [
"MIT"
] | null | null | null | from rest_framework import serializers
from SIFUser.serializer import UserSerializer
from .models import StudentVillage
class StudentVillageSerializer(serializers.ModelSerializer):
managers = UserSerializer(many=True)
dormrooms = serializers.PrimaryKeyRelatedField(many=True, read_only=True)
class Meta:... | 25.266667 | 77 | 0.778364 | 36 | 379 | 8.027778 | 0.666667 | 0.055363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163588 | 379 | 14 | 78 | 27.071429 | 0.911672 | 0 | 0 | 0 | 0 | 0 | 0.01847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.