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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
569110a415575921932446126bc93279bff0b696 | 711 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/raw/EGL/KHR/config_attribs.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/raw/EGL/KHR/config_attribs.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/raw/EGL/KHR/config_attribs.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.EGL import _types as _cs
# End users want this...
from OpenGL.raw.EGL._types import *
from OpenGL.raw.EGL import _errors
from OpenGL.constant import Constant as _C
import ctype... | 39.5 | 117 | 0.825598 | 115 | 711 | 4.66087 | 0.46087 | 0.093284 | 0.072761 | 0.089552 | 0.324627 | 0.19403 | 0.093284 | 0 | 0 | 0 | 0 | 0.02322 | 0.091421 | 711 | 17 | 118 | 41.823529 | 0.806502 | 0.140647 | 0 | 0 | 1 | 0 | 0.207297 | 0.177446 | 0 | 0 | 0.029851 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.5 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
3b16dfaefa212ec75a136bfe4f1c357d0d91a15a | 52 | py | Python | run.py | will-santos/pump | fce4e5201c062f5363999e112d62a532824f4156 | [
"BSD-3-Clause"
] | null | null | null | run.py | will-santos/pump | fce4e5201c062f5363999e112d62a532824f4156 | [
"BSD-3-Clause"
] | null | null | null | run.py | will-santos/pump | fce4e5201c062f5363999e112d62a532824f4156 | [
"BSD-3-Clause"
] | null | null | null | __author__ = 'will'
from pump import app
app.run() | 10.4 | 20 | 0.711538 | 8 | 52 | 4.125 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173077 | 52 | 5 | 21 | 10.4 | 0.767442 | 0 | 0 | 0 | 0 | 0 | 0.075472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3b617accf689326ac7d2aa5867f93a77c3a17539 | 1,866 | py | Python | src/grokcore/xmlrpc/tests/functional/xmlrpc/require.py | zopefoundation/grokcore.xmlrpc | 5f7e3e4802d564f846c32f962f8f5a28aee77c44 | [
"ZPL-2.1"
] | null | null | null | src/grokcore/xmlrpc/tests/functional/xmlrpc/require.py | zopefoundation/grokcore.xmlrpc | 5f7e3e4802d564f846c32f962f8f5a28aee77c44 | [
"ZPL-2.1"
] | 1 | 2021-01-18T12:51:51.000Z | 2021-01-18T12:51:51.000Z | src/grokcore/xmlrpc/tests/functional/xmlrpc/require.py | zopefoundation/grokcore.xmlrpc | 5f7e3e4802d564f846c32f962f8f5a28aee77c44 | [
"ZPL-2.1"
] | 1 | 2018-01-12T06:53:46.000Z | 2018-01-12T06:53:46.000Z | """
>>> from zope.app.wsgi.testlayer import XMLRPCServerProxy
>>> server = XMLRPCServerProxy("http://localhost/", transport=transport)
>>> mgr_server = XMLRPCServerProxy("http://mgr:mgrpw@localhost/", transport=transport)
We can access a public method just fine, but a protected method will
raise Unauthorized:
... | 27.441176 | 88 | 0.71329 | 232 | 1,866 | 5.724138 | 0.400862 | 0.072289 | 0.069277 | 0.060994 | 0.323795 | 0.323795 | 0.222892 | 0.222892 | 0.143072 | 0.143072 | 0 | 0.009665 | 0.168274 | 1,866 | 67 | 89 | 27.850746 | 0.846005 | 0.571811 | 0 | 0.090909 | 0 | 0 | 0.169835 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.227273 | false | 0 | 0.181818 | 0.227273 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3b7076d23060ad678a96f0439fdc54e88fc4bfc4 | 1,894 | py | Python | src/brainy/flags.py | pelkmanslab/brainy | eb088be9585734c66be5d6ef0b7127a923f4066c | [
"MIT"
] | null | null | null | src/brainy/flags.py | pelkmanslab/brainy | eb088be9585734c66be5d6ef0b7127a923f4066c | [
"MIT"
] | null | null | null | src/brainy/flags.py | pelkmanslab/brainy | eb088be9585734c66be5d6ef0b7127a923f4066c | [
"MIT"
] | null | null | null | import os
from sh import touch
class FlagManager(object):
def _get_flag_prefix(self):
raise NotImplemented()
@property
def is_complete(self):
return os.path.exists('%s.complete' % self._get_flag_prefix())
@property
def is_submitted(self):
return os.path.exists('%s.submit... | 31.566667 | 78 | 0.631996 | 241 | 1,894 | 4.796681 | 0.360996 | 0.060554 | 0.089965 | 0.102941 | 0.265571 | 0.185986 | 0.121972 | 0.084775 | 0.084775 | 0.084775 | 0 | 0 | 0.255016 | 1,894 | 59 | 79 | 32.101695 | 0.819277 | 0.23548 | 0 | 0.114286 | 0 | 0 | 0.115497 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.057143 | 0.142857 | 0.542857 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3b7a6f1c28373e54175fe0c692704f28e5ac6539 | 498 | py | Python | FP - Fundamentals Of Programming/text-library/domain/RentalException.py | p0licat/university | 4c86fd2e7aafb830f7d9cb2d38f96a145b7e7f7b | [
"MIT"
] | 2 | 2018-03-05T14:07:37.000Z | 2021-01-24T22:44:24.000Z | FP - Fundamentals Of Programming/text-library/domain/RentalException.py | p0licat/university | 4c86fd2e7aafb830f7d9cb2d38f96a145b7e7f7b | [
"MIT"
] | 1 | 2017-03-08T09:08:29.000Z | 2017-03-10T08:23:58.000Z | FP - Fundamentals Of Programming/text-library/domain/RentalException.py | p0licat/university | 4c86fd2e7aafb830f7d9cb2d38f96a145b7e7f7b | [
"MIT"
] | 1 | 2017-03-08T12:25:11.000Z | 2017-03-08T12:25:11.000Z | '''
This module defines the RentalException class, which handles all exception of the type RentalException.
it does not depend on any other module.
'''
class RentalException(Exception):
'''
RentalException class handles all thrown exceptions of the type RentalException. It inherits the Exception
... | 31.125 | 115 | 0.670683 | 56 | 498 | 5.785714 | 0.553571 | 0.101852 | 0.055556 | 0.148148 | 0.160494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251004 | 498 | 16 | 116 | 31.125 | 0.868633 | 0.518072 | 0 | 0 | 0 | 0 | 0.035354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.2 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
3b8699a03caa2f3958d60ccb1deafbce5496afe9 | 57 | py | Python | copain/__init__.py | fcharras/copain | 19633e0240a50e69236328c1a03ba97e00cc74f0 | [
"MIT"
] | 1 | 2021-10-31T19:24:47.000Z | 2021-10-31T19:24:47.000Z | copain/__init__.py | fcharras/copain | 19633e0240a50e69236328c1a03ba97e00cc74f0 | [
"MIT"
] | null | null | null | copain/__init__.py | fcharras/copain | 19633e0240a50e69236328c1a03ba97e00cc74f0 | [
"MIT"
] | null | null | null | from copain.run import CopainRun
__all__ = [CopainRun]
| 11.4 | 32 | 0.77193 | 7 | 57 | 5.714286 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 57 | 4 | 33 | 14.25 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
3b8a11b1f18b75934a936a7718f78fce9abc847f | 219 | py | Python | aiochat/urls.py | samael500/aiochat | 90a350d79d65d5b290eb12a37191164b6750bfab | [
"MIT"
] | 12 | 2017-10-18T20:53:38.000Z | 2022-01-28T09:47:30.000Z | aiochat/urls.py | Samael500/aiochat | 90a350d79d65d5b290eb12a37191164b6750bfab | [
"MIT"
] | 1 | 2019-04-11T07:07:46.000Z | 2019-04-11T07:07:46.000Z | aiochat/urls.py | Samael500/aiochat | 90a350d79d65d5b290eb12a37191164b6750bfab | [
"MIT"
] | 13 | 2017-09-27T19:41:14.000Z | 2021-11-28T14:36:16.000Z | from index.urls import routes as index_roures
from accounts.urls import routes as accounts_routes
from chat.urls import routes as chat_routes
routes = (
* index_roures,
* accounts_routes,
* chat_routes,
)
| 19.909091 | 51 | 0.753425 | 31 | 219 | 5.129032 | 0.290323 | 0.188679 | 0.301887 | 0.339623 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 219 | 10 | 52 | 21.9 | 0.898305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 3 |
3b8c8e380389c8c7094f1a4cd1cf1a8d3642d7fe | 136 | py | Python | .cheat/data/snippets/python/print_general_except_messages.py | Kevin-De-Koninck/dotfiles | b40d695d023e581d8bffcc7800d31ccbb8087211 | [
"MIT"
] | 3 | 2020-10-04T09:51:19.000Z | 2021-02-06T03:29:59.000Z | .cheat/data/snippets/python/print_general_except_messages.py | Kevin-De-Koninck/dotfiles | b40d695d023e581d8bffcc7800d31ccbb8087211 | [
"MIT"
] | null | null | null | .cheat/data/snippets/python/print_general_except_messages.py | Kevin-De-Koninck/dotfiles | b40d695d023e581d8bffcc7800d31ccbb8087211 | [
"MIT"
] | 1 | 2021-04-23T16:24:29.000Z | 2021-04-23T16:24:29.000Z | import traceback
try:
x = 0
print x/x
except:
traceback.print_exc() # ZeroDivisionError: integer division or modulo by zero
| 19.428571 | 81 | 0.713235 | 19 | 136 | 5.052632 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.220588 | 136 | 6 | 82 | 22.666667 | 0.896226 | 0.389706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e66005d9cb889a1be3cd7c411a27c4b025d3225 | 201 | py | Python | lib/loss_functions/loss.py | Elvin9/Neo | 6d3bdd874d662da3c0c72cb72b7ad1de70248468 | [
"MIT"
] | 1 | 2018-06-14T10:43:15.000Z | 2018-06-14T10:43:15.000Z | lib/loss_functions/loss.py | Elvin9/Neo | 6d3bdd874d662da3c0c72cb72b7ad1de70248468 | [
"MIT"
] | null | null | null | lib/loss_functions/loss.py | Elvin9/Neo | 6d3bdd874d662da3c0c72cb72b7ad1de70248468 | [
"MIT"
] | null | null | null |
class Loss(object):
def __init__(self):
self.output = 0
self.input = 0
def get_output(self, inp, target):
pass
def get_input_gradient(self, target):
pass
| 16.75 | 41 | 0.577114 | 26 | 201 | 4.192308 | 0.538462 | 0.110092 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.328358 | 201 | 11 | 42 | 18.272727 | 0.792593 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.25 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8e76d39976f1149630313666fcbadbdc675bf4f6 | 41 | py | Python | arcade/version.py | Hydrazer/arcade | 8b5a9870c45685154638fb26ae4a29f11d596eeb | [
"MIT"
] | null | null | null | arcade/version.py | Hydrazer/arcade | 8b5a9870c45685154638fb26ae4a29f11d596eeb | [
"MIT"
] | null | null | null | arcade/version.py | Hydrazer/arcade | 8b5a9870c45685154638fb26ae4a29f11d596eeb | [
"MIT"
] | null | null | null | #!/usr/bin/env python
VERSION = "2.5.1"
| 10.25 | 21 | 0.609756 | 8 | 41 | 3.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085714 | 0.146341 | 41 | 3 | 22 | 13.666667 | 0.628571 | 0.487805 | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e7af0072f1f7d2e8077e06a85204881d6dab9a3 | 215 | py | Python | iron.py | devcusn/civil-engineering | df2ad0d53d8a6fcbb9ca7c9ff3c2cca3f83486fc | [
"MIT"
] | null | null | null | iron.py | devcusn/civil-engineering | df2ad0d53d8a6fcbb9ca7c9ff3c2cca3f83486fc | [
"MIT"
] | null | null | null | iron.py | devcusn/civil-engineering | df2ad0d53d8a6fcbb9ca7c9ff3c2cca3f83486fc | [
"MIT"
] | null | null | null | class iron():
def __init__(self,name,kg):
self.kg = kg
self.name = name
def changeKg(self,newValue):
self.kg = newValue
def changeName(self,newName):
self.newName
| 23.888889 | 34 | 0.567442 | 26 | 215 | 4.538462 | 0.423077 | 0.135593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.325581 | 215 | 8 | 35 | 26.875 | 0.813793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e84ef64cbc4c5a29b6a81d97b07f4662dca6cca | 442 | py | Python | Fast Exponentiation/fast_exponentiation.py | rayvantsahni/Let-us-Math | 571ee70452feae0b15f37d46de658b0c0251bd3d | [
"MIT"
] | 2 | 2020-08-06T07:09:38.000Z | 2020-09-12T02:32:23.000Z | Fast Exponentiation/fast_exponentiation.py | rayvantsahni/Math-is-Fun | 571ee70452feae0b15f37d46de658b0c0251bd3d | [
"MIT"
] | null | null | null | Fast Exponentiation/fast_exponentiation.py | rayvantsahni/Math-is-Fun | 571ee70452feae0b15f37d46de658b0c0251bd3d | [
"MIT"
] | 1 | 2021-08-30T14:17:28.000Z | 2021-08-30T14:17:28.000Z | def calculate_power(base, power):
if not power:
return 1
if not power % 2:
return calculate_power(base, power // 2) * calculate_power(base, power // 2)
else:
return calculate_power(base, power // 2) * calculate_power(base, power // 2) * base
if __name__ == "__main__":
a = int... | 29.466667 | 91 | 0.595023 | 59 | 442 | 4.220339 | 0.338983 | 0.337349 | 0.361446 | 0.461847 | 0.433735 | 0.433735 | 0.433735 | 0.433735 | 0.433735 | 0.433735 | 0 | 0.01791 | 0.242081 | 442 | 15 | 92 | 29.466667 | 0.725373 | 0 | 0 | 0 | 0 | 0 | 0.103837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.363636 | 0.090909 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e91714353e00f2c102f13bd0b64de1c8cb21fe5 | 157 | py | Python | setup.py | newmaniese/Django-S3-Templates | 3cd696f2749bc0e69722e865e2737a01394ac536 | [
"Apache-2.0"
] | 5 | 2017-01-23T19:53:30.000Z | 2021-08-10T12:36:09.000Z | setup.py | newmaniese/Django-S3-Templates | 3cd696f2749bc0e69722e865e2737a01394ac536 | [
"Apache-2.0"
] | 1 | 2020-08-29T16:40:14.000Z | 2020-09-07T05:14:55.000Z | setup.py | newmaniese/Django-S3-Templates | 3cd696f2749bc0e69722e865e2737a01394ac536 | [
"Apache-2.0"
] | null | null | null | from distutils.core import setup
setup(name='django-s3templates',
version='0.1a',
py_modules=['s3templates'],
requires=["django", "boto"]
) | 26.166667 | 33 | 0.656051 | 18 | 157 | 5.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0.171975 | 157 | 6 | 34 | 26.166667 | 0.753846 | 0 | 0 | 0 | 0 | 0 | 0.272152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e9c26ec4ef256fea8987d99b13576d7e589d6d4 | 1,882 | py | Python | ail/wrapper/absorbing_wrapper.py | yifanwu2828/Adversarial-imitation-learning | 8c0049ab75fd63ce600542d95fc392e9de2f5d50 | [
"MIT"
] | 1 | 2021-10-05T00:51:30.000Z | 2021-10-05T00:51:30.000Z | ail/wrapper/absorbing_wrapper.py | yifanwu2828/Adversarial-imitation-learning | 8c0049ab75fd63ce600542d95fc392e9de2f5d50 | [
"MIT"
] | null | null | null | ail/wrapper/absorbing_wrapper.py | yifanwu2828/Adversarial-imitation-learning | 8c0049ab75fd63ce600542d95fc392e9de2f5d50 | [
"MIT"
] | null | null | null | import gym
import numpy as np
# Take from https://github.com/google-research/google-research/blob/21545f4ae92de3d512a9e52fa668a1988ea802c0/dac/lfd_envs.py#L28
class AbsorbingWrapper(gym.ObservationWrapper):
def __init__(self, env):
super().__init__(env)
obs_space = self.observation_space
s... | 34.851852 | 128 | 0.666312 | 239 | 1,882 | 5.050209 | 0.322176 | 0.127589 | 0.074565 | 0.047225 | 0.183099 | 0.046396 | 0 | 0 | 0 | 0 | 0 | 0.026518 | 0.238576 | 1,882 | 53 | 129 | 35.509434 | 0.815771 | 0.27949 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.060606 | 0.151515 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8eac83b60da13a426bf9c29028bf7e86a218484e | 406 | py | Python | simtool/polymerxtal/crystal/__init__.py | janash/polymerxtal | 641f00bcc5db16d1da8b787944dea9d9d91a7d8a | [
"BSD-3-Clause"
] | 1 | 2020-08-13T23:52:56.000Z | 2020-08-13T23:52:56.000Z | simtool/polymerxtal/crystal/__init__.py | janash/polymerxtal | 641f00bcc5db16d1da8b787944dea9d9d91a7d8a | [
"BSD-3-Clause"
] | 8 | 2020-08-31T01:18:33.000Z | 2021-09-17T18:20:24.000Z | simtool/polymerxtal/crystal/__init__.py | janash/polymerxtal | 641f00bcc5db16d1da8b787944dea9d9d91a7d8a | [
"BSD-3-Clause"
] | 3 | 2020-08-26T14:58:59.000Z | 2021-03-15T09:06:24.000Z | from .measure import calculate_distance, calculate_angle
from .helice import Helice
from .cell import Cell
from .chain import Chain
from .molecule import (
Molecule,
build_bond_list,
calculate_molecular_mass,
calculate_center_of_mass,
)
from .monomer import PolymerType, get_tail_torsion
from .move impor... | 29 | 65 | 0.805419 | 54 | 406 | 5.814815 | 0.574074 | 0.070064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14532 | 406 | 13 | 66 | 31.230769 | 0.904899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.615385 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8ec3902584cc8c49a461e27e2ee06ccdf4361cfc | 2,224 | py | Python | datatc/data_manager.py | uzh-dqbm-cmi/data-traffic-control | 978f04f58aba9b61ab87732817374e37593d388c | [
"MIT"
] | 1 | 2020-09-11T09:26:21.000Z | 2020-09-11T09:26:21.000Z | datatc/data_manager.py | uzh-dqbm-cmi/data-traffic-control | 978f04f58aba9b61ab87732817374e37593d388c | [
"MIT"
] | 7 | 2020-09-08T18:03:39.000Z | 2021-06-28T12:01:09.000Z | datatc/data_manager.py | uzh-dqbm-cmi/data-traffic-control | 978f04f58aba9b61ab87732817374e37593d388c | [
"MIT"
] | null | null | null | import warnings
from .data_directory import DataDirectory, DataDirectoryManager
from typing import Type
CONFIG_FILE_NAME = '.data_map.yaml'
class DataManager:
"""
Keep track of project data directories.
"""
data_dir_manager = DataDirectoryManager
def __init__(self, path_hint: str, data_dir_man... | 38.344828 | 120 | 0.688849 | 264 | 2,224 | 5.594697 | 0.375 | 0.079215 | 0.075829 | 0.036561 | 0.211239 | 0.211239 | 0.211239 | 0.111036 | 0.111036 | 0.111036 | 0 | 0.000591 | 0.239209 | 2,224 | 57 | 121 | 39.017544 | 0.87234 | 0.336781 | 0 | 0.083333 | 0 | 0 | 0.062266 | 0.016504 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8ec5587c7a3f4d18d595d94b45bed802eb0585a1 | 265 | py | Python | presidio-anonymizer/presidio_anonymizer/__init__.py | kubistika/presidio | 4777d1759e9bddc45317d9b2689e6df9f75eec05 | [
"MIT"
] | null | null | null | presidio-anonymizer/presidio_anonymizer/__init__.py | kubistika/presidio | 4777d1759e9bddc45317d9b2689e6df9f75eec05 | [
"MIT"
] | null | null | null | presidio-anonymizer/presidio_anonymizer/__init__.py | kubistika/presidio | 4777d1759e9bddc45317d9b2689e6df9f75eec05 | [
"MIT"
] | null | null | null | """Anonymizer root module."""
import logging
from presidio_anonymizer.anonymizer_engine import AnonymizerEngine
# Set up default logging (with NullHandler)
logging.getLogger("presidio-anonymizer").addHandler(logging.NullHandler())
__all__ = ["AnonymizerEngine"]
| 26.5 | 74 | 0.807547 | 27 | 265 | 7.703704 | 0.62963 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086792 | 265 | 9 | 75 | 29.444444 | 0.859504 | 0.249057 | 0 | 0 | 0 | 0 | 0.181347 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8edbdf9ad8b261fe7598c0c2241fd5f1780c864e | 1,024,685 | py | Python | tests/examples/minlplib/arki0021.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 2 | 2021-07-03T13:19:10.000Z | 2022-02-06T10:48:13.000Z | tests/examples/minlplib/arki0021.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | 1 | 2021-07-04T14:52:14.000Z | 2021-07-15T10:17:11.000Z | tests/examples/minlplib/arki0021.py | ouyang-w-19/decogo | 52546480e49776251d4d27856e18a46f40c824a1 | [
"MIT"
] | null | null | null | # NLP written by GAMS Convert at 04/21/18 13:51:02
#
# Equation counts
# Total E G L N X C B
# 3 2 0 1 0 0 0 0
#
# Variable counts
# x b i s1s s2s sc ... | 102.427529 | 120 | 0.611862 | 144,983 | 1,024,685 | 4.32441 | 0.155211 | 0.049022 | 0.071165 | 0.101664 | 0.396388 | 0.335409 | 0.279502 | 0.279489 | 0.279489 | 0.279489 | 0 | 0.551216 | 0.22116 | 1,024,685 | 10,003 | 121 | 102.437769 | 0.23439 | 0.000662 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | null | null | null | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | null | null | null | null | null | null | 0 | 3 |
8eeaab7457ada9e9f2b9bbb18be2463e8ddb874e | 452 | py | Python | csrank/objectranking/__init__.py | helegraf/cs-ranking | a635d59a254e7d4cad06c3e04f7593392e0b9cec | [
"Apache-2.0"
] | null | null | null | csrank/objectranking/__init__.py | helegraf/cs-ranking | a635d59a254e7d4cad06c3e04f7593392e0b9cec | [
"Apache-2.0"
] | null | null | null | csrank/objectranking/__init__.py | helegraf/cs-ranking | a635d59a254e7d4cad06c3e04f7593392e0b9cec | [
"Apache-2.0"
] | null | null | null | from .cmp_net import CmpNet
from .expected_rank_regression import ExpectedRankRegression
from .fate_object_ranker import FATEObjectRanker
from .fatelinear_object_ranker import FATELinearObjectRanker
from .feta_object_ranker import FETAObjectRanker
from .fetalinear_object_ranker import FETALinearObjectRanker
from ... | 41.090909 | 61 | 0.867257 | 54 | 452 | 7 | 0.481481 | 0.126984 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110619 | 452 | 10 | 62 | 45.2 | 0.940299 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8eedea084f2baaa587597de642375a9c4caa600d | 264 | py | Python | taller_de_funciones/ejercicio3.py | JuanMPerezM/AlgoritmosyProgramacion_Talleres | 849e9ff97a34ee3db32d52467d0de5e981d3b0ee | [
"MIT"
] | null | null | null | taller_de_funciones/ejercicio3.py | JuanMPerezM/AlgoritmosyProgramacion_Talleres | 849e9ff97a34ee3db32d52467d0de5e981d3b0ee | [
"MIT"
] | null | null | null | taller_de_funciones/ejercicio3.py | JuanMPerezM/AlgoritmosyProgramacion_Talleres | 849e9ff97a34ee3db32d52467d0de5e981d3b0ee | [
"MIT"
] | null | null | null | frutas = open('frutas.txt', 'r')
numeros = open('numeros.txt', 'r')
def copia_lista(lista:list)->list:
return lista.copy()
"""
if __name__ == "__main__":
lista_fruta_nueva=eliminar_un_caracter_de_toda_la_lista(lista_frutas,"\n")
print(lista_fruta_nueva)
""" | 29.333333 | 76 | 0.723485 | 39 | 264 | 4.384615 | 0.615385 | 0.046784 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098485 | 264 | 9 | 77 | 29.333333 | 0.718487 | 0 | 0 | 0 | 0 | 0 | 0.181102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
d91718cb4a6beb281b1b97cb8b49491c4a5dcd43 | 637 | py | Python | actors/actor_query.py | Catsuko/Westward | 3c04df668f7e04ca45e622017ffa9dfe6d3c242c | [
"MIT"
] | 3 | 2019-12-22T22:44:43.000Z | 2020-02-11T11:14:10.000Z | actors/actor_query.py | Catsuko/Westward | 3c04df668f7e04ca45e622017ffa9dfe6d3c242c | [
"MIT"
] | null | null | null | actors/actor_query.py | Catsuko/Westward | 3c04df668f7e04ca45e622017ffa9dfe6d3c242c | [
"MIT"
] | null | null | null | from views.area_media import AreaMedia
class ActorQuery(AreaMedia):
def __init__(self, matcher, matches=[]):
self.matcher = matcher
self.matches = matches
def with_area(self, area):
return area.print_to(self)
def with_actor(self, x, y, key):
return ActorQuery(self.matche... | 25.48 | 106 | 0.643642 | 96 | 637 | 4.114583 | 0.354167 | 0.111392 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002079 | 0.244898 | 637 | 24 | 107 | 26.541667 | 0.819127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0.066667 | 0.333333 | 0.866667 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d9272fb2370df533e78c656645168456b293515d | 985 | py | Python | config.py | hongsups/insightfl_shin | 73e5d07ad1d6b30fc4fbd353374fb27fb5f98132 | [
"MIT"
] | null | null | null | config.py | hongsups/insightfl_shin | 73e5d07ad1d6b30fc4fbd353374fb27fb5f98132 | [
"MIT"
] | null | null | null | config.py | hongsups/insightfl_shin | 73e5d07ad1d6b30fc4fbd353374fb27fb5f98132 | [
"MIT"
] | null | null | null | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
# Flask Application Key (optional)
SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
# MySQL Database Settings
MYSQL_DATABASE_HOST = 'localhost'
MYSQL_DATABASE_USER = os.environ.get('MYSQL_DATABASE_USER... | 24.625 | 79 | 0.715736 | 116 | 985 | 5.844828 | 0.474138 | 0.210914 | 0.053097 | 0.076696 | 0.073746 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011436 | 0.201015 | 985 | 39 | 80 | 25.25641 | 0.850064 | 0.201015 | 0 | 0 | 0 | 0 | 0.144872 | 0.029487 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.086957 | 0.043478 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d933bd22585b81b794102d6fafff9a429d9cafe6 | 121 | py | Python | Web/carleaseapp/car-lease-calculator-v2/exchange_rates/urls.py | honchardev/Fun | ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc | [
"MIT"
] | null | null | null | Web/carleaseapp/car-lease-calculator-v2/exchange_rates/urls.py | honchardev/Fun | ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc | [
"MIT"
] | 3 | 2020-03-24T16:26:35.000Z | 2020-04-15T19:40:41.000Z | Web/carleaseapp/car-lease-calculator-v2/exchange_rates/urls.py | honchardev/Fun | ca7c0076e9bb3017c5d7e89aa7d5bd54a83c8ecc | [
"MIT"
] | null | null | null | from django.urls import path
from . import views
urlpatterns = [
path('nbu/', views.view_nbu, name='view_nbu'),
]
| 13.444444 | 50 | 0.677686 | 17 | 121 | 4.705882 | 0.588235 | 0.175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 121 | 8 | 51 | 15.125 | 0.808081 | 0 | 0 | 0 | 0 | 0 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d93496ac6915aca0f5c7d20b689f22abd4282628 | 5,646 | py | Python | src/cms/pages/migrations/0002_auto_20210115_1124.py | UniversitaDellaCalabria/uniCMS | b0af4e1a767867f0a9b3c135a5c84587e713cb71 | [
"Apache-2.0"
] | 6 | 2021-01-26T17:22:53.000Z | 2022-02-15T10:09:03.000Z | src/cms/pages/migrations/0002_auto_20210115_1124.py | UniversitaDellaCalabria/uniCMS | b0af4e1a767867f0a9b3c135a5c84587e713cb71 | [
"Apache-2.0"
] | 5 | 2020-12-24T14:29:23.000Z | 2021-08-10T10:32:18.000Z | src/cms/pages/migrations/0002_auto_20210115_1124.py | UniversitaDellaCalabria/uniCMS | b0af4e1a767867f0a9b3c135a5c84587e713cb71 | [
"Apache-2.0"
] | 2 | 2020-12-24T14:13:39.000Z | 2020-12-30T16:48:52.000Z | # Generated by Django 3.1.4 on 2021-01-15 11:24
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import taggit.managers
class Migration(migrations.Migration):
initial = True
dependencies = [
('cmspublications', '0001_initial'),
('cms... | 43.099237 | 178 | 0.628232 | 583 | 5,646 | 5.90223 | 0.174957 | 0.048823 | 0.081372 | 0.12787 | 0.73932 | 0.73932 | 0.634699 | 0.634699 | 0.622203 | 0.612031 | 0 | 0.016655 | 0.244952 | 5,646 | 130 | 179 | 43.430769 | 0.790523 | 0.00797 | 0 | 0.626016 | 1 | 0 | 0.183961 | 0.045365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03252 | 0 | 0.065041 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d93a5f5f6860b30c075aadca4bcd744acb368694 | 138 | py | Python | pysh/image/plot.py | mulinfro/pysh | 1ca48179d9b79948fc908149be30b6074efa03bc | [
"MIT"
] | 6 | 2018-11-02T01:10:46.000Z | 2021-01-13T07:50:30.000Z | pysh/image/plot.py | mulinfro/pysh | 1ca48179d9b79948fc908149be30b6074efa03bc | [
"MIT"
] | null | null | null | pysh/image/plot.py | mulinfro/pysh | 1ca48179d9b79948fc908149be30b6074efa03bc | [
"MIT"
] | null | null | null |
import matplotlib
from matplotlib import pyplot
__all__ = [ "hist", "show" ]
hist = pyplot.hist
show = pyplot.show
#def plot_show(x):
| 13.8 | 29 | 0.710145 | 19 | 138 | 4.894737 | 0.526316 | 0.172043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 138 | 9 | 30 | 15.333333 | 0.815789 | 0.123188 | 0 | 0 | 0 | 0 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d99033e8e9449cc09c483c0e29d49e8d9934cd0b | 706 | py | Python | conanfile.py | memsharded/get-conan-version | 5615dbad743c876071ef5630cb82ecd6670551ed | [
"MIT"
] | null | null | null | conanfile.py | memsharded/get-conan-version | 5615dbad743c876071ef5630cb82ecd6670551ed | [
"MIT"
] | null | null | null | conanfile.py | memsharded/get-conan-version | 5615dbad743c876071ef5630cb82ecd6670551ed | [
"MIT"
] | null | null | null | from conans import ConanFile
from conans.tools import load
import re
def get_version():
try:
content = load("src/CMakeLists.txt")
version = re.search(b"set\(MY_LIBRARY_VERSION (.*)\)", content).group(1)
return version.strip()
except Exception as e:
return None
class HelloConan... | 24.344828 | 80 | 0.624646 | 90 | 706 | 4.833333 | 0.444444 | 0.091954 | 0.128736 | 0.165517 | 0.216092 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001866 | 0.240793 | 706 | 28 | 81 | 25.214286 | 0.809701 | 0 | 0 | 0 | 0 | 0 | 0.140227 | 0.032578 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.142857 | 0 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
79429b0ba7e1cef55e3c24d6b0ac0bb04ab52c35 | 55 | py | Python | syncio/__init__.py | davidbrochart/syncio | 6d7451ce83186ff3d1b28bd22bfb6374938858fe | [
"MIT"
] | 5 | 2021-10-18T08:15:24.000Z | 2021-11-02T06:28:33.000Z | syncio/__init__.py | davidbrochart/syncio | 6d7451ce83186ff3d1b28bd22bfb6374938858fe | [
"MIT"
] | null | null | null | syncio/__init__.py | davidbrochart/syncio | 6d7451ce83186ff3d1b28bd22bfb6374938858fe | [
"MIT"
] | null | null | null | from .syncio import sync, sleep
__version__ = "0.0.1"
| 13.75 | 31 | 0.709091 | 9 | 55 | 3.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.163636 | 55 | 3 | 32 | 18.333333 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
79484bcff99111edf0a6adabf1c6dbbc5518d8b9 | 593 | bzl | Python | tensorflow/core/platform/default/build_config_root.bzl | jingjunLi/tensorflow-multi-stream | d3b75ab179e1a62300739084b48816d2467b0cee | [
"Apache-2.0"
] | null | null | null | tensorflow/core/platform/default/build_config_root.bzl | jingjunLi/tensorflow-multi-stream | d3b75ab179e1a62300739084b48816d2467b0cee | [
"Apache-2.0"
] | null | null | null | tensorflow/core/platform/default/build_config_root.bzl | jingjunLi/tensorflow-multi-stream | d3b75ab179e1a62300739084b48816d2467b0cee | [
"Apache-2.0"
] | 1 | 2020-02-11T10:29:06.000Z | 2020-02-11T10:29:06.000Z | # Lower-level functionality for build config.
# The functions in this file might be referred by tensorflow.bzl. They have to
# be separate to avoid cyclic references.
WITH_XLA_SUPPORT = True
def tf_cuda_tests_tags():
return ["local"]
def tf_sycl_tests_tags():
return ["local"]
def tf_additional_plugin_deps():
... | 21.962963 | 78 | 0.738617 | 85 | 593 | 4.894118 | 0.564706 | 0.060096 | 0.100962 | 0.096154 | 0.120192 | 0.120192 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158516 | 593 | 26 | 79 | 22.807692 | 0.833667 | 0.269815 | 0 | 0.235294 | 0 | 0 | 0.125874 | 0.058275 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0 | 0.176471 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
79624c5482c4f6871c9074db5b07fecb8ad23ca3 | 658 | py | Python | data/themes/irssi.py | hrnciar/poezio | 12b8af11df35dda535412b0c02ba792890095a7d | [
"Zlib"
] | 50 | 2015-02-11T12:00:25.000Z | 2022-01-18T05:26:40.000Z | data/themes/irssi.py | hrnciar/poezio | 12b8af11df35dda535412b0c02ba792890095a7d | [
"Zlib"
] | 3 | 2017-11-27T20:55:42.000Z | 2020-03-20T18:05:53.000Z | data/themes/irssi.py | hrnciar/poezio | 12b8af11df35dda535412b0c02ba792890095a7d | [
"Zlib"
] | 15 | 2015-04-22T14:33:36.000Z | 2021-09-29T21:33:50.000Z | import poezio.theming
class IrssiTheme(poezio.theming.Theme):
COLOR_INFORMATION_BAR = (6, 4)
COLOR_TAB_NEW_MESSAGE = (15, 4)
COLOR_TAB_CURRENT = (7, 12)
COLOR_TAB_HIGHLIGHT = (13, 4)
COLOR_TAB_DISCONNECTED = (9, 4)
COLOR_HIGHLIGHT_NICK = (11, -1, 'b')
COLOR_ME_MESSAGE = (15, -1)
def ... | 26.32 | 64 | 0.658055 | 88 | 658 | 4.522727 | 0.431818 | 0.120603 | 0.19598 | 0.331658 | 0.399497 | 0.384422 | 0.165829 | 0.165829 | 0 | 0 | 0 | 0.06334 | 0.208207 | 658 | 24 | 65 | 27.416667 | 0.700576 | 0 | 0 | 0 | 0 | 0 | 0.001524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
796f076eb97120a93008f9d06b0920e746ad6496 | 319 | py | Python | mindefuse/strategy/swaszek/agent/agent_same_pos.py | sinistro14/mindefuse | c7371a81731d0b9a03d3ef18f91c336e4135c17d | [
"MIT"
] | null | null | null | mindefuse/strategy/swaszek/agent/agent_same_pos.py | sinistro14/mindefuse | c7371a81731d0b9a03d3ef18f91c336e4135c17d | [
"MIT"
] | 1 | 2019-08-22T19:51:12.000Z | 2019-08-22T19:51:12.000Z | mindefuse/strategy/swaszek/agent/agent_same_pos.py | sinistro14/mindefuse | c7371a81731d0b9a03d3ef18f91c336e4135c17d | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.7
from .agent import Agent
class AgentSamePos(Agent):
def __init__(self, pos):
self.pos = pos
def agent_choice(self, possibilities):
if self.pos > len(possibilities) - 1:
return possibilities[len(possibilities) - 1]
return possibilities[self.pos]
| 21.266667 | 56 | 0.648903 | 39 | 319 | 5.179487 | 0.512821 | 0.138614 | 0.168317 | 0.227723 | 0.356436 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016598 | 0.244514 | 319 | 14 | 57 | 22.785714 | 0.821577 | 0.0721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7974c026ee15ebdd7834babe50ae3f289c7b31c7 | 167 | py | Python | python_scripts/read_time.py | kolathee/speech-analysis-by-GCP | 487a857eb034b89c66094ef217556941ff7bdcbe | [
"Apache-2.0"
] | null | null | null | python_scripts/read_time.py | kolathee/speech-analysis-by-GCP | 487a857eb034b89c66094ef217556941ff7bdcbe | [
"Apache-2.0"
] | null | null | null | python_scripts/read_time.py | kolathee/speech-analysis-by-GCP | 487a857eb034b89c66094ef217556941ff7bdcbe | [
"Apache-2.0"
] | null | null | null | def estimation(text,img_num):
len_text = len(text)
read_time = (len_text/1000) + img_num*0.2
if read_time < 1:
return 1
return round(read_time) | 27.833333 | 45 | 0.646707 | 28 | 167 | 3.607143 | 0.535714 | 0.207921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063492 | 0.245509 | 167 | 6 | 46 | 27.833333 | 0.738095 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
798e4f5cfd5cf590e43019ada40c2f68a7c023d8 | 4,231 | py | Python | libraries/community/p1/All/Propeller Experiment Controller/Propeller Python Interface/Modules/Instructions.py | deets/propeller | 1468c8b334266f899882f404903b2dd833168799 | [
"MIT"
] | 82 | 2018-11-29T19:02:44.000Z | 2022-03-11T18:50:24.000Z | libraries/community/p1/All/Propeller Experiment Controller/Propeller Python Interface/Modules/Instructions.py | pik33/propeller | 861213b91d4e6bd4e724a21389a5311d452f369d | [
"MIT"
] | 30 | 2019-01-31T02:20:23.000Z | 2022-01-26T17:50:25.000Z | libraries/community/p1/All/Propeller Experiment Controller/Propeller Python Interface/Modules/Instructions.py | pik33/propeller | 861213b91d4e6bd4e724a21389a5311d452f369d | [
"MIT"
] | 73 | 2018-11-28T15:10:12.000Z | 2022-03-22T21:00:25.000Z | ##############################################################################################################################################################################################
#
# ┌────────────────────────┐
# │ Experiment Memory Recovery v1.2 │
# │ Author: Christopher A Varnon ... | 67.15873 | 190 | 0.441267 | 413 | 4,231 | 5.266344 | 0.414044 | 0.014713 | 0.034483 | 0.034943 | 0.041839 | 0.022069 | 0 | 0 | 0 | 0 | 0 | 0.006363 | 0.25715 | 4,231 | 62 | 191 | 68.241935 | 0.587655 | 0.494918 | 0 | 0 | 0 | 0 | 0.739227 | 0.103269 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | true | 0 | 0 | 0 | 0.047619 | 0.952381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8db975db8fb7992770683f7f7249c2c13c8408ff | 146 | py | Python | src/clientipaddress/urls.py | Makerspace-Door/door_commander | 11ffcd08dff45ffaae35cdbd0e09180658e34442 | [
"BSD-3-Clause"
] | 1 | 2021-11-06T10:55:06.000Z | 2021-11-06T10:55:06.000Z | src/clientipaddress/urls.py | Makerspace-Door/door_commander | 11ffcd08dff45ffaae35cdbd0e09180658e34442 | [
"BSD-3-Clause"
] | 5 | 2021-09-21T20:37:30.000Z | 2021-11-23T10:34:15.000Z | src/clientipaddress/urls.py | Makerspace-Door/door_commander | 11ffcd08dff45ffaae35cdbd0e09180658e34442 | [
"BSD-3-Clause"
] | null | null | null | from django.urls import path
from django.contrib import admin
from . import views
urlpatterns = [
path('myip/', views.myip, name='myip'),
]
| 16.222222 | 43 | 0.705479 | 20 | 146 | 5.15 | 0.55 | 0.194175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.171233 | 146 | 8 | 44 | 18.25 | 0.85124 | 0 | 0 | 0 | 0 | 0 | 0.061644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
8dc35548ed2e734f3567fcd7b84569d2f298ea8c | 136 | py | Python | spiderBasic/requestsTest/advanceUsage/proxyTest.py | turoDog/LearningPython | 8e87e1a6926e2d6d7f131fbadaf63a03e2aa41cd | [
"Apache-2.0"
] | 2 | 2018-07-11T02:13:44.000Z | 2019-04-06T02:41:44.000Z | spiderBasic/requestsTest/advanceUsage/proxyTest.py | turoDog/LearningPython | 8e87e1a6926e2d6d7f131fbadaf63a03e2aa41cd | [
"Apache-2.0"
] | null | null | null | spiderBasic/requestsTest/advanceUsage/proxyTest.py | turoDog/LearningPython | 8e87e1a6926e2d6d7f131fbadaf63a03e2aa41cd | [
"Apache-2.0"
] | null | null | null | import requests
proxies = {
"http": "http://user:password@10.10.1:3128/"
}
requests.get("https://www.taobao.com", proxies=proxies)
| 19.428571 | 55 | 0.676471 | 19 | 136 | 4.842105 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07438 | 0.110294 | 136 | 6 | 56 | 22.666667 | 0.68595 | 0 | 0 | 0 | 0 | 0 | 0.441176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.2 | 0 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8dc59c044c2b56ee09feefc0a4698e6bbe17f154 | 51 | py | Python | kompaq/__init__.py | Siikakala/kompassi | 14cdcd966ab689d762cc885e28b6d15465c216f0 | [
"CC-BY-3.0"
] | null | null | null | kompaq/__init__.py | Siikakala/kompassi | 14cdcd966ab689d762cc885e28b6d15465c216f0 | [
"CC-BY-3.0"
] | null | null | null | kompaq/__init__.py | Siikakala/kompassi | 14cdcd966ab689d762cc885e28b6d15465c216f0 | [
"CC-BY-3.0"
] | null | null | null | default_app_config = 'kompaq.apps.KompaqAppConfig'
| 25.5 | 50 | 0.843137 | 6 | 51 | 6.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 51 | 1 | 51 | 51 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0.529412 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8dd6766f9ab577cc310b6a65b188789599ccbd86 | 132 | py | Python | George and Accommodation.py | NehaAgarwal2598/Codeforces | 859196a734cb24834736adf9517b351647da6e73 | [
"MIT"
] | null | null | null | George and Accommodation.py | NehaAgarwal2598/Codeforces | 859196a734cb24834736adf9517b351647da6e73 | [
"MIT"
] | null | null | null | George and Accommodation.py | NehaAgarwal2598/Codeforces | 859196a734cb24834736adf9517b351647da6e73 | [
"MIT"
] | null | null | null | n = int(input())
c=0
for _ in range(n):
p, q = list(map(int, input().split()))
if q-p >=2:
c= c+1
print(c)
| 14.666667 | 43 | 0.44697 | 25 | 132 | 2.32 | 0.68 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034091 | 0.333333 | 132 | 8 | 44 | 16.5 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8de9a386272b5b88b57dbc3d4401d42180b669ca | 164 | py | Python | Backend/SihProject/proj/try.py | rondon1947/RA26_Ctrl-Alt-Elite_WIMDR | cc88219fee93d8d9ec176609fe0b4fbe2ab4b2ac | [
"MIT"
] | 1 | 2020-10-06T03:57:28.000Z | 2020-10-06T03:57:28.000Z | Backend/SihProject/proj/try.py | Amitdutta7/SIH2020 | 9c7448008aa294cc7c5ab40dcac66f30dec11988 | [
"MIT"
] | null | null | null | Backend/SihProject/proj/try.py | Amitdutta7/SIH2020 | 9c7448008aa294cc7c5ab40dcac66f30dec11988 | [
"MIT"
] | 2 | 2020-08-05T19:34:19.000Z | 2020-08-18T15:51:42.000Z | import requests
di = {
"password": "letitbeanything"
}
x = requests.post("http://0.0.0.0:8000/api/admin/getPlottingData", data=di)
print(type(x))
print(x.text)
| 20.5 | 75 | 0.689024 | 25 | 164 | 4.52 | 0.68 | 0.053097 | 0.053097 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054795 | 0.109756 | 164 | 7 | 76 | 23.428571 | 0.719178 | 0 | 0 | 0 | 0 | 0 | 0.414634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8dec2ba718da9bf9c197e395f9431c835c17d672 | 230 | py | Python | easy/908-smallest-range-i.py | changmeng72/leecode_python3 | 8384f52f0dd74b06b1b6aefa277dde6a228ff5f3 | [
"MIT"
] | null | null | null | easy/908-smallest-range-i.py | changmeng72/leecode_python3 | 8384f52f0dd74b06b1b6aefa277dde6a228ff5f3 | [
"MIT"
] | null | null | null | easy/908-smallest-range-i.py | changmeng72/leecode_python3 | 8384f52f0dd74b06b1b6aefa277dde6a228ff5f3 | [
"MIT"
] | null | null | null | class Solution:
def smallestRangeI(self, nums: List[int], k: int) -> int:
minNum,maxNum = min(nums),max(nums)
if maxNum-minNum>=2*k:
return maxNum-minNum-2*k
else:
return 0 | 32.857143 | 62 | 0.543478 | 30 | 230 | 4.166667 | 0.6 | 0.192 | 0.208 | 0.224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.334783 | 230 | 7 | 63 | 32.857143 | 0.797386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8dfd0082ce7440d5cfd5566956a65db768e92bf8 | 734 | py | Python | src/states/base.py | Game-prince/Tetris | 08c85d014826ef6ccc66bd4fc0ef065211486dbf | [
"MIT"
] | 1 | 2021-10-30T09:55:08.000Z | 2021-10-30T09:55:08.000Z | src/states/base.py | Azij-khel/Tetris | 08c85d014826ef6ccc66bd4fc0ef065211486dbf | [
"MIT"
] | null | null | null | src/states/base.py | Azij-khel/Tetris | 08c85d014826ef6ccc66bd4fc0ef065211486dbf | [
"MIT"
] | null | null | null | class Base:
""" This is a class template. All the other classes will be made according to this templae """
def __init__(self) -> None:
""" constructor function """
pass
def enter(self, **param) -> None:
""" This function is called first when we change a group """
pa... | 31.913043 | 105 | 0.570845 | 91 | 734 | 4.56044 | 0.527473 | 0.06747 | 0.154217 | 0.144578 | 0.284337 | 0.13494 | 0 | 0 | 0 | 0 | 0 | 0 | 0.336512 | 734 | 23 | 106 | 31.913043 | 0.852156 | 0.49455 | 0 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0.454545 | 0 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
5c1526888ead8f24c88c9bf9d45fbfd6dd7cf912 | 227 | py | Python | trinity/protocol/les/validators.py | gsalgado/trinity | e35154226ffae471e625547027368e664ec5e422 | [
"MIT"
] | 1 | 2021-04-07T07:33:28.000Z | 2021-04-07T07:33:28.000Z | trinity/protocol/les/validators.py | gsalgado/trinity | e35154226ffae471e625547027368e664ec5e422 | [
"MIT"
] | null | null | null | trinity/protocol/les/validators.py | gsalgado/trinity | e35154226ffae471e625547027368e664ec5e422 | [
"MIT"
] | null | null | null | from trinity.protocol.common.validators import (
BaseBlockHeadersValidator,
)
from . import constants
class GetBlockHeadersValidator(BaseBlockHeadersValidator):
protocol_max_request_size = constants.MAX_HEADERS_FETCH
| 25.222222 | 59 | 0.837004 | 21 | 227 | 8.809524 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110132 | 227 | 8 | 60 | 28.375 | 0.915842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5c1a6cab3979af961f5cd8db873f55bdc7a8fbd3 | 241 | py | Python | story1/admin.py | sthiers/Marc | 0e8a0234feb2af47550195fbe653e1becfc6e68c | [
"Apache-2.0"
] | null | null | null | story1/admin.py | sthiers/Marc | 0e8a0234feb2af47550195fbe653e1becfc6e68c | [
"Apache-2.0"
] | null | null | null | story1/admin.py | sthiers/Marc | 0e8a0234feb2af47550195fbe653e1becfc6e68c | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from story1.models import Compound
# Register your models here.
class CompoundAdmin(admin.ModelAdmin):
list_display = ('name', 'formula', 'mw', 'cas')
admin.site.register(Compound, CompoundAdmin)
| 21.909091 | 55 | 0.742739 | 29 | 241 | 6.137931 | 0.724138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004854 | 0.145228 | 241 | 10 | 56 | 24.1 | 0.859223 | 0.107884 | 0 | 0 | 0 | 0 | 0.075829 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
5c33e7bf9f65aa6afc7c24e757c00605b962130e | 230 | py | Python | speechCenter/speechCenter.py | Jan201102/piAsisstant | 088e92186fb4952b022e55260e7d04f325a0d372 | [
"MIT"
] | 2 | 2021-11-25T22:32:19.000Z | 2022-03-26T16:40:34.000Z | speechCenter/speechCenter.py | Jan201102/piAssistant | 088e92186fb4952b022e55260e7d04f325a0d372 | [
"MIT"
] | null | null | null | speechCenter/speechCenter.py | Jan201102/piAssistant | 088e92186fb4952b022e55260e7d04f325a0d372 | [
"MIT"
] | null | null | null | from IspeechCenterGateway import IspeechCenterGateway
from speechCenter.tts import *
class SpeechCenter(IspeechCenterGateway):
def __init__(self):
self.tts = TTS()
def say(self,text):
self.tts.say(text)
| 20.909091 | 53 | 0.717391 | 25 | 230 | 6.44 | 0.44 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 230 | 10 | 54 | 23 | 0.87027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
5c4a8301f497fd532703fe9a629cd61ccfdedcae | 195 | py | Python | equilib/grid_sample/torch_grid_sample/utils.py | jbyu/HorizonNet | 360261c9f5f8acd5d6d8becc9e790b1995f39358 | [
"MIT"
] | null | null | null | equilib/grid_sample/torch_grid_sample/utils.py | jbyu/HorizonNet | 360261c9f5f8acd5d6d8becc9e790b1995f39358 | [
"MIT"
] | null | null | null | equilib/grid_sample/torch_grid_sample/utils.py | jbyu/HorizonNet | 360261c9f5f8acd5d6d8becc9e790b1995f39358 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import torch
def get_device(a: torch.Tensor) -> torch.device:
r"""Get device of a Tensor"""
return torch.device(a.get_device() if a.get_device() > 0 else "cpu")
| 21.666667 | 72 | 0.671795 | 33 | 195 | 3.878788 | 0.545455 | 0.28125 | 0.15625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.169231 | 195 | 8 | 73 | 24.375 | 0.777778 | 0.225641 | 0 | 0 | 0 | 0 | 0.02069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5c4baa865641c65aa252e0a35af1b4245329fdad | 308 | py | Python | smartd_pyngui/__init__.py | deajan/smartd-pyngui | 582e054860d09a40c323ef13a36c68e54e279e69 | [
"BSD-3-Clause"
] | 2 | 2021-08-09T14:34:09.000Z | 2021-11-17T10:57:58.000Z | smartd_pyngui/__init__.py | deajan/smartd-pyngui | 582e054860d09a40c323ef13a36c68e54e279e69 | [
"BSD-3-Clause"
] | 2 | 2019-06-04T21:17:44.000Z | 2020-11-24T11:53:03.000Z | smartd_pyngui/__init__.py | deajan/smartd-pyngui | 582e054860d09a40c323ef13a36c68e54e279e69 | [
"BSD-3-Clause"
] | 2 | 2016-11-26T10:31:16.000Z | 2019-05-21T13:17:38.000Z | # Copyright 2018-2019 by Orsiris de Jong - contact@netpower.fr
#
# This is a dummy file to make the following directory a package
import sys
import os
# Fix so smartd_pyngui can be called outside from its directory (eg tests)
sys.path.insert(0, os.path.dirname(__file__))
from .smartd_pyngui import *
| 25.666667 | 74 | 0.75974 | 51 | 308 | 4.470588 | 0.784314 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.172078 | 308 | 11 | 75 | 28 | 0.858824 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
30aeb3d0531e7c7c0e850178a4c35d27385ffc6b | 308 | py | Python | utils/tot_count.py | andriluka/mechturk-public | 129bd8692d9ffbcce62413488c1ae30c5bb0fa50 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | utils/tot_count.py | andriluka/mechturk-public | 129bd8692d9ffbcce62413488c1ae30c5bb0fa50 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | utils/tot_count.py | andriluka/mechturk-public | 129bd8692d9ffbcce62413488c1ae30c5bb0fa50 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | import mechturk.annolib as al
import glob
import sys
import os
tot_len = 0
hits_dir = sys.argv[1]
while hits_dir[-1] == '/':
hits_dir = hits_dir[:-1]
files = glob.glob('%s/results_by_worker_%s/*al' % (hits_dir, os.path.basename(hits_dir)))
for f in files:
tot_len += len(al.parse(f))
print tot_len
| 20.533333 | 89 | 0.691558 | 57 | 308 | 3.526316 | 0.491228 | 0.208955 | 0.079602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015385 | 0.155844 | 308 | 14 | 90 | 22 | 0.757692 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.087662 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0.083333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
30be98f8517213063a98eddc341fedd8fbd19f61 | 310 | py | Python | api/admin.py | CMPUT404W20-Wed/CMPUT404-project-socialdistribution-tmp | a4198f6c627b1f461bbb982bbfd126aee98cca87 | [
"Apache-2.0"
] | 1 | 2020-02-05T20:59:50.000Z | 2020-02-05T20:59:50.000Z | api/admin.py | CMPUT404W20-Wed/CMPUT404-project-socialdistribution-tmp | a4198f6c627b1f461bbb982bbfd126aee98cca87 | [
"Apache-2.0"
] | 33 | 2020-02-17T03:58:23.000Z | 2020-04-07T20:03:44.000Z | api/admin.py | CMPUT404W20-Wed/CMPUT404-project-socialdistribution | a4198f6c627b1f461bbb982bbfd126aee98cca87 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from .models import User, Post, Comment, Friend, LocalLogin, RemoteLogin
# Register your models here.
admin.site.register(User)
admin.site.register(Post)
admin.site.register(Comment)
admin.site.register(Friend)
admin.site.register(RemoteLogin)
admin.site.register(LocalLogin)
| 28.181818 | 72 | 0.812903 | 42 | 310 | 6 | 0.380952 | 0.214286 | 0.404762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.080645 | 310 | 10 | 73 | 31 | 0.884211 | 0.083871 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
30ce999634f48d06869dcb8ad3f734215ddfa9a1 | 2,549 | py | Python | tests/slice_torture.py | ZYAZP/python2 | 7dc3b62eff51e1decb4a408122e77630fdc1687d | [
"MIT"
] | 1,062 | 2015-11-18T01:04:33.000Z | 2022-03-29T07:13:30.000Z | tests/slice_torture.py | ArrowSides/onelinerizer | 7dc3b62eff51e1decb4a408122e77630fdc1687d | [
"MIT"
] | 26 | 2015-11-17T06:58:07.000Z | 2022-01-15T18:11:16.000Z | tests/slice_torture.py | ArrowSides/onelinerizer | 7dc3b62eff51e1decb4a408122e77630fdc1687d | [
"MIT"
] | 100 | 2015-11-17T09:01:22.000Z | 2021-09-12T13:58:28.000Z | import types
def trace(name):
def f(self, *args):
print name, repr(args)
return 0
return f
def get(a, s):
a[1*s]
a[...]
a[:]
a[2*s:]
a[:3*s]
a[4*s:5*s]
a[::]
a[6*s::]
a[:7*s:]
a[::8*s]
a[9*s:10*s:]
a[11*s::12*s]
a[:13*s:14*s]
a[15*s:16*s:... | 20.556452 | 72 | 0.379757 | 511 | 2,549 | 1.808219 | 0.135029 | 0.08658 | 0.097403 | 0.04329 | 0.541126 | 0.457792 | 0.457792 | 0.387446 | 0.311688 | 0.311688 | 0 | 0.149165 | 0.342487 | 2,549 | 123 | 73 | 20.723577 | 0.402148 | 0 | 0 | 0 | 0 | 0 | 0.029031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.008621 | null | null | 0.017241 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
30e0e00a6ec462744423e78979a960a7812811e9 | 941 | py | Python | spira/lpe/containers.py | cloudcalvin/spira | 2dcaef188f2bc8c3839e1b5ff0be027e0cd4908c | [
"MIT"
] | null | null | null | spira/lpe/containers.py | cloudcalvin/spira | 2dcaef188f2bc8c3839e1b5ff0be027e0cd4908c | [
"MIT"
] | 1 | 2021-10-17T10:18:04.000Z | 2021-10-17T10:18:04.000Z | spira/lpe/containers.py | cloudcalvin/spira | 2dcaef188f2bc8c3839e1b5ff0be027e0cd4908c | [
"MIT"
] | null | null | null | from spira.gdsii.cell import Cell
from spira.gdsii.elemental.sref import SRef
from spira import param
class __CellContainer__(Cell):
cell = param.CellField()
def create_elementals(self, elems):
elems += SRef(structure=self.cell)
return elems
class __CellContainerWithTerminals__(__CellConta... | 20.021277 | 56 | 0.717322 | 95 | 941 | 6.705263 | 0.378947 | 0.070644 | 0.043956 | 0.072214 | 0.087912 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20085 | 941 | 46 | 57 | 20.456522 | 0.847074 | 0.146653 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.142857 | 0.190476 | 0.952381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
30eca833dfae67d6b6a2b044fc80e4f9f6af0eaf | 285 | py | Python | webtopay/admin.py | motiejus/django-webtopay | 6b7f3a56976e130982384b0575b01071f3613fee | [
"MIT"
] | 2 | 2016-10-06T11:10:54.000Z | 2016-12-29T00:02:43.000Z | webtopay/admin.py | motiejus/django-webtopay | 6b7f3a56976e130982384b0575b01071f3613fee | [
"MIT"
] | 1 | 2015-05-05T22:46:15.000Z | 2015-05-05T22:46:15.000Z | webtopay/admin.py | Motiejus/django-webtopay | 6b7f3a56976e130982384b0575b01071f3613fee | [
"MIT"
] | 4 | 2015-06-05T09:52:40.000Z | 2016-12-24T16:34:44.000Z | from django.contrib import admin
from webtopay.models import WebToPayResponse
class WebToPayResponseAdmin(admin.ModelAdmin):
list_display = ('__unicode__', 'name', 'surename', 'status', 'p_email',
'test')
admin.site.register(WebToPayResponse, WebToPayResponseAdmin)
| 28.5 | 75 | 0.754386 | 28 | 285 | 7.464286 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136842 | 285 | 9 | 76 | 31.666667 | 0.849594 | 0 | 0 | 0 | 0 | 0 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
30fcef97676a07e8f209f2cce66c59f98eff8f32 | 1,435 | py | Python | tests/types/test_custom_types.py | seanrcollings/arc | 77628b7bb99ac1869944c9c25a87aa3c80407492 | [
"MIT"
] | 2 | 2020-02-23T01:37:30.000Z | 2020-09-05T20:46:08.000Z | tests/types/test_custom_types.py | seanrcollings/arc | 77628b7bb99ac1869944c9c25a87aa3c80407492 | [
"MIT"
] | 116 | 2020-08-14T05:15:26.000Z | 2022-03-08T05:41:34.000Z | tests/types/test_custom_types.py | seanrcollings/arc | 77628b7bb99ac1869944c9c25a87aa3c80407492 | [
"MIT"
] | null | null | null | import pytest
from arc import CLI, errors
def test_convert(cli: CLI):
class TestType:
def __init__(self, value: str):
self.value = value
@classmethod
def __convert__(cls, value):
return cls(value)
@cli.command()
def command(val: TestType):
return v... | 20.211268 | 55 | 0.565157 | 158 | 1,435 | 4.917722 | 0.28481 | 0.069498 | 0.066924 | 0.05148 | 0.33462 | 0.290862 | 0.19305 | 0.19305 | 0.19305 | 0.19305 | 0 | 0.01032 | 0.324739 | 1,435 | 70 | 56 | 20.5 | 0.791538 | 0.128223 | 0 | 0.428571 | 0 | 0 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.285714 | false | 0 | 0.047619 | 0.142857 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
a51233717f90c0e4fb70f1aa162fcbe788347efe | 369 | py | Python | Modulo_2/semana2/agregacion/empleado.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | null | null | null | Modulo_2/semana2/agregacion/empleado.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | null | null | null | Modulo_2/semana2/agregacion/empleado.py | rubens233/cocid_python | 492ebdf21817e693e5eb330ee006397272f2e0cc | [
"MIT"
] | 1 | 2022-03-04T00:57:18.000Z | 2022-03-04T00:57:18.000Z | from salario import Salario
class Empleado():
salario: Salario
bono: float
def __init__(self, salario: Salario, bono: float):
self.bono = bono
self.salario = salario
def salario_anual(self):
return self.salario.pago_anual() + self.bono
salario = Salario(100)
obj_emp = Emple... | 19.421053 | 54 | 0.677507 | 47 | 369 | 5.12766 | 0.361702 | 0.232365 | 0.149378 | 0.190871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020906 | 0.222222 | 369 | 18 | 55 | 20.5 | 0.818815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.083333 | 0.083333 | 0.583333 | 0.083333 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
a515e4f422f2d94ec77a4790317b0e8a6183730e | 104 | py | Python | pajbot/migration_revisions/db/0013_stringify_stream_chunk_id.py | MrBean355/pajbot | 3f27aabccfb242f5e3e8eedd20c97633b0d39950 | [
"MIT"
] | 145 | 2019-06-08T15:38:40.000Z | 2022-03-29T22:51:47.000Z | pajbot/migration_revisions/db/0013_stringify_stream_chunk_id.py | MrBean355/pajbot | 3f27aabccfb242f5e3e8eedd20c97633b0d39950 | [
"MIT"
] | 671 | 2019-05-26T22:19:08.000Z | 2022-03-31T06:00:49.000Z | pajbot/migration_revisions/db/0013_stringify_stream_chunk_id.py | MrBean355/pajbot | 3f27aabccfb242f5e3e8eedd20c97633b0d39950 | [
"MIT"
] | 105 | 2019-05-25T18:22:13.000Z | 2022-02-23T00:57:27.000Z | def up(cursor, bot):
cursor.execute("ALTER TABLE stream_chunk ALTER COLUMN broadcast_id TYPE TEXT")
| 34.666667 | 82 | 0.769231 | 16 | 104 | 4.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144231 | 104 | 2 | 83 | 52 | 0.876404 | 0 | 0 | 0 | 0 | 0 | 0.576923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb4ea5bbaf99650dd3ac1346663333bea15343c9 | 415 | py | Python | loja/estoque/forms.py | stoledo85/django-elaborata | 6a1ec8054f4c45ee0a224ac378086ce967a1a567 | [
"MIT"
] | null | null | null | loja/estoque/forms.py | stoledo85/django-elaborata | 6a1ec8054f4c45ee0a224ac378086ce967a1a567 | [
"MIT"
] | null | null | null | loja/estoque/forms.py | stoledo85/django-elaborata | 6a1ec8054f4c45ee0a224ac378086ce967a1a567 | [
"MIT"
] | null | null | null | from django.forms import ModelForm
from .models import Produto
from .models import Marca
from .models import Categoria
class ProdutoForm(ModelForm):
class Meta:
model = Produto
fields = "__all__"
class MarcaForm(ModelForm):
class Meta:
model = Marca
fields = "__all__"
class Ca... | 18.863636 | 34 | 0.66506 | 44 | 415 | 6 | 0.386364 | 0.113636 | 0.181818 | 0.261364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26747 | 415 | 21 | 35 | 19.761905 | 0.868421 | 0 | 0 | 0.375 | 0 | 0 | 0.050847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
eb79f908bac14a334b3a91f8ff39e6a6d0702b6e | 311 | py | Python | boilerplate/just.py | moaible/python-pip-library-boilerplate | dba467a9f27e332709aebb5124336163eae76676 | [
"MIT"
] | null | null | null | boilerplate/just.py | moaible/python-pip-library-boilerplate | dba467a9f27e332709aebb5124336163eae76676 | [
"MIT"
] | null | null | null | boilerplate/just.py | moaible/python-pip-library-boilerplate | dba467a9f27e332709aebb5124336163eae76676 | [
"MIT"
] | null | null | null | #!usr/bin/env python
# -*- coding: utf-8 -*-
from .generator import Generator
class JustGenerator(Generator[int, str]):
def name(self) -> str:
return 'JustGenerator'
def enabled(self, input) -> bool:
return True
def generate(self, input: int) -> str:
return str(input)
| 18.294118 | 42 | 0.617363 | 38 | 311 | 5.052632 | 0.605263 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004274 | 0.247588 | 311 | 16 | 43 | 19.4375 | 0.816239 | 0.131833 | 0 | 0 | 0 | 0 | 0.048507 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.375 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
eb8c2dafd010c7bf72ec999fe3e9d16214f09e11 | 345 | py | Python | Validation/MtdValidation/python/btlDigiHits_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 6 | 2017-09-08T14:12:56.000Z | 2022-03-09T23:57:01.000Z | Validation/MtdValidation/python/btlDigiHits_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 545 | 2017-09-19T17:10:19.000Z | 2022-03-07T16:55:27.000Z | Validation/MtdValidation/python/btlDigiHits_cfi.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 14 | 2017-10-04T09:47:21.000Z | 2019-10-23T18:04:45.000Z | import FWCore.ParameterSet.Config as cms
from Validation.MtdValidation.btlDigiHitsDefault_cfi import btlDigiHitsDefault as _btlDigiHitsDefault
btlDigiHits = _btlDigiHitsDefault.clone()
from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
premix_stage2.toModify(btlDigiHits, inputTag = cms.InputTag... | 49.285714 | 101 | 0.869565 | 36 | 345 | 8.138889 | 0.611111 | 0.122867 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009288 | 0.063768 | 345 | 6 | 102 | 57.5 | 0.897833 | 0 | 0 | 0 | 0 | 0 | 0.046377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
eba9d31f688bc9b4e7c859a0632699ea8b619004 | 200 | py | Python | inputs/testPosition.py | boabdilperez/aoc-2021 | 082aee0460e0f305a01a0f97e88c664ff53d67fe | [
"Unlicense"
] | null | null | null | inputs/testPosition.py | boabdilperez/aoc-2021 | 082aee0460e0f305a01a0f97e88c664ff53d67fe | [
"Unlicense"
] | null | null | null | inputs/testPosition.py | boabdilperez/aoc-2021 | 082aee0460e0f305a01a0f97e88c664ff53d67fe | [
"Unlicense"
] | null | null | null | # pylint: disable-all
"""Test inputs for day 2"""
test_position: str = """forward 5
down 5
forward 8
up 3
down 8
forward 2"""
test_position_answer: int = 150
test_position_answer_day_two: int = 900
| 15.384615 | 39 | 0.73 | 35 | 200 | 3.971429 | 0.6 | 0.258993 | 0.18705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077844 | 0.165 | 200 | 12 | 40 | 16.666667 | 0.754491 | 0.21 | 0 | 0 | 0 | 0 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ebb9603e909ac67f4cee1ce72b1a2d11d116b12f | 167 | py | Python | mochi/__init__.py | chajadan/mochi | d31151449517f037fa52e487128de5c532e6e910 | [
"MIT"
] | null | null | null | mochi/__init__.py | chajadan/mochi | d31151449517f037fa52e487128de5c532e6e910 | [
"MIT"
] | null | null | null | mochi/__init__.py | chajadan/mochi | d31151449517f037fa52e487128de5c532e6e910 | [
"MIT"
] | 1 | 2021-12-05T17:57:37.000Z | 2021-12-05T17:57:37.000Z | __author__ = 'Yasushi Itoh'
__version__ = '0.1.1'
__license__ = 'MIT License'
import sys
IS_PYTHON_34 = sys.version_info.major == 3 and sys.version_info.minor == 4
| 18.555556 | 74 | 0.730539 | 26 | 167 | 4.076923 | 0.730769 | 0.188679 | 0.264151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.049296 | 0.149701 | 167 | 8 | 75 | 20.875 | 0.697183 | 0 | 0 | 0 | 0 | 0 | 0.167665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ebc69a6559ce40d7330fc2bbbcf125d53ff0b21a | 82 | py | Python | mltoolkit/mlmo/utils/constants/checkpoint.py | stungkit/Copycat-abstractive-opinion-summarizer | 04fe5393a7bb6883516766b762f6a0c530e95375 | [
"MIT"
] | 51 | 2020-09-25T07:05:01.000Z | 2022-03-17T12:07:40.000Z | mltoolkit/mlmo/utils/constants/checkpoint.py | stungkit/Copycat-abstractive-opinion-summarizer | 04fe5393a7bb6883516766b762f6a0c530e95375 | [
"MIT"
] | 4 | 2020-10-19T10:00:22.000Z | 2022-03-14T17:02:47.000Z | mltoolkit/mlmo/utils/constants/checkpoint.py | stungkit/Copycat-abstractive-opinion-summarizer | 04fe5393a7bb6883516766b762f6a0c530e95375 | [
"MIT"
] | 22 | 2020-09-22T01:06:47.000Z | 2022-01-26T14:20:09.000Z | MODEL_PARAMS = 'model_params'
OPTIMIZER_STATE = 'optimizer_state'
EPOCH = 'epoch'
| 20.5 | 35 | 0.780488 | 10 | 82 | 6 | 0.5 | 0.366667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109756 | 82 | 3 | 36 | 27.333333 | 0.821918 | 0 | 0 | 0 | 0 | 0 | 0.390244 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ccde18c42fc25c01f8687c164c97636011876159 | 3,301 | py | Python | g_selfatt/groups/group.py | dwromero/g_selfatt | 14204b3eb2a9d70329ee8f33a04ac5965c11e8c6 | [
"MIT"
] | 19 | 2021-03-11T08:58:32.000Z | 2022-03-23T07:55:43.000Z | g_selfatt/groups/group.py | dwromero/g_selfatt | 14204b3eb2a9d70329ee8f33a04ac5965c11e8c6 | [
"MIT"
] | 4 | 2021-11-25T07:52:41.000Z | 2022-02-16T16:41:37.000Z | g_selfatt/groups/group.py | dwromero/g_selfatt | 14204b3eb2a9d70329ee8f33a04ac5965c11e8c6 | [
"MIT"
] | 2 | 2021-10-29T21:07:04.000Z | 2021-12-10T05:14:17.000Z | from typing import Generic, Tuple, TypeVar
import torch.nn as nn
from torch import Tensor
GroupElement = TypeVar("GroupElement")
class Group(nn.Module, Generic[GroupElement]):
def __init__(self):
"""
Boilerplate for the construction of a Group class.
Subclasses of this class must implem... | 37.089888 | 139 | 0.666768 | 439 | 3,301 | 4.870159 | 0.259681 | 0.042095 | 0.050515 | 0.044434 | 0.341908 | 0.296071 | 0.207671 | 0.155285 | 0.155285 | 0.155285 | 0 | 0.002859 | 0.258407 | 3,301 | 88 | 140 | 37.511364 | 0.870507 | 0.476219 | 0 | 0.264706 | 0 | 0 | 0.031615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.352941 | false | 0 | 0.088235 | 0.117647 | 0.617647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
ccdf371f00f1e4acb065556487ba9cc74a9e296d | 3,178 | py | Python | Tree/Node.py | jakedoesgithub/prog_langs_project_scheme_interpreter | 87bc03ab291abd7691db067ab8d5c72282b13c1a | [
"MIT"
] | null | null | null | Tree/Node.py | jakedoesgithub/prog_langs_project_scheme_interpreter | 87bc03ab291abd7691db067ab8d5c72282b13c1a | [
"MIT"
] | null | null | null | Tree/Node.py | jakedoesgithub/prog_langs_project_scheme_interpreter | 87bc03ab291abd7691db067ab8d5c72282b13c1a | [
"MIT"
] | null | null | null | # Node -- Base class for parse tree node objects
import sys
from abc import ABC, abstractmethod
class Node(ABC):
# The argument of print(int) is the number of characters to indent.
# Every subclass of Node must implement print(int).
# The first argument of print(int, bool) is the number of chara... | 37.388235 | 95 | 0.62618 | 434 | 3,178 | 4.569124 | 0.370968 | 0.044377 | 0.04942 | 0.038326 | 0.159355 | 0.118003 | 0.104892 | 0.073626 | 0.040343 | 0 | 0 | 0 | 0.305853 | 3,178 | 84 | 96 | 37.833333 | 0.898912 | 0.464758 | 0 | 0.304348 | 0 | 0 | 0.154769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.369565 | false | 0.021739 | 0.108696 | 0.217391 | 0.782609 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
691097fbc62b2ffd48b829fcf8e5e1dcfef1e585 | 73 | py | Python | twisted/plugins/trompet_plugin.py | aether-space/trompet | 7c0b8576782a790ae6623ab4f930f43174e5559d | [
"BSD-3-Clause"
] | null | null | null | twisted/plugins/trompet_plugin.py | aether-space/trompet | 7c0b8576782a790ae6623ab4f930f43174e5559d | [
"BSD-3-Clause"
] | null | null | null | twisted/plugins/trompet_plugin.py | aether-space/trompet | 7c0b8576782a790ae6623ab4f930f43174e5559d | [
"BSD-3-Clause"
] | null | null | null | from trompet.service import TrompetMaker
serviceMaker = TrompetMaker()
| 14.6 | 40 | 0.821918 | 7 | 73 | 8.571429 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123288 | 73 | 4 | 41 | 18.25 | 0.9375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
69132e34c70f953741e64caf330d5887519b5c2c | 192 | py | Python | yosim/signatures/apps.py | thoongnv/yosim | 22bcaceb2c40735363496d9404970a73c4b944bc | [
"MIT"
] | 2 | 2022-02-15T03:41:13.000Z | 2022-02-15T03:44:46.000Z | yosim/signatures/apps.py | thoongnv/yosim | 22bcaceb2c40735363496d9404970a73c4b944bc | [
"MIT"
] | 5 | 2021-06-08T22:26:24.000Z | 2022-03-12T00:21:35.000Z | yosim/signatures/apps.py | thoongnv/yosim | 22bcaceb2c40735363496d9404970a73c4b944bc | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.apps import AppConfig
class SignaturesConfig(AppConfig):
name = 'yosim.signatures'
verbose_name = "Signatures"
def ready(self):
pass
| 17.454545 | 34 | 0.65625 | 21 | 192 | 5.952381 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006711 | 0.223958 | 192 | 10 | 35 | 19.2 | 0.832215 | 0.109375 | 0 | 0 | 0 | 0 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
693d1bc2ad0b9d1f552d77d8243248d6fca93658 | 182 | py | Python | crowddata/__init__.py | muffin-rice/pad-cogs | 820ecf08f9569a3d7cf3264d0eb9567264b42edf | [
"MIT"
] | 3 | 2021-04-16T23:47:59.000Z | 2021-09-10T06:00:18.000Z | crowddata/__init__.py | muffin-rice/pad-cogs | 820ecf08f9569a3d7cf3264d0eb9567264b42edf | [
"MIT"
] | 708 | 2020-10-31T08:02:40.000Z | 2022-03-31T09:39:25.000Z | crowddata/__init__.py | muffin-rice/pad-cogs | 820ecf08f9569a3d7cf3264d0eb9567264b42edf | [
"MIT"
] | 20 | 2020-11-01T23:11:29.000Z | 2022-02-07T07:04:15.000Z | from .crowddata import CrowdData
__red_end_user_data_statement__ = "All explicitly stored user preferences are kept persistantly."
def setup(bot):
bot.add_cog(CrowdData(bot))
| 22.75 | 97 | 0.796703 | 25 | 182 | 5.44 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131868 | 182 | 7 | 98 | 26 | 0.860759 | 0 | 0 | 0 | 0 | 0 | 0.335165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
694d84f63286e74e5735054753f79e3ba6909eb1 | 2,512 | py | Python | third_party/leb128/__init__.py | talrasha/emscripten | 5ece531a4bc724b133da0e1b0ce061e0c2e7bebd | [
"MIT"
] | 9,724 | 2015-01-01T02:06:30.000Z | 2019-01-17T15:13:51.000Z | third_party/leb128/__init__.py | talrasha/emscripten | 5ece531a4bc724b133da0e1b0ce061e0c2e7bebd | [
"MIT"
] | 7,584 | 2019-01-17T22:58:27.000Z | 2022-03-31T23:10:22.000Z | third_party/leb128/__init__.py | talrasha/emscripten | 5ece531a4bc724b133da0e1b0ce061e0c2e7bebd | [
"MIT"
] | 1,519 | 2015-01-01T18:11:12.000Z | 2019-01-17T14:16:02.000Z | """
https://en.wikipedia.org/wiki/LEB128
LEB128 or Little Endian Base 128 is a form of variable-length code
compression used to store an arbitrarily large integer in a small number of
bytes. LEB128 is used in the DWARF debug file format and the WebAssembly
binary encoding for all integer literals.
"""
import typing
... | 27.911111 | 117 | 0.513933 | 328 | 2,512 | 3.911585 | 0.262195 | 0.070148 | 0.065472 | 0.034295 | 0.724864 | 0.724864 | 0.650039 | 0.650039 | 0.650039 | 0.650039 | 0 | 0.050479 | 0.37699 | 2,512 | 89 | 118 | 28.224719 | 0.769329 | 0.308519 | 0 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026715 | 0 | 0.017241 | 1 | 0.103448 | false | 0 | 0.017241 | 0 | 0.258621 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
694e25beac122942672500d20b9f197481e49cf1 | 500 | py | Python | qctools/__init__.py | MFSJMenger/qctools | dac34376a63f70dc1865f4563e815dc100f6c1a9 | [
"Apache-2.0"
] | 3 | 2019-05-03T13:53:35.000Z | 2020-02-13T15:54:44.000Z | qctools/__init__.py | MFSJMenger/qctools | dac34376a63f70dc1865f4563e815dc100f6c1a9 | [
"Apache-2.0"
] | null | null | null | qctools/__init__.py | MFSJMenger/qctools | dac34376a63f70dc1865f4563e815dc100f6c1a9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Top-level package for qctools."""
__author__ = """Maximilian Menger"""
__email__ = 'm.f.s.j.menger@rug.nl'
__version__ = '0.2.0'
from .generator import generate_filereader
from .parser import GaussianReader
# molden
from .molden_config import MoldenParser
# add events and show possible even... | 27.777778 | 42 | 0.774 | 71 | 500 | 5.183099 | 0.633803 | 0.108696 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009195 | 0.13 | 500 | 17 | 43 | 29.411765 | 0.836782 | 0.262 | 0 | 0 | 1 | 0 | 0.119444 | 0.058333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.7 | 0 | 0.7 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
69507bf8fed0c4db8dc7c000c9c3ec40ae687502 | 1,612 | py | Python | Time Series Analysis Labs/argon.py | juancastaneda1/Course-Work | e79a692d6a2e9d711fd9aff3864c94a079c5bdb2 | [
"MIT"
] | null | null | null | Time Series Analysis Labs/argon.py | juancastaneda1/Course-Work | e79a692d6a2e9d711fd9aff3864c94a079c5bdb2 | [
"MIT"
] | null | null | null | Time Series Analysis Labs/argon.py | juancastaneda1/Course-Work | e79a692d6a2e9d711fd9aff3864c94a079c5bdb2 | [
"MIT"
] | null | null | null | import numpy as np
# the structure factor data for Argon
YanData = np.array([
0.161000, 0.138000, 0.120000, 0.105000, 0.088000, 0.086000, 0.087000, 0.088000,
0.090000, 0.094000, 0.105000, 0.125000, 0.152000, 0.277000, 0.468000, 1.248000,
2.391000, 2.604000, 1.725000, 1.160000, 0.904000, 0.761000, 0.6... | 59.703704 | 84 | 0.648263 | 289 | 1,612 | 3.615917 | 0.342561 | 0.147368 | 0.130144 | 0.18756 | 0.399043 | 0.336842 | 0.336842 | 0.228708 | 0.228708 | 0.228708 | 0 | 0.695159 | 0.179901 | 1,612 | 26 | 85 | 62 | 0.09531 | 0.051489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
15d251229b799e133881d1a62a5c11e25f893674 | 3,346 | py | Python | tests/test_csvkit.py | diraol/csvkit | 118f79dbf013c7be2c160bb7dc5990f0997adc92 | [
"MIT"
] | null | null | null | tests/test_csvkit.py | diraol/csvkit | 118f79dbf013c7be2c160bb7dc5990f0997adc92 | [
"MIT"
] | null | null | null | tests/test_csvkit.py | diraol/csvkit | 118f79dbf013c7be2c160bb7dc5990f0997adc92 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from cStringIO import StringIO
import unittest
import csvkit
class TestCSVKitReader(unittest.TestCase):
def test_utf8(self):
with open('examples/test_utf8.csv') as f:
reader = csvkit.CSVKitReader(f, encoding='utf-8')
self.assertEqual(r... | 29.610619 | 88 | 0.538553 | 414 | 3,346 | 4.318841 | 0.161836 | 0.151007 | 0.16443 | 0.195749 | 0.755034 | 0.686801 | 0.618568 | 0.618568 | 0.618568 | 0.618568 | 0 | 0.022486 | 0.268978 | 3,346 | 112 | 89 | 29.875 | 0.706868 | 0.012552 | 0 | 0.722892 | 0 | 0 | 0.061799 | 0.013329 | 0 | 0 | 0 | 0 | 0.216867 | 1 | 0.144578 | false | 0 | 0.036145 | 0 | 0.228916 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
15dc05c4240aa8960eb4f4d9be7772f038bd3f17 | 733 | py | Python | src/apps/api/serializers.py | Remy-TPP/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | null | null | null | src/apps/api/serializers.py | Remy-TPP/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | 14 | 2020-06-23T20:32:16.000Z | 2022-01-13T03:13:20.000Z | src/apps/api/serializers.py | MartinCura/q-api | 761dd2d15557cb9a8bdc0b397fc10e0cf7c95c03 | [
"MIT"
] | null | null | null | from django.conf import settings
from rest_auth.serializers import PasswordResetSerializer
from rest_auth.models import TokenModel
from rest_framework.serializers import ModelSerializer
from apps.profiles.serializers import ProfileMinimalSerializer
class CustomPasswordResetSerializer(PasswordResetSerializer):
de... | 28.192308 | 63 | 0.73397 | 71 | 733 | 7.408451 | 0.591549 | 0.045627 | 0.045627 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188267 | 733 | 25 | 64 | 29.32 | 0.884034 | 0.036835 | 0 | 0 | 0 | 0 | 0.130435 | 0.034783 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.1875 | 0.3125 | 0.0625 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
15f24c3b3fd119d28459cc68c94286c306d4f1d8 | 1,857 | py | Python | ApiManager/utils/statussend.py | LimnN/HttpRunnerManager | 1461a86e722dc6838e67f63ce00d884c5a85b6fb | [
"MIT"
] | null | null | null | ApiManager/utils/statussend.py | LimnN/HttpRunnerManager | 1461a86e722dc6838e67f63ce00d884c5a85b6fb | [
"MIT"
] | null | null | null | ApiManager/utils/statussend.py | LimnN/HttpRunnerManager | 1461a86e722dc6838e67f63ce00d884c5a85b6fb | [
"MIT"
] | null | null | null | import requests
url = "http://10.101.12.4:10099/v2/device/event"
querystring = {"token":"0d9962ff210f4e56588c21e90d8b7be70c8cca2b5615c29441be386b6d943803"}
payload = "{\r\n \"deviceType\": \"CameraPeopleCountingSystem\", \r\n \"deviceID\": \"HCZ-00108\", \r\n \"timestamp\": 1554793017, \r\n \"message\": ... | 109.235294 | 1,431 | 0.789445 | 141 | 1,857 | 10.368794 | 0.64539 | 0.017784 | 0.01026 | 0.005472 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117107 | 0.061928 | 1,857 | 16 | 1,432 | 116.0625 | 0.722158 | 0 | 0 | 0 | 0 | 0 | 0.206247 | 0.05385 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.090909 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
15f3de43ab080374a9dacb0bb700350ab748fb83 | 800 | py | Python | core/migrations/0001_initial.py | TwilioDevEd/receive-mms-python | a342fec120674625326bdfb45eb11f37c9cec463 | [
"MIT"
] | null | null | null | core/migrations/0001_initial.py | TwilioDevEd/receive-mms-python | a342fec120674625326bdfb45eb11f37c9cec463 | [
"MIT"
] | null | null | null | core/migrations/0001_initial.py | TwilioDevEd/receive-mms-python | a342fec120674625326bdfb45eb11f37c9cec463 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-12-15 16:32
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='MMSMedia',
fields=[
('id', models.BigAutoFiel... | 29.62963 | 117 | 0.56875 | 81 | 800 | 5.469136 | 0.617284 | 0.1693 | 0.20316 | 0.27088 | 0.248307 | 0.130926 | 0 | 0 | 0 | 0 | 0 | 0.044484 | 0.2975 | 800 | 26 | 118 | 30.769231 | 0.743772 | 0.05375 | 0 | 0 | 1 | 0 | 0.086093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c60473288b44fda81a223f71eed9cadc0db681cc | 1,429 | py | Python | cloudrail/knowledge/context/aws/iam/iam_user_group_membership.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | cloudrail/knowledge/context/aws/iam/iam_user_group_membership.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | cloudrail/knowledge/context/aws/iam/iam_user_group_membership.py | my-devops-info/cloudrail-knowledge | b7c1bbd6fe1faeb79c105a01c0debbe24d031a0e | [
"MIT"
] | null | null | null | from typing import List
from cloudrail.knowledge.context.aws.service_name import AwsServiceName
from cloudrail.knowledge.context.aws.aws_resource import AwsResource
class IamUserGroupMembership(AwsResource):
"""
Attributes:
user: The user the membership is focused on.
groups: The ... | 32.477273 | 87 | 0.629811 | 182 | 1,429 | 4.78022 | 0.373626 | 0.045977 | 0.041379 | 0.066667 | 0.073563 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00377 | 0.257523 | 1,429 | 43 | 88 | 33.232558 | 0.816211 | 0.080476 | 0 | 0 | 0 | 0 | 0.088419 | 0.025822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.035714 | 0.107143 | 0.107143 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c60f1164ada07d37f1ab00e8380d0e79be71387d | 17 | py | Python | src/test/resources/completion/python/string.before.py | Clindbergh/yet-another-emoji-support | 4e07d119a00380d2dc5ca7a04b8c483e0cf3080d | [
"Apache-2.0"
] | 33 | 2019-06-06T02:43:54.000Z | 2021-12-10T07:38:39.000Z | src/test/resources/completion/python/string.before.py | Clindbergh/yet-another-emoji-support | 4e07d119a00380d2dc5ca7a04b8c483e0cf3080d | [
"Apache-2.0"
] | 52 | 2019-06-07T01:15:49.000Z | 2022-03-30T05:29:49.000Z | src/test/resources/completion/python/string.before.py | Clindbergh/yet-another-emoji-support | 4e07d119a00380d2dc5ca7a04b8c483e0cf3080d | [
"Apache-2.0"
] | 4 | 2019-06-20T10:02:36.000Z | 2021-04-10T05:09:44.000Z | text = ":<caret>" | 17 | 17 | 0.529412 | 2 | 17 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117647 | 17 | 1 | 17 | 17 | 0.6 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c64cd229e926f327e98b79f165328b00df3c81b3 | 196 | py | Python | core-python/Core_Python/testing/RearrangeNames.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 9 | 2020-04-23T05:24:19.000Z | 2022-02-17T16:37:51.000Z | core-python/Core_Python/testing/RearrangeNames.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 5 | 2020-10-01T05:08:37.000Z | 2020-10-12T03:18:10.000Z | core-python/Core_Python/testing/RearrangeNames.py | theumang100/tutorials-1 | 497f54c2adb022c316530319a168fca1c007d4b1 | [
"MIT"
] | 9 | 2020-04-28T14:06:41.000Z | 2021-10-19T18:32:28.000Z | import re
def rearrange_names(name):
username = re.search(r"^([\w \.-]*), ([\w \.-]*)$", name)
if username is None:
return name
return "{} {}".format(username[2],username[1])
| 24.5 | 61 | 0.556122 | 25 | 196 | 4.32 | 0.68 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012903 | 0.209184 | 196 | 7 | 62 | 28 | 0.683871 | 0 | 0 | 0 | 0 | 0 | 0.158163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
d68c8a1de2b503bb1b6cdbe869c8b74647afc3d9 | 318 | py | Python | chat/views.py | omar115/django_group_chat | 916dc51e180bbd2160eebfd4570da6a063fc6b2b | [
"MIT"
] | null | null | null | chat/views.py | omar115/django_group_chat | 916dc51e180bbd2160eebfd4570da6a063fc6b2b | [
"MIT"
] | null | null | null | chat/views.py | omar115/django_group_chat | 916dc51e180bbd2160eebfd4570da6a063fc6b2b | [
"MIT"
] | null | null | null | from django.shortcuts import render
# Create your views here.
def homepage(request):
return render(request, 'index.html')
def roomview(request):
room_no = request.POST['room_no']
room_name = request.POST['room_name']
return render(request, 'room.html', {'room_no' : room_no, 'room_name' : room_name}) | 31.8 | 87 | 0.713836 | 45 | 318 | 4.866667 | 0.444444 | 0.109589 | 0.136986 | 0.127854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150943 | 318 | 10 | 87 | 31.8 | 0.811111 | 0.072327 | 0 | 0 | 0 | 0 | 0.173469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d6928279d3a6ab5c8e66ca396460c46840a8bf7b | 1,688 | py | Python | evaluating/playerdata.py | yeonghoey/playmatsys | f60be10b5287e94e29d9137ab5c6c4ffd078a1f6 | [
"MIT"
] | 4 | 2015-05-21T14:58:06.000Z | 2015-06-19T05:23:03.000Z | evaluating/playerdata.py | hoeysoft/playmatsys | f60be10b5287e94e29d9137ab5c6c4ffd078a1f6 | [
"MIT"
] | null | null | null | evaluating/playerdata.py | hoeysoft/playmatsys | f60be10b5287e94e29d9137ab5c6c4ffd078a1f6 | [
"MIT"
] | null | null | null | # define models related with Player
from kivy.event import EventDispatcher
from kivy.properties import DictProperty, ListProperty
# trueskill
from trueskill import TrueSkill
# project
from settings import *
_tscalc = TrueSkill(mu = MEAN, sigma = STDDEV, \
beta = STDDEV/2., tau = STDDEV/100.... | 28.610169 | 75 | 0.634479 | 202 | 1,688 | 5.232673 | 0.376238 | 0.047304 | 0.039735 | 0.051088 | 0.07947 | 0.043519 | 0 | 0 | 0 | 0 | 0 | 0.011067 | 0.250592 | 1,688 | 58 | 76 | 29.103448 | 0.824506 | 0.104265 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.194444 | 0.611111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d6a1441946bb644860f16c59e82f4e941959d35f | 60 | py | Python | projects/g4h1-wsn/src/bystander/__init__.py | keybrl/xdu-coursework | 9d0e905bef28c18d87d3b97643de0d32f9f08ee0 | [
"MIT"
] | null | null | null | projects/g4h1-wsn/src/bystander/__init__.py | keybrl/xdu-coursework | 9d0e905bef28c18d87d3b97643de0d32f9f08ee0 | [
"MIT"
] | null | null | null | projects/g4h1-wsn/src/bystander/__init__.py | keybrl/xdu-coursework | 9d0e905bef28c18d87d3b97643de0d32f9f08ee0 | [
"MIT"
] | null | null | null | from .core import Bystander
__all__ = ['Bystander', ]
| 12 | 28 | 0.65 | 6 | 60 | 5.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233333 | 60 | 4 | 29 | 15 | 0.76087 | 0 | 0 | 0 | 0 | 0 | 0.160714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d6a419410a4bea23a215761be4a0816d0ef55e16 | 1,755 | py | Python | AlgoExpert/stacks/MinMaxStack.py | Muzque/Leetcode | d06365792c9ef48e0a290da00ba5e71f212554d5 | [
"MIT"
] | 1 | 2021-05-11T09:52:38.000Z | 2021-05-11T09:52:38.000Z | AlgoExpert/stacks/MinMaxStack.py | Muzque/Leetcode | d06365792c9ef48e0a290da00ba5e71f212554d5 | [
"MIT"
] | null | null | null | AlgoExpert/stacks/MinMaxStack.py | Muzque/Leetcode | d06365792c9ef48e0a290da00ba5e71f212554d5 | [
"MIT"
] | 1 | 2021-05-05T04:13:17.000Z | 2021-05-05T04:13:17.000Z | # Feel free to add new properties and methods to the class.
"""
class MinMaxStack:
def __init__(self):
self.stack = []
self.min = float('inf')
self.max = float('-inf')
def _update_min(self, num, drop=False):
if drop and num == self.min:
self.min = min(self.stack or [... | 25.071429 | 59 | 0.553846 | 232 | 1,755 | 4.103448 | 0.176724 | 0.103992 | 0.088235 | 0.058824 | 0.563025 | 0.548319 | 0.432773 | 0.390756 | 0.390756 | 0.323529 | 0 | 0.004139 | 0.311681 | 1,755 | 69 | 60 | 25.434783 | 0.78394 | 0.615954 | 0 | 0 | 0 | 0 | 0.03609 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
d6ca7107dca220bd065ae762b2e3cc75fdc14130 | 151 | py | Python | instructors/lessons/practical_utils/examples/in_class/1_answer_ashwini.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 46 | 2017-09-27T20:19:36.000Z | 2020-12-08T10:07:19.000Z | instructors/lessons/practical_utils/examples/in_class/1_answer_ashwini.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 6 | 2018-01-09T08:07:37.000Z | 2020-09-07T12:25:13.000Z | instructors/lessons/practical_utils/examples/in_class/1_answer_ashwini.py | mgadagin/PythonClass | 70b370362d75720b3fb0e1d6cc8158f9445e9708 | [
"MIT"
] | 18 | 2017-10-10T02:06:51.000Z | 2019-12-01T10:18:13.000Z | import datetime
dt = '21/03/2012'
day, month, year = (int(x) for x in dt.split('/'))
ans = datetime.date(year, month, day)
print ans.strftime("%A") | 30.2 | 54 | 0.642384 | 26 | 151 | 3.730769 | 0.730769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062992 | 0.15894 | 151 | 5 | 55 | 30.2 | 0.700787 | 0 | 0 | 0 | 0 | 0 | 0.085526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.2 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
d6ce6f37f47384a0f0b0552433f9b5de8ae4ca1f | 153 | py | Python | code.py | harshkumar13/test | 71e6db1544de5e02d2f91fbe8add76e09ecae433 | [
"MIT"
] | null | null | null | code.py | harshkumar13/test | 71e6db1544de5e02d2f91fbe8add76e09ecae433 | [
"MIT"
] | null | null | null | code.py | harshkumar13/test | 71e6db1544de5e02d2f91fbe8add76e09ecae433 | [
"MIT"
] | null | null | null |
def do_something(x):
sq_x=x**2
return (sq_x) # this will make it much easier in future problems to see that something is actually happening
| 30.6 | 116 | 0.712418 | 27 | 153 | 3.925926 | 0.814815 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008475 | 0.228758 | 153 | 4 | 117 | 38.25 | 0.889831 | 0.601307 | 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 | 0 | 0 | 0 | 3 |
d6d11b620f1c9d9daedc62106a3eb19d840c1c1a | 123 | py | Python | src/train.py | amitjoshi9627/isCovid | 8816557ff6880936d162abb13dcab94bcd70a77b | [
"MIT"
] | null | null | null | src/train.py | amitjoshi9627/isCovid | 8816557ff6880936d162abb13dcab94bcd70a77b | [
"MIT"
] | null | null | null | src/train.py | amitjoshi9627/isCovid | 8816557ff6880936d162abb13dcab94bcd70a77b | [
"MIT"
] | null | null | null | import engine
from model import CovidModel
if __name__ == "__main__":
model = CovidModel()
engine.train_fn(model)
| 17.571429 | 28 | 0.723577 | 15 | 123 | 5.333333 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186992 | 123 | 6 | 29 | 20.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
d6d2ddb055d9e1a7a74b9f1bf935d3828001a62a | 309 | py | Python | hypernets/experiment/__init__.py | BochenLv/Hypernets | 87f142804c9b56b89223fce8b641aac0d1e3c287 | [
"Apache-2.0"
] | 1 | 2021-06-05T11:10:19.000Z | 2021-06-05T11:10:19.000Z | hypernets/experiment/__init__.py | BochenLv/Hypernets | 87f142804c9b56b89223fce8b641aac0d1e3c287 | [
"Apache-2.0"
] | null | null | null | hypernets/experiment/__init__.py | BochenLv/Hypernets | 87f142804c9b56b89223fce8b641aac0d1e3c287 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
__author__ = 'yangjian'
"""
"""
from ._experiment import Experiment, ExperimentCallback
from .general import GeneralExperiment
from .compete import CompeteExperiment, SteppedExperiment
from ._callback import ConsoleCallback, SimpleNotebookCallback
from ._maker import make_experiment
| 25.75 | 62 | 0.805825 | 29 | 309 | 8.310345 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003636 | 0.110032 | 309 | 11 | 63 | 28.090909 | 0.872727 | 0.064725 | 0 | 0 | 0 | 0 | 0.028674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.833333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ba42545bdfd0253c12e01839901bb2ddedf8f797 | 290 | py | Python | jauth/model/token.py | pjongy/jauth | 6e09129e263fb64bc7523042715459ebe8215487 | [
"MIT"
] | 1 | 2020-09-08T08:15:53.000Z | 2020-09-08T08:15:53.000Z | jauth/model/token.py | pjongy/jauth | 6e09129e263fb64bc7523042715459ebe8215487 | [
"MIT"
] | 6 | 2020-08-03T07:32:45.000Z | 2021-08-15T13:15:30.000Z | jauth/model/token.py | pjongy/jauth | 6e09129e263fb64bc7523042715459ebe8215487 | [
"MIT"
] | 1 | 2020-08-19T08:33:44.000Z | 2020-08-19T08:33:44.000Z | from uuid import UUID
from tortoise import fields
from tortoise.models import Model
from jauth.model.mixin import TimestampMixin
class Token(Model, TimestampMixin):
class Meta:
table = "token"
id: UUID = fields.UUIDField(pk=True)
user_id: UUID = fields.UUIDField()
| 19.333333 | 44 | 0.727586 | 38 | 290 | 5.526316 | 0.5 | 0.114286 | 0.114286 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.196552 | 290 | 14 | 45 | 20.714286 | 0.901288 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ba54bf2e01df3b2c1a75cfe06271d98c27c1eaf7 | 839 | py | Python | rplugin/python3/nvim_diary_template/helpers/event_helpers.py | CrossR/nvim_notes | 355bfec2339d1c6a612e1a89e6e4a3aed9e70f43 | [
"MIT"
] | 6 | 2019-01-11T23:09:32.000Z | 2021-03-04T04:22:04.000Z | rplugin/python3/nvim_diary_template/helpers/event_helpers.py | CrossR/nvim_notes | 355bfec2339d1c6a612e1a89e6e4a3aed9e70f43 | [
"MIT"
] | 20 | 2018-07-22T16:20:56.000Z | 2019-11-10T14:11:05.000Z | rplugin/python3/nvim_diary_template/helpers/event_helpers.py | CrossR/nvim_notes | 355bfec2339d1c6a612e1a89e6e4a3aed9e70f43 | [
"MIT"
] | null | null | null | """event_helpers
Simple helpers to deal with parsed events.
"""
from typing import List
from dateutil import parser
from ..classes.calendar_event_class import CalendarEvent
def sort_events(events: List[CalendarEvent]) -> List[CalendarEvent]:
"""sort_events
Given a list of events, sort them by their start... | 25.424242 | 76 | 0.731824 | 118 | 839 | 5.084746 | 0.398305 | 0.045 | 0.043333 | 0.06 | 0.076667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170441 | 839 | 32 | 77 | 26.21875 | 0.862069 | 0.290822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ba5da54180197d1f84f37a397982c602d07bd9c8 | 691 | py | Python | python-packages/order_utils/test/test_doctest.py | BlocklabNL/0x-monorepo | 6d01aba4834a32a3b313060ec13371075f7f57be | [
"Apache-2.0"
] | null | null | null | python-packages/order_utils/test/test_doctest.py | BlocklabNL/0x-monorepo | 6d01aba4834a32a3b313060ec13371075f7f57be | [
"Apache-2.0"
] | null | null | null | python-packages/order_utils/test/test_doctest.py | BlocklabNL/0x-monorepo | 6d01aba4834a32a3b313060ec13371075f7f57be | [
"Apache-2.0"
] | null | null | null | """Exercise doctests for order_utils module."""
from doctest import testmod
from zero_ex.dev_utils import abi_utils, type_assertions
from zero_ex.order_utils import asset_data_utils
def test_doctest_asset_data_utils():
"""Invoke doctest on the asset_data_utils module."""
(failure_count, _) = testmod(asset_d... | 27.64 | 56 | 0.748191 | 95 | 691 | 5.063158 | 0.284211 | 0.149688 | 0.116424 | 0.112266 | 0.378378 | 0.158004 | 0.158004 | 0.158004 | 0 | 0 | 0 | 0.005164 | 0.15919 | 691 | 24 | 57 | 28.791667 | 0.822719 | 0.251809 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba6fc94d8ceb53fc1f79880cece6ff8fa676ca06 | 1,807 | py | Python | funowl/__init__.py | clin113jhu/funowl | 805963c9d2718598c85a1213106161b59f5a8dd3 | [
"CC0-1.0"
] | null | null | null | funowl/__init__.py | clin113jhu/funowl | 805963c9d2718598c85a1213106161b59f5a8dd3 | [
"CC0-1.0"
] | null | null | null | funowl/__init__.py | clin113jhu/funowl | 805963c9d2718598c85a1213106161b59f5a8dd3 | [
"CC0-1.0"
] | null | null | null | from . prefix_declarations import Prefix
from . ontology_document import OntologyDocument, Ontology, Import
from . declarations import Declaration, Class, Datatype, ObjectProperty, DataProperty, AnnotationProperty, \
NamedIndividual
from . annotations import Annotation, AnnotationAssertion, SubAnnotationPropertyOf,... | 78.565217 | 116 | 0.862203 | 112 | 1,807 | 13.848214 | 0.714286 | 0.023211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092418 | 1,807 | 22 | 117 | 82.136364 | 0.945732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | true | 0 | 0.52381 | 0 | 0.52381 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ba70bb5d14f44bc6a9e13de708e198903e4acfcc | 165 | py | Python | news_list/forms.py | bowonwit7447/djan_test | 18b0add8293fdf0e58aafa43e8b383f5fdd53c6e | [
"bzip2-1.0.6"
] | null | null | null | news_list/forms.py | bowonwit7447/djan_test | 18b0add8293fdf0e58aafa43e8b383f5fdd53c6e | [
"bzip2-1.0.6"
] | 8 | 2020-06-06T01:21:18.000Z | 2022-03-12T00:15:32.000Z | news_list/forms.py | bowonwit7447/djan_test | 18b0add8293fdf0e58aafa43e8b383f5fdd53c6e | [
"bzip2-1.0.6"
] | null | null | null | from django import forms
class GetNewsForm(forms.Form):
api_key = forms.CharField(label='API Key', required=False, widget=forms.TextInput(attrs={'size': '40'})) | 41.25 | 108 | 0.739394 | 23 | 165 | 5.26087 | 0.782609 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013514 | 0.10303 | 165 | 4 | 108 | 41.25 | 0.804054 | 0 | 0 | 0 | 0 | 0 | 0.078313 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ba8ee6e97de61a06f9ac7eaf4944011d36e7a90f | 307 | py | Python | tests/test_reverse_pairs.py | Varshaav16/off-net-learner | ab50af11acc0cbbada54a5d9b9239d2c329cc0c2 | [
"MIT"
] | null | null | null | tests/test_reverse_pairs.py | Varshaav16/off-net-learner | ab50af11acc0cbbada54a5d9b9239d2c329cc0c2 | [
"MIT"
] | null | null | null | tests/test_reverse_pairs.py | Varshaav16/off-net-learner | ab50af11acc0cbbada54a5d9b9239d2c329cc0c2 | [
"MIT"
] | null | null | null | import unittest
import reverse_pairs
class TestMethods(unittest.TestCase):
def test_reverse_pairs(self):
self.assertEqual(reverse_pairs.reversePairs([1, 3, 2, 3, 1]), 2)
self.assertEqual(reverse_pairs.reversePairs([2,4,3,5,1]), 3)
if __name__ == '__main__':
unittest.main()
| 23.615385 | 73 | 0.690554 | 41 | 307 | 4.853659 | 0.487805 | 0.241206 | 0.221106 | 0.271357 | 0.39196 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047431 | 0.175896 | 307 | 12 | 74 | 25.583333 | 0.73913 | 0 | 0 | 0 | 0 | 0 | 0.026059 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba9fac82f94f5c2565f98f2b64f1b6d2e52194b5 | 116 | py | Python | dbdev_testproject/dbdev_testproject/develop/settings/sqlite.py | tworide/django_dbdev | 9313e3ce39c64634577f4a63f11028cd01bb7b10 | [
"BSD-3-Clause"
] | null | null | null | dbdev_testproject/dbdev_testproject/develop/settings/sqlite.py | tworide/django_dbdev | 9313e3ce39c64634577f4a63f11028cd01bb7b10 | [
"BSD-3-Clause"
] | 4 | 2015-04-28T07:14:18.000Z | 2018-02-28T18:53:25.000Z | dbdev_testproject/dbdev_testproject/develop/settings/sqlite.py | tworide/django_dbdev | 9313e3ce39c64634577f4a63f11028cd01bb7b10 | [
"BSD-3-Clause"
] | 4 | 2015-01-05T18:58:30.000Z | 2019-04-08T11:06:44.000Z | from django_dbdev.backends.sqlite import DBSETTINGS
from .base import *
DATABASES = {
'default': DBSETTINGS
} | 14.5 | 51 | 0.741379 | 13 | 116 | 6.538462 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.172414 | 116 | 8 | 52 | 14.5 | 0.885417 | 0 | 0 | 0 | 0 | 0 | 0.059829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bab89a4ecc334ccd475076e2ae0c5f067f1ba894 | 138 | py | Python | popgen/soundfonts/__init__.py | mmarchini/popgen | fb4459857cf8e0f6073247b8bee7a002541ea524 | [
"MIT"
] | 1 | 2022-01-11T07:13:49.000Z | 2022-01-11T07:13:49.000Z | popgen/soundfonts/__init__.py | mmarchini/popgen | fb4459857cf8e0f6073247b8bee7a002541ea524 | [
"MIT"
] | null | null | null | popgen/soundfonts/__init__.py | mmarchini/popgen | fb4459857cf8e0f6073247b8bee7a002541ea524 | [
"MIT"
] | null | null | null | import os
SOUNDFONTS_PATH = os.path.abspath(os.path.dirname(__file__))
DEFAULT_SOUNDFONT = os.path.join(SOUNDFONTS_PATH, 'arachno.sf2')
| 23 | 64 | 0.789855 | 20 | 138 | 5.1 | 0.6 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007874 | 0.07971 | 138 | 5 | 65 | 27.6 | 0.795276 | 0 | 0 | 0 | 0 | 0 | 0.07971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bac31bdd1cf94148623896d05170fda5edebd904 | 297 | py | Python | code/tacotron/models/__init__.py | mwhitehill/Tacotron-2 | 62c7f32b6620ff427d396be56ff60d5fc0bc0bb2 | [
"MIT"
] | 1 | 2019-09-27T10:19:19.000Z | 2019-09-27T10:19:19.000Z | code/tacotron/models/__init__.py | mwhitehill/Tacotron-2 | 62c7f32b6620ff427d396be56ff60d5fc0bc0bb2 | [
"MIT"
] | null | null | null | code/tacotron/models/__init__.py | mwhitehill/Tacotron-2 | 62c7f32b6620ff427d396be56ff60d5fc0bc0bb2 | [
"MIT"
] | 1 | 2019-11-23T01:14:00.000Z | 2019-11-23T01:14:00.000Z | from .tacotron import Tacotron
from .tacotron_emt_attn import Tacotron_emt_attn
def create_model(name, hparams):
if name == 'Tacotron':
return Tacotron(hparams)
elif name == 'Tacotron_emt_attn':
return Tacotron_emt_attn(hparams)
else:
raise Exception('Unknown model: ' + name)
| 24.75 | 48 | 0.740741 | 39 | 297 | 5.410256 | 0.435897 | 0.208531 | 0.28436 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16835 | 297 | 11 | 49 | 27 | 0.854251 | 0 | 0 | 0 | 0 | 0 | 0.13468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
bad088300a1cbb8290b2a73eaada6b458852f9a5 | 163 | py | Python | code/mat_demo/rw_visual1.py | wang-404/Flipstudy | 9ef95ff3edacccfd5de4f61439aa7fd2a3a2c0d1 | [
"Apache-2.0"
] | null | null | null | code/mat_demo/rw_visual1.py | wang-404/Flipstudy | 9ef95ff3edacccfd5de4f61439aa7fd2a3a2c0d1 | [
"Apache-2.0"
] | null | null | null | code/mat_demo/rw_visual1.py | wang-404/Flipstudy | 9ef95ff3edacccfd5de4f61439aa7fd2a3a2c0d1 | [
"Apache-2.0"
] | null | null | null | import matplotlib.pyplot as plt
from random_walk import RandomWalk
rw = RandomWalk()
rw.fill_walk()
plt.plot(rw.x_values,rw.y_values,linewidth = 5)
plt.show()
| 16.3 | 47 | 0.766871 | 27 | 163 | 4.481481 | 0.666667 | 0.198347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006993 | 0.122699 | 163 | 9 | 48 | 18.111111 | 0.839161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bae5932f506aebbc18da5ef53b725108751067f1 | 128 | py | Python | Python Programs/sort.py | Christy538/letshack | 570ddd8fd8f5a4062a821799d18c22b4475b3dd5 | [
"MIT"
] | 8 | 2020-10-02T15:20:45.000Z | 2020-10-13T07:00:05.000Z | Python Programs/sort.py | Christy538/letshack | 570ddd8fd8f5a4062a821799d18c22b4475b3dd5 | [
"MIT"
] | 6 | 2020-10-04T05:39:31.000Z | 2020-10-17T12:32:51.000Z | Python Programs/sort.py | Christy538/letshack | 570ddd8fd8f5a4062a821799d18c22b4475b3dd5 | [
"MIT"
] | 96 | 2020-10-04T04:55:56.000Z | 2020-10-30T09:56:05.000Z | # vowels list
vowels = ['e', 'a', 'u', 'o', 'i']
# sort the vowels
vowels.sort()
# print vowels
print('Sorted list:', vowels)
| 14.222222 | 34 | 0.59375 | 19 | 128 | 4 | 0.578947 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179688 | 128 | 8 | 35 | 16 | 0.72381 | 0.3125 | 0 | 0 | 0 | 0 | 0.202381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bae5f86f356daade217a727a3fa09473e59e52f4 | 5,250 | py | Python | example/config.py | Ianyuan/tensorflow-DeepFM | ed862fe545ea425d6dea8960af7b7cc1357977c2 | [
"MIT"
] | null | null | null | example/config.py | Ianyuan/tensorflow-DeepFM | ed862fe545ea425d6dea8960af7b7cc1357977c2 | [
"MIT"
] | null | null | null | example/config.py | Ianyuan/tensorflow-DeepFM | ed862fe545ea425d6dea8960af7b7cc1357977c2 | [
"MIT"
] | null | null | null |
# set the path-to-files
TRAIN_FILE = "/home/luban/work_jupyter/point_rec_data/train.csv"
TEST_FILE = "/home/luban/work_jupyter/point_rec_data/test.csv"
SUB_DIR = "./output"
NUM_SPLITS = 3
RANDOM_SEED = 2017
# types of columns of the dataset dataframe
CATEGORICAL_COLS = [
'common.os',
'common.loc_provider',... | 32.8125 | 64 | 0.749524 | 811 | 5,250 | 4.225647 | 0.127004 | 0.112051 | 0.172746 | 0.186752 | 0.730376 | 0.427779 | 0.058944 | 0.037934 | 0 | 0 | 0 | 0.053472 | 0.141524 | 5,250 | 159 | 65 | 33.018868 | 0.7069 | 0.026476 | 0 | 0 | 0 | 0 | 0.758769 | 0.698609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
bafeff7e77a35717a1b527c594417925686669fc | 255 | py | Python | weldx/tags/measurement/error.py | CagtayFabry/weldx | 463f949d4fa54b5edafa2268cb862716865a62c2 | [
"BSD-3-Clause"
] | 13 | 2020-02-20T07:45:02.000Z | 2021-12-10T13:15:47.000Z | weldx/tags/measurement/error.py | BAMWelDX/weldx | ada4e67fa00cdb80a0b954057f4e685b846c9fe5 | [
"BSD-3-Clause"
] | 675 | 2020-02-20T07:47:00.000Z | 2022-03-31T15:17:19.000Z | weldx/tags/measurement/error.py | CagtayFabry/weldx | 463f949d4fa54b5edafa2268cb862716865a62c2 | [
"BSD-3-Clause"
] | 5 | 2020-09-02T07:19:17.000Z | 2021-12-05T08:57:50.000Z | from weldx.asdf.util import dataclass_serialization_class
from weldx.measurement import Error
__all__ = ["Error", "ErrorConverter"]
ErrorConverter = dataclass_serialization_class(
class_type=Error, class_name="measurement/error", version="0.1.0"
)
| 25.5 | 69 | 0.796078 | 31 | 255 | 6.225806 | 0.548387 | 0.093264 | 0.279793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0131 | 0.101961 | 255 | 9 | 70 | 28.333333 | 0.829694 | 0 | 0 | 0 | 0 | 0 | 0.160784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
baffba9fdb92b76a606cd25884a36b09a9204d26 | 279 | py | Python | components/utils.py | gmrukwa/msi-preprocessing-pipeline | bc6d26daba42575babcdf5287999f1f844cf2e8e | [
"Apache-2.0"
] | null | null | null | components/utils.py | gmrukwa/msi-preprocessing-pipeline | bc6d26daba42575babcdf5287999f1f844cf2e8e | [
"Apache-2.0"
] | 5 | 2019-11-26T19:13:32.000Z | 2019-11-29T08:14:28.000Z | components/utils.py | gmrukwa/msi-preprocessing-pipeline | bc6d26daba42575babcdf5287999f1f844cf2e8e | [
"Apache-2.0"
] | null | null | null | import os
from functools import partial
from functional import pipe
only_directories = partial(filter, os.path.isdir)
def rooted_listdir(root):
return [os.path.join(root, path) for path in os.listdir(root)]
subdirectories = pipe(rooted_listdir, only_directories, list)
| 19.928571 | 66 | 0.777778 | 40 | 279 | 5.325 | 0.55 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136201 | 279 | 13 | 67 | 21.461538 | 0.883817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
242a9f1418880582c84a04e7b181b2ccd5df6d1a | 50 | py | Python | rsilk/__init__.py | synodriver/rsilk | a97ee2b280673203fb7a3c63897abe5ce8140479 | [
"MIT"
] | 2 | 2022-03-12T10:15:22.000Z | 2022-03-13T16:36:38.000Z | rsilk/__init__.py | synodriver/rsilk | a97ee2b280673203fb7a3c63897abe5ce8140479 | [
"MIT"
] | null | null | null | rsilk/__init__.py | synodriver/rsilk | a97ee2b280673203fb7a3c63897abe5ce8140479 | [
"MIT"
] | 1 | 2022-03-18T00:31:27.000Z | 2022-03-18T00:31:27.000Z | from rsilk._silk import *
__version__ = "0.1.4"
| 10 | 25 | 0.68 | 8 | 50 | 3.625 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.18 | 50 | 4 | 26 | 12.5 | 0.634146 | 0 | 0 | 0 | 0 | 0 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
242dc0fe93f357a5210674fe489922ea71cabda5 | 478 | py | Python | simple_array/e_advance_by_offsets.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | simple_array/e_advance_by_offsets.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | simple_array/e_advance_by_offsets.py | dhrubach/python-code-recipes | 14356c6adb1946417482eaaf6f42dde4b8351d2f | [
"MIT"
] | null | null | null | from typing import List
class AdvanceByOffsets:
def can_reach_end(self, arr: List[int]) -> bool:
max_reachable_index, end_index = 0, len(arr) - 1
i = 0
while i <= max_reachable_index and max_reachable_index <= end_index:
""" furthest index reachable from 'i'th index --> i + A[... | 29.875 | 76 | 0.60251 | 65 | 478 | 4.169231 | 0.415385 | 0.265683 | 0.376384 | 0.221402 | 0.276753 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01194 | 0.299163 | 478 | 15 | 77 | 31.866667 | 0.797015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2443b1e40489722feadb7bfcd17f28d61ddc48ec | 69 | py | Python | yb_enigma/common.py | YuriyBl/yb-enigma | 0220490830361c6490a4d7fde8eb1aac7660dc34 | [
"MIT"
] | null | null | null | yb_enigma/common.py | YuriyBl/yb-enigma | 0220490830361c6490a4d7fde8eb1aac7660dc34 | [
"MIT"
] | null | null | null | yb_enigma/common.py | YuriyBl/yb-enigma | 0220490830361c6490a4d7fde8eb1aac7660dc34 | [
"MIT"
] | null | null | null | """
Common constants.
"""
ALPH = list('abcdefghijklmnopqrstuvwxyz')
| 11.5 | 41 | 0.710145 | 5 | 69 | 9.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115942 | 69 | 5 | 42 | 13.8 | 0.803279 | 0.246377 | 0 | 0 | 0 | 0 | 0.590909 | 0.590909 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
79e6cdbc82ed1cef437fcb891c5d883113a13e86 | 546 | bzl | Python | benchmarks/defs.bzl | ernado/gvisor | 6b424530397e5100b08628efe8f6c62178daa70b | [
"Apache-2.0"
] | null | null | null | benchmarks/defs.bzl | ernado/gvisor | 6b424530397e5100b08628efe8f6c62178daa70b | [
"Apache-2.0"
] | null | null | null | benchmarks/defs.bzl | ernado/gvisor | 6b424530397e5100b08628efe8f6c62178daa70b | [
"Apache-2.0"
] | null | null | null | """Provides python helper functions."""
load("@pydeps//:requirements.bzl", _requirement = "requirement")
def filter_deps(deps = None):
if deps == None:
deps = []
return [dep for dep in deps if dep]
def py_library(deps = None, **kwargs):
return native.py_library(deps = filter_deps(deps), **kwargs)... | 28.736842 | 64 | 0.677656 | 70 | 546 | 5.157143 | 0.428571 | 0.088643 | 0.116343 | 0.110803 | 0.304709 | 0.304709 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 546 | 18 | 65 | 30.333333 | 0.805804 | 0.144689 | 0 | 0 | 0 | 0 | 0.081319 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
79e93fb8bb4fc3656803394631a5392faadd53e4 | 200 | py | Python | google_problems/problem_35.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 129 | 2018-10-14T17:52:29.000Z | 2022-01-29T15:45:57.000Z | google_problems/problem_35.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 2 | 2019-11-30T23:28:23.000Z | 2020-01-03T16:30:32.000Z | google_problems/problem_35.py | loftwah/Daily-Coding-Problem | 0327f0b4f69ef419436846c831110795c7a3c1fe | [
"MIT"
] | 60 | 2019-02-21T09:18:31.000Z | 2022-03-25T21:01:04.000Z | """This problem was asked by Google.
Determine whether a doubly linked list is a palindrome. What if it’s singly linked?
For example, 1 -> 4 -> 3 -> 4 -> 1 returns true while 1 -> 4 returns false.
""" | 50 | 83 | 0.695 | 35 | 200 | 3.971429 | 0.8 | 0.028777 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043478 | 0.195 | 200 | 4 | 84 | 50 | 0.819876 | 0.965 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.