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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a7827944873e03a6203d013b641bc186ac256e15 | 149 | py | Python | examples/saveLoadV1/create_save.py | andaole/netpyne | 9ff475ff722fa8901d39008fab89d020e357b9ef | [
"MIT"
] | null | null | null | examples/saveLoadV1/create_save.py | andaole/netpyne | 9ff475ff722fa8901d39008fab89d020e357b9ef | [
"MIT"
] | null | null | null | examples/saveLoadV1/create_save.py | andaole/netpyne | 9ff475ff722fa8901d39008fab89d020e357b9ef | [
"MIT"
] | null | null | null | from netpyne import sim
import params
# Create network and save
sim.create(netParams=params.netParams, simConfig=params.simConfig)
sim.saveData()
| 21.285714 | 68 | 0.805369 | 20 | 149 | 6 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114094 | 149 | 6 | 69 | 24.833333 | 0.909091 | 0.154362 | 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 |
a7951a1e595feba902419fb4d3e865216baf1bc6 | 100 | py | Python | app/blueprints/views/__init__.py | jstrah00/when-where_API | 7079fea29f50d2a25a6f94f519e0b1a9c8d3a75a | [
"MIT"
] | 1 | 2021-12-30T16:58:22.000Z | 2021-12-30T16:58:22.000Z | app/blueprints/views/__init__.py | jstrah00/when-where_API | 7079fea29f50d2a25a6f94f519e0b1a9c8d3a75a | [
"MIT"
] | null | null | null | app/blueprints/views/__init__.py | jstrah00/when-where_API | 7079fea29f50d2a25a6f94f519e0b1a9c8d3a75a | [
"MIT"
] | null | null | null | """Views V1 __init__ module."""
from app.blueprints.views.views import views
__all__ = ["views"]
| 14.285714 | 44 | 0.71 | 13 | 100 | 4.846154 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.14 | 100 | 6 | 45 | 16.666667 | 0.72093 | 0.25 | 0 | 0 | 0 | 0 | 0.073529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
a7d55f2f94d9d2de921f67ad4c95289c9af2f170 | 154 | py | Python | gui_and_analytics/analytics/run_analytics.py | panzer/capstone-mppt | 02e42139ea3031d15924d65de24ef47282327752 | [
"MIT"
] | 1 | 2019-11-17T15:15:44.000Z | 2019-11-17T15:15:44.000Z | gui_and_analytics/analytics/run_analytics.py | panzer/capstone-mppt | 02e42139ea3031d15924d65de24ef47282327752 | [
"MIT"
] | null | null | null | gui_and_analytics/analytics/run_analytics.py | panzer/capstone-mppt | 02e42139ea3031d15924d65de24ef47282327752 | [
"MIT"
] | null | null | null | from utils import string_formatter
def main():
print(string_formatter.byte_string([0xDE, 0xAD, 0xB3, 0x3F]))
if __name__ == '__main__':
main() | 17.111111 | 65 | 0.701299 | 20 | 154 | 4.85 | 0.75 | 0.309278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 0.168831 | 154 | 9 | 66 | 17.111111 | 0.710938 | 0 | 0 | 0 | 0 | 0 | 0.051613 | 0 | 0 | 0 | 0.103226 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0.2 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ac0f521a1c7df37eb2eb01d5f8d7871473e5f7ae | 481 | py | Python | pytglib/api/types/chat_action_typing.py | iTeam-co/pytglib | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 6 | 2019-10-30T08:57:27.000Z | 2021-02-08T14:17:43.000Z | pytglib/api/types/chat_action_typing.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 1 | 2021-08-19T05:44:10.000Z | 2021-08-19T07:14:56.000Z | pytglib/api/types/chat_action_typing.py | iTeam-co/python-telegram | e5e75e0a85f89b77762209b32a61b0a883c0ae61 | [
"MIT"
] | 5 | 2019-12-04T05:30:39.000Z | 2021-05-21T18:23:32.000Z |
from ..utils import Object
class ChatActionTyping(Object):
"""
The user is typing a message
Attributes:
ID (:obj:`str`): ``ChatActionTyping``
No parameters required.
Returns:
ChatAction
Raises:
:class:`telegram.Error`
"""
ID = "chatActionTyping"
def _... | 15.516129 | 51 | 0.571726 | 43 | 481 | 6.302326 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318087 | 481 | 30 | 52 | 16.033333 | 0.82622 | 0.35343 | 0 | 0 | 0 | 0 | 0.120755 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0.125 | 0.125 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
ac1b94457992ef5dfa990df8756eeff26b56dfca | 993 | py | Python | tests/test_funcmakers.py | ruancomelli/funcy | be16b84b5a238bd83fc4929bcfecb25eeb391cd6 | [
"BSD-3-Clause"
] | 1,914 | 2015-01-03T03:48:48.000Z | 2022-03-31T16:58:11.000Z | tests/test_funcmakers.py | ruancomelli/funcy | be16b84b5a238bd83fc4929bcfecb25eeb391cd6 | [
"BSD-3-Clause"
] | 85 | 2015-01-20T09:34:33.000Z | 2022-03-31T10:51:28.000Z | tests/test_funcmakers.py | ruancomelli/funcy | be16b84b5a238bd83fc4929bcfecb25eeb391cd6 | [
"BSD-3-Clause"
] | 112 | 2015-01-08T05:07:10.000Z | 2022-02-16T18:11:39.000Z | from collections import defaultdict
import pytest
from funcy.funcmakers import *
def test_callable():
assert make_func(lambda x: x + 42)(0) == 42
def test_int():
assert make_func(0)('abc') == 'a'
assert make_func(2)([1,2,3]) == 3
assert make_func(1)({1: 'a'}) == 'a'
with pytest.raises(IndexErro... | 23.093023 | 56 | 0.607251 | 165 | 993 | 3.515152 | 0.266667 | 0.206897 | 0.289655 | 0.087931 | 0.234483 | 0.062069 | 0 | 0 | 0 | 0 | 0 | 0.047441 | 0.193353 | 993 | 42 | 57 | 23.642857 | 0.676654 | 0 | 0 | 0 | 0 | 0 | 0.047331 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.214286 | false | 0 | 0.107143 | 0 | 0.321429 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ac4895565b54ad994335b57da9c432b5085f86c2 | 345 | py | Python | service/base.py | yishuangxi/car-tornado | bff2a77569ca9b2eee9298b64078d6b533ac280f | [
"MIT"
] | null | null | null | service/base.py | yishuangxi/car-tornado | bff2a77569ca9b2eee9298b64078d6b533ac280f | [
"MIT"
] | null | null | null | service/base.py | yishuangxi/car-tornado | bff2a77569ca9b2eee9298b64078d6b533ac280f | [
"MIT"
] | null | null | null | # coding=utf8
import re
from tornado.gen import coroutine, Return
class ServiceBase(object):
def check_len(self, value, min, max):
if min < len(value) < max:
return True
else:
return False
def check_str(self, value):
return True
def check_digital(self, val... | 19.166667 | 41 | 0.605797 | 44 | 345 | 4.681818 | 0.568182 | 0.116505 | 0.145631 | 0.184466 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004237 | 0.315942 | 345 | 17 | 42 | 20.294118 | 0.868644 | 0.031884 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 |
ac5a462d5f3d766428e00fde74ea1eb6447a7a32 | 184 | py | Python | micro_shop/color_theme/forms.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 1 | 2021-06-17T15:11:03.000Z | 2021-06-17T15:11:03.000Z | micro_shop/color_theme/forms.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 7 | 2020-06-30T11:25:28.000Z | 2021-06-09T18:51:55.000Z | micro_shop/color_theme/forms.py | SlavaSkvortsov/micro-shop | fd8ac23550da9be277a9234464fdab1213356f3d | [
"MIT"
] | 5 | 2020-10-02T20:01:43.000Z | 2021-06-21T08:57:29.000Z | from django.forms import ModelForm
from color_theme.models import ColorTheme
class ColorThemeForm(ModelForm):
class Meta:
model = ColorTheme
fields = ['colors']
| 18.4 | 41 | 0.711957 | 20 | 184 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222826 | 184 | 9 | 42 | 20.444444 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 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 |
ac60e5a5732a8706335eff71aefa3e9a7400009e | 2,012 | py | Python | ProjectEuler/Python/largestproduct.py | dfm066/Programming | 53d28460cd40b966cca1d4695d9dc6792ced4c6f | [
"MIT"
] | null | null | null | ProjectEuler/Python/largestproduct.py | dfm066/Programming | 53d28460cd40b966cca1d4695d9dc6792ced4c6f | [
"MIT"
] | null | null | null | ProjectEuler/Python/largestproduct.py | dfm066/Programming | 53d28460cd40b966cca1d4695d9dc6792ced4c6f | [
"MIT"
] | null | null | null | import time
def product(num):
series = "731671765313306249192251196744265747423553491949349698352031277"\
"450632623957831801698480186947885184385861560789112949495459501"\
"737958331952853208805511125406987471585238630507156932909632952"\
"274430435576689664895044524... | 43.73913 | 80 | 0.663022 | 113 | 2,012 | 11.787611 | 0.442478 | 0.015766 | 0.018018 | 0.016517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.684423 | 0.262922 | 2,012 | 45 | 81 | 44.711111 | 0.213756 | 0 | 0 | 0 | 0 | 0 | 0.549059 | 0.508388 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.02439 | 0 | 0.073171 | 0.073171 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3bd19032e096071ec7e568ba392ca7e4a85add20 | 299 | py | Python | src/fbsrankings/query/season_by_id.py | mikee385/fbsrankings | 2b50e26a302b53c21cd8f5c965943d6fbf0680a1 | [
"MIT"
] | null | null | null | src/fbsrankings/query/season_by_id.py | mikee385/fbsrankings | 2b50e26a302b53c21cd8f5c965943d6fbf0680a1 | [
"MIT"
] | null | null | null | src/fbsrankings/query/season_by_id.py | mikee385/fbsrankings | 2b50e26a302b53c21cd8f5c965943d6fbf0680a1 | [
"MIT"
] | null | null | null | from typing import Optional
from uuid import UUID
from dataclasses import dataclass
from fbsrankings.common import Query
@dataclass(frozen=True)
class SeasonByIDResult:
id_: UUID
year: int
@dataclass(frozen=True)
class SeasonByIDQuery(Query[Optional[SeasonByIDResult]]):
id_: UUID
| 16.611111 | 57 | 0.779264 | 36 | 299 | 6.416667 | 0.5 | 0.12987 | 0.164502 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 299 | 17 | 58 | 17.588235 | 0.913043 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.363636 | 0 | 0.818182 | 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 |
3be131bed602e8aad1ed1a973bb412d12f1cd37e | 19,275 | py | Python | scripts/write.py | edwardoughton/qubic | 6ef3623fa69c87397d7f9e370766dfe1362d2242 | [
"MIT"
] | 2 | 2021-04-26T20:50:27.000Z | 2022-02-10T23:30:28.000Z | scripts/write.py | edwardoughton/qubic | 6ef3623fa69c87397d7f9e370766dfe1362d2242 | [
"MIT"
] | null | null | null | scripts/write.py | edwardoughton/qubic | 6ef3623fa69c87397d7f9e370766dfe1362d2242 | [
"MIT"
] | null | null | null | """
Functions for writing to .csv
September 2020
Written by Ed Oughton
"""
import os
import pandas as pd
import datetime
def define_deciles(regions):
"""
Allocate deciles to regions.
"""
regions = regions.sort_values(by='population_km2', ascending=True)
regions['decile'] = regions.groupby([
... | 46.557971 | 96 | 0.709624 | 2,193 | 19,275 | 5.770634 | 0.078887 | 0.071276 | 0.069064 | 0.043145 | 0.838088 | 0.786646 | 0.713236 | 0.693718 | 0.669933 | 0.601817 | 0 | 0.007723 | 0.167004 | 19,275 | 413 | 97 | 46.670702 | 0.780456 | 0.056498 | 0 | 0.452599 | 0 | 0 | 0.343303 | 0.112886 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012232 | false | 0 | 0.009174 | 0 | 0.024465 | 0.036697 | 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 |
3bf2b9616eb29b1e4f70f4a1eddfe6239a4db8cd | 211 | py | Python | tests/test_skidl_loc.py | arjenroodselaar/skidl | 0bf801bd3b74e6ef94bd9aa1b68eef756b568276 | [
"MIT"
] | 2 | 2022-02-27T14:31:52.000Z | 2022-02-27T14:31:56.000Z | tests/test_skidl_loc.py | arjenroodselaar/skidl | 0bf801bd3b74e6ef94bd9aa1b68eef756b568276 | [
"MIT"
] | null | null | null | tests/test_skidl_loc.py | arjenroodselaar/skidl | 0bf801bd3b74e6ef94bd9aa1b68eef756b568276 | [
"MIT"
] | 1 | 2020-09-21T23:31:41.000Z | 2020-09-21T23:31:41.000Z | import pytest
from skidl import *
from .setup_teardown import *
def test_skidl_loc():
rt = Part("Device", "R", dest=TEMPLATE, footprint="null")
r1 = rt()
resistors = rt(5)
generate_netlist()
| 17.583333 | 61 | 0.654028 | 29 | 211 | 4.655172 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0.208531 | 211 | 11 | 62 | 19.181818 | 0.790419 | 0 | 0 | 0 | 1 | 0 | 0.052381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.375 | null | null | 0.125 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3bf7271e61194a8fee54da8da14fb8e287ba582f | 6,824 | py | Python | resultQuery.py | beirbear/URDMEMining | 9b2047f4c7e1f93e76a911c7a52924ba3cc84aff | [
"MIT"
] | null | null | null | resultQuery.py | beirbear/URDMEMining | 9b2047f4c7e1f93e76a911c7a52924ba3cc84aff | [
"MIT"
] | null | null | null | resultQuery.py | beirbear/URDMEMining | 9b2047f4c7e1f93e76a911c7a52924ba3cc84aff | [
"MIT"
] | null | null | null | import json
import operator
import numpy as ns
'''
RESULT_FILES = ["output/urdmeMiningPartialWindow_4_1000_0_8.json", \
"output/urdmeMiningPartialWindow_4_1000_8_16.json", \
"output/urdmeMiningPartialWindow_4_1000_24_32.json", \
"output/urdmeMiningPartialWindow_4_1000_32_... | 49.810219 | 137 | 0.455305 | 535 | 6,824 | 5.626168 | 0.175701 | 0.183389 | 0.169435 | 0.139535 | 0.823588 | 0.669767 | 0.619269 | 0.619269 | 0.619269 | 0.619269 | 0 | 0.04936 | 0.438892 | 6,824 | 136 | 138 | 50.176471 | 0.736746 | 0.014801 | 0 | 0.745098 | 0 | 0 | 0.095113 | 0.061307 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.029412 | 0.578431 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
ce0074b441e86d4bf5faac40067575fa573bc352 | 117 | py | Python | backend/ida/mdec-ida/mdecida/__main__.py | CouleeApps/mdec | f71208dea3121bc140574b71b8a3c44b489f8017 | [
"MIT"
] | null | null | null | backend/ida/mdec-ida/mdecida/__main__.py | CouleeApps/mdec | f71208dea3121bc140574b71b8a3c44b489f8017 | [
"MIT"
] | null | null | null | backend/ida/mdec-ida/mdecida/__main__.py | CouleeApps/mdec | f71208dea3121bc140574b71b8a3c44b489f8017 | [
"MIT"
] | null | null | null | from mdecida import IdaService
from mdecbase import mdec_main
if __name__ == '__main__':
mdec_main(IdaService)
| 16.714286 | 30 | 0.777778 | 15 | 117 | 5.4 | 0.6 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162393 | 117 | 6 | 31 | 19.5 | 0.826531 | 0 | 0 | 0 | 0 | 0 | 0.068376 | 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 |
ce05bb7b7e811eafe5656a78387634ba754364a8 | 227 | py | Python | src/gobjcreator3/model/clsintf.py | ThomasBollmeier/GObjectCreator3 | 20f2ad66efbae5e270f08612e5115be75399c55c | [
"Apache-2.0"
] | 1 | 2015-03-31T12:21:14.000Z | 2015-03-31T12:21:14.000Z | src/gobjcreator3/model/clsintf.py | ThomasBollmeier/GObjectCreator3 | 20f2ad66efbae5e270f08612e5115be75399c55c | [
"Apache-2.0"
] | null | null | null | src/gobjcreator3/model/clsintf.py | ThomasBollmeier/GObjectCreator3 | 20f2ad66efbae5e270f08612e5115be75399c55c | [
"Apache-2.0"
] | null | null | null | from gobjcreator3.model.type import Type
class ClsIntf(Type):
def __init__(self, name, category):
Type.__init__(self, name, category)
self.cfunc_prefix = ""
| 18.916667 | 43 | 0.537445 | 22 | 227 | 5.136364 | 0.636364 | 0.141593 | 0.212389 | 0.353982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.378855 | 227 | 12 | 44 | 18.916667 | 0.794326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ce2be5c67dfeb07cf091f48ae969cb768a225031 | 218 | py | Python | src/alvarium/hash/mock.py | welo10/alvarium-sdk-python | a62aeafc62bd6bc4e11538c357e422e7a51cf825 | [
"Apache-2.0"
] | null | null | null | src/alvarium/hash/mock.py | welo10/alvarium-sdk-python | a62aeafc62bd6bc4e11538c357e422e7a51cf825 | [
"Apache-2.0"
] | null | null | null | src/alvarium/hash/mock.py | welo10/alvarium-sdk-python | a62aeafc62bd6bc4e11538c357e422e7a51cf825 | [
"Apache-2.0"
] | null | null | null | from .interfaces import HashProvider
class NoneHashProvider(HashProvider):
"""A mock implementation for the HashProvider interface"""
def derive(self, data: bytes) -> str:
return data.decode("utf-8") | 31.142857 | 62 | 0.715596 | 25 | 218 | 6.24 | 0.88 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.178899 | 218 | 7 | 63 | 31.142857 | 0.865922 | 0.238532 | 0 | 0 | 0 | 0 | 0.031056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 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 |
ce37e740f00ae8d965b47067c468a0520efa9c8a | 240 | py | Python | HaPPPy/Transmission/__init__.py | Mohammed-El-Nabulsi/single-electron-transistor | db1abd3627312403be83197c27d06ac4e3a61746 | [
"BSD-2-Clause"
] | null | null | null | HaPPPy/Transmission/__init__.py | Mohammed-El-Nabulsi/single-electron-transistor | db1abd3627312403be83197c27d06ac4e3a61746 | [
"BSD-2-Clause"
] | null | null | null | HaPPPy/Transmission/__init__.py | Mohammed-El-Nabulsi/single-electron-transistor | db1abd3627312403be83197c27d06ac4e3a61746 | [
"BSD-2-Clause"
] | null | null | null | """
.. module:: HaPPPy.Transmission
:platform: Unix, Windows
:synopsis: Tackles the two body program.
Here comes the general documentation for the Transmission module.
"""
from .TransmissionCalculator import TransmissionCalculator
| 21.818182 | 65 | 0.770833 | 25 | 240 | 7.4 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 240 | 10 | 66 | 24 | 0.906863 | 0.708333 | 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 | 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 |
0207ea8c8331b50713bdb201a72d5f718ddaa06e | 300 | py | Python | apps/moderation/views.py | ilindrey/whatyouknow | e2960272e5a50d7975261d91bc36b921179d0536 | [
"MIT"
] | 2 | 2022-03-02T10:23:22.000Z | 2022-03-09T15:16:59.000Z | apps/moderation/views.py | ilindrey/whatyouknow | e2960272e5a50d7975261d91bc36b921179d0536 | [
"MIT"
] | null | null | null | apps/moderation/views.py | ilindrey/whatyouknow | e2960272e5a50d7975261d91bc36b921179d0536 | [
"MIT"
] | null | null | null | from .constants import MODERATION_MODERATED_STATE
class SetEditedByUserMixin:
def form_valid(self, form):
if form.instance.state == MODERATION_MODERATED_STATE and not form.instance.edited_by_user:
form.instance.edited_by_user = True
return super().form_valid(form)
| 30 | 98 | 0.743333 | 38 | 300 | 5.605263 | 0.578947 | 0.169014 | 0.225352 | 0.187793 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186667 | 300 | 9 | 99 | 33.333333 | 0.872951 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.666667 | 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 |
0212688da15193f29be4e69315fd9bebc15e032a | 64 | py | Python | src/kgprim/__init__.py | mfrigerio17/kgprim | 398f63be86e8ca465e2b58481ea0446f55a1cf62 | [
"BSD-3-Clause"
] | null | null | null | src/kgprim/__init__.py | mfrigerio17/kgprim | 398f63be86e8ca465e2b58481ea0446f55a1cf62 | [
"BSD-3-Clause"
] | null | null | null | src/kgprim/__init__.py | mfrigerio17/kgprim | 398f63be86e8ca465e2b58481ea0446f55a1cf62 | [
"BSD-3-Clause"
] | null | null | null | '''Kinematic and geometric primitives, entities and relations''' | 64 | 64 | 0.796875 | 7 | 64 | 7.285714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 64 | 1 | 64 | 64 | 0.87931 | 0.90625 | 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 |
0222c7458eb97770a51c81c7c307b08c73cc508d | 130,570 | py | Python | UMLRT2Kiltera_MM/MT_post__UMLRT2Kiltera_MM_META.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 3 | 2017-06-02T19:26:27.000Z | 2021-06-14T04:25:45.000Z | UMLRT2Kiltera_MM/MT_post__UMLRT2Kiltera_MM_META.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 8 | 2016-08-24T07:04:07.000Z | 2017-05-26T16:22:47.000Z | UMLRT2Kiltera_MM/MT_post__UMLRT2Kiltera_MM_META.py | levilucio/SyVOLT | 7526ec794d21565e3efcc925a7b08ae8db27d46a | [
"MIT"
] | 1 | 2019-10-31T06:00:23.000Z | 2019-10-31T06:00:23.000Z | """
__MT_post__UMLRT2Kiltera_MM_META.py_____________________________________________________
Automatically generated AToM3 button model (DO NOT MODIFY DIRECTLY)
Author: gehan
Modified: Sun Feb 15 10:37:42 2015
________________________________________________________________________________________
"""
from ASG_Buttons... | 74.911073 | 571 | 0.750632 | 16,804 | 130,570 | 5.535646 | 0.012676 | 0.101106 | 0.146042 | 0.032681 | 0.914965 | 0.808065 | 0.724073 | 0.613421 | 0.546425 | 0.535126 | 0 | 0.01819 | 0.120878 | 130,570 | 1,742 | 572 | 74.954076 | 0.792189 | 0.002259 | 0 | 0.348411 | 1 | 0.058068 | 0.288554 | 0.024058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.000611 | false | 0 | 0.066626 | 0 | 0.067237 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
022ca68c48364aa8c38f5e80a40d65b52f9adf13 | 193 | py | Python | 1/week10/nested_loops.py | briannice/logiscool-python | 00cf772072f574d297ed487e8edc9bb0158b6c68 | [
"Apache-2.0"
] | null | null | null | 1/week10/nested_loops.py | briannice/logiscool-python | 00cf772072f574d297ed487e8edc9bb0158b6c68 | [
"Apache-2.0"
] | null | null | null | 1/week10/nested_loops.py | briannice/logiscool-python | 00cf772072f574d297ed487e8edc9bb0158b6c68 | [
"Apache-2.0"
] | null | null | null | for x in range(10):
for y in range(10):
print(x * y, end='\t')
print()
for i in range(1,11):
for j in range(1,11):
print(j + (i - 1) * 10, end="\t")
print("")
| 17.545455 | 41 | 0.46114 | 36 | 193 | 2.472222 | 0.361111 | 0.314607 | 0.202247 | 0.224719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.100775 | 0.331606 | 193 | 10 | 42 | 19.3 | 0.589147 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 |
023ccb806c2b9af91affc9396a18046ee2865a5b | 9,767 | py | Python | World/Object/Unit/model.py | fboyd/idewave-core | eed6822029538ce7c25a28b3ff6a3e9e40b1a8ef | [
"Apache-2.0"
] | null | null | null | World/Object/Unit/model.py | fboyd/idewave-core | eed6822029538ce7c25a28b3ff6a3e9e40b1a8ef | [
"Apache-2.0"
] | null | null | null | World/Object/Unit/model.py | fboyd/idewave-core | eed6822029538ce7c25a28b3ff6a3e9e40b1a8ef | [
"Apache-2.0"
] | null | null | null | from sqlalchemy.orm import relationship
from sqlalchemy.ext.hybrid import hybrid_property
from sqlalchemy import orm
from DB.BaseModel import BaseModel
from World.Object.model import Object
from World.Object.Constants.ObjectType import ObjectType
from World.Object.Constants.HighGuid import HighGuid
from World.Object.C... | 48.1133 | 111 | 0.579605 | 970 | 9,767 | 5.660825 | 0.160825 | 0.207612 | 0.272446 | 0.201056 | 0.57403 | 0.24094 | 0.047714 | 0.033145 | 0.033145 | 0.033145 | 0 | 0.001351 | 0.317805 | 9,767 | 202 | 112 | 48.351485 | 0.822753 | 0.003276 | 0 | 0.067797 | 0 | 0 | 0.088359 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056497 | false | 0 | 0.062147 | 0.028249 | 0.841808 | 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 |
0286928d2e9e299b2264839939164633b2cd9c59 | 241 | py | Python | torchmoon/torch/activations.py | afeldman/TorchMoon | 04c6ad75b0202542a2a885cb2a900085e43c5884 | [
"MIT"
] | null | null | null | torchmoon/torch/activations.py | afeldman/TorchMoon | 04c6ad75b0202542a2a885cb2a900085e43c5884 | [
"MIT"
] | null | null | null | torchmoon/torch/activations.py | afeldman/TorchMoon | 04c6ad75b0202542a2a885cb2a900085e43c5884 | [
"MIT"
] | null | null | null | from torch.nn import (ReLU, PReLU, ELU)
def Activation(activation, nchan):
if "elu" == activation:
return ELU(inplace=True)
elif "prelu" == activation:
return PReLU(nchan)
else:
return ReLU(inplace=True)
| 24.1 | 39 | 0.630705 | 29 | 241 | 5.241379 | 0.551724 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253112 | 241 | 9 | 40 | 26.777778 | 0.844444 | 0 | 0 | 0 | 0 | 0 | 0.033195 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
65fba6062a946c69bc099bac1f8196f661bad081 | 286 | py | Python | lpsmap/__init__.py | tsvm/lp-sparsemap | 713fb64366fb060ed1e5e57bab4836f4f50336bc | [
"MIT"
] | null | null | null | lpsmap/__init__.py | tsvm/lp-sparsemap | 713fb64366fb060ed1e5e57bab4836f4f50336bc | [
"MIT"
] | null | null | null | lpsmap/__init__.py | tsvm/lp-sparsemap | 713fb64366fb060ed1e5e57bab4836f4f50336bc | [
"MIT"
] | null | null | null | from .api.factors import (Xor, Or, AtMostOne, Imply, XorOut, OrOut,
AndOut, Budget, Pair)
from .api.factors_extension import Sequence, DepTree
from .api.api import FactorGraph
try:
from .api.autograd import TorchFactorGraph
except ImportError:
pass
| 22 | 67 | 0.695804 | 34 | 286 | 5.823529 | 0.676471 | 0.141414 | 0.141414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 286 | 12 | 68 | 23.833333 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.125 | 0.625 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
5a1e4c0857a9b3d75a2a7dd9881b936ec7a08d30 | 340 | py | Python | Mundo 3_Estruturas Compostas/Desafio_78.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | Mundo 3_Estruturas Compostas/Desafio_78.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | Mundo 3_Estruturas Compostas/Desafio_78.py | VictorOliveira02/Desafios-Python3-Curso-em-Video | 53ee8bd814b816f3a21936677ef3f155b582843f | [
"MIT"
] | null | null | null | lista = []
for v in range(0,5):
lista.append(int(input("Digite um numero: ")))
print(f'Você digitou os numeros {lista}.')
print(f'Os maiores valores digitados foram {max(lista)} e estão nas posiçôes {lista.index(max(lista))+1}')
print(f'Os menores valores digitados foram {min(lista)} e estão nas posiçôes {lista.ind... | 48.571429 | 106 | 0.711765 | 57 | 340 | 4.245614 | 0.561404 | 0.07438 | 0.066116 | 0.115702 | 0.264463 | 0.264463 | 0.264463 | 0 | 0 | 0 | 0 | 0.013423 | 0.123529 | 340 | 6 | 107 | 56.666667 | 0.798658 | 0 | 0 | 0 | 0 | 0.333333 | 0.711765 | 0.158824 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
5a28e23e90b8c8e7ecc81d1de85738c973271d90 | 113 | py | Python | Problem Solving Strategy/Bruteforce/recursive/code6.1 recursiveSum.py | homveloper/Algorithm | ae2e063d75a3ecc2537f97ede002450b45da4aa5 | [
"Apache-2.0"
] | null | null | null | Problem Solving Strategy/Bruteforce/recursive/code6.1 recursiveSum.py | homveloper/Algorithm | ae2e063d75a3ecc2537f97ede002450b45da4aa5 | [
"Apache-2.0"
] | null | null | null | Problem Solving Strategy/Bruteforce/recursive/code6.1 recursiveSum.py | homveloper/Algorithm | ae2e063d75a3ecc2537f97ede002450b45da4aa5 | [
"Apache-2.0"
] | null | null | null |
# 조건 : n >= 1
# 기능 : 1~n 까지의 합
def recursiveSum(n):
if n <= 1 : return n
return n + recursiveSum(n-1)
| 12.555556 | 32 | 0.530973 | 21 | 113 | 2.857143 | 0.47619 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051948 | 0.318584 | 113 | 8 | 33 | 14.125 | 0.727273 | 0.230089 | 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 |
5a2c0c9e9745a1eab389a32594b6dd8afb21ff8d | 158 | py | Python | envdsys/envdatasystem/apps.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | 1 | 2021-11-06T19:22:53.000Z | 2021-11-06T19:22:53.000Z | envdsys/envdatasystem/apps.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | 25 | 2019-06-18T20:40:36.000Z | 2021-07-23T20:56:48.000Z | envdsys/envdatasystem/apps.py | NOAA-PMEL/envDataSystem | 4db4a3569d2329658799a3eef06ce36dd5c0597d | [
"Unlicense"
] | null | null | null | from django.apps import AppConfig
class EnvdatasystemConfig(AppConfig):
name = 'envdatasystem'
def ready(self):
import envdatasystem.signals | 22.571429 | 37 | 0.740506 | 16 | 158 | 7.3125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189873 | 158 | 7 | 38 | 22.571429 | 0.914063 | 0 | 0 | 0 | 0 | 0 | 0.081761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 |
5a5693b3576df740b8965c883d2addfc1acde216 | 126 | py | Python | legacy/main.py | Mnormansell/catan-start-pos-ai | 641d1b76eae305aac657fc62b55102298df644da | [
"MIT"
] | null | null | null | legacy/main.py | Mnormansell/catan-start-pos-ai | 641d1b76eae305aac657fc62b55102298df644da | [
"MIT"
] | null | null | null | legacy/main.py | Mnormansell/catan-start-pos-ai | 641d1b76eae305aac657fc62b55102298df644da | [
"MIT"
] | null | null | null | import parser
"""
NEED TO PARSE ARGUMENTS LIKE
num_players
board
player_pos
chosen strategy
enemy agent
maybe more?
""" | 8.4 | 28 | 0.753968 | 18 | 126 | 5.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 126 | 15 | 29 | 8.4 | 0.911765 | 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 | 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 |
5a5a86be46b38c1a855dd5f64cf2cd9445b3c89e | 180 | py | Python | Curso Python/PythonExercicios/venv/Scripts/django-admin.py | marcos-saba/Cursos | 1c063392867e9ed86d141dad8861a2a35488b1c6 | [
"MIT"
] | null | null | null | Curso Python/PythonExercicios/venv/Scripts/django-admin.py | marcos-saba/Cursos | 1c063392867e9ed86d141dad8861a2a35488b1c6 | [
"MIT"
] | null | null | null | Curso Python/PythonExercicios/venv/Scripts/django-admin.py | marcos-saba/Cursos | 1c063392867e9ed86d141dad8861a2a35488b1c6 | [
"MIT"
] | null | null | null | #!C:\Users\teste\PycharmProjects\PythonExercicios\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 30 | 73 | 0.805556 | 22 | 180 | 6.090909 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 180 | 5 | 74 | 36 | 0.812121 | 0.4 | 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 |
5a64dcc3a74e09f1790718f777b9d0489ea65709 | 229 | py | Python | Solutions/beta/beta_get_the_status_of_generator_expression.py | citrok25/Codewars-1 | dc641c5079e2e8b5955eb027fd15427e5bdb2e26 | [
"MIT"
] | 46 | 2017-08-24T09:27:57.000Z | 2022-02-25T02:24:33.000Z | Solutions/beta/beta_get_the_status_of_generator_expression.py | abbhishek971/Codewars | 9e761811db724da1e8aae44594df42b4ee879a16 | [
"MIT"
] | null | null | null | Solutions/beta/beta_get_the_status_of_generator_expression.py | abbhishek971/Codewars | 9e761811db724da1e8aae44594df42b4ee879a16 | [
"MIT"
] | 35 | 2017-08-01T22:09:48.000Z | 2022-02-18T17:21:37.000Z | from inspect import getgeneratorlocals as ggl
def check_generator(gen):
return {
len(ggl(gen))==1: 'Created',
len(ggl(gen))==2: 'Started',
len(ggl(gen))==0: 'Finished'
}[True]
| 25.444444 | 45 | 0.537118 | 27 | 229 | 4.518519 | 0.703704 | 0.147541 | 0.221311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 0.305677 | 229 | 8 | 46 | 28.625 | 0.748428 | 0 | 0 | 0 | 0 | 0 | 0.09607 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
5a6bef67e0f6cabf862028e8f084f5c9bf5c92fd | 1,866 | py | Python | src/sdk/test/test_departments_api.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | null | null | null | src/sdk/test/test_departments_api.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | null | null | null | src/sdk/test/test_departments_api.py | Chace-wang/bk-user | 057f270d66a1834312306c9fba1f4e95521f10b1 | [
"MIT"
] | 1 | 2021-12-31T06:48:41.000Z | 2021-12-31T06:48:41.000Z | # coding: utf-8
"""
蓝鲸用户管理 API
User management APIs for BlueKing # noqa: E501
OpenAPI spec version: v2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
import bkuser_sdk
from api.departments_api import DepartmentsApi ... | 19.851064 | 69 | 0.646838 | 218 | 1,866 | 5.183486 | 0.275229 | 0.230089 | 0.097345 | 0.115044 | 0.545133 | 0.481416 | 0.246018 | 0 | 0 | 0 | 0 | 0.022878 | 0.273848 | 1,866 | 93 | 70 | 20.064516 | 0.81107 | 0.381029 | 0 | 0.34375 | 1 | 0 | 0.007477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.34375 | 0.15625 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
ce61510d8c00c9697a583f3cdcd3a74d64f5d579 | 407 | py | Python | src/test/python/fixtures/proc_class.py | raduteo/illumon-jpy | 370b0d8cc7a286c615fea2daac47ec9aa101ea26 | [
"Apache-2.0"
] | null | null | null | src/test/python/fixtures/proc_class.py | raduteo/illumon-jpy | 370b0d8cc7a286c615fea2daac47ec9aa101ea26 | [
"Apache-2.0"
] | 1 | 2019-05-01T16:28:34.000Z | 2019-05-01T16:28:34.000Z | src/test/python/fixtures/proc_class.py | raduteo/illumon-jpy | 370b0d8cc7a286c615fea2daac47ec9aa101ea26 | [
"Apache-2.0"
] | 5 | 2018-04-26T20:15:09.000Z | 2020-05-25T22:05:55.000Z | class Processor:
def __init__(self):
pass
def initialize(self):
return 'initialize'
def computeTile(self, x, y, array):
self.spend_some_time()
return 'computeTile-' + str(x) + ',' + str(y)
def dispose(self):
return 'dispose'
def spend_some_time(self):
... | 16.958333 | 53 | 0.547912 | 48 | 407 | 4.479167 | 0.520833 | 0.093023 | 0.12093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03663 | 0.329238 | 407 | 23 | 54 | 17.695652 | 0.750916 | 0 | 0 | 0 | 0 | 0 | 0.074257 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.357143 | false | 0.071429 | 0 | 0.142857 | 0.642857 | 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 |
ce69d5a2dfc778108392a0dc32519817c9f41b42 | 163 | py | Python | webdbpress60/scope/test.py | zhao-embassy/learn_language | 2719f27dea1877ba1da32f1c1d53ebedd5a81fdf | [
"FSFAP"
] | 48 | 2015-02-05T15:25:47.000Z | 2022-01-07T05:52:03.000Z | webdbpress60/scope/test.py | zhao-embassy/learn_language | 2719f27dea1877ba1da32f1c1d53ebedd5a81fdf | [
"FSFAP"
] | null | null | null | webdbpress60/scope/test.py | zhao-embassy/learn_language | 2719f27dea1877ba1da32f1c1d53ebedd5a81fdf | [
"FSFAP"
] | 21 | 2015-02-12T23:50:10.000Z | 2019-12-12T08:25:35.000Z | from coderunner import test, Perl, main
test(Perl, "dynamic.pl", """
yobu-local
""", is_file=True)
test(Perl, "static.pl", """
global
""", is_file=True)
main()
| 13.583333 | 39 | 0.650307 | 24 | 163 | 4.333333 | 0.625 | 0.230769 | 0.192308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134969 | 163 | 11 | 40 | 14.818182 | 0.737589 | 0 | 0 | 0.25 | 0 | 0 | 0.239264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.125 | 0 | 0.125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ce80347dcb2eb1481b7f9b8edc38e9eba6ef3e23 | 88 | py | Python | nyoka/PMML44/behaviors/insNeuron.py | maxibor/nyoka | 19f480eee608035aa5fba368c96d4143bc2f5710 | [
"Apache-2.0"
] | 71 | 2020-08-24T07:59:56.000Z | 2022-03-21T08:36:35.000Z | nyoka/PMML43Ext/behaviors/insNeuron.py | Chiragasourabh/nyoka | 44003b5dc500b18d3a2b2c6ed6fc4db217e2d2c0 | [
"Apache-2.0"
] | 16 | 2020-09-02T10:27:36.000Z | 2022-03-31T05:37:12.000Z | nyoka/PMML43Ext/behaviors/insNeuron.py | Chiragasourabh/nyoka | 44003b5dc500b18d3a2b2c6ed6fc4db217e2d2c0 | [
"Apache-2.0"
] | 16 | 2020-09-17T15:01:33.000Z | 2022-03-28T03:13:25.000Z | self.Neuron.insert(index, value)
self.numberOfNeurons = len(self.Neuron) | 44 | 47 | 0.659091 | 10 | 88 | 5.8 | 0.7 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227273 | 88 | 2 | 47 | 44 | 0.852941 | 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 |
ce821368d5bce8d1db2093c808ceb6a76a6a2745 | 1,572 | py | Python | cool_certificate/views.py | vra/cool_certificate | a1ea59149b90b8633d0382f5e3fa40cabb2cead2 | [
"MIT"
] | 1 | 2019-08-19T01:48:18.000Z | 2019-08-19T01:48:18.000Z | cool_certificate/views.py | vra/cool_certificate | a1ea59149b90b8633d0382f5e3fa40cabb2cead2 | [
"MIT"
] | null | null | null | cool_certificate/views.py | vra/cool_certificate | a1ea59149b90b8633d0382f5e3fa40cabb2cead2 | [
"MIT"
] | null | null | null | # coding: utf-8
from django.http import HttpResponse
from django.shortcuts import render_to_response
from django.template import RequestContext
#import request
import create_certificates
from forms import *
def index(request):
return render_to_response('index.html')
def feiji(request):
if request.method == "POST":... | 32.75 | 117 | 0.743003 | 199 | 1,572 | 5.723618 | 0.19598 | 0.05619 | 0.112379 | 0.135206 | 0.759438 | 0.748903 | 0.748903 | 0.748903 | 0.748903 | 0.598771 | 0 | 0.005032 | 0.11514 | 1,572 | 47 | 118 | 33.446809 | 0.813803 | 0.017176 | 0 | 0.486486 | 0 | 0 | 0.106355 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.135135 | 0.027027 | 0.432432 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 |
ce8e6efbc9a2cb260e843bd0fd5d833ff86909bc | 1,768 | py | Python | codewars/7kyu/dinamuh/MaximumLengthDifference/test_bench.py | dinamuh/Training_one | d18e8fb12608ce1753162c20252ca928c4df97ab | [
"MIT"
] | null | null | null | codewars/7kyu/dinamuh/MaximumLengthDifference/test_bench.py | dinamuh/Training_one | d18e8fb12608ce1753162c20252ca928c4df97ab | [
"MIT"
] | 2 | 2019-01-22T10:53:42.000Z | 2019-01-31T08:02:48.000Z | codewars/7kyu/dinamuh/MaximumLengthDifference/test_bench.py | dinamuh/Training_one | d18e8fb12608ce1753162c20252ca928c4df97ab | [
"MIT"
] | 13 | 2019-01-22T10:37:42.000Z | 2019-01-25T13:30:43.000Z | from main import mxdiflg
s1 = ["hoqq", "bbllkw", "oox", "ejjuyyy", "plmiis", "xxxzgpsssa", "xxwwkktt", "znnnnfqknaz", "qqquuhii", "dvvvwz"]
s2 = ["cccooommaaqqoxii", "gggqaffhhh", "tttoowwwmmww"]
def test(benchmark):
assert benchmark(mxdiflg, s1, s2) == 13
def test2(benchmark):
assert benchmark(mxdiflg, s1... | 63.142857 | 185 | 0.341629 | 154 | 1,768 | 3.922078 | 0.61039 | 0.023179 | 0.07947 | 0.102649 | 0.122517 | 0.122517 | 0.122517 | 0 | 0 | 0 | 0 | 0.118364 | 0.211538 | 1,768 | 27 | 186 | 65.481481 | 0.314921 | 0 | 0 | 0.210526 | 0 | 0.210526 | 0.862656 | 0.359818 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.105263 | false | 0.052632 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
cec439decc3ce870db5e45f5d8fa25bce71db95d | 2,803 | py | Python | kids_math/img.py | crvernon/kids_math | 7975d87de9a4fe951ae345bb6ef9167bca236d4e | [
"MIT"
] | null | null | null | kids_math/img.py | crvernon/kids_math | 7975d87de9a4fe951ae345bb6ef9167bca236d4e | [
"MIT"
] | null | null | null | kids_math/img.py | crvernon/kids_math | 7975d87de9a4fe951ae345bb6ef9167bca236d4e | [
"MIT"
] | null | null | null | import pkg_resources
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
from IPython import display
# class ImageQueue:
#
# # https://www.google.com/url?sa=i&url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FRecycling_symbol&psig=AOvVaw2GNY83bu2O5H-QsZthasM5&us... | 56.06 | 243 | 0.766322 | 344 | 2,803 | 6.133721 | 0.389535 | 0.045498 | 0.046446 | 0.056398 | 0.407109 | 0.359716 | 0.359716 | 0.304265 | 0.218009 | 0.218009 | 0 | 0.090945 | 0.101677 | 2,803 | 49 | 244 | 57.204082 | 0.747021 | 0.828755 | 0 | 0 | 0 | 0 | 0.154195 | 0.106576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.111111 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
cecda859b56efa5ee220b03384762881b3f36b48 | 141 | py | Python | utils.py | tannerbohn/NeuralAntArt | 3a43833dc36698def435c57dbd6c99cdb6e20f99 | [
"MIT"
] | 2 | 2018-05-28T17:26:42.000Z | 2022-03-13T01:34:12.000Z | utils.py | tannerbohn/NeuralAntArt | 3a43833dc36698def435c57dbd6c99cdb6e20f99 | [
"MIT"
] | null | null | null | utils.py | tannerbohn/NeuralAntArt | 3a43833dc36698def435c57dbd6c99cdb6e20f99 | [
"MIT"
] | null | null | null |
def clip(m, M, val):
return min(max(val, m), M)
def toHex(cvec):
rgb = tuple([int(255*v) for v in cvec])
return '#%02x%02x%02x' % rgb | 14.1 | 40 | 0.595745 | 28 | 141 | 3 | 0.607143 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079646 | 0.198582 | 141 | 10 | 41 | 14.1 | 0.663717 | 0 | 0 | 0 | 0 | 0 | 0.092857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
ced6eb4cd4bf53b04e432905ca7c5fdbc6e4b524 | 234 | py | Python | Ubot/core/methods/messages/__init__.py | Alternative-Profit/Ubot | 529514307c5431144fd56f6aba928dce1e880d93 | [
"Apache-2.0"
] | 1 | 2022-01-04T11:36:06.000Z | 2022-01-04T11:36:06.000Z | Ubot/core/methods/messages/__init__.py | Alternative-Profit/Ubot | 529514307c5431144fd56f6aba928dce1e880d93 | [
"Apache-2.0"
] | 1 | 2022-01-08T20:18:50.000Z | 2022-01-08T20:18:50.000Z | Ubot/core/methods/messages/__init__.py | Alternative-Profit/Ubot | 529514307c5431144fd56f6aba928dce1e880d93 | [
"Apache-2.0"
] | 3 | 2022-01-08T20:10:47.000Z | 2022-03-12T08:09:32.000Z | __all__ = ['Messages']
from .send_message import SendMessage
from .edit_message_text import EditMessageText
from .send_as_file import SendAsFile
class Messages(SendMessage, EditMessageText, SendAsFile):
""" methods.messages """ | 26 | 57 | 0.794872 | 26 | 234 | 6.807692 | 0.576923 | 0.090395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119658 | 234 | 9 | 58 | 26 | 0.859223 | 0.068376 | 0 | 0 | 0 | 0 | 0.037915 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0cb4c3744ffaf8733025aa0ac7ec3d03e082eec6 | 273 | py | Python | Ex021.py | dpsaraiva/Exercicios_Python | d325df344a37126a1b9c68a21dfa2fff9ca8a3d6 | [
"MIT"
] | null | null | null | Ex021.py | dpsaraiva/Exercicios_Python | d325df344a37126a1b9c68a21dfa2fff9ca8a3d6 | [
"MIT"
] | null | null | null | Ex021.py | dpsaraiva/Exercicios_Python | d325df344a37126a1b9c68a21dfa2fff9ca8a3d6 | [
"MIT"
] | null | null | null | #Desafio:Faça um programa em Python que abra e reproduza um arquivo de mp3.
#import pygame
#pygame.mixer.init()
#pygame.mixer.music.load('Ex021.mp3')
#pygame.mixer.music.play()
#while(pygame.mixer.music.get_busy()): pass
import playsound
playsound.playsound('Ex021.mp3')
| 24.818182 | 75 | 0.765568 | 42 | 273 | 4.952381 | 0.619048 | 0.211538 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03629 | 0.091575 | 273 | 10 | 76 | 27.3 | 0.802419 | 0.765568 | 0 | 0 | 0 | 0 | 0.155172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0ce3e6638f98b21fb56f7d6c625bbba422fb78c7 | 42 | py | Python | tests/res/script-blank.py | mate-code/alfred | e687e9318ecefe3a49565027841ca8d910647978 | [
"MIT"
] | 9 | 2020-05-11T08:13:12.000Z | 2022-01-20T11:35:14.000Z | tests/res/script-blank.py | mate-code/alfred | e687e9318ecefe3a49565027841ca8d910647978 | [
"MIT"
] | 77 | 2019-02-22T07:34:58.000Z | 2022-02-23T15:32:34.000Z | tests/res/script-blank.py | mate-code/alfred | e687e9318ecefe3a49565027841ca8d910647978 | [
"MIT"
] | 6 | 2020-11-11T16:51:04.000Z | 2022-02-21T10:29:02.000Z | import alfred3 as al
exp = al.Experiment() | 21 | 21 | 0.761905 | 7 | 42 | 4.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027778 | 0.142857 | 42 | 2 | 21 | 21 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0cee5c24b4cef1d074e9aae10695cb6a9f855498 | 144 | py | Python | api/beers/apps.py | haavardnk/Vinmonopolet-x-Untappd | 950db7201593d7b94daf091884949aed4377d4ca | [
"MIT"
] | null | null | null | api/beers/apps.py | haavardnk/Vinmonopolet-x-Untappd | 950db7201593d7b94daf091884949aed4377d4ca | [
"MIT"
] | null | null | null | api/beers/apps.py | haavardnk/Vinmonopolet-x-Untappd | 950db7201593d7b94daf091884949aed4377d4ca | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class BeersConfig(AppConfig):
name = "beers"
def ready(self):
import beers.signals
| 16 | 34 | 0.645833 | 16 | 144 | 5.8125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 144 | 8 | 35 | 18 | 0.894231 | 0 | 0 | 0 | 0 | 0 | 0.036765 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 |
0cfc1fac1522c6ffa5f1a3e68b857ac8afc6d51c | 190 | py | Python | gluoncv/model_zoo/rpn/__init__.py | Angzz/gluon-cv-fpn | fc66b2c2fa97bc65e811aabe9d9d0cd16dc198ec | [
"Apache-2.0"
] | 10 | 2019-01-16T10:08:37.000Z | 2022-02-23T06:13:30.000Z | gluoncv/model_zoo/rpn/__init__.py | Angzz/gluon-cv-fpn | fc66b2c2fa97bc65e811aabe9d9d0cd16dc198ec | [
"Apache-2.0"
] | 1 | 2019-01-18T06:42:59.000Z | 2019-01-18T12:26:11.000Z | gluoncv/model_zoo/rpn/__init__.py | Angzz/gluon-cv-fpn | fc66b2c2fa97bc65e811aabe9d9d0cd16dc198ec | [
"Apache-2.0"
] | 1 | 2019-08-30T12:03:58.000Z | 2019-08-30T12:03:58.000Z | """Region Proposal Network."""
from __future__ import absolute_import
from .rpn import RPN
from . import bbox_clip
from .anchor import RPNAnchorGenerator
from .proposal import RPNProposal
| 21.111111 | 38 | 0.810526 | 24 | 190 | 6.166667 | 0.541667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 190 | 8 | 39 | 23.75 | 0.89697 | 0.126316 | 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 |
0b40abb16bcbd7f9351819a8ea4750af8a312e44 | 36,049 | py | Python | src/demo/ai/solarix/DeSR/desr-1.3.2/src/desr.py | name212/GrammarEngine | 1912809d6a19977c9d2fff88279b76a6152b659d | [
"MIT"
] | 55 | 2015-04-11T17:39:27.000Z | 2022-01-07T17:52:22.000Z | src/demo/ai/solarix/DeSR/desr-1.3.2/src/desr.py | name212/GrammarEngine | 1912809d6a19977c9d2fff88279b76a6152b659d | [
"MIT"
] | 17 | 2017-11-22T13:31:11.000Z | 2021-06-06T08:30:43.000Z | src/demo/ai/solarix/DeSR/desr-1.3.2/src/desr.py | qwazer/GrammarEngine | 08e1eb7bdfd77f29a51a7063848d74b9171291c4 | [
"MIT"
] | 28 | 2015-05-21T08:27:31.000Z | 2022-02-24T21:42:36.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 2.0.4
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (2,6,0):
def swig_import_helper():
from os.path import ... | 48.387919 | 108 | 0.742905 | 4,553 | 36,049 | 5.244235 | 0.065891 | 0.064665 | 0.053357 | 0.064832 | 0.544834 | 0.434393 | 0.388198 | 0.345605 | 0.309712 | 0.261674 | 0 | 0.000524 | 0.153707 | 36,049 | 744 | 109 | 48.452957 | 0.782123 | 0.008156 | 0 | 0.267626 | 1 | 0 | 0.023416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290647 | false | 0.002878 | 0.01295 | 0.248921 | 0.608633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0b652dc64eeb47401f02a83e16c4ee49dc024ce2 | 189 | py | Python | trading/tests/test_recommender_unit.py | nud3l/Dinvest | 21d7f0891eb14ef88e6780d05e99fee1bff5d182 | [
"MIT"
] | 13 | 2017-06-19T10:38:45.000Z | 2021-02-06T07:38:28.000Z | trading/tests/test_recommender_unit.py | nud3l/Dinvest | 21d7f0891eb14ef88e6780d05e99fee1bff5d182 | [
"MIT"
] | null | null | null | trading/tests/test_recommender_unit.py | nud3l/Dinvest | 21d7f0891eb14ef88e6780d05e99fee1bff5d182 | [
"MIT"
] | 9 | 2016-12-23T23:03:30.000Z | 2021-09-07T23:19:42.000Z | #from recommender.InvestHandler import getSectors
#from web3 import Web3
#class TestInvestHandler:
# def test_get_sectors(self):
# sectors = getSectors()
# assert sectors
| 23.625 | 49 | 0.724868 | 20 | 189 | 6.75 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013245 | 0.201058 | 189 | 7 | 50 | 27 | 0.880795 | 0.931217 | 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 |
0b658c0047790de044999a9bc563f532f9a6025b | 46 | py | Python | pystt/__init__.py | nws0507/pystt | af7393a2d16858f43b776d94511fd36c9c8e5312 | [
"MIT"
] | null | null | null | pystt/__init__.py | nws0507/pystt | af7393a2d16858f43b776d94511fd36c9c8e5312 | [
"MIT"
] | null | null | null | pystt/__init__.py | nws0507/pystt | af7393a2d16858f43b776d94511fd36c9c8e5312 | [
"MIT"
] | null | null | null | __version__ = '0.2.2'
from .stt import PyStt
| 11.5 | 22 | 0.695652 | 8 | 46 | 3.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.173913 | 46 | 3 | 23 | 15.333333 | 0.657895 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0b65f5cbb5db01c1f7742ccf85ae3de236c160dc | 198 | py | Python | server/adoptions/apps.py | tombushmitz86/vims | 1dcf1bf655ef8e33092f8e3e4cfbd11e11239e3e | [
"MIT"
] | null | null | null | server/adoptions/apps.py | tombushmitz86/vims | 1dcf1bf655ef8e33092f8e3e4cfbd11e11239e3e | [
"MIT"
] | null | null | null | server/adoptions/apps.py | tombushmitz86/vims | 1dcf1bf655ef8e33092f8e3e4cfbd11e11239e3e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class AdoptionsConfig(AppConfig):
name = 'adoptions'
verbose_name = _('Adoptions and deliveries')
| 24.75 | 55 | 0.777778 | 23 | 198 | 6.521739 | 0.73913 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151515 | 198 | 7 | 56 | 28.285714 | 0.892857 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 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 |
0b877f5dd7ab770e11ed87df58a7b9daeb179b1a | 52 | py | Python | modules/2.79/bpy/types/Lattice.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/Lattice.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | modules/2.79/bpy/types/Lattice.py | cmbasnett/fake-bpy-module | acb8b0f102751a9563e5b5e5c7cd69a4e8aa2a55 | [
"MIT"
] | null | null | null | def transform(matrix, shape_keys=False):
pass
| 10.4 | 40 | 0.711538 | 7 | 52 | 5.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 52 | 4 | 41 | 13 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f004432884b39d8c1d28c5aafb43da3336c709c4 | 123 | py | Python | 7KYU/count_languages.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 7KYU/count_languages.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | 7KYU/count_languages.py | yaznasivasai/python_codewars | 25493591dde4649dc9c1ec3bece8191a3bed6818 | [
"MIT"
] | null | null | null | from collections import Counter
def count_languages(lst: list) -> dict:
return Counter([i['language'] for i in lst])
| 24.6 | 48 | 0.715447 | 18 | 123 | 4.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 123 | 4 | 49 | 30.75 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | 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 |
f0054a5f18b98dfa115a7841f0b568149011ae5d | 1,405 | py | Python | src/library/password.py | fahadahammed/NelectMon | 157cd8729536b1575f71a05c7e259979b23a08be | [
"MIT"
] | null | null | null | src/library/password.py | fahadahammed/NelectMon | 157cd8729536b1575f71a05c7e259979b23a08be | [
"MIT"
] | null | null | null | src/library/password.py | fahadahammed/NelectMon | 157cd8729536b1575f71a05c7e259979b23a08be | [
"MIT"
] | null | null | null | from passlib.hash import pbkdf2_sha256, bcrypt_sha256
class PasswordManager:
def __init__(self):
self.plain_password = None
self.encrypted_password = None
def create_password(self, plain_password):
self.plain_password = plain_password
self.encrypted_password = pbkdf2_sha256.en... | 39.027778 | 105 | 0.717438 | 161 | 1,405 | 5.944099 | 0.242236 | 0.244514 | 0.248694 | 0.208986 | 0.718913 | 0.656217 | 0.580982 | 0.580982 | 0.528736 | 0.411703 | 0 | 0.03379 | 0.220641 | 1,405 | 35 | 106 | 40.142857 | 0.840183 | 0 | 0 | 0.344828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0.724138 | 0.034483 | 0 | 0.448276 | 0.034483 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
f0139ed0273ab22809410ac913aa862b43575282 | 257 | py | Python | events/views.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | null | null | null | events/views.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | 7 | 2021-03-19T03:09:53.000Z | 2022-01-13T02:48:44.000Z | events/views.py | amado-developer/ReadHub-RestfulAPI | 8d8b445c4a84810d52bbf78a2593e0b48351590c | [
"MIT"
] | null | null | null | from django.shortcuts import render
from rest_framework import viewsets
from .models import Event
from .serializers import EventSerializer
class EventViewset(viewsets.ModelViewSet):
queryset = Event.objects.all()
serializer_class = EventSerializer
| 28.555556 | 42 | 0.821012 | 29 | 257 | 7.206897 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128405 | 257 | 8 | 43 | 32.125 | 0.933036 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 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 |
f025d444a2ccd703709b77f8471eeaeb4973bfba | 203 | py | Python | model.py | oodkan/solid-guacamole | 617a5d979d36d624a5110f84482a13f2bc81d7c5 | [
"Unlicense"
] | null | null | null | model.py | oodkan/solid-guacamole | 617a5d979d36d624a5110f84482a13f2bc81d7c5 | [
"Unlicense"
] | null | null | null | model.py | oodkan/solid-guacamole | 617a5d979d36d624a5110f84482a13f2bc81d7c5 | [
"Unlicense"
] | null | null | null | from Jeu import Jeu
from JoueurAlea import *
# Let's play
jeu = Jeu(True) # type: Jeu
jeu.ajouterJoueur(JoueurAlea())
jeu.ajouterJoueur(JoueurAlea())
jeu.ajouterJoueur(JoueurAlea())
jeu.jouerPartie()
| 18.454545 | 31 | 0.753695 | 26 | 203 | 5.884615 | 0.423077 | 0.313725 | 0.509804 | 0.568627 | 0.529412 | 0.529412 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0.118227 | 203 | 10 | 32 | 20.3 | 0.854749 | 0.098522 | 0 | 0.428571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f077a558e647c18f25700c5810d06227b5415a6e | 214 | py | Python | application/models/tcid50/tcid50_input_data_set.py | TurboGob/TCID50_Calculator | ff2d00443c3e0f80d753ccc815e562ce734857cc | [
"MIT"
] | null | null | null | application/models/tcid50/tcid50_input_data_set.py | TurboGob/TCID50_Calculator | ff2d00443c3e0f80d753ccc815e562ce734857cc | [
"MIT"
] | null | null | null | application/models/tcid50/tcid50_input_data_set.py | TurboGob/TCID50_Calculator | ff2d00443c3e0f80d753ccc815e562ce734857cc | [
"MIT"
] | null | null | null | from typing import List
from application.models.tcid50.dilution import Dilution
class TCID50InputDataSet:
dilutions = []
def __init__(self, dilutions: List[Dilution]):
self.dilutions = dilutions
| 21.4 | 55 | 0.742991 | 23 | 214 | 6.73913 | 0.608696 | 0.167742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022857 | 0.182243 | 214 | 9 | 56 | 23.777778 | 0.862857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.833333 | 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 |
b2b54b25a801cdce1b1525775e23757875fec1dc | 136 | py | Python | null-pattern/nullclass.py | Tomvictor/python-design-patterns | 6b99607d721bbe03d26a0a451a10e88cd1c1d112 | [
"MIT"
] | null | null | null | null-pattern/nullclass.py | Tomvictor/python-design-patterns | 6b99607d721bbe03d26a0a451a10e88cd1c1d112 | [
"MIT"
] | null | null | null | null-pattern/nullclass.py | Tomvictor/python-design-patterns | 6b99607d721bbe03d26a0a451a10e88cd1c1d112 | [
"MIT"
] | null | null | null | from abs_class import AbsClass
class NullClass(AbsClass):
def do_something(self, value):
print('Not doing %s.' % value) | 27.2 | 38 | 0.676471 | 18 | 136 | 5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220588 | 136 | 5 | 38 | 27.2 | 0.849057 | 0 | 0 | 0 | 0 | 0 | 0.097744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
b2e0ffdbe5fbe3e293a21ce52e26ea3da65ba3dc | 305 | py | Python | conftest.py | jaraco/jaraco.crypto | 08918ca0b2fe9cf94c3d071095ea9ef66f015a6c | [
"MIT"
] | null | null | null | conftest.py | jaraco/jaraco.crypto | 08918ca0b2fe9cf94c3d071095ea9ef66f015a6c | [
"MIT"
] | null | null | null | conftest.py | jaraco/jaraco.crypto | 08918ca0b2fe9cf94c3d071095ea9ef66f015a6c | [
"MIT"
] | null | null | null | import platform
import six
collect_ignore = [
'certutil.py',
]
if platform.system() != 'Windows':
collect_ignore.extend(
[
'jaraco/crypto/cert.py',
]
)
if six.PY3:
collect_ignore.extend(
[
'jaraco/crypto/blowfish.py',
]
)
| 12.2 | 40 | 0.518033 | 29 | 305 | 5.344828 | 0.551724 | 0.251613 | 0.245161 | 0.322581 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005076 | 0.354098 | 305 | 24 | 41 | 12.708333 | 0.781726 | 0 | 0 | 0.117647 | 0 | 0 | 0.209836 | 0.15082 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
652d7c34825b1f5941d3595b98f557ae33c2e73e | 165 | py | Python | artists/forms.py | flannj/urbanapplause_django | bec6197e55dc7422227fc013e9d465dae52e9cdc | [
"MIT"
] | null | null | null | artists/forms.py | flannj/urbanapplause_django | bec6197e55dc7422227fc013e9d465dae52e9cdc | [
"MIT"
] | null | null | null | artists/forms.py | flannj/urbanapplause_django | bec6197e55dc7422227fc013e9d465dae52e9cdc | [
"MIT"
] | null | null | null | from django import forms
from models import Artist
class ArtistForm(forms.ModelForm):
class Meta:
model = Artist
fields = ['name', 'instrument'] | 23.571429 | 39 | 0.678788 | 19 | 165 | 5.894737 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236364 | 165 | 7 | 39 | 23.571429 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0.084337 | 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 |
33041feb5700b9d32923b96861b1b5cac59926af | 212 | py | Python | nature/bricks/experiments/get_regularizer.py | bionicles/neuromax | a53a17a1c033c11ac607a9e28f43b1f906e58aad | [
"MIT"
] | null | null | null | nature/bricks/experiments/get_regularizer.py | bionicles/neuromax | a53a17a1c033c11ac607a9e28f43b1f906e58aad | [
"MIT"
] | null | null | null | nature/bricks/experiments/get_regularizer.py | bionicles/neuromax | a53a17a1c033c11ac607a9e28f43b1f906e58aad | [
"MIT"
] | null | null | null | from tensorflow_probability import layers as tfpl
from . import get_prior
def get_regularizer(size, prior_type="normal"):
prior = get_prior(size, prior_type)
return tfpl.KLDivergenceRegularizer(prior)
| 23.555556 | 49 | 0.787736 | 28 | 212 | 5.75 | 0.571429 | 0.099379 | 0.161491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141509 | 212 | 8 | 50 | 26.5 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
332195d639408846f291133ebb5514a995256221 | 6,410 | py | Python | 2020_3/projeto2/GrammarCheckerVisitor.py | gui555pl/compilers-cin | a92788ec2dc9f9a927fbce579ece0765d75877c5 | [
"MIT"
] | 24 | 2015-05-30T04:55:16.000Z | 2022-02-27T03:16:33.000Z | 2020_3/projeto2/GrammarCheckerVisitor.py | gui555pl/compilers-cin | a92788ec2dc9f9a927fbce579ece0765d75877c5 | [
"MIT"
] | 2 | 2015-06-19T23:06:53.000Z | 2015-06-21T18:19:33.000Z | 2020_3/projeto2/GrammarCheckerVisitor.py | gui555pl/compilers-cin | a92788ec2dc9f9a927fbce579ece0765d75877c5 | [
"MIT"
] | 39 | 2015-06-06T20:40:13.000Z | 2021-03-21T23:11:01.000Z | # Generated from antlr4-python3-runtime-4.7.2/src/autogen/Grammar.g4 by ANTLR 4.7.2
from antlr4 import *
if __name__ is not None and "." in __name__:
from .GrammarParser import GrammarParser
else:
from GrammarParser import GrammarParser
# This class defines a complete generic visitor for a parse tree produced ... | 38.614458 | 191 | 0.746022 | 819 | 6,410 | 5.781441 | 0.301587 | 0.029145 | 0.048574 | 0.087434 | 0.314889 | 0.314889 | 0.30792 | 0.291869 | 0.291869 | 0.291869 | 0 | 0.002481 | 0.182683 | 6,410 | 165 | 192 | 38.848485 | 0.901317 | 0.277691 | 0 | 0.333333 | 1 | 0 | 0.006101 | 0 | 0 | 0 | 0 | 0.006061 | 0 | 1 | 0.349206 | false | 0 | 0.047619 | 0.333333 | 0.873016 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
68243812451557c85f3765b6b683041d6a1a3d56 | 70 | py | Python | pygalgen/generator/common/macros/__init__.py | Kulivox/PyGalGen | 816004bce50703737384e2fbdcfe43b61ce2f4dd | [
"MIT"
] | null | null | null | pygalgen/generator/common/macros/__init__.py | Kulivox/PyGalGen | 816004bce50703737384e2fbdcfe43b61ce2f4dd | [
"MIT"
] | null | null | null | pygalgen/generator/common/macros/__init__.py | Kulivox/PyGalGen | 816004bce50703737384e2fbdcfe43b61ce2f4dd | [
"MIT"
] | null | null | null | """
Subpackage containing modules used to create and handle macros
""" | 23.333333 | 62 | 0.771429 | 9 | 70 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 70 | 3 | 63 | 23.333333 | 0.9 | 0.885714 | 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 |
682bda1361f232058f3f41b0e3468c159450efb2 | 68,721 | py | Python | data.py | JarredParrettDickinson/AGRO-DATA | 4b45c3414b0af26db7105e891b00f83a56043ebc | [
"MIT"
] | null | null | null | data.py | JarredParrettDickinson/AGRO-DATA | 4b45c3414b0af26db7105e891b00f83a56043ebc | [
"MIT"
] | 5 | 2020-05-27T17:12:03.000Z | 2021-12-13T20:41:46.000Z | data.py | JarredParrettDickinson/AGRO-DATA | 4b45c3414b0af26db7105e891b00f83a56043ebc | [
"MIT"
] | null | null | null | #employ cron to run this at 4am daily
import requests
import urllib.request as ur
from urllib.request import Request, urlopen
from gzip import GzipFile
import pandas as pd
import geopandas as gpd
dict_states={'AL': {'AUTAUGA': '01001', 'BALDWIN': '01003', 'BARBOUR': '01005', 'BIBB': '01007', 'BLOUNT': '01009', 'BU... | 642.252336 | 65,447 | 0.599235 | 7,340 | 68,721 | 5.593324 | 0.731608 | 0.007283 | 0.007307 | 0.000877 | 0.015077 | 0.011667 | 0.003166 | 0.003166 | 0 | 0 | 0 | 0.263793 | 0.108016 | 68,721 | 107 | 65,448 | 642.252336 | 0.405968 | 0.002343 | 0 | 0.053191 | 0 | 0 | 0.578987 | 0.002188 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0.010638 | 0.106383 | 0 | 0.234043 | 0.095745 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
684d20bedb01c78cfb97958b6e053e51bfcf1145 | 88 | py | Python | test_module.py | andrewschreiber/fpeg | 16fc3afb795040aea2e41216d6a9f88cedff2ba4 | [
"MIT"
] | 5 | 2015-02-09T06:42:21.000Z | 2021-02-24T00:38:32.000Z | test_module.py | andrewschreiber/fpeg | 16fc3afb795040aea2e41216d6a9f88cedff2ba4 | [
"MIT"
] | 1 | 2020-02-05T09:18:13.000Z | 2020-06-30T21:42:39.000Z | test_module.py | andrewschreiber/fpeg | 16fc3afb795040aea2e41216d6a9f88cedff2ba4 | [
"MIT"
] | 1 | 2019-06-11T19:30:37.000Z | 2019-06-11T19:30:37.000Z | from fpeg_module import compressor
compressor.compress("images/got.jpg", 10, 75, True)
| 22 | 51 | 0.784091 | 13 | 88 | 5.230769 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 0.102273 | 88 | 3 | 52 | 29.333333 | 0.810127 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 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 |
68768aa41a8d83a4500d68e8bc4ed1510a719b11 | 231 | py | Python | past_archive/swexpert/3456(rectangleLength).py | DongHyunByun/algorithm_practice | c726c69d35306d23467f4af6e10f2db6fdc68234 | [
"MIT"
] | null | null | null | past_archive/swexpert/3456(rectangleLength).py | DongHyunByun/algorithm_practice | c726c69d35306d23467f4af6e10f2db6fdc68234 | [
"MIT"
] | null | null | null | past_archive/swexpert/3456(rectangleLength).py | DongHyunByun/algorithm_practice | c726c69d35306d23467f4af6e10f2db6fdc68234 | [
"MIT"
] | null | null | null | for t in range(int(input())):
L=input().split()
if L.count(L[0])==2 :
if L[0]!=L[1]:
print(f"#{t+1} {L[1]}")
else:
print(f"#{t+1} {L[2]}")
else :
print(f"#{t+1} {L[0]}")
| 23.1 | 35 | 0.367965 | 40 | 231 | 2.125 | 0.4 | 0.070588 | 0.247059 | 0.282353 | 0.411765 | 0.305882 | 0 | 0 | 0 | 0 | 0 | 0.066225 | 0.34632 | 231 | 9 | 36 | 25.666667 | 0.496689 | 0 | 0 | 0.222222 | 0 | 0 | 0.168831 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6881323123b6b4163a9d014baabfff882ee7186e | 262 | py | Python | chapter_7/server_movierecsys/books_recsys_app/serializers.py | HIleewei/python-web | fafacdee6468d50fba2e07fe184fcdd2fa3d272b | [
"MIT"
] | 64 | 2016-08-06T22:19:39.000Z | 2021-11-08T13:13:29.000Z | chapter_7/server_movierecsys/books_recsys_app/serializers.py | HIleewei/python-web | fafacdee6468d50fba2e07fe184fcdd2fa3d272b | [
"MIT"
] | 3 | 2017-09-17T09:19:52.000Z | 2020-10-28T13:08:16.000Z | chapter_7/server_movierecsys/books_recsys_app/serializers.py | HIleewei/python-web | fafacdee6468d50fba2e07fe184fcdd2fa3d272b | [
"MIT"
] | 55 | 2016-12-20T00:29:53.000Z | 2021-11-25T09:03:42.000Z | from books_recsys_app.models import UserProfile
from rest_framework import serializers
class UsersSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = UserProfile
fields = ('name', 'arrayratedmoviesindxs','lastrecs') | 29.111111 | 62 | 0.759542 | 24 | 262 | 8.166667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171756 | 262 | 9 | 63 | 29.111111 | 0.903226 | 0 | 0 | 0 | 0 | 0 | 0.125475 | 0.079848 | 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 |
68896272c5597dac90da6bd69d73bcc369311387 | 196 | py | Python | PythonFiles/exception.py | IamVaibhavsar/Python_Files | 283d73929a3e11955c71499407c4f8bff56e4273 | [
"MIT"
] | null | null | null | PythonFiles/exception.py | IamVaibhavsar/Python_Files | 283d73929a3e11955c71499407c4f8bff56e4273 | [
"MIT"
] | null | null | null | PythonFiles/exception.py | IamVaibhavsar/Python_Files | 283d73929a3e11955c71499407c4f8bff56e4273 | [
"MIT"
] | 1 | 2019-07-26T15:25:21.000Z | 2019-07-26T15:25:21.000Z | #num=int(input("Enter a number:"))
#print(num)
try:
num = int(input("Enter a number:"))
print(num)
except:
print("INVALID INPUT!")
'''Enter a number:k
INVALID INPUT!''' | 15.076923 | 40 | 0.576531 | 27 | 196 | 4.185185 | 0.407407 | 0.265487 | 0.292035 | 0.451327 | 0.548673 | 0.548673 | 0.548673 | 0.548673 | 0 | 0 | 0 | 0 | 0.234694 | 196 | 13 | 41 | 15.076923 | 0.753333 | 0.219388 | 0 | 0 | 0 | 0 | 0.281553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
689c7e8fe1d03ceec21067f638aba8dbc46757e7 | 49 | py | Python | hello.py | mafzal2/ExplainingGitHub | 187f1f274cc1a974b3d7e59f10712542b0ec0d6c | [
"MIT"
] | null | null | null | hello.py | mafzal2/ExplainingGitHub | 187f1f274cc1a974b3d7e59f10712542b0ec0d6c | [
"MIT"
] | null | null | null | hello.py | mafzal2/ExplainingGitHub | 187f1f274cc1a974b3d7e59f10712542b0ec0d6c | [
"MIT"
] | null | null | null | msg = "Hello Developers and QA team!"
print(msg)
| 16.333333 | 37 | 0.714286 | 8 | 49 | 4.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 49 | 2 | 38 | 24.5 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0.591837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
689de54790891fa2acdf31d104d24eb99c064020 | 667 | py | Python | app/ext/music/__init__.py | MisakaMikoto0502/zeroday | e0a7a652ccca1af10e3ded01eef0baa8eccf0976 | [
"MIT"
] | null | null | null | app/ext/music/__init__.py | MisakaMikoto0502/zeroday | e0a7a652ccca1af10e3ded01eef0baa8eccf0976 | [
"MIT"
] | null | null | null | app/ext/music/__init__.py | MisakaMikoto0502/zeroday | e0a7a652ccca1af10e3ded01eef0baa8eccf0976 | [
"MIT"
] | 1 | 2020-11-12T23:02:15.000Z | 2020-11-12T23:02:15.000Z | from app.ext.music.filter import safe
from app.ext.music.Player import Player
from app.ext.music.option import ytdl_format_options_a
from app.ext.music.option import ytdl_format_options
from app.ext.music.option import ffmpeg_options_a
from app.ext.music.option import ffmpeg_options
from app.ext.music.option import adu... | 44.466667 | 54 | 0.833583 | 108 | 667 | 5 | 0.212963 | 0.168519 | 0.240741 | 0.361111 | 0.642593 | 0.642593 | 0.542593 | 0.314815 | 0.162963 | 0 | 0 | 0 | 0.086957 | 667 | 15 | 55 | 44.466667 | 0.8867 | 0 | 0 | 0 | 0 | 0 | 0.041916 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.928571 | 0 | 0.928571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
d7ad92b6fb2f3a35798f19c6950e42d6f6055282 | 1,071 | py | Python | inventory/migrations/0002_remove_group_ansible_become_pass_and_more.py | brkyavuz/webnet | 0204214e138acb051a15e5d5b9ffbdc53d4a7691 | [
"MIT"
] | null | null | null | inventory/migrations/0002_remove_group_ansible_become_pass_and_more.py | brkyavuz/webnet | 0204214e138acb051a15e5d5b9ffbdc53d4a7691 | [
"MIT"
] | null | null | null | inventory/migrations/0002_remove_group_ansible_become_pass_and_more.py | brkyavuz/webnet | 0204214e138acb051a15e5d5b9ffbdc53d4a7691 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-24 12:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='group',
name='ansible_become_pass'... | 24.906977 | 84 | 0.53408 | 91 | 1,071 | 6.120879 | 0.483516 | 0.113106 | 0.280072 | 0.32316 | 0.495512 | 0.412926 | 0.412926 | 0 | 0 | 0 | 0 | 0.027338 | 0.351074 | 1,071 | 42 | 85 | 25.5 | 0.774101 | 0.042017 | 0 | 0.611111 | 1 | 0 | 0.168945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.055556 | 0.027778 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
d7bf4b9c4b5e968b327e287b23a534cd1dda83f3 | 129 | py | Python | Curso de Cisco/Actividades/Funcion propia sin parametros.py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | Curso de Cisco/Actividades/Funcion propia sin parametros.py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | Curso de Cisco/Actividades/Funcion propia sin parametros.py | tomasfriz/Curso-de-Cisco | a50ee5fa96bd86d468403e29ccdc3565a181af60 | [
"MIT"
] | null | null | null | def mensaje(): # definiendo una función
print("Hola") # cuerpo de la función
mensaje() # invocación de la función | 32.25 | 43 | 0.651163 | 17 | 129 | 5 | 0.705882 | 0.094118 | 0.258824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248062 | 129 | 4 | 44 | 32.25 | 0.865979 | 0.527132 | 0 | 0 | 0 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d7c8685990d4a9a6caf7934bf2ac300de99db31c | 115 | py | Python | maml/metalearners/__init__.py | ryujaehun/maml | fd38cb9258420c73648748fccdaa76f8d0b1c030 | [
"MIT"
] | 1 | 2021-03-24T16:23:47.000Z | 2021-03-24T16:23:47.000Z | maml/metalearners/__init__.py | ryujaehun/maml | fd38cb9258420c73648748fccdaa76f8d0b1c030 | [
"MIT"
] | null | null | null | maml/metalearners/__init__.py | ryujaehun/maml | fd38cb9258420c73648748fccdaa76f8d0b1c030 | [
"MIT"
] | null | null | null | from maml.metalearners.maml import ModelAgnosticMetaLearning, MAML
__all__ = ['ModelAgnosticMetaLearning', 'MAML'] | 38.333333 | 66 | 0.826087 | 10 | 115 | 9.1 | 0.6 | 0.637363 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078261 | 115 | 3 | 67 | 38.333333 | 0.858491 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0.215517 | 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 |
d7e84315d09b43e9deffc11cacb45dd198ac5b5e | 250 | py | Python | mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/gitlab/__version__.py | giuseppe-zappia/sagemaker-custom-project-templates | a160cf250dcabf8a9a14682e28d0a39df18e3a5c | [
"MIT-0"
] | 22 | 2021-08-24T13:43:55.000Z | 2022-03-25T06:18:19.000Z | mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/gitlab/__version__.py | giuseppe-zappia/sagemaker-custom-project-templates | a160cf250dcabf8a9a14682e28d0a39df18e3a5c | [
"MIT-0"
] | 3 | 2021-09-09T00:40:56.000Z | 2022-01-26T10:53:30.000Z | mlops-template-gitlab/lambda_functions/lambda-seedcode-checkin-gitlab/gitlab/__version__.py | giuseppe-zappia/sagemaker-custom-project-templates | a160cf250dcabf8a9a14682e28d0a39df18e3a5c | [
"MIT-0"
] | 15 | 2021-08-19T23:53:24.000Z | 2022-03-28T22:26:04.000Z | __author__ = "Gauvain Pocentek, python-gitlab team"
__copyright__ = "Copyright 2013-2019 Gauvain Pocentek, 2019-2021 python-gitlab team"
__email__ = "gauvainpocentek@gmail.com"
__license__ = "LGPL3"
__title__ = "python-gitlab"
__version__ = "2.10.1"
| 35.714286 | 84 | 0.776 | 30 | 250 | 5.666667 | 0.7 | 0.211765 | 0.188235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09417 | 0.108 | 250 | 6 | 85 | 41.666667 | 0.668161 | 0 | 0 | 0 | 0 | 0 | 0.604 | 0.1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
cc0520786338fc9259819e6e20feb2607d9b894d | 72 | py | Python | guardnode/__main__.py | commerceblock/guardnode | 1296b994ca790da8687e86091e8b65e8658a39ea | [
"MIT"
] | 1 | 2019-06-19T23:36:00.000Z | 2019-06-19T23:36:00.000Z | guardnode/__main__.py | commerceblock/guardnode | 1296b994ca790da8687e86091e8b65e8658a39ea | [
"MIT"
] | 14 | 2019-05-24T09:55:05.000Z | 2020-02-28T09:58:06.000Z | guardnode/__main__.py | commerceblock/guardnode | 1296b994ca790da8687e86091e8b65e8658a39ea | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from guardnode import guardnode
guardnode.main()
| 18 | 31 | 0.791667 | 10 | 72 | 5.7 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.097222 | 72 | 3 | 32 | 24 | 0.861538 | 0.291667 | 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 |
cc249b2d9064ab6b1a85d068fc86334e73a9984e | 41 | py | Python | src/fairtest/modules/context_discovery/__init__.py | columbia/fairtest | 8696051c9276f127ab8b2f437850f845ff0ca786 | [
"Apache-2.0"
] | 42 | 2017-01-12T13:59:23.000Z | 2022-03-01T01:44:12.000Z | src/fairtest/modules/context_discovery/__init__.py | columbia/fairtest | 8696051c9276f127ab8b2f437850f845ff0ca786 | [
"Apache-2.0"
] | 3 | 2019-05-24T21:02:51.000Z | 2019-11-15T15:36:17.000Z | src/fairtest/modules/context_discovery/__init__.py | columbia/fairtest | 8696051c9276f127ab8b2f437850f845ff0ca786 | [
"Apache-2.0"
] | 20 | 2017-01-12T23:07:10.000Z | 2021-08-11T09:13:50.000Z | """
Guided Tree Construction Module.
"""
| 10.25 | 32 | 0.682927 | 4 | 41 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 41 | 3 | 33 | 13.666667 | 0.8 | 0.780488 | 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 |
cc2cbe34eede684e88c037e02c35d494f09e237f | 58 | py | Python | python/testData/quickFixes/PyMakeFunctionFromMethodQuickFixTest/usageAssignment_after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/quickFixes/PyMakeFunctionFromMethodQuickFixTest/usageAssignment_after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/quickFixes/PyMakeFunctionFromMethodQuickFixTest/usageAssignment_after.py | truthiswill/intellij-community | fff88cfb0dc168eea18ecb745d3e5b93f57b0b95 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def m():
print 1
class A:
pass
b = A()
a = m()
| 5.8 | 11 | 0.413793 | 11 | 58 | 2.181818 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0.413793 | 58 | 9 | 12 | 6.444444 | 0.676471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.166667 | 0 | null | null | 0.166667 | 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 |
0be4fbfb457424364d9ca33ffbde8f818214db0d | 78 | py | Python | doi_site/__init__.py | AlbertoPaulPopescu/doi_site | 540be1928bc83596500ead847108bc2ebf65c692 | [
"BSD-3-Clause"
] | null | null | null | doi_site/__init__.py | AlbertoPaulPopescu/doi_site | 540be1928bc83596500ead847108bc2ebf65c692 | [
"BSD-3-Clause"
] | 6 | 2019-11-18T16:34:13.000Z | 2021-02-12T13:36:49.000Z | doi_site/__init__.py | AlbertoPaulPopescu/doi_site | 540be1928bc83596500ead847108bc2ebf65c692 | [
"BSD-3-Clause"
] | 4 | 2018-01-03T13:41:27.000Z | 2018-10-10T08:14:14.000Z | """ The main web pages for displaying information and logging on and off. """
| 39 | 77 | 0.730769 | 12 | 78 | 4.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 78 | 1 | 78 | 78 | 0.890625 | 0.884615 | 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 |
0430cd4bfd9663bd29a0d220c29206e8abe1e97d | 245 | py | Python | v1/tnb_stats/urls.py | picko1990/Bank | d35b0a76c1dd6ceb37155b6af32e3043c63d33f5 | [
"MIT"
] | 1 | 2021-07-24T06:54:11.000Z | 2021-07-24T06:54:11.000Z | v1/tnb_stats/urls.py | picko1990/Bank | d35b0a76c1dd6ceb37155b6af32e3043c63d33f5 | [
"MIT"
] | 4 | 2021-10-01T20:23:14.000Z | 2021-10-01T20:57:42.000Z | v1/tnb_stats/urls.py | picko1990/Bank | d35b0a76c1dd6ceb37155b6af32e3043c63d33f5 | [
"MIT"
] | 3 | 2021-02-23T01:09:05.000Z | 2021-09-12T15:52:56.000Z | from django.urls import path
from .views import StatList
from rest_framework.urlpatterns import format_suffix_patterns
urlpatterns = [
path("api/", StatList.as_view(), name="stats_api"),
]
urlpatterns = format_suffix_patterns(urlpatterns)
| 24.5 | 61 | 0.791837 | 31 | 245 | 6.032258 | 0.580645 | 0.128342 | 0.213904 | 0.331551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 245 | 9 | 62 | 27.222222 | 0.861751 | 0 | 0 | 0 | 0 | 0 | 0.053061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
043ee4bf6a0dd97b134f62d32076a43d1248fa0a | 375 | py | Python | src/controller.py | hussainsan/enas | 367e6b30e38c5c48867e31657cac2fe76fbe73e0 | [
"Apache-2.0"
] | 1,589 | 2018-04-02T02:11:54.000Z | 2022-03-07T14:41:37.000Z | src/controller.py | flamato/enas | 4bcfd73b524627ea96574e5fed33da74bc7855d5 | [
"Apache-2.0"
] | 112 | 2018-04-02T09:08:38.000Z | 2021-12-19T23:00:37.000Z | src/controller.py | flamato/enas | 4bcfd73b524627ea96574e5fed33da74bc7855d5 | [
"Apache-2.0"
] | 431 | 2018-04-02T02:16:05.000Z | 2022-03-16T06:18:40.000Z | import tensorflow as tf
class Controller(object):
def __init__(self, *args, **kwargs):
raise NotImplementedError("Abstract method.")
def _build_sample(self):
raise NotImplementedError("Abstract method.")
def _build_greedy(self):
raise NotImplementedError("Abstract method.")
def _build_trainer(se... | 25 | 49 | 0.744 | 40 | 375 | 6.725 | 0.5 | 0.356877 | 0.475836 | 0.565056 | 0.698885 | 0.542751 | 0.371747 | 0 | 0 | 0 | 0 | 0 | 0.149333 | 375 | 14 | 50 | 26.785714 | 0.84326 | 0 | 0 | 0.4 | 0 | 0 | 0.170667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.1 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
044714d4f719d4e11315729509affd5309e9c777 | 8,377 | py | Python | scripts/predicting/analyse_tournament_predictions.py | antoinelouis02/BigDat | e9f19b2f554febf76e8840c03999406981234685 | [
"MIT"
] | null | null | null | scripts/predicting/analyse_tournament_predictions.py | antoinelouis02/BigDat | e9f19b2f554febf76e8840c03999406981234685 | [
"MIT"
] | null | null | null | scripts/predicting/analyse_tournament_predictions.py | antoinelouis02/BigDat | e9f19b2f554febf76e8840c03999406981234685 | [
"MIT"
] | null | null | null | import pandas as pd
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
plt.style.use('ggplot')
# Current year
year = 2019
# Files
players_names = "../../data/predictions/stats_players_{}.csv".format(year)
predicted_probas = "../../data/predictions/players_rounds_predictions_{}.csv".format(year)
# ... | 31.973282 | 103 | 0.596514 | 1,171 | 8,377 | 4.097353 | 0.093083 | 0.065652 | 0.035015 | 0.065652 | 0.834306 | 0.77699 | 0.743435 | 0.663193 | 0.663193 | 0.615673 | 0 | 0.029128 | 0.11066 | 8,377 | 261 | 104 | 32.095785 | 0.614899 | 0.317178 | 0 | 0.604317 | 0 | 0 | 0.109342 | 0.050248 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028777 | 0 | 0.028777 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0453879e80126d39eb47206fa8d71eecc3ef6677 | 10,751 | py | Python | python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_handle.py | bambielli-flex/dagster | 30b75ba7c62fc536bc827f177c1dc6ba20f5ae20 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_handle.py | bambielli-flex/dagster | 30b75ba7c62fc536bc827f177c1dc6ba20f5ae20 | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/core_tests/definitions_tests/test_handle.py | bambielli-flex/dagster | 30b75ba7c62fc536bc827f177c1dc6ba20f5ae20 | [
"Apache-2.0"
] | null | null | null | import imp
import importlib
import os
import pytest
from dagster import ExecutionTargetHandle, PipelineDefinition, RepositoryDefinition, lambda_solid
from dagster.core.definitions import LoaderEntrypoint
from dagster.core.definitions.handle import (
EPHEMERAL_NAME,
_ExecutionTargetMode,
_get_python_file_... | 33.808176 | 100 | 0.70626 | 1,131 | 10,751 | 6.314766 | 0.094607 | 0.047606 | 0.089611 | 0.078409 | 0.817278 | 0.775833 | 0.756511 | 0.706945 | 0.660739 | 0.549006 | 0 | 0.000347 | 0.196354 | 10,751 | 317 | 101 | 33.914827 | 0.826273 | 0.01944 | 0 | 0.460251 | 0 | 0 | 0.187702 | 0.039192 | 0 | 0 | 0 | 0 | 0.200837 | 1 | 0.104603 | false | 0 | 0.058577 | 0.016736 | 0.1841 | 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 |
f09faeeba8950d503f5cc97402417b53280d4a49 | 209 | py | Python | src/t8-sensor/Sensor/Simulator/SensorDevices/AbstractSensor.py | chrisdoherty4/sh-sensors | b698374f1f706857721ccfb13338d97ced054933 | [
"Apache-2.0"
] | null | null | null | src/t8-sensor/Sensor/Simulator/SensorDevices/AbstractSensor.py | chrisdoherty4/sh-sensors | b698374f1f706857721ccfb13338d97ced054933 | [
"Apache-2.0"
] | null | null | null | src/t8-sensor/Sensor/Simulator/SensorDevices/AbstractSensor.py | chrisdoherty4/sh-sensors | b698374f1f706857721ccfb13338d97ced054933 | [
"Apache-2.0"
] | null | null | null | # Abstract sensor.
class AbstractSensor(object):
# A string name for this sensor.
_name = "DEFAULT"
# Constructor
def __init__(self, name):
self._name = name
def getName(self):
return self._name
| 17.416667 | 33 | 0.703349 | 27 | 209 | 5.185185 | 0.62963 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196172 | 209 | 11 | 34 | 19 | 0.833333 | 0.282297 | 0 | 0 | 0 | 0 | 0.047945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.833333 | 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 |
f0ea98ef6b311bdff9c391ca35b870115a2fd890 | 1,214 | py | Python | spacekit/dashboard/svm/pred.py | hakkeray/spacekit | f57e3bab80efca418b898996366d4dfb186246e0 | [
"MIT"
] | 1 | 2020-10-14T18:04:07.000Z | 2020-10-14T18:04:07.000Z | spacekit/dashboard/svm/pred.py | hakkeray/spacekit | f57e3bab80efca418b898996366d4dfb186246e0 | [
"MIT"
] | null | null | null | spacekit/dashboard/svm/pred.py | hakkeray/spacekit | f57e3bab80efca418b898996366d4dfb186246e0 | [
"MIT"
] | null | null | null | # TODO: pick a random visit - show the three image frames, make prediction
from dash import dcc
from dash import html
layout = html.Div(
children=[
# nav
html.Div(
children=[
html.P("|", style={"display": "inline-block"}),
dcc.Link(
"H... | 30.35 | 74 | 0.391269 | 98 | 1,214 | 4.846939 | 0.438776 | 0.218947 | 0.303158 | 0.242105 | 0.507368 | 0.448421 | 0.448421 | 0.448421 | 0.374737 | 0.277895 | 0 | 0.021962 | 0.437397 | 1,214 | 39 | 75 | 31.128205 | 0.673499 | 0.062603 | 0 | 0.444444 | 0 | 0 | 0.229956 | 0 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f0f1211e415f13140112d8167b315a7f0e79020b | 258 | py | Python | model_search/translation.py | pmaigutyak/mp-search | 435fd96a4f49ad7aab73b98b75ca61d4f72e9f0e | [
"0BSD"
] | null | null | null | model_search/translation.py | pmaigutyak/mp-search | 435fd96a4f49ad7aab73b98b75ca61d4f72e9f0e | [
"0BSD"
] | null | null | null | model_search/translation.py | pmaigutyak/mp-search | 435fd96a4f49ad7aab73b98b75ca61d4f72e9f0e | [
"0BSD"
] | 2 | 2018-03-14T11:07:34.000Z | 2021-04-10T18:52:56.000Z |
from modeltranslation.translator import translator, TranslationOptions
from model_search.models import SearchTag
class SearchTagTranslationOptions(TranslationOptions):
fields = ('text', )
translator.register(SearchTag, SearchTagTranslationOptions)
| 21.5 | 70 | 0.833333 | 21 | 258 | 10.190476 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104651 | 258 | 11 | 71 | 23.454545 | 0.926407 | 0 | 0 | 0 | 0 | 0 | 0.015564 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0b094decdda34f3faa62c129f35cf8bd12af643a | 57 | py | Python | learn/dd/lambda.py | mksy61/python | 4465feaba38df4d0f96da5ae038c0a4c383f794b | [
"CC0-1.0"
] | 1 | 2020-07-27T14:00:50.000Z | 2020-07-27T14:00:50.000Z | learn/dd/lambda.py | mksy61/python | 4465feaba38df4d0f96da5ae038c0a4c383f794b | [
"CC0-1.0"
] | null | null | null | learn/dd/lambda.py | mksy61/python | 4465feaba38df4d0f96da5ae038c0a4c383f794b | [
"CC0-1.0"
] | null | null | null |
print(list(filter(lambda x: x % 2 == 0, range(1, 16))))
| 19 | 55 | 0.578947 | 11 | 57 | 3 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106383 | 0.175439 | 57 | 2 | 56 | 28.5 | 0.595745 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0b1687eb9a36a670dce85fd49f715a566bf26ac4 | 71 | py | Python | Tests/Samples/DummyNotebooks/CleanTest/Folder1/CleanTestFile1.py | mwc360/azure.databricks.cicd.tools | 691ba10f7c9b7955949a40c34541547ce9266a4b | [
"MIT"
] | 85 | 2018-07-11T12:18:11.000Z | 2022-03-17T08:53:32.000Z | Tests/Samples/DummyNotebooks/CleanTest/Folder1/CleanTestFile1.py | mwc360/azure.databricks.cicd.tools | 691ba10f7c9b7955949a40c34541547ce9266a4b | [
"MIT"
] | 115 | 2018-10-17T18:19:06.000Z | 2022-03-28T13:43:41.000Z | Tests/Samples/DummyNotebooks/CleanTest/Folder1/CleanTestFile1.py | mwc360/azure.databricks.cicd.tools | 691ba10f7c9b7955949a40c34541547ce9266a4b | [
"MIT"
] | 76 | 2018-10-22T19:44:51.000Z | 2022-03-15T11:46:33.000Z | print("CleanTestFile1")
print('hello world')
print("bob")
print("test") | 17.75 | 23 | 0.71831 | 9 | 71 | 5.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014925 | 0.056338 | 71 | 4 | 24 | 17.75 | 0.746269 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 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 |
9be017010505350083d1f9179d53770cba0deeaf | 206 | py | Python | mysqlconnpool/__init__.py | wenbobuaa/pykit | 43e38fe40297a1e7a9329bcf3db3554c7ca48ead | [
"MIT"
] | 13 | 2016-12-16T09:23:09.000Z | 2018-03-10T08:04:00.000Z | mysqlconnpool/__init__.py | wenbobuaa/pykit | 43e38fe40297a1e7a9329bcf3db3554c7ca48ead | [
"MIT"
] | 74 | 2017-03-23T11:36:22.000Z | 2018-04-02T06:19:09.000Z | mysqlconnpool/__init__.py | drmingdrmer/pykit | e25a71146e81aaf79625cf8d4f4c439ccd515b82 | [
"MIT"
] | 5 | 2016-12-27T07:30:47.000Z | 2018-03-10T07:06:21.000Z | # from .mysqlconnpool import (MysqlConnectionPool,)
from .mysqlconnpool import (
make,
conn_query,
MysqlConnectionPool,
)
__all__ = [
'make',
'conn_query',
'MysqlConnectionPool',
]
| 15.846154 | 51 | 0.669903 | 16 | 206 | 8.25 | 0.5 | 0.257576 | 0.348485 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.218447 | 206 | 12 | 52 | 17.166667 | 0.819876 | 0.237864 | 0 | 0 | 0 | 0 | 0.212903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9be7a03baad24c0ebf6dc2aa7a1426f7cb58fbd5 | 347 | py | Python | btools/building/fill/__init__.py | proteanblank/building_tool | 920bb33dbc7d386ba8c2f669c90bddd9efd9aaf2 | [
"MIT"
] | 559 | 2020-07-02T21:06:38.000Z | 2022-03-30T17:58:56.000Z | btools/building/fill/__init__.py | cokar/building_tools | 920bb33dbc7d386ba8c2f669c90bddd9efd9aaf2 | [
"MIT"
] | 63 | 2020-07-02T16:23:27.000Z | 2022-03-09T11:33:06.000Z | btools/building/fill/__init__.py | cokar/building_tools | 920bb33dbc7d386ba8c2f669c90bddd9efd9aaf2 | [
"MIT"
] | 59 | 2020-07-05T06:14:23.000Z | 2022-03-12T03:22:18.000Z | import bpy
from .fill_props import FillBars, FillPanel, FillLouver, FillGlassPanes, FillProperty
from .fill_ops import BTOOLS_OT_add_fill
from .fill_types import fill_face
classes = (FillBars, FillPanel, FillLouver, FillGlassPanes, FillProperty, BTOOLS_OT_add_fill)
register_fill, unregister_fill = bpy.utils.registe... | 31.545455 | 93 | 0.841499 | 45 | 347 | 6.177778 | 0.466667 | 0.086331 | 0.194245 | 0.294964 | 0.381295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097983 | 347 | 10 | 94 | 34.7 | 0.888179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
500934916e4a898d10701faeb86dd865e0767bd7 | 285 | py | Python | photos/admin.py | Mukantwarivirginie/Awwards-Project | 9cd905829f9a0f81393ce598938264f2184bda86 | [
"MIT"
] | null | null | null | photos/admin.py | Mukantwarivirginie/Awwards-Project | 9cd905829f9a0f81393ce598938264f2184bda86 | [
"MIT"
] | null | null | null | photos/admin.py | Mukantwarivirginie/Awwards-Project | 9cd905829f9a0f81393ce598938264f2184bda86 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Profile,Project
# Register your models here.
class ArticleAdmin(admin.ModelAdmin):
filter_horizontal =('tags',)
admin.site.register(Profile)
admin.site.register(Project)
# admin.site.register(Follow)
# admin.site.register(Image) | 31.666667 | 37 | 0.792982 | 37 | 285 | 6.081081 | 0.540541 | 0.16 | 0.302222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091228 | 285 | 9 | 38 | 31.666667 | 0.868726 | 0.284211 | 0 | 0 | 0 | 0 | 0.019901 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
501800f1558b64dfc66189845b605ce456ed2688 | 7,389 | py | Python | nba/endpoints/homepage.py | rozzac90/new_nba | 87feec5fc8ff6654fdb65229a047e0ff3023a9ff | [
"MIT"
] | 1 | 2017-12-29T05:01:17.000Z | 2017-12-29T05:01:17.000Z | nba/endpoints/homepage.py | rozzac90/new_nba | 87feec5fc8ff6654fdb65229a047e0ff3023a9ff | [
"MIT"
] | 2 | 2017-10-26T07:47:15.000Z | 2020-04-18T12:24:36.000Z | nba/endpoints/homepage.py | rozzac90/nba | 87feec5fc8ff6654fdb65229a047e0ff3023a9ff | [
"MIT"
] | null | null | null | from nba import enums
from nba.utils import clean_locals
from nba.endpoints.baseendpoint import BaseEndpoint
class Homepage(BaseEndpoint):
def leaders(
self,
idx_data,
league_id=enums.LeagueID.Default,
stat_category=enums.StatCategory.Default,
season=enums.Season.Default,
... | 47.365385 | 103 | 0.565435 | 796 | 7,389 | 5.114322 | 0.194724 | 0.041268 | 0.026529 | 0.019651 | 0.749939 | 0.700565 | 0.700565 | 0.685335 | 0.661754 | 0.651191 | 0 | 0.005828 | 0.280146 | 7,389 | 155 | 104 | 47.670968 | 0.759541 | 0.648667 | 0 | 0.730769 | 0 | 0 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.057692 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
502f804da273970e4b908b140a5ecf69e6fa500c | 27 | py | Python | shapeanalyzer/transform.py | luwei14/ShapeAnalyzer | 1bf44ff3168860bf3db61ef9e22599cc3a4a861c | [
"MIT"
] | 7 | 2017-05-23T02:22:22.000Z | 2021-01-09T21:51:09.000Z | shapeanalyzer/transform.py | luwei14/ShapeAnalyzer | 1bf44ff3168860bf3db61ef9e22599cc3a4a861c | [
"MIT"
] | null | null | null | shapeanalyzer/transform.py | luwei14/ShapeAnalyzer | 1bf44ff3168860bf3db61ef9e22599cc3a4a861c | [
"MIT"
] | null | null | null | '''
Geometry Transform
'''
| 6.75 | 18 | 0.62963 | 2 | 27 | 8.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 27 | 3 | 19 | 9 | 0.73913 | 0.666667 | 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 |
503130094d0033cfb5fbce51c16a8df4e2156662 | 251 | py | Python | networkit/randomization.py | marius-18/networkit | 53a37c2c51add69840ebbc287e8abd1d1bd8a095 | [
"MIT"
] | null | null | null | networkit/randomization.py | marius-18/networkit | 53a37c2c51add69840ebbc287e8abd1d1bd8a095 | [
"MIT"
] | null | null | null | networkit/randomization.py | marius-18/networkit | 53a37c2c51add69840ebbc287e8abd1d1bd8a095 | [
"MIT"
] | 1 | 2020-02-05T17:39:47.000Z | 2020-02-05T17:39:47.000Z | """ Randomize Graphs """
__author__ = "Marius Hagemann, Hung Tran, Manuel Penschuck"
from _NetworKit import BipartiteGlobalCurveball, GlobalCurveball, Curveball, CurveballGlobalTradeGenerator, CurveballUniformTradeGenerator, DegreePreservingShuffle
| 41.833333 | 163 | 0.844622 | 18 | 251 | 11.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091633 | 251 | 5 | 164 | 50.2 | 0.907895 | 0.063745 | 0 | 0 | 0 | 0 | 0.193833 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ac8e03518a3018b9f3f74f3355f53ed4e865ecf8 | 4,688 | py | Python | PyLESA/test_heatpump.py | andrewlyden/PyLESA | dac052764d6d6f77c8e8c12077520e50ea0ad2f5 | [
"MIT"
] | 6 | 2021-09-03T13:25:22.000Z | 2022-02-23T10:48:19.000Z | PyLESA/test_heatpump.py | ElsevierSoftwareX/SOFTX-D-21-00013 | dac052764d6d6f77c8e8c12077520e50ea0ad2f5 | [
"MIT"
] | 1 | 2021-12-07T00:03:31.000Z | 2022-01-10T11:31:50.000Z | PyLESA/test_heatpump.py | ElsevierSoftwareX/SOFTX-D-21-00013 | dac052764d6d6f77c8e8c12077520e50ea0ad2f5 | [
"MIT"
] | 6 | 2021-01-11T11:24:26.000Z | 2021-12-07T01:03:57.000Z | import pandas as pd
import matplotlib.pyplot as plt
import heatpump
import inputs
plt.style.use('ggplot')
name = 'findhorn - west whins.xlsx'
subname = 'hp_14_ts_550'
myInputs = inputs.Inputs(name, subname)
def plot_gen_reg():
heatpump.GenericRegression().plot_cop()
# plot_gen_reg()
... | 25.069519 | 73 | 0.62052 | 501 | 4,688 | 5.550898 | 0.161677 | 0.13808 | 0.028767 | 0.040273 | 0.725279 | 0.718806 | 0.656598 | 0.638619 | 0.638619 | 0.638619 | 0 | 0.028112 | 0.256399 | 4,688 | 186 | 74 | 25.204301 | 0.76965 | 0.020265 | 0 | 0.732824 | 0 | 0 | 0.126364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030534 | null | null | 0.015267 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
acacb6f73e129b20bc4c72f1c717af2692112334 | 1,889 | py | Python | python/algobox/src/algobox/client/generated/api/models/__init__.py | IvanFan/algobox | b5511f59b735b7f91f34484c57d4133c5b36e034 | [
"Apache-2.0"
] | 94 | 2017-01-23T21:34:52.000Z | 2022-01-27T17:31:49.000Z | python/algobox/src/algobox/client/generated/api/models/__init__.py | IvanFan/algobox | b5511f59b735b7f91f34484c57d4133c5b36e034 | [
"Apache-2.0"
] | 10 | 2017-01-15T13:01:49.000Z | 2017-10-31T01:36:12.000Z | python/algobox/src/algobox/client/generated/api/models/__init__.py | IvanFan/algobox | b5511f59b735b7f91f34484c57d4133c5b36e034 | [
"Apache-2.0"
] | 58 | 2017-01-13T21:45:14.000Z | 2021-12-22T20:37:40.000Z | # coding: utf-8
"""
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
Generated by: https://github.com/swagger-api/swagger-codegen.git
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in com... | 38.55102 | 105 | 0.823187 | 239 | 1,889 | 6.368201 | 0.527197 | 0.039422 | 0.018397 | 0.027595 | 0.049934 | 0.049934 | 0.049934 | 0 | 0 | 0 | 0 | 0.003066 | 0.13658 | 1,889 | 48 | 106 | 39.354167 | 0.930104 | 0.3928 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
acb11589f10e0578de00930852cb2e147427c801 | 9,653 | py | Python | tests/test_apps/test_covid_optimisation.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | 14 | 2020-03-11T06:15:30.000Z | 2022-03-09T03:38:35.000Z | tests/test_apps/test_covid_optimisation.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | 96 | 2020-01-29T05:10:29.000Z | 2022-03-31T01:48:46.000Z | tests/test_apps/test_covid_optimisation.py | emmamcbryde/AuTuMN-1 | b1e7de15ac6ef6bed95a80efab17f0780ec9ff6f | [
"BSD-2-Clause-FreeBSD"
] | 10 | 2020-04-24T00:38:00.000Z | 2021-08-19T16:19:03.000Z | from datetime import date
from unittest import mock
import numpy as np
import pytest
from summer.model import CompartmentalModel
# from autumn.projects.covid_19.mixing_optimisation import mixing_opti as opti
# from autumn.projects.covid_19.mixing_optimisation import write_scenarios
# from autumn.projects.covid_19.mix... | 34.598566 | 101 | 0.5389 | 1,137 | 9,653 | 4.301671 | 0.188215 | 0.027193 | 0.029442 | 0.045798 | 0.546105 | 0.526682 | 0.470456 | 0.422 | 0.370067 | 0.299734 | 0 | 0.059909 | 0.297938 | 9,653 | 278 | 102 | 34.723022 | 0.661797 | 0.917124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0.111111 | 0.666667 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
acb4704e0d4280ce7b7919a9da22abcc5e11ec98 | 279 | py | Python | media_manager/mixins.py | laflamablanca/media_management_lti | fb693ebfdb4b52f9209fbdb1f0dfe68d838544b5 | [
"BSD-3-Clause"
] | null | null | null | media_manager/mixins.py | laflamablanca/media_management_lti | fb693ebfdb4b52f9209fbdb1f0dfe68d838544b5 | [
"BSD-3-Clause"
] | null | null | null | media_manager/mixins.py | laflamablanca/media_management_lti | fb693ebfdb4b52f9209fbdb1f0dfe68d838544b5 | [
"BSD-3-Clause"
] | null | null | null | import json
class JsonMixin(object):
def to_json(self, data, pretty=True):
if pretty:
return json.dumps(data, sort_keys=True, indent=4, separators=(',', ': '))
return json.dumps(data)
def from_json(self, str):
return json.loads(str)
| 25.363636 | 85 | 0.612903 | 37 | 279 | 4.540541 | 0.594595 | 0.178571 | 0.178571 | 0.22619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004785 | 0.250896 | 279 | 10 | 86 | 27.9 | 0.799043 | 0 | 0 | 0 | 0 | 0 | 0.010753 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.875 | 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 |
acc7cff9e0fb052804aa9a1ec7abf3c452882421 | 31 | py | Python | tests/lif/if_var.py | Mieschendahl/assignment-final-stub | 19eea657fcc4f8a455c42028f34b918628514cc0 | [
"MIT"
] | null | null | null | tests/lif/if_var.py | Mieschendahl/assignment-final-stub | 19eea657fcc4f8a455c42028f34b918628514cc0 | [
"MIT"
] | 1 | 2022-03-20T11:08:45.000Z | 2022-03-20T11:08:45.000Z | tests/lif/if_var.py | Mieschendahl/assignment-final-stub | 19eea657fcc4f8a455c42028f34b918628514cc0 | [
"MIT"
] | 6 | 2022-03-13T13:10:25.000Z | 2022-03-28T22:18:12.000Z | x = True
print(42 if x else 0)
| 10.333333 | 21 | 0.645161 | 8 | 31 | 2.5 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.258065 | 31 | 2 | 22 | 15.5 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
acce9d75eeb0fd4597d6831068f897aa9e770341 | 370 | py | Python | tests/test_boiler_plate.py | christiam/python-distrib-pkg-sample | c8bdf7279e770195de953265de156c7db04e07e5 | [
"MIT"
] | null | null | null | tests/test_boiler_plate.py | christiam/python-distrib-pkg-sample | c8bdf7279e770195de953265de156c7db04e07e5 | [
"MIT"
] | null | null | null | tests/test_boiler_plate.py | christiam/python-distrib-pkg-sample | c8bdf7279e770195de953265de156c7db04e07e5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_boiler_plate
----------------------------------
Tests for `boiler_plate` module.
"""
import unittest
import boiler_plate
class TestBoiler_plate(unittest.TestCase):
def setUp(self):
pass
def test_something(self):
assert(boiler_plate._... | 14.230769 | 42 | 0.6 | 41 | 370 | 5.146341 | 0.634146 | 0.208531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00339 | 0.202703 | 370 | 25 | 43 | 14.8 | 0.711864 | 0.348649 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.333333 | false | 0.222222 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
ace981feda47bff4a08907ccec700b765e1948a6 | 52 | py | Python | ygq/wsgi.py | chichengfengxue/flask-youguoqi | e1423602eaea938cb69b7ff0d60c6e61becceca5 | [
"MIT"
] | null | null | null | ygq/wsgi.py | chichengfengxue/flask-youguoqi | e1423602eaea938cb69b7ff0d60c6e61becceca5 | [
"MIT"
] | null | null | null | ygq/wsgi.py | chichengfengxue/flask-youguoqi | e1423602eaea938cb69b7ff0d60c6e61becceca5 | [
"MIT"
] | null | null | null | from .__init__ import create_app
app = create_app()
| 17.333333 | 32 | 0.788462 | 8 | 52 | 4.375 | 0.625 | 0.514286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 52 | 2 | 33 | 26 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4a0950981a1882e84f2d1e75c5bd45d38b882cc7 | 105 | py | Python | toggl_report/toggl_report_app/apps.py | naokodama/toggl_report | 5280ec40b27872b90c72e07613829f7091ce302f | [
"MIT"
] | null | null | null | toggl_report/toggl_report_app/apps.py | naokodama/toggl_report | 5280ec40b27872b90c72e07613829f7091ce302f | [
"MIT"
] | null | null | null | toggl_report/toggl_report_app/apps.py | naokodama/toggl_report | 5280ec40b27872b90c72e07613829f7091ce302f | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class TogglReportAppConfig(AppConfig):
name = 'toggl_report_app'
| 17.5 | 38 | 0.790476 | 12 | 105 | 6.75 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 105 | 5 | 39 | 21 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0.152381 | 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 |
4a0bde24e10dba91b983bad2939fb64d3f979cf4 | 41 | py | Python | venv/lib/python3.6/encodings/hp_roman8.py | JamesMusyoka/Blog | fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5 | [
"Unlicense"
] | 2 | 2019-04-17T13:35:50.000Z | 2021-12-21T00:11:36.000Z | venv/lib/python3.6/encodings/hp_roman8.py | JamesMusyoka/Blog | fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5 | [
"Unlicense"
] | 2 | 2021-03-31T19:51:24.000Z | 2021-06-10T23:05:09.000Z | venv/lib/python3.6/encodings/hp_roman8.py | JamesMusyoka/Blog | fdcb51cf4541bbb3b9b3e7a1c3735a0b1f45f0b5 | [
"Unlicense"
] | 2 | 2019-10-01T08:47:35.000Z | 2020-07-11T06:32:16.000Z | /usr/lib/python3.6/encodings/hp_roman8.py | 41 | 41 | 0.829268 | 8 | 41 | 4.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0 | 41 | 1 | 41 | 41 | 0.731707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4a181747dabfb4dcc25c47946cde12192403d54a | 301 | py | Python | rabbitai/migrations/versions/ef8843b41dac_.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | null | null | null | rabbitai/migrations/versions/ef8843b41dac_.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | null | null | null | rabbitai/migrations/versions/ef8843b41dac_.py | psbsgic/rabbitai | 769e120ba605d56ac076f810a549c38dac410c8e | [
"Apache-2.0"
] | 1 | 2021-07-09T16:29:50.000Z | 2021-07-09T16:29:50.000Z | """empty message
Revision ID: ef8843b41dac
Revises: ('3b626e2a6783', 'ab3d66c4246e')
Create Date: 2016-10-02 10:35:38.825231
"""
# revision identifiers, used by Alembic.
revision = "ef8843b41dac"
down_revision = ("3b626e2a6783", "ab3d66c4246e")
def upgrade():
pass
def downgrade():
pass
| 15.842105 | 48 | 0.710963 | 34 | 301 | 6.264706 | 0.735294 | 0.225352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25098 | 0.152824 | 301 | 18 | 49 | 16.722222 | 0.584314 | 0.538206 | 0 | 0.333333 | 0 | 0 | 0.274809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4a25480eae4cc89441bdfba7a0937e6c8735d281 | 82 | py | Python | line/messaging/events/unfollow.py | shlee322/python-line-api | 674a9c0f4f7e4faa5d813fbd3d6e603b128d9be7 | [
"Apache-2.0"
] | 6 | 2016-10-02T15:27:55.000Z | 2016-12-01T15:08:31.000Z | line/messaging/events/unfollow.py | shlee322/python-line-api | 674a9c0f4f7e4faa5d813fbd3d6e603b128d9be7 | [
"Apache-2.0"
] | null | null | null | line/messaging/events/unfollow.py | shlee322/python-line-api | 674a9c0f4f7e4faa5d813fbd3d6e603b128d9be7 | [
"Apache-2.0"
] | 3 | 2016-10-04T16:43:48.000Z | 2020-03-01T08:08:37.000Z | from .event import Event
class UnfollowEvent(Event):
type = 'unfollow'
| 13.666667 | 28 | 0.670732 | 9 | 82 | 6.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243902 | 82 | 5 | 29 | 16.4 | 0.887097 | 0 | 0 | 0 | 0 | 0 | 0.103896 | 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 |
c57acb9c1aef629e2a000b6bd853a3d541c8da76 | 120 | py | Python | fperms_iscore/apps.py | Formulka/django-perms-iscore | 6d7e1462d6c6c72208b9af0b5d07702b2cc9f074 | [
"MIT"
] | null | null | null | fperms_iscore/apps.py | Formulka/django-perms-iscore | 6d7e1462d6c6c72208b9af0b5d07702b2cc9f074 | [
"MIT"
] | null | null | null | fperms_iscore/apps.py | Formulka/django-perms-iscore | 6d7e1462d6c6c72208b9af0b5d07702b2cc9f074 | [
"MIT"
] | null | null | null | # -*- coding: utf-8
from django.apps import AppConfig
class FPermsIscoreConfig(AppConfig):
name = 'fperms_iscore'
| 17.142857 | 36 | 0.733333 | 14 | 120 | 6.214286 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.158333 | 120 | 6 | 37 | 20 | 0.851485 | 0.141667 | 0 | 0 | 0 | 0 | 0.128713 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.