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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80d04c6b338875d1ce6254869a66492f227ec462 | 188 | py | Python | install.py | yandenghong/env_installer | 76388cdcb4fe964b54bc6f51f071a6d55bf09b89 | [
"MIT"
] | 1 | 2019-08-28T15:51:57.000Z | 2019-08-28T15:51:57.000Z | install.py | yandenghong/env_installer | 76388cdcb4fe964b54bc6f51f071a6d55bf09b89 | [
"MIT"
] | 1 | 2019-09-06T03:01:09.000Z | 2019-09-06T07:39:07.000Z | install.py | yandenghong/env_installer | 76388cdcb4fe964b54bc6f51f071a6d55bf09b89 | [
"MIT"
] | null | null | null | import os
import sys
from src.env_installer import env_installer
if __name__ == '__main__':
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
env_installer.install()
| 17.090909 | 63 | 0.75 | 27 | 188 | 4.666667 | 0.592593 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.138298 | 188 | 10 | 64 | 18.8 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.042781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
037d17bb1d9cff27c82591889d5708338038fdd5 | 85 | py | Python | sawpit/ws_timeout_error.py | jamsidedown/sawpit | 9ef36f10e6deb7f3caab802945afff982abaf986 | [
"MIT"
] | null | null | null | sawpit/ws_timeout_error.py | jamsidedown/sawpit | 9ef36f10e6deb7f3caab802945afff982abaf986 | [
"MIT"
] | null | null | null | sawpit/ws_timeout_error.py | jamsidedown/sawpit | 9ef36f10e6deb7f3caab802945afff982abaf986 | [
"MIT"
] | null | null | null | class WSTimeoutError(Exception):
'''The operation exceeded the given deadline'''
| 28.333333 | 51 | 0.752941 | 9 | 85 | 7.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141176 | 85 | 2 | 52 | 42.5 | 0.876712 | 0.482353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
038b7e750287bef9e42054f90f60361858b2d6fb | 223 | py | Python | cmapBQ/auth.py | cmap/cmapBQ | 4bac69bd683264f40ee6a7716b62a01a6b2f2f27 | [
"MIT"
] | 5 | 2020-12-18T13:45:35.000Z | 2021-10-08T04:07:59.000Z | cmapBQ/auth.py | cmap/cmapBQ | 4bac69bd683264f40ee6a7716b62a01a6b2f2f27 | [
"MIT"
] | 2 | 2020-12-01T13:41:31.000Z | 2020-12-17T14:32:23.000Z | cmapBQ/auth.py | cmap/cmapBQ | 4bac69bd683264f40ee6a7716b62a01a6b2f2f27 | [
"MIT"
] | 4 | 2020-12-26T11:07:14.000Z | 2021-11-04T07:17:48.000Z | import os
def _check_path_exists():
PATH = os.path.expanduser('~/.cmapBQ')
if os.path.exists(PATH):
pass
else:
os.mkdir(PATH)
return PATH
def _get_credentials():
_check_path_exists()
| 14.866667 | 42 | 0.623318 | 29 | 223 | 4.517241 | 0.517241 | 0.229008 | 0.229008 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.255605 | 223 | 14 | 43 | 15.928571 | 0.789157 | 0 | 0 | 0 | 0 | 0 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.1 | 0.1 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
039f8dc736649b13a27ab2ddc6cad4586f0ffff8 | 480 | py | Python | exer808.py | profnssorg/valmorMantelli1 | a9a42218b54da208e834f333aa5242d14639b28b | [
"MIT"
] | null | null | null | exer808.py | profnssorg/valmorMantelli1 | a9a42218b54da208e834f333aa5242d14639b28b | [
"MIT"
] | null | null | null | exer808.py | profnssorg/valmorMantelli1 | a9a42218b54da208e834f333aa5242d14639b28b | [
"MIT"
] | null | null | null | ###Título: Função
###Descrição: Este programa calcula o minimo multiplo comum
###Autor: Valmor Mantelli Jr.
###Data: 15/01/2018
###Versão 0.0.3
### Declaração de variáveis
### Entrada de dados
### Processamento de dados
def mdc (a, b):
if b == 0:
return a
return mdc (b, a% b)
def mmc (a, b):
return abs(a*... | 17.142857 | 66 | 0.61875 | 83 | 480 | 3.578313 | 0.554217 | 0.03367 | 0.03367 | 0.161616 | 0.242424 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058047 | 0.210417 | 480 | 27 | 67 | 17.777778 | 0.725594 | 0.404167 | 0 | 0 | 0 | 0 | 0.305019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.625 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
03a589b894f9569ca8a37c6ceda9e73f0855eaa2 | 38,582 | py | Python | test/test_WorkflowTracker.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2019-03-18T18:27:49.000Z | 2019-03-18T18:27:49.000Z | test/test_WorkflowTracker.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2020-12-17T21:33:15.000Z | 2020-12-17T21:35:41.000Z | test/test_WorkflowTracker.py | gonzalorodrigo/ScSFWorkload | 2301dacf486df8ed783c0ba33cbbde6e9978c17e | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-01-05T08:23:20.000Z | 2021-01-05T08:23:20.000Z | """UNIT TESTS for the the class extractig workflows from the traces
python -m unittest test_WorkflowTracker
"""
from commonLib.DBManager import DB
from commonLib.nerscUtilization import _apply_deltas_usage
import os
from stats import Histogram, NumericStats
from stats.workflow import TaskTracker, WorkflowTracker,... | 41.755411 | 86 | 0.460292 | 4,277 | 38,582 | 3.832125 | 0.059387 | 0.099451 | 0.075168 | 0.010006 | 0.805247 | 0.758145 | 0.71446 | 0.679561 | 0.664002 | 0.632154 | 0 | 0.114802 | 0.421803 | 38,582 | 924 | 87 | 41.755411 | 0.619912 | 0.004303 | 0 | 0.679408 | 0 | 0 | 0.181731 | 0.047835 | 0 | 0 | 0 | 0 | 0.165228 | 1 | 0.033292 | false | 0.001233 | 0.009864 | 0 | 0.049322 | 0.003699 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
03cbc5e69dd63116b6a96e2772aaafaf44cca081 | 178 | py | Python | house/forms.py | talhaibnmahmud/System-Development-Project | 221ab5856dfcb00aff0fe8838bb9f40c725dbbf6 | [
"MIT"
] | null | null | null | house/forms.py | talhaibnmahmud/System-Development-Project | 221ab5856dfcb00aff0fe8838bb9f40c725dbbf6 | [
"MIT"
] | null | null | null | house/forms.py | talhaibnmahmud/System-Development-Project | 221ab5856dfcb00aff0fe8838bb9f40c725dbbf6 | [
"MIT"
] | null | null | null | from django.forms.models import ModelForm
from house.models import House
class HouseCreateForm(ModelForm):
class Meta:
model = House
exclude = ['owner', ]
| 17.8 | 41 | 0.685393 | 20 | 178 | 6.1 | 0.65 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235955 | 178 | 9 | 42 | 19.777778 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.02809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
03d67f945657e5f2fe8e39b4cf4cb96d1521b058 | 128,145 | py | Python | custom.py | xnaas/custom-sopel-plugins | e2ab8b432095b005ae8291633bbdde4ced663c5a | [
"WTFPL"
] | 1 | 2021-01-10T06:28:08.000Z | 2021-01-10T06:28:08.000Z | custom.py | xnaas/custom-sopel-plugins | e2ab8b432095b005ae8291633bbdde4ced663c5a | [
"WTFPL"
] | 3 | 2021-05-29T00:55:35.000Z | 2021-09-28T20:55:35.000Z | custom.py | xnaas/custom-sopel-plugins | e2ab8b432095b005ae8291633bbdde4ced663c5a | [
"WTFPL"
] | 2 | 2021-05-24T18:31:14.000Z | 2021-07-30T19:56:30.000Z | from sopel import plugin, formatting
import random
import unicodedata
@plugin.search("!nod")
@plugin.command("nod")
def nod(bot, trigger):
"""Nod.
Can also be triggered with '!nod' anywhere in a message."""
bot.say("https://p.actionsack.com/trek/nod.webp")
@plugin.search("!spok")
@plugin.command("spok")... | 37.513173 | 1,781 | 0.646603 | 18,587 | 128,145 | 4.477215 | 0.159466 | 0.090269 | 0.240525 | 0.285623 | 0.522315 | 0.442885 | 0.179553 | 0.112368 | 0.103055 | 0.052068 | 0 | 0.009696 | 0.170986 | 128,145 | 3,415 | 1,782 | 37.524158 | 0.769066 | 0.05944 | 0 | 0.017034 | 0 | 0.019357 | 0.630104 | 0.003547 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130081 | false | 0.000774 | 0.001161 | 0 | 0.13163 | 0.000387 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
03e8aaa71e6398d41d03997830682617455ffb78 | 101 | py | Python | polecat/jsonapi/utils.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 4 | 2019-08-10T12:56:12.000Z | 2020-01-21T09:51:20.000Z | polecat/jsonapi/utils.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | 71 | 2019-04-09T05:39:21.000Z | 2020-05-16T23:09:24.000Z | polecat/jsonapi/utils.py | furious-luke/polecat | 7be5110f76dc42b15c922c1bb7d49220e916246d | [
"MIT"
] | null | null | null | def strip_default(type):
if type.startswith('default:'):
type = type[8:]
return type
| 20.2 | 35 | 0.613861 | 13 | 101 | 4.692308 | 0.615385 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.247525 | 101 | 4 | 36 | 25.25 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
206433d5783fa08c5d8c01be5f73465893c32721 | 270 | py | Python | users/admin.py | D-GopalKrishna/RobotixWeb2021 | 3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2 | [
"Apache-2.0"
] | null | null | null | users/admin.py | D-GopalKrishna/RobotixWeb2021 | 3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2 | [
"Apache-2.0"
] | null | null | null | users/admin.py | D-GopalKrishna/RobotixWeb2021 | 3f99d41b2c4c99a3d1a214db1489f3e2fb1bfbb2 | [
"Apache-2.0"
] | 2 | 2021-01-30T08:22:57.000Z | 2021-02-04T09:42:59.000Z | from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
from .models import UserProfile
# Register your models here.
# admin.site.register(UserProfile)
@admin.register(UserProfile)
class UserProfileAdmin(ImportExportModelAdmin):
pass
| 30 | 54 | 0.837037 | 30 | 270 | 7.5 | 0.533333 | 0.168889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 270 | 8 | 55 | 33.75 | 0.925926 | 0.218519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.666667 | 0 | 0.833333 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
20b6e29ef4c7d0f36e14f0b2c87945ecd163c837 | 140 | py | Python | LM-1221 intro-python-xml/py-primer-2/my_data_types_sol.py | russellpope/devnet-express-dc | 4bdb2194abdee2fc950c2ff20e607aa4af9b68b5 | [
"Apache-2.0"
] | null | null | null | LM-1221 intro-python-xml/py-primer-2/my_data_types_sol.py | russellpope/devnet-express-dc | 4bdb2194abdee2fc950c2ff20e607aa4af9b68b5 | [
"Apache-2.0"
] | null | null | null | LM-1221 intro-python-xml/py-primer-2/my_data_types_sol.py | russellpope/devnet-express-dc | 4bdb2194abdee2fc950c2ff20e607aa4af9b68b5 | [
"Apache-2.0"
] | null | null | null | my_list=[5,'joe']
print (my_list[1])
my_tuple=('brett','Cisco',9)
print (my_tuple[0])
my_dict={"red":1,"green":2}
print(my_dict["green"]) | 15.555556 | 28 | 0.65 | 27 | 140 | 3.148148 | 0.555556 | 0.247059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046154 | 0.071429 | 140 | 9 | 29 | 15.555556 | 0.607692 | 0 | 0 | 0 | 0 | 0 | 0.184397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
20e34f12cec0f2e70c6050263c59e3a8e320e274 | 163 | py | Python | twitterbot/exceptions.py | this-is-r-gaurav/twitter-bot | 9736f70f1682d42413954a24dd11e192e1be9abf | [
"MIT"
] | null | null | null | twitterbot/exceptions.py | this-is-r-gaurav/twitter-bot | 9736f70f1682d42413954a24dd11e192e1be9abf | [
"MIT"
] | null | null | null | twitterbot/exceptions.py | this-is-r-gaurav/twitter-bot | 9736f70f1682d42413954a24dd11e192e1be9abf | [
"MIT"
] | 1 | 2022-01-06T04:47:12.000Z | 2022-01-06T04:47:12.000Z | from dataclasses import dataclass
@dataclass
class TwitterBotException(BaseException):
msg: str
class MaximumRetryException(TwitterBotException):
pass
| 14.818182 | 49 | 0.803681 | 14 | 163 | 9.357143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147239 | 163 | 10 | 50 | 16.3 | 0.942446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.166667 | 0 | 0.666667 | 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 | 1 | 0 | 0 | 4 |
20ede434f440fac0e8df7238f1d217b5ee0f9e2f | 98 | py | Python | script/TS2-DoubleArmV7A.py | WRS-TDRRC/WRS-TDRRC-2020 | 5bb66f8494d8998549b87047c3501cc3241c9388 | [
"CC0-1.0"
] | null | null | null | script/TS2-DoubleArmV7A.py | WRS-TDRRC/WRS-TDRRC-2020 | 5bb66f8494d8998549b87047c3501cc3241c9388 | [
"CC0-1.0"
] | null | null | null | script/TS2-DoubleArmV7A.py | WRS-TDRRC/WRS-TDRRC-2020 | 5bb66f8494d8998549b87047c3501cc3241c9388 | [
"CC0-1.0"
] | 2 | 2020-05-26T04:14:06.000Z | 2021-09-30T06:35:14.000Z | import WRSUtil
WRSUtil.loadProject(
"MultiSceneViews", "TS2", "AGXSimulator", "DoubleArmV7A")
| 24.5 | 61 | 0.744898 | 8 | 98 | 9.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 0.112245 | 98 | 3 | 62 | 32.666667 | 0.816092 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
45511c19b1903658a9257bc6d4295b81bbceaf53 | 175 | py | Python | helpers/registry/WhaleRegistryAction.py | mandalorian-101/badger-system | 2b0ee9bd77a2cc6f875b9b984ae4dfe713bbc55c | [
"MIT"
] | null | null | null | helpers/registry/WhaleRegistryAction.py | mandalorian-101/badger-system | 2b0ee9bd77a2cc6f875b9b984ae4dfe713bbc55c | [
"MIT"
] | null | null | null | helpers/registry/WhaleRegistryAction.py | mandalorian-101/badger-system | 2b0ee9bd77a2cc6f875b9b984ae4dfe713bbc55c | [
"MIT"
] | null | null | null | from dotmap import DotMap
from enum import Enum
class WhaleRegistryAction(Enum):
DISTRIBUTE_FROM_EOA = 0,
DISTRIBUTE_FROM_CONTRACT = 1,
POPULATE_NEW_SUSHI_LP = 2
| 21.875 | 33 | 0.771429 | 24 | 175 | 5.333333 | 0.666667 | 0.21875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020979 | 0.182857 | 175 | 7 | 34 | 25 | 0.874126 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
45574ca2a6f7699172c98b32c5c9518e7fba66c5 | 201 | py | Python | backend/app/schemas/UserActivityResponse.py | cyfronet-fid/profile-service | f4102c2e51d9a9d5aa65f9917ba71af2eb3e4f79 | [
"MIT"
] | null | null | null | backend/app/schemas/UserActivityResponse.py | cyfronet-fid/profile-service | f4102c2e51d9a9d5aa65f9917ba71af2eb3e4f79 | [
"MIT"
] | 9 | 2022-01-14T07:08:17.000Z | 2022-01-20T07:23:51.000Z | backend/app/schemas/UserActivityResponse.py | cyfronet-fid/user-dashboard | f4102c2e51d9a9d5aa65f9917ba71af2eb3e4f79 | [
"MIT"
] | null | null | null | from typing import Optional
from pydantic import BaseModel
from pydantic.networks import HttpUrl
class UserActivityResponse(BaseModel):
type: str
description: str
url: Optional[HttpUrl]
| 18.272727 | 38 | 0.781095 | 23 | 201 | 6.826087 | 0.608696 | 0.152866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174129 | 201 | 10 | 39 | 20.1 | 0.945783 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
457a20587513e47d936b5ce75d75e93e648f6bfa | 513 | py | Python | utils/process_stdout.py | SparkleChen/MillionHero | 24f23c233192ae081903a6bab72b31dfaacce4a5 | [
"MIT"
] | 3 | 2018-04-16T11:07:50.000Z | 2021-06-16T11:55:49.000Z | utils/process_stdout.py | 18482175910/MillionHero | 24f23c233192ae081903a6bab72b31dfaacce4a5 | [
"MIT"
] | 6 | 2021-03-18T20:20:05.000Z | 2022-03-11T23:15:25.000Z | utils/process_stdout.py | 18482175910/MillionHero | 24f23c233192ae081903a6bab72b31dfaacce4a5 | [
"MIT"
] | 1 | 2020-08-08T02:53:16.000Z | 2020-08-08T02:53:16.000Z | # -*- coding: utf-8 -*-
"""
multiprocess stdout
"""
from multiprocessing import Queue
class ProcessStdout(object):
def __init__(self):
self.__message_queue = Queue(100)
@property
def queue(self):
return self.__message_queue
def write(self, message):
self.__me... | 17.1 | 44 | 0.604288 | 56 | 513 | 5.232143 | 0.5 | 0.225256 | 0.21843 | 0.150171 | 0.1843 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010959 | 0.288499 | 513 | 29 | 45 | 17.689655 | 0.791781 | 0.083821 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.066667 | 0.066667 | 0.6 | 0.066667 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
45ad077f978d7d3f92a2b8d66a25b0ead45d35f8 | 51 | py | Python | hashily/utils/__init__.py | Thuliumitation/hashily | 9ba8617edecf506ceeb2118f7bfc2c0641dd65a3 | [
"MIT"
] | 11 | 2022-02-09T07:57:08.000Z | 2022-02-12T12:41:53.000Z | utils/__init__.py | TrueMyst/hashily | aff0fc1b89194a5d8d0029aade9fe10cb2dd14b6 | [
"MIT"
] | null | null | null | utils/__init__.py | TrueMyst/hashily | aff0fc1b89194a5d8d0029aade9fe10cb2dd14b6 | [
"MIT"
] | 4 | 2022-02-09T08:12:44.000Z | 2022-02-12T10:20:09.000Z | from .exceptions import *
from .constants import *
| 17 | 25 | 0.764706 | 6 | 51 | 6.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 51 | 2 | 26 | 25.5 | 0.906977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
afddfcaabf43161c908f49321f9d3bc31a359d9f | 163 | py | Python | run.py | excal04/scanviz | a66ba1fdab475bf62bd6c0107b3ef4667bac4e4d | [
"MIT"
] | null | null | null | run.py | excal04/scanviz | a66ba1fdab475bf62bd6c0107b3ef4667bac4e4d | [
"MIT"
] | 46 | 2017-04-10T06:32:38.000Z | 2020-06-22T10:02:18.000Z | run.py | excal04/scanviz | a66ba1fdab475bf62bd6c0107b3ef4667bac4e4d | [
"MIT"
] | null | null | null | """
run.py: run script for scanviz web app, this runs the app for development environment
author: Jeff
date: 10/2016
"""
from app import app
app.run(debug=True)
| 16.3 | 85 | 0.736196 | 28 | 163 | 4.285714 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044118 | 0.165644 | 163 | 9 | 86 | 18.111111 | 0.838235 | 0.687117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b300c5d03b37b2ac9453040d82a7983bc4ac2ff6 | 47 | py | Python | Ex6.py | akhilsambasivan/PythonPractices | 887a26ca172329e9d232dcdf2b993b2a6bb6584b | [
"MIT"
] | 1 | 2019-07-26T16:30:15.000Z | 2019-07-26T16:30:15.000Z | Ex6.py | akhilsambasivan/PythonPractices | 887a26ca172329e9d232dcdf2b993b2a6bb6584b | [
"MIT"
] | null | null | null | Ex6.py | akhilsambasivan/PythonPractices | 887a26ca172329e9d232dcdf2b993b2a6bb6584b | [
"MIT"
] | null | null | null | my_str=""
my_new_str=" "
print('bool{my_str}') | 11.75 | 21 | 0.659574 | 9 | 47 | 3 | 0.555556 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 47 | 4 | 21 | 11.75 | 0.627907 | 0 | 0 | 0 | 0 | 0 | 0.270833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 1 | 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 | 4 |
b335fbca5dd6dd1fbe59d212f92cb3a672affffa | 91 | py | Python | catcoin/meow.py | val-labs/catcoinledger | e46f5f188a0d326ebf4d01f95c091d5ae26d01fa | [
"Apache-2.0"
] | 1 | 2018-07-29T21:12:52.000Z | 2018-07-29T21:12:52.000Z | catcoin/meow.py | val-labs/catcoinledger | e46f5f188a0d326ebf4d01f95c091d5ae26d01fa | [
"Apache-2.0"
] | null | null | null | catcoin/meow.py | val-labs/catcoinledger | e46f5f188a0d326ebf4d01f95c091d5ae26d01fa | [
"Apache-2.0"
] | null | null | null | import sys, time
from catcoin.api import *
connect()
meow(sys.argv[1])
time.sleep(1000000)
| 15.166667 | 25 | 0.747253 | 15 | 91 | 4.533333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098765 | 0.10989 | 91 | 5 | 26 | 18.2 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b34d2d0dae8fe11976b302d8ee99f0923f2134a8 | 54 | py | Python | cfglib/sources/__init__.py | swarmer/cfglib-py | b34e93ac077bd5ff9f2199c1b3f75f317a8a7713 | [
"MIT"
] | null | null | null | cfglib/sources/__init__.py | swarmer/cfglib-py | b34e93ac077bd5ff9f2199c1b3f75f317a8a7713 | [
"MIT"
] | 10 | 2019-09-19T14:15:20.000Z | 2019-11-13T14:16:16.000Z | cfglib/sources/__init__.py | swarmer/cfglib-py | b34e93ac077bd5ff9f2199c1b3f75f317a8a7713 | [
"MIT"
] | null | null | null | """Configs that take values from external sources."""
| 27 | 53 | 0.740741 | 7 | 54 | 5.714286 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12963 | 54 | 1 | 54 | 54 | 0.851064 | 0.87037 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b352dbc8f002b2158c2823018ac152a8741c5cfb | 25,708 | py | Python | wagtail/wagtailcore/tests.py | mattcaldwell/wagtail | 797418f54947dcb3734f37816036bf1af03db9a1 | [
"BSD-3-Clause"
] | 1 | 2015-11-05T18:02:04.000Z | 2015-11-05T18:02:04.000Z | wagtail/wagtailcore/tests.py | mattcaldwell/wagtail | 797418f54947dcb3734f37816036bf1af03db9a1 | [
"BSD-3-Clause"
] | null | null | null | wagtail/wagtailcore/tests.py | mattcaldwell/wagtail | 797418f54947dcb3734f37816036bf1af03db9a1 | [
"BSD-3-Clause"
] | null | null | null | from django.test import TestCase, Client
from django.http import HttpRequest, Http404
from django.contrib.auth.models import User
from wagtail.wagtailcore.models import Page, Site
from wagtail.tests.models import EventPage
class TestRouting(TestCase):
fixtures = ['test.json']
def test_find_site_for_request... | 43.945299 | 163 | 0.697293 | 3,231 | 25,708 | 5.332714 | 0.077066 | 0.040859 | 0.044515 | 0.058212 | 0.845908 | 0.812594 | 0.7574 | 0.697098 | 0.665932 | 0.583459 | 0 | 0.004002 | 0.193247 | 25,708 | 584 | 164 | 44.020548 | 0.82676 | 0.114322 | 0 | 0.536896 | 0 | 0 | 0.090185 | 0.038971 | 0 | 0 | 0 | 0 | 0.46056 | 1 | 0.104326 | false | 0 | 0.015267 | 0 | 0.145038 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b370fde569e6362962866e0bdb6c2f4365c844ac | 21 | py | Python | Modulars/__init__.py | Wang-Haolong/Preservation_of_teaching_materials | 28d407dbd1df355a8445bf4486af6b8a6db14557 | [
"MIT"
] | null | null | null | Modulars/__init__.py | Wang-Haolong/Preservation_of_teaching_materials | 28d407dbd1df355a8445bf4486af6b8a6db14557 | [
"MIT"
] | null | null | null | Modulars/__init__.py | Wang-Haolong/Preservation_of_teaching_materials | 28d407dbd1df355a8445bf4486af6b8a6db14557 | [
"MIT"
] | null | null | null | '''By Wang Haolong''' | 21 | 21 | 0.619048 | 3 | 21 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 21 | 1 | 21 | 21 | 0.684211 | 0.714286 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b3732077c44486bd338766f23b82fd195c40da98 | 88 | py | Python | web/controllers/__init__.py | zhy0216/Conuread | ebaf28ee1262829247f889f71db4b6dd1db554d4 | [
"MIT"
] | 6 | 2015-08-07T06:17:14.000Z | 2017-12-20T05:56:37.000Z | web/controllers/__init__.py | zhy0216/Conuread | ebaf28ee1262829247f889f71db4b6dd1db554d4 | [
"MIT"
] | null | null | null | web/controllers/__init__.py | zhy0216/Conuread | ebaf28ee1262829247f889f71db4b6dd1db554d4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import frontend
import feed
import feedsite
import popfeedsite
| 14.666667 | 24 | 0.738636 | 12 | 88 | 5.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.147727 | 88 | 5 | 25 | 17.6 | 0.853333 | 0.238636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 1 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
2fd3cabc04d9e24cddbd2359062433a58cf377ff | 383 | py | Python | feature_engineering.py | kukretinishtha/digit-recognition | 4e3ffdf91c4ef467954a1e3118d0cc1496c232fe | [
"MIT"
] | null | null | null | feature_engineering.py | kukretinishtha/digit-recognition | 4e3ffdf91c4ef467954a1e3118d0cc1496c232fe | [
"MIT"
] | null | null | null | feature_engineering.py | kukretinishtha/digit-recognition | 4e3ffdf91c4ef467954a1e3118d0cc1496c232fe | [
"MIT"
] | null | null | null | from tensorflow.keras.utils import to_categorical
def feature_normalization(dataframe, number_of_pixels):
dataframe = dataframe.astype('float32')
dataframe /= number_of_pixels
return dataframe
def convert_labels_to_one_hot_encoded(labels_dataframe, number_of_labels):
labels_dataframe = to_categorical(... | 38.3 | 74 | 0.825065 | 48 | 383 | 6.166667 | 0.458333 | 0.202703 | 0.22973 | 0.155405 | 0.195946 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005917 | 0.117493 | 383 | 10 | 75 | 38.3 | 0.869822 | 0 | 0 | 0 | 0 | 0 | 0.018229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.625 | 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 | 1 | 0 | 0 | 4 |
ff798106500c446c4434acdf322789f4cf6982ee | 67 | py | Python | tests/__init__.py | YonnXyz/innov-python | c0f286694dc08e3acae5930d05b4ae5bc4c5de22 | [
"Apache-2.0"
] | 1 | 2019-04-30T23:24:52.000Z | 2019-04-30T23:24:52.000Z | tests/__init__.py | YonnXyz/innov-python | c0f286694dc08e3acae5930d05b4ae5bc4c5de22 | [
"Apache-2.0"
] | 1 | 2020-12-04T03:20:13.000Z | 2020-12-04T03:20:13.000Z | tests/__init__.py | YonnXyz/innov-python | c0f286694dc08e3acae5930d05b4ae5bc4c5de22 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# © Max Solutions, Co. All rights reserved. | 33.5 | 43 | 0.61194 | 10 | 67 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.179104 | 67 | 2 | 43 | 33.5 | 0.727273 | 0.940299 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ff8fb31812750bc24fe0e6e1d78f7f69d3179312 | 21 | py | Python | python/testData/completion/async.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/completion/async.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/completion/async.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | asy<caret> # Comment
| 10.5 | 20 | 0.714286 | 3 | 21 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 21 | 1 | 21 | 21 | 0.833333 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ff901565821acf1b6a82ce8af5dbbfcf44e1fe8e | 199 | py | Python | appmap/test/data/unittest/simple/__init__.py | virajkanwade/appmap-python | 5ca806f9b23d2f80b53e7644c88a1cca18ab2f37 | [
"MIT"
] | null | null | null | appmap/test/data/unittest/simple/__init__.py | virajkanwade/appmap-python | 5ca806f9b23d2f80b53e7644c88a1cca18ab2f37 | [
"MIT"
] | 1 | 2021-03-13T05:09:56.000Z | 2021-03-13T05:09:56.000Z | appmap/test/data/unittest/simple/__init__.py | virajkanwade/appmap-python | 5ca806f9b23d2f80b53e7644c88a1cca18ab2f37 | [
"MIT"
] | null | null | null | class Simple:
def hello(self):
return 'Hello'
def world(self):
return 'world'
def hello_world(self, bang):
return '%s %s%s' % (self.hello(), self.world(), bang)
| 19.9 | 61 | 0.552764 | 26 | 199 | 4.192308 | 0.346154 | 0.146789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.291457 | 199 | 9 | 62 | 22.111111 | 0.77305 | 0 | 0 | 0 | 0 | 0 | 0.085427 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.428571 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
ffa72fc47b470fbb0656741a8e7e776ec0b5ec36 | 221 | py | Python | Aplikacja_Webowa_Etap_3/sixth_app/src/service/entity/author.py | ivanprokopets/Aplikacja_Webowa | 48b1b2e949fbfa2e47e801522648f3949f6a93cb | [
"MIT"
] | 1 | 2020-01-14T08:35:22.000Z | 2020-01-14T08:35:22.000Z | Aplikacja_Webowa_Etap_3/sixth_app/src/service/entity/author.py | ivanprokopets/Web-application | 48b1b2e949fbfa2e47e801522648f3949f6a93cb | [
"MIT"
] | null | null | null | Aplikacja_Webowa_Etap_3/sixth_app/src/service/entity/author.py | ivanprokopets/Web-application | 48b1b2e949fbfa2e47e801522648f3949f6a93cb | [
"MIT"
] | null | null | null | import json
class Author:
def __init__(self, id, name, surname):
self.id = id
self.name = name
self.surname = surname
@classmethod
def from_json(cls, data):
return cls(**data) | 20.090909 | 42 | 0.588235 | 28 | 221 | 4.464286 | 0.535714 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.312217 | 221 | 11 | 43 | 20.090909 | 0.822368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 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 | 1 | 1 | 0 | 0 | 4 |
ffb27797ad95c7c09c907972ab265d247f8d39f9 | 186 | py | Python | run.py | karascr/AirSim-PyTorch-Drone | 7f3dbd54d879899a9265c24b76024a114ec86122 | [
"MIT"
] | 4 | 2021-03-27T07:51:05.000Z | 2021-07-01T03:45:36.000Z | run.py | karascr/AirSim-PyTorch-Drone | 7f3dbd54d879899a9265c24b76024a114ec86122 | [
"MIT"
] | 1 | 2021-03-27T07:54:58.000Z | 2021-05-24T08:25:25.000Z | run.py | karascr/AirSim-PyTorch-Drone | 7f3dbd54d879899a9265c24b76024a114ec86122 | [
"MIT"
] | 1 | 2021-11-17T01:09:26.000Z | 2021-11-17T01:09:26.000Z | from agent import DQN_Agent
from ddqn_agent import DDQN_Agent
if __name__ == "__main__":
ddqn_agent = DDQN_Agent(useDepth=False)
ddqn_agent.train()
#ddqn_agent.test_agent()
| 23.25 | 43 | 0.752688 | 27 | 186 | 4.592593 | 0.444444 | 0.435484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16129 | 186 | 7 | 44 | 26.571429 | 0.794872 | 0.123656 | 0 | 0 | 0 | 0 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ffb995f0cc2e605e3ae73d1490629aa98b45bcb0 | 104 | py | Python | scenesim/physics/__init__.py | pbattaglia/scenesim | 2633c63bc5cb97ea99017b2e25fc9b4f66d72605 | [
"MIT"
] | 9 | 2015-03-10T16:00:51.000Z | 2020-10-14T17:18:25.000Z | scenesim/physics/__init__.py | jhamrick/scenesim | 6ff41c1428a32c078104332431906f4faa0990db | [
"MIT"
] | 1 | 2015-02-13T01:39:46.000Z | 2015-04-28T02:54:50.000Z | scenesim/physics/__init__.py | jhamrick/scenesim | 6ff41c1428a32c078104332431906f4faa0990db | [
"MIT"
] | null | null | null | """
scenesim.physics
"""
from scenesim.physics.bulletbase import BulletBase
__all__ = ("BulletBase",)
| 13 | 50 | 0.740385 | 10 | 104 | 7.3 | 0.6 | 0.410959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115385 | 104 | 7 | 51 | 14.857143 | 0.793478 | 0.153846 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
440282b9e418a56ea4fe25494ce6f2bf170b1d93 | 612 | py | Python | src/micromind/io/image.py | MicroMedIAn/MicroMind | 93e3e91ce4f210cf0a676a79edcdcf04fa6b4818 | [
"MIT"
] | 1 | 2021-01-21T13:56:45.000Z | 2021-01-21T13:56:45.000Z | src/micromind/io/image.py | MicroMedIAn/MicroMind | 93e3e91ce4f210cf0a676a79edcdcf04fa6b4818 | [
"MIT"
] | null | null | null | src/micromind/io/image.py | MicroMedIAn/MicroMind | 93e3e91ce4f210cf0a676a79edcdcf04fa6b4818 | [
"MIT"
] | null | null | null | import tifffile
import czifile
import cv2
def imread_color(filename):
return cv2.imread(filename, cv2.IMREAD_COLOR)
def imread_grayscale(filename):
return cv2.imread(filename, cv2.IMREAD_GRAYSCALE)
def imread_mirax(filename):
pass
def imread_lsm(filename):
return tifffile.imread(filename)
def ... | 17 | 53 | 0.75817 | 78 | 612 | 5.833333 | 0.24359 | 0.118681 | 0.112088 | 0.101099 | 0.373626 | 0.373626 | 0.373626 | 0 | 0 | 0 | 0 | 0.011516 | 0.148693 | 612 | 35 | 54 | 17.485714 | 0.861804 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.421053 | false | 0.052632 | 0.157895 | 0.263158 | 0.842105 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
440a1ba8157dfd3d3f039971dae41a2749c7a293 | 63 | py | Python | celligner2/metrics/__init__.py | broadinstitute/celligner2 | ddddb3f4c13c66277bc93b08ebe65c1cc0bd941c | [
"Unlicense"
] | null | null | null | celligner2/metrics/__init__.py | broadinstitute/celligner2 | ddddb3f4c13c66277bc93b08ebe65c1cc0bd941c | [
"Unlicense"
] | null | null | null | celligner2/metrics/__init__.py | broadinstitute/celligner2 | ddddb3f4c13c66277bc93b08ebe65c1cc0bd941c | [
"Unlicense"
] | null | null | null | from .metrics import entropy_batch_mixing, knn_purity, nmi, asw | 63 | 63 | 0.84127 | 10 | 63 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 63 | 1 | 63 | 63 | 0.877193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
441c599118cc6d914ced07752312872bb18c551f | 132 | py | Python | openet/ssebop/__init__.py | USGS-ET/ssebop-gee-beta | 7e7eb07e8a099ee5070fdd593759e00701373b2c | [
"Apache-2.0"
] | null | null | null | openet/ssebop/__init__.py | USGS-ET/ssebop-gee-beta | 7e7eb07e8a099ee5070fdd593759e00701373b2c | [
"Apache-2.0"
] | null | null | null | openet/ssebop/__init__.py | USGS-ET/ssebop-gee-beta | 7e7eb07e8a099ee5070fdd593759e00701373b2c | [
"Apache-2.0"
] | null | null | null | from .image import Image
from .collection import Collection
from . import interpolate
__version__ = "0.1.5"
MODEL_NAME = 'SSEBOP'
| 16.5 | 34 | 0.765152 | 18 | 132 | 5.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026786 | 0.151515 | 132 | 7 | 35 | 18.857143 | 0.830357 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
444236664336b21af8a6a86020b47905f304266d | 1,840 | py | Python | test/test_users_api.py | p-fruck/python-contabo | c3abd362a0b90783118f36bec0e557bdbe5a8f2c | [
"Apache-2.0"
] | 2 | 2022-01-27T10:36:33.000Z | 2022-03-09T14:21:12.000Z | test/test_users_api.py | p-fruck/python-contabo | c3abd362a0b90783118f36bec0e557bdbe5a8f2c | [
"Apache-2.0"
] | 7 | 2022-01-13T10:44:19.000Z | 2022-02-15T23:44:44.000Z | test/test_users_api.py | p-fruck/python-contabo | c3abd362a0b90783118f36bec0e557bdbe5a8f2c | [
"Apache-2.0"
] | null | null | null | """
Contabo API
The version of the OpenAPI document: 1.0.0
Contact: support@contabo.com
Generated by: https://openapi-generator.tech
"""
import unittest
import pfruck_contabo
from pfruck_contabo.api.users_api import UsersApi # noqa: E501
class TestUsersApi(unittest.TestCase):
"""UsersApi uni... | 20 | 63 | 0.595109 | 220 | 1,840 | 4.768182 | 0.281818 | 0.083889 | 0.094376 | 0.128694 | 0.360343 | 0.233556 | 0.156339 | 0.051478 | 0 | 0 | 0 | 0.028892 | 0.322826 | 1,840 | 91 | 64 | 20.21978 | 0.813002 | 0.429348 | 0 | 0.357143 | 1 | 0 | 0.009732 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.392857 | false | 0.392857 | 0.107143 | 0 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
44637a002ff5b23bfd74fa0b0aaa24699d8b7880 | 213 | py | Python | julie/physics/energy.py | MarcelloBB/julieutils | cffba53a1561d05660c2274ce0a9485bf9e0ddcf | [
"MIT"
] | 2 | 2021-08-23T15:16:43.000Z | 2021-11-01T15:29:02.000Z | julie/physics/energy.py | MarcelloBB/julieutils | cffba53a1561d05660c2274ce0a9485bf9e0ddcf | [
"MIT"
] | null | null | null | julie/physics/energy.py | MarcelloBB/julieutils | cffba53a1561d05660c2274ce0a9485bf9e0ddcf | [
"MIT"
] | null | null | null | def kinetic_energy(m : float, v : float) -> float:
"""
[FUNC] kinetic_energy:
Returns the kinetic energy in Joules
Where:
Mass = m
Velocity = v
"""
return (m * (v*v)) / 2 | 17.75 | 50 | 0.525822 | 27 | 213 | 4.074074 | 0.592593 | 0.354545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.347418 | 213 | 12 | 51 | 17.75 | 0.784173 | 0.441315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4464fe46c3e2b771f68bd899de7d264734ff2a95 | 1,385 | py | Python | cogs/maintenance.py | Raihan-J/TimeTableBot | 4e8d8bbda4f7c738326cf8595850bf8a56786d89 | [
"MIT"
] | 1 | 2020-10-31T11:04:00.000Z | 2020-10-31T11:04:00.000Z | cogs/maintenance.py | Raihan-J/TimeTableBot | 4e8d8bbda4f7c738326cf8595850bf8a56786d89 | [
"MIT"
] | null | null | null | cogs/maintenance.py | Raihan-J/TimeTableBot | 4e8d8bbda4f7c738326cf8595850bf8a56786d89 | [
"MIT"
] | null | null | null | import discord
import time
import asyncio
from discord.ext import commands
OWNERS = []
CHANNEL_IDS=[]
class Maintenance(commands.Cog):
def __init__(self, client):
self.client = client
@commands.command(pass_context=True)
async def s(self, ctx):
if len(CHANNEL_IDS) > 0 and ... | 39.571429 | 150 | 0.649097 | 198 | 1,385 | 4.469697 | 0.323232 | 0.112994 | 0.153672 | 0.149153 | 0.763842 | 0.763842 | 0.763842 | 0.677966 | 0.677966 | 0.677966 | 0 | 0.005769 | 0.249097 | 1,385 | 35 | 151 | 39.571429 | 0.843269 | 0 | 0 | 0.482759 | 0 | 0.068966 | 0.218195 | 0.034024 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.068966 | 0.137931 | 0 | 0.310345 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
44713a07917d5ae9781403911d3935700f545e0d | 71 | py | Python | ejemplo3.py | parzibyte/importar-archivos-python | d8b7945ebbfe53872976791bd4c7c2751603fcdd | [
"MIT"
] | 1 | 2022-01-16T19:27:21.000Z | 2022-01-16T19:27:21.000Z | ejemplo3.py | parzibyte/importar-archivos-python | d8b7945ebbfe53872976791bd4c7c2751603fcdd | [
"MIT"
] | null | null | null | ejemplo3.py | parzibyte/importar-archivos-python | d8b7945ebbfe53872976791bd4c7c2751603fcdd | [
"MIT"
] | null | null | null | import funciones
funciones.decir_hola()
funciones.saludar("Parzibyte") | 17.75 | 30 | 0.830986 | 8 | 71 | 7.25 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056338 | 71 | 4 | 30 | 17.75 | 0.865672 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
447d4a16e5cda70d325508c75ead4fa788ef5fbe | 814 | py | Python | unity/service/redis_service.py | slin1972/unity | bede13b04ee2c45ad87fcb878c89254e5f48ac8c | [
"Apache-2.0"
] | null | null | null | unity/service/redis_service.py | slin1972/unity | bede13b04ee2c45ad87fcb878c89254e5f48ac8c | [
"Apache-2.0"
] | null | null | null | unity/service/redis_service.py | slin1972/unity | bede13b04ee2c45ad87fcb878c89254e5f48ac8c | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
import logging
logger = logging.getLogger()
pool = None
def init(host, port, db, passwd):
import redis
global pool
pool = redis.ConnectionPool(host=host, port=port, db=db, password=passwd, max_connections=3)
def get_redis_client():
import redis
r = redis.Redis(connection_pool=... | 20.35 | 96 | 0.651106 | 113 | 814 | 4.59292 | 0.389381 | 0.080925 | 0.063584 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.233415 | 814 | 39 | 97 | 20.871795 | 0.826923 | 0.034398 | 0 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0.086957 | 0.130435 | 0.130435 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
9262118dfc8a5a1d8e72182dae46e1b60dc9a1b8 | 469 | py | Python | vcweb/core/templatetags/tags.py | Takato0120/social_ecological_system | fac94cba908fdff4104afa8ff241c37829df8cdd | [
"Apache-2.0"
] | 3 | 2015-06-12T13:23:25.000Z | 2021-05-13T16:30:40.000Z | vcweb/core/templatetags/tags.py | Takato0120/social_ecological_system | fac94cba908fdff4104afa8ff241c37829df8cdd | [
"Apache-2.0"
] | 61 | 2015-01-12T20:25:22.000Z | 2019-03-18T05:06:46.000Z | vcweb/core/templatetags/tags.py | Takato0120/social_ecological_system | fac94cba908fdff4104afa8ff241c37829df8cdd | [
"Apache-2.0"
] | 1 | 2018-05-23T00:54:28.000Z | 2018-05-23T00:54:28.000Z | from django import template
import logging
import re
logger = logging.getLogger(__name__)
register = template.Library()
@register.filter(is_safe=True)
def active(path, pattern):
return 'active' if pattern == path else ''
@register.filter(is_safe=True)
def active_re(path, pattern):
return 'active' if re.sea... | 21.318182 | 55 | 0.746269 | 67 | 469 | 5.059701 | 0.41791 | 0.123894 | 0.141593 | 0.176991 | 0.510324 | 0.362832 | 0.362832 | 0.247788 | 0.247788 | 0 | 0 | 0 | 0.132196 | 469 | 21 | 56 | 22.333333 | 0.832924 | 0 | 0 | 0.214286 | 0 | 0 | 0.025586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.214286 | 0.214286 | 0.642857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9262b07c27fe8f4f948adb1c8ce9e5adbee41a30 | 8,522 | py | Python | analysis/report/influence_of_faults.py | PerFuchs/safra-termination-detection-fault-tolerant | fae302c5a577e47285fc461d2adfee70ed2c1045 | [
"MIT"
] | null | null | null | analysis/report/influence_of_faults.py | PerFuchs/safra-termination-detection-fault-tolerant | fae302c5a577e47285fc461d2adfee70ed2c1045 | [
"MIT"
] | null | null | null | analysis/report/influence_of_faults.py | PerFuchs/safra-termination-detection-fault-tolerant | fae302c5a577e47285fc461d2adfee70ed2c1045 | [
"MIT"
] | null | null | null | import statistics
from collections import defaultdict, OrderedDict
import plotly
from report import graphing
from utils import write_csv
def analyse_influence_of_faults(configurations, algorithm):
configurations = filter(lambda c: not c.fault_sensitive, configurations)
grouped_by_fault_group = defaultdict(lamb... | 40.77512 | 122 | 0.702535 | 1,166 | 8,522 | 4.759005 | 0.088336 | 0.046855 | 0.071905 | 0.075689 | 0.868985 | 0.832582 | 0.786989 | 0.765904 | 0.680663 | 0.593801 | 0 | 0.03599 | 0.178362 | 8,522 | 208 | 123 | 40.971154 | 0.756498 | 0.011969 | 0 | 0.503401 | 0 | 0 | 0.104432 | 0.041107 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054422 | false | 0 | 0.034014 | 0 | 0.088435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
927b049ee08360a08810a089887ea676ae4b0bed | 94 | py | Python | ControlServer/user_admin/apps.py | a523/storagestatck | cea14d5e276af1d90f0fc8c0b00881fa7e2bff9a | [
"MIT"
] | 3 | 2019-11-19T09:38:51.000Z | 2020-12-21T13:23:52.000Z | ControlServer/user_admin/apps.py | a523/storagestatck | cea14d5e276af1d90f0fc8c0b00881fa7e2bff9a | [
"MIT"
] | 7 | 2020-01-20T04:02:23.000Z | 2021-06-10T17:54:36.000Z | ControlServer/user_admin/apps.py | a523/storagestack | cea14d5e276af1d90f0fc8c0b00881fa7e2bff9a | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class UserAdminConfig(AppConfig):
name = 'user_admin'
| 15.666667 | 33 | 0.765957 | 11 | 94 | 6.454545 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 94 | 5 | 34 | 18.8 | 0.898734 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
92af28fab599ecea863f4ae2823fe17faa26846d | 218 | py | Python | content/example/bs_python.py | qianglise/HPDA-Python | 93eefae38569bce35e82586c17ed4a164c3db1c4 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | content/example/bs_python.py | qianglise/HPDA-Python | 93eefae38569bce35e82586c17ed4a164c3db1c4 | [
"CC-BY-4.0",
"MIT"
] | 17 | 2022-03-01T13:12:11.000Z | 2022-03-31T09:55:45.000Z | content/example/bs_python.py | qianglise/HPDA-Python | 93eefae38569bce35e82586c17ed4a164c3db1c4 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2022-03-01T16:33:10.000Z | 2022-03-07T07:48:03.000Z | def bs_python(a_list):
N = len(a_list)
for i in range(N):
for j in range(1, N):
if a_list[j] < a_list[j-1]:
a_list[j-1], a_list[j] = a_list[j], a_list[j-1]
return a_list
| 27.25 | 63 | 0.513761 | 45 | 218 | 2.266667 | 0.333333 | 0.441176 | 0.352941 | 0.205882 | 0.382353 | 0.382353 | 0.382353 | 0 | 0 | 0 | 0 | 0.027586 | 0.334862 | 218 | 7 | 64 | 31.142857 | 0.675862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2b84adca0d454a2614e9c6eadb5a8ee7896aeab7 | 64 | py | Python | workon/contrib/cleanup/__init__.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/contrib/cleanup/__init__.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | workon/contrib/cleanup/__init__.py | dalou/django-workon | ef63c0a81c00ef560ed693e435cf3825f5170126 | [
"BSD-3-Clause"
] | null | null | null | default_app_config = 'workon.contrib.cleanup.apps.CleanupConfig' | 64 | 64 | 0.859375 | 8 | 64 | 6.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 64 | 1 | 64 | 64 | 0.854839 | 0 | 0 | 0 | 0 | 0 | 0.630769 | 0.630769 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2b8d7d893ea8743dbf03b13610002248a3aa5513 | 965 | py | Python | Part3-Article-NLP/utils.py | tonywu71/Excess-Mortality-Covid | 0f5b39e6932848223f1404cef6c4f59be1c591be | [
"MIT"
] | 1 | 2021-05-27T08:25:16.000Z | 2021-05-27T08:25:16.000Z | Part3-Article-NLP/utils.py | tonywu71/Excess-Mortality-Covid | 0f5b39e6932848223f1404cef6c4f59be1c591be | [
"MIT"
] | null | null | null | Part3-Article-NLP/utils.py | tonywu71/Excess-Mortality-Covid | 0f5b39e6932848223f1404cef6c4f59be1c591be | [
"MIT"
] | null | null | null | # File that contains all tools for the main script to run.
import re
import pandas as pd
## ----- HOMEPAGE -----
## ----- PREPROCESSING -----
def show_available_data():
# TODO: Renvoyer la liste des données disponibles avec os.path par exemple
return
def download_data(date):
# TODO: saving in data f... | 15.078125 | 100 | 0.653886 | 122 | 965 | 5.016393 | 0.606557 | 0.065359 | 0.029412 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003984 | 0.219689 | 965 | 64 | 101 | 15.078125 | 0.808765 | 0.462176 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0 | 1 | 0.333333 | false | 0 | 0.133333 | 0.133333 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
2baf0d7f419573f41ab9a402c2b9b9154f3a6915 | 354 | py | Python | examples/pxScene2d/external/libnode-v10.15.3/tools/check_macros.py | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 918 | 2016-12-22T02:53:08.000Z | 2022-03-22T06:21:35.000Z | examples/pxScene2d/external/libnode-v10.15.3/tools/check_macros.py | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 1,432 | 2017-06-21T04:08:48.000Z | 2020-08-25T16:21:15.000Z | examples/pxScene2d/external/libnode-v10.15.3/tools/check_macros.py | madanagopaltcomcast/pxCore | c4a3a40a190521c8b6383d126c87612eca5b3c42 | [
"Apache-2.0"
] | 317 | 2017-06-20T19:57:17.000Z | 2020-09-16T10:28:30.000Z | macro CHECK(x) = do { if (!(x)) (process._rawDebug("CHECK: x == true"), process.abort()) } while (0);
macro CHECK_EQ(a, b) = CHECK((a) === (b));
macro CHECK_GE(a, b) = CHECK((a) >= (b));
macro CHECK_GT(a, b) = CHECK((a) > (b));
macro CHECK_LE(a, b) = CHECK((a) <= (b));
macro CHECK_LT(a, b) = CHECK((a) < (b));
macro CHE... | 44.25 | 101 | 0.542373 | 63 | 354 | 2.936508 | 0.301587 | 0.12973 | 0.227027 | 0.259459 | 0.562162 | 0.513514 | 0.513514 | 0 | 0 | 0 | 0 | 0.003367 | 0.161017 | 354 | 7 | 102 | 50.571429 | 0.619529 | 0 | 0 | 0 | 0 | 0 | 0.045198 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2bbd328fa89a15c08d0c27ad10e64949a1f51719 | 84 | py | Python | FRIDAY/config.py | Tristi-X/F.R.I.D.A.Y | 7add23a89711ce016496e217e8c45cbb3757851a | [
"MIT"
] | 9 | 2020-08-31T20:13:51.000Z | 2021-01-09T16:17:47.000Z | FRIDAY/config.py | RobinRS/F.R.I.D.A.Y | 7add23a89711ce016496e217e8c45cbb3757851a | [
"MIT"
] | 1 | 2020-11-01T07:14:47.000Z | 2020-11-07T10:01:56.000Z | FRIDAY/config.py | RobinRS/F.R.I.D.A.Y | 7add23a89711ce016496e217e8c45cbb3757851a | [
"MIT"
] | 1 | 2021-01-09T11:50:39.000Z | 2021-01-09T11:50:39.000Z | WIT_ACCESS_TOKEN = "PASTE IN YOUR WIT ACCESS TOKEN HERE!"
RUNTIME_INFORMATION = True | 42 | 57 | 0.809524 | 13 | 84 | 5 | 0.769231 | 0.276923 | 0.430769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130952 | 84 | 2 | 58 | 42 | 0.890411 | 0 | 0 | 0 | 0 | 0 | 0.423529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a602b5b520d60e24401f5bb40d1c86ec14269d9c | 407 | py | Python | master/bopytest-code/code/ch3/test_fixtures.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 4 | 2018-09-07T15:35:24.000Z | 2019-03-27T09:48:12.000Z | master/bopytest-code/code/ch3/test_fixtures.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 371 | 2020-03-04T21:51:56.000Z | 2022-03-31T20:59:11.000Z | master/bopytest-code/code/ch3/test_fixtures.py | AlexRogalskiy/DevArtifacts | 931aabb8cbf27656151c54856eb2ea7d1153203a | [
"MIT"
] | 3 | 2019-06-18T19:57:17.000Z | 2020-11-06T03:55:08.000Z | import pytest
@pytest.fixture
def some_data():
return 42
def test_some_data(some_data):
assert some_data == 42
@pytest.fixture
def some_other_data():
x = 43
assert x == 42
return x
def test_other_data(some_other_data):
assert some_data == 42
@pytest.fixture
def a_tuple():
return (1, 'f... | 15.653846 | 40 | 0.665848 | 66 | 407 | 3.848485 | 0.333333 | 0.15748 | 0.188976 | 0.15748 | 0.283465 | 0.283465 | 0.283465 | 0.283465 | 0 | 0 | 0 | 0.049689 | 0.208845 | 407 | 25 | 41 | 16.28 | 0.73913 | 0 | 0 | 0.277778 | 0 | 0 | 0.022113 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.333333 | false | 0 | 0.055556 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
a603ef4412e60c2f2c7f9f503688f7ae444ef817 | 273 | py | Python | core/utils.py | cr0manty/Fox_Project | a12e936fba79f290c0c9ecce16bc33de18a3a10c | [
"MIT"
] | null | null | null | core/utils.py | cr0manty/Fox_Project | a12e936fba79f290c0c9ecce16bc33de18a3a10c | [
"MIT"
] | 4 | 2021-04-08T20:58:40.000Z | 2021-09-08T01:32:35.000Z | core/utils.py | cr0manty/Fox_Project | a12e936fba79f290c0c9ecce16bc33de18a3a10c | [
"MIT"
] | null | null | null | from vk_api import VkApi, audio
def get_vk_songs(vk_session, user_id=None):
vk_audio = audio.VkAudio(vk_session)
return vk_audio.get(owner_id=user_id) if user_id else vk_audio.get()
def get_vk_user_data(vk_session):
return vk_session.method('users.get')[0]
| 24.818182 | 72 | 0.761905 | 50 | 273 | 3.82 | 0.44 | 0.188482 | 0.08377 | 0.17801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004237 | 0.135531 | 273 | 10 | 73 | 27.3 | 0.805085 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
a63cd56c4677e75332777bcf2351bc1c3c3fd961 | 297 | py | Python | arch/data/vix/__init__.py | alejandro-cermeno/arch | 3ef8dc38f9fd2a3759c2224ce8b8bb2b91e52d8a | [
"NCSA"
] | 1 | 2022-03-29T22:12:54.000Z | 2022-03-29T22:12:54.000Z | arch/data/vix/__init__.py | ahmeddeladly/arch | 20774dce296af3716c44ecd50716d368634acbba | [
"NCSA"
] | null | null | null | arch/data/vix/__init__.py | ahmeddeladly/arch | 20774dce296af3716c44ecd50716d368634acbba | [
"NCSA"
] | null | null | null | from pandas import DataFrame
from arch.data.utility import load_file
def load() -> DataFrame:
"""
Load the VIX Index data used in the examples
Returns
-------
data : DataFrame
Data set containing historical VIX
"""
return load_file(__file__, "vix.csv.gz")
| 17.470588 | 48 | 0.646465 | 38 | 297 | 4.894737 | 0.605263 | 0.086022 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 297 | 16 | 49 | 18.5625 | 0.845455 | 0.393939 | 0 | 0 | 0 | 0 | 0.067568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a64c4add24c36aa1dbc3827a1d290634fc90cbc6 | 928 | py | Python | mc-uep100/v2.0.x/ja/autogen-openapi-generator/python/test/test_raw_api.py | y2kblog/poe-webapi-sensor-api | 7c21c88e4a7f74f7bc09c5d4dfc9ff352a98d458 | [
"MIT"
] | null | null | null | mc-uep100/v2.0.x/ja/autogen-openapi-generator/python/test/test_raw_api.py | y2kblog/poe-webapi-sensor-api | 7c21c88e4a7f74f7bc09c5d4dfc9ff352a98d458 | [
"MIT"
] | null | null | null | mc-uep100/v2.0.x/ja/autogen-openapi-generator/python/test/test_raw_api.py | y2kblog/poe-webapi-sensor-api | 7c21c88e4a7f74f7bc09c5d4dfc9ff352a98d458 | [
"MIT"
] | null | null | null | """
PoE対応 WebAPI 超音波センサ API仕様
\"Try it out\"機能は、API仕様を製品と同一ネットワーク上のローカルPCにダウンロードしブラウザで開くことで利用できます。 # noqa: E501
The version of the OpenAPI document: 2.0.x
Generated by: https://openapi-generator.tech
"""
import unittest
import mc_uep100_client
from mc_uep100_client.api.raw_api import RawApi # no... | 18.56 | 87 | 0.610991 | 112 | 928 | 4.848214 | 0.5 | 0.088398 | 0.060773 | 0.077348 | 0.180479 | 0.081031 | 0 | 0 | 0 | 0 | 0 | 0.039574 | 0.292026 | 928 | 49 | 88 | 18.938776 | 0.78691 | 0.419181 | 0 | 0.25 | 1 | 0 | 0.018141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3125 | false | 0.25 | 0.1875 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
a686af702de55dbddd024223c7bef1918373915c | 239 | py | Python | ketter/synthesizer_spectrum.py | ixsiid/ketter | 4aabe35f029c863391bb72d4db705ec6dd879e3a | [
"MIT"
] | null | null | null | ketter/synthesizer_spectrum.py | ixsiid/ketter | 4aabe35f029c863391bb72d4db705ec6dd879e3a | [
"MIT"
] | null | null | null | ketter/synthesizer_spectrum.py | ixsiid/ketter | 4aabe35f029c863391bb72d4db705ec6dd879e3a | [
"MIT"
] | null | null | null | from pyworld import pyworld
from .synthesizer import Synthesizer
class SynthesizerSpectrum(Synthesizer):
def synthesize(self, x, f0, ap, sp, _):
return pyworld.synthesize(f0, sp, ap, self.fs, frame_period=self.period)
| 34.142857 | 80 | 0.723849 | 30 | 239 | 5.7 | 0.566667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0.1841 | 239 | 7 | 81 | 34.142857 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0.2 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
a69576a56b09293e1f4eac0de1ce44a96d7fe7a9 | 104 | py | Python | shmakovpn/django_examples/logging_example/apps.py | shmakovpn/shmakovpn_tools | 85090c9489b0b9fa13b6c42c91459efe9b966a3b | [
"Apache-2.0"
] | null | null | null | shmakovpn/django_examples/logging_example/apps.py | shmakovpn/shmakovpn_tools | 85090c9489b0b9fa13b6c42c91459efe9b966a3b | [
"Apache-2.0"
] | null | null | null | shmakovpn/django_examples/logging_example/apps.py | shmakovpn/shmakovpn_tools | 85090c9489b0b9fa13b6c42c91459efe9b966a3b | [
"Apache-2.0"
] | null | null | null | from django.apps import AppConfig
class LoggingExampleConfig(AppConfig):
name = 'logging_example'
| 17.333333 | 38 | 0.788462 | 11 | 104 | 7.363636 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 5 | 39 | 20.8 | 0.910112 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
a69a3ed1d6c910036360e7ca8e293153a573c5e0 | 164 | py | Python | hbruraldoctor/hbvirtual/bin/django-admin.py | hallohubo/DjangoDocterAPI | 2d86d17c718affa968c0b2d4f9590aa08d43716e | [
"Apache-2.0"
] | null | null | null | hbruraldoctor/hbvirtual/bin/django-admin.py | hallohubo/DjangoDocterAPI | 2d86d17c718affa968c0b2d4f9590aa08d43716e | [
"Apache-2.0"
] | null | null | null | hbruraldoctor/hbvirtual/bin/django-admin.py | hallohubo/DjangoDocterAPI | 2d86d17c718affa968c0b2d4f9590aa08d43716e | [
"Apache-2.0"
] | null | null | null | #!/Users/kobo/Desktop/hbruraldoctor/hbvirtual/bin/python3
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 27.333333 | 57 | 0.79878 | 20 | 164 | 6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.091463 | 164 | 5 | 58 | 32.8 | 0.798658 | 0.341463 | 0 | 0 | 0 | 0 | 0.074766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
a6a769b3cd8f763bfd501836390878d89824552a | 28 | py | Python | z5tracker/rulesets/compatibility/__init__.py | Feneg/z5-tracker | 4631b33cc6584efcbd8df7e7d635d6ff0b7064fe | [
"MIT"
] | 2 | 2019-07-07T00:36:47.000Z | 2020-05-11T10:48:42.000Z | z5tracker/rulesets/compatibility/__init__.py | Feneg/z5-tracker | 4631b33cc6584efcbd8df7e7d635d6ff0b7064fe | [
"MIT"
] | 5 | 2019-02-09T09:58:06.000Z | 2021-04-30T12:59:09.000Z | z5tracker/rulesets/compatibility/__init__.py | Feneg/z5-tracker | 4631b33cc6584efcbd8df7e7d635d6ff0b7064fe | [
"MIT"
] | 1 | 2020-05-09T18:50:48.000Z | 2020-05-09T18:50:48.000Z | '''
Compatibility stubs
'''
| 7 | 19 | 0.642857 | 2 | 28 | 9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 28 | 3 | 20 | 9.333333 | 0.75 | 0.678571 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
a6ce5bea036fdef43198ac46353bbd2ff933a756 | 252 | py | Python | OpenGLCffi/GL/EXT/EXT/framebuffer_blit.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | OpenGLCffi/GL/EXT/EXT/framebuffer_blit.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | OpenGLCffi/GL/EXT/EXT/framebuffer_blit.py | cydenix/OpenGLCffi | c78f51ae5e6b655eb2ea98f072771cf69e2197f3 | [
"MIT"
] | null | null | null | from OpenGLCffi.GL import params
@params(api='gl', prms=['srcX0', 'srcY0', 'srcX1', 'srcY1', 'dstX0', 'dstY0', 'dstX1', 'dstY1', 'mask', 'filter'])
def glBlitFramebufferEXT(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter):
pass
| 36 | 114 | 0.674603 | 32 | 252 | 5.3125 | 0.625 | 0.117647 | 0.176471 | 0.235294 | 0.588235 | 0.588235 | 0.588235 | 0.588235 | 0.588235 | 0.588235 | 0 | 0.072072 | 0.119048 | 252 | 6 | 115 | 42 | 0.693694 | 0 | 0 | 0 | 0 | 0 | 0.208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.25 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
a6f9ba482e17ff534cf78187c2be2551d48d3013 | 77 | py | Python | INICIANTE/NIVEL-1/2234/2234.py | Cluxnei/uri-online-judge-problems | 4e13d4125ef43ae2ddd726637d08488c8786900c | [
"MIT"
] | null | null | null | INICIANTE/NIVEL-1/2234/2234.py | Cluxnei/uri-online-judge-problems | 4e13d4125ef43ae2ddd726637d08488c8786900c | [
"MIT"
] | null | null | null | INICIANTE/NIVEL-1/2234/2234.py | Cluxnei/uri-online-judge-problems | 4e13d4125ef43ae2ddd726637d08488c8786900c | [
"MIT"
] | null | null | null | line = input().split(' ')
print('{:.2f}'.format(int(line[0]) / int(line[1]))) | 38.5 | 51 | 0.558442 | 12 | 77 | 3.583333 | 0.75 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.077922 | 77 | 2 | 51 | 38.5 | 0.56338 | 0 | 0 | 0 | 0 | 0 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
a6fb58a18e325793d2083fcddc0945ec14365792 | 273 | py | Python | backend/attention_keeper/model/event.py | bennibloo/cuHacking-2021 | b3add3013f5024f402ac74ca57662d798c7b2ad4 | [
"MIT"
] | null | null | null | backend/attention_keeper/model/event.py | bennibloo/cuHacking-2021 | b3add3013f5024f402ac74ca57662d798c7b2ad4 | [
"MIT"
] | null | null | null | backend/attention_keeper/model/event.py | bennibloo/cuHacking-2021 | b3add3013f5024f402ac74ca57662d798c7b2ad4 | [
"MIT"
] | null | null | null | from attention_keeper.view.api import db
class Event(db.Model):
event_id = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.String, nullable=False)
rss_feed = db.Column(db.String, nullable=False)
pid = db.Column(db.Integer)
| 30.333333 | 74 | 0.728938 | 42 | 273 | 4.642857 | 0.571429 | 0.164103 | 0.205128 | 0.174359 | 0.297436 | 0.297436 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14652 | 273 | 8 | 75 | 34.125 | 0.83691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4708be4fecf9c148948c1b692c5409b510a8617b | 1,045 | py | Python | debufftracker/errors.py | nstatz/PoEDebuffTracker | 5129c57e2fa9e43d820dec3eb0f44dddbd49c860 | [
"MIT"
] | null | null | null | debufftracker/errors.py | nstatz/PoEDebuffTracker | 5129c57e2fa9e43d820dec3eb0f44dddbd49c860 | [
"MIT"
] | null | null | null | debufftracker/errors.py | nstatz/PoEDebuffTracker | 5129c57e2fa9e43d820dec3eb0f44dddbd49c860 | [
"MIT"
] | null | null | null | class ConfigError(Exception):
"""
Dummy class that might be used later. Implement dummy class to prevent unnecessary refactoring
"""
pass
class ColorConfigError(ConfigError):
"""
Exception class that can be raised if invalid colors are used
"""
def __init__(self, color):
self.c... | 28.243243 | 98 | 0.680383 | 130 | 1,045 | 5.223077 | 0.392308 | 0.11782 | 0.110457 | 0.12813 | 0.37408 | 0.349043 | 0.287187 | 0.287187 | 0.287187 | 0.215022 | 0 | 0 | 0.23445 | 1,045 | 37 | 99 | 28.243243 | 0.84875 | 0.297608 | 0 | 0.176471 | 0 | 0 | 0.227003 | 0.031157 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0.058824 | 0 | 0.176471 | 0.764706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
4715ad16643b268898dff771fb9dece279d2d684 | 103 | py | Python | tests/test_repos.py | euanacampbell/github-public | 2d8c00cebdabdeb1ff805ed2087070de776b5e0e | [
"MIT"
] | 1 | 2021-06-27T11:53:14.000Z | 2021-06-27T11:53:14.000Z | tests/test_repos.py | euanacampbell/gitprofile | 2d8c00cebdabdeb1ff805ed2087070de776b5e0e | [
"MIT"
] | null | null | null | tests/test_repos.py | euanacampbell/gitprofile | 2d8c00cebdabdeb1ff805ed2087070de776b5e0e | [
"MIT"
] | null | null | null | from github.github import profile
def test_repos():
expected = True
assert expected == True
| 12.875 | 33 | 0.699029 | 13 | 103 | 5.461538 | 0.769231 | 0.338028 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23301 | 103 | 7 | 34 | 14.714286 | 0.898734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5b420832a0f85ee043dcabb82eea2da962f32d36 | 96 | py | Python | stock_entry/apps.py | JuanFariasGit/crm | 5ab322644cb988a916bf6b5e8ee79322a40f2601 | [
"MIT"
] | null | null | null | stock_entry/apps.py | JuanFariasGit/crm | 5ab322644cb988a916bf6b5e8ee79322a40f2601 | [
"MIT"
] | null | null | null | stock_entry/apps.py | JuanFariasGit/crm | 5ab322644cb988a916bf6b5e8ee79322a40f2601 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class StockEntryConfig(AppConfig):
name = 'stock_entry'
| 16 | 34 | 0.770833 | 11 | 96 | 6.636364 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15625 | 96 | 5 | 35 | 19.2 | 0.901235 | 0 | 0 | 0 | 0 | 0 | 0.114583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5b4993787da1e55ede8c1e8374c5f1241764dcb2 | 796 | py | Python | test/test_bprune.py | Himscipy/BPrune | fe6e1c9902443925b9593c4cda7544a68f8990b4 | [
"MIT"
] | 3 | 2020-09-08T08:38:49.000Z | 2021-03-17T14:48:27.000Z | test/test_bprune.py | Himscipy/BPrune | fe6e1c9902443925b9593c4cda7544a68f8990b4 | [
"MIT"
] | null | null | null | test/test_bprune.py | Himscipy/BPrune | fe6e1c9902443925b9593c4cda7544a68f8990b4 | [
"MIT"
] | null | null | null | # import numpy as np
# from bprune.src.utils import *
# from bprune.src.Prune_BNN import *
# import ..src.utils as UT
# import ..src.Prune_BNN as BP
import bprune.src.utils as UT
import bprune.src.Prune_BNN as BP
import pytest
# def test_ReadLayer(self):
# # Test if the Read Layer had read correct number ... | 16.244898 | 68 | 0.639447 | 111 | 796 | 4.477477 | 0.351351 | 0.112676 | 0.156942 | 0.171026 | 0.229376 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.244975 | 796 | 48 | 69 | 16.583333 | 0.826955 | 0.787688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5b5067e068335b686ea444ef8eea1833e9810205 | 88 | py | Python | bakery/admin.py | adimian/bakery-toy-model | 8dadfbbe5ab338b3a74f68f66c5dd7d3a3fd659e | [
"MIT"
] | 1 | 2019-11-05T10:43:12.000Z | 2019-11-05T10:43:12.000Z | bakery/admin.py | adimian/bakery-toy-model | 8dadfbbe5ab338b3a74f68f66c5dd7d3a3fd659e | [
"MIT"
] | 10 | 2019-04-16T15:51:02.000Z | 2019-04-24T13:29:21.000Z | bakery/admin.py | adimian/bakery-toy-model | 8dadfbbe5ab338b3a74f68f66c5dd7d3a3fd659e | [
"MIT"
] | null | null | null | from flask_admin import Admin
admin = Admin(name="bakery", template_mode="bootstrap3")
| 22 | 56 | 0.784091 | 12 | 88 | 5.583333 | 0.75 | 0.298507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012658 | 0.102273 | 88 | 3 | 57 | 29.333333 | 0.835443 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5b6ec8ef5458359bcd002e627ab7cc5fc49588e8 | 76 | py | Python | Chapter07/function_with_no_argument.py | kaushalkumarshah/Learn-Python-in-7-Days | 2663656767c8959ace836f0c0e272f3e501bbe6e | [
"MIT"
] | 12 | 2018-07-09T16:20:31.000Z | 2022-03-21T22:52:15.000Z | Chapter07/function_with_no_argument.py | kaushalkumarshah/Learn-Python-in-7-Days | 2663656767c8959ace836f0c0e272f3e501bbe6e | [
"MIT"
] | null | null | null | Chapter07/function_with_no_argument.py | kaushalkumarshah/Learn-Python-in-7-Days | 2663656767c8959ace836f0c0e272f3e501bbe6e | [
"MIT"
] | 19 | 2018-01-09T12:49:06.000Z | 2021-11-23T08:05:55.000Z | def func(passArgument):
print passArgument
str = "hello all"
func() | 19 | 25 | 0.671053 | 9 | 76 | 5.666667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223684 | 76 | 4 | 26 | 19 | 0.864407 | 0 | 0 | 0 | 0 | 0 | 0.121622 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.5 | 0 | null | null | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
5b71cc6aaa5eafaa9a98a8adb42ab67d3a3b24d6 | 67 | py | Python | log.py | lis355/celery_local | f1abdd8406fa953c3c364a9c3a41df3aa76380af | [
"MIT"
] | null | null | null | log.py | lis355/celery_local | f1abdd8406fa953c3c364a9c3a41df3aa76380af | [
"MIT"
] | null | null | null | log.py | lis355/celery_local | f1abdd8406fa953c3c364a9c3a41df3aa76380af | [
"MIT"
] | null | null | null | def log(message):
print("[Celery-Local] {}".format(message))
| 22.333333 | 47 | 0.626866 | 8 | 67 | 5.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 67 | 2 | 48 | 33.5 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0.261538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
5b877f3174d7b0f5b0c56152dfdec584d1109d42 | 3,475 | py | Python | test_app/views.py | iamswaroopp/django-scaffold-generator | c9aa7269c3a3d9a618dbf41aac8e23649be64d48 | [
"MIT"
] | 6 | 2021-05-20T14:46:23.000Z | 2022-01-24T07:07:55.000Z | test_app/views.py | iamswaroopp/django-scaffold-generator | c9aa7269c3a3d9a618dbf41aac8e23649be64d48 | [
"MIT"
] | null | null | null | test_app/views.py | iamswaroopp/django-scaffold-generator | c9aa7269c3a3d9a618dbf41aac8e23649be64d48 | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
from .models import Blog
class BlogMixin:
model = Blog
from django.contrib.auth.mixins import PermissionRequiredMixin
from django.views.generic.list import ListView
class BlogListView(BlogMixin, PermissionRequiredMixin, ListView):
permission... | 24.131944 | 80 | 0.787338 | 391 | 3,475 | 6.85422 | 0.16624 | 0.085821 | 0.05597 | 0.08209 | 0.768657 | 0.768657 | 0.747761 | 0.504478 | 0.46791 | 0.46791 | 0 | 0 | 0.131799 | 3,475 | 143 | 81 | 24.300699 | 0.8883 | 0.006619 | 0 | 0.523077 | 0 | 0 | 0.10937 | 0.051639 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061538 | false | 0 | 0.415385 | 0.061538 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5b986787d0dda2f4d3f0da1d4b7c2860cac4b7be | 86 | py | Python | apiser/apidoc/src/models/__init__.py | hyhlinux/demo_vue | cf61d0ba21cce93b04951076c8c23c0fe693bb5b | [
"Apache-2.0"
] | null | null | null | apiser/apidoc/src/models/__init__.py | hyhlinux/demo_vue | cf61d0ba21cce93b04951076c8c23c0fe693bb5b | [
"Apache-2.0"
] | 2 | 2022-02-10T12:00:22.000Z | 2022-03-02T02:31:40.000Z | apiser/apidoc/src/models/__init__.py | hyhlinux/demo_vue | cf61d0ba21cce93b04951076c8c23c0fe693bb5b | [
"Apache-2.0"
] | null | null | null | from .models import Car, Status
from .data import test_car, test_status, test_success
| 28.666667 | 53 | 0.813953 | 14 | 86 | 4.785714 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127907 | 86 | 2 | 54 | 43 | 0.893333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5bccdc343030d13981667ce8568236a19f55542b | 960 | py | Python | JumpscaleLib/clients/gitea/client/markdown_service.py | threefoldtech/jumpscale_lib9 | 03c1451133d777e5af106fcc6f75c1138bb997f2 | [
"Apache-2.0"
] | 2 | 2017-06-07T08:11:47.000Z | 2017-11-10T02:19:48.000Z | JumpscaleLib/clients/gitea/client/markdown_service.py | threefoldtech/jumpscale_lib9 | 03c1451133d777e5af106fcc6f75c1138bb997f2 | [
"Apache-2.0"
] | 220 | 2018-07-29T08:37:17.000Z | 2019-08-05T15:01:27.000Z | JumpscaleLib/clients/gitea/client/markdown_service.py | threefoldtech/jumpscale_lib9 | 03c1451133d777e5af106fcc6f75c1138bb997f2 | [
"Apache-2.0"
] | 3 | 2018-06-12T05:18:28.000Z | 2019-09-24T06:49:17.000Z | # DO NOT EDIT THIS FILE. This file will be overwritten when re-running go-raml.
from .unhandled_api_error import UnhandledAPIError
from .unmarshall_error import UnmarshallError
class MarkdownService():
def __init__(self, client):
pass
self.client = client
def renderMarkdownRaw(self, data, hea... | 36.923077 | 104 | 0.679167 | 121 | 960 | 5.247934 | 0.454545 | 0.094488 | 0.047244 | 0.059843 | 0.570079 | 0.570079 | 0.48189 | 0.48189 | 0.384252 | 0.384252 | 0 | 0 | 0.229167 | 960 | 25 | 105 | 38.4 | 0.858108 | 0.217708 | 0 | 0.166667 | 1 | 0 | 0.078488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.083333 | 0.166667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
5bdebc5632655a34ec68f7342e111fdf3b6258d2 | 107 | py | Python | mmdeploy/codebase/mmcls/models/necks/__init__.py | grimoire/mmdeploy | e84bc30f4a036dd19cb3af854203922a91098e84 | [
"Apache-2.0"
] | 746 | 2021-12-27T10:50:28.000Z | 2022-03-31T13:34:14.000Z | mmdeploy/codebase/mmcls/models/necks/__init__.py | grimoire/mmdeploy | e84bc30f4a036dd19cb3af854203922a91098e84 | [
"Apache-2.0"
] | 253 | 2021-12-28T05:59:13.000Z | 2022-03-31T18:22:25.000Z | mmdeploy/codebase/mmcls/models/necks/__init__.py | grimoire/mmdeploy | e84bc30f4a036dd19cb3af854203922a91098e84 | [
"Apache-2.0"
] | 147 | 2021-12-27T10:50:33.000Z | 2022-03-30T10:44:20.000Z | # Copyright (c) OpenMMLab. All rights reserved.
from .gap import gap__forward
__all__ = ['gap__forward']
| 17.833333 | 47 | 0.747664 | 14 | 107 | 5.142857 | 0.714286 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149533 | 107 | 5 | 48 | 21.4 | 0.791209 | 0.420561 | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5be182491049f33aaebcc22784e09e2c1cac3a06 | 49 | py | Python | Profile/__init__.py | MasoudHeidary/django-telegram-bot-trade | 7032428e5e04cb02bb081dcc4d86a585a773ada0 | [
"MIT"
] | null | null | null | Profile/__init__.py | MasoudHeidary/django-telegram-bot-trade | 7032428e5e04cb02bb081dcc4d86a585a773ada0 | [
"MIT"
] | null | null | null | Profile/__init__.py | MasoudHeidary/django-telegram-bot-trade | 7032428e5e04cb02bb081dcc4d86a585a773ada0 | [
"MIT"
] | null | null | null | default_app_config = 'Profile.apps.ProfileConfig' | 49 | 49 | 0.857143 | 6 | 49 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040816 | 49 | 1 | 49 | 49 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0.52 | 0.52 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
751a00d4c1f1cfa7d36e9aaf8cebfcff5e9a9b3e | 254 | py | Python | tests/test_route_maps.py | 48ix/routingpolicy | fd3e9547a5c54bd78ee2144786f6b30fdf41d7ef | [
"MIT"
] | 1 | 2020-09-22T19:06:01.000Z | 2020-09-22T19:06:01.000Z | tests/test_route_maps.py | 48ix/routingpolicy | fd3e9547a5c54bd78ee2144786f6b30fdf41d7ef | [
"MIT"
] | null | null | null | tests/test_route_maps.py | 48ix/routingpolicy | fd3e9547a5c54bd78ee2144786f6b30fdf41d7ef | [
"MIT"
] | null | null | null | """Test Route Map Generation."""
# Standard Library
import asyncio
# Project
from routingpolicy.config import params
from routingpolicy.generate import route_map
if __name__ == "__main__":
asyncio.run(route_map(participant=params.participants[0]))
| 23.090909 | 62 | 0.783465 | 31 | 254 | 6.096774 | 0.677419 | 0.126984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.11811 | 254 | 10 | 63 | 25.4 | 0.839286 | 0.204724 | 0 | 0 | 1 | 0 | 0.041026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
752bf3f5f02f49eee82ad7fcadd1931156159dea | 243 | py | Python | Sem3/Python/oops/reference.py | nsudhanva/mca-code | 812348ce53edbe0f42f85a9c362bfc8aad64e1e7 | [
"MIT"
] | null | null | null | Sem3/Python/oops/reference.py | nsudhanva/mca-code | 812348ce53edbe0f42f85a9c362bfc8aad64e1e7 | [
"MIT"
] | null | null | null | Sem3/Python/oops/reference.py | nsudhanva/mca-code | 812348ce53edbe0f42f85a9c362bfc8aad64e1e7 | [
"MIT"
] | 2 | 2018-10-12T06:38:14.000Z | 2019-01-30T04:38:03.000Z | import sys
a = 10
b = 20
c = 100
d = [1,2,3]
# del a
print(sys.getrefcount(a))
print(sys.getrefcount(b))
print(sys.getrefcount(c))
print(sys.getrefcount(a + b))
print(sys.getrefcount(d))
print(sys.getrefcount(d[0]))
print(sys.getrefcount(c))
| 16.2 | 29 | 0.695473 | 44 | 243 | 3.840909 | 0.363636 | 0.331361 | 0.786982 | 0.236686 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050926 | 0.111111 | 243 | 14 | 30 | 17.357143 | 0.731481 | 0.020576 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.583333 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
752d3253389bd85f6221ca65dc3fcee71f9a5599 | 160 | py | Python | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-004/pg-4.7-2-even-odd-number.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-004/pg-4.7-2-even-odd-number.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-004/pg-4.7-2-even-odd-number.py | shihab4t/Books-Code | b637b6b2ad42e11faf87d29047311160fe3b2490 | [
"Unlicense"
] | null | null | null | number = input("Plase enter a number: ")
number = int(number)
if number % 2 == 0:
print(number, "is Even number")
else:
print(number, "is Odd number")
| 20 | 40 | 0.6375 | 24 | 160 | 4.25 | 0.583333 | 0.215686 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.2125 | 160 | 7 | 41 | 22.857143 | 0.793651 | 0 | 0 | 0 | 0 | 0 | 0.30625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
752f905aff69f1528707a30719afc7f58179f203 | 4,051 | py | Python | Experimental/vocab_and_models_generator.py | PratikSavla/Brevis-News | 5b0924c4077430b85e2d205695c17a08911a8732 | [
"Apache-2.0"
] | null | null | null | Experimental/vocab_and_models_generator.py | PratikSavla/Brevis-News | 5b0924c4077430b85e2d205695c17a08911a8732 | [
"Apache-2.0"
] | null | null | null | Experimental/vocab_and_models_generator.py | PratikSavla/Brevis-News | 5b0924c4077430b85e2d205695c17a08911a8732 | [
"Apache-2.0"
] | null | null | null | # only need to be run once this will generate the following dir and files:
# vocab directory
# character_cnn.pt, word_embedding.pt, char_embedding.pt
# these are necessary for embedding_generator.py
from allennlp.data.fields import TextField
from allennlp.data import Instance
from allennlp.data.token_indexers import ... | 96.452381 | 2,322 | 0.819551 | 608 | 4,051 | 5.398026 | 0.465461 | 0.032907 | 0.02925 | 0.013406 | 0.067642 | 0.032297 | 0.032297 | 0.032297 | 0.032297 | 0 | 0 | 0.004261 | 0.131079 | 4,051 | 41 | 2,323 | 98.804878 | 0.928125 | 0.086892 | 0 | 0.08 | 1 | 0.04 | 0.661609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7540b2817bc5b288f8b94075f38613718a2b3e8c | 222 | py | Python | main.py | aleattene/calculator_project | 0bfb65858fa0ac8f97b4c76fe1b8e1d025dc166b | [
"MIT"
] | null | null | null | main.py | aleattene/calculator_project | 0bfb65858fa0ac8f97b4c76fe1b8e1d025dc166b | [
"MIT"
] | 1 | 2021-12-06T21:39:00.000Z | 2021-12-06T21:39:00.000Z | main.py | aleattene/calculator_project | 0bfb65858fa0ac8f97b4c76fe1b8e1d025dc166b | [
"MIT"
] | 1 | 2021-12-06T21:27:24.000Z | 2021-12-06T21:27:24.000Z |
from calculator_project.calculator.calculator import *
def main():
print(td_sum(10, 20))
print(td_divide(20, 10))
print(td_multiply(10, 20))
print(td_sub(20, 10))
if __name__ == "__main__":
main()
| 15.857143 | 54 | 0.653153 | 32 | 222 | 4.125 | 0.5 | 0.212121 | 0.136364 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.089888 | 0.198198 | 222 | 13 | 55 | 17.076923 | 0.651685 | 0 | 0 | 0 | 0 | 0 | 0.036199 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.125 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
755c68b619f1092c93a83e1f6cb54b2f53f0c4ad | 92 | py | Python | HelloWorld.py | pprathameshmore/PythonLearning | 593bad64950afc9d39b289068402a6fc83e36df2 | [
"MIT"
] | null | null | null | HelloWorld.py | pprathameshmore/PythonLearning | 593bad64950afc9d39b289068402a6fc83e36df2 | [
"MIT"
] | 1 | 2018-03-01T15:38:56.000Z | 2018-03-01T18:40:59.000Z | HelloWorld.py | pprathameshmore/PythonLearning | 593bad64950afc9d39b289068402a6fc83e36df2 | [
"MIT"
] | 1 | 2018-03-01T15:13:44.000Z | 2018-03-01T15:13:44.000Z | #@author Prathamesh More
#print function prints the output to console
print("Hello world") | 18.4 | 44 | 0.782609 | 13 | 92 | 5.538462 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141304 | 92 | 5 | 45 | 18.4 | 0.911392 | 0.717391 | 0 | 0 | 0 | 0 | 0.44 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
f34b2c772c6c37c53f03ce88ab105ffffd5549db | 151 | py | Python | custom_components/rainforest_emu_2/const.py | ryanwinter/rainforest-emu-2 | e1c48670e9a59d0a6135e276210b00828356a67e | [
"MIT"
] | 2 | 2022-03-08T20:16:02.000Z | 2022-03-09T03:22:38.000Z | custom_components/rainforest_emu_2/const.py | ryanwinter/hass-rainforest-emu-2 | e1c48670e9a59d0a6135e276210b00828356a67e | [
"MIT"
] | null | null | null | custom_components/rainforest_emu_2/const.py | ryanwinter/hass-rainforest-emu-2 | e1c48670e9a59d0a6135e276210b00828356a67e | [
"MIT"
] | null | null | null | DOMAIN = "rainforest_emu_2"
DEVICE_ID = "emu2"
DEVICE_NAME = "Rainforest EMU-2"
ATTR_DEVICE_PATH = "device path"
ATTR_DEVICE_MAC_ID = "device mac id" | 21.571429 | 36 | 0.761589 | 24 | 151 | 4.416667 | 0.458333 | 0.245283 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022901 | 0.13245 | 151 | 7 | 36 | 21.571429 | 0.78626 | 0 | 0 | 0 | 0 | 0 | 0.394737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f356a4d6a5c55a4942835db1fb7ddd6673fc64b5 | 80 | py | Python | controller/py/basic_SendByteData_CS/v1.3_SaveDB_50clients/runAllFileScript.py | Nuha4/generic-dashboard | 1c7b307c7e29c71707ba5bae877016ef2cc7968b | [
"MIT"
] | null | null | null | controller/py/basic_SendByteData_CS/v1.3_SaveDB_50clients/runAllFileScript.py | Nuha4/generic-dashboard | 1c7b307c7e29c71707ba5bae877016ef2cc7968b | [
"MIT"
] | null | null | null | controller/py/basic_SendByteData_CS/v1.3_SaveDB_50clients/runAllFileScript.py | Nuha4/generic-dashboard | 1c7b307c7e29c71707ba5bae877016ef2cc7968b | [
"MIT"
] | null | null | null | for py_file in $(find $v1.2_50Clients -client *.py)
do
python $py_file
done
| 16 | 51 | 0.7 | 15 | 80 | 3.533333 | 0.8 | 0.226415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 0.1875 | 80 | 4 | 52 | 20 | 0.753846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f3b40df58d867120b1d2baf17fe34e847f2b17dd | 2,536 | py | Python | src/prism-fruit/Games-DQL/examples/games/car/networkx/algorithms/assortativity/tests/test_neighbor_degree.py | kushgrover/apt-vs-dift | 250f64e6c442f6018cab65ec6979d9568a842f57 | [
"MIT"
] | null | null | null | src/prism-fruit/Games-DQL/examples/games/car/networkx/algorithms/assortativity/tests/test_neighbor_degree.py | kushgrover/apt-vs-dift | 250f64e6c442f6018cab65ec6979d9568a842f57 | [
"MIT"
] | null | null | null | src/prism-fruit/Games-DQL/examples/games/car/networkx/algorithms/assortativity/tests/test_neighbor_degree.py | kushgrover/apt-vs-dift | 250f64e6c442f6018cab65ec6979d9568a842f57 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from nose.tools import *
import networkx as nx
class TestAverageNeighbor(object):
def test_degree_p4(self):
G=nx.path_graph(4)
answer={0:2,1:1.5,2:1.5,3:2}
nd = nx.average_neighbor_degree(G)
assert_equal(nd,answer)
D=G.to_directed(... | 30.554217 | 69 | 0.563091 | 361 | 2,536 | 3.742382 | 0.157895 | 0.047372 | 0.130274 | 0.225019 | 0.803109 | 0.803109 | 0.715026 | 0.627683 | 0.550703 | 0.550703 | 0 | 0.040113 | 0.30205 | 2,536 | 82 | 70 | 30.926829 | 0.723164 | 0.007886 | 0 | 0.619048 | 0 | 0 | 0.027127 | 0 | 0 | 0 | 0 | 0 | 0.253968 | 1 | 0.079365 | false | 0 | 0.031746 | 0 | 0.126984 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 4 |
3412bb328c8dfddb077e064a52607bdd785ae2b4 | 357 | py | Python | website/models.py | Vivek-Kolhe/URL-Shortener | 18baf93b3deb38ef5004af45f9e088a6b7519dc4 | [
"MIT"
] | 2 | 2021-04-13T13:43:32.000Z | 2021-04-13T15:08:39.000Z | website/models.py | Vivek-Kolhe/URL-Shortener | 18baf93b3deb38ef5004af45f9e088a6b7519dc4 | [
"MIT"
] | null | null | null | website/models.py | Vivek-Kolhe/URL-Shortener | 18baf93b3deb38ef5004af45f9e088a6b7519dc4 | [
"MIT"
] | null | null | null | from . import db
from sqlalchemy.sql import func
class URL_DB(db.Model):
id = db.Column(db.Integer, primary_key = True)
long_url = db.Column(db.String(300))
short_url = db.Column(db.String(50))
ip_address = db.Column(db.String(50))
visits = db.Column(db.Integer)
date = db.Column(db.DateTime(tim... | 32.454545 | 72 | 0.683473 | 57 | 357 | 4.192982 | 0.491228 | 0.200837 | 0.251046 | 0.200837 | 0.242678 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023649 | 0.170868 | 357 | 10 | 73 | 35.7 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 1 | 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 | 1 | 0 | 0 | 4 |
34158a7cb32dc87bdc0b2f7ea1b27b70c673fe0f | 5,993 | py | Python | google/ads/google_ads/v6/proto/services/keyword_plan_ad_group_service_pb2_grpc.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | 1 | 2021-04-09T04:28:47.000Z | 2021-04-09T04:28:47.000Z | google/ads/google_ads/v6/proto/services/keyword_plan_ad_group_service_pb2_grpc.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | null | null | null | google/ads/google_ads/v6/proto/services/keyword_plan_ad_group_service_pb2_grpc.py | jphanwebstaurant/google-ads-python | 600812b2afcc4d57f00b47dfe436620ce50bfe9b | [
"Apache-2.0"
] | null | null | null | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.ads.google_ads.v6.proto.resources import keyword_plan_ad_group_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__ad_... | 53.990991 | 191 | 0.761722 | 637 | 5,993 | 6.585557 | 0.178964 | 0.062932 | 0.074374 | 0.085816 | 0.770441 | 0.76329 | 0.744696 | 0.690822 | 0.690822 | 0.657449 | 0 | 0.007554 | 0.182713 | 5,993 | 110 | 192 | 54.481818 | 0.848918 | 0.1143 | 0 | 0.422535 | 1 | 0 | 0.101499 | 0.083814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0.042254 | 0.028169 | 0.197183 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
346ccf6a248d09db6cad33eed61573825bc9ef77 | 35 | py | Python | project_manager/__init__.py | purecloudlabs/translation-process-automation | ea65a5c35a9490bce57e6dc0104b1b86f4fc8ddf | [
"MIT"
] | null | null | null | project_manager/__init__.py | purecloudlabs/translation-process-automation | ea65a5c35a9490bce57e6dc0104b1b86f4fc8ddf | [
"MIT"
] | null | null | null | project_manager/__init__.py | purecloudlabs/translation-process-automation | ea65a5c35a9490bce57e6dc0104b1b86f4fc8ddf | [
"MIT"
] | null | null | null | """ Project Management Console
"""
| 11.666667 | 30 | 0.685714 | 3 | 35 | 8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 35 | 2 | 31 | 17.5 | 0.8 | 0.742857 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
34716c6ccd60b045a4b43d79a37093474483ebca | 121 | py | Python | __init__.py | supai-red/omega2020-ds | 102b91379e86af194b7e5ba1ae5183435205130b | [
"MIT"
] | 4 | 2020-05-13T03:31:24.000Z | 2021-08-30T03:58:32.000Z | __init__.py | supai-red/omega2020-ds | 102b91379e86af194b7e5ba1ae5183435205130b | [
"MIT"
] | 8 | 2019-12-18T15:07:38.000Z | 2020-08-27T02:13:34.000Z | __init__.py | supai-red/omega2020-ds | 102b91379e86af194b7e5ba1ae5183435205130b | [
"MIT"
] | 10 | 2020-01-28T23:14:41.000Z | 2021-03-06T02:12:12.000Z | """Entry Point for Omega2020."""
from .app import create_app
application = create_app()
application.run(host="0.0.0.0") | 20.166667 | 32 | 0.727273 | 19 | 121 | 4.526316 | 0.631579 | 0.069767 | 0.465116 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.107438 | 121 | 6 | 33 | 20.166667 | 0.722222 | 0.214876 | 0 | 0 | 0 | 0 | 0.077778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
cab55207992feac4f431a81f4d07c3e01cce9f95 | 128 | py | Python | api/schema/profile_type/schema.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | 1 | 2022-03-03T09:55:57.000Z | 2022-03-03T09:55:57.000Z | api/schema/profile_type/schema.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | 7 | 2022-02-09T10:44:53.000Z | 2022-03-28T03:29:43.000Z | api/schema/profile_type/schema.py | matchd-ch/matchd-backend | 84be4aab1b4708cae50a8988301b15df877c8db0 | [
"Apache-2.0"
] | null | null | null | import graphene
from db.models import ProfileType as ProfileTypeModel
ProfileType = graphene.Enum.from_enum(ProfileTypeModel)
| 21.333333 | 55 | 0.851563 | 15 | 128 | 7.2 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101563 | 128 | 5 | 56 | 25.6 | 0.93913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
cabe4dc93faafe2f15e07de5b0d80ec1ad27fca7 | 13,815 | py | Python | sdk/python/pulumi_alicloud/privatelink/vpc_endpoint_service_connection.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 42 | 2019-03-18T06:34:37.000Z | 2022-03-24T07:08:57.000Z | sdk/python/pulumi_alicloud/privatelink/vpc_endpoint_service_connection.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 152 | 2019-04-15T21:03:44.000Z | 2022-03-29T18:00:57.000Z | sdk/python/pulumi_alicloud/privatelink/vpc_endpoint_service_connection.py | pulumi/pulumi-alicloud | 9c34d84b4588a7c885c6bec1f03b5016e5a41683 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-08-26T17:30:07.000Z | 2021-07-05T01:37:45.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 37.237197 | 177 | 0.629461 | 1,548 | 13,815 | 5.377261 | 0.109819 | 0.081932 | 0.057184 | 0.042287 | 0.754685 | 0.732821 | 0.71408 | 0.697381 | 0.668068 | 0.65221 | 0 | 0.003062 | 0.267173 | 13,815 | 370 | 178 | 37.337838 | 0.819143 | 0.28802 | 0 | 0.630208 | 1 | 0 | 0.094757 | 0.018637 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0.005208 | 0.026042 | 0 | 0.276042 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cae5ee765ba883dbc9cd25d6ecd7aef67a1934d5 | 165 | py | Python | src/cattrs/preconf/orjson.py | bibajz/cattrs | 59edafdac38d4f9acd9ab2769380e3ec128a16a7 | [
"MIT"
] | null | null | null | src/cattrs/preconf/orjson.py | bibajz/cattrs | 59edafdac38d4f9acd9ab2769380e3ec128a16a7 | [
"MIT"
] | null | null | null | src/cattrs/preconf/orjson.py | bibajz/cattrs | 59edafdac38d4f9acd9ab2769380e3ec128a16a7 | [
"MIT"
] | null | null | null | """Preconfigured converters for orjson."""
from cattr.preconf.orjson import configure_converter, make_converter
__all__ = ["make_converter", "configure_converter"]
| 33 | 68 | 0.806061 | 18 | 165 | 6.944444 | 0.666667 | 0.288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084848 | 165 | 4 | 69 | 41.25 | 0.827815 | 0.218182 | 0 | 0 | 0 | 0 | 0.268293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
caf59ef39a875a39287d94d5f51e1e18f8f75516 | 247 | py | Python | motionvation/forms/category_form.py | v-like-engine/plane-planer-web | 0e1fb546b6b780697e45d259c07a99ac634390c7 | [
"MIT"
] | 1 | 2020-06-26T17:45:06.000Z | 2020-06-26T17:45:06.000Z | motionvation/forms/category_form.py | v-like-engine/plane-planer-web | 0e1fb546b6b780697e45d259c07a99ac634390c7 | [
"MIT"
] | null | null | null | motionvation/forms/category_form.py | v-like-engine/plane-planer-web | 0e1fb546b6b780697e45d259c07a99ac634390c7 | [
"MIT"
] | 9 | 2020-04-18T11:04:29.000Z | 2020-05-08T08:53:45.000Z | from flask_wtf import FlaskForm
from wtforms import StringField, SubmitField
from wtforms.validators import DataRequired
class CategoryForm(FlaskForm):
title = StringField('Title', validators=[DataRequired()])
submit = SubmitField('Add') | 30.875 | 61 | 0.789474 | 26 | 247 | 7.461538 | 0.576923 | 0.113402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125506 | 247 | 8 | 62 | 30.875 | 0.898148 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1b76305a1ef8844dcddc095bcd0aa71cf69f4d0c | 9,840 | py | Python | tests/api_send/test_send_super.py | icon-project/icon-sdk-python | 6b95375c8e5c78f915233eccc79458409a3ffe8b | [
"Apache-2.0"
] | 51 | 2018-08-29T04:15:36.000Z | 2022-03-14T10:02:08.000Z | tests/api_send/test_send_super.py | icon-project/icon-sdk-python | 6b95375c8e5c78f915233eccc79458409a3ffe8b | [
"Apache-2.0"
] | 24 | 2018-09-03T03:16:19.000Z | 2022-01-17T08:28:04.000Z | tests/api_send/test_send_super.py | icon-project/icon-sdk-python | 6b95375c8e5c78f915233eccc79458409a3ffe8b | [
"Apache-2.0"
] | 44 | 2018-09-06T22:36:16.000Z | 2022-03-15T06:46:05.000Z | # -*- coding: utf-8 -*-
# Copyright 2018 ICON 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 o... | 110.561798 | 3,251 | 0.722866 | 1,789 | 9,840 | 3.898267 | 0.315819 | 0.123889 | 0.129051 | 0.117006 | 0.393031 | 0.382564 | 0.36421 | 0.36421 | 0.341841 | 0.341841 | 0 | 0.20365 | 0.092276 | 9,840 | 88 | 3,252 | 111.818182 | 0.577138 | 0.15376 | 0 | 0 | 0 | 0.166667 | 0.548551 | 0.5237 | 0 | 0 | 0.000364 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.166667 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1b8b792d0d69ae8b3e282192435c71a24c83c132 | 401 | py | Python | ibeis/dbio/__init__.py | SU-ECE-17-7/ibeis | b12a45b06d8ce8f52585494c15f6776f5889ed67 | [
"Apache-2.0"
] | 1 | 2019-01-17T22:59:14.000Z | 2019-01-17T22:59:14.000Z | ibeis/dbio/__init__.py | SU-ECE-17-7/ibeis | b12a45b06d8ce8f52585494c15f6776f5889ed67 | [
"Apache-2.0"
] | null | null | null | ibeis/dbio/__init__.py | SU-ECE-17-7/ibeis | b12a45b06d8ce8f52585494c15f6776f5889ed67 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# flake8: noqa
"""
this module handles importing and exporting. the
best word i can think of is io. maybe marshall?
"""
from __future__ import absolute_import, division, print_function
import utool as ut
ut.noinject(__name__, '[ibeis.dbio.__init__]', DEBUG=False)
from ibeis.dbio import ingest_... | 26.733333 | 64 | 0.773067 | 60 | 401 | 4.883333 | 0.733333 | 0.122867 | 0.133106 | 0.194539 | 0.170648 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005764 | 0.134663 | 401 | 14 | 65 | 28.642857 | 0.838617 | 0.329177 | 0 | 0 | 0 | 0 | 0.080769 | 0.080769 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.833333 | 0 | 0.833333 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1b8fdf278abfdc9c8c5fb9a7b29482f112edd9cc | 321 | py | Python | lib/pipeline/__init__.py | rusty1s/embedded_gcnn | 06db3799e794d6ebcd9db023ebd8b0937587df94 | [
"MIT"
] | 74 | 2017-03-07T07:06:15.000Z | 2022-01-21T07:37:33.000Z | lib/pipeline/__init__.py | DeepaliVerma/embedded_gcnn | 06db3799e794d6ebcd9db023ebd8b0937587df94 | [
"MIT"
] | 9 | 2017-07-01T11:22:18.000Z | 2020-03-31T04:48:52.000Z | lib/pipeline/__init__.py | DeepaliVerma/embedded_gcnn | 06db3799e794d6ebcd9db023ebd8b0937587df94 | [
"MIT"
] | 12 | 2018-01-09T08:06:27.000Z | 2022-02-25T01:49:35.000Z | from .preprocess import preprocess_pipeline, preprocess_pipeline_fixed
from .dataset import PreprocessedDataset
from .file_queue import FileQueue
from .augment import augment_batch
__all__ = [
'preprocess_pipeline',
'preprocess_pipeline_fixed',
'PreprocessedDataset',
'FileQueue',
'augment_batch',
]... | 24.692308 | 70 | 0.781931 | 32 | 321 | 7.4375 | 0.40625 | 0.302521 | 0.235294 | 0.302521 | 0.344538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146417 | 321 | 12 | 71 | 26.75 | 0.868613 | 0 | 0 | 0 | 0 | 0 | 0.264798 | 0.077882 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.363636 | 0 | 0.363636 | 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 | 1 | 0 | 0 | 0 | 0 | 4 |
1b935be88c8ad4da1f600df11ed2a6e18b1ece9b | 4,046 | py | Python | gym/envs/mujoco/reacher.py | zjxiaobai/my_gym | 9db6eef8398566217880649ce2eda95cdfb59571 | [
"Python-2.0",
"OLDAP-2.7"
] | 1 | 2019-01-14T07:07:04.000Z | 2019-01-14T07:07:04.000Z | gym/envs/mujoco/reacher.py | zjxiaobai/my_gym | 9db6eef8398566217880649ce2eda95cdfb59571 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | gym/envs/mujoco/reacher.py | zjxiaobai/my_gym | 9db6eef8398566217880649ce2eda95cdfb59571 | [
"Python-2.0",
"OLDAP-2.7"
] | null | null | null | import numpy as np
from gym import utils
from gym.envs.mujoco import mujoco_env
class ReacherEnv(mujoco_env.MujocoEnv, utils.EzPickle):
def __init__(self):
utils.EzPickle.__init__(self)
mujoco_env.MujocoEnv.__init__(self, 'reacher.xml', 2)
def step(self, a):
vec = self.get_body_com("fi... | 36.45045 | 105 | 0.577855 | 567 | 4,046 | 3.922399 | 0.176367 | 0.044065 | 0.04946 | 0.06295 | 0.789119 | 0.733363 | 0.733363 | 0.733363 | 0.695594 | 0.695594 | 0 | 0.027854 | 0.281265 | 4,046 | 110 | 106 | 36.781818 | 0.736933 | 0.01656 | 0 | 0.659341 | 0 | 0 | 0.024501 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10989 | false | 0 | 0.032967 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1b9ea2985f6359bf1e1466815762550ac117f69c | 67 | py | Python | display/__init__.py | Aycion/5e_battle_sim | aa985f2a9bf84b563e5378eb1485aacaecd661fb | [
"MIT"
] | 1 | 2018-10-08T02:14:02.000Z | 2018-10-08T02:14:02.000Z | display/__init__.py | Aycion/5e_battle_sim | aa985f2a9bf84b563e5378eb1485aacaecd661fb | [
"MIT"
] | null | null | null | display/__init__.py | Aycion/5e_battle_sim | aa985f2a9bf84b563e5378eb1485aacaecd661fb | [
"MIT"
] | null | null | null | """
File: __init__.py.py -- Copyright Emery Bacon; 10/8/2018
""" | 16.75 | 58 | 0.626866 | 10 | 67 | 3.8 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0.164179 | 67 | 4 | 59 | 16.75 | 0.553571 | 0.865672 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1b9f8b02183bf19cc8aa4e4c7ffd14143decafd4 | 83 | py | Python | aio/kafka/__init__.py | eigenphi/gcommon | bce1ee422874fa904d90afee03fd703a06dc7a4d | [
"MIT"
] | 3 | 2021-11-09T09:43:21.000Z | 2021-12-16T18:15:43.000Z | aio/kafka/__init__.py | eigenphi/gcommon | bce1ee422874fa904d90afee03fd703a06dc7a4d | [
"MIT"
] | null | null | null | aio/kafka/__init__.py | eigenphi/gcommon | bce1ee422874fa904d90afee03fd703a06dc7a4d | [
"MIT"
] | 2 | 2022-03-10T11:24:46.000Z | 2022-03-25T06:39:17.000Z | # -*- coding: utf-8 -*-
# created: 2021-07-24
# creator: liguopeng@liguopeng.net
| 16.6 | 34 | 0.638554 | 11 | 83 | 4.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128571 | 0.156627 | 83 | 4 | 35 | 20.75 | 0.628571 | 0.903614 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1bbb4df84091312203544c9fd73d5ac1686b5378 | 183 | py | Python | video_curation/__init__.py | sanskrit-coders/video_curation | 5d383628ef6eb3312a6b15d061d75228687d5d91 | [
"MIT"
] | null | null | null | video_curation/__init__.py | sanskrit-coders/video_curation | 5d383628ef6eb3312a6b15d061d75228687d5d91 | [
"MIT"
] | null | null | null | video_curation/__init__.py | sanskrit-coders/video_curation | 5d383628ef6eb3312a6b15d061d75228687d5d91 | [
"MIT"
] | null | null | null | """
A package for curating video file collections, with ability to sync with youtube and archive.org video items.
Example usage: see curation_projects module in our github repo.
""" | 36.6 | 110 | 0.781421 | 28 | 183 | 5.071429 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15847 | 183 | 5 | 111 | 36.6 | 0.922078 | 0.956284 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
942f2e5091781632b00d634320c0ce161d4eed5c | 248 | py | Python | apps/jobs/dota_parse_curated/__init__.py | ajkdrag/Dota-2-Pyspark-EDA | aa64cd06248143703792ad668288518804679735 | [
"MIT"
] | null | null | null | apps/jobs/dota_parse_curated/__init__.py | ajkdrag/Dota-2-Pyspark-EDA | aa64cd06248143703792ad668288518804679735 | [
"MIT"
] | null | null | null | apps/jobs/dota_parse_curated/__init__.py | ajkdrag/Dota-2-Pyspark-EDA | aa64cd06248143703792ad668288518804679735 | [
"MIT"
] | null | null | null | class BaseExtractor:
def __init__(self, spark, config):
self.spark = spark
self.config = config
def _extract_parquet(self, parquet_file):
"""read parquet file"""
return self.spark.read.parquet(parquet_file)
| 27.555556 | 52 | 0.653226 | 29 | 248 | 5.310345 | 0.413793 | 0.175325 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245968 | 248 | 8 | 53 | 31 | 0.823529 | 0.068548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
9459c478165f16cd22bdf7bb078d8a1e83a7ef6b | 490 | py | Python | tests/test_analyzer.py | cobolbaby/python-seo-analyzer | b772f25077740d7bcd9d5866faa1e30d6a3bdcbb | [
"BSD-3-Clause"
] | 743 | 2015-01-27T12:04:32.000Z | 2022-03-30T21:10:04.000Z | tests/test_analyzer.py | cobolbaby/python-seo-analyzer | b772f25077740d7bcd9d5866faa1e30d6a3bdcbb | [
"BSD-3-Clause"
] | 56 | 2016-04-28T16:01:06.000Z | 2022-03-19T14:46:20.000Z | tests/test_analyzer.py | jonathankamau/python-seo-analyzer | 7fc42b571b2595fe58440d6e25a88cac7bf398d4 | [
"BSD-3-Clause"
] | 268 | 2015-01-23T01:58:47.000Z | 2022-03-29T23:48:29.000Z | from seoanalyzer import analyze
def test_print_output():
output = analyze('https://www.sethserver.com/tests/utf8.html')
assert len(output['pages']) == 1
assert output['pages'][0]['url'] == 'https://www.sethserver.com/tests/utf8.html'
assert output['pages'][0]['title'] == 'unicode chara¢ters'
asser... | 37.692308 | 84 | 0.642857 | 62 | 490 | 5.032258 | 0.516129 | 0.230769 | 0.217949 | 0.230769 | 0.25641 | 0.25641 | 0.25641 | 0.25641 | 0 | 0 | 0 | 0.023923 | 0.146939 | 490 | 12 | 85 | 40.833333 | 0.720096 | 0 | 0 | 0 | 0 | 0 | 0.361224 | 0 | 0 | 0 | 0 | 0 | 0.7 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
946cda12dc58261cac44e3df1f4bcc6c55a8141d | 185 | py | Python | khleepkg03/__init__.py | KeonHeeLee/SSL-Lab-seminar-test | 0f407f7195261ebc49620cf7039b0c0982a87d59 | [
"MIT"
] | null | null | null | khleepkg03/__init__.py | KeonHeeLee/SSL-Lab-seminar-test | 0f407f7195261ebc49620cf7039b0c0982a87d59 | [
"MIT"
] | 1 | 2021-11-15T17:47:49.000Z | 2021-11-15T17:47:49.000Z | khleepkg03/__init__.py | KeonHeeLee/SSL-Lab-seminar-test | 0f407f7195261ebc49620cf7039b0c0982a87d59 | [
"MIT"
] | null | null | null | # Example:: Test and Deployment
# TDD (Test-Driven-Development)
# Unit test => use unittest module
# Module test => use TravisCI
# Coverage test => use Coverage
# Deployment:: Pypi | 20.555556 | 36 | 0.708108 | 23 | 185 | 5.695652 | 0.608696 | 0.160305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183784 | 185 | 9 | 37 | 20.555556 | 0.86755 | 0.918919 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
94760d55e8af625fcfd069b15a8e993b945ad50e | 154 | py | Python | test/cases/mycompany_license/case.py | ryo4432/mycompany_ament_copyright | 6d6fc58b9aa06c6609627fd58e9a4aaea5652c06 | [
"Apache-2.0"
] | null | null | null | test/cases/mycompany_license/case.py | ryo4432/mycompany_ament_copyright | 6d6fc58b9aa06c6609627fd58e9a4aaea5652c06 | [
"Apache-2.0"
] | null | null | null | test/cases/mycompany_license/case.py | ryo4432/mycompany_ament_copyright | 6d6fc58b9aa06c6609627fd58e9a4aaea5652c06 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 My Company, Inc.
#
# Licensed under the My Company License (the "License");
#
# You can write your company's original license statement.
| 25.666667 | 58 | 0.74026 | 22 | 154 | 5.181818 | 0.727273 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.168831 | 154 | 5 | 59 | 30.8 | 0.859375 | 0.928571 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
847f94c130f71087c447d8939a538232336d9437 | 1,524 | py | Python | src/competitors/competitor_models.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | src/competitors/competitor_models.py | MrBellamonte/MT-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | 1 | 2020-09-22T13:04:58.000Z | 2020-09-22T13:05:23.000Z | src/competitors/competitor_models.py | MrBellamonte/AEs-VAEs-TDA | 8881b5db607c673fb558f7b74ece27f244b16b77 | [
"MIT"
] | null | null | null | from abc import abstractmethod, ABCMeta
from typing import Tuple
import numpy as np
from sklearn.manifold import TSNE
from umap.umap_ import UMAP as UMAP_
class Competitor(metaclass=ABCMeta):
def __init__(self):
self.test_eval = False
pass
@abstractmethod
def get_latent_train(self, x: np... | 23.446154 | 93 | 0.620735 | 201 | 1,524 | 4.477612 | 0.223881 | 0.08 | 0.08 | 0.056667 | 0.501111 | 0.422222 | 0.317778 | 0.317778 | 0.317778 | 0.317778 | 0 | 0 | 0.242782 | 1,524 | 64 | 94 | 23.8125 | 0.779896 | 0.006562 | 0 | 0.409091 | 0 | 0 | 0.015968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0.113636 | 0.113636 | 0.113636 | 0.568182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
8483c997338b3b4497a502d309b4bb1eb0ed68a8 | 80 | py | Python | src/test/__init__.py | ntalabot/base_dl_project_struct | 2a8b52081baf678fec4b74b16f41dd22a3d0eb21 | [
"MIT"
] | null | null | null | src/test/__init__.py | ntalabot/base_dl_project_struct | 2a8b52081baf678fec4b74b16f41dd22a3d0eb21 | [
"MIT"
] | null | null | null | src/test/__init__.py | ntalabot/base_dl_project_struct | 2a8b52081baf678fec4b74b16f41dd22a3d0eb21 | [
"MIT"
] | null | null | null | # Load subpackages in current namespace
from . import metric
from .test import * | 26.666667 | 39 | 0.7875 | 11 | 80 | 5.727273 | 0.818182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1625 | 80 | 3 | 40 | 26.666667 | 0.940299 | 0.4625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
84bbeaad68809a53039f1976f33a44a6c29c7af4 | 927 | py | Python | scripts/get_mongo_annotations.py | SuLab/WikiGenomesBase | ad18eca6e298423fe662030829d87a5fb8c51445 | [
"MIT"
] | 4 | 2018-09-12T20:17:31.000Z | 2020-09-21T19:09:59.000Z | scripts/get_mongo_annotations.py | sabahzero/WikiGenomesBase | ad18eca6e298423fe662030829d87a5fb8c51445 | [
"MIT"
] | 112 | 2017-06-19T20:00:14.000Z | 2018-07-27T17:09:06.000Z | scripts/get_mongo_annotations.py | putmantime/wikigenomes2 | ad18eca6e298423fe662030829d87a5fb8c51445 | [
"MIT"
] | 2 | 2017-09-11T17:13:51.000Z | 2018-05-02T22:38:08.000Z | from pymongo import MongoClient
from application_settings import mongo_database
__author__ = 'timputman and derekjow'
class GetMongoAnnotations(object):
def __init__(self):
"""
:param locus_tag:
:return:
"""
self.client = MongoClient()
self.db = self.client[mongo_d... | 28.96875 | 64 | 0.655879 | 104 | 927 | 5.538462 | 0.384615 | 0.104167 | 0.147569 | 0.182292 | 0.3125 | 0.3125 | 0.3125 | 0.3125 | 0.3125 | 0 | 0 | 0.039492 | 0.235167 | 927 | 31 | 65 | 29.903226 | 0.77292 | 0.028047 | 0 | 0 | 0 | 0 | 0.135945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.277778 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.