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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3f753a72750b74f728c97a023018040729fd093b | 598 | py | Python | menpo/landmark/labels/__init__.py | apapaion/menpo | 9834f0437ca3cbe6a972c2a62f7c970ae950cf32 | [
"BSD-3-Clause"
] | 311 | 2015-01-01T17:16:18.000Z | 2021-12-20T11:25:23.000Z | menpo/landmark/labels/__init__.py | apapaion/menpo | 9834f0437ca3cbe6a972c2a62f7c970ae950cf32 | [
"BSD-3-Clause"
] | 298 | 2015-01-02T17:30:22.000Z | 2022-01-02T22:12:17.000Z | menpo/landmark/labels/__init__.py | apapaion/menpo | 9834f0437ca3cbe6a972c2a62f7c970ae950cf32 | [
"BSD-3-Clause"
] | 80 | 2015-02-02T14:17:36.000Z | 2021-12-22T10:09:28.000Z | from .base import labeller
from .human import *
from .car import (
car_streetscene_20_to_car_streetscene_view_0_8,
car_streetscene_20_to_car_streetscene_view_1_14,
car_streetscene_20_to_car_streetscene_view_2_10,
car_streetscene_20_to_car_streetscene_view_3_14,
car_streetscene_20_to_car_streetscene_... | 35.176471 | 52 | 0.854515 | 97 | 598 | 4.505155 | 0.247423 | 0.512586 | 0.292906 | 0.329519 | 0.686499 | 0.686499 | 0.686499 | 0.521739 | 0 | 0 | 0 | 0.071698 | 0.113712 | 598 | 16 | 53 | 37.375 | 0.75283 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3f85f37c4c2dfb54107fe196ab2d18c805298bb9 | 304 | py | Python | Scripts/selected-glyphs/actions/copy-paste.py | miguelsousa/hTools2 | eab400677c1b21bb2519a7354a142e167c2b39ba | [
"BSD-3-Clause"
] | null | null | null | Scripts/selected-glyphs/actions/copy-paste.py | miguelsousa/hTools2 | eab400677c1b21bb2519a7354a142e167c2b39ba | [
"BSD-3-Clause"
] | null | null | null | Scripts/selected-glyphs/actions/copy-paste.py | miguelsousa/hTools2 | eab400677c1b21bb2519a7354a142e167c2b39ba | [
"BSD-3-Clause"
] | null | null | null | # [h] copy / paste
'''Copy glyph data and paste it into selected glyphs.'''
# debug
import hTools2
reload(hTools2)
if hTools2.DEBUG:
import hTools2.dialogs.glyphs
reload(hTools2.dialogs.glyphs)
# import
from hTools2.dialogs.glyphs import copyPasteGlyphDialog
# run
copyPasteGlyphDialog()
| 14.47619 | 56 | 0.746711 | 37 | 304 | 6.135135 | 0.513514 | 0.185022 | 0.264317 | 0.229075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0.161184 | 304 | 20 | 57 | 15.2 | 0.866667 | 0.279605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
3fb10c6a547fe93b87a3204aead4701f129ca808 | 194 | py | Python | lang/py/pylib/code/sys/sys_platform.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | lang/py/pylib/code/sys/sys_platform.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | lang/py/pylib/code/sys/sys_platform.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2009 Doug Hellmann All rights reserved.
#
"""
"""
#end_pymotw_header
import sys
print 'This interpreter was built for:', sys.platform
| 14.923077 | 55 | 0.71134 | 28 | 194 | 4.857143 | 0.964286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030488 | 0.154639 | 194 | 12 | 56 | 16.166667 | 0.79878 | 0.551546 | 0 | 0 | 0 | 0 | 0.418919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0.5 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
3fd4e82ac61db6866680dd74d0372b60c26f1131 | 84 | py | Python | examples/python/django/demo/myproject/settings/development.py | DiceTechnology/react-native-sentry | f44bd0678a6cdac0b07f5112d62bd784a39b7dae | [
"MIT"
] | 99 | 2017-08-04T22:47:20.000Z | 2022-03-29T03:49:23.000Z | examples/python/django/demo/myproject/settings/development.py | DiceTechnology/react-native-sentry | f44bd0678a6cdac0b07f5112d62bd784a39b7dae | [
"MIT"
] | 55 | 2017-10-12T16:13:22.000Z | 2022-03-09T20:17:16.000Z | examples/python/django/demo/myproject/settings/development.py | DiceTechnology/react-native-sentry | f44bd0678a6cdac0b07f5112d62bd784a39b7dae | [
"MIT"
] | 103 | 2017-09-06T12:21:18.000Z | 2022-03-27T11:31:14.000Z | MY_SENTRY_DSN = 'https://<PUBLIC_DSN_KEY>:<PRIVATE_DSN_KEY>@sentry.io/<PROJECT_ID>'
| 42 | 83 | 0.77381 | 14 | 84 | 4.142857 | 0.714286 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 84 | 1 | 84 | 84 | 0.716049 | 0 | 0 | 0 | 0 | 0 | 0.77381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
3fe859825dab4f782d9a62261254175a1c9aac42 | 400 | py | Python | libweasyl/libweasyl/models/site.py | hyena/weasyl | a43ad885eb07ae89d6639f289a5b95f3a177439c | [
"Apache-2.0"
] | null | null | null | libweasyl/libweasyl/models/site.py | hyena/weasyl | a43ad885eb07ae89d6639f289a5b95f3a177439c | [
"Apache-2.0"
] | null | null | null | libweasyl/libweasyl/models/site.py | hyena/weasyl | a43ad885eb07ae89d6639f289a5b95f3a177439c | [
"Apache-2.0"
] | null | null | null | from sqlalchemy.orm import relationship
from libweasyl.models.meta import Base
from libweasyl.models.users import Login
from libweasyl.models import tables
class SiteUpdate(Base):
__table__ = tables.siteupdate
owner = relationship(Login, backref='siteupdate')
class SavedNotification(Base):
__table__ =... | 22.222222 | 62 | 0.7825 | 45 | 400 | 6.755556 | 0.466667 | 0.128289 | 0.1875 | 0.190789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1425 | 400 | 17 | 63 | 23.529412 | 0.886297 | 0 | 0 | 0 | 0 | 0 | 0.0725 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b204f707cefcd3ab0bc4b3c10131a14af7ed0fab | 142 | py | Python | mesh2tex/texnet/__init__.py | nihalsid/texture_fields | dcd091a5f40fe433dbc47f2055d1cd2d3d2a1b87 | [
"MIT"
] | 78 | 2019-10-30T13:05:16.000Z | 2022-03-02T06:15:20.000Z | mesh2tex/texnet/__init__.py | nihalsid/texture_fields | dcd091a5f40fe433dbc47f2055d1cd2d3d2a1b87 | [
"MIT"
] | 6 | 2020-06-21T08:39:02.000Z | 2021-11-28T14:47:12.000Z | mesh2tex/texnet/__init__.py | nihalsid/texture_fields | dcd091a5f40fe433dbc47f2055d1cd2d3d2a1b87 | [
"MIT"
] | 12 | 2020-04-02T21:08:15.000Z | 2021-12-12T14:23:38.000Z | from mesh2tex.texnet import (
training, generation, config, models
)
__all__ = [
training,
generation,
config,
models,
]
| 12.909091 | 40 | 0.640845 | 13 | 142 | 6.692308 | 0.692308 | 0.413793 | 0.551724 | 0.689655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.267606 | 142 | 10 | 41 | 14.2 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 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 |
b75eaffc1da14cb8ab22b3ee473475d37e0341c6 | 53 | py | Python | utils/__init__.py | ml4ai/mliis | f40352e734f77609bcd5c4ad330ea73a897a217d | [
"MIT"
] | 23 | 2020-06-01T09:21:58.000Z | 2022-03-01T07:36:25.000Z | utils/__init__.py | ml4ai/mliis | f40352e734f77609bcd5c4ad330ea73a897a217d | [
"MIT"
] | 6 | 2020-05-20T05:57:06.000Z | 2022-03-14T09:44:35.000Z | utils/__init__.py | ml4ai/mliis | f40352e734f77609bcd5c4ad330ea73a897a217d | [
"MIT"
] | 5 | 2020-05-07T23:34:25.000Z | 2022-03-11T11:10:30.000Z | """Utilities for image segmentation meta-learning.""" | 53 | 53 | 0.773585 | 6 | 53 | 6.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 53 | 1 | 53 | 53 | 0.836735 | 0.886792 | 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 |
b7643b84943d48329d2c5575220a76cacc05222e | 116 | py | Python | src/gsf/core/debug/infrastructure/__init__.py | RolandoAndrade/general-simulation-framework | 2fe2a981d365a7f482f6a7d4797a5f711b2dd502 | [
"MIT"
] | 1 | 2021-06-02T12:37:56.000Z | 2021-06-02T12:37:56.000Z | src/gsf/core/debug/infrastructure/__init__.py | RolandoAndrade/general-simulation-framework | 2fe2a981d365a7f482f6a7d4797a5f711b2dd502 | [
"MIT"
] | null | null | null | src/gsf/core/debug/infrastructure/__init__.py | RolandoAndrade/general-simulation-framework | 2fe2a981d365a7f482f6a7d4797a5f711b2dd502 | [
"MIT"
] | null | null | null | """Infrastructure module
=============================
Infrastructure details for the implementation of tables.
"""
| 23.2 | 56 | 0.594828 | 9 | 116 | 7.666667 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094828 | 116 | 4 | 57 | 29 | 0.657143 | 0.931034 | 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 |
b76beab1d9db3d5a656510b4f54c6ad5da267af5 | 85 | py | Python | CMDB/__init__.py | zfno111/CMDB | 925268f181b75515a9f69ded40a4fb1c76271662 | [
"MIT"
] | null | null | null | CMDB/__init__.py | zfno111/CMDB | 925268f181b75515a9f69ded40a4fb1c76271662 | [
"MIT"
] | null | null | null | CMDB/__init__.py | zfno111/CMDB | 925268f181b75515a9f69ded40a4fb1c76271662 | [
"MIT"
] | null | null | null | import pymysql # 一定要添加这两行!通过pip install pymysql!
pymysql.install_as_MySQLdb() | 42.5 | 56 | 0.764706 | 10 | 85 | 6.3 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164706 | 85 | 2 | 57 | 42.5 | 0.887324 | 0.364706 | 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 |
b77beb1d051b00365fa8623685c0328bc0d3660f | 302 | py | Python | instagram_api/response/blocked_media.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | 13 | 2019-08-07T21:24:34.000Z | 2020-12-12T12:23:50.000Z | instagram_api/response/blocked_media.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | instagram_api/response/blocked_media.py | Yuego/instagram_api | b53f72db36c505a2eb24ebac1ba8267a0cc295bb | [
"MIT"
] | null | null | null | from .mapper import ApiResponse, ApiResponseInterface
from .mapper.types import Timestamp, AnyType
__all__ = ['BlockedMediaResponse']
class BlockedMediaResponseInterface(ApiResponseInterface):
media_ids: AnyType
class BlockedMediaResponse(ApiResponse, BlockedMediaResponseInterface):
pass
| 23.230769 | 71 | 0.827815 | 24 | 302 | 10.208333 | 0.625 | 0.081633 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112583 | 302 | 12 | 72 | 25.166667 | 0.914179 | 0 | 0 | 0 | 0 | 0 | 0.066225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.285714 | 0 | 0.714286 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
b79f9c10ebcf048c283c4315c1ad4ce839ec638e | 6,040 | py | Python | src/abaqus/EngineeringFeature/TwoPointSpringDashpot.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | 7 | 2022-01-21T09:15:45.000Z | 2022-02-15T09:31:58.000Z | src/abaqus/EngineeringFeature/TwoPointSpringDashpot.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | src/abaqus/EngineeringFeature/TwoPointSpringDashpot.py | Haiiliin/PyAbaqus | f20db6ebea19b73059fe875a53be370253381078 | [
"MIT"
] | null | null | null | from abaqusConstants import *
from .SpringDashpot import SpringDashpot
class TwoPointSpringDashpot(SpringDashpot):
"""The TwoPointSpringDashpot object defines springs and/or dashpots between two points on a
part or an assembly.
The TwoPointSpringDashpot object is derived from the SpringDashpot object.
... | 44.411765 | 109 | 0.644536 | 706 | 6,040 | 5.491501 | 0.201133 | 0.041269 | 0.061904 | 0.070157 | 0.75316 | 0.724529 | 0.703379 | 0.679907 | 0.679907 | 0.679907 | 0 | 0.007605 | 0.303311 | 6,040 | 135 | 110 | 44.740741 | 0.913736 | 0.750331 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.153846 | 0.153846 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
b7ae02ac2e4ac0ea0cfcc0def5a2d32f12e2a708 | 2,420 | py | Python | server/problem_sets/static/data/static_problem_set_repository.py | iiridescent/problem-sets | e906fe7509cd158ecdb5920853636339d4d531c3 | [
"MIT"
] | null | null | null | server/problem_sets/static/data/static_problem_set_repository.py | iiridescent/problem-sets | e906fe7509cd158ecdb5920853636339d4d531c3 | [
"MIT"
] | 5 | 2021-03-09T10:36:59.000Z | 2022-02-26T14:36:08.000Z | server/problem_sets/static/data/static_problem_set_repository.py | vinhowe/problem-sets | e906fe7509cd158ecdb5920853636339d4d531c3 | [
"MIT"
] | null | null | null | import os
from typing import List
from problem_sets.static.data import data_util, data_manager
from problem_sets.static.data.sqlite.static_content_sqlite_repository import StaticContentRow
from problem_sets.static.data.sqlite.static_problem_set_sqlite_repository import StaticProblemSetSQLiteRepository
from problem_set... | 45.660377 | 113 | 0.753306 | 286 | 2,420 | 6.08042 | 0.251748 | 0.051754 | 0.064405 | 0.072455 | 0.355952 | 0.26107 | 0.243243 | 0.162162 | 0.115009 | 0.115009 | 0 | 0 | 0.176033 | 2,420 | 52 | 114 | 46.538462 | 0.872116 | 0.152066 | 0 | 0 | 0 | 0 | 0.008309 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.15625 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
b7b736f014beca506f6d95e94f2c899f41ad6a48 | 104 | py | Python | scripts/invalid.py | shitchell/pysh | b068af87acf28405a65a0a9c6e762aa8c94dd7d4 | [
"WTFPL"
] | null | null | null | scripts/invalid.py | shitchell/pysh | b068af87acf28405a65a0a9c6e762aa8c94dd7d4 | [
"WTFPL"
] | null | null | null | scripts/invalid.py | shitchell/pysh | b068af87acf28405a65a0a9c6e762aa8c94dd7d4 | [
"WTFPL"
] | null | null | null | """
This module demonstrates what happens with an invalid .py file
"""
def run(*args):
echo("foo")
| 14.857143 | 62 | 0.663462 | 15 | 104 | 4.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192308 | 104 | 6 | 63 | 17.333333 | 0.821429 | 0.596154 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | true | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b7bcfc48a4b5bb04156ab4b3fc38d55a3945e769 | 2,359 | py | Python | test/test_time_window.py | gis-ops/pyvroom | b7d23e405b8734c5672eecf6f394b6364103cbf1 | [
"BSD-2-Clause"
] | null | null | null | test/test_time_window.py | gis-ops/pyvroom | b7d23e405b8734c5672eecf6f394b6364103cbf1 | [
"BSD-2-Clause"
] | null | null | null | test/test_time_window.py | gis-ops/pyvroom | b7d23e405b8734c5672eecf6f394b6364103cbf1 | [
"BSD-2-Clause"
] | null | null | null | import numpy
import pytest
from vroom import _vroom
import vroom
MAX_VAL = numpy.iinfo(numpy.uint32).max
def test_time_window_init():
tw = vroom.TimeWindow()
assert tw.start == 0
assert tw.end == MAX_VAL
assert _vroom.TimeWindow().end == MAX_VAL
with pytest.raises(_vroom.VroomException):
... | 34.188406 | 71 | 0.691395 | 337 | 2,359 | 4.777448 | 0.121662 | 0.493789 | 0.268323 | 0.259627 | 0.654658 | 0.635404 | 0.581988 | 0.557143 | 0.52795 | 0.52795 | 0 | 0.12037 | 0.175922 | 2,359 | 68 | 72 | 34.691176 | 0.707819 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.66 | 1 | 0.1 | false | 0 | 0.08 | 0 | 0.18 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
b7d25319ac17748a7d99a7b4d0815e955a5ac73e | 36 | py | Python | sserver/flask/lib/python2.7/warnings.py | ssf008/myechoprint-server | 9ca0acc4e050dea2c99f32ffcab1a7e89352c8a3 | [
"Apache-2.0"
] | 9 | 2017-05-09T14:22:57.000Z | 2018-04-25T11:48:54.000Z | Message_delivery_Kafka/query/virtualenv/lib/python2.7/warnings.py | RickeyBoy/HACKxSJTU_ChatAssistant | 12768c8b6710adb582aec6c3b40613eedc3dfeb2 | [
"Apache-2.0"
] | 1 | 2021-09-18T05:59:56.000Z | 2021-09-18T06:02:57.000Z | Message_delivery_Kafka/query/virtualenv/lib/python2.7/warnings.py | RickeyBoy/HACKxSJTU_ChatAssistant | 12768c8b6710adb582aec6c3b40613eedc3dfeb2 | [
"Apache-2.0"
] | null | null | null | /usr/local/lib/python2.7/warnings.py | 36 | 36 | 0.805556 | 7 | 36 | 4.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055556 | 0 | 36 | 1 | 36 | 36 | 0.75 | 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 |
b7db5cbf065d41863649720ead7cc69dce1aad31 | 366 | py | Python | pmfp/entrypoint/__init__.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | 4 | 2017-09-15T03:38:56.000Z | 2019-12-16T02:03:14.000Z | pmfp/entrypoint/__init__.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | 1 | 2021-04-27T10:51:42.000Z | 2021-04-27T10:51:42.000Z | pmfp/entrypoint/__init__.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | null | null | null | """命令行执行脚本模块."""
from .core import *
from .project import *
from .build_ import *
from .cache import *
from .doc_ import *
from .docker_ import *
from .env_ import *
from .grpc import *
from .http import *
from .proto import *
from .requires import *
from .schema import *
from .test_ import *
from .info import *
from .... | 20.333333 | 32 | 0.718579 | 50 | 366 | 5.08 | 0.38 | 0.590551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177596 | 366 | 17 | 33 | 21.529412 | 0.843854 | 0.027322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
b7f450d061c11a425e2916b8270772306fd1d127 | 50,431 | py | Python | gym_eflex_agent/gym_eflex_agent/envs/EFlexMultiAgentCooperationV3.py | SDolgorukov/Multi-Agent-RL-CAD | d39fa06ff22162b9b9340ff9d52ee0f51b116c78 | [
"MIT"
] | 4 | 2020-10-13T10:31:30.000Z | 2022-01-24T06:06:46.000Z | gym_eflex_agent/gym_eflex_agent/envs/EFlexMultiAgentCooperationV3.py | SDolgorukov/Multi-Agent-RL-CAD | d39fa06ff22162b9b9340ff9d52ee0f51b116c78 | [
"MIT"
] | 1 | 2022-01-24T06:12:56.000Z | 2022-01-24T06:12:56.000Z | gym_eflex_agent/gym_eflex_agent/envs/EFlexMultiAgentCooperationV3.py | SDolgorukov/Multi-Agent-RL-CAD | d39fa06ff22162b9b9340ff9d52ee0f51b116c78 | [
"MIT"
] | 2 | 2020-10-01T11:13:12.000Z | 2021-06-02T19:56:45.000Z | from enum import Enum
import gym
import math
import numpy as np
import yaml
from gym import spaces
from gym.utils import seeding
MAX_PRODUCTION_STEP = 20
class EFLEXAgentState(Enum):
Aborted = 1
Stopped = 0
PowerOff = 2
LoadChange = 3
StandBy = 4
StartedUp = 5
Idle = 6
Execute = 7
... | 38.763259 | 119 | 0.602506 | 5,236 | 50,431 | 5.626814 | 0.06971 | 0.109022 | 0.087978 | 0.048877 | 0.810298 | 0.784027 | 0.745469 | 0.699681 | 0.674021 | 0.655998 | 0 | 0.012446 | 0.32131 | 50,431 | 1,300 | 120 | 38.793077 | 0.848336 | 0.185957 | 0 | 0.693548 | 0 | 0.001152 | 0.023883 | 0.000705 | 0 | 0 | 0 | 0.000769 | 0 | 1 | 0.078341 | false | 0.011521 | 0.011521 | 0.010369 | 0.25 | 0.001152 | 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 |
4d122bb4b4325a698f6fdbabe185a1b3dfc2ab9c | 163 | py | Python | c_mock_generator/util/file_util.py | BjoernLange/C-Mock-Generator | 91f0e331abf54dc5b6706796c02341e23b2e06d7 | [
"MIT"
] | null | null | null | c_mock_generator/util/file_util.py | BjoernLange/C-Mock-Generator | 91f0e331abf54dc5b6706796c02341e23b2e06d7 | [
"MIT"
] | 3 | 2020-06-07T12:48:17.000Z | 2020-07-26T12:52:45.000Z | c_mock_generator/util/file_util.py | BjoernLange/C-Mock-Generator | 91f0e331abf54dc5b6706796c02341e23b2e06d7 | [
"MIT"
] | null | null | null | from typing import List
def read_lines(filename: str) -> List[str]:
with open(filename) as file:
return [line.rstrip() for line in file.readlines()]
| 23.285714 | 59 | 0.680982 | 24 | 163 | 4.583333 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202454 | 163 | 6 | 60 | 27.166667 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4d225071873b0f76e9d97d895ffe2be992951569 | 373 | py | Python | src/thornfield/caching_data.py | drorvinkler/thornfield | 3c5bb8afaa96097bc71cccb119394a0f351d828f | [
"MIT"
] | 2 | 2020-11-24T13:27:14.000Z | 2020-11-24T13:29:40.000Z | src/thornfield/caching_data.py | drorvinkler/thornfield | 3c5bb8afaa96097bc71cccb119394a0f351d828f | [
"MIT"
] | 1 | 2020-11-24T13:33:45.000Z | 2020-11-24T15:10:41.000Z | src/thornfield/caching_data.py | drorvinkler/thornfield | 3c5bb8afaa96097bc71cccb119394a0f351d828f | [
"MIT"
] | null | null | null | from dataclasses import dataclass
from typing import List, Dict, Any, Optional
from thornfield.caches.cache import Cache
from thornfield.typing import NormalCallable
@dataclass
class CachingData:
func_args: List[str]
func_annotations: Dict[str, Any]
func_defaults: Dict[str, Any]
cache: Optional[Cache... | 24.866667 | 50 | 0.780161 | 48 | 373 | 5.9375 | 0.458333 | 0.084211 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152815 | 373 | 14 | 51 | 26.642857 | 0.901899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.090909 | 0.363636 | 0 | 0.909091 | 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 |
4d2cda43ed9b964a2c4149af845953c121981c6c | 30 | py | Python | .history/ClassFiles/Operators/BinaryNumbers_20201230174631.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/ClassFiles/Operators/BinaryNumbers_20201230174631.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | .history/ClassFiles/Operators/BinaryNumbers_20201230174631.py | minefarmer/Comprehensive-Python | f97b9b83ec328fc4e4815607e6a65de90bb8de66 | [
"Unlicense"
] | null | null | null | """ WHAT IS BINAR
""" | 10 | 25 | 0.366667 | 3 | 30 | 3.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.433333 | 30 | 3 | 26 | 10 | 0.647059 | 0.433333 | 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 |
4d4ab91f05e9134752a4779ff8fe354ccb757992 | 174 | py | Python | tools/test.py | john-hen/pyFlake8 | 3f7ddae6e40a4378f4c43e35f5ee1d4fce022174 | [
"MIT"
] | 3 | 2022-01-26T19:52:48.000Z | 2022-03-03T16:17:12.000Z | tools/test.py | john-hen/Flake8-pyproject | 3f7ddae6e40a4378f4c43e35f5ee1d4fce022174 | [
"MIT"
] | null | null | null | tools/test.py | john-hen/Flake8-pyproject | 3f7ddae6e40a4378f4c43e35f5ee1d4fce022174 | [
"MIT"
] | 2 | 2022-01-03T15:03:57.000Z | 2022-02-07T08:43:46.000Z | """Runs the test suite."""
from subprocess import run
from pathlib import Path
here = Path(__file__).resolve().parent
root = here.parent
run(['pytest'], cwd=root)
| 19.333333 | 39 | 0.683908 | 25 | 174 | 4.64 | 0.72 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 174 | 8 | 40 | 21.75 | 0.798611 | 0 | 0 | 0 | 0 | 0 | 0.043165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.4 | 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 |
4d807b8538481737e71412bd5f632c59e491336d | 116 | py | Python | aws_lambda_powertools/middleware_factory/exceptions.py | Sordie/aws-lambda-powertools-python | 12c512b78b8830bf2ed09e35d640df14afacfc1a | [
"Apache-2.0"
] | 1 | 2021-02-19T14:02:56.000Z | 2021-02-19T14:02:56.000Z | aws_lambda_powertools/middleware_factory/exceptions.py | Sordie/aws-lambda-powertools-python | 12c512b78b8830bf2ed09e35d640df14afacfc1a | [
"Apache-2.0"
] | null | null | null | aws_lambda_powertools/middleware_factory/exceptions.py | Sordie/aws-lambda-powertools-python | 12c512b78b8830bf2ed09e35d640df14afacfc1a | [
"Apache-2.0"
] | null | null | null | class MiddlewareInvalidArgumentError(Exception):
"""When middleware receives non keyword=arguments"""
pass
| 23.2 | 56 | 0.767241 | 10 | 116 | 8.9 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146552 | 116 | 4 | 57 | 29 | 0.89899 | 0.396552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4d980801a8797fadff4e7bd8e596f587dcce0cf5 | 91 | py | Python | TelegramBot/__main__.py | Hexagon12/TG-GroupManagerBot | b0d20932a257ba553e203989f8a7287fdf9c1a4f | [
"MIT"
] | 1 | 2021-07-01T13:25:40.000Z | 2021-07-01T13:25:40.000Z | TelegramBot/__main__.py | Hexagon12/TG-GroupManagerBot | b0d20932a257ba553e203989f8a7287fdf9c1a4f | [
"MIT"
] | null | null | null | TelegramBot/__main__.py | Hexagon12/TG-GroupManagerBot | b0d20932a257ba553e203989f8a7287fdf9c1a4f | [
"MIT"
] | null | null | null | from .customClient import customClient
if __name__ == "__main__":
customClient().run() | 22.75 | 38 | 0.736264 | 9 | 91 | 6.555556 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 91 | 4 | 39 | 22.75 | 0.75641 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 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 |
4de4315651067e14f5c070d0ea7d2a5fa3f455fd | 103 | py | Python | AcFun/AcFun/items.py | MeiK-h/AcFunDanMu | de99598de7799dcbdaf9c3554747feee6b5b6711 | [
"MIT"
] | 1 | 2018-12-30T22:04:06.000Z | 2018-12-30T22:04:06.000Z | AcFun/AcFun/items.py | MeiK-h/AcFunDanMu | de99598de7799dcbdaf9c3554747feee6b5b6711 | [
"MIT"
] | 1 | 2018-12-30T06:10:33.000Z | 2019-01-07T14:32:30.000Z | AcFun/AcFun/items.py | MeiK-h/AcFunDanMu | de99598de7799dcbdaf9c3554747feee6b5b6711 | [
"MIT"
] | null | null | null | import scrapy
class AcFunItem(scrapy.Item):
item_type = scrapy.Field()
data = scrapy.Field()
| 14.714286 | 30 | 0.68932 | 13 | 103 | 5.384615 | 0.615385 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194175 | 103 | 6 | 31 | 17.166667 | 0.843373 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
4dfa48d1d03577086955af8f74e6e651a42b6d86 | 232 | py | Python | data.py | agemor/pytorch-project-template | 9b43db0578d6ea0aa40d2fec577cb50e86e57c7d | [
"Unlicense"
] | 2 | 2020-11-11T07:36:56.000Z | 2020-11-11T12:46:54.000Z | data.py | agemor/pytorch-project | 9b43db0578d6ea0aa40d2fec577cb50e86e57c7d | [
"Unlicense"
] | null | null | null | data.py | agemor/pytorch-project | 9b43db0578d6ea0aa40d2fec577cb50e86e57c7d | [
"Unlicense"
] | null | null | null | import torch
import torch.utils as utils
class DummyDataset(utils.data.Dataset):
def __init__(self):
super().__init__()
def __getitem__(self, index):
return index
def __len__(self):
return 0
| 15.466667 | 39 | 0.646552 | 28 | 232 | 4.785714 | 0.607143 | 0.164179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 0.262931 | 232 | 14 | 40 | 16.571429 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.222222 | 0.222222 | 0.888889 | 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 |
15083fb5246f538855646248fbadac097d199360 | 13,015 | py | Python | hxldash/views.py | SimonbJohnson/quickX3 | cda54c77ccf76f37246cf033d1266ac029adc36d | [
"MIT"
] | 7 | 2019-11-08T11:51:40.000Z | 2022-02-16T10:32:14.000Z | hxldash/views.py | SimonbJohnson/quickX3 | cda54c77ccf76f37246cf033d1266ac029adc36d | [
"MIT"
] | 79 | 2019-06-11T15:31:16.000Z | 2020-12-06T05:57:03.000Z | hxldash/views.py | SimonbJohnson/quickX3 | cda54c77ccf76f37246cf033d1266ac029adc36d | [
"MIT"
] | 3 | 2020-01-17T12:36:33.000Z | 2020-04-07T17:09:12.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, redirect
from django.http import HttpResponse
from models import DashboardConfig,BiteConfig,FilterConfig,MapBite,DataTable,TableField
from django.contrib.auth.hashers import make_password, check_password
from django.vi... | 34.706667 | 206 | 0.667153 | 1,517 | 13,015 | 5.706658 | 0.105471 | 0.014555 | 0.028532 | 0.033037 | 0.744831 | 0.721266 | 0.699781 | 0.669516 | 0.658889 | 0.653229 | 0 | 0.005392 | 0.130695 | 13,015 | 374 | 207 | 34.799465 | 0.759767 | 0.139378 | 0 | 0.535354 | 0 | 0 | 0.167996 | 0.019453 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.114478 | 0.026936 | null | null | 0.006734 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
12d25e6b9295e4b94487abba851a00656b63d5b5 | 167 | py | Python | venv/bin/django-admin.py | odenyirechristopher/instagramapp | abd3d125f49f4a7a65c95d902024f59e60bcfc65 | [
"Unlicense"
] | 2 | 2021-04-09T14:04:41.000Z | 2021-04-29T07:50:58.000Z | venv/bin/django-admin.py | odenyirechristopher/instagramapp | abd3d125f49f4a7a65c95d902024f59e60bcfc65 | [
"Unlicense"
] | 5 | 2020-06-02T16:10:56.000Z | 2022-01-13T02:47:34.000Z | venv/bin/django-admin.py | odenyirechristopher/instagramapp | abd3d125f49f4a7a65c95d902024f59e60bcfc65 | [
"Unlicense"
] | 1 | 2020-05-31T20:23:38.000Z | 2020-05-31T20:23:38.000Z | #!/home/billo/Documents/django_ip2/instagram/venv/bin/python
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| 27.833333 | 60 | 0.796407 | 22 | 167 | 5.5 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.08982 | 167 | 5 | 61 | 33.4 | 0.789474 | 0.353293 | 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 |
12e791151ee31813d7ceb0d24e88c4ab9538b1d6 | 52 | py | Python | apps/bazaar/forms/__init__.py | Nelson-Morais/HA-OOAD | 82bd00ba7ab5f11f43bc90b505ee8afd0b86c7b5 | [
"Apache-2.0"
] | null | null | null | apps/bazaar/forms/__init__.py | Nelson-Morais/HA-OOAD | 82bd00ba7ab5f11f43bc90b505ee8afd0b86c7b5 | [
"Apache-2.0"
] | null | null | null | apps/bazaar/forms/__init__.py | Nelson-Morais/HA-OOAD | 82bd00ba7ab5f11f43bc90b505ee8afd0b86c7b5 | [
"Apache-2.0"
] | null | null | null | from .OfferForm import *
from .RequestForm import *
| 17.333333 | 26 | 0.769231 | 6 | 52 | 6.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 52 | 2 | 27 | 26 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
12f4cd3a2de4b34d6de1c14fcddab9c4924c4939 | 944 | py | Python | python_helpers/opcode_cxxx.py | RandomBananazz/chip8mc | 0e184c392a523c82dbc945325aa2cb9e5487e5e7 | [
"MIT"
] | 3 | 2020-09-28T17:50:49.000Z | 2020-12-30T18:23:46.000Z | python_helpers/opcode_cxxx.py | RandomBananazz/chip8mc | 0e184c392a523c82dbc945325aa2cb9e5487e5e7 | [
"MIT"
] | null | null | null | python_helpers/opcode_cxxx.py | RandomBananazz/chip8mc | 0e184c392a523c82dbc945325aa2cb9e5487e5e7 | [
"MIT"
] | null | null | null | for x in range(16):
with open(f'..\\data\\cpu\\functions\\opcode_switch\\opcode_cxxx\\opcode_cxxx_{x}.mcfunction', 'w') as f:
f.write(f'function cpu:bitwise_ops/and\n'
f'scoreboard players operation Global result *= c16 Constant\n'
f'scoreboard players operation G... | 62.933333 | 128 | 0.637712 | 137 | 944 | 4.255474 | 0.328467 | 0.020583 | 0.102916 | 0.16295 | 0.792453 | 0.759863 | 0.759863 | 0.343053 | 0.343053 | 0.343053 | 0 | 0.018006 | 0.235169 | 944 | 14 | 129 | 67.428571 | 0.789474 | 0 | 0 | 0.166667 | 0 | 0.083333 | 0.693856 | 0.290254 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
421c4c7dbe3d652ae940b89f1a8a3265a32a6567 | 437 | py | Python | venv/Lib/site-packages/statsmodels/sandbox/stats/tests/test_multicomp.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 6,931 | 2015-01-01T11:41:55.000Z | 2022-03-31T17:03:24.000Z | venv/Lib/site-packages/statsmodels/sandbox/stats/tests/test_multicomp.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 6,137 | 2015-01-01T00:33:45.000Z | 2022-03-31T22:53:17.000Z | venv/Lib/site-packages/statsmodels/sandbox/stats/tests/test_multicomp.py | EkremBayar/bayar | aad1a32044da671d0b4f11908416044753360b39 | [
"MIT"
] | 2,608 | 2015-01-02T21:32:31.000Z | 2022-03-31T07:38:30.000Z | """
Tests corresponding to sandbox.stats.multicomp
"""
import numpy as np
from numpy.testing import assert_almost_equal
from statsmodels.sandbox.stats.multicomp import tukey_pvalues
def test_tukey_pvalues():
# TODO: testcase with 3 is not good because all pairs
# has also 3*(3-1)/2=3 elements
res = tuke... | 27.3125 | 61 | 0.727689 | 73 | 437 | 4.219178 | 0.561644 | 0.116883 | 0.165584 | 0.175325 | 0.12987 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065574 | 0.162471 | 437 | 15 | 62 | 29.133333 | 0.775956 | 0.297483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.428571 | 1 | 0.142857 | false | 0 | 0.428571 | 0 | 0.571429 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
423c3b72de57a61e049f4faa1c860ed3b0286820 | 16 | py | Python | snm/otps/__init__.py | sparesnmechs/sparesnmechs | 44a7178fcfd0c89004d9f31734405c8d0fd5cd97 | [
"MIT"
] | null | null | null | snm/otps/__init__.py | sparesnmechs/sparesnmechs | 44a7178fcfd0c89004d9f31734405c8d0fd5cd97 | [
"MIT"
] | 9 | 2021-02-27T13:13:38.000Z | 2021-06-04T11:57:12.000Z | snm/otps/__init__.py | sparesnmechs/sparesnmechs | 44a7178fcfd0c89004d9f31734405c8d0fd5cd97 | [
"MIT"
] | null | null | null | """OTPs app."""
| 8 | 15 | 0.4375 | 2 | 16 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 16 | 1 | 16 | 16 | 0.5 | 0.5625 | 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 |
427bd2f72a14c2183a439ab4dff92ae46d2592d2 | 120 | py | Python | src/panel_components/shoelace/widgets/__init__.py | MarcSkovMadsen/panel-components | ca176f605006165889cbbd3c775d24cdcc4f964d | [
"MIT"
] | 5 | 2020-09-30T03:10:33.000Z | 2022-02-04T19:54:58.000Z | src/panel_components/shoelace/widgets/__init__.py | MarcSkovMadsen/panel-components | ca176f605006165889cbbd3c775d24cdcc4f964d | [
"MIT"
] | null | null | null | src/panel_components/shoelace/widgets/__init__.py | MarcSkovMadsen/panel-components | ca176f605006165889cbbd3c775d24cdcc4f964d | [
"MIT"
] | 1 | 2021-11-08T19:00:45.000Z | 2021-11-08T19:00:45.000Z | """# Shoelace Widgets
See https://shoelace.style/components/alert
"""
from .shoelace_button import ShoelaceButton
| 20 | 44 | 0.75 | 13 | 120 | 6.846154 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 120 | 5 | 45 | 24 | 0.855769 | 0.525 | 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 |
428cf0bbfdcdfb207c1cb1f0910acb923fd928eb | 168 | py | Python | notebooks/workflows/ocean_heat_content/solutions/solution_3_3.py | bonnland/ncar-python-tutorial | 54d536d40cfaf6f8990c58edb438286c19d32a67 | [
"CC-BY-4.0"
] | 38 | 2019-09-10T05:00:52.000Z | 2021-12-06T17:39:14.000Z | notebooks/workflows/ocean_heat_content/solutions/solution_3_3.py | bonnland/ncar-python-tutorial | 54d536d40cfaf6f8990c58edb438286c19d32a67 | [
"CC-BY-4.0"
] | 60 | 2019-08-28T22:34:17.000Z | 2021-01-25T22:53:21.000Z | notebooks/workflows/ocean_heat_content/solutions/solution_3_3.py | bonnland/ncar-python-tutorial | 54d536d40cfaf6f8990c58edb438286c19d32a67 | [
"CC-BY-4.0"
] | 22 | 2019-08-29T18:11:57.000Z | 2021-01-07T02:23:46.000Z | level_bounds_in_m = change_units(ds, "lev", "lev_bnds", "m")
temperature_in_K = change_units(ds, "thetao", "thetao", "degK")
print(level_bounds_in_m, temperature_in_K)
| 42 | 63 | 0.755952 | 28 | 168 | 4.071429 | 0.5 | 0.192982 | 0.22807 | 0.245614 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 168 | 3 | 64 | 56 | 0.74026 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
428ee424f617abae2251039b5646c2ebd6277d20 | 118 | py | Python | wpwatcher/__main__.py | mediaonegroup/WPWatcher | a8289af766e604e1c8f7d538513bf69dd74bfb50 | [
"Apache-2.0"
] | 27 | 2020-03-22T08:15:19.000Z | 2022-02-09T14:51:25.000Z | wpwatcher/__main__.py | mediaonegroup/WPWatcher | a8289af766e604e1c8f7d538513bf69dd74bfb50 | [
"Apache-2.0"
] | 38 | 2020-04-09T14:59:36.000Z | 2021-04-25T20:10:19.000Z | wpwatcher/__main__.py | mediaonegroup/WPWatcher | a8289af766e604e1c8f7d538513bf69dd74bfb50 | [
"Apache-2.0"
] | 11 | 2020-04-17T01:07:19.000Z | 2021-11-12T00:08:34.000Z | """Main program if called with `python -m wpwatcher`"""
from .cli import main
if __name__ == "__main__":
main()
| 16.857143 | 55 | 0.661017 | 16 | 118 | 4.375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194915 | 118 | 6 | 56 | 19.666667 | 0.736842 | 0.415254 | 0 | 0 | 0 | 0 | 0.126984 | 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 |
42916ca97b9fd20eeee5445dfb4b9adf586bb76f | 180 | py | Python | testes/testes_soma.py | netoalceu/pythonbirds | 25037740e297aa1947a119bfeba34ae706d6c713 | [
"MIT"
] | null | null | null | testes/testes_soma.py | netoalceu/pythonbirds | 25037740e297aa1947a119bfeba34ae706d6c713 | [
"MIT"
] | null | null | null | testes/testes_soma.py | netoalceu/pythonbirds | 25037740e297aa1947a119bfeba34ae706d6c713 | [
"MIT"
] | null | null | null | from unittest import TestCase
from pacote.modulo import soma as s
class TestSoma(TestCase):
def test_soma(self):
res = s(1,3)
self.assertEqual(4,res)
| 20 | 35 | 0.65 | 26 | 180 | 4.461538 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022727 | 0.266667 | 180 | 9 | 36 | 20 | 0.856061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | 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 |
429d4dfd7c0b9e00808b9617a64b1cdcce3f4ad4 | 7,490 | py | Python | app/training/perpot.py | dawedawe/traipor | abfb027dec6837a5a912d6470e8e4bb0eca0c815 | [
"ISC"
] | null | null | null | app/training/perpot.py | dawedawe/traipor | abfb027dec6837a5a912d6470e8e4bb0eca0c815 | [
"ISC"
] | null | null | null | app/training/perpot.py | dawedawe/traipor | abfb027dec6837a5a912d6470e8e4bb0eca0c815 | [
"ISC"
] | 1 | 2020-01-29T15:16:28.000Z | 2020-01-29T15:16:28.000Z | from __future__ import division
def make_load_func(plan):
def getload(t):
return plan[t]
return getload
def calc_strainrate(strainpot, perfpot, straindelay):
return min(min(1, strainpot), max(0, perfpot)) / straindelay
def calc_responserate(responsepot, perfpot, responsedelay):
return mi... | 33.288889 | 77 | 0.519893 | 753 | 7,490 | 5.09429 | 0.146082 | 0.063608 | 0.085245 | 0.108446 | 0.769812 | 0.733837 | 0.733837 | 0.696298 | 0.696298 | 0.670751 | 0 | 0.051177 | 0.381709 | 7,490 | 224 | 78 | 33.4375 | 0.777154 | 0.104673 | 0 | 0.738095 | 0 | 0 | 0.068685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.005952 | 0.029762 | 0.154762 | 0.035714 | 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 |
429ddce288ce940dd21941a0ebca68b59076c945 | 61 | py | Python | donutshell/builtin_modules/echo.py | loldonut/donutshell | a53d15b0a4950797e460d38ef82172cca1141fa2 | [
"MIT"
] | null | null | null | donutshell/builtin_modules/echo.py | loldonut/donutshell | a53d15b0a4950797e460d38ef82172cca1141fa2 | [
"MIT"
] | null | null | null | donutshell/builtin_modules/echo.py | loldonut/donutshell | a53d15b0a4950797e460d38ef82172cca1141fa2 | [
"MIT"
] | null | null | null | def echo(text: str) -> None:
print(text.lstrip('echo '))
| 20.333333 | 31 | 0.606557 | 9 | 61 | 4.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180328 | 61 | 2 | 32 | 30.5 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0.081967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 0.5 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
c40fef588bae9e715adbe56a965767c71eae7792 | 26 | py | Python | pwnlib/version.py | cclauss/pwntools | 899baec7048559db65a2e9ad784be4cb60c181da | [
"MIT"
] | 2 | 2019-07-22T08:22:51.000Z | 2022-01-11T02:57:02.000Z | pwnlib/version.py | cclauss/pwntools | 899baec7048559db65a2e9ad784be4cb60c181da | [
"MIT"
] | null | null | null | pwnlib/version.py | cclauss/pwntools | 899baec7048559db65a2e9ad784be4cb60c181da | [
"MIT"
] | 3 | 2018-03-21T11:48:05.000Z | 2021-10-16T15:38:01.000Z | __version__ = '3.12.0dev'
| 13 | 25 | 0.692308 | 4 | 26 | 3.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0.115385 | 26 | 1 | 26 | 26 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c41b14e22b13198470e72e4641969fad3c6e84f2 | 68 | py | Python | BLOX/Examples/ChatBot/Seq2Seq.py | linearlabstech/blox | 6a5c8a28fcfcb17731be89939284e7ac13a047d7 | [
"Apache-2.0"
] | 17 | 2019-03-31T18:37:35.000Z | 2020-08-17T18:14:40.000Z | BLOX/Examples/ChatBot/Seq2Seq.py | linearlabstech/blox | 6a5c8a28fcfcb17731be89939284e7ac13a047d7 | [
"Apache-2.0"
] | null | null | null | BLOX/Examples/ChatBot/Seq2Seq.py | linearlabstech/blox | 6a5c8a28fcfcb17731be89939284e7ac13a047d7 | [
"Apache-2.0"
] | 1 | 2019-04-02T07:02:08.000Z | 2019-04-02T07:02:08.000Z |
import torch
from torch import nn
class Seq2Seq(nn.Module):
| 8.5 | 25 | 0.705882 | 10 | 68 | 4.8 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0.235294 | 68 | 8 | 26 | 8.5 | 0.903846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.666667 | 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 |
c4450c62bdd96e836bdbe738f7302ee27baec90a | 127 | py | Python | installers/setup.py | alpha19/StockAnalysis | 011b8392c1623c61233db6d08a2ff72010c51bb9 | [
"MIT"
] | 2 | 2020-05-11T02:04:02.000Z | 2020-05-11T02:04:08.000Z | installers/setup.py | Spich9215/StockAnalysis | 5679415cd4bc306b7ef7d06c3cccd18842a29f09 | [
"MIT"
] | 9 | 2019-06-01T23:29:08.000Z | 2021-12-13T20:49:46.000Z | installers/setup.py | Spich9215/StockAnalysis | 5679415cd4bc306b7ef7d06c3cccd18842a29f09 | [
"MIT"
] | 1 | 2019-12-26T18:53:57.000Z | 2019-12-26T18:53:57.000Z | # setup.py
from distutils.core import setup
import py2exe, sys, os
sys.argv.append('py2exe')
setup(windows = ["gui_main.py"]) | 18.142857 | 32 | 0.732283 | 20 | 127 | 4.6 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.11811 | 127 | 7 | 33 | 18.142857 | 0.803571 | 0.062992 | 0 | 0 | 0 | 0 | 0.144068 | 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 |
c44e957f64ec15633e39818c15dfa94ec1b108fc | 564 | py | Python | saleor/product/migrations/0115_auto_20200109_1908.py | TropicalBastos/saleor-courses | 3d158d7e00fba999331b4949ee69bca3b3ab564e | [
"CC-BY-4.0"
] | 4 | 2019-11-23T20:00:45.000Z | 2021-09-15T20:06:15.000Z | saleor/product/migrations/0115_auto_20200109_1908.py | TropicalBastos/saleor-courses | 3d158d7e00fba999331b4949ee69bca3b3ab564e | [
"CC-BY-4.0"
] | 14 | 2020-03-24T17:54:29.000Z | 2022-02-10T19:53:07.000Z | saleor/product/migrations/0115_auto_20200109_1908.py | TropicalBastos/saleor-courses | 3d158d7e00fba999331b4949ee69bca3b3ab564e | [
"CC-BY-4.0"
] | 1 | 2020-01-11T21:33:21.000Z | 2020-01-11T21:33:21.000Z | # Generated by Django 2.2.6 on 2020-01-10 01:08
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('product', '0114_auto_20200108_2000'),
]
operations = [
migrations.RemoveField(
model_name='productvariant',
name='sku',
... | 21.692308 | 47 | 0.56383 | 50 | 564 | 6.22 | 0.62 | 0.202572 | 0.250804 | 0.289389 | 0.463023 | 0.463023 | 0 | 0 | 0 | 0 | 0 | 0.081794 | 0.328014 | 564 | 25 | 48 | 22.56 | 0.738786 | 0.079787 | 0 | 0.473684 | 1 | 0 | 0.185687 | 0.044487 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
c45e7c00b0e0ec9a5b97f4b628f06ad87fc222ab | 55 | py | Python | mfa/decorators.py | ashokdelphia/django-mfa3 | ab9c24ccc81320efe80e721f6935ef53b490c4d2 | [
"MIT"
] | 7 | 2021-09-01T10:31:13.000Z | 2022-02-09T20:28:54.000Z | mfa/decorators.py | ashokdelphia/django-mfa3 | ab9c24ccc81320efe80e721f6935ef53b490c4d2 | [
"MIT"
] | 7 | 2021-06-21T07:15:35.000Z | 2022-02-09T23:31:59.000Z | mfa/decorators.py | ashokdelphia/django-mfa3 | ab9c24ccc81320efe80e721f6935ef53b490c4d2 | [
"MIT"
] | 3 | 2021-07-14T19:21:06.000Z | 2022-02-09T20:21:24.000Z | def public(fn):
fn.mfa_public = True
return fn
| 13.75 | 24 | 0.636364 | 9 | 55 | 3.777778 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 55 | 3 | 25 | 18.333333 | 0.85 | 0 | 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 |
67057c28e50f3e5e0f343a2bed1e20407865defc | 68 | py | Python | source-code-from-author-book/Listings-for-Second-Edition/listing_3_23.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_3_23.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_3_23.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | class OrderedList:
def __init__(self):
self.head = None
| 17 | 24 | 0.632353 | 8 | 68 | 4.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279412 | 68 | 3 | 25 | 22.666667 | 0.795918 | 0 | 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 |
670b4ddb488b54259bcaa5de2e2ed91e1314c0aa | 12,738 | py | Python | common/xrd-ui-tests-python/tests/xroad_ss_client_certification_213/XroadSecurityServerAuthCert.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 1 | 2019-02-09T00:16:54.000Z | 2019-02-09T00:16:54.000Z | common/xrd-ui-tests-python/tests/xroad_ss_client_certification_213/XroadSecurityServerAuthCert.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 1 | 2018-06-06T08:33:32.000Z | 2018-06-06T08:33:32.000Z | common/xrd-ui-tests-python/tests/xroad_ss_client_certification_213/XroadSecurityServerAuthCert.py | nordic-institute/X-Road-tests | e030661a0ad8ceab74dd8122b751e88025a3474a | [
"MIT"
] | 3 | 2018-07-09T08:51:00.000Z | 2020-07-23T18:40:24.000Z | import time
import unittest
from helpers import xroad, ssh_client
from main.maincontroller import MainController
from tests.xroad_client_registration_in_ss_221 import client_registration_in_ss
from tests.xroad_configure_service_222.wsdl_validator_errors import wait_until_server_up
from tests.xroad_ss_client_certificat... | 47.35316 | 151 | 0.603391 | 1,592 | 12,738 | 4.491206 | 0.111809 | 0.093706 | 0.121818 | 0.076084 | 0.752308 | 0.716224 | 0.686434 | 0.661538 | 0.653147 | 0.606573 | 0 | 0.023374 | 0.304757 | 12,738 | 268 | 152 | 47.529851 | 0.783988 | 0.076543 | 0 | 0.703884 | 0 | 0 | 0.084284 | 0.002593 | 0 | 0 | 0 | 0 | 0 | 1 | 0.024272 | false | 0.23301 | 0.043689 | 0 | 0.072816 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
671ff28cfbfa23ec3a3191c75b506af164d19220 | 461 | py | Python | src/genos/examples/__init__.py | angrycaptain19/genos | cd0353d22d2eddbd538a2b75355d329ae751fb8a | [
"MIT"
] | 11 | 2020-11-09T21:18:57.000Z | 2021-06-09T12:49:41.000Z | src/genos/examples/__init__.py | Neural-Space/genos | cd0353d22d2eddbd538a2b75355d329ae751fb8a | [
"MIT"
] | 5 | 2020-11-09T19:08:48.000Z | 2020-11-10T23:21:54.000Z | src/genos/examples/__init__.py | angrycaptain19/genos | cd0353d22d2eddbd538a2b75355d329ae751fb8a | [
"MIT"
] | 2 | 2020-11-10T08:40:12.000Z | 2020-11-18T06:50:52.000Z | """
Authors:
- Ayushman Dash <ayushman@neuralspace.ai>
- Kushal Jain <kushal@neuralspace.ai>
"""
from genos.examples.complex_examples import ActivationLayer # noqa: F401
from genos.examples.complex_examples import AffineLayer # noqa: F401
from genos.examples.complex_examples import CustomModel # noqa: F401
from g... | 38.416667 | 78 | 0.793926 | 58 | 461 | 6.224138 | 0.37931 | 0.124654 | 0.235457 | 0.265928 | 0.556787 | 0.487535 | 0.382271 | 0.382271 | 0 | 0 | 0 | 0.037037 | 0.121475 | 461 | 11 | 79 | 41.909091 | 0.854321 | 0.316703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
67504fc9edc76ff0c3dde14121ee767ba994c001 | 165 | py | Python | src/web/routes/__init__.py | zaxmks/demo-data-compliance-service | 372e612c570aaf5b512bec17627f825e880add67 | [
"CNRI-Python",
"CECILL-B"
] | null | null | null | src/web/routes/__init__.py | zaxmks/demo-data-compliance-service | 372e612c570aaf5b512bec17627f825e880add67 | [
"CNRI-Python",
"CECILL-B"
] | null | null | null | src/web/routes/__init__.py | zaxmks/demo-data-compliance-service | 372e612c570aaf5b512bec17627f825e880add67 | [
"CNRI-Python",
"CECILL-B"
] | null | null | null | from src.web.routes.healthcheck_route import healthcheck_router
from src.web.routes.pdf_routes import pdf_router
enabled_routers = [pdf_router, healthcheck_router]
| 33 | 63 | 0.860606 | 24 | 165 | 5.625 | 0.458333 | 0.103704 | 0.148148 | 0.237037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078788 | 165 | 4 | 64 | 41.25 | 0.888158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 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 |
67601caa9bba00a85a95e733727397b37f47127c | 295 | py | Python | gestionairweb/api/admin.py | HEG-Arc/paleo-2015-gestionair-web | 8ca446581778bd875f47066175045f054b76d525 | [
"BSD-3-Clause"
] | null | null | null | gestionairweb/api/admin.py | HEG-Arc/paleo-2015-gestionair-web | 8ca446581778bd875f47066175045f054b76d525 | [
"BSD-3-Clause"
] | 1 | 2015-07-18T17:29:34.000Z | 2016-08-15T07:33:00.000Z | gestionairweb/api/admin.py | HEG-Arc/paleo-2015-gestionair-web | 8ca446581778bd875f47066175045f054b76d525 | [
"BSD-3-Clause"
] | null | null | null | from django.contrib import admin
from .models import Event, Score, Statistic
@admin.register(Event)
class EventAdmin(admin.ModelAdmin):
pass
@admin.register(Score)
class ScoreAdmin(admin.ModelAdmin):
pass
@admin.register(Statistic)
class StatisticAdmin(admin.ModelAdmin):
pass
| 16.388889 | 43 | 0.769492 | 35 | 295 | 6.485714 | 0.457143 | 0.171806 | 0.251101 | 0.211454 | 0.281938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 295 | 17 | 44 | 17.352941 | 0.890196 | 0 | 0 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.272727 | 0.181818 | 0 | 0.454545 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
676a52fb8f1074076f466eef548573a7c1c9c49b | 114 | py | Python | common/models.py | victoray/block-tracker-api | 0d5918a29572b47b0fb3f205fc1ba21ad4fcca51 | [
"MIT"
] | null | null | null | common/models.py | victoray/block-tracker-api | 0d5918a29572b47b0fb3f205fc1ba21ad4fcca51 | [
"MIT"
] | null | null | null | common/models.py | victoray/block-tracker-api | 0d5918a29572b47b0fb3f205fc1ba21ad4fcca51 | [
"MIT"
] | null | null | null | from typing import Optional
from pydantic import BaseModel
class Ownable(BaseModel):
userId: Optional[str]
| 14.25 | 30 | 0.780702 | 14 | 114 | 6.357143 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 114 | 7 | 31 | 16.285714 | 0.936842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
67844ae80b5c2777a52d7078309620b764ba1fb0 | 186 | py | Python | web/src/actualidad/admin.py | DelegacionCienciasUSAL/delcien.usal.es | fbf445c05a13eaa9726b0d8823c3aa34c9334dd3 | [
"Apache-2.0"
] | 1 | 2018-12-06T19:34:12.000Z | 2018-12-06T19:34:12.000Z | web/src/actualidad/admin.py | DelegacionCienciasUSAL/delcien.usal.es | fbf445c05a13eaa9726b0d8823c3aa34c9334dd3 | [
"Apache-2.0"
] | 6 | 2018-12-08T08:45:52.000Z | 2018-12-08T08:56:19.000Z | web/src/actualidad/admin.py | DelegacionCienciasUSAL/delcien.usal.es | fbf445c05a13eaa9726b0d8823c3aa34c9334dd3 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from actualidad.models import Noticia
class NoticiaAdmin( admin.ModelAdmin):
list_filter = ( 'categoria',)
admin.site.register( Noticia, NoticiaAdmin) | 26.571429 | 43 | 0.801075 | 22 | 186 | 6.727273 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 186 | 7 | 43 | 26.571429 | 0.891566 | 0 | 0 | 0 | 0 | 0 | 0.048128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
6785ff6513decda8e58f799fb7e7ccf9f4973468 | 280 | py | Python | test_modules/torch/cov.py | Jintao-Huang/torch_study | d3a1b25dad1f7906ab16863d387bc370d18be0b6 | [
"MIT"
] | 4 | 2020-05-13T13:41:58.000Z | 2020-06-02T08:51:52.000Z | test_modules/torch/cov.py | Jintao-Huang/torch_study | d3a1b25dad1f7906ab16863d387bc370d18be0b6 | [
"MIT"
] | null | null | null | test_modules/torch/cov.py | Jintao-Huang/torch_study | d3a1b25dad1f7906ab16863d387bc370d18be0b6 | [
"MIT"
] | 1 | 2021-08-10T09:12:51.000Z | 2021-08-10T09:12:51.000Z | # Author: Jintao Huang
# Email: hjt_study@qq.com
# Date:
import torch
from dev.torch import cov
# In[0]:
x = torch.randn(10, 20)
print(torch.allclose(torch.cov(x), cov(x)))
print(torch.allclose(torch.cov(x, correction=0), cov(x, correction=0)))
print()
"""Out[0]
True
True
"""
| 16.470588 | 71 | 0.682143 | 48 | 280 | 3.958333 | 0.520833 | 0.084211 | 0.189474 | 0.242105 | 0.284211 | 0.284211 | 0 | 0 | 0 | 0 | 0 | 0.032653 | 0.125 | 280 | 16 | 72 | 17.5 | 0.742857 | 0.207143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.5 | 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 | 0 | 1 | 0 | 4 |
67e393386e315c94009f69f91165b1fe71112156 | 78 | py | Python | dependencies/pythonirodsclient/0.5.0rc1/katherine/export/009d78076e38/venv/lib/python2.7/site-packages/irods/manager/__init__.py | katbeaulieu/galaxy-2 | b58e2f81ae98faeed57a422188c38fead2913a8e | [
"CC-BY-3.0"
] | null | null | null | dependencies/pythonirodsclient/0.5.0rc1/katherine/export/009d78076e38/venv/lib/python2.7/site-packages/irods/manager/__init__.py | katbeaulieu/galaxy-2 | b58e2f81ae98faeed57a422188c38fead2913a8e | [
"CC-BY-3.0"
] | null | null | null | dependencies/pythonirodsclient/0.5.0rc1/katherine/export/009d78076e38/venv/lib/python2.7/site-packages/irods/manager/__init__.py | katbeaulieu/galaxy-2 | b58e2f81ae98faeed57a422188c38fead2913a8e | [
"CC-BY-3.0"
] | null | null | null | class Manager(object):
def __init__(self, sess):
self.sess = sess
| 19.5 | 29 | 0.628205 | 10 | 78 | 4.5 | 0.7 | 0.355556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25641 | 78 | 3 | 30 | 26 | 0.775862 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
67ecb4081d5c0899c8c651b2ab80a0fcf239ef91 | 225 | py | Python | tsdl/tools/other.py | burgerdev/hostload | 93142628bb32923c5e6f3a8b791488d72a5c9077 | [
"MIT"
] | null | null | null | tsdl/tools/other.py | burgerdev/hostload | 93142628bb32923c5e6f3a8b791488d72a5c9077 | [
"MIT"
] | null | null | null | tsdl/tools/other.py | burgerdev/hostload | 93142628bb32923c5e6f3a8b791488d72a5c9077 | [
"MIT"
] | null | null | null | """
This really did not fit in elsewhere
"""
import numpy as np
def get_rng():
"""
get a RNG that is arbitrary, but repeatable
Use this for testing or publishing.
"""
return np.random.RandomState(420)
| 15 | 47 | 0.653333 | 33 | 225 | 4.424242 | 0.878788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.253333 | 225 | 14 | 48 | 16.071429 | 0.85119 | 0.52 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
db00cc58b542b031b39836171dceb57d30e2d2ac | 202 | py | Python | jupyter_contrib_core/__init__.py | EnjoyLifeFund/macHighSierra-py36-pkgs | 5668b5785296b314ea1321057420bcd077dba9ea | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 445 | 2019-01-26T13:50:26.000Z | 2022-03-18T05:17:38.000Z | jupyter_contrib_core/__init__.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 242 | 2019-01-29T15:48:27.000Z | 2022-03-31T22:09:21.000Z | jupyter_contrib_core/__init__.py | EnjoyLifeFund/Debian_py36_packages | 1985d4c73fabd5f08f54b922e73a9306e09c77a5 | [
"BSD-3-Clause",
"BSD-2-Clause",
"MIT"
] | 31 | 2019-03-10T09:51:27.000Z | 2022-02-14T23:11:12.000Z | # -*- coding: utf-8 -*-
# - Copyright (c) 2016-, jupyter-contrib development team
"""Core functionality for jupyter-contrib projects."""
from __future__ import unicode_literals
__version__ = '0.3.3'
| 22.444444 | 57 | 0.717822 | 25 | 202 | 5.44 | 0.88 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045977 | 0.138614 | 202 | 8 | 58 | 25.25 | 0.735632 | 0.628713 | 0 | 0 | 0 | 0 | 0.073529 | 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 |
db161f6b0852e4cb583e5b40a6042bf6e96ec03a | 175 | py | Python | src/webapp/app.py | mblackgeo/flask-cognito-jwt-example | 37adb87502bb95b854346781a14ee96d0c117541 | [
"MIT"
] | null | null | null | src/webapp/app.py | mblackgeo/flask-cognito-jwt-example | 37adb87502bb95b854346781a14ee96d0c117541 | [
"MIT"
] | null | null | null | src/webapp/app.py | mblackgeo/flask-cognito-jwt-example | 37adb87502bb95b854346781a14ee96d0c117541 | [
"MIT"
] | null | null | null | from lambdarado import start
def get_app():
# this function must return WSGI app, e.g. Flask
from webapp import create_app
return create_app()
start(get_app)
| 14.583333 | 52 | 0.714286 | 27 | 175 | 4.481481 | 0.62963 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222857 | 175 | 11 | 53 | 15.909091 | 0.889706 | 0.262857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.8 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e1d29b352b06ef4c8b526f12bed921be798fb101 | 116 | py | Python | powerdns/apps.py | mike-johnson-jr/django-powerdns-dnssec | c96973ad1d619e03299fb9f26eb43064a584711b | [
"BSD-2-Clause"
] | 32 | 2015-06-12T12:26:40.000Z | 2021-11-11T13:43:29.000Z | powerdns/apps.py | mike-johnson-jr/django-powerdns-dnssec | c96973ad1d619e03299fb9f26eb43064a584711b | [
"BSD-2-Clause"
] | 160 | 2015-07-09T11:53:51.000Z | 2019-10-17T05:21:30.000Z | powerdns/apps.py | mike-johnson-jr/django-powerdns-dnssec | c96973ad1d619e03299fb9f26eb43064a584711b | [
"BSD-2-Clause"
] | 20 | 2015-06-29T12:32:47.000Z | 2019-11-21T16:53:28.000Z | from django.apps import AppConfig
class Powerdns(AppConfig):
name = 'powerdns'
verbose_name = 'PowerDNS'
| 14.5 | 33 | 0.715517 | 13 | 116 | 6.307692 | 0.692308 | 0.292683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198276 | 116 | 7 | 34 | 16.571429 | 0.88172 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e1f3156849dbd2a3df40926220d7fa51805b4380 | 291 | py | Python | dumb_api/models.py | Nerdenator/dumb_backend | 02dd50ead291f3cc04251b28faf8068a901e97a0 | [
"MIT"
] | null | null | null | dumb_api/models.py | Nerdenator/dumb_backend | 02dd50ead291f3cc04251b28faf8068a901e97a0 | [
"MIT"
] | null | null | null | dumb_api/models.py | Nerdenator/dumb_backend | 02dd50ead291f3cc04251b28faf8068a901e97a0 | [
"MIT"
] | null | null | null | from django.db import models
class DumbTable(models.Model):
name_field = models.CharField(max_length=15)
number_field1 = models.IntegerField()
number_field2 = models.IntegerField()
number_field3 = models.IntegerField()
def __str__(self):
return self.name_field | 26.454545 | 48 | 0.731959 | 35 | 291 | 5.8 | 0.657143 | 0.26601 | 0.236453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020921 | 0.178694 | 291 | 11 | 49 | 26.454545 | 0.828452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e1f5f89de1ccfb835376cc10fb45995b0404e348 | 2,079 | py | Python | tensorflow_lite_support/tools/pip_package/tflite_support.__init__.py | ccen-stripe/tflite-support | a92abc7eb8bd08c1fb8b26fecf394e0f8fcf3654 | [
"Apache-2.0"
] | null | null | null | tensorflow_lite_support/tools/pip_package/tflite_support.__init__.py | ccen-stripe/tflite-support | a92abc7eb8bd08c1fb8b26fecf394e0f8fcf3654 | [
"Apache-2.0"
] | null | null | null | tensorflow_lite_support/tools/pip_package/tflite_support.__init__.py | ccen-stripe/tflite-support | a92abc7eb8bd08c1fb8b26fecf394e0f8fcf3654 | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 38.5 | 94 | 0.767677 | 291 | 2,079 | 5.402062 | 0.47079 | 0.089059 | 0.066794 | 0.073791 | 0.124046 | 0.092239 | 0.063613 | 0.063613 | 0 | 0 | 0 | 0.004449 | 0.135161 | 2,079 | 53 | 95 | 39.226415 | 0.869855 | 0.806638 | 0 | 0 | 0 | 0 | 0.018617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.875 | 0 | 0.875 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
e1f640d83ced97a2ccbeb461f1aa5a29f67add09 | 381 | py | Python | exapi/models_mappers/binance/base/interface.py | astsu-dev/exapi | 1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12 | [
"MIT"
] | null | null | null | exapi/models_mappers/binance/base/interface.py | astsu-dev/exapi | 1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12 | [
"MIT"
] | null | null | null | exapi/models_mappers/binance/base/interface.py | astsu-dev/exapi | 1ef39ccdd77e9ddb60ec6eaa16a2cc26e1ac3e12 | [
"MIT"
] | null | null | null | from typing import Protocol
from exapi.models.binance import BinanceErrorJson, BinanceErrorModel
class IBinanceBaseModelsMapper(Protocol):
def map_to_error(self, error_json: BinanceErrorJson) -> BinanceErrorModel:
"""Maps error json to error model.
Args:
error_json (BinanceErrorJson)... | 23.8125 | 78 | 0.690289 | 35 | 381 | 7.4 | 0.6 | 0.104247 | 0.19305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.246719 | 381 | 15 | 79 | 25.4 | 0.902439 | 0.272966 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
c031c15f16c2fa20c6b67993c2380f91f4dc1170 | 49 | py | Python | geopyspark/geotools/__init__.py | geotrellis/geotrellis-python | 97bcb17a56ed4b4059e2f0dbab97706562cac692 | [
"Apache-2.0"
] | 182 | 2017-01-26T18:11:57.000Z | 2021-09-07T07:39:52.000Z | geopyspark/geotools/__init__.py | geotrellis/geotrellis-python | 97bcb17a56ed4b4059e2f0dbab97706562cac692 | [
"Apache-2.0"
] | 428 | 2016-12-21T14:53:43.000Z | 2019-07-14T09:33:54.000Z | geopyspark/geotools/__init__.py | geotrellis/geotrellis-python | 97bcb17a56ed4b4059e2f0dbab97706562cac692 | [
"Apache-2.0"
] | 66 | 2017-01-05T19:16:15.000Z | 2022-02-23T12:49:50.000Z | from . import shapefile
__all__ = ['shapefile']
| 12.25 | 23 | 0.714286 | 5 | 49 | 6.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.163265 | 49 | 3 | 24 | 16.333333 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 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 |
c0400c03bf4554dee48cd98e3294da328d534e63 | 84 | py | Python | python/testData/resolve/ImplicitDunderSizeOfNewStyleClass.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/resolve/ImplicitDunderSizeOfNewStyleClass.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 173 | 2018-07-05T13:59:39.000Z | 2018-08-09T01:12:03.000Z | python/testData/resolve/ImplicitDunderSizeOfNewStyleClass.py | jnthn/intellij-community | 8fa7c8a3ace62400c838e0d5926a7be106aa8557 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | class A(object):
def foo(self):
return __sizeof__
# <ref> | 21 | 25 | 0.488095 | 9 | 84 | 4.111111 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.404762 | 84 | 4 | 26 | 21 | 0.74 | 0.059524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 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 |
c065112848dad9e695e0888bff6ef028143d43e6 | 18,406 | py | Python | apfell-docker/app/api/crypto_api.py | RedTeamOperations/Apfell | 89f18ca0c9ebfb0f0b3a242905bbfc0b9deac4d2 | [
"BSD-3-Clause"
] | 3 | 2020-07-28T01:47:29.000Z | 2022-03-03T22:24:11.000Z | apfell-docker/app/api/crypto_api.py | RedTeamOperations/Apfell | 89f18ca0c9ebfb0f0b3a242905bbfc0b9deac4d2 | [
"BSD-3-Clause"
] | null | null | null | apfell-docker/app/api/crypto_api.py | RedTeamOperations/Apfell | 89f18ca0c9ebfb0f0b3a242905bbfc0b9deac4d2 | [
"BSD-3-Clause"
] | null | null | null | from app import db_objects
from app.database_models.model import StagingInfo
import base64
import app.crypto as crypt
import json as js
from sanic.log import logger
from uuid import uuid4
"""
# this is an unprotected API so that agents and c2 profiles can hit this when staging
@apfell.route(apfell.config['API_BASE'] +... | 63.250859 | 2,058 | 0.750679 | 1,456 | 18,406 | 9.334478 | 0.199176 | 0.020602 | 0.026488 | 0.010595 | 0.217938 | 0.183725 | 0.178721 | 0.156059 | 0.15341 | 0.147524 | 0 | 0.266908 | 0.188634 | 18,406 | 291 | 2,059 | 63.250859 | 0.643163 | 0.087146 | 0 | 0.295775 | 0 | 0 | 0.05119 | 0.003433 | 0 | 1 | 0.490363 | 0 | 0 | 1 | 0.06338 | false | 0 | 0.070423 | 0 | 0.302817 | 0.035211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fbe780fbece876e0aa14552eabf914e09c423bb2 | 65 | py | Python | newstream_user/__init__.py | diffractive/newstream | cf1a1f230e18d01c63b50ab9d360aa44ac5a486f | [
"MIT"
] | 1 | 2020-05-03T12:33:42.000Z | 2020-05-03T12:33:42.000Z | newstream_user/__init__.py | diffractive/newstream | cf1a1f230e18d01c63b50ab9d360aa44ac5a486f | [
"MIT"
] | 14 | 2020-07-06T20:05:57.000Z | 2022-03-12T00:39:11.000Z | newstream_user/__init__.py | diffractive/newstream | cf1a1f230e18d01c63b50ab9d360aa44ac5a486f | [
"MIT"
] | null | null | null | # default_app_config = 'newstream_user.apps.NewstreamUserConfig'
| 32.5 | 64 | 0.846154 | 7 | 65 | 7.428571 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 65 | 1 | 65 | 65 | 0.852459 | 0.953846 | 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 |
222596c8fcc7f837847ecf09282045d109510154 | 77 | py | Python | oscardropship/custom_oscar/partner/__init__.py | hanztura/oscardropship | 26a5e76d633494f40458c0ca770279658032e192 | [
"MIT"
] | 2 | 2020-08-24T21:20:32.000Z | 2021-02-08T04:47:54.000Z | oscardropship/custom_oscar/partner/__init__.py | hanztura/oscardropship | 26a5e76d633494f40458c0ca770279658032e192 | [
"MIT"
] | null | null | null | oscardropship/custom_oscar/partner/__init__.py | hanztura/oscardropship | 26a5e76d633494f40458c0ca770279658032e192 | [
"MIT"
] | null | null | null | default_app_config = 'oscardropship.custom_oscar.partner.apps.PartnerConfig'
| 38.5 | 76 | 0.87013 | 9 | 77 | 7.111111 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 77 | 1 | 77 | 77 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0.688312 | 0.688312 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
2253b10ee67e581b9877ead5df1353610fc667f6 | 1,238 | py | Python | lf3py/routing/symbols.py | rog-works/lf3py | e89937f7aa133ed54d85764f06101ab9abf6b960 | [
"CNRI-Python"
] | null | null | null | lf3py/routing/symbols.py | rog-works/lf3py | e89937f7aa133ed54d85764f06101ab9abf6b960 | [
"CNRI-Python"
] | 48 | 2020-12-19T13:47:26.000Z | 2021-01-07T22:27:56.000Z | lf3py/routing/symbols.py | rog-works/lf3py | e89937f7aa133ed54d85764f06101ab9abf6b960 | [
"CNRI-Python"
] | null | null | null | from abc import ABCMeta, abstractmethod
from typing import List, Tuple
from lf3py.lang.dsn import DSNElement
from lf3py.lang.locator import Locator
from lf3py.routing.types import AttachMiddleware, Middleware, RunnerDecorator
from lf3py.task import Catch, Task
from lf3py.task.data import Command
class IDispatcher(me... | 30.195122 | 86 | 0.728595 | 123 | 1,238 | 7.292683 | 0.341463 | 0.132664 | 0.211817 | 0.22854 | 0.238573 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004941 | 0.182553 | 1,238 | 40 | 87 | 30.95 | 0.881423 | 0 | 0 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.233333 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
22711fb3a14285008e111b9a4c9affeec0016f00 | 267 | py | Python | yaonlp/models.py | Zzoay/YaoNLP | bfc54606f8b20584c4a6d997ba5bdddd528473e4 | [
"Apache-2.0"
] | null | null | null | yaonlp/models.py | Zzoay/YaoNLP | bfc54606f8b20584c4a6d997ba5bdddd528473e4 | [
"Apache-2.0"
] | null | null | null | yaonlp/models.py | Zzoay/YaoNLP | bfc54606f8b20584c4a6d997ba5bdddd528473e4 | [
"Apache-2.0"
] | null | null | null | from abc import ABCMeta, abstractmethod
from torch.nn import Module
class Model(Module):
def __init__(self, )->None:
super(Model, self).__init__()
__metaclass__ = ABCMeta
@abstractmethod
def initial(self):
raise NotImplementedError | 20.538462 | 39 | 0.696629 | 29 | 267 | 6 | 0.655172 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220974 | 267 | 13 | 40 | 20.538462 | 0.836538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
22747b4774a000ee5d5bed5bcbecfa4fe2d1344f | 217 | py | Python | setup.py | 9seconds/fuel-pdsh | f3a25f59bc2e45402f5bb3c26cb044ba19f53814 | [
"MIT"
] | 1 | 2016-01-07T01:06:34.000Z | 2016-01-07T01:06:34.000Z | setup.py | 9seconds/fuel-pdsh | f3a25f59bc2e45402f5bb3c26cb044ba19f53814 | [
"MIT"
] | null | null | null | setup.py | 9seconds/fuel-pdsh | f3a25f59bc2e45402f5bb3c26cb044ba19f53814 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import setuptools
try:
import multiprocessing
assert multiprocessing
except ImportError:
pass
setuptools.setup(
setup_requires=["pbr"],
pbr=True)
| 12.764706 | 27 | 0.672811 | 24 | 217 | 6.041667 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 0.207373 | 217 | 16 | 28 | 13.5625 | 0.837209 | 0.193548 | 0 | 0 | 0 | 0 | 0.017341 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | true | 0.111111 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 4 |
97e5b57806dc3cc27a951d6cf925a4dd9dbcebee | 327 | py | Python | imagespace_georgetown/server/settings.py | amirhosf/image_space | f935ad0db2e575473e089ebb2d6a8b74b0353323 | [
"Apache-2.0"
] | null | null | null | imagespace_georgetown/server/settings.py | amirhosf/image_space | f935ad0db2e575473e089ebb2d6a8b74b0353323 | [
"Apache-2.0"
] | null | null | null | imagespace_georgetown/server/settings.py | amirhosf/image_space | f935ad0db2e575473e089ebb2d6a8b74b0353323 | [
"Apache-2.0"
] | null | null | null | from girder.models.setting import Setting
from girder.plugins.imagespace.settings import ImageSpaceSetting
class GeorgetownSetting(ImageSpaceSetting):
requiredSettings = ('IMAGE_SPACE_GEORGETOWN_DOMAIN_DYNAMICS_SEARCH',)
def validateImageSpaceGeorgetownDomainDynamicsSearch(self, doc):
return doc.rstri... | 36.333333 | 73 | 0.816514 | 30 | 327 | 8.733333 | 0.8 | 0.076336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110092 | 327 | 8 | 74 | 40.875 | 0.900344 | 0 | 0 | 0 | 0 | 0 | 0.140673 | 0.137615 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
97ee1b4c561709ef43f2421920a8b503e1bdfcbf | 95 | py | Python | Code/IndicadordeLegibilidadeFlesch/just_a_module.py | DaviNakamuraCardoso/Use-a-Cabeca-Aprenda-a-Programar | d5e83a2c48f184333d16cef9b4d64dce070d0cad | [
"MIT"
] | null | null | null | Code/IndicadordeLegibilidadeFlesch/just_a_module.py | DaviNakamuraCardoso/Use-a-Cabeca-Aprenda-a-Programar | d5e83a2c48f184333d16cef9b4d64dce070d0cad | [
"MIT"
] | null | null | null | Code/IndicadordeLegibilidadeFlesch/just_a_module.py | DaviNakamuraCardoso/Use-a-Cabeca-Aprenda-a-Programar | d5e83a2c48f184333d16cef9b4d64dce070d0cad | [
"MIT"
] | null | null | null | if __name__ == '__main__':
print('Eu sou a main')
else:
print('Sou só um módulo')
| 15.833333 | 29 | 0.578947 | 14 | 95 | 3.357143 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.273684 | 95 | 5 | 30 | 19 | 0.681159 | 0 | 0 | 0 | 0 | 0 | 0.389474 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
58b351b637afe2bbacdc96e8d4d68280b259b84d | 125 | py | Python | exercises/01.python-for-everybody/chapter02/ex01.py | Fabricio-Lopees/computer-science-learning | e8cfcd468f9fdbaa1cacf803d0dade04a99eb19a | [
"MIT"
] | null | null | null | exercises/01.python-for-everybody/chapter02/ex01.py | Fabricio-Lopees/computer-science-learning | e8cfcd468f9fdbaa1cacf803d0dade04a99eb19a | [
"MIT"
] | null | null | null | exercises/01.python-for-everybody/chapter02/ex01.py | Fabricio-Lopees/computer-science-learning | e8cfcd468f9fdbaa1cacf803d0dade04a99eb19a | [
"MIT"
] | null | null | null | # Exercise 1: Type the following statements in the Python interpreter to see what they do: x = 5; x + 1
x = 5;
print(x + 1); | 31.25 | 103 | 0.68 | 24 | 125 | 3.541667 | 0.708333 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0.224 | 125 | 4 | 104 | 31.25 | 0.824742 | 0.808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
58b85e0f4bba2b9dfcf5ed7da97b3215193f105e | 6,000 | py | Python | resources.py | jesselangdon/steamm | 815f0375d9590a5b14e329841c91f95ac51281eb | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2017-10-06T18:10:41.000Z | 2017-10-06T18:10:41.000Z | resources.py | jesselangdon/steamm | 815f0375d9590a5b14e329841c91f95ac51281eb | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2016-03-23T16:28:36.000Z | 2016-03-23T16:43:00.000Z | resources.py | jesselangdon/steamm | 815f0375d9590a5b14e329841c91f95ac51281eb | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: Thu Sep 8 20:48:18 2016
# by: The Resource Compiler for PyQt (Qt v4.8.5)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x04\xaa\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x4... | 49.586777 | 96 | 0.725833 | 1,390 | 6,000 | 3.120144 | 0.21295 | 0.071939 | 0.058105 | 0.022135 | 0.056721 | 0.055338 | 0.055338 | 0.052571 | 0.046345 | 0.04012 | 0 | 0.305035 | 0.030167 | 6,000 | 120 | 97 | 50 | 0.440282 | 0.03 | 0 | 0 | 0 | 0.771429 | 0 | 0 | 0 | 1 | 0.001376 | 0 | 0 | 1 | 0.019048 | false | 0 | 0.009524 | 0 | 0.028571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
45012ad59fb2458ade35176d6816b69003920a37 | 281 | py | Python | mmdet2trt/core/anchor/__init__.py | tehkillerbee/mmdetection-to-tensorrt | b1532465ab1c6617b350981bbda2bc361fe291a6 | [
"Apache-2.0"
] | 496 | 2020-07-16T08:37:02.000Z | 2022-03-31T01:13:45.000Z | mmdet2trt/core/anchor/__init__.py | tehkillerbee/mmdetection-to-tensorrt | b1532465ab1c6617b350981bbda2bc361fe291a6 | [
"Apache-2.0"
] | 98 | 2020-07-30T02:14:41.000Z | 2022-03-21T08:58:12.000Z | mmdet2trt/core/anchor/__init__.py | tehkillerbee/mmdetection-to-tensorrt | b1532465ab1c6617b350981bbda2bc361fe291a6 | [
"Apache-2.0"
] | 80 | 2020-08-06T03:52:11.000Z | 2022-03-23T11:41:46.000Z | from .anchor_generator import AnchorGeneratorWraper, SSDAnchorGeneratorWraper
from .point_generator import MlvlPointGeneratorWraper, PointGeneratorWraper
__all__ = [
'AnchorGeneratorWraper', 'SSDAnchorGeneratorWraper',
'PointGeneratorWraper', 'MlvlPointGeneratorWraper'
]
| 35.125 | 77 | 0.839858 | 17 | 281 | 13.529412 | 0.588235 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096085 | 281 | 7 | 78 | 40.142857 | 0.905512 | 0 | 0 | 0 | 0 | 0 | 0.316726 | 0.245552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 |
451e5a51b33f65e0d4549ed04c8b344cad1bae16 | 18 | py | Python | openai/version.py | frankcarey/openai-python | d53d9efbb93ff18443a85bea8dbae8f846bef837 | [
"MIT"
] | null | null | null | openai/version.py | frankcarey/openai-python | d53d9efbb93ff18443a85bea8dbae8f846bef837 | [
"MIT"
] | 1 | 2020-09-11T15:26:06.000Z | 2020-09-11T15:26:06.000Z | openai/version.py | frankcarey/openai-python | d53d9efbb93ff18443a85bea8dbae8f846bef837 | [
"MIT"
] | 1 | 2021-06-12T20:52:24.000Z | 2021-06-12T20:52:24.000Z | VERSION = "0.6.4"
| 9 | 17 | 0.555556 | 4 | 18 | 2.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.166667 | 18 | 1 | 18 | 18 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0.277778 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4533857962e9f907a6cf7bc0c5393e3adc458508 | 3,400 | py | Python | base/dependency/dependency_table.py | btc-ag/revengtools | d58680ef7d6bdc8ef518860d5d13a5acc0d01758 | [
"Apache-2.0"
] | 2 | 2019-07-15T14:59:59.000Z | 2022-01-18T14:23:54.000Z | base/dependency/dependency_table.py | btc-ag/revengtools | d58680ef7d6bdc8ef518860d5d13a5acc0d01758 | [
"Apache-2.0"
] | 10 | 2018-05-03T13:25:07.000Z | 2021-06-25T15:14:55.000Z | base/dependency/dependency_table.py | btc-ag/revengtools | d58680ef7d6bdc8ef518860d5d13a5acc0d01758 | [
"Apache-2.0"
] | 1 | 2018-05-02T13:59:27.000Z | 2018-05-02T13:59:27.000Z | # -*- coding: UTF-8 -*-
'''
Created on 26.10.2010
@author: SIGIESEC
'''
from commons.document.basic_if import Link
from commons.document.table_if import TableModel
from commons.graph.attrgraph_if import EdgeAttributes
from commons.graph.attrgraph_util import AttributedEdge
from commons.graph.graph_if import BasicGraph... | 35.789474 | 113 | 0.682353 | 393 | 3,400 | 5.493639 | 0.234097 | 0.03057 | 0.044002 | 0.023159 | 0.243631 | 0.154701 | 0.103752 | 0.038907 | 0.038907 | 0 | 0 | 0.003442 | 0.230882 | 3,400 | 94 | 114 | 36.170213 | 0.82218 | 0.024118 | 0 | 0.25 | 0 | 0 | 0.027199 | 0 | 0 | 0 | 0 | 0.010638 | 0.058824 | 1 | 0.235294 | false | 0 | 0.088235 | 0.132353 | 0.573529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
4537675ec2be3bae418c373508d8331180072ff9 | 336 | py | Python | src/dizest/res/websrc/routes/xfms3sviarde1641909863/controller.py | season-framework/dizest | 2b36300e84dccb437535d76b294b2053e5ac00e6 | [
"MIT"
] | 2 | 2022-01-18T02:38:19.000Z | 2022-01-18T04:26:03.000Z | src/dizest/res/websrc/routes/xfms3sviarde1641909863/controller.py | season-framework/dizest | 2b36300e84dccb437535d76b294b2053e5ac00e6 | [
"MIT"
] | null | null | null | src/dizest/res/websrc/routes/xfms3sviarde1641909863/controller.py | season-framework/dizest | 2b36300e84dccb437535d76b294b2053e5ac00e6 | [
"MIT"
] | null | null | null | wiz.response.render('/auth/login', "page.signin")
wiz.response.render('/auth/join', "page.signup")
if wiz.match("/auth/logout") is not None:
if wiz.session.has("id"):
wiz.session.clear()
wiz.response.redirect("/auth/login")
if wiz.session.has("id"):
wiz.response.redirect("/")
wiz.response.redirec... | 28 | 49 | 0.666667 | 48 | 336 | 4.666667 | 0.416667 | 0.245536 | 0.254464 | 0.1875 | 0.428571 | 0.178571 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116071 | 336 | 12 | 50 | 28 | 0.754209 | 0 | 0 | 0.444444 | 0 | 0 | 0.243323 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
453d2ba96297e40a6c9ca4f689a3d29e560b0894 | 234 | py | Python | edc/stock_index.py | momantang/cobrass | f11435d4836aa29078a3cd4beb4ca88967300c84 | [
"Apache-2.0"
] | 1 | 2019-05-28T05:54:42.000Z | 2019-05-28T05:54:42.000Z | edc/stock_index.py | momantang/cobrass | f11435d4836aa29078a3cd4beb4ca88967300c84 | [
"Apache-2.0"
] | null | null | null | edc/stock_index.py | momantang/cobrass | f11435d4836aa29078a3cd4beb4ca88967300c84 | [
"Apache-2.0"
] | 1 | 2021-09-08T17:39:58.000Z | 2021-09-08T17:39:58.000Z | # -*- encoding:utf-8 -*-
"""
股票指数类
"""
import numpy as np
import pandas as pd
import tushare as ts
__author__ = 'momantang'
__initDate__ = '2018年10月04日'
def get_lastest_index():
"""
获取最新指数
:return:
"""
pass
| 12.315789 | 28 | 0.611111 | 27 | 234 | 4.925926 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051429 | 0.252137 | 234 | 18 | 29 | 13 | 0.708571 | 0.192308 | 0 | 0 | 0 | 0 | 0.126582 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.428571 | 0 | 0.571429 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
189dfb71e05a34269dde8b72b316c1ffb9538391 | 204 | py | Python | 01/sol1.py | aeolyus/AdventOfCode2018 | 1f6d3b9f824531272592076412ec6f2b5431ebb5 | [
"MIT"
] | null | null | null | 01/sol1.py | aeolyus/AdventOfCode2018 | 1f6d3b9f824531272592076412ec6f2b5431ebb5 | [
"MIT"
] | null | null | null | 01/sol1.py | aeolyus/AdventOfCode2018 | 1f6d3b9f824531272592076412ec6f2b5431ebb5 | [
"MIT"
] | null | null | null | with open('input') as f:
lines = f.readlines()
count = 0
for l in lines:
if l[0] == '+':
count += int(l[1:])
else:
count -= int(l[1:])
print(count)
| 20.4 | 31 | 0.421569 | 28 | 204 | 3.071429 | 0.607143 | 0.186047 | 0.209302 | 0.232558 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.401961 | 204 | 9 | 32 | 22.666667 | 0.672131 | 0 | 0 | 0 | 0 | 0 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
18b1f1eff4525d741b40a262ccb6e9d05363c10c | 157 | py | Python | lib/JumpScale/baselib/remote/avahi/__init__.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | null | null | null | lib/JumpScale/baselib/remote/avahi/__init__.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | 4 | 2016-08-25T12:08:39.000Z | 2018-04-12T12:36:01.000Z | lib/JumpScale/baselib/remote/avahi/__init__.py | rudecs/jumpscale_core7 | 30c03f26f1cdad3edbb9d79d50fbada8acc974f5 | [
"Apache-2.0"
] | 3 | 2016-03-08T07:49:34.000Z | 2018-10-19T13:56:43.000Z | from JumpScale import j
def cb():
from .Avahi import Avahi
return Avahi()
j.base.loader.makeAvailable(j, 'remote')
j.remote._register('avahi', cb)
| 17.444444 | 40 | 0.700637 | 23 | 157 | 4.73913 | 0.565217 | 0.12844 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165605 | 157 | 8 | 41 | 19.625 | 0.832061 | 0 | 0 | 0 | 0 | 0 | 0.070064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
18c7ffa71628b75b71a32eb1076d04dc95f15ce9 | 122 | py | Python | rain/complaints/admin.py | akbernamazi/Safer_Cities | e1043d3e04ae38ad7395f441e0bb6ba5b87d8291 | [
"MIT"
] | null | null | null | rain/complaints/admin.py | akbernamazi/Safer_Cities | e1043d3e04ae38ad7395f441e0bb6ba5b87d8291 | [
"MIT"
] | null | null | null | rain/complaints/admin.py | akbernamazi/Safer_Cities | e1043d3e04ae38ad7395f441e0bb6ba5b87d8291 | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import Complaint
# Register your models here.
admin.site.register(Complaint) | 30.5 | 32 | 0.827869 | 17 | 122 | 5.941176 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106557 | 122 | 4 | 33 | 30.5 | 0.926606 | 0.213115 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
18d6fce8916658ba15c6a1fe4aac1a3f4e45bfba | 50 | py | Python | experiments/semantic_segmentation/ss/data/__init__.py | meder411/Tangent-Images | 6def4d7b8797110e54f7faa2435973771d9e9722 | [
"BSD-3-Clause"
] | 57 | 2019-12-20T09:28:29.000Z | 2022-03-28T02:38:48.000Z | experiments/semantic_segmentation/ss/data/__init__.py | meder411/Tangent-Images | 6def4d7b8797110e54f7faa2435973771d9e9722 | [
"BSD-3-Clause"
] | 6 | 2020-06-06T16:39:35.000Z | 2021-01-21T01:19:52.000Z | experiments/semantic_segmentation/ss/data/__init__.py | meder411/Tangent-Images | 6def4d7b8797110e54f7faa2435973771d9e9722 | [
"BSD-3-Clause"
] | 16 | 2019-12-21T08:19:33.000Z | 2022-03-28T02:38:49.000Z | from .build import build_dataset, build_dataloader | 50 | 50 | 0.88 | 7 | 50 | 6 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08 | 50 | 1 | 50 | 50 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
18d9eacc32d318413c3b4898d8e6e3bef7270cc1 | 440 | py | Python | workdir/classes/config.py | quantum13/mlbootcamp7 | 6eb2d022c634cdc2c6ebd40fb655f13244e5a1c9 | [
"MIT"
] | null | null | null | workdir/classes/config.py | quantum13/mlbootcamp7 | 6eb2d022c634cdc2c6ebd40fb655f13244e5a1c9 | [
"MIT"
] | null | null | null | workdir/classes/config.py | quantum13/mlbootcamp7 | 6eb2d022c634cdc2c6ebd40fb655f13244e5a1c9 | [
"MIT"
] | null | null | null | from qml import config
config.QML_DATA_DIR = '/data/ml/telecom/workdir/data/'
config.QML_DB_CONN_STRING = 'postgresql://postgres:rootpassword@localhost/telecom'
config.QML_TRAIN_X_FILE_MASK = 'workdir/data/v{0:0=4d}_train_x.csv'
config.QML_TRAIN_Y_FILE_MASK = 'workdir/data/train_y.csv'
config.QML_TEST_X_FILE_MASK = '... | 31.428571 | 82 | 0.788636 | 79 | 440 | 4.025316 | 0.417722 | 0.226415 | 0.141509 | 0.179245 | 0.157233 | 0.157233 | 0.157233 | 0.157233 | 0.157233 | 0 | 0 | 0.017157 | 0.072727 | 440 | 13 | 83 | 33.846154 | 0.762255 | 0 | 0 | 0 | 0 | 0 | 0.411364 | 0.393182 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.111111 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
18e254c9cd4991c19254a53ccb58f7c157a86be1 | 19 | py | Python | data/studio21_generated/introductory/3362/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3362/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/3362/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def sum_mix(arr):
| 9.5 | 17 | 0.684211 | 4 | 19 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 2 | 18 | 9.5 | 0.75 | 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 |
18e5df3e22b06f1ac032bac659e1f917b037c629 | 3,841 | py | Python | tmdb/three/account.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 4 | 2017-05-16T02:30:52.000Z | 2021-07-01T13:21:27.000Z | tmdb/three/account.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 4 | 2020-09-03T03:19:49.000Z | 2021-12-21T05:24:04.000Z | tmdb/three/account.py | Cologler/ezapi-tmdb | 6a8a1a0a3da99cb18d11f47f1b40bbffb2a16be6 | [
"MIT"
] | 3 | 2021-02-15T18:13:08.000Z | 2021-04-10T03:53:58.000Z | from .base import ENDPOINT, any_required_kwargs, process_response
class AccountMixin:
@any_required_kwargs(["session_id"])
@process_response
def get_account_details(self, **kwargs):
"""
GET /account
"""
url = f"{ENDPOINT}/3/account"
return self.make_request("GET", ... | 30.975806 | 86 | 0.618849 | 450 | 3,841 | 4.993333 | 0.095556 | 0.12016 | 0.142412 | 0.11749 | 0.896751 | 0.864709 | 0.857588 | 0.81887 | 0.676903 | 0.502003 | 0 | 0.003767 | 0.239781 | 3,841 | 123 | 87 | 31.227642 | 0.765753 | 0.103359 | 0 | 0.58209 | 0 | 0 | 0.210345 | 0.142006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.164179 | false | 0 | 0.014925 | 0 | 0.358209 | 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 |
e15849f204e5802e9d60d6a7f9047cdec143f3ce | 495 | py | Python | __init__.py | zhongguohb2018/dytt_spider88 | c85c14f5d274cfe585ecb9efa06e69446ea8d354 | [
"Apache-2.0"
] | null | null | null | __init__.py | zhongguohb2018/dytt_spider88 | c85c14f5d274cfe585ecb9efa06e69446ea8d354 | [
"Apache-2.0"
] | null | null | null | __init__.py | zhongguohb2018/dytt_spider88 | c85c14f5d274cfe585ecb9efa06e69446ea8d354 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import logging
import getpass
import datetime,time
import os,sys,platform
if str(platform.python_version()).startswith("3"):
from importlib import reload
reload(sys)
else:
reload(sys)
sys.setdefaultencoding('utf8')
print("init OK!")
import FileOpt as FileOpt
im... | 19.038462 | 50 | 0.765657 | 72 | 495 | 5.25 | 0.527778 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007109 | 0.147475 | 495 | 25 | 51 | 19.8 | 0.888626 | 0.084848 | 0 | 0.105263 | 0 | 0 | 0.028889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.052632 | 0.684211 | 0 | 0.684211 | 0.052632 | 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 |
e15cf6a23e869ae4d14f9253dadf2c15ab57c638 | 19 | py | Python | data/studio21_generated/introductory/2819/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/2819/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | data/studio21_generated/introductory/2819/starter_code.py | vijaykumawat256/Prompt-Summarization | 614f5911e2acd2933440d909de2b4f86653dc214 | [
"Apache-2.0"
] | null | null | null | def fibonacci(n):
| 9.5 | 17 | 0.684211 | 3 | 19 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 19 | 2 | 18 | 9.5 | 0.8125 | 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 |
e18c31455743f43bd1e3ac5f1d5c251454aff0f6 | 239 | py | Python | test/determinism/rule.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 77 | 2018-07-01T15:55:34.000Z | 2022-03-30T09:16:54.000Z | test/determinism/rule.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 116 | 2021-05-29T16:32:51.000Z | 2021-08-13T16:05:29.000Z | test/determinism/rule.py | chlorm-forks/gyp | a8921fcaab1a18c8cf7e4ab09ceb940e336918ec | [
"BSD-3-Clause"
] | 53 | 2018-04-13T12:06:06.000Z | 2022-03-25T13:54:38.000Z | #!/usr/bin/env python
# Copyright (c) 2017 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from __future__ import print_function
print('Hello World')
| 26.555556 | 72 | 0.757322 | 40 | 239 | 4.4 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020101 | 0.167364 | 239 | 8 | 73 | 29.875 | 0.864322 | 0.711297 | 0 | 0 | 0 | 0 | 0.169231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
e199fad608a1422b2b669719c466a97401e1c23d | 264 | py | Python | spacy/fr/language_data.py | yuukos/spaCy | e4125383ed7221910ea955eae9b623c02bda64d8 | [
"MIT"
] | 1 | 2017-11-18T08:53:26.000Z | 2017-11-18T08:53:26.000Z | spacy/fr/language_data.py | yuukos/spaCy | e4125383ed7221910ea955eae9b623c02bda64d8 | [
"MIT"
] | null | null | null | spacy/fr/language_data.py | yuukos/spaCy | e4125383ed7221910ea955eae9b623c02bda64d8 | [
"MIT"
] | 1 | 2018-08-25T03:09:50.000Z | 2018-08-25T03:09:50.000Z | # coding: utf8
from __future__ import unicode_literals
from .stop_words import STOP_WORDS
from .tokenizer_exceptions import get_tokenizer_exceptions, TOKEN_MATCH
STOP_WORDS = set(STOP_WORDS)
__all__ = ["STOP_WORDS", "get_tokenizer_exceptions", "TOKEN_MATCH"]
| 22 | 71 | 0.818182 | 35 | 264 | 5.571429 | 0.457143 | 0.230769 | 0.225641 | 0.276923 | 0.328205 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004255 | 0.109848 | 264 | 11 | 72 | 24 | 0.825532 | 0.045455 | 0 | 0 | 0 | 0 | 0.18 | 0.096 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e19bad3dacd27d078b17ecfb14f48685e7826994 | 231 | py | Python | app/src/main/python/test.py | csuchenhao/thesis_code | e97de7ddccb59f57e8358d2bd3c280e79fdfdb02 | [
"MIT"
] | null | null | null | app/src/main/python/test.py | csuchenhao/thesis_code | e97de7ddccb59f57e8358d2bd3c280e79fdfdb02 | [
"MIT"
] | null | null | null | app/src/main/python/test.py | csuchenhao/thesis_code | e97de7ddccb59f57e8358d2bd3c280e79fdfdb02 | [
"MIT"
] | null | null | null | def add(a):
return len(a)
# from tsfresh.feature_extraction.feature_calculators import cid_ce
# import pandas as pd
# def add(a, b):
# data = pd.Series([1, 2, 3, 4, 5, 6, 7, 8])
# data = cid_ce(data, True)
# return data
| 21 | 67 | 0.645022 | 41 | 231 | 3.536585 | 0.682927 | 0.082759 | 0.096552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043716 | 0.207792 | 231 | 10 | 68 | 23.1 | 0.748634 | 0.805195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
e1bcbfc5b149a16b6967aefa260add7700df1168 | 2,843 | py | Python | spark/generateRunCommands.py | kaggour/PARAslice | 9e016ee0d3ad5f2542656205787dd10c01105562 | [
"BSD-2-Clause"
] | null | null | null | spark/generateRunCommands.py | kaggour/PARAslice | 9e016ee0d3ad5f2542656205787dd10c01105562 | [
"BSD-2-Clause"
] | 1 | 2021-12-12T09:27:06.000Z | 2021-12-12T09:27:06.000Z | spark/generateRunCommands.py | kaggour/PARAslice | 9e016ee0d3ad5f2542656205787dd10c01105562 | [
"BSD-2-Clause"
] | null | null | null | #####################################################################
#####################################################################
#
# Generate run commands to test PARAslice-Spark
#
# Kareem S. Aggour <aggour@ge.com>
#
#####################################################################
##################... | 32.306818 | 465 | 0.51917 | 436 | 2,843 | 3.316514 | 0.279817 | 0.152144 | 0.165975 | 0.179806 | 0.27455 | 0.27455 | 0.248271 | 0.224758 | 0 | 0 | 0 | 0.171467 | 0.20612 | 2,843 | 87 | 466 | 32.678161 | 0.469207 | 0.488217 | 0 | 0.1 | 1 | 0 | 0.142358 | 0.020087 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
e1c095ac481dba8409465493c2298e071f692971 | 150 | py | Python | manage.py | anddrom/speed_search | 004d9c4c687063a496b8b45c68e640dd99061263 | [
"MIT"
] | null | null | null | manage.py | anddrom/speed_search | 004d9c4c687063a496b8b45c68e640dd99061263 | [
"MIT"
] | null | null | null | manage.py | anddrom/speed_search | 004d9c4c687063a496b8b45c68e640dd99061263 | [
"MIT"
] | null | null | null | import os
from app import create_app
flask_app, auth0 = create_app()
if __name__ == '__main__':
flask_app.run(debug = True, host = "0.0.0.0")
| 15 | 49 | 0.68 | 25 | 150 | 3.6 | 0.6 | 0.066667 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040984 | 0.186667 | 150 | 9 | 50 | 16.666667 | 0.696721 | 0 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e1ced2c9b026760844bd426924b0ac75668c19bc | 11,248 | py | Python | tests/test_sprites.py | Karagusto/Game_ppg | f5f7eccaf46495e3872b94aba8df56abab83b622 | [
"Artistic-2.0"
] | 1 | 2018-07-30T15:05:45.000Z | 2018-07-30T15:05:45.000Z | tests/test_sprites.py | jamesBrosnahan/pursuedpybear | 8e5498b66de71c1fbe62f869d50803e22860b6f8 | [
"Artistic-2.0"
] | null | null | null | tests/test_sprites.py | jamesBrosnahan/pursuedpybear | 8e5498b66de71c1fbe62f869d50803e22860b6f8 | [
"Artistic-2.0"
] | null | null | null | from unittest import TestCase
from unittest.mock import patch
from ppb import BaseSprite, Vector
from ppb.sprites import Rotatable
class TestBaseSprite(TestCase):
def setUp(self):
self.sprite = BaseSprite()
self.wide_sprite = BaseSprite(size=2, pos=(2, 2))
def test_pos(self):
self.a... | 32.697674 | 94 | 0.649093 | 1,524 | 11,248 | 4.732283 | 0.067585 | 0.191348 | 0.21076 | 0.259983 | 0.788547 | 0.775929 | 0.67249 | 0.456184 | 0.283833 | 0.277732 | 0 | 0.038344 | 0.211682 | 11,248 | 343 | 95 | 32.793003 | 0.775008 | 0.02107 | 0 | 0.184211 | 0 | 0 | 0.00828 | 0 | 0 | 0 | 0 | 0 | 0.52193 | 1 | 0.153509 | false | 0.004386 | 0.017544 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bed4aa63dac93c9ca77b64d60b034e760fda0ef7 | 899 | py | Python | files.py | dandeduck/youtube-withdrawal | c4292098785123ce718029b9ac96db610ecaf51c | [
"MIT"
] | 2 | 2021-01-04T21:06:49.000Z | 2021-01-07T16:56:10.000Z | files.py | dandeduck/youtube-withdrawal | c4292098785123ce718029b9ac96db610ecaf51c | [
"MIT"
] | 1 | 2021-01-04T18:10:17.000Z | 2021-01-04T20:51:51.000Z | files.py | dandeduck/youtube-withdrawal | c4292098785123ce718029b9ac96db610ecaf51c | [
"MIT"
] | null | null | null | class File:
def directory(self) -> str:
pass
def name(self) -> str:
pass
def extension(self) -> str:
pass
def path(self):
return self.directory() + self.name() + self.extension()
class FileBase(File):
directoryStr = ''
nameStr = ''
extensionStr = ''
... | 21.404762 | 64 | 0.606229 | 95 | 899 | 5.526316 | 0.221053 | 0.08 | 0.062857 | 0.08 | 0.251429 | 0.205714 | 0.205714 | 0.205714 | 0.205714 | 0.205714 | 0 | 0.003063 | 0.273637 | 899 | 42 | 65 | 21.404762 | 0.800919 | 0 | 0 | 0.37931 | 0 | 0 | 0.008889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.344828 | false | 0.103448 | 0 | 0.137931 | 0.724138 | 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 |
bed88c3911d30a77acaf9ebf15ebfa7b5cdcd655 | 139 | py | Python | docker/gdap_scratch.pl.py | folkengine/squealing-octo-meow | 9e02333b1790bd88bcf88b6524dbb1ab45ee2ebd | [
"MIT"
] | 2 | 2015-10-14T11:45:50.000Z | 2017-05-23T18:08:48.000Z | docker/gdap_scratch.pl.py | folkengine/squealing-octo-meow | 9e02333b1790bd88bcf88b6524dbb1ab45ee2ebd | [
"MIT"
] | null | null | null | docker/gdap_scratch.pl.py | folkengine/squealing-octo-meow | 9e02333b1790bd88bcf88b6524dbb1ab45ee2ebd | [
"MIT"
] | null | null | null | from urllib.request import urlopen
csv = urlopen("http://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/1.0_week.csv")
print(csv.read()) | 46.333333 | 86 | 0.776978 | 23 | 139 | 4.652174 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.05036 | 139 | 3 | 87 | 46.333333 | 0.780303 | 0 | 0 | 0 | 0 | 0.333333 | 0.492857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
beefe69384b79a4ae948e47213a6df49c2e370f5 | 907 | py | Python | src/scripts/clean_primer.py | pflans/edge | d84de02bd9b334212b7405ecc4e68d3a209add99 | [
"MIT"
] | 32 | 2017-05-15T06:03:46.000Z | 2022-02-18T08:30:19.000Z | src/scripts/clean_primer.py | pflans/edge | d84de02bd9b334212b7405ecc4e68d3a209add99 | [
"MIT"
] | 36 | 2017-05-11T01:29:14.000Z | 2022-02-10T07:31:24.000Z | src/scripts/clean_primer.py | pflans/edge | d84de02bd9b334212b7405ecc4e68d3a209add99 | [
"MIT"
] | 4 | 2017-09-19T18:10:45.000Z | 2019-11-29T03:38:08.000Z | # flake8: noqa
# takes two sequences, strips whitespaces away, computes reverse
# complement sequence of second primer
a = "A T G A C A A G C G A A C C A G A G T T T C A G C A G G C T T A C G A T G A G A T C G T T T C T T C T G T G G A G G A T T C C A A A A T T T T T G A A A A A T T C C C A C A G T A T A A A A A A G T... | 53.352941 | 325 | 0.549063 | 364 | 907 | 1.365385 | 0.082418 | 0.156942 | 0.102616 | 0.072435 | 0.44668 | 0.171026 | 0 | 0 | 0 | 0 | 0 | 0.001852 | 0.404631 | 907 | 16 | 326 | 56.6875 | 0.918519 | 0.123484 | 0 | 0 | 0 | 0.25 | 0.811631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.25 | null | null | 0.25 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
bef1b7755232899c504dd2cfb8d56bcf1fddf93a | 299 | py | Python | modules/file_processor.py | black-cape/cast-iron-recipe-postgres | bbb4b80ad458a4e40650b86849483b003c0c5ee1 | [
"MIT"
] | 1 | 2021-04-28T21:33:01.000Z | 2021-04-28T21:33:01.000Z | modules/file_processor.py | black-cape/cast-iron-recipes | bbb4b80ad458a4e40650b86849483b003c0c5ee1 | [
"MIT"
] | 2 | 2021-04-29T14:27:04.000Z | 2021-04-29T14:27:24.000Z | modules/file_processor.py | black-cape/cast-iron-recipes | bbb4b80ad458a4e40650b86849483b003c0c5ee1 | [
"MIT"
] | null | null | null | """Example File Processor"""
import base64
import uuid
def process_file_stub(data: str, **kwargs):
"""A do-nothing-method to use as an example for the Python process config"""
print(f'External File Processor received the data file {data} and the named arguments {kwargs}. Doing nothing.')
| 33.222222 | 116 | 0.735786 | 45 | 299 | 4.844444 | 0.711111 | 0.119266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007968 | 0.160535 | 299 | 8 | 117 | 37.375 | 0.860558 | 0.311037 | 0 | 0 | 0 | 0 | 0.523077 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0 | 0.75 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
831c18feab5b13fb1076282950f1497f35103d1b | 146 | py | Python | tests/basic.py | konstantint/eio-userdb | bf0b4e9b2ef323d60aa5fc0bf40000c8cfa0423a | [
"MIT"
] | null | null | null | tests/basic.py | konstantint/eio-userdb | bf0b4e9b2ef323d60aa5fc0bf40000c8cfa0423a | [
"MIT"
] | 4 | 2021-11-28T23:06:49.000Z | 2021-11-28T23:07:02.000Z | tests/basic.py | e-i-o/eio-userdb | bf0b4e9b2ef323d60aa5fc0bf40000c8cfa0423a | [
"MIT"
] | 2 | 2019-10-14T13:39:14.000Z | 2019-12-05T21:59:19.000Z |
def test_smoke(client):
r = client.get('/', follow_redirects=True)
assert r.status_code == 200
assert 'Registreerimisvorm' in r.data
| 24.333333 | 46 | 0.691781 | 20 | 146 | 4.9 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02521 | 0.184932 | 146 | 5 | 47 | 29.2 | 0.798319 | 0 | 0 | 0 | 0 | 0 | 0.131034 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
83455ad2c8cfcded4831a092470a67b1766ea59f | 60 | py | Python | deepatari/envs/__init__.py | cowhi/deepatari | 3b676ca4fc66266d766cd2366226f3e10213bc78 | [
"MIT"
] | 10 | 2016-06-10T01:13:44.000Z | 2017-10-15T10:47:09.000Z | deepatari/envs/__init__.py | cowhi/deepatari | 3b676ca4fc66266d766cd2366226f3e10213bc78 | [
"MIT"
] | null | null | null | deepatari/envs/__init__.py | cowhi/deepatari | 3b676ca4fc66266d766cd2366226f3e10213bc78 | [
"MIT"
] | 2 | 2016-06-10T14:38:08.000Z | 2020-08-29T03:11:06.000Z | from .env import Environment
from .atarienv import AtariEnv
| 20 | 30 | 0.833333 | 8 | 60 | 6.25 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 60 | 2 | 31 | 30 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
55c54018cc5c1a3ada93bad13f9aca49977ba6f6 | 541 | py | Python | back/user/migrations/0005_auto_20210807_2256.py | yeezy-na-izi/.shSkill | 54608cd89ddc90377d190104115debc702d9aa1b | [
"Apache-2.0"
] | null | null | null | back/user/migrations/0005_auto_20210807_2256.py | yeezy-na-izi/.shSkill | 54608cd89ddc90377d190104115debc702d9aa1b | [
"Apache-2.0"
] | null | null | null | back/user/migrations/0005_auto_20210807_2256.py | yeezy-na-izi/.shSkill | 54608cd89ddc90377d190104115debc702d9aa1b | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.6 on 2021-08-07 22:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0004_auto_20210807_2256'),
]
operations = [
migrations.RemoveField(
model_name='account',
name='coordinator',
... | 20.807692 | 47 | 0.545287 | 49 | 541 | 5.897959 | 0.653061 | 0.217993 | 0.269896 | 0.311419 | 0.425606 | 0.425606 | 0 | 0 | 0 | 0 | 0 | 0.087079 | 0.341959 | 541 | 25 | 48 | 21.64 | 0.724719 | 0.083179 | 0 | 0.473684 | 1 | 0 | 0.147773 | 0.046559 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.210526 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
55c6201a484b3adab42ab22f69aebbe81b235556 | 332 | py | Python | test.py | maups/conceptnet-pytools | a5811eb5beb1ba6c7f29a924be602cbaf94d8558 | [
"MIT"
] | 1 | 2021-03-25T18:19:55.000Z | 2021-03-25T18:19:55.000Z | test.py | maups/conceptnet-pytools | a5811eb5beb1ba6c7f29a924be602cbaf94d8558 | [
"MIT"
] | null | null | null | test.py | maups/conceptnet-pytools | a5811eb5beb1ba6c7f29a924be602cbaf94d8558 | [
"MIT"
] | null | null | null | from conceptnet import ConceptNet
cnet = ConceptNet()
print(cnet.get_embedding('headset'))
print(cnet.query_concept('headset'))
print(cnet.query_concept('headset', directed=True))
print(cnet.query_edge('hand', 'arm'))
print(cnet.query_edge('hand', 'arm', directed=True))
print(cnet.query_edge('arm', 'hand', direc... | 19.529412 | 52 | 0.737952 | 45 | 332 | 5.311111 | 0.333333 | 0.225941 | 0.292887 | 0.225941 | 0.648536 | 0.648536 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081325 | 332 | 16 | 53 | 20.75 | 0.783607 | 0 | 0 | 0 | 0 | 0 | 0.126888 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.75 | 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 |
55de1a263716c16d6f09d845d028f06436fd733a | 1,270 | py | Python | bann/b_container/errors/custom_erors.py | arturOnRails/BANN | 027af04349304941fb73c2ede502aca4b76f1ad1 | [
"MIT"
] | null | null | null | bann/b_container/errors/custom_erors.py | arturOnRails/BANN | 027af04349304941fb73c2ede502aca4b76f1ad1 | [
"MIT"
] | null | null | null | bann/b_container/errors/custom_erors.py | arturOnRails/BANN | 027af04349304941fb73c2ede502aca4b76f1ad1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
""".. moduleauthor:: Artur Lissin"""
from typing import final
from pan.public.errors.custom_errors import KnownErrorPubPan
class KnownErrorContainer(KnownErrorPubPan):
pass
@final
class KnownCheckComError(KnownErrorContainer):
pass
@final
class KnownExtendError(KnownErrorContainer... | 14.111111 | 60 | 0.782677 | 102 | 1,270 | 9.735294 | 0.333333 | 0.145015 | 0.225579 | 0.498489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000923 | 0.147244 | 1,270 | 89 | 61 | 14.269663 | 0.915974 | 0.041732 | 0 | 0.634615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.326923 | 0.038462 | 0 | 0.365385 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
3609b99a9594064b28846f022a7229e0f419381d | 252 | py | Python | PSA/psaExceptions.py | SECURED-FP7/secured-psa-antiphishing | d1e93d3cb335a3121c39e4f47ddf4c2dccd7a533 | [
"Apache-2.0"
] | null | null | null | PSA/psaExceptions.py | SECURED-FP7/secured-psa-antiphishing | d1e93d3cb335a3121c39e4f47ddf4c2dccd7a533 | [
"Apache-2.0"
] | null | null | null | PSA/psaExceptions.py | SECURED-FP7/secured-psa-antiphishing | d1e93d3cb335a3121c39e4f47ddf4c2dccd7a533 | [
"Apache-2.0"
] | null | null | null | #
# File: psaExceptions.py
# Created: 05/09/2014
# Author: Francesco Ciaccia
#
# Description:
# Custom execption class to manage error in the PSC
#
class psaExceptions():
class confRetrievalFailed(Exception):
pass | 19.384615 | 57 | 0.646825 | 26 | 252 | 6.269231 | 0.884615 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.269841 | 252 | 13 | 58 | 19.384615 | 0.842391 | 0.630952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.