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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d3facf4d2fe8a332cfde55e1b13c768ba51762d2 | 723 | py | Python | piccolo/columns/choices.py | 0scarB/piccolo | 27539219431874bae99b7206df48133fbe1a27eb | [
"MIT"
] | 750 | 2019-01-03T16:02:48.000Z | 2022-03-30T19:53:03.000Z | piccolo/columns/choices.py | 0scarB/piccolo | 27539219431874bae99b7206df48133fbe1a27eb | [
"MIT"
] | 311 | 2019-01-14T13:07:13.000Z | 2022-03-31T07:43:08.000Z | piccolo/columns/choices.py | 0scarB/piccolo | 27539219431874bae99b7206df48133fbe1a27eb | [
"MIT"
] | 48 | 2020-12-18T08:13:50.000Z | 2022-03-24T03:18:06.000Z | from __future__ import annotations
import typing as t
from dataclasses import dataclass
@dataclass
class Choice:
"""
When defining enums for ``Column`` choices, they can either be defined
like:
.. code-block:: python
class Title(Enum):
mr = 1
mrs = 2
If using Pi... | 21.264706 | 79 | 0.598893 | 97 | 723 | 4.391753 | 0.546392 | 0.077465 | 0.070423 | 0.093897 | 0.384977 | 0.276995 | 0.276995 | 0.131455 | 0 | 0 | 0 | 0.007797 | 0.290456 | 723 | 33 | 80 | 21.909091 | 0.822612 | 0.687414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
31025f78e70bf5c25bb98dd118d111d346c11902 | 565 | py | Python | screen.py | ThomasHangstoerfer/LCDisplay | e7dba7cd83bd393f28e1433118cec049fadefff2 | [
"MIT"
] | null | null | null | screen.py | ThomasHangstoerfer/LCDisplay | e7dba7cd83bd393f28e1433118cec049fadefff2 | [
"MIT"
] | null | null | null | screen.py | ThomasHangstoerfer/LCDisplay | e7dba7cd83bd393f28e1433118cec049fadefff2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Author: Thomas Hangstoerfer
# License: MIT
#
class Screen(object):
"""docstring for Screen"""
def __init__(self):
#super(Screen, self).__init__()
#self.arg = arg
self.isVisible_ = False
pass
def setVisible(self, visible):
# print("Screen... | 19.482759 | 50 | 0.569912 | 61 | 565 | 5.098361 | 0.47541 | 0.125402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0025 | 0.292035 | 565 | 28 | 51 | 20.178571 | 0.775 | 0.299115 | 0 | 0.153846 | 0 | 0 | 0.039164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0.153846 | 0 | 0.076923 | 0.538462 | 0.076923 | 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 | 1 | 0 | 0 | 3 |
31145ea13c26f28ca2cbf5e7c6f0d36c3584bc21 | 2,343 | py | Python | sympycore/calculus/tests/test_differentiation.py | radovankavicky/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 96 | 2015-01-25T05:59:56.000Z | 2021-12-29T14:05:22.000Z | sympycore/calculus/tests/test_differentiation.py | 1zinnur9/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 3 | 2015-12-17T19:25:46.000Z | 2018-06-19T07:05:20.000Z | sympycore/calculus/tests/test_differentiation.py | 1zinnur9/pymaclab | 21da758f64ed0b62969c9289576f677e977cfd98 | [
"Apache-2.0"
] | 36 | 2016-01-31T15:22:01.000Z | 2021-03-29T07:03:07.000Z | from sympycore.calculus import *
x = Symbol('x')
n = Symbol('n')
M = 10**6
def test_diff_poly():
assert diff(3**(pi+5), x) == 0
assert diff(x, x) == 1
assert diff(x, x, 2) == 0
assert diff(3*x**2 + 5*x, x) == 6*x + 5
assert diff(3*x**2 + 5*x, x, 2) == 6
assert diff(x**M + 2*x + 3, ... | 40.396552 | 90 | 0.466496 | 505 | 2,343 | 2.138614 | 0.075248 | 0.361111 | 0.152778 | 0.077778 | 0.583333 | 0.386111 | 0.252778 | 0.15463 | 0.050926 | 0 | 0 | 0.09825 | 0.244131 | 2,343 | 57 | 91 | 41.105263 | 0.511575 | 0 | 0 | 0 | 0 | 0 | 0.000875 | 0 | 0 | 0 | 0 | 0 | 0.78 | 0 | null | null | 0 | 0.02 | null | null | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3120b01404df95fd356c760ba5988b3a51bc5514 | 184 | py | Python | mundo01/ex021.py | lucasadsr/Curso-Em-Video-Python | c5593eefcdea3aebda79a892054398062a70a29f | [
"MIT"
] | null | null | null | mundo01/ex021.py | lucasadsr/Curso-Em-Video-Python | c5593eefcdea3aebda79a892054398062a70a29f | [
"MIT"
] | null | null | null | mundo01/ex021.py | lucasadsr/Curso-Em-Video-Python | c5593eefcdea3aebda79a892054398062a70a29f | [
"MIT"
] | null | null | null | # Faça um programa que abra e reproduza o áudio de um arquivo MP3.
from pygame import mixer
mixer.init()
mixer.music.load('musica.mp3')
mixer.music.play()
import time
time.sleep(360)
| 20.444444 | 66 | 0.76087 | 32 | 184 | 4.375 | 0.75 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031447 | 0.13587 | 184 | 8 | 67 | 23 | 0.849057 | 0.347826 | 0 | 0 | 0 | 0 | 0.084746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
31220145a6ed0580f93509da11cc59e15ad90bf1 | 663 | py | Python | tinycord/models/mixins.py | HazemMeqdad/TinyCord | 1d85a9e3523c01af2f34303b6f49778d4347356e | [
"MIT"
] | null | null | null | tinycord/models/mixins.py | HazemMeqdad/TinyCord | 1d85a9e3523c01af2f34303b6f49778d4347356e | [
"MIT"
] | null | null | null | tinycord/models/mixins.py | HazemMeqdad/TinyCord | 1d85a9e3523c01af2f34303b6f49778d4347356e | [
"MIT"
] | null | null | null | class ReprMixin:
def __repr__(self) -> str:
"""
This function is used to represent the object.
"""
return f'<{self.__class__.__name__} {self.id}>'
class Hashable(ReprMixin):
def __hash__(self):
"""
This function is used to hash the object.
"""
... | 25.5 | 70 | 0.533937 | 79 | 663 | 4.177215 | 0.35443 | 0.145455 | 0.169697 | 0.218182 | 0.436364 | 0.254545 | 0.181818 | 0.181818 | 0 | 0 | 0 | 0.004751 | 0.365008 | 663 | 26 | 71 | 25.5 | 0.779097 | 0.307692 | 0 | 0 | 0 | 0 | 0.105413 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3127b6722f4245f9de4073625569601c250bdb44 | 2,431 | py | Python | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES1/OES/texture_cube_map.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES1/OES/texture_cube_map.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | OpenGLWrapper_JE/venv/Lib/site-packages/OpenGL/raw/GLES1/OES/texture_cube_map.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GLES1 import _types as _cs
# End users want this...
from OpenGL.raw.GLES1._types import *
from OpenGL.raw.GLES1 import _errors
from OpenGL.constant import Constant as _C
... | 45.018519 | 124 | 0.824763 | 405 | 2,431 | 4.441975 | 0.22716 | 0.077821 | 0.124514 | 0.124514 | 0.671484 | 0.556976 | 0.512507 | 0.293496 | 0.293496 | 0.293496 | 0 | 0.029982 | 0.067051 | 2,431 | 53 | 125 | 45.867925 | 0.763228 | 0.041135 | 0 | 0.306122 | 1 | 0 | 0.187142 | 0.179657 | 0 | 0 | 0.034346 | 0 | 0 | 1 | 0.204082 | false | 0.183673 | 0.122449 | 0.020408 | 0.346939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3139c830c62da3178e1d5d9532749bc7ecbe4d37 | 164 | py | Python | fullcontact/exceptions.py | michaelcredera/fullcontact-python-client | 482970b00b134409e6c9f303e7c2a7a6fc4a4685 | [
"Apache-2.0"
] | 8 | 2020-04-13T15:53:43.000Z | 2022-02-04T07:37:17.000Z | fullcontact/exceptions.py | michaelcredera/fullcontact-python-client | 482970b00b134409e6c9f303e7c2a7a6fc4a4685 | [
"Apache-2.0"
] | 9 | 2020-06-04T15:30:50.000Z | 2022-02-04T07:36:39.000Z | fullcontact/exceptions.py | michaelcredera/fullcontact-python-client | 482970b00b134409e6c9f303e7c2a7a6fc4a4685 | [
"Apache-2.0"
] | 7 | 2020-09-18T16:02:43.000Z | 2022-02-17T09:22:54.000Z | # -*- coding: utf-8 -*-
"""
This module serves the class for wrapping
any known client specific exceptions.
"""
class FullContactException(Exception):
pass
| 14.909091 | 42 | 0.70122 | 19 | 164 | 6.052632 | 0.947368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0.182927 | 164 | 10 | 43 | 16.4 | 0.850746 | 0.628049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
313d24cf8418cdf3470517bda6b0d40a725240c8 | 211 | py | Python | PP4E-Examples-1.4/Examples/PP4E/Preview/make_db_pickle.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/Preview/make_db_pickle.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | PP4E-Examples-1.4/Examples/PP4E/Preview/make_db_pickle.py | AngelLiang/PP4E | 3a7f63b366e1e4700b4d2524884696999a87ba9d | [
"MIT"
] | null | null | null | from initdata import db
import pickle
dbfile = open('people-pickle', 'wb') # use binary mode files in 3.X
pickle.dump(db, dbfile) # data is bytes, not str
dbfile.close()
| 35.166667 | 81 | 0.587678 | 29 | 211 | 4.275862 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.317536 | 211 | 5 | 82 | 42.2 | 0.854167 | 0.241706 | 0 | 0 | 0 | 0 | 0.095541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
315c0645b15ee49c836d27f80d77d8cced02c674 | 110 | py | Python | fun/funuser/apps.py | larryw3i/fun | e753ce6d448f7f6ec3169a4d1fa7e1c7bff70a27 | [
"MIT"
] | 1 | 2022-01-01T11:14:58.000Z | 2022-01-01T11:14:58.000Z | fun/funuser/apps.py | larryw3i/osp | d9526a179876053a6b93e5a110d2de730376f511 | [
"MIT"
] | 4 | 2021-06-12T06:05:44.000Z | 2021-06-13T06:20:00.000Z | fun/funuser/apps.py | larryw3i/osp | d9526a179876053a6b93e5a110d2de730376f511 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
app_name = 'funuser'
class FunuserConfig(AppConfig):
name = app_name
| 13.75 | 33 | 0.754545 | 14 | 110 | 5.785714 | 0.714286 | 0.17284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172727 | 110 | 7 | 34 | 15.714286 | 0.89011 | 0 | 0 | 0 | 0 | 0 | 0.063636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
3169c858588012c2e0a500bcc3868f1a62dc1df7 | 360 | py | Python | tests/exceptions/sync_gateway_client_error_response/test_repr.py | constructpm/pysyncgateway | 653db702b2f872e18fa15ab41920276ffc07aa45 | [
"Apache-2.0"
] | 2 | 2018-04-04T17:13:25.000Z | 2018-07-21T13:30:42.000Z | tests/exceptions/sync_gateway_client_error_response/test_repr.py | constructpm/pysyncgateway | 653db702b2f872e18fa15ab41920276ffc07aa45 | [
"Apache-2.0"
] | 14 | 2018-03-22T11:35:28.000Z | 2021-11-12T17:46:54.000Z | tests/exceptions/sync_gateway_client_error_response/test_repr.py | constructpm/pysyncgateway | 653db702b2f872e18fa15ab41920276ffc07aa45 | [
"Apache-2.0"
] | 1 | 2018-06-15T13:37:00.000Z | 2018-06-15T13:37:00.000Z | from pysyncgateway.exceptions import SyncGatewayClientErrorResponse
def test():
exception = SyncGatewayClientErrorResponse(
400, {
'error': 'Bad Request',
'reason': 'Empty passwords are not allowed ',
}
)
result = repr(exception)
assert result == '<SyncGateway... | 24 | 73 | 0.65 | 28 | 360 | 8.357143 | 0.75 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 0.258333 | 360 | 14 | 74 | 25.714286 | 0.853933 | 0 | 0 | 0 | 0 | 0 | 0.288889 | 0.086111 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
316c5e24ce128b0c5327a59283320ce17993b50b | 203 | py | Python | reaction_filters/base_reaction_filter.py | marco-foscato/Lib-INVENT | fe6a65ab7165abd87b25752a6b4208c8703d11f7 | [
"Apache-2.0"
] | 26 | 2021-04-30T23:21:17.000Z | 2022-03-10T06:33:11.000Z | reaction_filters/base_reaction_filter.py | marco-foscato/Lib-INVENT | fe6a65ab7165abd87b25752a6b4208c8703d11f7 | [
"Apache-2.0"
] | 6 | 2021-10-03T08:35:48.000Z | 2022-03-24T09:57:39.000Z | reaction_filters/base_reaction_filter.py | marco-foscato/Lib-INVENT | fe6a65ab7165abd87b25752a6b4208c8703d11f7 | [
"Apache-2.0"
] | 10 | 2021-04-28T14:08:17.000Z | 2022-03-04T04:18:13.000Z | from abc import abstractmethod, ABC
class BaseReactionFilter(ABC):
@abstractmethod
def evaluate(self, molecule):
raise NotImplementedError("The method 'evaluate' is not implemented!")
| 22.555556 | 78 | 0.738916 | 21 | 203 | 7.142857 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182266 | 203 | 8 | 79 | 25.375 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.20197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
316e66f0d1d8e1ada472ade6522c681545fd6a0b | 611 | py | Python | Driver/ILCDDriver.py | aresfe/RPiMonitor | 796b11ac90ed231c64db3cbfdf660bdc03bc6d08 | [
"MIT"
] | null | null | null | Driver/ILCDDriver.py | aresfe/RPiMonitor | 796b11ac90ed231c64db3cbfdf660bdc03bc6d08 | [
"MIT"
] | null | null | null | Driver/ILCDDriver.py | aresfe/RPiMonitor | 796b11ac90ed231c64db3cbfdf660bdc03bc6d08 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
# interface of LCD drivers
import enum
class DriverType(enum.Enum):
STANDALONE = 0
LCD1602A = 1
class LCDDriver:
def __init__(self):
pass
def init(self):
pass
def show_message(self, msg):
pass
# turn backlight on/off
def... | 15.666667 | 42 | 0.626841 | 74 | 611 | 5.027027 | 0.567568 | 0.080645 | 0.05914 | 0.080645 | 0.08871 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045249 | 0.276596 | 611 | 38 | 43 | 16.078947 | 0.79638 | 0.214403 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.2 | 0.15 | 0 | 0.7 | 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 | 1 | 0 | 0 | 3 |
3171e75f2b71cc40a66be82b6bb65af91088775a | 550 | py | Python | Maybe.py | Russoul/Learn-Python | 1885c360efe53af625dd3ad7b2053b1a3af6d77c | [
"MIT"
] | null | null | null | Maybe.py | Russoul/Learn-Python | 1885c360efe53af625dd3ad7b2053b1a3af6d77c | [
"MIT"
] | null | null | null | Maybe.py | Russoul/Learn-Python | 1885c360efe53af625dd3ad7b2053b1a3af6d77c | [
"MIT"
] | null | null | null | from Lists import *
class Nothing:
def __init__(self):
pass
def __str__(self):
return "Nothing"
def __eq__(self, other):
return type(other) == Nothing
nothing = Nothing()
class Just:
def __init__(self, x):
self.x = x
def __str__(self):
return "Just (" + ... | 16.666667 | 56 | 0.574545 | 74 | 550 | 3.945946 | 0.256757 | 0.136986 | 0.075342 | 0.109589 | 0.19863 | 0.19863 | 0.19863 | 0 | 0 | 0 | 0 | 0 | 0.292727 | 550 | 32 | 57 | 17.1875 | 0.750643 | 0 | 0 | 0.181818 | 0 | 0 | 0.025455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.409091 | false | 0.045455 | 0.045455 | 0.318182 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
317d377d58af18e5cc285f8b68e19ee96e1b1bb9 | 63,784 | py | Python | tests/storage/storagetest.py | DanPopa46/neo-mamba | 096b1141f97721633340394d4a0db978b019133f | [
"MIT"
] | 1 | 2021-06-03T23:02:14.000Z | 2021-06-03T23:02:14.000Z | tests/storage/storagetest.py | DanPopa46/neo-mamba | 096b1141f97721633340394d4a0db978b019133f | [
"MIT"
] | null | null | null | tests/storage/storagetest.py | DanPopa46/neo-mamba | 096b1141f97721633340394d4a0db978b019133f | [
"MIT"
] | 1 | 2021-06-03T23:02:32.000Z | 2021-06-03T23:02:32.000Z | import abc
import unittest
from neo3.core import types
from neo3 import storage, contracts
from neo3.network import payloads
from neo3.contracts import manifest
from contextlib import suppress
from copy import deepcopy
class AbstractBlockStorageTest(abc.ABC, unittest.TestCase):
"""
A helper class to easily te... | 43.214092 | 142 | 0.677599 | 8,123 | 63,784 | 5.143789 | 0.056014 | 0.069789 | 0.01917 | 0.026757 | 0.845751 | 0.81143 | 0.76007 | 0.68827 | 0.633104 | 0.595386 | 0 | 0.022446 | 0.235184 | 63,784 | 1,475 | 143 | 43.24339 | 0.834061 | 0.209912 | 0 | 0.625866 | 0 | 0 | 0.011667 | 0.003708 | 0 | 0 | 0 | 0 | 0.330254 | 1 | 0.06351 | false | 0.001155 | 0.009238 | 0.001155 | 0.078522 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
31802816d93a487093f55b1ec8a8139b7f07e548 | 80 | py | Python | eth_challenge_base/__init__.py | xhyumiracle/eth-challenge-base | 5c9e72beb5995fdcaa0402b7227dc4c8c27df71b | [
"MIT"
] | 42 | 2019-04-18T01:49:02.000Z | 2022-03-04T10:30:36.000Z | eth_challenge_base/__init__.py | xhyumiracle/eth-challenge-base | 5c9e72beb5995fdcaa0402b7227dc4c8c27df71b | [
"MIT"
] | 12 | 2019-04-20T16:55:29.000Z | 2022-03-31T10:44:34.000Z | eth_challenge_base/__init__.py | xhyumiracle/eth-challenge-base | 5c9e72beb5995fdcaa0402b7227dc4c8c27df71b | [
"MIT"
] | 17 | 2019-04-18T01:49:03.000Z | 2021-08-30T02:06:42.000Z | __version_info__ = (0, 9, 1)
__version__ = ".".join(map(str, __version_info__))
| 26.666667 | 50 | 0.7 | 11 | 80 | 3.818182 | 0.727273 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.1125 | 80 | 2 | 51 | 40 | 0.549296 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
318eb701fd7a80078bdab9975a84cf6bdf4b0472 | 125 | py | Python | test/p1/arg_test.py | Fuabioo/Proyecto-1---Predicci-n-Votaciones | d22796ca72e07a5cf4a3ecbeeabffd4cd6ac004f | [
"MIT"
] | null | null | null | test/p1/arg_test.py | Fuabioo/Proyecto-1---Predicci-n-Votaciones | d22796ca72e07a5cf4a3ecbeeabffd4cd6ac004f | [
"MIT"
] | null | null | null | test/p1/arg_test.py | Fuabioo/Proyecto-1---Predicci-n-Votaciones | d22796ca72e07a5cf4a3ecbeeabffd4cd6ac004f | [
"MIT"
] | 1 | 2021-10-20T22:13:04.000Z | 2021-10-20T22:13:04.000Z | from tec.ic.ia.p1 import g08
def main():
"""
Main execution
"""
g08.run_prediction()
if __name__ == '__main__':
main() | 12.5 | 28 | 0.648 | 18 | 125 | 4 | 0.777778 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048544 | 0.176 | 125 | 10 | 29 | 12.5 | 0.650485 | 0.112 | 0 | 0 | 0 | 0 | 0.078431 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
318f51bcae398154713ddef00ab1112e4a5c2a5c | 8,704 | py | Python | src/data/composablepairingheap/__init__.py | edgarklerks/composablepairingheap | b8a9f44e032116d9c0b31aab56d56bb3561cc3d5 | [
"BSD-2-Clause"
] | null | null | null | src/data/composablepairingheap/__init__.py | edgarklerks/composablepairingheap | b8a9f44e032116d9c0b31aab56d56bb3561cc3d5 | [
"BSD-2-Clause"
] | null | null | null | src/data/composablepairingheap/__init__.py | edgarklerks/composablepairingheap | b8a9f44e032116d9c0b31aab56d56bb3561cc3d5 | [
"BSD-2-Clause"
] | null | null | null | from data.optional import Result,NoResult
debug_pq = False
class Coobject(object):
def __init__(self, coobject):
self.coobject = coobject
def insert(self, value, obj):
if value is not None:
self.coobject.insert(value, obj)
return self
def delete(self, value, heapCalle... | 27.457413 | 114 | 0.602826 | 1,046 | 8,704 | 4.983748 | 0.219885 | 0.048341 | 0.012661 | 0.018416 | 0.290236 | 0.228659 | 0.161136 | 0.086131 | 0.060042 | 0.016881 | 0 | 0.001491 | 0.306411 | 8,704 | 316 | 115 | 27.544304 | 0.862018 | 0.217601 | 0 | 0.453039 | 0 | 0 | 0.019653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.259669 | false | 0 | 0.005525 | 0.116022 | 0.524862 | 0.01105 | 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 | 1 | 0 | 0 | 3 |
31a7b9adfb2b1cb541c5be3330ad62620e80190d | 345 | py | Python | lib/datasets/posetrack/poseval/py-motmetrics/motmetrics/__init__.py | wjbKimberly/DetectAndTrack-wjb | e8f065ce389d559307f48b5de3fbb0a417b7faea | [
"Apache-2.0"
] | 1,007 | 2018-05-02T18:32:10.000Z | 2022-03-23T05:50:46.000Z | lib/datasets/posetrack/poseval/py-motmetrics/motmetrics/__init__.py | wjbKimberly/DetectAndTrack-wjb | e8f065ce389d559307f48b5de3fbb0a417b7faea | [
"Apache-2.0"
] | 75 | 2018-05-07T21:18:10.000Z | 2020-06-25T21:05:29.000Z | lib/datasets/posetrack/poseval/py-motmetrics/motmetrics/__init__.py | wjbKimberly/DetectAndTrack-wjb | e8f065ce389d559307f48b5de3fbb0a417b7faea | [
"Apache-2.0"
] | 208 | 2018-05-03T02:14:22.000Z | 2022-03-25T17:15:23.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from .mot import MOTAccumulator # NoQA
import motmetrics.metrics
import motmetrics.distances
import motmetrics.io
import motmetrics.utils # NoQA
# Needs to be last li... | 23 | 39 | 0.828986 | 46 | 345 | 5.717391 | 0.565217 | 0.152091 | 0.243346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010033 | 0.133333 | 345 | 14 | 40 | 24.642857 | 0.869565 | 0.089855 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.9 | 0 | 0.9 | 0.1 | 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 | 1 | 0 | 0 | 3 |
31bbcd9c3e7eb2a97898278ca7463e276601f3ab | 1,204 | py | Python | jade/extensions/demo/autoregression_parameters.py | daniel-thom/jade | 9c0b1d3718d0a85553401c7572380965ff178f99 | [
"BSD-3-Clause"
] | null | null | null | jade/extensions/demo/autoregression_parameters.py | daniel-thom/jade | 9c0b1d3718d0a85553401c7572380965ff178f99 | [
"BSD-3-Clause"
] | null | null | null | jade/extensions/demo/autoregression_parameters.py | daniel-thom/jade | 9c0b1d3718d0a85553401c7572380965ff178f99 | [
"BSD-3-Clause"
] | null | null | null | """
Implement the JobParametersInterface for auto-regression analysis.
"""
from collections import namedtuple
from jade.jobs.job_parameters_interface import JobParametersInterface
class AutoRegressionParameters(JobParametersInterface):
"""
A class used for creating auto-regression job.
"""
parameters... | 24.571429 | 69 | 0.613787 | 121 | 1,204 | 5.950413 | 0.404959 | 0.044444 | 0.038889 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2799 | 1,204 | 48 | 70 | 25.083333 | 0.83045 | 0.230066 | 0 | 0 | 0 | 0 | 0.090036 | 0.031212 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26087 | false | 0 | 0.086957 | 0.217391 | 0.652174 | 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 | 1 | 0 | 0 | 3 |
31cc266a96efcefc5aca299cc552a91cd2457960 | 1,329 | py | Python | mycroft/skills/core.py | OpenVoiceOS/mycroft-core | 6c2fe55147ab0ccc31dfa8dda866bacd1e1266a4 | [
"Apache-2.0"
] | 9 | 2021-05-06T18:04:18.000Z | 2022-02-23T21:59:49.000Z | mycroft/skills/core.py | OpenVoiceOS/mycroft-core | 6c2fe55147ab0ccc31dfa8dda866bacd1e1266a4 | [
"Apache-2.0"
] | 62 | 2021-10-29T21:18:51.000Z | 2022-03-30T07:08:29.000Z | mycroft/skills/core.py | OpenVoiceOS/mycroft-core | 6c2fe55147ab0ccc31dfa8dda866bacd1e1266a4 | [
"Apache-2.0"
] | 4 | 2021-09-11T04:02:10.000Z | 2021-12-18T23:57:19.000Z | # Copyright 2017 Mycroft AI Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writin... | 36.916667 | 74 | 0.777276 | 202 | 1,329 | 5.079208 | 0.524752 | 0.05848 | 0.025341 | 0.031189 | 0.11501 | 0.11501 | 0.11501 | 0.11501 | 0.11501 | 0.11501 | 0 | 0.00724 | 0.168548 | 1,329 | 35 | 75 | 37.971429 | 0.921267 | 0.752445 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.285714 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
31d6fc7b4a1800611bd3793c6f65c7fe093e1ec1 | 241 | py | Python | src/testMultiRootWkspc/parent/child/childFile.py | ChaseKnowlden/vscode-jupyter | 9bdaf87f0b6dcd717c508e9023350499a6093f97 | [
"MIT"
] | 2,461 | 2016-01-21T16:40:43.000Z | 2022-03-31T12:01:55.000Z | src/testMultiRootWkspc/parent/child/childFile.py | ChaseKnowlden/vscode-jupyter | 9bdaf87f0b6dcd717c508e9023350499a6093f97 | [
"MIT"
] | 12,536 | 2019-05-06T21:26:14.000Z | 2022-03-31T23:06:48.000Z | src/testMultiRootWkspc/parent/child/childFile.py | vasili8m/vscode-python | 846eee870e8b7bab38172600836faedb5fb80166 | [
"MIT"
] | 871 | 2019-05-15T13:43:55.000Z | 2022-03-31T03:04:35.000Z | """pylint option block-disable"""
__revision__ = None
class Child2Class(object):
"""block-disable test"""
def __init__(self):
pass
def meth1OfChild(self, arg):
"""this issues a message"""
print (self)
| 17.214286 | 35 | 0.605809 | 26 | 241 | 5.307692 | 0.807692 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011173 | 0.257261 | 241 | 13 | 36 | 18.538462 | 0.759777 | 0.282158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.166667 | 0 | 0 | 0.5 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
31dceeef3b76df675c014e4e73142e0abcf12770 | 793 | py | Python | open-test-data/rfc4475-sip-torture-test/transports.dat.py | bobjects/BobStack | c177b286075044832f44baf9ace201780c8b4320 | [
"Apache-2.0"
] | null | null | null | open-test-data/rfc4475-sip-torture-test/transports.dat.py | bobjects/BobStack | c177b286075044832f44baf9ace201780c8b4320 | [
"Apache-2.0"
] | null | null | null | open-test-data/rfc4475-sip-torture-test/transports.dat.py | bobjects/BobStack | c177b286075044832f44baf9ace201780c8b4320 | [
"Apache-2.0"
] | null | null | null | messageString = (
'OPTIONS sip:user@example.com SIP/2.0\r\n'
'To: sip:user@example.com\r\n'
'From: <sip:caller@example.com>;tag=323\r\n'
'Max-Forwards: 70\r\n'
'Call-ID: transports.kijh4akdnaqjkwendsasfdj\r\n'
'Accept: application/sd... | 46.647059 | 77 | 0.540984 | 114 | 793 | 3.763158 | 0.394737 | 0.065268 | 0.06993 | 0.09324 | 0.11655 | 0.11655 | 0 | 0 | 0 | 0 | 0 | 0.079422 | 0.301387 | 793 | 16 | 78 | 49.5625 | 0.694946 | 0 | 0 | 0 | 0 | 0.3125 | 0.683398 | 0.388674 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9ef6a3aa2407414ed3e302b28fd34493998cf8bc | 528 | py | Python | esmlab/utils/common.py | sudharsana-kjl/esmlab | 17d9788eb7b8c6a0f7cfd4e547b4057b3d25f3c9 | [
"Apache-2.0"
] | null | null | null | esmlab/utils/common.py | sudharsana-kjl/esmlab | 17d9788eb7b8c6a0f7cfd4e547b4057b3d25f3c9 | [
"Apache-2.0"
] | null | null | null | esmlab/utils/common.py | sudharsana-kjl/esmlab | 17d9788eb7b8c6a0f7cfd4e547b4057b3d25f3c9 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import, division, print_function
import xarray as xr
try:
from contextlib import ContextDecorator
except ImportError:
from contextlib2 import ContextDecorator
class esmlab_xr_set_options(ContextDecorator):
""" Enables a context manager to also be used as a decorator"""
... | 22.956522 | 67 | 0.708333 | 66 | 528 | 5.318182 | 0.575758 | 0.042735 | 0.102564 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00241 | 0.214015 | 528 | 22 | 68 | 24 | 0.843373 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.357143 | 0.071429 | 0.785714 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7316139b217b10ed8e907305239d66eb962586c0 | 248 | py | Python | conman/test/fake_python/subprocess/get_quantenna_interfaces.py | DentonGentry/gfiber-platform | 2ba5266103aad0b7b676555eebd3c2061ddb8333 | [
"Apache-2.0"
] | 8 | 2017-09-24T03:11:46.000Z | 2021-08-24T04:29:14.000Z | conman/test/fake_python/subprocess/get_quantenna_interfaces.py | DentonGentry/gfiber-platform | 2ba5266103aad0b7b676555eebd3c2061ddb8333 | [
"Apache-2.0"
] | null | null | null | conman/test/fake_python/subprocess/get_quantenna_interfaces.py | DentonGentry/gfiber-platform | 2ba5266103aad0b7b676555eebd3c2061ddb8333 | [
"Apache-2.0"
] | 1 | 2017-10-05T23:04:10.000Z | 2017-10-05T23:04:10.000Z | #!/usr/bin/python -S
"""Fake get-quantenna-interfaces implementation."""
_INTERFACES = []
def call(*unused_args, **unused_kwargs):
return 0, '\n'.join(_INTERFACES)
def mock(interfaces):
global _INTERFACES
_INTERFACES = list(interfaces)
| 16.533333 | 51 | 0.71371 | 29 | 248 | 5.896552 | 0.724138 | 0.152047 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.133065 | 248 | 14 | 52 | 17.714286 | 0.790698 | 0.262097 | 0 | 0 | 0 | 0 | 0.011299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
731992645fa163162be964f0d190df0c92a31305 | 76 | py | Python | testsuite/pointcloud-fold/run.py | LumaPictures/OpenShadingLanguage | e5764ed8c3d7977632d74e373b6fbf28cd372621 | [
"BSD-3-Clause"
] | 4 | 2016-07-13T16:01:18.000Z | 2021-01-22T21:13:46.000Z | testsuite/pointcloud-fold/run.py | johnhaddon/OpenShadingLanguage | efb4a9a622080f25ce3c83b763036bab47689949 | [
"BSD-3-Clause"
] | null | null | null | testsuite/pointcloud-fold/run.py | johnhaddon/OpenShadingLanguage | efb4a9a622080f25ce3c83b763036bab47689949 | [
"BSD-3-Clause"
] | 2 | 2017-04-12T06:34:19.000Z | 2017-10-20T10:24:39.000Z | #!/usr/bin/env python
command += testshade("-param radius 1000.0 rdcloud")
| 19 | 52 | 0.710526 | 11 | 76 | 4.909091 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074627 | 0.118421 | 76 | 3 | 53 | 25.333333 | 0.731343 | 0.263158 | 0 | 0 | 0 | 0 | 0.509091 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
731d61cc976314ec7fbad3103978bf39509d23f3 | 185 | py | Python | src/util.py | FriendlyAI/rizumu | 3b3d8977aa2a9e60c2f0f5ce6b0c16b6d260f2a2 | [
"MIT"
] | 1 | 2020-03-09T06:38:31.000Z | 2020-03-09T06:38:31.000Z | src/util.py | FriendlyAI/rizumu | 3b3d8977aa2a9e60c2f0f5ce6b0c16b6d260f2a2 | [
"MIT"
] | null | null | null | src/util.py | FriendlyAI/rizumu | 3b3d8977aa2a9e60c2f0f5ce6b0c16b6d260f2a2 | [
"MIT"
] | null | null | null | ALL_LAYERS = ('A', 'B', 'C', 'D', 'E', 'F')
def seconds_to_readable_time(seconds):
seconds = seconds if seconds > 0 else 0
return f'{int(seconds // 60)}:{seconds % 60:04.1f}'
| 26.428571 | 55 | 0.6 | 30 | 185 | 3.566667 | 0.7 | 0.261682 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06 | 0.189189 | 185 | 6 | 56 | 30.833333 | 0.653333 | 0 | 0 | 0 | 0 | 0 | 0.254054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7326b6627e711ab7893fe80f07540817b3786dd8 | 6,682 | py | Python | gpytorch/lazy/diag_lazy_tensor.py | Sciguymjm/gpytorch | 9ea45c1221e21652fcd6229e87d217a716eea983 | [
"MIT"
] | null | null | null | gpytorch/lazy/diag_lazy_tensor.py | Sciguymjm/gpytorch | 9ea45c1221e21652fcd6229e87d217a716eea983 | [
"MIT"
] | null | null | null | gpytorch/lazy/diag_lazy_tensor.py | Sciguymjm/gpytorch | 9ea45c1221e21652fcd6229e87d217a716eea983 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from itertools import product
import torch
from .lazy_tensor import LazyTensor
from .root_lazy_tensor import RootLazyTensor
from .non_lazy_tensor import NonLazyTensor
class DiagLazyTensor(LazyTensor):
def __init__(self, diag):
"""
Diagonal lazy tensor. Supports arbitrary ba... | 37.751412 | 115 | 0.634241 | 852 | 6,682 | 4.746479 | 0.225352 | 0.063304 | 0.059842 | 0.069238 | 0.25 | 0.163947 | 0.096934 | 0.096934 | 0.096934 | 0.057864 | 0 | 0.004737 | 0.273421 | 6,682 | 176 | 116 | 37.965909 | 0.828218 | 0.208171 | 0 | 0.107143 | 0 | 0 | 0.02341 | 0 | 0 | 0 | 0 | 0.005682 | 0 | 1 | 0.214286 | false | 0 | 0.053571 | 0.125 | 0.526786 | 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 | 1 | 0 | 0 | 3 |
732cc8d86cf612da18ee79ab7672d6eb1a8d1228 | 92 | py | Python | django_ckeditor_5/forms.py | ycy-tw/django-ckeditor-5 | 7d5a1fdf5b250b635570d97522844f4f5cd7676d | [
"BSD-3-Clause"
] | 28 | 2019-11-20T00:40:18.000Z | 2022-03-22T17:03:45.000Z | django_ckeditor_5/forms.py | ycy-tw/django-ckeditor-5 | 7d5a1fdf5b250b635570d97522844f4f5cd7676d | [
"BSD-3-Clause"
] | 47 | 2020-04-01T20:04:04.000Z | 2022-03-22T13:48:30.000Z | django_ckeditor_5/forms.py | ycy-tw/django-ckeditor-5 | 7d5a1fdf5b250b635570d97522844f4f5cd7676d | [
"BSD-3-Clause"
] | 22 | 2019-12-20T04:24:25.000Z | 2022-02-18T03:42:49.000Z | from django import forms
class UploadFileForm(forms.Form):
upload = forms.FileField()
| 15.333333 | 33 | 0.75 | 11 | 92 | 6.272727 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163043 | 92 | 5 | 34 | 18.4 | 0.896104 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
732e7b0e3f04ca99a57157bc6415f89a63b4b788 | 735 | py | Python | applications/hw5_1/controllers/default.py | ayeh9/ecommerce_site | 0010dbc2f0d378c449772eb3ed2dfe0cce8b932e | [
"BSD-3-Clause"
] | null | null | null | applications/hw5_1/controllers/default.py | ayeh9/ecommerce_site | 0010dbc2f0d378c449772eb3ed2dfe0cce8b932e | [
"BSD-3-Clause"
] | null | null | null | applications/hw5_1/controllers/default.py | ayeh9/ecommerce_site | 0010dbc2f0d378c449772eb3ed2dfe0cce8b932e | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
# -------------------------------------------------------------------------
# This is a sample controller
# - index is the default action of any application
# - user is required for authentication and authorization
... | 26.25 | 79 | 0.559184 | 81 | 735 | 5.074074 | 0.641975 | 0.072993 | 0.068127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001618 | 0.159184 | 735 | 27 | 80 | 27.222222 | 0.66343 | 0.614966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.416667 | false | 0 | 0 | 0.333333 | 0.833333 | 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 | 1 | 0 | 0 | 3 |
733a7869d5d883196b74c6d400777befdf7a8f35 | 348 | py | Python | src/cache.py | stephencz/imgis-final-project | 884498e9df82b7af5b6a913e643af9cc3a5f7911 | [
"MIT"
] | null | null | null | src/cache.py | stephencz/imgis-final-project | 884498e9df82b7af5b6a913e643af9cc3a5f7911 | [
"MIT"
] | null | null | null | src/cache.py | stephencz/imgis-final-project | 884498e9df82b7af5b6a913e643af9cc3a5f7911 | [
"MIT"
] | null | null | null | from pathlib import Path
"""
Checks if a cache exists for the shoprite data.
@return True if the cache exists. Otherwise false.
"""
def check_for_cache(cache_path):
cache = Path(cache_path)
if cache.is_file():
return True
return False
"""
Creates a local copy of the requests file.
"""
def cache_data_source... | 19.333333 | 50 | 0.727011 | 55 | 348 | 4.454545 | 0.527273 | 0.146939 | 0.114286 | 0.146939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183908 | 348 | 18 | 51 | 19.333333 | 0.862676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.125 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
b402b8fce597a6e8119641e1d00d2ca24b535963 | 15,492 | py | Python | tests/unit/SimpleBlockSequences/PackageBody.py | Xiretza/pyVHDLParser | 23ddd633b45f68967fbfa860e1d04fd6d0aa4659 | [
"Apache-2.0"
] | 55 | 2016-09-21T15:11:21.000Z | 2022-03-08T11:14:38.000Z | tests/unit/SimpleBlockSequences/PackageBody.py | Xiretza/pyVHDLParser | 23ddd633b45f68967fbfa860e1d04fd6d0aa4659 | [
"Apache-2.0"
] | 27 | 2017-04-01T13:47:16.000Z | 2022-01-17T14:37:16.000Z | tests/unit/SimpleBlockSequences/PackageBody.py | Xiretza/pyVHDLParser | 23ddd633b45f68967fbfa860e1d04fd6d0aa4659 | [
"Apache-2.0"
] | 15 | 2016-10-18T22:25:24.000Z | 2021-12-01T18:04:33.000Z | from textwrap import dedent
from unittest import TestCase
from pyVHDLParser.Token import WordToken, StartOfDocumentToken, SpaceToken, CharacterToken, EndOfDocumentToken, LinebreakToken, IndentationToken
from pyVHDLParser.Blocks import StartOfDocumentBl... | 36.7981 | 203 | 0.519171 | 1,001 | 15,492 | 8 | 0.0999 | 0.142358 | 0.058442 | 0.034965 | 0.79046 | 0.76024 | 0.687438 | 0.687188 | 0.679321 | 0.663836 | 0 | 0.000098 | 0.340821 | 15,492 | 420 | 204 | 36.885714 | 0.784078 | 0.042667 | 0 | 0.714653 | 0 | 0 | 0.09454 | 0.003272 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002571 | false | 0 | 0.020566 | 0 | 0.136247 | 0.005141 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b411366ee400d9dd5f769bade5830b5643945638 | 72 | py | Python | 0x01-python-if_else_loops_functions/10-add.py | ricardo1470/holbertonschool-higher_level_programming | aab73c8efee665b0215958ee7b338871f13634bc | [
"CNRI-Python"
] | null | null | null | 0x01-python-if_else_loops_functions/10-add.py | ricardo1470/holbertonschool-higher_level_programming | aab73c8efee665b0215958ee7b338871f13634bc | [
"CNRI-Python"
] | null | null | null | 0x01-python-if_else_loops_functions/10-add.py | ricardo1470/holbertonschool-higher_level_programming | aab73c8efee665b0215958ee7b338871f13634bc | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/python3
def add(a, b):
i = a
j = b
return(i + j)
| 12 | 18 | 0.458333 | 14 | 72 | 2.357143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 0.347222 | 72 | 5 | 19 | 14.4 | 0.680851 | 0.236111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b4464569efdba2ef2464a086e4571e50f261c88f | 521 | py | Python | Coursera/Google_IT_Automation_with_Python/01_Crash_Course_on_Python/Week_1/wk1_mod4_ex1.py | ssolomon2020/Self_Study_Python_Training | b253093b185f4a0d98cb8565f5fcf2b0e4a99556 | [
"MIT"
] | null | null | null | Coursera/Google_IT_Automation_with_Python/01_Crash_Course_on_Python/Week_1/wk1_mod4_ex1.py | ssolomon2020/Self_Study_Python_Training | b253093b185f4a0d98cb8565f5fcf2b0e4a99556 | [
"MIT"
] | null | null | null | Coursera/Google_IT_Automation_with_Python/01_Crash_Course_on_Python/Week_1/wk1_mod4_ex1.py | ssolomon2020/Self_Study_Python_Training | b253093b185f4a0d98cb8565f5fcf2b0e4a99556 | [
"MIT"
] | null | null | null | # Specialization: Google IT Automation with Python
# Course 01: Crash Course with Python
# Week 1 Module Part 4 Exercise 01
# Student: Shawn Solomon
# Learning Platform: Coursera.org
# Now that you know what’s going on with this piece of code, try making Python output a different string.
# Write a Python scrip... | 47.363636 | 107 | 0.752399 | 83 | 521 | 4.722892 | 0.710843 | 0.05102 | 0.066327 | 0.076531 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014218 | 0.190019 | 521 | 11 | 108 | 47.363636 | 0.914692 | 0.877159 | 0 | 0 | 0 | 0 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 3 |
b448dad06c7404f2ef2cc8f42f76b6c34b604d62 | 2,902 | py | Python | edm_web1/script/rbl2.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | edm_web1/script/rbl2.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | 18 | 2020-06-05T18:17:40.000Z | 2022-03-11T23:25:21.000Z | edm_web1/script/rbl2.py | zhouli121018/nodejsgm | 0ccbc8acf61badc812f684dd39253d55c99f08eb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
#
'''
RBL 黑名单查询
'''
from gevent import monkey
monkey.patch_all()
import gevent
import gevent.pool
import json
import time
import redis
import traceback
from newlib.log import log
from newlib._signal import init_gevent_signal
from newlib import rblsearch2
redis_db = redis.Redis( host="127.0.0.1... | 27.638095 | 96 | 0.578222 | 350 | 2,902 | 4.702857 | 0.277143 | 0.200486 | 0.309842 | 0.405225 | 0.309842 | 0.309842 | 0.309842 | 0.309842 | 0.309842 | 0.309842 | 0 | 0.01084 | 0.237078 | 2,902 | 104 | 97 | 27.903846 | 0.732611 | 0.013094 | 0 | 0.344828 | 0 | 0 | 0.09595 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045977 | false | 0 | 0.114943 | 0 | 0.16092 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b456bc94669fa59c4aca8337ba662bd3e5bf9d03 | 350 | py | Python | src/test_max_consecutive_ones_ii.py | manoldonev/algo-challenges | 0ecbc79fdc62d6f4712405a55bbab3e49d5139a6 | [
"MIT"
] | null | null | null | src/test_max_consecutive_ones_ii.py | manoldonev/algo-challenges | 0ecbc79fdc62d6f4712405a55bbab3e49d5139a6 | [
"MIT"
] | null | null | null | src/test_max_consecutive_ones_ii.py | manoldonev/algo-challenges | 0ecbc79fdc62d6f4712405a55bbab3e49d5139a6 | [
"MIT"
] | null | null | null |
import unittest
from max_consecutive_ones_ii import find_max_consecutive_ones
class MaxConsecutiveOnesIiTests(unittest.TestCase):
"""Tests for max consecutive ones ii challenge."""
def test_case_1(self):
self.assertEqual(find_max_consecutive_ones([1, 0, 1, 1, 0]), 4)
if __name__ == "__main__":
... | 20.588235 | 71 | 0.74 | 47 | 350 | 5.106383 | 0.574468 | 0.233333 | 0.3 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 0.16 | 350 | 16 | 72 | 21.875 | 0.789116 | 0.125714 | 0 | 0 | 0 | 0 | 0.026756 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b459bf62d7e0ec48a19da5b048744615a65ee891 | 319 | py | Python | condition/quadratc roots.py | PraghadeshManivannan/Python | 7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa | [
"MIT"
] | null | null | null | condition/quadratc roots.py | PraghadeshManivannan/Python | 7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa | [
"MIT"
] | null | null | null | condition/quadratc roots.py | PraghadeshManivannan/Python | 7a42269c5f8cfd9178f1ed39ffc2afea1dd6c5aa | [
"MIT"
] | null | null | null | print("a(x**2) + b(x) + c = 0")
print("Enter the values of a,b,c")
a = int(input("Enter the value of a:"))
b = int(input("Enter the value of b:"))
c = int(input("Enter the value of c:"))
d = b**2 - 4*(a*c)
x = (-b - (d**0.5))/(2*a)
y = (-b + (d**0.5))/(2*a)
print("The roots of the equation are :",x,"and", y)
| 31.9 | 52 | 0.517241 | 70 | 319 | 2.357143 | 0.314286 | 0.193939 | 0.236364 | 0.290909 | 0.490909 | 0.490909 | 0 | 0 | 0 | 0 | 0 | 0.03937 | 0.203762 | 319 | 9 | 53 | 35.444444 | 0.610236 | 0 | 0 | 0 | 0 | 0 | 0.464516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b460563e971dc5c5227a767bc3e7214f3583bdcd | 218 | py | Python | test/test_common_function.py | QthCN/kage | 10c20dcf5872efc73d09c6fabf3c2aa1cb68a967 | [
"Apache-2.0"
] | null | null | null | test/test_common_function.py | QthCN/kage | 10c20dcf5872efc73d09c6fabf3c2aa1cb68a967 | [
"Apache-2.0"
] | null | null | null | test/test_common_function.py | QthCN/kage | 10c20dcf5872efc73d09c6fabf3c2aa1cb68a967 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import kage
from test.base import BaseTestCase
class CommonFunctionTest(BaseTestCase):
def test_show_version(self):
self.assertEqual(type(kage.ext_version()), type('str type'))
| 18.166667 | 68 | 0.706422 | 27 | 218 | 5.592593 | 0.703704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005464 | 0.16055 | 218 | 11 | 69 | 19.818182 | 0.819672 | 0.09633 | 0 | 0 | 0 | 0 | 0.041026 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
b46a909789f6dd73097f26086906c8826d5191c7 | 114 | py | Python | web_scraping/ec2files/ec2file7.py | nikibhatt/Groa | fc2d4ae87cb825e6d54a0831c72be16541eebe61 | [
"MIT"
] | 1 | 2020-04-08T19:44:30.000Z | 2020-04-08T19:44:30.000Z | web_scraping/ec2files/ec2file7.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | null | null | null | web_scraping/ec2files/ec2file7.py | cmgospod/Groa | 31b3624bfe61e772b55f8175b4e95d63c9e67966 | [
"MIT"
] | 1 | 2020-09-12T07:07:41.000Z | 2020-09-12T07:07:41.000Z | from scraper import *
s = Scraper(start=12474, end=14255, max_iter=30, scraper_instance=7)
s.scrape_letterboxd() | 38 | 69 | 0.77193 | 18 | 114 | 4.722222 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127451 | 0.105263 | 114 | 3 | 70 | 38 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 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 | 3 |
b46f518321a9d4fc9f7172f85be5a33b8bd0612e | 2,638 | py | Python | faker/providers/ssn/en_PH/__init__.py | mgorny/faker | b1176e01bf4d7f1aef408a4bb96a9e46188cc113 | [
"MIT"
] | 12,077 | 2015-01-01T18:30:07.000Z | 2022-03-31T23:22:01.000Z | faker/providers/ssn/en_PH/__init__.py | mgorny/faker | b1176e01bf4d7f1aef408a4bb96a9e46188cc113 | [
"MIT"
] | 1,306 | 2015-01-03T05:18:55.000Z | 2022-03-31T02:43:04.000Z | faker/providers/ssn/en_PH/__init__.py | mgorny/faker | b1176e01bf4d7f1aef408a4bb96a9e46188cc113 | [
"MIT"
] | 1,855 | 2015-01-08T14:20:10.000Z | 2022-03-25T17:23:32.000Z | from ... import BaseProvider
class Provider(BaseProvider):
"""
Provider for Philippine IDs that are related to social security
There is no unified social security program in the Philippines. Instead, the Philippines has a messy collection of
social programs and IDs that, when put together, serves as ... | 48.851852 | 120 | 0.694086 | 324 | 2,638 | 5.58642 | 0.472222 | 0.033149 | 0.035912 | 0.046961 | 0.127072 | 0.127072 | 0.127072 | 0.127072 | 0.127072 | 0 | 0 | 0.002367 | 0.199393 | 2,638 | 53 | 121 | 49.773585 | 0.85464 | 0.652388 | 0 | 0 | 0 | 0 | 0.078408 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.315789 | false | 0 | 0.052632 | 0.315789 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
b476b4f495338dae42970b643ceb076ee9394de6 | 376 | py | Python | karp/domain/services/entry_lifecycle.py | spraakbanken/karp-backend-v6-tmp | e5b78157bd999df18c188973ae2a337015b6f35d | [
"MIT"
] | 1 | 2021-12-08T15:33:42.000Z | 2021-12-08T15:33:42.000Z | karp/domain/services/entry_lifecycle.py | spraakbanken/karp-backend-v6-tmp | e5b78157bd999df18c188973ae2a337015b6f35d | [
"MIT"
] | null | null | null | karp/domain/services/entry_lifecycle.py | spraakbanken/karp-backend-v6-tmp | e5b78157bd999df18c188973ae2a337015b6f35d | [
"MIT"
] | null | null | null | from typing import Dict, Optional
from karp.domain.models.entry import Entry, create_entry
from karp.domain.models.resource import Resource
def create_entry_from_dict(
resource: Resource, raw: Dict, user: str = None, message: Optional[str] = None
) -> Entry:
return create_entry(
resource.id_getter()(... | 28.923077 | 82 | 0.742021 | 52 | 376 | 5.211538 | 0.442308 | 0.121771 | 0.103321 | 0.147601 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162234 | 376 | 12 | 83 | 31.333333 | 0.860317 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 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 | 1 | 1 | 0 | 0 | 3 |
b4787d19fb83a3421e3d4a3062dea6c8a6a21265 | 74 | py | Python | src/dependency_injector/annotations.py | livioribeiro/dependency-injector | ab76415233d7e6f82ff13479d10c2aa0f100c173 | [
"Unlicense"
] | 1 | 2021-08-13T20:23:56.000Z | 2021-08-13T20:23:56.000Z | src/dependency_injector/annotations.py | livioribeiro/dependency-injector | ab76415233d7e6f82ff13479d10c2aa0f100c173 | [
"Unlicense"
] | null | null | null | src/dependency_injector/annotations.py | livioribeiro/dependency-injector | ab76415233d7e6f82ff13479d10c2aa0f100c173 | [
"Unlicense"
] | null | null | null | from dataclasses import dataclass
@dataclass
class Name:
value: str
| 10.571429 | 33 | 0.756757 | 9 | 74 | 6.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202703 | 74 | 6 | 34 | 12.333333 | 0.949153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
b478c2fdf3bd6f089fd37fecade4903f18a72e01 | 91 | py | Python | operator_api/leveller/apps.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 1 | 2021-08-04T06:09:46.000Z | 2021-08-04T06:09:46.000Z | operator_api/leveller/apps.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 8 | 2020-11-01T19:48:21.000Z | 2022-02-10T14:12:25.000Z | operator_api/leveller/apps.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 3 | 2020-11-01T15:59:56.000Z | 2021-09-16T07:18:18.000Z | from django.apps import AppConfig
class LevellerConfig(AppConfig):
name = 'leveller'
| 15.166667 | 33 | 0.758242 | 10 | 91 | 6.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164835 | 91 | 5 | 34 | 18.2 | 0.907895 | 0 | 0 | 0 | 0 | 0 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
b48913eb4e33c8bb17138720eeb7d6e86cb80f65 | 113 | py | Python | examples/ProjectExample/myProject.py | kertox662/PythonPackageInstaller | 97c8e0a1aa10336f25017bd694c23587329f9444 | [
"MIT"
] | 2 | 2020-01-21T23:12:09.000Z | 2020-01-23T13:53:18.000Z | examples/ProjectExample/myProject.py | kertox662/PythonPackageInstaller | 97c8e0a1aa10336f25017bd694c23587329f9444 | [
"MIT"
] | 2 | 2020-04-30T20:39:56.000Z | 2020-06-21T03:30:45.000Z | examples/ProjectExample/myProject.py | kertox662/PythonPackageInstaller | 97c8e0a1aa10336f25017bd694c23587329f9444 | [
"MIT"
] | 1 | 2020-04-28T00:08:18.000Z | 2020-04-28T00:08:18.000Z | from pipinstaller import install
install()
from PIL import Image
img = Image.open("testImage.png")
img.show()
| 12.555556 | 33 | 0.752212 | 16 | 113 | 5.3125 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141593 | 113 | 8 | 34 | 14.125 | 0.876289 | 0 | 0 | 0 | 0 | 0 | 0.115044 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
81f7a78fca6f13a4f26244e751f7c8bcda5b7cfd | 67 | py | Python | apps/images/controllers.py | FrozRt/marmon_back | ec58b6d8fcc81d13a841efb84bde5914fd316787 | [
"MIT"
] | null | null | null | apps/images/controllers.py | FrozRt/marmon_back | ec58b6d8fcc81d13a841efb84bde5914fd316787 | [
"MIT"
] | 45 | 2021-03-12T02:20:24.000Z | 2021-07-26T02:46:11.000Z | apps/images/controllers.py | FrozRt/marmon_back | ec58b6d8fcc81d13a841efb84bde5914fd316787 | [
"MIT"
] | null | null | null | from fastapi import APIRouter, HTTPException
images = APIRouter()
| 16.75 | 44 | 0.80597 | 7 | 67 | 7.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134328 | 67 | 3 | 45 | 22.333333 | 0.931034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 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 | 3 |
c302efb0aae8f8e01095b2a32f40c2c4b97ff887 | 23 | py | Python | SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/import/relimp/relimp/__init__.py | alexsigaras/SWIM | 1a35df8acb26bdcb307a1b8f60e9feba68ed1715 | [
"MIT"
] | 47 | 2020-03-08T08:43:28.000Z | 2022-03-18T18:51:55.000Z | SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/import/relimp/relimp/__init__.py | alexsigaras/SWIM | 1a35df8acb26bdcb307a1b8f60e9feba68ed1715 | [
"MIT"
] | null | null | null | SWIM-Executables/Windows/pyinstaller-2.0 for windows/buildtests/import/relimp/relimp/__init__.py | alexsigaras/SWIM | 1a35df8acb26bdcb307a1b8f60e9feba68ed1715 | [
"MIT"
] | 16 | 2020-03-08T08:43:30.000Z | 2022-01-10T22:05:57.000Z | name = 'relimp.relimp'
| 11.5 | 22 | 0.695652 | 3 | 23 | 5.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c311758d656fd61a2e4a1b9bb0189d11c8bcedcc | 10,785 | py | Python | client/sdk/python/signup/signup_pb2_grpc.py | gofortwos/micro | fecc568b992c05dc3d97e8a1e807acabd281654e | [
"Linux-OpenIB"
] | 2 | 2020-04-16T07:58:49.000Z | 2021-07-16T06:57:07.000Z | client/sdk/python/signup/signup_pb2_grpc.py | gofortwos/micro | fecc568b992c05dc3d97e8a1e807acabd281654e | [
"Linux-OpenIB"
] | 2 | 2021-09-28T05:35:34.000Z | 2022-02-26T10:06:33.000Z | client/sdk/python/signup/signup_pb2_grpc.py | gofortwos/micro | fecc568b992c05dc3d97e8a1e807acabd281654e | [
"Linux-OpenIB"
] | 2 | 2020-07-24T06:33:15.000Z | 2020-09-14T04:01:46.000Z | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from signup import signup_pb2 as signup_dot_signup__pb2
class SignupStub(object):
"""Missing associated documentation comment in .proto file."""
def _... | 45.893617 | 118 | 0.671674 | 963 | 10,785 | 7.223261 | 0.124611 | 0.049166 | 0.079787 | 0.095745 | 0.833669 | 0.793991 | 0.582662 | 0.462766 | 0.417913 | 0.401524 | 0 | 0.004728 | 0.254798 | 10,785 | 234 | 119 | 46.089744 | 0.860769 | 0.067038 | 0 | 0.5 | 1 | 0 | 0.093186 | 0.059619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072917 | false | 0 | 0.010417 | 0.03125 | 0.130208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 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 | 3 |
c312f02613d443cbbbcad4ba66ea26ce1df632ab | 387 | py | Python | src/config/config_types/base_type.py | colabois/PDBB | e71ffd0b1497bbddb365b3e7db9de8a14f7912a1 | [
"MIT"
] | 1 | 2021-05-13T20:33:14.000Z | 2021-05-13T20:33:14.000Z | src/config/config_types/base_type.py | colabois/PDBB | e71ffd0b1497bbddb365b3e7db9de8a14f7912a1 | [
"MIT"
] | null | null | null | src/config/config_types/base_type.py | colabois/PDBB | e71ffd0b1497bbddb365b3e7db9de8a14f7912a1 | [
"MIT"
] | null | null | null | class BaseType:
def check_value(self, value):
"""Check if value is good"""
pass
def set(self, value):
"""Check and set value"""
pass
def get(self):
"""Get value"""
pass
def to_save(self):
"""Build a serializable data to save"""
pass
... | 18.428571 | 47 | 0.501292 | 47 | 387 | 4.085106 | 0.468085 | 0.145833 | 0.145833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.372093 | 387 | 20 | 48 | 19.35 | 0.790123 | 0.263566 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0.454545 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
c31835c4f744bbab95baa483e2bcec9db340d098 | 4,711 | py | Python | cogs/qanda.py | Ashwinshankar98/ClassMateBot | 99441c02107b649aedd4b57f34be12823d01ea74 | [
"MIT"
] | null | null | null | cogs/qanda.py | Ashwinshankar98/ClassMateBot | 99441c02107b649aedd4b57f34be12823d01ea74 | [
"MIT"
] | 64 | 2021-11-25T22:13:19.000Z | 2021-12-05T00:25:05.000Z | cogs/qanda.py | Ashwinshankar98/ClassMateBot | 99441c02107b649aedd4b57f34be12823d01ea74 | [
"MIT"
] | 1 | 2022-02-02T06:32:27.000Z | 2022-02-02T06:32:27.000Z | from discord import NotFound
from discord.ext import commands
import json
class QuestionsAnswers(commands.Cog):
''' Class containing needed question/answer information and identification '''
def __init__(self, bot):
self.bot = bot
with open('./data/qanda/qandastorage.json', 'r', encoding='utf-... | 36.238462 | 113 | 0.518998 | 544 | 4,711 | 4.426471 | 0.174632 | 0.07309 | 0.049834 | 0.069767 | 0.737542 | 0.722591 | 0.706811 | 0.69809 | 0.69809 | 0.69809 | 0 | 0.003594 | 0.350244 | 4,711 | 129 | 114 | 36.51938 | 0.783077 | 0.050096 | 0 | 0.688172 | 0 | 0 | 0.156215 | 0.055015 | 0.021505 | 0 | 0 | 0 | 0 | 1 | 0.021505 | false | 0 | 0.032258 | 0 | 0.086022 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c320c78ee17a948c255ca1795f5963ce6036576c | 50 | py | Python | src/python2/sdp/plasma/analytic/__init__.py | LeiShi/Synthetic-Diagnostics-Platform | 870120d3fd14b2a3c89c6e6e85625d1e9109a2de | [
"BSD-3-Clause"
] | 5 | 2019-08-16T22:08:19.000Z | 2021-02-24T02:47:05.000Z | src/python2/sdp/plasma/analytic/__init__.py | justthepython/Synthetic-Diagnostics-Platform | 5f1cb5c29d182490acbd4f3c167f0e09ec211236 | [
"BSD-3-Clause"
] | 1 | 2016-05-11T12:58:00.000Z | 2016-05-11T17:18:36.000Z | src/python2/sdp/plasma/analytic/__init__.py | justthepython/Synthetic-Diagnostics-Platform | 5f1cb5c29d182490acbd4f3c167f0e09ec211236 | [
"BSD-3-Clause"
] | 5 | 2018-04-29T12:35:59.000Z | 2020-01-10T03:38:30.000Z | __all__ = ['testparameter']
import testparameter
| 12.5 | 27 | 0.78 | 4 | 50 | 8.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 50 | 3 | 28 | 16.666667 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c3307de1c1cfed7426f70cf9d93f44f59a6e5311 | 506 | py | Python | day_6.py | Tigge/advent-of-code-2016 | 3f716e13dae659d422aa7d7a3d71518852edb1c6 | [
"MIT"
] | 1 | 2016-12-02T09:42:51.000Z | 2016-12-02T09:42:51.000Z | day_6.py | Tigge/advent-of-code-2016 | 3f716e13dae659d422aa7d7a3d71518852edb1c6 | [
"MIT"
] | null | null | null | day_6.py | Tigge/advent-of-code-2016 | 3f716e13dae659d422aa7d7a3d71518852edb1c6 | [
"MIT"
] | null | null | null | class Problem:
def __init__(self, inp):
self.data = [{}, {}, {}, {}, {}, {}, {}, {}]
for line in inp.read().strip().split("\n"):
for i, char in enumerate(line):
self.data[i][char] = self.data[i].get(char, 0) + 1
def step1(self):
return ''.join(map(lambda m: s... | 38.923077 | 107 | 0.517787 | 75 | 506 | 3.44 | 0.44 | 0.155039 | 0.069767 | 0.131783 | 0.372093 | 0.372093 | 0.372093 | 0.372093 | 0.372093 | 0.372093 | 0 | 0.026247 | 0.247036 | 506 | 12 | 108 | 42.166667 | 0.650919 | 0 | 0 | 0 | 0 | 0 | 0.003953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c333e21bfaa02935a8666a5113d47be9a093fd2f | 121 | py | Python | coding/learn_celery/__init__.py | yatao91/learning_road | e88dc43de98e35922bfc71c222ec71766851e618 | [
"MIT"
] | 3 | 2021-05-25T16:58:52.000Z | 2022-02-05T09:37:17.000Z | coding/learn_celery/__init__.py | yataosu/learning_road | e88dc43de98e35922bfc71c222ec71766851e618 | [
"MIT"
] | null | null | null | coding/learn_celery/__init__.py | yataosu/learning_road | e88dc43de98e35922bfc71c222ec71766851e618 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from celery import Celery
app = Celery("test")
app.config_from_object('learn_celery.config')
| 13.444444 | 45 | 0.694215 | 17 | 121 | 4.764706 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.140496 | 121 | 8 | 46 | 15.125 | 0.769231 | 0.173554 | 0 | 0 | 0 | 0 | 0.234694 | 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 | 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 | 3 |
c34dea80964af18ff4d41d03495637c90210cfa1 | 409 | py | Python | src/gui/tabs/base_tab.py | omyllymaki/account-analyzer | ddcc8400289336e9f9785bba37399af4340185f4 | [
"MIT"
] | 3 | 2021-05-23T02:19:47.000Z | 2022-02-07T00:01:48.000Z | src/gui/tabs/base_tab.py | omyllymaki/account-analyzer | ddcc8400289336e9f9785bba37399af4340185f4 | [
"MIT"
] | 2 | 2022-01-13T03:45:40.000Z | 2022-03-12T00:57:26.000Z | src/gui/tabs/base_tab.py | omyllymaki/bank-transaction-analyzer | ddcc8400289336e9f9785bba37399af4340185f4 | [
"MIT"
] | 1 | 2021-09-23T17:49:41.000Z | 2021-09-23T17:49:41.000Z | import pandas as pd
from PyQt5.QtWidgets import QTabWidget
class BaseTab(QTabWidget):
def __init__(self):
super().__init__()
self._set_connections()
self._set_layout()
def handle_data(self, data: pd.DataFrame):
raise NotImplementedError
def _set_layout(self):
rais... | 21.526316 | 46 | 0.687042 | 44 | 409 | 6 | 0.5 | 0.272727 | 0.136364 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003215 | 0.239609 | 409 | 18 | 47 | 22.722222 | 0.845659 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.153846 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c375b685875119dc27d8b53cb3e37253f22fc262 | 682 | py | Python | engapp/migrations/0008_auto_20200920_0957.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | 1 | 2020-09-19T21:56:40.000Z | 2020-09-19T21:56:40.000Z | engapp/migrations/0008_auto_20200920_0957.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | null | null | null | engapp/migrations/0008_auto_20200920_0957.py | leonolan2020/phoenix | b5956a7003e548f01255cbd5d0d76cfd0ac77a81 | [
"MIT"
] | 5 | 2020-09-18T18:53:03.000Z | 2020-10-21T14:42:00.000Z | # Generated by Django 3.1 on 2020-09-20 05:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('engapp', '0007_auto_20200920_0550'),
]
operations = [
migrations.RemoveField(
model_name='contactmessage',
name='fname... | 24.357143 | 89 | 0.571848 | 63 | 682 | 6.031746 | 0.666667 | 0.071053 | 0.181579 | 0.213158 | 0.252632 | 0.252632 | 0 | 0 | 0 | 0 | 0 | 0.068522 | 0.315249 | 682 | 27 | 90 | 25.259259 | 0.745182 | 0.06305 | 0 | 0.380952 | 1 | 0 | 0.149137 | 0.036107 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c37e5269a8d49cd40b7795bbaad3cad5e33c61a3 | 1,619 | py | Python | tests/test_approve.py | PillarDevelopment/Multiownable-Token | 2594b4d1d77534455bfc74f446d730d593ce2e3b | [
"MIT"
] | null | null | null | tests/test_approve.py | PillarDevelopment/Multiownable-Token | 2594b4d1d77534455bfc74f446d730d593ce2e3b | [
"MIT"
] | null | null | null | tests/test_approve.py | PillarDevelopment/Multiownable-Token | 2594b4d1d77534455bfc74f446d730d593ce2e3b | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import pytest
@pytest.mark.parametrize("idx", range(5))
def test_initial_approval_is_zero(NFPLToken, accounts, idx):
assert NFPLToken.allowance(accounts[0], accounts[idx]) == 0
def test_approve(NFPLToken, accounts):
NFPLToken.approve(accounts[1], 10**19, {'from': accounts[0]})
assert... | 30.54717 | 79 | 0.697962 | 216 | 1,619 | 5.138889 | 0.199074 | 0.145946 | 0.194595 | 0.18018 | 0.681982 | 0.645045 | 0.584685 | 0.584685 | 0.584685 | 0.584685 | 0 | 0.066667 | 0.129092 | 1,619 | 52 | 80 | 31.134615 | 0.720567 | 0.0105 | 0 | 0.214286 | 0 | 0 | 0.029357 | 0 | 0 | 0 | 0 | 0 | 0.321429 | 1 | 0.285714 | false | 0 | 0.035714 | 0 | 0.321429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5ef397390d26adb515f56f0c4f8c70ee39f9a55a | 753 | py | Python | ssl_methods/mean_teacher.py | cspradli/HiggsID | 68c1a2fd2772e6a9efb7e47d202b3a10b563fb46 | [
"MIT"
] | null | null | null | ssl_methods/mean_teacher.py | cspradli/HiggsID | 68c1a2fd2772e6a9efb7e47d202b3a10b563fb46 | [
"MIT"
] | 1 | 2019-12-04T17:23:31.000Z | 2019-12-04T17:24:23.000Z | ssl_methods/mean_teacher.py | cspradli/HiggsID | 68c1a2fd2772e6a9efb7e47d202b3a10b563fb46 | [
"MIT"
] | null | null | null | import torch
import torch.nn
def update_mt(model, mt_model, alpha, step):
""" The brain of the whole thing. Takes two models then sets the
mean teacher model to use the EMA of the student models """
alpha = min(1 - 1 / (step + 1), alpha)
for ema_p, param in zip(mt_model.parameters(), model.parameters... | 30.12 | 88 | 0.64409 | 112 | 753 | 4.053571 | 0.464286 | 0.070485 | 0.035242 | 0.039648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013699 | 0.224436 | 753 | 24 | 89 | 31.375 | 0.763699 | 0.15405 | 0 | 0 | 0 | 0 | 0.0272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.133333 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
5efa4a76c2fc607df8a7213349f8e96f9b536295 | 1,955 | py | Python | waterbutler/providers/osfstorage/metadata.py | birdbrained/waterbutler | 60a6eb7f2dfce88b7a00457034c01b20da0aef23 | [
"Apache-2.0"
] | null | null | null | waterbutler/providers/osfstorage/metadata.py | birdbrained/waterbutler | 60a6eb7f2dfce88b7a00457034c01b20da0aef23 | [
"Apache-2.0"
] | null | null | null | waterbutler/providers/osfstorage/metadata.py | birdbrained/waterbutler | 60a6eb7f2dfce88b7a00457034c01b20da0aef23 | [
"Apache-2.0"
] | null | null | null | from waterbutler.core import metadata
class BaseOsfStorageMetadata:
@property
def provider(self):
return 'osfstorage'
class BaseOsfStorageItemMetadata(BaseOsfStorageMetadata):
def __init__(self, raw, materialized):
super().__init__(raw)
self._materialized = materialized
@pr... | 22.215909 | 92 | 0.590281 | 176 | 1,955 | 6.482955 | 0.267045 | 0.110429 | 0.08589 | 0.089395 | 0.175285 | 0.129711 | 0.129711 | 0.066608 | 0.066608 | 0 | 0 | 0.011478 | 0.286957 | 1,955 | 87 | 93 | 22.471264 | 0.80703 | 0 | 0 | 0.421875 | 0 | 0 | 0.09821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0.015625 | 0.015625 | 0.203125 | 0.515625 | 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 | 1 | 0 | 0 | 3 |
6f028a296943e59ef7005c0edce0ad35665f7f20 | 2,742 | py | Python | shared/error_messages.py | n-i-x/alu_auto_builder | c4d5e59ce1667742adb00ca08f5500243f551fcf | [
"FTL",
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | shared/error_messages.py | n-i-x/alu_auto_builder | c4d5e59ce1667742adb00ca08f5500243f551fcf | [
"FTL",
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | shared/error_messages.py | n-i-x/alu_auto_builder | c4d5e59ce1667742adb00ca08f5500243f551fcf | [
"FTL",
"CNRI-Python",
"Linux-OpenIB"
] | null | null | null | #!/usr/bin/env python3
# GUI
def required_option_not_set(option_name):
readable_name = option_name.replace('_', ' ').title()
return 'Option {0} is required but not set'.format(readable_name)
# Scraping
SCRAPE_INVALID_PLATFORM = 'You must provide a valid platform (emulated system) to enable scraping'
SCRAPE_... | 29.483871 | 111 | 0.745441 | 417 | 2,742 | 4.695444 | 0.314149 | 0.130746 | 0.089888 | 0.071502 | 0.291113 | 0.178754 | 0.038815 | 0 | 0 | 0 | 0 | 0.01331 | 0.15062 | 2,742 | 92 | 112 | 29.804348 | 0.827394 | 0.038658 | 0 | 0 | 0 | 0 | 0.380427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.378378 | false | 0 | 0 | 0.351351 | 0.756757 | 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 | 1 | 0 | 0 | 3 |
6f24dcb79ac27fb50394d80e4f0338e79b0a722f | 228 | py | Python | 24. Exam Prep/exam_16aug/project/hardware/power_hardware.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | 1 | 2021-03-27T16:56:30.000Z | 2021-03-27T16:56:30.000Z | 24. Exam Prep/exam_16aug/project/hardware/power_hardware.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | null | null | null | 24. Exam Prep/exam_16aug/project/hardware/power_hardware.py | elenaborisova/Python-OOP | 584882c08f84045b12322917f0716c7c7bd9befc | [
"MIT"
] | 1 | 2021-03-15T14:50:39.000Z | 2021-03-15T14:50:39.000Z | from exam_16aug.project.hardware.hardware import Hardware
class PowerHardware(Hardware):
def __init__(self, name, capacity, memory):
super().__init__(name, type='Power', capacity=capacity*0.25, memory=memory*1.75)
| 32.571429 | 88 | 0.745614 | 30 | 228 | 5.366667 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040201 | 0.127193 | 228 | 6 | 89 | 38 | 0.768844 | 0 | 0 | 0 | 0 | 0 | 0.02193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6f2d5bcfde0ee547c18604d4c7a5214272c55421 | 1,335 | py | Python | apps/wordpress/migrations/0005_update_verbose_names.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | 25 | 2021-06-13T03:38:44.000Z | 2022-03-15T15:53:31.000Z | apps/wordpress/migrations/0005_update_verbose_names.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | 59 | 2021-06-12T23:35:06.000Z | 2022-03-24T21:40:24.000Z | apps/wordpress/migrations/0005_update_verbose_names.py | rmdes/tanzawa | d53baa10bd6c217cd18628437a88a43e3bd02b70 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.2 on 2021-06-03 10:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("wordpress", "0004_fk_set_null"),
]
operations = [
migrations.AlterModelOptions(
name="tcategory",
options={"verbose_name": "... | 35.131579 | 111 | 0.616479 | 114 | 1,335 | 7.035088 | 0.394737 | 0.164589 | 0.23192 | 0.201995 | 0.190773 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01927 | 0.261423 | 1,335 | 37 | 112 | 36.081081 | 0.794118 | 0.033708 | 0 | 0.387097 | 1 | 0 | 0.381988 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6f3b0ffe4acef1322268c698fb67b421efd0839e | 152 | py | Python | hello-world/square-root.py | gabrielcostasilva/python-basic-examples | d9c20887b94b823fc59bc82f250d39d76b918ad8 | [
"MIT"
] | null | null | null | hello-world/square-root.py | gabrielcostasilva/python-basic-examples | d9c20887b94b823fc59bc82f250d39d76b918ad8 | [
"MIT"
] | null | null | null | hello-world/square-root.py | gabrielcostasilva/python-basic-examples | d9c20887b94b823fc59bc82f250d39d76b918ad8 | [
"MIT"
] | null | null | null | aNumber = int(input("Enter an integer: "))
# sqrt = aNumber ** (1/2)
sqrt = pow(aNumber, 1/2)
print("The square root of {} is {}".format(aNumber, sqrt)) | 38 | 58 | 0.638158 | 24 | 152 | 4.041667 | 0.708333 | 0.164948 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031008 | 0.151316 | 152 | 4 | 58 | 38 | 0.72093 | 0.151316 | 0 | 0 | 0 | 0 | 0.351563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6f42c9e7b3e4b6d00788b87bf35af96a90d29382 | 1,402 | py | Python | coopgraph/toggles.py | tylertjburns/coopgraph | e26cee2d2648b1fe1c10693344417f860edfed85 | [
"MIT"
] | null | null | null | coopgraph/toggles.py | tylertjburns/coopgraph | e26cee2d2648b1fe1c10693344417f860edfed85 | [
"MIT"
] | null | null | null | coopgraph/toggles.py | tylertjburns/coopgraph | e26cee2d2648b1fe1c10693344417f860edfed85 | [
"MIT"
] | null | null | null | from typing import List
class Toggleable():
def __init__(self, values: List, starting_index: int = 0):
self.values = values
self.index = starting_index
def toggle(self):
self.index += 1
if self.index >= len(self.values):
self.index = 0
@property
def value(... | 25.035714 | 76 | 0.616976 | 179 | 1,402 | 4.597765 | 0.251397 | 0.068044 | 0.082625 | 0.102066 | 0.09599 | 0.060753 | 0 | 0 | 0 | 0 | 0 | 0.007851 | 0.273181 | 1,402 | 56 | 77 | 25.035714 | 0.799804 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275 | false | 0 | 0.025 | 0.125 | 0.55 | 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 | 1 | 0 | 0 | 3 |
6f7346b82fee4a73324eb690d6ee963a010a4dc3 | 385 | py | Python | servlets/language/pyservlet/PyServlet/Log.py | 38/plumber | 30fead11cddd6352025dcac0c16065172744c0f9 | [
"BSD-2-Clause"
] | 39 | 2017-05-22T04:23:41.000Z | 2021-11-15T20:19:20.000Z | servlets/language/pyservlet/PyServlet/Log.py | 38/plumber | 30fead11cddd6352025dcac0c16065172744c0f9 | [
"BSD-2-Clause"
] | 10 | 2017-05-27T14:36:11.000Z | 2018-04-26T20:46:51.000Z | servlets/language/pyservlet/PyServlet/Log.py | 38/plumber | 30fead11cddd6352025dcac0c16065172744c0f9 | [
"BSD-2-Clause"
] | 2 | 2017-06-09T21:36:51.000Z | 2019-01-27T01:30:58.000Z | from pservlet import LOG_FATAL, LOG_ERROR, LOG_NOTICE, LOG_WARNING, LOG_INFO, LOG_TRACE, LOG_DEBUG, log
def error(message):
log(LOG_ERROR, message)
def warning(message):
log(LOG_WARNING, message)
def notice(message):
log(LOG_NOTICE, message)
def info(message):
log(LOG_INFO, message)
def trace(message):
log(L... | 25.666667 | 103 | 0.763636 | 60 | 385 | 4.683333 | 0.216667 | 0.213523 | 0.27758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124675 | 385 | 14 | 104 | 27.5 | 0.833828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.461538 | false | 0 | 0.076923 | 0 | 0.538462 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
488eab54ef3879ef46c04521cce92eb6c70c0423 | 56 | py | Python | src/settings/environments/dev.py | GoddessEyes/info_tbot | c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d | [
"MIT"
] | null | null | null | src/settings/environments/dev.py | GoddessEyes/info_tbot | c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d | [
"MIT"
] | 4 | 2021-03-19T02:42:10.000Z | 2021-09-22T19:08:09.000Z | src/settings/environments/dev.py | GoddessEyes/info_tbot | c7c5c818dc0c0c72aa15e6e4a85e7e28b4a7660d | [
"MIT"
] | null | null | null | from settings.environments.base import *
DEBUG = True
| 11.2 | 40 | 0.767857 | 7 | 56 | 6.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 56 | 4 | 41 | 14 | 0.914894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 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 | 3 |
48919f1322ebd5c61e7a586c382e20c0ea4eafcc | 81 | py | Python | hello.py | rojolin/hello-world | 021103e7ee465b0ac40e415add6d77395ca02ae5 | [
"MIT"
] | null | null | null | hello.py | rojolin/hello-world | 021103e7ee465b0ac40e415add6d77395ca02ae5 | [
"MIT"
] | null | null | null | hello.py | rojolin/hello-world | 021103e7ee465b0ac40e415add6d77395ca02ae5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
name = input("what is your name? ")
print("hello", name)
| 16.2 | 35 | 0.654321 | 13 | 81 | 4.076923 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014493 | 0.148148 | 81 | 4 | 36 | 20.25 | 0.753623 | 0.259259 | 0 | 0 | 0 | 0 | 0.40678 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
48a5d7e105b75a3514c423d417ff3790ec979762 | 311 | py | Python | example02.py | eanorambuena/SmallerArrays | d66817bdd7aec3a2908d036d2ea93fd0e044c618 | [
"MIT"
] | 1 | 2022-02-22T16:46:31.000Z | 2022-02-22T16:46:31.000Z | example02.py | eanorambuena/SmallerArrays | d66817bdd7aec3a2908d036d2ea93fd0e044c618 | [
"MIT"
] | null | null | null | example02.py | eanorambuena/SmallerArrays | d66817bdd7aec3a2908d036d2ea93fd0e044c618 | [
"MIT"
] | null | null | null | import sys
from pysa import CharArray
builtin_string = "Pizza"
array = CharArray(builtin_string)
print(f"""
CharArray: {array}
Decoded CharArray: '{array.to_string()}'
CharArray memory usage: {array.size}
Built-in string: '{builtin_string}'
Built-in string memory usage: {sys.getsizeof(builtin_string)}
""")
| 20.733333 | 61 | 0.755627 | 41 | 311 | 5.609756 | 0.463415 | 0.226087 | 0.191304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109325 | 311 | 14 | 62 | 22.214286 | 0.830325 | 0 | 0 | 0 | 0 | 0 | 0.649518 | 0.167203 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.090909 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
48c2abff640f821d1f538ab71c2b409c35b5b9a7 | 3,700 | py | Python | Admin.py | Ameminn-python/voteapp | ef4d62882596ecf064d036ba8e70a8661dab78cc | [
"MIT"
] | 1 | 2020-04-16T08:02:12.000Z | 2020-04-16T08:02:12.000Z | Admin.py | Ameminn-python/voteapp | ef4d62882596ecf064d036ba8e70a8661dab78cc | [
"MIT"
] | null | null | null | Admin.py | Ameminn-python/voteapp | ef4d62882596ecf064d036ba8e70a8661dab78cc | [
"MIT"
] | null | null | null | from discord.ext import commands
import discord
class admin(commands.Cog):
def __init__ (self,bot):
self.bot = bot
#official server setup
@commands.command()
async def setup(self,ctx):
official_server = self.bot.get_guild(700603441302732873)
welcome_ch = o... | 56.923077 | 126 | 0.717297 | 388 | 3,700 | 6.649485 | 0.237113 | 0.046512 | 0.075581 | 0.098837 | 0.765891 | 0.726357 | 0.703876 | 0.667442 | 0.627132 | 0.627132 | 0 | 0.049223 | 0.165405 | 3,700 | 64 | 127 | 57.8125 | 0.785622 | 0.005676 | 0 | 0.521739 | 0 | 0 | 0.247961 | 0.197934 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.043478 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
48dc50eed8cd6ae0efe9ada746a6e7abdd1b5540 | 968 | py | Python | guacamole-bak/protocol/GuacamoleConfiguration.py | jiaqinz/django-guacamole | 152fecb5703f422f6cc6fac79824134835f439f3 | [
"Apache-2.0"
] | 27 | 2018-01-10T06:30:44.000Z | 2022-03-31T18:02:18.000Z | guacamole-bak/protocol/GuacamoleConfiguration.py | jiaqinz/django-guacamole | 152fecb5703f422f6cc6fac79824134835f439f3 | [
"Apache-2.0"
] | 1 | 2019-01-10T08:11:46.000Z | 2019-01-21T07:37:27.000Z | guacamole-bak/protocol/GuacamoleConfiguration.py | jiaqinz/django-guacamole | 152fecb5703f422f6cc6fac79824134835f439f3 | [
"Apache-2.0"
] | 6 | 2019-02-14T01:25:15.000Z | 2022-01-13T01:45:40.000Z |
class GuacamoleConfiguration(object):
def __init__(self, protocol=None):
self.connectionID = None
self.protocol = protocol
self.parameters = {}
@property
def connectionID(self):
return self._connectionID
@connectionID.setter
def connectionID(self, connectionID):
... | 23.047619 | 52 | 0.669421 | 91 | 968 | 6.978022 | 0.21978 | 0.154331 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247934 | 968 | 41 | 53 | 23.609756 | 0.872253 | 0 | 0 | 0.103448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.344828 | false | 0 | 0 | 0.137931 | 0.517241 | 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 | 1 | 0 | 0 | 3 |
48ed9e4c219349b2e7357ea423bb7319b61370fc | 878 | py | Python | jarvis/context_engine/context_engine.py | DarkmatterVale/JARVIS | ef637acb43e7c400176bed433918c189612614f5 | [
"MIT"
] | 5 | 2015-05-18T23:16:37.000Z | 2016-01-23T07:46:11.000Z | jarvis/context_engine/context_engine.py | DarkmatterVale/JARVIS | ef637acb43e7c400176bed433918c189612614f5 | [
"MIT"
] | 16 | 2015-05-18T23:32:12.000Z | 2016-03-18T01:31:05.000Z | jarvis/context_engine/context_engine.py | DarkmatterVale/JARVIS | ef637acb43e7c400176bed433918c189612614f5 | [
"MIT"
] | null | null | null | from input_categorizer import InputCategorizer
from information_understanding import *
class ContextEngine:
def __init__(self):
self.jarvis_information_gatherer = Manager()
def categorize( self, user_input ):
"""
Returns the category of the user input
"""
jarvis_inpu... | 32.518519 | 81 | 0.718679 | 99 | 878 | 6.131313 | 0.424242 | 0.103789 | 0.059308 | 0.095552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231207 | 878 | 26 | 82 | 33.769231 | 0.899259 | 0.333713 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
48fb37ca6cfa5feff1a900d7b8f194d821b5f27e | 4,882 | py | Python | src/GibbsLDA++/convertDataFormat.py | anthonylife/ReviewBasedRatingPrediction | 681d809dbd697ff4fa6d6bbf6c3721c89468ad49 | [
"Apache-2.0"
] | 1 | 2015-04-03T16:25:31.000Z | 2015-04-03T16:25:31.000Z | src/GibbsLDA++/convertDataFormat.py | anthonylife/ReviewBasedRatingPrediction | 681d809dbd697ff4fa6d6bbf6c3721c89468ad49 | [
"Apache-2.0"
] | null | null | null | src/GibbsLDA++/convertDataFormat.py | anthonylife/ReviewBasedRatingPrediction | 681d809dbd697ff4fa6d6bbf6c3721c89468ad49 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#encoding=utf8
#Copyright [2014] [Wei Zhang]
#Licensed under the Apache License, Version 2.0 (the "License");
#you may not use this file except in compliance with the License.
#You may obtain a copy of the License at
#http://www.apache.org/licenses/LICENSE-2.0
#Unless required by applicable law ... | 40.016393 | 127 | 0.62372 | 675 | 4,882 | 4.256296 | 0.257778 | 0.200487 | 0.133658 | 0.167073 | 0.578141 | 0.578141 | 0.578141 | 0.544727 | 0.544727 | 0.174382 | 0 | 0.016006 | 0.219377 | 4,882 | 121 | 128 | 40.347107 | 0.737864 | 0.149324 | 0 | 0.436782 | 0 | 0 | 0.207366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022989 | null | null | 0.022989 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5b006cc3e0bca1178efbd2d52d6ba5fb90bf17ad | 364 | py | Python | python/ovs/dirs.py | haihoang1219931/openvswitch-k54 | 551d69a8c530278744a2af74ecd96d8e9c2e9916 | [
"Apache-2.0"
] | 9 | 2015-12-15T00:55:59.000Z | 2019-11-22T16:17:58.000Z | python/ovs/dirs.py | haihoang1219931/openvswitch-k54 | 551d69a8c530278744a2af74ecd96d8e9c2e9916 | [
"Apache-2.0"
] | 1 | 2017-04-17T03:44:27.000Z | 2018-04-13T07:48:22.000Z | python/ovs/dirs.py | haihoang1219931/openvswitch-k54 | 551d69a8c530278744a2af74ecd96d8e9c2e9916 | [
"Apache-2.0"
] | 19 | 2015-02-06T23:24:53.000Z | 2021-02-05T05:20:56.000Z | # These are the default directories. They will be replaced by the
# configured directories at install time.
import os
PKGDATADIR = os.environ.get("OVS_PKGDATADIR", "/usr/local/share/openvswitch")
RUNDIR = os.environ.get("OVS_RUNDIR", "/var/run")
LOGDIR = os.environ.get("OVS_LOGDIR", "/usr/local/var/log")
BINDIR = os.... | 40.444444 | 77 | 0.739011 | 55 | 364 | 4.818182 | 0.563636 | 0.135849 | 0.181132 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104396 | 364 | 8 | 78 | 45.5 | 0.812883 | 0.285714 | 0 | 0 | 0 | 0 | 0.435798 | 0.108949 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5b02aa42537ae0220dd798c26725c7c9b21249a1 | 2,186 | py | Python | GI_Nets/configs/config.py | kstpr/Thesis | 3d4c0d70c284db553b59011c1b55ed03aaf0d16b | [
"MIT"
] | null | null | null | GI_Nets/configs/config.py | kstpr/Thesis | 3d4c0d70c284db553b59011c1b55ed03aaf0d16b | [
"MIT"
] | null | null | null | GI_Nets/configs/config.py | kstpr/Thesis | 3d4c0d70c284db553b59011c1b55ed03aaf0d16b | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass
class Directories:
experiment_results_root: str = "" # root dir for all outputs
result_snapshots_dir: str = "" # snapshots of input + output images during training
network_snapshots_dir: str = "" # saved network snapshots
test_output_samples_dir: str = ""... | 23.010526 | 91 | 0.664684 | 294 | 2,186 | 4.72449 | 0.340136 | 0.034557 | 0.056156 | 0.030238 | 0.704104 | 0.668826 | 0.668826 | 0.668826 | 0.668826 | 0.609071 | 0 | 0.021739 | 0.263495 | 2,186 | 94 | 92 | 23.255319 | 0.840994 | 0.508234 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.027778 | 0 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5b22bc7035a992de454ff91e221465bc3d259c7b | 2,164 | py | Python | uttlv/encoder.py | a13xg0/uttlv | e868316d85457b09bee3218c4a340307cd2e719f | [
"MIT"
] | null | null | null | uttlv/encoder.py | a13xg0/uttlv | e868316d85457b09bee3218c4a340307cd2e719f | [
"MIT"
] | null | null | null | uttlv/encoder.py | a13xg0/uttlv | e868316d85457b09bee3218c4a340307cd2e719f | [
"MIT"
] | null | null | null | from __future__ import annotations
from binascii import hexlify
class DefaultEncoder(object):
def default(self, obj):
try:
return obj.to_byte_array()
except:
raise TypeError('Invalid type')
def to_string(self, obj, offset=0, use_names=False):
try:
... | 22.541667 | 59 | 0.592884 | 258 | 2,164 | 4.918605 | 0.217054 | 0.088258 | 0.077226 | 0.093775 | 0.616233 | 0.599685 | 0.599685 | 0.579984 | 0.483058 | 0.483058 | 0 | 0.011772 | 0.293438 | 2,164 | 95 | 60 | 22.778947 | 0.818182 | 0 | 0 | 0.569231 | 0 | 0 | 0.028189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.246154 | false | 0.030769 | 0.030769 | 0.107692 | 0.753846 | 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 | 1 | 0 | 0 | 3 |
d28af22d12db73f8d87005ffbeea5b762ff4c5c1 | 2,782 | py | Python | src/sima/workflow/blueprints/fileoutputnode.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/workflow/blueprints/fileoutputnode.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | src/sima/workflow/blueprints/fileoutputnode.py | SINTEF/simapy | 650b8c2f15503dad98e2bfc0d0788509593822c7 | [
"MIT"
] | null | null | null | #
# Generated with FileOutputNodeBlueprint
from dmt.blueprint import Blueprint
from dmt.dimension import Dimension
from dmt.attribute import Attribute
from dmt.enum_attribute import EnumAttribute
from dmt.blueprint_attribute import BlueprintAttribute
from sima.post.blueprints.outputnode import OutputNodeBlueprint
from... | 79.485714 | 205 | 0.748742 | 290 | 2,782 | 7.137931 | 0.351724 | 0.135266 | 0.193237 | 0.182126 | 0.294203 | 0.229469 | 0.063768 | 0 | 0 | 0 | 0 | 0.001606 | 0.10496 | 2,782 | 35 | 206 | 79.485714 | 0.829719 | 0.013659 | 0 | 0 | 1 | 0.033333 | 0.30713 | 0.065814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.233333 | 0 | 0.3 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d28ce8008b43de2b3b5ddd0674d05c4d2652debf | 23 | py | Python | web-version/tests/__init__.py | Razique/the-lost-planet | 8503f66aa860c819185599b406fba5a3cd0b2248 | [
"Apache-2.0"
] | null | null | null | web-version/tests/__init__.py | Razique/the-lost-planet | 8503f66aa860c819185599b406fba5a3cd0b2248 | [
"Apache-2.0"
] | null | null | null | web-version/tests/__init__.py | Razique/the-lost-planet | 8503f66aa860c819185599b406fba5a3cd0b2248 | [
"Apache-2.0"
] | null | null | null | __author__ = 'Razique'
| 11.5 | 22 | 0.73913 | 2 | 23 | 6.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 23 | 1 | 23 | 23 | 0.65 | 0 | 0 | 0 | 0 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d2ce6a54832618a8b5c8b20118d3fb37756e5b11 | 12,473 | py | Python | gaphor/services/tests/test_undomanager.py | bertob/gaphor | a1d6f8dd8c878f299980bba6c055436148573274 | [
"Apache-2.0"
] | null | null | null | gaphor/services/tests/test_undomanager.py | bertob/gaphor | a1d6f8dd8c878f299980bba6c055436148573274 | [
"Apache-2.0"
] | null | null | null | gaphor/services/tests/test_undomanager.py | bertob/gaphor | a1d6f8dd8c878f299980bba6c055436148573274 | [
"Apache-2.0"
] | null | null | null | """Test the UndoManager."""
from gaphor.core import event_handler
from gaphor.core.eventmanager import EventManager
from gaphor.core.modeling import ElementFactory
from gaphor.services.undomanager import UndoManager
from gaphor.tests.testcase import TestCase
from gaphor.transaction import Transaction
class TestUndoM... | 31.1825 | 88 | 0.6482 | 1,455 | 12,473 | 5.26323 | 0.067354 | 0.19966 | 0.088796 | 0.057456 | 0.827762 | 0.77357 | 0.713633 | 0.664142 | 0.588535 | 0.559546 | 0 | 0.013158 | 0.268821 | 12,473 | 399 | 89 | 31.260652 | 0.826535 | 0.04177 | 0 | 0.671378 | 0 | 0 | 0.007541 | 0 | 0 | 0 | 0 | 0 | 0.360424 | 1 | 0.04947 | false | 0.014134 | 0.063604 | 0 | 0.137809 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d2d7eb988b95b2540125916d5e843cb5f552f81c | 436 | py | Python | happyMoose/photos/migrations/0003_auto_20180925_1838.py | RobinRichard/HappyMoose | 67f863e8201d2ce7a01754e7c1b4e60e4324cf64 | [
"MIT"
] | null | null | null | happyMoose/photos/migrations/0003_auto_20180925_1838.py | RobinRichard/HappyMoose | 67f863e8201d2ce7a01754e7c1b4e60e4324cf64 | [
"MIT"
] | null | null | null | happyMoose/photos/migrations/0003_auto_20180925_1838.py | RobinRichard/HappyMoose | 67f863e8201d2ce7a01754e7c1b4e60e4324cf64 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.2 on 2018-09-25 06:38
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('photos', '0002_photo_actual_name'),
]
operations = [
migrations.RemoveField(
model_name='photo',
name='file_height',
... | 19.818182 | 47 | 0.56422 | 44 | 436 | 5.431818 | 0.659091 | 0.175732 | 0.217573 | 0.251046 | 0.359833 | 0.359833 | 0.359833 | 0 | 0 | 0 | 0 | 0.064407 | 0.323395 | 436 | 21 | 48 | 20.761905 | 0.745763 | 0.103211 | 0 | 0.4 | 1 | 0 | 0.151671 | 0.056555 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d2d8ec47a418214ae814c70c5fd306518c73be2b | 64 | py | Python | pkg_sergio/imprime_50.py | Residencia-Fiep-Turma-2/distribuicao_sergio | 3aa124eff5538d7579ff018788de09e4c5d28d1a | [
"MIT"
] | null | null | null | pkg_sergio/imprime_50.py | Residencia-Fiep-Turma-2/distribuicao_sergio | 3aa124eff5538d7579ff018788de09e4c5d28d1a | [
"MIT"
] | null | null | null | pkg_sergio/imprime_50.py | Residencia-Fiep-Turma-2/distribuicao_sergio | 3aa124eff5538d7579ff018788de09e4c5d28d1a | [
"MIT"
] | null | null | null | def imprimir():
for i in range(50):
print(str(i+1))
| 16 | 23 | 0.53125 | 11 | 64 | 3.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.296875 | 64 | 3 | 24 | 21.333333 | 0.688889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d2f962224afe37ed17d42af5eb3b3be7e15c6d73 | 144 | py | Python | tests/__init__.py | mario33881/betterSIS | 9b5f7582d17caba4e137400f2d4b7f39f76cb3cf | [
"MIT"
] | 7 | 2021-01-17T18:16:02.000Z | 2021-12-17T16:58:48.000Z | tests/__init__.py | mario33881/betterSIS | 9b5f7582d17caba4e137400f2d4b7f39f76cb3cf | [
"MIT"
] | 22 | 2021-06-06T18:39:14.000Z | 2022-03-30T08:36:20.000Z | tests/__init__.py | mario33881/betterSIS | 9b5f7582d17caba4e137400f2d4b7f39f76cb3cf | [
"MIT"
] | 2 | 2021-01-04T23:37:15.000Z | 2021-01-19T09:37:16.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__all__ = ["test_bettersis", "test_siscompleter", "test_texteditor", "test_update_checker"]
| 28.8 | 92 | 0.680556 | 17 | 144 | 5.235294 | 0.823529 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.125 | 144 | 4 | 93 | 36 | 0.690476 | 0.298611 | 0 | 0 | 0 | 0 | 0.684211 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d2fa94ad866b0093335130d05f7cc54eec2f0a1f | 430 | py | Python | ComunioScore/api.py | bierschi/ComunioScore | 7a7065bf1788f1672d3bfc0e9be1811002427b48 | [
"MIT"
] | 4 | 2019-09-24T16:37:01.000Z | 2021-09-08T09:41:55.000Z | ComunioScore/api.py | bierschi/ComunioScore | 7a7065bf1788f1672d3bfc0e9be1811002427b48 | [
"MIT"
] | null | null | null | ComunioScore/api.py | bierschi/ComunioScore | 7a7065bf1788f1672d3bfc0e9be1811002427b48 | [
"MIT"
] | 1 | 2019-10-05T18:07:03.000Z | 2019-10-05T18:07:03.000Z | import json
import logging
from flask import Response, request
class APIHandler:
""" class APIHandler to link routes to specific handler function
USAGE:
api = APIHandler()
"""
def __init__(self):
self.logger = logging.getLogger('ComunioScore')
self.logger.info('Create cla... | 17.916667 | 68 | 0.604651 | 44 | 430 | 5.818182 | 0.659091 | 0.175781 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3 | 430 | 23 | 69 | 18.695652 | 0.850498 | 0.24186 | 0 | 0 | 0 | 0 | 0.164286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | 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 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
960258abf754317f850a5786a4052080c6f83c02 | 210 | py | Python | api/mixins.py | adm-in/yamdb_final | 2132ba003897657315c3ed98edf78b26d467879b | [
"Apache-2.0"
] | null | null | null | api/mixins.py | adm-in/yamdb_final | 2132ba003897657315c3ed98edf78b26d467879b | [
"Apache-2.0"
] | null | null | null | api/mixins.py | adm-in/yamdb_final | 2132ba003897657315c3ed98edf78b26d467879b | [
"Apache-2.0"
] | null | null | null | from rest_framework import mixins, viewsets
class ListAndCreateAndDestoryViewSet(
mixins.ListModelMixin,
mixins.CreateModelMixin,
mixins.DestroyModelMixin,
viewsets.GenericViewSet
):
pass
| 19.090909 | 43 | 0.780952 | 17 | 210 | 9.588235 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 210 | 10 | 44 | 21 | 0.931429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.125 | 0.125 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
82591b89d7031f7550aadf8f9dc310c3363f3ebc | 209 | py | Python | Courses/Udacity/CS101/Lesson_5_How_Programs_Run/23-Empty_Hash_Table/supplied/studentMain.py | leparrav/Playground | dcb90a2dd2bc1867511cfe621eb21248a60e357f | [
"Unlicense"
] | 1 | 2019-02-13T12:02:26.000Z | 2019-02-13T12:02:26.000Z | Courses/Udacity/CS101/Lesson_5_How_Programs_Run/23-Empty_Hash_Table/supplied/studentMain.py | leparrav/Playground | dcb90a2dd2bc1867511cfe621eb21248a60e357f | [
"Unlicense"
] | 1 | 2018-08-13T15:58:33.000Z | 2018-08-13T15:58:33.000Z | Courses/Udacity/CS101/Lesson_5_How_Programs_Run/23-Empty_Hash_Table/supplied/studentMain.py | leparrav/Playground | dcb90a2dd2bc1867511cfe621eb21248a60e357f | [
"Unlicense"
] | 2 | 2017-08-10T20:01:29.000Z | 2021-07-01T08:39:13.000Z | # Creating an Empty Hash Table
# Define a procedure, make_hashtable,
# that takes as input a number, nbuckets,
# and returns an empty hash table with
# nbuckets empty buckets.
def make_hashtable(nbuckets):
| 20.9 | 41 | 0.76555 | 31 | 209 | 5.096774 | 0.677419 | 0.088608 | 0.139241 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172249 | 209 | 9 | 42 | 23.222222 | 0.913295 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
825b9cd9e763808f795af2ed59be3961a3fa8737 | 935 | py | Python | var/spack/repos/builtin/packages/py-mido/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 11 | 2015-10-04T02:17:46.000Z | 2018-02-07T18:23:00.000Z | var/spack/repos/builtin/packages/py-mido/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 22 | 2017-08-01T22:45:10.000Z | 2022-03-10T07:46:31.000Z | var/spack/repos/builtin/packages/py-mido/package.py | player1537-forks/spack | 822b7632222ec5a91dc7b7cda5fc0e08715bd47c | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 4 | 2016-06-10T17:57:39.000Z | 2018-09-11T04:59:38.000Z | # Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyMido(PythonPackage):
"""Mido is a library for working with MIDI messages and ports. It's... | 42.5 | 95 | 0.764706 | 105 | 935 | 6.8 | 0.752381 | 0.014006 | 0.05042 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.24847 | 0.126203 | 935 | 21 | 96 | 44.52381 | 0.625459 | 0.336898 | 0 | 0 | 0 | 0.111111 | 0.611203 | 0.421746 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.444444 | 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 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8261efa438f93f351ddf4fe270bbf627075600ac | 165 | py | Python | search/urls.py | portinarus/search | e1059ef88f2790287af8fedffa0c0b08f07a474e | [
"MIT"
] | null | null | null | search/urls.py | portinarus/search | e1059ef88f2790287af8fedffa0c0b08f07a474e | [
"MIT"
] | null | null | null | search/urls.py | portinarus/search | e1059ef88f2790287af8fedffa0c0b08f07a474e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import url
from search.views import SearchView
urlpatterns = [
url(r'', SearchView().as_view(), name='search'),
]
| 20.625 | 52 | 0.666667 | 22 | 165 | 4.954545 | 0.772727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007143 | 0.151515 | 165 | 7 | 53 | 23.571429 | 0.771429 | 0.127273 | 0 | 0 | 0 | 0 | 0.042254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
82702114649f5de38a000713215647e576374b7e | 481 | py | Python | api/serializers/user.py | josecriane/MES-srv | f0ec37e5aa9c9a1cb6d6860163c841b807ac6a28 | [
"Apache-2.0"
] | null | null | null | api/serializers/user.py | josecriane/MES-srv | f0ec37e5aa9c9a1cb6d6860163c841b807ac6a28 | [
"Apache-2.0"
] | null | null | null | api/serializers/user.py | josecriane/MES-srv | f0ec37e5aa9c9a1cb6d6860163c841b807ac6a28 | [
"Apache-2.0"
] | null | null | null | from rest_framework import serializers
from api.models.device import Device
from api.models.order import Order
from django.contrib.auth.models import User
class UserSerializer(serializers.ModelSerializer):
devices = serializers.PrimaryKeyRelatedField(many=True, queryset=Device.objects.all())
orders = serialize... | 40.083333 | 90 | 0.760915 | 55 | 481 | 6.636364 | 0.527273 | 0.038356 | 0.071233 | 0.224658 | 0.268493 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137214 | 481 | 12 | 91 | 40.083333 | 0.879518 | 0 | 0 | 0 | 0 | 0 | 0.047718 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 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 | 1 | 0 | 0 | 3 |
8273726d6fa01ba5098fdd6d0ad98ab9e550fb01 | 3,165 | py | Python | api/content_representations.py | armell/RNASEqTool | 88ee1011cd2597a04f5f7bfc811649ed17d40752 | [
"MIT"
] | 2 | 2019-03-26T16:32:59.000Z | 2019-11-19T09:46:14.000Z | api/content_representations.py | armell/RNASEqTool | 88ee1011cd2597a04f5f7bfc811649ed17d40752 | [
"MIT"
] | 1 | 2021-12-13T20:22:47.000Z | 2021-12-13T20:22:47.000Z | api/content_representations.py | armell/RNASEqTool | 88ee1011cd2597a04f5f7bfc811649ed17d40752 | [
"MIT"
] | null | null | null | import StringIO
import json
import pandas as pd
import mpld3
from mpld3 import fig_to_html, plugins, fig_to_dict
from bokeh.embed import components
from bokeh.resources import CDN
from flask import Response, stream_with_context
from entities import identifier_generator as ig
# Basic api representation resource
# This ... | 23.444444 | 145 | 0.663823 | 411 | 3,165 | 4.963504 | 0.26764 | 0.058824 | 0.030882 | 0.044608 | 0.437745 | 0.317157 | 0.222549 | 0.128431 | 0.128431 | 0.128431 | 0 | 0.001254 | 0.243918 | 3,165 | 134 | 146 | 23.619403 | 0.851233 | 0.140284 | 0 | 0.547619 | 0 | 0 | 0.03805 | 0 | 0 | 0 | 0 | 0.007463 | 0 | 1 | 0.309524 | false | 0.095238 | 0.119048 | 0.130952 | 0.714286 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
8283d9b7d517b3afec560baef1a794c908d84cfd | 283 | py | Python | PythonConsoleApplication/PythonConsoleApplication/Helper/FileHelper.py | libish-jacob/Python | 66319b200d0e9000db895434773b574fa9865118 | [
"MIT"
] | null | null | null | PythonConsoleApplication/PythonConsoleApplication/Helper/FileHelper.py | libish-jacob/Python | 66319b200d0e9000db895434773b574fa9865118 | [
"MIT"
] | null | null | null | PythonConsoleApplication/PythonConsoleApplication/Helper/FileHelper.py | libish-jacob/Python | 66319b200d0e9000db895434773b574fa9865118 | [
"MIT"
] | null | null | null | class FileHelper:
"""description of class"""
file = "";
def __init__(self, filename):
self.file = filename;
def ReadFile(self):
fileStream = open(self.file);
lines = fileStream.readlines();
fileStream.close();
return lines;
| 20.214286 | 39 | 0.575972 | 27 | 283 | 5.888889 | 0.592593 | 0.100629 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29682 | 283 | 13 | 40 | 21.769231 | 0.798995 | 0.070671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.555556 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8291938a1b0d768f42a1d694fbb9877d027f69b8 | 1,013 | py | Python | tunobase/api/salesforce/__init__.py | unomena/tunobase | 9219e6c5a49eecd1c66dd1b518640c5d678acab6 | [
"BSD-3-Clause"
] | null | null | null | tunobase/api/salesforce/__init__.py | unomena/tunobase | 9219e6c5a49eecd1c66dd1b518640c5d678acab6 | [
"BSD-3-Clause"
] | null | null | null | tunobase/api/salesforce/__init__.py | unomena/tunobase | 9219e6c5a49eecd1c66dd1b518640c5d678acab6 | [
"BSD-3-Clause"
] | null | null | null | # This program is free software; you can redistribute it and/or modify
# it under the terms of the (LGPL) GNU Lesser General Public License as
# published by the Free Software Foundation; either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will ... | 34.931034 | 76 | 0.74926 | 155 | 1,013 | 4.819355 | 0.658065 | 0.044177 | 0.076305 | 0.104418 | 0.077644 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021687 | 0.180652 | 1,013 | 28 | 77 | 36.178571 | 0.878313 | 0.807502 | 0 | 0 | 0 | 0 | 0.028409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
82ad0b6dd301cf65e3c2863890f0fa1767ee9cfe | 132 | py | Python | quantum_computer_simulator/helpers/Constants.py | johnyob/Quantum-Computer-Simulator | 9dfe219f855da61ac21ca27db1b10385b77f235e | [
"MIT"
] | 2 | 2019-05-26T15:26:33.000Z | 2021-03-19T02:37:49.000Z | quantum_computer_simulator/helpers/Constants.py | johnyob/Quantum-Computer-Simulator | 9dfe219f855da61ac21ca27db1b10385b77f235e | [
"MIT"
] | null | null | null | quantum_computer_simulator/helpers/Constants.py | johnyob/Quantum-Computer-Simulator | 9dfe219f855da61ac21ca27db1b10385b77f235e | [
"MIT"
] | null | null | null | import numpy as np
STATES = {
0: np.array([1 + 0j, 0 + 0j], dtype=complex),
1: np.array([0 + 0j, 1 + 0j], dtype=complex)
}
| 18.857143 | 49 | 0.55303 | 23 | 132 | 3.173913 | 0.478261 | 0.191781 | 0.383562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10101 | 0.25 | 132 | 6 | 50 | 22 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d593adb2fd9116e1635c8ed39dea8a81b72dd6c | 496 | py | Python | uhcas_auth/models.py | llcit/django-uhcas-auth | 7b86094ac4c380ac9f5e8c5c6cdfdb1d323145bd | [
"MIT"
] | null | null | null | uhcas_auth/models.py | llcit/django-uhcas-auth | 7b86094ac4c380ac9f5e8c5c6cdfdb1d323145bd | [
"MIT"
] | null | null | null | uhcas_auth/models.py | llcit/django-uhcas-auth | 7b86094ac4c380ac9f5e8c5c6cdfdb1d323145bd | [
"MIT"
] | null | null | null | '''
Use django user model
'''
from django.db import models
from django.contrib.auth.models import User
class UHCASUser(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
common_name = models.CharField(max_length=128, blank=True, null=True)
display_name = models.CharField(max_length... | 38.153846 | 74 | 0.760081 | 70 | 496 | 5.285714 | 0.414286 | 0.162162 | 0.194595 | 0.259459 | 0.497297 | 0.497297 | 0.497297 | 0.497297 | 0.497297 | 0.259459 | 0 | 0.02765 | 0.125 | 496 | 12 | 75 | 41.333333 | 0.824885 | 0.042339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7d5cc11f75cc28bf12ce1eabda919e2e5d3b4c22 | 10,209 | py | Python | src/python_pybind11/test/Line3_TEST.py | srmainwaring/ign-math | ff55578b52b9c42daaea666c3c1205551b07afbb | [
"ECL-2.0",
"Apache-2.0"
] | 43 | 2019-08-21T20:50:05.000Z | 2022-03-27T11:48:25.000Z | src/python_pybind11/test/Line3_TEST.py | srmainwaring/ign-math | ff55578b52b9c42daaea666c3c1205551b07afbb | [
"ECL-2.0",
"Apache-2.0"
] | 277 | 2020-04-16T23:38:50.000Z | 2022-03-31T11:11:58.000Z | src/python_pybind11/test/Line3_TEST.py | srmainwaring/ign-math | ff55578b52b9c42daaea666c3c1205551b07afbb | [
"ECL-2.0",
"Apache-2.0"
] | 48 | 2020-04-15T21:15:43.000Z | 2022-03-14T19:29:04.000Z | # Copyright (C) 2021 Open Source Robotics Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License")
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 40.673307 | 77 | 0.590361 | 1,641 | 10,209 | 3.600244 | 0.084704 | 0.033175 | 0.186188 | 0.158429 | 0.791638 | 0.749831 | 0.672817 | 0.553148 | 0.52302 | 0.437373 | 0 | 0.107939 | 0.234989 | 10,209 | 250 | 78 | 40.836 | 0.648528 | 0.068763 | 0 | 0.220994 | 0 | 0 | 0.002002 | 0 | 0 | 0 | 0 | 0 | 0.696133 | 1 | 0.066298 | false | 0 | 0.022099 | 0 | 0.093923 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d61a2d9240edf4b4ab48a49a9cbf7d805a532b2 | 1,432 | py | Python | python/test_utils.py | lparolin/state_estimation | 68ac7ad2c4dabc568e47cb07102703527aee3386 | [
"MIT"
] | null | null | null | python/test_utils.py | lparolin/state_estimation | 68ac7ad2c4dabc568e47cb07102703527aee3386 | [
"MIT"
] | null | null | null | python/test_utils.py | lparolin/state_estimation | 68ac7ad2c4dabc568e47cb07102703527aee3386 | [
"MIT"
] | null | null | null | """Script of running base tests on utils."""
from utils import Coordinate2d
def test_base():
"""Base test."""
my_coordinate = Coordinate2d(3.0, 4.0)
assert (my_coordinate.get_x() == 3.0)
assert (my_coordinate.get_y() == 4.0)
assert (my_coordinate.get_idx(0) == 3.0)
assert (my_coordinate.get_i... | 30.468085 | 56 | 0.672486 | 204 | 1,432 | 4.490196 | 0.196078 | 0.196507 | 0.209607 | 0.191048 | 0.584061 | 0.552402 | 0.342795 | 0.342795 | 0.303493 | 0.303493 | 0 | 0.062765 | 0.176676 | 1,432 | 46 | 57 | 31.130435 | 0.714165 | 0.097765 | 0 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 1 | 0.172414 | false | 0 | 0.034483 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d7d3a5ecbdd7e273013bb7312c24dec9741f9a0 | 225 | py | Python | backend/src/models/wrapped/bar.py | rutvikpadhiyar000/github-trends | af66cd1419586c6c91b75c3e32013160b2c36bcb | [
"MIT"
] | 157 | 2021-09-11T15:53:52.000Z | 2022-03-27T07:03:09.000Z | backend/src/models/wrapped/bar.py | rutvikpadhiyar000/github-trends | af66cd1419586c6c91b75c3e32013160b2c36bcb | [
"MIT"
] | 120 | 2021-02-27T21:37:47.000Z | 2022-03-25T14:44:08.000Z | backend/src/models/wrapped/bar.py | rutvikpadhiyar000/github-trends | af66cd1419586c6c91b75c3e32013160b2c36bcb | [
"MIT"
] | 5 | 2021-12-06T18:43:01.000Z | 2022-01-31T07:06:16.000Z | from typing import List
from pydantic import BaseModel
class BarDatum(BaseModel):
month: int
contribs: int
loc_changed: int
formatted_loc_changed: str
class BarData(BaseModel):
months: List[BarDatum]
| 15 | 30 | 0.733333 | 28 | 225 | 5.785714 | 0.607143 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208889 | 225 | 14 | 31 | 16.071429 | 0.910112 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 0 | 1 | 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 | 1 | 0 | 0 | 3 |
7d86eb2a23af73441d1dbf90d947cf7900dc865b | 20,621 | py | Python | pysnmp-with-texts/TRUNK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/TRUNK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/TRUNK-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module TRUNK-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/TRUNK-MIB
# Produced by pysmi-0.3.4 at Wed May 1 15:27:43 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23... | 153.88806 | 1,525 | 0.762184 | 2,960 | 20,621 | 5.308784 | 0.148649 | 0.010055 | 0.089538 | 0.011964 | 0.482181 | 0.346061 | 0.319397 | 0.298587 | 0.267341 | 0.250795 | 0 | 0.068575 | 0.1224 | 20,621 | 133 | 1,526 | 155.045113 | 0.799746 | 0.01513 | 0 | 0 | 0 | 0.208 | 0.417882 | 0.007488 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.056 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d96dc39d57f0b06b20fb002430f79677ff22a56 | 350 | py | Python | leetcode_archived_cpp/LeetCode_122_stock.py | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | null | null | null | leetcode_archived_cpp/LeetCode_122_stock.py | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | 7 | 2021-03-19T04:41:21.000Z | 2021-10-19T15:46:36.000Z | leetcode_archived_cpp/LeetCode_122_stock.py | Sean10/Algorithm_code | 46ff1cb5b81400cbcc324dabdf4298bf7a55e5eb | [
"BSD-3-Clause"
] | null | null | null | class Solution:
def maxProfit(self, prices):
"""
:type prices: List[int]
:rtype: int
"""
if len(prices) <= 1:
return 0
ans = 0
for key in range(1, len(prices)):
ans += prices[key] - prices[key-1] if prices[key]-prices[key-1]>0 else 0
... | 25 | 84 | 0.468571 | 44 | 350 | 3.727273 | 0.477273 | 0.219512 | 0.182927 | 0.219512 | 0.231707 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 0.405714 | 350 | 13 | 85 | 26.923077 | 0.75 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7db99c221b8f35e9368f754489892e5e7be692db | 1,462 | py | Python | indocrack/crack_open.py | Alpha-Demon404/RE-14 | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 39 | 2020-02-26T09:44:36.000Z | 2022-03-23T00:18:25.000Z | indocrack/crack_open.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 15 | 2020-05-14T10:07:26.000Z | 2022-01-06T02:55:32.000Z | indocrack/crack_open.py | B4BY-DG/reverse-enginnering | b5b46a9f0eee218f2a642b615c77135c33c6f4ad | [
"MIT"
] | 41 | 2020-03-16T22:36:38.000Z | 2022-03-17T14:47:19.000Z | # Filename : <tahm1d>
# Python Bytecode : 2.7
# Time Succses Decompiled : Tue Sep 8 20:04:12 2020
# Timestamp In Code : 2020-09-02 17:33:14
import os
from os import system
if not os.path.isfile('.__main__.py'):
print '\n\tSome Required Defs not Found !! CLONE CORRECTLY !\n'
os.sys.exit()
if not os.path.isfile... | 27.584906 | 67 | 0.688098 | 210 | 1,462 | 4.6 | 0.309524 | 0.10559 | 0.036232 | 0.056936 | 0.782609 | 0.626294 | 0.549689 | 0.479296 | 0.377847 | 0.377847 | 0 | 0.030201 | 0.184679 | 1,462 | 53 | 68 | 27.584906 | 0.780201 | 0.090287 | 0 | 0.714286 | 0 | 0 | 0.453997 | 0.064103 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.190476 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
7dbb91eb507f6761f406fed19a6cb2b52cc3b651 | 396 | py | Python | python-program/python-consumer.py | mathuser0/88final | aada9f469a9c5127677990667e5bc43461c64499 | [
"Apache-2.0"
] | null | null | null | python-program/python-consumer.py | mathuser0/88final | aada9f469a9c5127677990667e5bc43461c64499 | [
"Apache-2.0"
] | null | null | null | python-program/python-consumer.py | mathuser0/88final | aada9f469a9c5127677990667e5bc43461c64499 | [
"Apache-2.0"
] | null | null | null | from kafka import KafkaConsumer
var = 1
while var == 1 :
consumer = KafkaConsumer(bootstrap_servers='kafka:9092',group_id='consumer-1',auto_offset_reset='latest')
#consumer = KafkaConsumer(bootstrap_servers='localhost:32787',client_id="2",group_id='consumer-1',auto_offset_reset='latest')
consumer.subscribe... | 44 | 129 | 0.747475 | 51 | 396 | 5.588235 | 0.568627 | 0.02807 | 0.210526 | 0.259649 | 0.315789 | 0.315789 | 0.315789 | 0.315789 | 0.315789 | 0 | 0 | 0.040346 | 0.123737 | 396 | 9 | 130 | 44 | 0.78098 | 0.313131 | 0 | 0 | 0 | 0 | 0.158088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7dbc1a684c7fd3dcac591482da59492c3bbacc2d | 230 | py | Python | scripts/3-modulos-python/ex021.py | dev-alissonalves/python-codes | 376a5e52cebcf9e5102f55c6aa44745aaef50add | [
"MIT"
] | 1 | 2021-07-05T10:46:25.000Z | 2021-07-05T10:46:25.000Z | scripts/3-modulos-python/ex021.py | dev-alissonalves/python-codes | 376a5e52cebcf9e5102f55c6aa44745aaef50add | [
"MIT"
] | null | null | null | scripts/3-modulos-python/ex021.py | dev-alissonalves/python-codes | 376a5e52cebcf9e5102f55c6aa44745aaef50add | [
"MIT"
] | 1 | 2021-07-05T15:41:08.000Z | 2021-07-05T15:41:08.000Z | # -*- coding: UTF-8 -*-
#Faça um programa em python que abra e reproduza o áudio de um arquivo MP3
import pygame
pygame.init()
pygame.mixer.music.load("ex021.mp3")
pygame.mixer.music.play()
pygame.event.wait()
#executar no pycharm | 28.75 | 74 | 0.743478 | 38 | 230 | 4.5 | 0.789474 | 0.128655 | 0.187135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029703 | 0.121739 | 230 | 8 | 75 | 28.75 | 0.816832 | 0.491304 | 0 | 0 | 0 | 0 | 0.078947 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7dbf28d4e0cb3255620fe02baaf4ea019f134d70 | 1,596 | py | Python | sites.py | dpapathanasiou/cmdline-news | c9bbf6896ea03a374924c38b3c13ee9f5f78e84e | [
"MIT"
] | 3 | 2015-07-18T13:48:52.000Z | 2018-06-25T02:56:04.000Z | sites.py | dpapathanasiou/cmdline-news | c9bbf6896ea03a374924c38b3c13ee9f5f78e84e | [
"MIT"
] | null | null | null | sites.py | dpapathanasiou/cmdline-news | c9bbf6896ea03a374924c38b3c13ee9f5f78e84e | [
"MIT"
] | 2 | 2015-01-13T21:33:09.000Z | 2018-06-25T02:56:06.000Z | #!/usr/bin/env python
"""
This is a convenience dict of feed urls and their short names (keys)
which can be used at the interactive prompt.
The feed dict values are themselves dicts, with a single required 'url'
attribute.
There are also optional, information settings that can be added or edited
as necessary:
'stri... | 29.018182 | 74 | 0.721805 | 253 | 1,596 | 4.525692 | 0.616601 | 0.015721 | 0.012227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007183 | 0.214912 | 1,596 | 54 | 75 | 29.555556 | 0.906624 | 0.912281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
7dbf2a729793191a1e17592235eb44c9a887ee52 | 331 | py | Python | schemas/location_schema.py | yhy940806/flask-restfulapi-snippet | fc71805c3467bd34cbd70bf3a32eac4712270bb9 | [
"MIT"
] | 42 | 2018-11-04T02:04:59.000Z | 2022-03-14T07:41:13.000Z | schemas/location_schema.py | yhy940806/flask-restfulapi-snippet | fc71805c3467bd34cbd70bf3a32eac4712270bb9 | [
"MIT"
] | 1 | 2020-02-15T17:07:23.000Z | 2020-02-15T17:07:23.000Z | schemas/location_schema.py | yhy940806/flask-restfulapi-snippet | fc71805c3467bd34cbd70bf3a32eac4712270bb9 | [
"MIT"
] | 14 | 2020-09-20T16:44:39.000Z | 2022-01-05T16:14:53.000Z | add_location_schema = {
"type": "object",
"properties": {
"state": {"type": "string"},
"capital": {"type": "string"}
},
"required": ["state", "capital"]
}
update_capital_schema = {
"type": "object",
"properties": {
"capital": {"type": "string"}
},
"required": ["c... | 19.470588 | 37 | 0.495468 | 26 | 331 | 6.153846 | 0.423077 | 0.1875 | 0.2 | 0.325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.268882 | 331 | 16 | 38 | 20.6875 | 0.661157 | 0 | 0 | 0.4 | 0 | 0 | 0.374622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7dc59c6920668cd0e49daeac2c9bb4b3a49c36bd | 485 | py | Python | validations/sq_metrics/loudness_zwst/input/ISO_532_1/test_signal_1.py | wantysal/MoSQITooo | ef348c1d08a7831e673ac6c0819e2a74b07dc957 | [
"Apache-2.0"
] | 1 | 2022-02-20T15:09:32.000Z | 2022-02-20T15:09:32.000Z | validations/sq_metrics/loudness_zwst/input/ISO_532_1/test_signal_1.py | Igarciac117/MoSQITo | a52f9ff120db9f9c46f4309d28d9e1568a5b4120 | [
"Apache-2.0"
] | 1 | 2022-02-22T09:13:20.000Z | 2022-02-22T09:13:20.000Z | validations/sq_metrics/loudness_zwst/input/ISO_532_1/test_signal_1.py | Igarciac117/MoSQITo | a52f9ff120db9f9c46f4309d28d9e1568a5b4120 | [
"Apache-2.0"
] | null | null | null | from numpy import array
# Third octave levels as input for stationary loudness
# (from ISO 532-1 annex B2)
test_signal_1 = array(
[
-60,
-60,
78,
79,
89,
72,
80,
89,
75,
87,
85,
79,
86,
80,
71,
... | 13.108108 | 54 | 0.325773 | 51 | 485 | 3.058824 | 0.803922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.316583 | 0.589691 | 485 | 36 | 55 | 13.472222 | 0.467337 | 0.160825 | 0 | 0.393939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.030303 | 0 | 0.030303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.