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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a13769ce255e4f0c512640bbb06bfc6740559bd | 155 | py | Python | lib/gii/__init__.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 7 | 2016-02-13T18:47:23.000Z | 2020-07-03T13:47:49.000Z | lib/gii/__init__.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 1 | 2018-06-13T04:55:27.000Z | 2021-11-05T05:52:51.000Z | lib/gii/__init__.py | tommo/gii | 03624a57cf74a07e38bfdc7f53c50bd926b7b5a7 | [
"MIT"
] | 4 | 2016-02-15T13:32:46.000Z | 2019-12-12T17:22:31.000Z | from core import *
##----------------------------------------------------------------##
def startup():
info = Project.findProject()
startupTool( info )
| 22.142857 | 68 | 0.393548 | 10 | 155 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103226 | 155 | 6 | 69 | 25.833333 | 0.438849 | 0.412903 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0a1734f0614d6bbc07572db783b7e5ba63c1267e | 50 | py | Python | governance/migrations/__init__.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 4 | 2019-03-28T06:42:17.000Z | 2021-06-06T13:10:51.000Z | governance/migrations/__init__.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 177 | 2018-09-28T14:21:56.000Z | 2022-03-30T21:45:26.000Z | governance/migrations/__init__.py | IATI/new-website | b90783e32d19ac4c821c5ea018a52997a11b5286 | [
"MIT"
] | 8 | 2018-10-25T20:43:10.000Z | 2022-03-17T14:19:27.000Z | """Database migrations for the governance app."""
| 25 | 49 | 0.74 | 6 | 50 | 6.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 50 | 1 | 50 | 50 | 0.840909 | 0.86 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6a4f4378f73f8573f681e51b2dfef05476153a4d | 46 | py | Python | openmdao/__init__.py | jbergeson/OpenMDAO | 50df8f5888c6499a0ef66b836ee63b122a50aaae | [
"Apache-2.0"
] | null | null | null | openmdao/__init__.py | jbergeson/OpenMDAO | 50df8f5888c6499a0ef66b836ee63b122a50aaae | [
"Apache-2.0"
] | null | null | null | openmdao/__init__.py | jbergeson/OpenMDAO | 50df8f5888c6499a0ef66b836ee63b122a50aaae | [
"Apache-2.0"
] | null | null | null | __version__ = '3.6.1-dev'
INF_BOUND = 1.0E30
| 11.5 | 25 | 0.673913 | 9 | 46 | 2.888889 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 0.152174 | 46 | 3 | 26 | 15.333333 | 0.487179 | 0 | 0 | 0 | 0 | 0 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6a69185d7a32f76faafe3d323f922d83bb6d6956 | 166 | py | Python | application/python/test.py | WenJuing/tp5-eshop | 84278312033ae8aac7396020211f9458e82c0059 | [
"Apache-2.0"
] | null | null | null | application/python/test.py | WenJuing/tp5-eshop | 84278312033ae8aac7396020211f9458e82c0059 | [
"Apache-2.0"
] | null | null | null | application/python/test.py | WenJuing/tp5-eshop | 84278312033ae8aac7396020211f9458e82c0059 | [
"Apache-2.0"
] | null | null | null | import sys
import codecs
# 解决php获取中文数据乱码问题
sys.stdout = codecs.getwriter('utf-8')(sys.stdout.detach())
print("我是Python文件")
print(int(sys.argv[1]) * int(sys.argv[2])) | 23.714286 | 59 | 0.728916 | 25 | 166 | 4.84 | 0.6 | 0.14876 | 0.165289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.078313 | 166 | 7 | 60 | 23.714286 | 0.771242 | 0.090361 | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6a861aa98962d9815670f5006e5b6e2fde1793d1 | 832 | py | Python | tests/test_Quantifier.py | alvarofpp/mre | 025a5f10b92a0a4bf32d673509958b660871b2f6 | [
"MIT"
] | 7 | 2019-04-21T18:25:49.000Z | 2020-12-22T19:13:25.000Z | tests/test_Quantifier.py | alvarofpp/mre | 025a5f10b92a0a4bf32d673509958b660871b2f6 | [
"MIT"
] | 12 | 2019-08-10T02:09:43.000Z | 2021-10-02T15:29:48.000Z | tests/test_Quantifier.py | alvarofpp/mre | 025a5f10b92a0a4bf32d673509958b660871b2f6 | [
"MIT"
] | 22 | 2019-04-21T18:25:54.000Z | 2020-10-04T21:43:12.000Z | from unittest import TestCase
from mre import Quantifier, Regex
class TestQuantifier(TestCase):
def setUp(self):
self.digits = Regex('[0-9]')
def test_quantifier_one(self):
self.assertTrue((self.digits + Quantifier(n=1)) == '[0-9]{1}')
def test_quantifier_one_five(self):
self.as... | 33.28 | 93 | 0.644231 | 116 | 832 | 4.474138 | 0.258621 | 0.134875 | 0.231214 | 0.202312 | 0.433526 | 0.356455 | 0.356455 | 0.354528 | 0 | 0 | 0 | 0.038012 | 0.177885 | 832 | 24 | 94 | 34.666667 | 0.72076 | 0 | 0 | 0 | 0 | 0 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 1 | 0.375 | false | 0 | 0.125 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
6a8d34d3e4abdc36106a413d5a7327ff65af8504 | 99 | py | Python | src/Finalreview/line.py | acc-cosc-1336/cosc-1336-spring-2018-Aronpond | b37a6be8c0b909859ccf5ac2ce5eaf82c4ba741b | [
"MIT"
] | null | null | null | src/Finalreview/line.py | acc-cosc-1336/cosc-1336-spring-2018-Aronpond | b37a6be8c0b909859ccf5ac2ce5eaf82c4ba741b | [
"MIT"
] | null | null | null | src/Finalreview/line.py | acc-cosc-1336/cosc-1336-spring-2018-Aronpond | b37a6be8c0b909859ccf5ac2ce5eaf82c4ba741b | [
"MIT"
] | null | null | null | from shape import Shape
class Line(Shape):
def draw(self):
print('Print line')
| 14.142857 | 28 | 0.59596 | 13 | 99 | 4.538462 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.30303 | 99 | 6 | 29 | 16.5 | 0.855072 | 0 | 0 | 0 | 0 | 0 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
6aa9650a4907b606a6b852d5e0f121e2039c3319 | 38,298 | py | Python | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/rsvp/senderrange.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/rsvp/senderrange.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null | RestPy/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/rsvp/senderrange.py | ralfjon/IxNetwork | c0c834fbc465af69c12fd6b7cee4628baba7fff1 | [
"MIT"
] | null | null | null |
# Copyright 1997 - 2018 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, p... | 47.932416 | 1,136 | 0.766176 | 4,838 | 38,298 | 6.021496 | 0.102728 | 0.017507 | 0.020527 | 0.034738 | 0.741315 | 0.69216 | 0.657765 | 0.650796 | 0.64218 | 0.636139 | 0 | 0.003762 | 0.167163 | 38,298 | 798 | 1,137 | 47.992481 | 0.909581 | 0.643323 | 0 | 0.164474 | 0 | 0 | 0.125861 | 0.065723 | 0 | 0 | 0 | 0 | 0 | 1 | 0.332237 | false | 0 | 0.013158 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
6ab2f523b49c8eac2412b08898695861a470113d | 98 | py | Python | invsystem/settings_app/apps.py | Clemens-Dautermann/Inventarium | da22fb630a876b0e3c7e7bfe8a84c71c9d2ab0f9 | [
"MIT"
] | null | null | null | invsystem/settings_app/apps.py | Clemens-Dautermann/Inventarium | da22fb630a876b0e3c7e7bfe8a84c71c9d2ab0f9 | [
"MIT"
] | 4 | 2018-12-27T23:45:37.000Z | 2018-12-30T19:11:23.000Z | invsystem/settings_app/apps.py | Clemens-Dautermann/Inventarium | da22fb630a876b0e3c7e7bfe8a84c71c9d2ab0f9 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SettingsAppConfig(AppConfig):
name = 'settings_app'
| 16.333333 | 35 | 0.77551 | 11 | 98 | 6.818182 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153061 | 98 | 5 | 36 | 19.6 | 0.903614 | 0 | 0 | 0 | 0 | 0 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
6aca99928dc98b1de7e6cdb2e87c9a8db2e6b957 | 83 | py | Python | ABC151-200/ABC183/abc183_b.py | billyio/atcoder | 9d16765f91f28deeb7328fcc6c19541ee790941f | [
"MIT"
] | 1 | 2021-02-01T08:48:07.000Z | 2021-02-01T08:48:07.000Z | ABC151-200/ABC183/abc183_b.py | billyio/atcoder | 9d16765f91f28deeb7328fcc6c19541ee790941f | [
"MIT"
] | null | null | null | ABC151-200/ABC183/abc183_b.py | billyio/atcoder | 9d16765f91f28deeb7328fcc6c19541ee790941f | [
"MIT"
] | null | null | null | Sx, Sy, Gx, Gy = map(int, input().split())
print(Sx + (Gx - Sx) * (Sy / (Sy + Gy))) | 41.5 | 42 | 0.493976 | 15 | 83 | 2.733333 | 0.6 | 0.195122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204819 | 83 | 2 | 43 | 41.5 | 0.621212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
6ad08e22b512e6c6a3aa7c2f2734d1244ba58545 | 2,403 | py | Python | bloomberg.py | justinbodnar/stonks-ai | 5ed70cf32b3f2fb999133ecea1247d8754df3c74 | [
"MIT"
] | 2 | 2021-05-11T14:55:48.000Z | 2021-12-20T03:36:17.000Z | bloomberg.py | justinbodnar/stonks-ai | 5ed70cf32b3f2fb999133ecea1247d8754df3c74 | [
"MIT"
] | null | null | null | bloomberg.py | justinbodnar/stonks-ai | 5ed70cf32b3f2fb999133ecea1247d8754df3c74 | [
"MIT"
] | null | null | null | from auth import *
import stocktuna as tuna
import requests
import json
'''
https://rapidapi.com/apidojo/api/bloomberg-market-and-financial-news?endpoint=
'''
url = "https://bloomberg-market-and-financial-news.p.rapidapi.com/market/get-chart"
querystring = {"interval":"y1","id":"wmt:us"}
headers = { 'x-rapidapi-key... | 54.613636 | 1,375 | 0.699958 | 334 | 2,403 | 5.002994 | 0.437126 | 0.028725 | 0.040694 | 0.045482 | 0.132855 | 0.095751 | 0.095751 | 0.095751 | 0.05386 | 0.05386 | 0 | 0.241107 | 0.052434 | 2,403 | 43 | 1,376 | 55.883721 | 0.492754 | 0.620474 | 0 | 0.192308 | 0 | 0.038462 | 0.280146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.153846 | 0.538462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
6aed77b6bee5b0edf0f18132580f486706f38b99 | 920 | py | Python | 09_bluetooth/RFCOMM-Channel-Scanner.py | mumbo-pro/network-penetration | 30fcc70a0bdb094e2339951785d4d72b0373a71f | [
"MIT"
] | 3 | 2020-07-25T13:36:02.000Z | 2021-06-03T19:59:13.000Z | 09_bluetooth/RFCOMM-Channel-Scanner.py | mumbo-pro/understanding-network-hacks | 30fcc70a0bdb094e2339951785d4d72b0373a71f | [
"MIT"
] | null | null | null | 09_bluetooth/RFCOMM-Channel-Scanner.py | mumbo-pro/understanding-network-hacks | 30fcc70a0bdb094e2339951785d4d72b0373a71f | [
"MIT"
] | 2 | 2019-07-12T10:04:23.000Z | 2019-07-18T17:57:59.000Z | #!/usr/bin/python 2 3 import lightblue 4 from signal import signal, SIGALRM, alarm 5 import sys 6 7 channel_status = 0 8 got_timeout = False 9 timeout = 2 10 11 12 def sig_alrm_handler(signum, frame): 13 global got_timeout 14 got_timeout = True 15 16 17 signal(SIGALRM, sig_alrm_handler) 18 19 if len(sys.argv) < 2: 20 p... | 306.666667 | 660 | 0.719565 | 165 | 920 | 3.921212 | 0.581818 | 0.092736 | 0.064915 | 0.102009 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123198 | 0.170652 | 920 | 3 | 661 | 306.666667 | 0.724771 | 0.716304 | 0 | 0 | 0 | 0 | 0.172414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
0a733b26b4bf99d5f92ad94ba33a070680c665fd | 105 | py | Python | app/__init__.py | Nooby/sennder_code_challenge | 0bd597d66b1dc47efc4c85d22d7970a6f2aa458f | [
"MIT"
] | null | null | null | app/__init__.py | Nooby/sennder_code_challenge | 0bd597d66b1dc47efc4c85d22d7970a6f2aa458f | [
"MIT"
] | null | null | null | app/__init__.py | Nooby/sennder_code_challenge | 0bd597d66b1dc47efc4c85d22d7970a6f2aa458f | [
"MIT"
] | null | null | null | from flask import Flask
app = Flask(__name__)
from app import main # noqa: Import not at top of file.
| 17.5 | 56 | 0.733333 | 18 | 105 | 4.055556 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209524 | 105 | 5 | 57 | 21 | 0.879518 | 0.304762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0a7fa2be6cd249897cb7f7c3e1ac33931f51c79f | 108 | py | Python | app.py | jaysonbucy/flask-basic-api | 76c9c751ce6e2588845d1a1d78ae2351e723b431 | [
"MIT"
] | null | null | null | app.py | jaysonbucy/flask-basic-api | 76c9c751ce6e2588845d1a1d78ae2351e723b431 | [
"MIT"
] | null | null | null | app.py | jaysonbucy/flask-basic-api | 76c9c751ce6e2588845d1a1d78ae2351e723b431 | [
"MIT"
] | null | null | null | from flask_migrate import Migrate
from api import app
from api.models import db
migrate = Migrate(app, db)
| 18 | 33 | 0.796296 | 18 | 108 | 4.722222 | 0.444444 | 0.164706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157407 | 108 | 5 | 34 | 21.6 | 0.934066 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.75 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0a7fc66505cd7d11f034a939bbacfdb3be006f74 | 289 | py | Python | semantic/MLN/src/Argument.py | GallupGovt/pymln | d904fcd4f36c8c2409924e1bd4cc2b07242ae8cb | [
"MIT"
] | 9 | 2020-03-11T21:42:02.000Z | 2020-12-16T05:40:34.000Z | semantic/MLN/src/Argument.py | GallupGovt/pymln | d904fcd4f36c8c2409924e1bd4cc2b07242ae8cb | [
"MIT"
] | null | null | null | semantic/MLN/src/Argument.py | GallupGovt/pymln | d904fcd4f36c8c2409924e1bd4cc2b07242ae8cb | [
"MIT"
] | 1 | 2020-12-15T09:05:44.000Z | 2020-12-15T09:05:44.000Z |
class Argument(object):
def __init__(self, argNode, path, argPart):
self._argNode = argNode
self._path = path
self._argPart = argPart
return None
def getPath(self):
return self._path
def getPart(self):
return self._argPart
def getNode(self):
return self._argNode
| 13.761905 | 44 | 0.712803 | 38 | 289 | 5.157895 | 0.368421 | 0.168367 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193772 | 289 | 20 | 45 | 14.45 | 0.841202 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.25 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0a8d3c42bb249543606041b2c1cbac7992bfc8cc | 109 | py | Python | src/lesson_file_system/tempfile_tempdir.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | 3 | 2018-08-14T09:33:52.000Z | 2022-03-21T12:31:58.000Z | src/lesson_file_system/tempfile_tempdir.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | null | null | null | src/lesson_file_system/tempfile_tempdir.py | jasonwee/asus-rt-n14uhp-mrtg | 4fa96c3406e32ea6631ce447db6d19d70b2cd061 | [
"Apache-2.0"
] | null | null | null |
import tempfile
tempfile.tempdir = '/I/changed/this/path'
print('gettempdir():', tempfile.gettempdir())
| 12.111111 | 45 | 0.715596 | 12 | 109 | 6.5 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110092 | 109 | 8 | 46 | 13.625 | 0.804124 | 0 | 0 | 0 | 0 | 0 | 0.314286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
0a9b2ac900f0e0706d95edf075e3ccc57705fcc3 | 363 | py | Python | mitmirror/errors/__init__.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | mitmirror/errors/__init__.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | 1 | 2021-10-09T20:42:03.000Z | 2021-10-09T20:42:03.000Z | mitmirror/errors/__init__.py | Claayton/mitmirror-api | a78ec3aa84aa3685a26bfaf5e1ba2a3f0f8405d1 | [
"MIT"
] | null | null | null | """Arquivo de inicializacao para o modulo erros"""
from .default_error import DefaultError
from .http_request_error import HttpRequestError
from .http_error400 import HttpBadRequestError
from .http_error401 import HttpUnauthorized
from .http_error404 import HttpNotFound
from .http_error422 import HttpUnprocessableEntit... | 40.333333 | 50 | 0.867769 | 43 | 363 | 7.139535 | 0.581395 | 0.156352 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045732 | 0.096419 | 363 | 8 | 51 | 45.375 | 0.890244 | 0.121212 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0a9c82fa1ee30c00a5c2655a31d90f324bf00296 | 3,430 | py | Python | rotkehlchen/assets/unknown_asset.py | vnavascues/rotki | 8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f | [
"BSD-3-Clause"
] | null | null | null | rotkehlchen/assets/unknown_asset.py | vnavascues/rotki | 8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f | [
"BSD-3-Clause"
] | null | null | null | rotkehlchen/assets/unknown_asset.py | vnavascues/rotki | 8675bdb02bf84bfccb5d59362e3ae2b7138fcd8f | [
"BSD-3-Clause"
] | null | null | null | from dataclasses import asdict, dataclass
from typing import Any, Dict, List, Optional, Set, Tuple, Union
from rotkehlchen.errors import UnsupportedAsset
from rotkehlchen.typing import ChecksumEthAddress
# The most common keys for serializing an <UnknownEthereumToken> via
# `serialize_as_dict()`
UNKNOWN_TOKEN_KEYS = ... | 33.960396 | 86 | 0.657726 | 423 | 3,430 | 5.219858 | 0.330969 | 0.081522 | 0.068841 | 0.039855 | 0.146739 | 0.119565 | 0.09058 | 0.09058 | 0.09058 | 0.053442 | 0 | 0 | 0.255102 | 3,430 | 100 | 87 | 34.3 | 0.864188 | 0.290087 | 0 | 0.055556 | 0 | 0 | 0.162197 | 0.056228 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.222222 | false | 0 | 0.074074 | 0.111111 | 0.648148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0ab71d7206859de4208d6d1efc812b9021bb4287 | 82 | py | Python | TWE-3/gensim/test/__init__.py | sysuhu/topical_word_embeddings | 1ae3d15d0afcd3fcd39cc81eec4ad9463413a9f6 | [
"MIT"
] | 330 | 2015-01-28T14:59:06.000Z | 2022-03-24T06:41:29.000Z | TWE-3/gensim/test/__init__.py | sysuhu/topical_word_embeddings | 1ae3d15d0afcd3fcd39cc81eec4ad9463413a9f6 | [
"MIT"
] | 12 | 2020-07-11T01:42:51.000Z | 2020-08-12T17:17:35.000Z | TWE-3/gensim/test/__init__.py | sysuhu/topical_word_embeddings | 1ae3d15d0afcd3fcd39cc81eec4ad9463413a9f6 | [
"MIT"
] | 151 | 2015-01-09T04:49:28.000Z | 2022-03-24T06:41:33.000Z | """
This package contains automated code tests for all other gensim packages.
"""
| 20.5 | 73 | 0.756098 | 11 | 82 | 5.636364 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.158537 | 82 | 3 | 74 | 27.333333 | 0.898551 | 0.890244 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
0ad5d93b7e8367c5c1b0a31739a2f043778f483d | 83 | py | Python | phare/flux/apps.py | decaruju/phare | 7b17806a6ed9ec1e5863fd65b39391a7a8d9b219 | [
"MIT"
] | null | null | null | phare/flux/apps.py | decaruju/phare | 7b17806a6ed9ec1e5863fd65b39391a7a8d9b219 | [
"MIT"
] | null | null | null | phare/flux/apps.py | decaruju/phare | 7b17806a6ed9ec1e5863fd65b39391a7a8d9b219 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class FluxConfig(AppConfig):
name = 'flux'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0adb949c76aebeda884455c64274b8e51a1a5d39 | 207 | py | Python | i2cylib/utils/path/__init__.py | i2cy/i2cylib | f7f5c8ec320669bc17d065f0ec2aa74917954bac | [
"MIT"
] | 1 | 2021-04-17T06:45:31.000Z | 2021-04-17T06:45:31.000Z | i2cylib/utils/path/__init__.py | i2cy/i2cylib | f7f5c8ec320669bc17d065f0ec2aa74917954bac | [
"MIT"
] | null | null | null | i2cylib/utils/path/__init__.py | i2cy/i2cylib | f7f5c8ec320669bc17d065f0ec2aa74917954bac | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Author: i2cy(i2cy@outlook.com)
# Filename: __init__.py
# Created on: 2021/3/6
from .path_fixer import *
from .read_path import *
from .scan_path import * | 23 | 33 | 0.666667 | 31 | 207 | 4.225806 | 0.774194 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05848 | 0.173913 | 207 | 9 | 34 | 23 | 0.707602 | 0.545894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
0ae0b62bee960106bd813b5dd4fc2cd8fcdf392e | 1,153 | py | Python | plugins/sdm/lib/platform/slack_platform.py | strongdm/accessbot | 0c8bed9e5ff7ee5515ff584b0704d87b744a56df | [
"Apache-2.0"
] | 16 | 2021-06-17T20:09:43.000Z | 2022-03-23T17:42:02.000Z | plugins/sdm/lib/platform/slack_platform.py | strongdm/accessbot | 0c8bed9e5ff7ee5515ff584b0704d87b744a56df | [
"Apache-2.0"
] | 73 | 2021-05-05T18:40:30.000Z | 2022-03-30T04:55:39.000Z | plugins/sdm/lib/platform/slack_platform.py | strongdm/accessbot | 0c8bed9e5ff7ee5515ff584b0704d87b744a56df | [
"Apache-2.0"
] | 11 | 2021-07-23T17:23:14.000Z | 2022-03-23T13:40:47.000Z | from .base_platform import BasePlatform
from abc import abstractmethod
class SlackPlatform(BasePlatform):
def activate(self):
pass
def deactivate(self):
pass
def can_access_resource(self, message):
return True
def can_assign_role(self, message):
return True
def c... | 24.531915 | 86 | 0.662619 | 146 | 1,153 | 4.986301 | 0.349315 | 0.089286 | 0.093407 | 0.115385 | 0.15522 | 0.122253 | 0.085165 | 0 | 0 | 0 | 0 | 0 | 0.242845 | 1,153 | 46 | 87 | 25.065217 | 0.833906 | 0 | 0 | 0.21875 | 0 | 0 | 0.02255 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4375 | false | 0.09375 | 0.0625 | 0.34375 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
0aebbbebd4a30ad3664274675f0afa9546ba4a3f | 2,161 | py | Python | src/CollisionDynamics.py | JARA99/PyColoid | a126282f1acd74c0f103aeb6841e4ed470574c7b | [
"MIT"
] | null | null | null | src/CollisionDynamics.py | JARA99/PyColoid | a126282f1acd74c0f103aeb6841e4ed470574c7b | [
"MIT"
] | null | null | null | src/CollisionDynamics.py | JARA99/PyColoid | a126282f1acd74c0f103aeb6841e4ed470574c7b | [
"MIT"
] | 1 | 2021-11-19T08:32:14.000Z | 2021-11-19T08:32:14.000Z | #-----------------------------------------------------------------------------------------#
#-------------------------------- Collision Dynamics ----------------------------------#
#-----------------------------------------------------------------------------------------#
# Date: 11/2021 ... | 43.22 | 104 | 0.263767 | 139 | 2,161 | 3.971223 | 0.446043 | 0.014493 | 0.021739 | 0.028986 | 0.235507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009126 | 0.290143 | 2,161 | 49 | 105 | 44.102041 | 0.350717 | 0.833873 | 0 | 0 | 0 | 0 | 0.006826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
e4066e957851d60a6641d7d9d16cb31110931e8a | 321 | py | Python | object_detection2/modeling/onestage_heads/__init__.py | vghost2008/wml | d0c5a1da6c228e321ae59a563e9ac84aa66266ff | [
"MIT"
] | 6 | 2019-12-10T17:18:56.000Z | 2022-03-01T01:00:35.000Z | object_detection2/modeling/onestage_heads/__init__.py | vghost2008/wml | d0c5a1da6c228e321ae59a563e9ac84aa66266ff | [
"MIT"
] | 2 | 2021-08-25T16:16:01.000Z | 2022-02-10T05:21:19.000Z | object_detection2/modeling/onestage_heads/__init__.py | vghost2008/wml | d0c5a1da6c228e321ae59a563e9ac84aa66266ff | [
"MIT"
] | 2 | 2019-12-07T09:57:35.000Z | 2021-09-06T04:58:10.000Z | from . import retinanet_outputs,retinanet_giou_outputs,ssd_outputs,yolact_outputs,centernet_outputs,fcos_outputs
from . import fcos_outputsv2,retinanet_giou_outputsv2
from . import retinanet_head,retinanet_sep_head,retinanet_giou_outputsv3,yolo_head,retinanet_ciou_outputs
from . import centernet2_outputs,centernet2_hea... | 80.25 | 112 | 0.906542 | 43 | 321 | 6.302326 | 0.372093 | 0.147601 | 0.140221 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01634 | 0.046729 | 321 | 4 | 113 | 80.25 | 0.869281 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7c0e621c63ed89e54cd9cc16ba89dddf40dfa3d7 | 1,681 | py | Python | pyrt/geometry/shape.py | Oleg595/pyRT | 6fc0ccbc6fb24dcc2a8532aa22eb9574f1afdb3a | [
"MIT"
] | 74 | 2016-09-02T08:15:39.000Z | 2021-08-09T08:16:23.000Z | pyrt/geometry/shape.py | Oleg595/pyRT | 6fc0ccbc6fb24dcc2a8532aa22eb9574f1afdb3a | [
"MIT"
] | 22 | 2016-09-02T08:15:14.000Z | 2021-02-22T19:52:21.000Z | pyrt/geometry/shape.py | Oleg595/pyRT | 6fc0ccbc6fb24dcc2a8532aa22eb9574f1afdb3a | [
"MIT"
] | 27 | 2016-09-04T12:55:27.000Z | 2022-03-19T11:21:24.000Z | """
This is the geometric shape description
(renderable object)
"""
from abc import abstractmethod, abstractclassmethod
from ..math import Ray, HitRecord, Vec2, Vec3
import uuid
class Shape(object):
"""This is the base class for all geometries"""
def __init__(self, name: str) -> None:
self.name = n... | 22.716216 | 102 | 0.547293 | 184 | 1,681 | 4.978261 | 0.423913 | 0.092795 | 0.019651 | 0.050218 | 0.028384 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015192 | 0.334325 | 1,681 | 73 | 103 | 23.027397 | 0.803396 | 0.383105 | 0 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0 | 1 | 0.26087 | false | 0.086957 | 0.130435 | 0 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 4 |
7c1d82391e8212398279a9317d6a9bd53aca37aa | 1,181 | py | Python | examples/locked_dropout.py | charan223/alstm | caafa62ba7476b6fd93097e5a7935cf0c1e27a6e | [
"BSD-3-Clause"
] | 24 | 2018-06-06T13:07:18.000Z | 2021-01-16T13:37:21.000Z | examples/locked_dropout.py | arita37/alstm | 33fe910a6c170547debbd5cbed254594183b8a0b | [
"BSD-3-Clause"
] | 2 | 2018-12-21T03:32:56.000Z | 2019-02-25T19:45:54.000Z | examples/locked_dropout.py | arita37/alstm | 33fe910a6c170547debbd5cbed254594183b8a0b | [
"BSD-3-Clause"
] | 5 | 2019-01-23T17:37:10.000Z | 2022-01-29T08:57:51.000Z | import torch
import torch.nn as nn
from torch.autograd import Variable
class LockedDropout(nn.Module):
def __init__(self):
super().__init__()
def forward(self, x, dropout=0.5, seq_dim=0):
if not self.training or not dropout:
return x
if seq_dim == 0:
size = (1,... | 27.465116 | 67 | 0.546994 | 175 | 1,181 | 3.531429 | 0.24 | 0.064725 | 0.058252 | 0.064725 | 0.79288 | 0.79288 | 0.79288 | 0.734628 | 0.624595 | 0.624595 | 0 | 0.032419 | 0.320914 | 1,181 | 42 | 68 | 28.119048 | 0.738155 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0 | 0.40625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7c286e75c5c8b9f9816bd608bbed6f6cd463502a | 760 | py | Python | cv_qaoa/unitaries.py | Jaybsoni/CV-QAOA | b7c2ce67ad4191fdd962023de210423077bb7581 | [
"MIT"
] | 1 | 2021-06-22T01:33:03.000Z | 2021-06-22T01:33:03.000Z | cv_qaoa/unitaries.py | Jaybsoni/CV-QAOA | b7c2ce67ad4191fdd962023de210423077bb7581 | [
"MIT"
] | null | null | null | cv_qaoa/unitaries.py | Jaybsoni/CV-QAOA | b7c2ce67ad4191fdd962023de210423077bb7581 | [
"MIT"
] | null | null | null | # construct mixer and cost hamiltonians here:
import pennylane as qml
from pennylane import numpy as np
import strawberryfields as sf
from strawberryfields.ops import *
def U_cost1(q, params):
pass
def U_number_mixer(q, params):
for param, mode in zip(params, q):
Rgate(param) | mode
def U_kineti... | 30.4 | 93 | 0.639474 | 122 | 760 | 3.942623 | 0.5 | 0.024948 | 0.056133 | 0.04158 | 0.045738 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019164 | 0.244737 | 760 | 25 | 94 | 30.4 | 0.818815 | 0.413158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0.076923 | 0.307692 | 0 | 0.538462 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
7c5a89c12a320923da4a547bcc0febea3525282b | 256 | py | Python | dbdaora/hash/repositories/mongodb.py | dutradda/sqldataclass | 5c87a3818e9d736bbf5e1438edc5929a2f5acd3f | [
"MIT"
] | 21 | 2019-10-14T14:33:33.000Z | 2022-02-11T04:43:07.000Z | dbdaora/hash/repositories/mongodb.py | dutradda/sqldataclass | 5c87a3818e9d736bbf5e1438edc5929a2f5acd3f | [
"MIT"
] | null | null | null | dbdaora/hash/repositories/mongodb.py | dutradda/sqldataclass | 5c87a3818e9d736bbf5e1438edc5929a2f5acd3f | [
"MIT"
] | 1 | 2019-09-29T23:51:44.000Z | 2019-09-29T23:51:44.000Z | from dbdaora.data_sources.fallback.mongodb import Key
from . import HashEntity, HashRepository
class MongodbHashRepository(HashRepository[HashEntity, Key]):
__skip_cls_validation__ = ('MongodbHashRepository',)
fallback_data_source_key_cls = Key
| 28.444444 | 61 | 0.816406 | 27 | 256 | 7.333333 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113281 | 256 | 8 | 62 | 32 | 0.872247 | 0 | 0 | 0 | 0 | 0 | 0.082031 | 0.082031 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7c8017925ec6857fe2642dc550c398b85fb16a75 | 760 | py | Python | PyObjCTest/test_nsdatepicker.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nsdatepicker.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | PyObjCTest/test_nsdatepicker.py | linuxfood/pyobjc-framework-Cocoa-test | 3475890f165ab26a740f13d5afe4c62b4423a140 | [
"MIT"
] | null | null | null | import AppKit
from PyObjCTools.TestSupport import TestCase, min_os_level
class TestNSDatePicker(TestCase):
def testMethods(self):
self.assertResultIsBOOL(AppKit.NSDatePicker.isBezeled)
self.assertArgIsBOOL(AppKit.NSDatePicker.setBezeled_, 0)
self.assertResultIsBOOL(AppKit.NSDatePicker.isB... | 38 | 80 | 0.777632 | 71 | 760 | 8.183099 | 0.422535 | 0.247849 | 0.192771 | 0.275387 | 0.292599 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02144 | 0.140789 | 760 | 19 | 81 | 40 | 0.8683 | 0 | 0 | 0 | 0 | 0 | 0.009211 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7cb145acdd99506058a0fdbfbceeab333cec7c46 | 73 | py | Python | sherry/view/__init__.py | py-mu/sherry | af1e95f1eada663ba3b3fb607ca88f099f894f36 | [
"MIT"
] | 1 | 2021-06-27T05:54:23.000Z | 2021-06-27T05:54:23.000Z | sherry/view/__init__.py | py-mu/sherry | af1e95f1eada663ba3b3fb607ca88f099f894f36 | [
"MIT"
] | null | null | null | sherry/view/__init__.py | py-mu/sherry | af1e95f1eada663ba3b3fb607ca88f099f894f36 | [
"MIT"
] | 1 | 2021-07-28T09:00:43.000Z | 2021-07-28T09:00:43.000Z | # encoding=utf-8
"""
create by pymu
on 2021/5/30
at 18:16
""" | 12.166667 | 18 | 0.534247 | 13 | 73 | 3 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235294 | 0.30137 | 73 | 6 | 19 | 12.166667 | 0.529412 | 0.712329 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7cc28980840cf19361d43dbafc835ba74f5bb223 | 52 | py | Python | arya-median.py | s163484/meanmedianmode | df9f5097b43a64fafe8e354f144eb8effdcebe1b | [
"MIT"
] | null | null | null | arya-median.py | s163484/meanmedianmode | df9f5097b43a64fafe8e354f144eb8effdcebe1b | [
"MIT"
] | null | null | null | arya-median.py | s163484/meanmedianmode | df9f5097b43a64fafe8e354f144eb8effdcebe1b | [
"MIT"
] | null | null | null | import csv
with open('height-weight.csv') newline='' | 26 | 41 | 0.75 | 8 | 52 | 4.875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 52 | 2 | 41 | 26 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0.320755 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.5 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7cd0b546425a272bd682e409fa2dc339e07b4986 | 7,673 | py | Python | tests/datamodules/RotNet/datasets/test_cropped_dataset.py | DIVA-DIA/DIVA-DAF | 0ae3b873d04f1852d9053cb4cb2fbc7bda73471c | [
"MIT"
] | 3 | 2022-02-10T17:35:41.000Z | 2022-03-04T10:38:58.000Z | tests/datamodules/RotNet/datasets/test_cropped_dataset.py | DIVA-DIA/DIVA-DAF | 0ae3b873d04f1852d9053cb4cb2fbc7bda73471c | [
"MIT"
] | 3 | 2022-02-02T09:12:18.000Z | 2022-02-16T13:42:30.000Z | tests/datamodules/RotNet/datasets/test_cropped_dataset.py | DIVA-DIA/DIVA-DAF | 0ae3b873d04f1852d9053cb4cb2fbc7bda73471c | [
"MIT"
] | null | null | null | from pathlib import PosixPath
import numpy as np
import pytest
import torch
from torchvision.transforms import ToTensor
from torchvision.transforms.functional import rotate
from src.datamodules.RotNet.datasets.cropped_dataset import CroppedRotNet, ROTATION_ANGLES
from tests.test_data.dummy_data_hisdb.dummy_data impor... | 41.928962 | 96 | 0.679786 | 987 | 7,673 | 4.895643 | 0.110436 | 0.070985 | 0.14197 | 0.171358 | 0.757864 | 0.728891 | 0.700124 | 0.642798 | 0.635969 | 0.635969 | 0 | 0.069935 | 0.221035 | 7,673 | 182 | 97 | 42.159341 | 0.738498 | 0 | 0 | 0.580645 | 0 | 0 | 0.218428 | 0.213997 | 0 | 0 | 0 | 0 | 0.187097 | 1 | 0.051613 | false | 0 | 0.051613 | 0.006452 | 0.109677 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7cd143400135d1921cb0b9b46d37240805406cd5 | 22 | py | Python | friut.py | peilonglong/HelloGitHub | f6ac287b3e07b387608700a9a4300ccd421ec1a5 | [
"Apache-2.0"
] | null | null | null | friut.py | peilonglong/HelloGitHub | f6ac287b3e07b387608700a9a4300ccd421ec1a5 | [
"Apache-2.0"
] | null | null | null | friut.py | peilonglong/HelloGitHub | f6ac287b3e07b387608700a9a4300ccd421ec1a5 | [
"Apache-2.0"
] | null | null | null | f=['ss','jj']
print(f) | 11 | 13 | 0.5 | 5 | 22 | 2.2 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 22 | 2 | 14 | 11 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
7cd18cae72e2fff481f36c680c0ee59da7d30a3e | 1,171 | py | Python | kapsoya/migrations/0002_auto_20210725_1147.py | Chebichii-Lab/Kapsoya-Estate | ce10224f30a6823396a51d3edd017b286e399acd | [
"MIT"
] | null | null | null | kapsoya/migrations/0002_auto_20210725_1147.py | Chebichii-Lab/Kapsoya-Estate | ce10224f30a6823396a51d3edd017b286e399acd | [
"MIT"
] | null | null | null | kapsoya/migrations/0002_auto_20210725_1147.py | Chebichii-Lab/Kapsoya-Estate | ce10224f30a6823396a51d3edd017b286e399acd | [
"MIT"
] | 1 | 2021-09-30T19:35:45.000Z | 2021-09-30T19:35:45.000Z | # Generated by Django 3.2.5 on 2021-07-25 11:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('kapsoya', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='neighbourhood',
old_name='hood_description',... | 26.613636 | 49 | 0.559351 | 103 | 1,171 | 6.067961 | 0.378641 | 0.2176 | 0.2496 | 0.288 | 0.4864 | 0.4864 | 0.4864 | 0.3456 | 0 | 0 | 0 | 0.024485 | 0.337319 | 1,171 | 43 | 50 | 27.232558 | 0.780928 | 0.038429 | 0 | 0.486486 | 1 | 0 | 0.227758 | 0.041815 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.108108 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7cf1b59aa80cfdb2e57493eba1dd11020a2d37d6 | 99,645 | py | Python | etl/parsers/etw/Microsoft_Windows_Immersive_Shell.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 104 | 2020-03-04T14:31:31.000Z | 2022-03-28T02:59:36.000Z | etl/parsers/etw/Microsoft_Windows_Immersive_Shell.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 7 | 2020-04-20T09:18:39.000Z | 2022-03-19T17:06:19.000Z | etl/parsers/etw/Microsoft_Windows_Immersive_Shell.py | IMULMUL/etl-parser | 76b7c046866ce0469cd129ee3f7bb3799b34e271 | [
"Apache-2.0"
] | 16 | 2020-03-05T18:55:59.000Z | 2022-03-01T10:19:28.000Z | # -*- coding: utf-8 -*-
"""
Microsoft-Windows-Immersive-Shell
GUID : 315a8872-923e-4ea2-9889-33cd4754bf64
"""
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
from... | 29.059493 | 131 | 0.698349 | 11,620 | 99,645 | 5.764458 | 0.06222 | 0.101996 | 0.159369 | 0.191243 | 0.896884 | 0.896302 | 0.87891 | 0.604736 | 0.595853 | 0.595853 | 0 | 0.189101 | 0.176828 | 99,645 | 3,428 | 132 | 29.06797 | 0.627516 | 0.001004 | 0 | 0.437743 | 0 | 0 | 0.242244 | 0.162122 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001556 | 0 | 0.333074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
7cf3257a6b366356e3684e1398d041d8ad3fe8a6 | 194 | py | Python | server/src/tests/samples/private2.py | jhutchings1/pyright | 2b8593a58a2aecc95dac49cce92fc16678cd4e14 | [
"MIT"
] | 1 | 2019-09-14T06:02:16.000Z | 2019-09-14T06:02:16.000Z | server/src/tests/samples/private2.py | jhutchings1/pyright | 2b8593a58a2aecc95dac49cce92fc16678cd4e14 | [
"MIT"
] | 4 | 2021-03-11T07:03:36.000Z | 2021-10-06T22:27:25.000Z | server/src/tests/samples/private2.py | jhutchings1/pyright | 2b8593a58a2aecc95dac49cce92fc16678cd4e14 | [
"MIT"
] | null | null | null | # This sample tests the "reportPrivateUsage" feature.
class _TestClass(object):
pass
class TestClass(object):
def __init__(self):
self.__priv1 = 1
self._prot1 = 1
| 17.636364 | 53 | 0.649485 | 22 | 194 | 5.363636 | 0.727273 | 0.237288 | 0.338983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0.262887 | 194 | 11 | 54 | 17.636364 | 0.797203 | 0.262887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.166667 | 0 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
6b0e196c784bbc65359e32bf294fd04003265197 | 936 | py | Python | flashproxy/test/test_reg.py | arlolra/flashproxy | e73702e769db1ab1e02f7e2ab152cebde6e9b2b7 | [
"MIT"
] | 5 | 2015-04-18T21:00:20.000Z | 2019-12-16T08:18:02.000Z | flashproxy/test/test_reg.py | infinity0/flashproxy | de8d428ab5f2dfcc830ac8a4b34985a87643749f | [
"MIT"
] | 1 | 2020-04-15T15:56:17.000Z | 2020-04-15T15:56:17.000Z | flashproxy/test/test_reg.py | arlolra/flashproxy | e73702e769db1ab1e02f7e2ab152cebde6e9b2b7 | [
"MIT"
] | 3 | 2015-04-25T22:55:17.000Z | 2021-07-29T19:12:12.000Z | #!/usr/bin/env python
import unittest
from flashproxy.reg import Transport
class TransportTest(unittest.TestCase):
def test_transport_parse(self):
self.assertEquals(Transport.parse("a"), Transport("", "a"))
self.assertEquals(Transport.parse("|a"), Transport("", "a"))
self.assertEquals(Tr... | 39 | 86 | 0.659188 | 101 | 936 | 6.009901 | 0.257426 | 0.230643 | 0.299835 | 0.403624 | 0.637562 | 0.581549 | 0.579901 | 0.579901 | 0.518946 | 0.518946 | 0 | 0 | 0.162393 | 936 | 23 | 87 | 40.695652 | 0.774235 | 0.021368 | 0 | 0 | 0 | 0 | 0.040437 | 0 | 0 | 0 | 0 | 0 | 0.647059 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6b129a09ddb4c9b268f7774d1376993041a64807 | 81 | py | Python | nocss/nocss.py | eaybek/nocss | 4133124a542c0f4599758a40b1ddedc6247465e8 | [
"MIT"
] | null | null | null | nocss/nocss.py | eaybek/nocss | 4133124a542c0f4599758a40b1ddedc6247465e8 | [
"MIT"
] | null | null | null | nocss/nocss.py | eaybek/nocss | 4133124a542c0f4599758a40b1ddedc6247465e8 | [
"MIT"
] | null | null | null | class Nocss(object):
pass
if __name__ == "__main__":
print('It works!')
| 13.5 | 26 | 0.617284 | 10 | 81 | 4.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 81 | 5 | 27 | 16.2 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.209877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
6b17b803390488bb3177cab2af793938f54dc4cd | 5,818 | py | Python | tests/components/unifi/test_init.py | tecknicaltom/home-assistant | 5c50fa34056ba2cd0c91c06cbb6a9c894b4be92e | [
"Apache-2.0"
] | 3 | 2019-10-15T16:55:31.000Z | 2020-02-18T21:10:31.000Z | tests/components/unifi/test_init.py | tecknicaltom/home-assistant | 5c50fa34056ba2cd0c91c06cbb6a9c894b4be92e | [
"Apache-2.0"
] | 3 | 2021-02-08T20:54:46.000Z | 2021-09-08T02:30:04.000Z | tests/components/unifi/test_init.py | tecknicaltom/home-assistant | 5c50fa34056ba2cd0c91c06cbb6a9c894b4be92e | [
"Apache-2.0"
] | 6 | 2020-04-10T06:21:11.000Z | 2021-07-01T08:53:38.000Z | """Test UniFi setup process."""
from unittest.mock import Mock, patch
from homeassistant.components import unifi
from homeassistant.setup import async_setup_component
from tests.common import mock_coro, MockConfigEntry
async def test_setup_with_no_config(hass):
"""Test that we do not discover anything or try ... | 33.245714 | 79 | 0.600378 | 700 | 5,818 | 4.771429 | 0.174286 | 0.059281 | 0.040419 | 0.067365 | 0.793114 | 0.751796 | 0.706886 | 0.702395 | 0.663473 | 0.650898 | 0 | 0.024004 | 0.283946 | 5,818 | 174 | 80 | 33.436782 | 0.777724 | 0.004297 | 0 | 0.602837 | 0 | 0 | 0.139737 | 0.031094 | 0 | 0 | 0 | 0 | 0.156028 | 1 | 0 | false | 0.028369 | 0.028369 | 0 | 0.028369 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6b197b999341280c6eb735e97733c45a70d9ac4c | 88 | py | Python | codes_auto/86.partition-list.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | codes_auto/86.partition-list.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | codes_auto/86.partition-list.py | smartmark-pro/leetcode_record | 6504b733d892a705571eb4eac836fb10e94e56db | [
"MIT"
] | null | null | null | #
# @lc app=leetcode.cn id=86 lang=python3
#
# [86] partition-list
#
None
# @lc code=end | 12.571429 | 40 | 0.659091 | 15 | 88 | 3.866667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067568 | 0.159091 | 88 | 7 | 41 | 12.571429 | 0.716216 | 0.806818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6b1ce6f8a220dd790b8fbc285dc5696aca77b99e | 218 | py | Python | sktime/clustering/metrics/__init__.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T02:45:39.000Z | 2021-12-22T02:45:39.000Z | sktime/clustering/metrics/__init__.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | sktime/clustering/metrics/__init__.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Metric for clustering."""
__all__ = ["medoids", "dba", "mean_average"]
from sktime.clustering.metrics.averaging import dba, mean_average
from sktime.clustering.metrics.medoids import medoids
| 36.333333 | 65 | 0.743119 | 27 | 218 | 5.777778 | 0.592593 | 0.089744 | 0.179487 | 0.230769 | 0.525641 | 0.525641 | 0.525641 | 0 | 0 | 0 | 0 | 0.005102 | 0.100917 | 218 | 5 | 66 | 43.6 | 0.790816 | 0.206422 | 0 | 0 | 0 | 0 | 0.131737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6b35a33a83e932c23fa6c04419d2ec91bb101ebf | 142 | py | Python | python/flask/template-site/run.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 13 | 2018-12-17T23:30:54.000Z | 2021-12-29T14:31:43.000Z | python/flask/template-site/run.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 36 | 2018-06-07T21:34:13.000Z | 2022-03-13T21:01:43.000Z | python/flask/template-site/run.py | kosyachniy/dev | 39bb5c5ee10780bfcd8a59cf59cfb1a348ac52a4 | [
"Apache-2.0"
] | 2 | 2021-01-03T11:47:20.000Z | 2021-12-29T14:31:49.000Z | #!flask/bin/python
from app import app
app.run(host='0.0.0.0', port=80, debug=True, threaded=True) #, ssl_context=('server.crt', 'server.key') | 47.333333 | 103 | 0.704225 | 26 | 142 | 3.807692 | 0.730769 | 0.060606 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045802 | 0.077465 | 142 | 3 | 103 | 47.333333 | 0.709924 | 0.415493 | 0 | 0 | 0 | 0 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
6b3606b06050daf963ef2a7fd943a6ee48a83e1e | 138 | py | Python | solution/1786. number-of-restricted-path-from-first-to-last-node.py | sundaycat/Leetcode-Practice | 65c3ab0f967331a095fd8a6eb2f3d7765cbf7d5a | [
"MIT"
] | null | null | null | solution/1786. number-of-restricted-path-from-first-to-last-node.py | sundaycat/Leetcode-Practice | 65c3ab0f967331a095fd8a6eb2f3d7765cbf7d5a | [
"MIT"
] | null | null | null | solution/1786. number-of-restricted-path-from-first-to-last-node.py | sundaycat/Leetcode-Practice | 65c3ab0f967331a095fd8a6eb2f3d7765cbf7d5a | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def countRestrictedPaths(self, n: int, edges: List[List[int]]) -> int:
| 19.714286 | 74 | 0.601449 | 16 | 138 | 5.1875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.297101 | 138 | 7 | 75 | 19.714286 | 0.85567 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.333333 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
860e9e785c4cc39de7a5831433a9a747116eb8fa | 82 | py | Python | Python_programming/4_comments.py | Aliktk/Python_Chilla | bfc0bd0ae9ad4b3f4a4cbccf59874a93343d6913 | [
"Apache-2.0"
] | 8 | 2022-02-16T19:17:15.000Z | 2022-03-02T07:08:32.000Z | Python_programming/4_comments.py | MansoorJan/Python_Chilla | 63d6c86b6856ab858e2c6b9616941dfebeef45e1 | [
"Apache-2.0"
] | null | null | null | Python_programming/4_comments.py | MansoorJan/Python_Chilla | 63d6c86b6856ab858e2c6b9616941dfebeef45e1 | [
"Apache-2.0"
] | 2 | 2022-02-26T15:27:07.000Z | 2022-02-28T17:59:39.000Z | # name = str(input("Enter Your Name: "))
# hash is used for commenting control + / | 41 | 41 | 0.670732 | 12 | 82 | 4.583333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182927 | 82 | 2 | 41 | 41 | 0.820896 | 0.95122 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
861daafa80543bf480cc45e98b4d9060e4bc603e | 38 | py | Python | analysis/scripts/__init__.py | ashwinvis/analysis-scripts | 73f8a10b4a00d550869fb41ade52e4cf8e113884 | [
"MIT"
] | 1 | 2020-04-10T10:45:25.000Z | 2020-04-10T10:45:25.000Z | analysis/scripts/__init__.py | ashwinvis/analysis-scripts | 73f8a10b4a00d550869fb41ade52e4cf8e113884 | [
"MIT"
] | 12 | 2020-03-29T13:43:19.000Z | 2020-04-01T07:26:02.000Z | analysis/scripts/__init__.py | ashwinvis/analysis-scripts | 73f8a10b4a00d550869fb41ade52e4cf8e113884 | [
"MIT"
] | 7 | 2020-03-28T14:29:20.000Z | 2020-03-31T16:23:00.000Z | """
Created by nuffer at 3/24/20
"""
| 7.6 | 28 | 0.578947 | 7 | 38 | 3.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 0.210526 | 38 | 4 | 29 | 9.5 | 0.566667 | 0.736842 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
8637d6838a669c24091de35ec6e967dea3b9ec8d | 159 | py | Python | fdp/methods/nstxu/shottime.py | Fusion-Data-Platform/fdp | d87a52207238f168ed69b9f96dc8f20f4481366d | [
"MIT"
] | 10 | 2015-12-18T22:38:07.000Z | 2020-03-02T09:15:50.000Z | fdp/methods/nstxu/shottime.py | Fusion-Data-Platform/fdp | d87a52207238f168ed69b9f96dc8f20f4481366d | [
"MIT"
] | 14 | 2015-12-07T16:41:48.000Z | 2019-01-18T17:48:55.000Z | fdp/methods/nstxu/shottime.py | Fusion-Data-Platform/fdp | d87a52207238f168ed69b9f96dc8f20f4481366d | [
"MIT"
] | 5 | 2016-05-20T17:35:23.000Z | 2019-01-17T19:00:06.000Z | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 23 14:34:23 2016
@author: ktritz
"""
def shottime(self):
return float(self._netcat('skylark', 8530, ''))
| 14.454545 | 51 | 0.610063 | 23 | 159 | 4.173913 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130769 | 0.18239 | 159 | 10 | 52 | 15.9 | 0.607692 | 0.471698 | 0 | 0 | 0 | 0 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
863a7939c49c5df52eeb0c7f0eb848c14598a382 | 212 | py | Python | app/models/voice.py | goldyfruit/mycroft-api | 0b00692126cbdf486d32db93db0899ce6c9eb9e5 | [
"MIT"
] | 5 | 2022-01-04T17:13:02.000Z | 2022-01-24T22:15:16.000Z | app/models/voice.py | goldyfruit/mycroft-api | 0b00692126cbdf486d32db93db0899ce6c9eb9e5 | [
"MIT"
] | 2 | 2022-02-07T01:39:42.000Z | 2022-03-03T14:45:48.000Z | app/models/voice.py | goldyfruit/mycroft-api | 0b00692126cbdf486d32db93db0899ce6c9eb9e5 | [
"MIT"
] | 2 | 2022-01-24T22:15:19.000Z | 2022-03-09T18:37:26.000Z | """Models related to voice
"""
from typing import Optional
from pydantic import BaseModel
class Speak(BaseModel):
"""Model for speaking POST action
"""
utterance: str
lang: Optional[str] = None
| 17.666667 | 37 | 0.693396 | 26 | 212 | 5.653846 | 0.807692 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212264 | 212 | 11 | 38 | 19.272727 | 0.88024 | 0.278302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8654cdd90ae3e2b9e3875e66f6fabee84e7872c8 | 251 | py | Python | app/views.py | ABushuev/mediacentral | c11ee084a37da5a0b31be8c4678019705056486d | [
"MIT"
] | null | null | null | app/views.py | ABushuev/mediacentral | c11ee084a37da5a0b31be8c4678019705056486d | [
"MIT"
] | null | null | null | app/views.py | ABushuev/mediacentral | c11ee084a37da5a0b31be8c4678019705056486d | [
"MIT"
] | null | null | null | from flask import send_file
from app import app, Settings
@app.route('/')
@app.route('/index')
def index():
return "Hello, World!"
@app.route('/favicon.ico')
def favicon():
return send_file(Settings('path:favicon.ico'), mimetype='image/gif') | 22.818182 | 72 | 0.693227 | 36 | 251 | 4.777778 | 0.527778 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123506 | 251 | 11 | 72 | 22.818182 | 0.781818 | 0 | 0 | 0 | 0 | 0 | 0.22619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | true | 0 | 0.222222 | 0.222222 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
8683d119572737f33f2c510bdebbc240742fd4ec | 897 | py | Python | matrix_functions.py | AGreatScientist/Unity.py | c56c1b168664dfa83f7a7f2205e85b358b569641 | [
"MIT"
] | null | null | null | matrix_functions.py | AGreatScientist/Unity.py | c56c1b168664dfa83f7a7f2205e85b358b569641 | [
"MIT"
] | null | null | null | matrix_functions.py | AGreatScientist/Unity.py | c56c1b168664dfa83f7a7f2205e85b358b569641 | [
"MIT"
] | null | null | null | import math
import numpy as np
def translate(pos):
tx, ty, tz = pos
return np.array([
[1, 0, 0, 0],
[0, 1, 0, 0],
[0, 0, 1, 0],
[tx, ty, tz, 1]
])
def rotate_x(a):
return np.array([
[1, 0, 0, 0],
[0, math.cos(a), math.sin(a), 0],
... | 19.085106 | 43 | 0.363434 | 147 | 897 | 2.197279 | 0.163265 | 0.210526 | 0.185759 | 0.123839 | 0.727554 | 0.653251 | 0.643963 | 0.529412 | 0.430341 | 0.430341 | 0 | 0.118547 | 0.416945 | 897 | 47 | 44 | 19.085106 | 0.499044 | 0 | 0 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.052632 | 0.105263 | 0.315789 | 0 | 0 | 0 | 0 | null | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
868f92f9ac16096d90c15cdf5b2fad64b878c8b3 | 215 | py | Python | aoc2020/d05_binary_boarding/answer.py | sflis/aoc2020 | ef6ee81c18b6ec8332b150638b3d78772fe8327a | [
"Unlicense"
] | null | null | null | aoc2020/d05_binary_boarding/answer.py | sflis/aoc2020 | ef6ee81c18b6ec8332b150638b3d78772fe8327a | [
"Unlicense"
] | null | null | null | aoc2020/d05_binary_boarding/answer.py | sflis/aoc2020 | ef6ee81c18b6ec8332b150638b3d78772fe8327a | [
"Unlicense"
] | null | null | null | from aoc2020.answer import Answer
class AnswerD05(Answer):
def _read_input(self, input_path):
pass
@property
def answer1(self):
pass
@property
def answer2(self):
pass
| 14.333333 | 38 | 0.618605 | 25 | 215 | 5.2 | 0.6 | 0.184615 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053691 | 0.306977 | 215 | 14 | 39 | 15.357143 | 0.818792 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.3 | 0.1 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
86c4728e36d0886ea77395cd846fe84a00f11c49 | 305 | py | Python | var.py | theGreenJedi/practicepy | 330da97b0c79c3c8792ebb4166ecf2609545e127 | [
"MIT"
] | null | null | null | var.py | theGreenJedi/practicepy | 330da97b0c79c3c8792ebb4166ecf2609545e127 | [
"MIT"
] | null | null | null | var.py | theGreenJedi/practicepy | 330da97b0c79c3c8792ebb4166ecf2609545e127 | [
"MIT"
] | null | null | null |
# Initialize a variable with an integer value.
var = 8
print( var )
# Assign a float value to the variable.
var = 3.142
print( var )
# Assign a string value to the variable.
var = 'Python in easy steps'
print( var )
# Assign a boolean value to the variable.
var = True
print( var )
| 16.944444 | 47 | 0.655738 | 49 | 305 | 4.102041 | 0.489796 | 0.159204 | 0.208955 | 0.223881 | 0.313433 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022321 | 0.265574 | 305 | 17 | 48 | 17.941176 | 0.870536 | 0.527869 | 0 | 0.5 | 0 | 0 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
86ca6b5d493774fc203133f67bcde0ff85c85917 | 13,582 | py | Python | flower/views/auth.py | itssimon/flower | 087d815ee956af0e049929468fe75e321d57b30e | [
"BSD-3-Clause"
] | null | null | null | flower/views/auth.py | itssimon/flower | 087d815ee956af0e049929468fe75e321d57b30e | [
"BSD-3-Clause"
] | null | null | null | flower/views/auth.py | itssimon/flower | 087d815ee956af0e049929468fe75e321d57b30e | [
"BSD-3-Clause"
] | null | null | null | import json
import re
import os
import uuid
from urllib.parse import urlencode
import tornado.gen
import tornado.web
import tornado.auth
from tornado.options import options
from celery.utils.imports import instantiate
from ..views import BaseHandler
class GoogleAuth2LoginHandler(BaseHandler, tornado.auth.GoogleOAu... | 37.210959 | 99 | 0.604477 | 1,523 | 13,582 | 5.153644 | 0.124097 | 0.046248 | 0.0265 | 0.030832 | 0.791311 | 0.761498 | 0.735763 | 0.711046 | 0.674353 | 0.604281 | 0 | 0.006439 | 0.279635 | 13,582 | 364 | 100 | 37.313187 | 0.795789 | 0.006626 | 0 | 0.59661 | 0 | 0 | 0.166135 | 0.016087 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.037288 | 0.030508 | 0.189831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
86d8b5cf2b6f984e58fd6b219cc58a12fbf8625c | 463 | py | Python | install.py | dennisfarmer/Ensemble-Video-Downloader | fa3cb334f9140b5fecdfcb1c2ee6020743a484a7 | [
"MIT"
] | null | null | null | install.py | dennisfarmer/Ensemble-Video-Downloader | fa3cb334f9140b5fecdfcb1c2ee6020743a484a7 | [
"MIT"
] | 1 | 2021-08-02T19:08:13.000Z | 2021-08-03T02:35:49.000Z | install.py | dennisfarmer/Ensemble-Video-Downloader | fa3cb334f9140b5fecdfcb1c2ee6020743a484a7 | [
"MIT"
] | 1 | 2021-08-03T04:44:13.000Z | 2021-08-03T04:44:13.000Z | #!/usr/bin/env python3
import sys
import subprocess
subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--upgrade', 'pip'])
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'pyperclip'])
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'PyQt5'])
# reqs = subprocess.check_output... | 38.583333 | 83 | 0.680346 | 59 | 463 | 5.237288 | 0.474576 | 0.194175 | 0.18123 | 0.220065 | 0.417476 | 0.417476 | 0.417476 | 0.417476 | 0 | 0 | 0 | 0.007109 | 0.088553 | 463 | 11 | 84 | 42.090909 | 0.725118 | 0.410367 | 0 | 0 | 0 | 0 | 0.230483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
812791ef8647dcebccad9b581a169a94ea794eda | 841 | py | Python | PreprocessData/all_class_files/AddAction.py | wkid-neu/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 3 | 2021-11-06T12:29:05.000Z | 2022-03-22T12:48:55.000Z | PreprocessData/all_class_files/AddAction.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | null | null | null | PreprocessData/all_class_files/AddAction.py | DylanNEU/Schema | 4854720a15894dd814691a55e03329ecbbb6f558 | [
"MIT"
] | 1 | 2021-11-06T12:29:12.000Z | 2021-11-06T12:29:12.000Z | from PreprocessData.all_class_files.UpdateAction import UpdateAction
import global_data
class AddAction(UpdateAction):
def __init__(self, additionalType=None, alternateName=None, description=None, disambiguatingDescription=None, identifier=None, image=None, mainEntityOfPage=None, name=None, potentialAction=N... | 105.125 | 408 | 0.812128 | 89 | 841 | 7.550562 | 0.41573 | 0.053571 | 0.065476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092747 | 841 | 7 | 409 | 120.142857 | 0.880734 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
813ea812f52460708434c7e9aa5c5627b7338ead | 185 | py | Python | ablator/tagging/serializers.py | ablator/ablator | 514635f6b3c34da590ea9f9824152a74cdf3dec9 | [
"BSD-3-Clause"
] | 65 | 2017-08-16T14:33:40.000Z | 2022-02-17T14:39:36.000Z | ablator/tagging/serializers.py | ablator/ablator | 514635f6b3c34da590ea9f9824152a74cdf3dec9 | [
"BSD-3-Clause"
] | 71 | 2017-08-13T13:35:04.000Z | 2019-10-31T03:23:18.000Z | ablator/tagging/serializers.py | ablator/ablator | 514635f6b3c34da590ea9f9824152a74cdf3dec9 | [
"BSD-3-Clause"
] | 3 | 2017-09-10T04:30:34.000Z | 2019-10-25T09:50:00.000Z | from rest_framework import serializers
from tagging.models import Tag
class TagSerializer(serializers.ModelSerializer):
class Meta:
model = Tag
fields = ["name"]
| 18.5 | 49 | 0.713514 | 20 | 185 | 6.55 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.221622 | 185 | 9 | 50 | 20.555556 | 0.909722 | 0 | 0 | 0 | 0 | 0 | 0.021622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
8143c8dc2d19d1d195393879fc75def5afc3fbee | 242 | py | Python | accounts/models.py | BelalElolahi/DjangoX | 7510d3bcf8bdd0435e4d720fed40f1699e934256 | [
"MIT"
] | null | null | null | accounts/models.py | BelalElolahi/DjangoX | 7510d3bcf8bdd0435e4d720fed40f1699e934256 | [
"MIT"
] | null | null | null | accounts/models.py | BelalElolahi/DjangoX | 7510d3bcf8bdd0435e4d720fed40f1699e934256 | [
"MIT"
] | null | null | null | from django.contrib.auth.models import AbstractUser
from django.db import models
class CustomUser(AbstractUser):
phone_number = models.IntegerField(max_length=12 , null=True , blank=True)
def __str__(self):
return self.email | 30.25 | 78 | 0.760331 | 32 | 242 | 5.5625 | 0.75 | 0.11236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009804 | 0.157025 | 242 | 8 | 79 | 30.25 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
d49025c409d98b3c386666270cda987b619c7798 | 120 | py | Python | iara/system/date.py | perseu912/iara | eed939a6fb9a225d11a28797e6799945c3cc2a7a | [
"MIT"
] | null | null | null | iara/system/date.py | perseu912/iara | eed939a6fb9a225d11a28797e6799945c3cc2a7a | [
"MIT"
] | null | null | null | iara/system/date.py | perseu912/iara | eed939a6fb9a225d11a28797e6799945c3cc2a7a | [
"MIT"
] | 1 | 2021-07-17T05:11:34.000Z | 2021-07-17T05:11:34.000Z |
#data
def date_base():
from datetime import datetime as dt
dt = dt.now()
return dt.strftime('%d/%m/%Y %H:%M:%S')
| 17.142857 | 41 | 0.625 | 22 | 120 | 3.363636 | 0.772727 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 120 | 6 | 42 | 20 | 0.755102 | 0.033333 | 0 | 0 | 0 | 0 | 0.149123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d4bb4fe3d149915050174c77aed26b2a80644a04 | 395 | py | Python | src/the_tale/the_tale/linguistics/lexicon/exceptions.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 1 | 2020-04-02T11:51:20.000Z | 2020-04-02T11:51:20.000Z | src/the_tale/the_tale/linguistics/lexicon/exceptions.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | null | null | null | src/the_tale/the_tale/linguistics/lexicon/exceptions.py | devapromix/the-tale | 2a10efd3270734f8cf482b4cfbc5353ef8f0494c | [
"BSD-3-Clause"
] | null | null | null |
import smart_imports
smart_imports.all()
class LexiconError(linguistics_exceptions.LinguisticsError):
MSG = None
class NoFreeVerificatorSubstitutionError(linguistics_exceptions.LinguisticsError):
MSG = 'No free verificator substitution for key %(key)s and variable %(variable)s'
class WrongFormNumberErro... | 23.235294 | 86 | 0.805063 | 40 | 395 | 7.825 | 0.625 | 0.201278 | 0.354633 | 0.383387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124051 | 395 | 16 | 87 | 24.6875 | 0.904624 | 0 | 0 | 0 | 0 | 0 | 0.233503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
d4c08a7da0e957aa1e275e5947d8d63577c85376 | 9,849 | py | Python | tests/integration/VotingEscrow/test_voting_escrow.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 217 | 2020-06-24T14:01:21.000Z | 2022-03-29T08:35:24.000Z | tests/integration/VotingEscrow/test_voting_escrow.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 25 | 2020-06-24T09:39:02.000Z | 2022-03-22T17:03:00.000Z | tests/integration/VotingEscrow/test_voting_escrow.py | AqualisDAO/curve-dao-contracts | beec73a068da8ed01c0f710939dc5adb776d565b | [
"MIT"
] | 110 | 2020-07-10T22:45:49.000Z | 2022-03-29T02:51:08.000Z | from tests.conftest import approx
H = 3600
DAY = 86400
WEEK = 7 * DAY
MAXTIME = 126144000
TOL = 120 / WEEK
def test_voting_powers(web3, chain, accounts, token, voting_escrow):
"""
Test voting power in the following scenario.
Alice:
~~~~~~~
^
| * *
| | \ | \
| | \ | \... | 38.174419 | 96 | 0.636004 | 1,329 | 9,849 | 4.531979 | 0.095561 | 0.141458 | 0.062261 | 0.053794 | 0.850075 | 0.816039 | 0.765897 | 0.720903 | 0.650008 | 0.572306 | 0 | 0.029802 | 0.226622 | 9,849 | 257 | 97 | 38.322957 | 0.76093 | 0.092801 | 0 | 0.543478 | 0 | 0 | 0.066403 | 0 | 0 | 0 | 0 | 0 | 0.309783 | 1 | 0.005435 | false | 0 | 0.005435 | 0 | 0.01087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d4c0eb71cdd0f4a3cea936ddf1f0846526619f17 | 88 | py | Python | lib/sparkperf/__init__.py | My-Technical-Architect/spark-perf | 6e4f26de0fcd58b629abb8f5389bb15f914752e7 | [
"Apache-2.0"
] | 357 | 2015-01-01T20:32:54.000Z | 2022-03-07T08:01:47.000Z | lib/sparkperf/__init__.py | My-Technical-Architect/spark-perf | 6e4f26de0fcd58b629abb8f5389bb15f914752e7 | [
"Apache-2.0"
] | 84 | 2015-01-04T21:03:01.000Z | 2020-01-30T12:27:51.000Z | lib/sparkperf/__init__.py | DavideB/spark-perf | 5564654eb4116859dbe5a3ad57f508a1ef06d075 | [
"Apache-2.0"
] | 179 | 2015-01-06T06:45:55.000Z | 2021-05-12T15:45:56.000Z | import os
PROJ_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../")) | 29.333333 | 77 | 0.681818 | 14 | 88 | 3.928571 | 0.642857 | 0.327273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068182 | 88 | 3 | 77 | 29.333333 | 0.670732 | 0 | 0 | 0 | 0 | 0 | 0.067416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
d4d4142de42028e07516abe34e02186ff126aebd | 79 | py | Python | src/oscar/apps/dashboard/users/__init__.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | src/oscar/apps/dashboard/users/__init__.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | src/oscar/apps/dashboard/users/__init__.py | sainjusajan/django-oscar | 466e8edc807be689b0a28c9e525c8323cc48b8e1 | [
"BSD-3-Clause"
] | null | null | null | default_app_config = 'oscar.apps.dashboard.users.config.UsersDashboardConfig'
| 39.5 | 78 | 0.848101 | 9 | 79 | 7.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050633 | 79 | 1 | 79 | 79 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0.692308 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d4e624653c4c165bb7afc5d799f780a867413e3d | 38 | py | Python | Fundamentos/entrada-datos.py | ricnef2121/python | 9669921f3a9f9cafd1b40a17948c5dcfce60a1ac | [
"MIT"
] | null | null | null | Fundamentos/entrada-datos.py | ricnef2121/python | 9669921f3a9f9cafd1b40a17948c5dcfce60a1ac | [
"MIT"
] | null | null | null | Fundamentos/entrada-datos.py | ricnef2121/python | 9669921f3a9f9cafd1b40a17948c5dcfce60a1ac | [
"MIT"
] | null | null | null | """
solictar datos desde consola
"""
| 7.6 | 28 | 0.657895 | 4 | 38 | 6.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184211 | 38 | 4 | 29 | 9.5 | 0.806452 | 0.736842 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
d4f8054b5f86c01b21526997316d4ca08841e1f9 | 107 | py | Python | helpsocial/__init__.py | helpsocial/API_Scripts | 8ca7e08d2be0691e8ae21937c1423831e5caac91 | [
"MIT"
] | null | null | null | helpsocial/__init__.py | helpsocial/API_Scripts | 8ca7e08d2be0691e8ae21937c1423831e5caac91 | [
"MIT"
] | null | null | null | helpsocial/__init__.py | helpsocial/API_Scripts | 8ca7e08d2be0691e8ae21937c1423831e5caac91 | [
"MIT"
] | null | null | null |
from .client import RestConnectClient, StreamingConnectClient,\
API_VERSION, API_HOST
| 26.75 | 63 | 0.691589 | 9 | 107 | 8 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261682 | 107 | 3 | 64 | 35.666667 | 0.911392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
be10164f18b8dcb968e90669c9df6c8c21725611 | 204 | py | Python | HW6/HOhorodnyk/CW2.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | null | null | null | HW6/HOhorodnyk/CW2.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | null | null | null | HW6/HOhorodnyk/CW2.py | kolyasalubov/Lv-677.PythonCore | c9f9107c734a61e398154a90b8a3e249276c2704 | [
"MIT"
] | 6 | 2022-02-22T22:30:49.000Z | 2022-03-28T12:51:19.000Z | def filter_words(st):
"""
Write a function taking in a string like
WOW this is REALLY amazing
and returning Wow this is really amazing.
"""
return st.capitalize()
| 20.4 | 46 | 0.607843 | 27 | 204 | 4.555556 | 0.740741 | 0.113821 | 0.146341 | 0.243902 | 0.357724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.328431 | 204 | 10 | 47 | 20.4 | 0.89781 | 0.544118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 1 | 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 | 4 |
be23aa93394e417fd1c48b6e41e981c3d9a4c383 | 118 | py | Python | pyAitu/models/command/__init__.py | avatar29A/pyAitu | 7ec14d6c81e0a833af43272f7138cc3389d677ee | [
"Apache-2.0"
] | null | null | null | pyAitu/models/command/__init__.py | avatar29A/pyAitu | 7ec14d6c81e0a833af43272f7138cc3389d677ee | [
"Apache-2.0"
] | null | null | null | pyAitu/models/command/__init__.py | avatar29A/pyAitu | 7ec14d6c81e0a833af43272f7138cc3389d677ee | [
"Apache-2.0"
] | null | null | null | from .inline_command import InlineCommand
from .command import Command
__all__ = [
InlineCommand,
Command,
]
| 14.75 | 41 | 0.745763 | 12 | 118 | 6.916667 | 0.5 | 0.313253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194915 | 118 | 7 | 42 | 16.857143 | 0.873684 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
be24de1b6910b3804a6e51f66f3e528cfc475dd5 | 1,828 | py | Python | ENIAC/api/eniac_bps/loopback.py | webclinic017/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | 1 | 2021-12-11T16:33:54.000Z | 2021-12-11T16:33:54.000Z | ENIAC/api/eniac_bps/loopback.py | webclinic017/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | null | null | null | ENIAC/api/eniac_bps/loopback.py | webclinic017/fast_tools | 144d764e4f169d3ab3753dcc6a79db9f9449de59 | [
"Apache-2.0"
] | 3 | 2021-11-22T09:46:43.000Z | 2022-01-28T22:33:07.000Z | # loop 计算
from sanic.blueprints import Blueprint
# from sanic import response
# from sanic_openapi import doc
# from kafka import KafkaProducer
# import json
# from ..models import StrategyDto
loop = Blueprint('loop', url_prefix='/loop', strict_slashes=True)
# # todo 上传文件
# @loop.put('/test', stream=True)
# @doc.sum... | 32.642857 | 96 | 0.643873 | 219 | 1,828 | 5.278539 | 0.474886 | 0.027682 | 0.019031 | 0.034602 | 0.235294 | 0.235294 | 0.235294 | 0.183391 | 0.119377 | 0.119377 | 0 | 0.006734 | 0.187637 | 1,828 | 56 | 97 | 32.642857 | 0.771717 | 0.884573 | 0 | 0 | 0 | 0 | 0.056604 | 0 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
be2a66e5411bdeafe44fd32a07bf0a92231319ef | 80 | py | Python | test/__init__.py | bianQ/similarweb | 3df31af1267a285d0bc6adf720409ceb43eb56cb | [
"MIT"
] | null | null | null | test/__init__.py | bianQ/similarweb | 3df31af1267a285d0bc6adf720409ceb43eb56cb | [
"MIT"
] | null | null | null | test/__init__.py | bianQ/similarweb | 3df31af1267a285d0bc6adf720409ceb43eb56cb | [
"MIT"
] | null | null | null | """
Author : Alan
Date : 2021/7/25 12:01
Email : vagaab@foxmail.com
""" | 16 | 29 | 0.575 | 12 | 80 | 3.833333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 0.25 | 80 | 5 | 30 | 16 | 0.583333 | 0.9 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
079a05f2bf75e1bad4e5fbe996d478045692864e | 535 | py | Python | fsleyes/tests/testdata/fsleyes_plugin_bad_example/setup.py | pauldmccarthy/fsleyes | 453a6b91ec7763c39195814d635257e3766acf83 | [
"Apache-2.0"
] | 12 | 2018-05-05T01:36:25.000Z | 2021-09-23T20:44:08.000Z | fsleyes/tests/testdata/fsleyes_plugin_bad_example/setup.py | pauldmccarthy/fsleyes | 453a6b91ec7763c39195814d635257e3766acf83 | [
"Apache-2.0"
] | 97 | 2018-05-05T02:17:23.000Z | 2022-03-29T14:58:42.000Z | fsleyes/tests/testdata/fsleyes_plugin_bad_example/setup.py | pauldmccarthy/fsleyes | 453a6b91ec7763c39195814d635257e3766acf83 | [
"Apache-2.0"
] | 6 | 2017-12-09T09:02:00.000Z | 2021-03-05T18:55:13.000Z | #!/usr/bin/env python
from setuptools import setup
setup(
name='fsleyes-plugin-bad-example',
packages=['fsleyes_plugin_bad_example'],
entry_points={
'fsleyes_views' : [
'Bad plugin view = fsleyes_plugin_bad_example.plugin:PluginView',
],
'fsleyes_controls' : [
... | 21.4 | 83 | 0.618692 | 54 | 535 | 5.833333 | 0.462963 | 0.206349 | 0.253968 | 0.365079 | 0.27619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.272897 | 535 | 24 | 84 | 22.291667 | 0.809769 | 0.037383 | 0 | 0.125 | 0 | 0 | 0.55642 | 0.363813 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
6af4eee9c79f84553604b73cea674099d675f23a | 72 | py | Python | vdirsyncer/__main__.py | AlecPapierniak/vdirsyncer | 27ebb0902bba66c2d26f892353bf6f05e849fe81 | [
"BSD-3-Clause"
] | 1 | 2020-09-29T14:42:08.000Z | 2020-09-29T14:42:08.000Z | vdirsyncer/__main__.py | AlecPapierniak/vdirsyncer | 27ebb0902bba66c2d26f892353bf6f05e849fe81 | [
"BSD-3-Clause"
] | null | null | null | vdirsyncer/__main__.py | AlecPapierniak/vdirsyncer | 27ebb0902bba66c2d26f892353bf6f05e849fe81 | [
"BSD-3-Clause"
] | 1 | 2019-09-19T09:51:36.000Z | 2019-09-19T09:51:36.000Z | if __name__ == '__main__':
from vdirsyncer.cli import app
app()
| 18 | 34 | 0.652778 | 9 | 72 | 4.333333 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236111 | 72 | 3 | 35 | 24 | 0.709091 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ed32b18f8a4240cbd39dec42b885a8e2dee1e12a | 210 | py | Python | 28. implementStrStr.py | izan-majeed/leetcode | b7fbc734771f94522498d833f72443d07c4e7ed1 | [
"Apache-2.0"
] | 1 | 2021-06-20T09:59:59.000Z | 2021-06-20T09:59:59.000Z | 28. implementStrStr.py | izan-majeed/leetcode | b7fbc734771f94522498d833f72443d07c4e7ed1 | [
"Apache-2.0"
] | null | null | null | 28. implementStrStr.py | izan-majeed/leetcode | b7fbc734771f94522498d833f72443d07c4e7ed1 | [
"Apache-2.0"
] | null | null | null | class Solution:
def strStr(self, haystack: str, needle: str) -> int:
if not needle:
return 0
elif needle in haystack:
return haystack.index(needle)
return -1 | 30 | 56 | 0.566667 | 25 | 210 | 4.76 | 0.68 | 0.201681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014815 | 0.357143 | 210 | 7 | 57 | 30 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
ed367a2bc2deda5417bd48eeb3fb18285da9073b | 180 | py | Python | Roman_Morozov_dz_5/task_4.py | Wern-rm/2074_GB_Python | f0b7a7f4ed993a007c1aef6ec9ce266adb5a3646 | [
"MIT"
] | null | null | null | Roman_Morozov_dz_5/task_4.py | Wern-rm/2074_GB_Python | f0b7a7f4ed993a007c1aef6ec9ce266adb5a3646 | [
"MIT"
] | null | null | null | Roman_Morozov_dz_5/task_4.py | Wern-rm/2074_GB_Python | f0b7a7f4ed993a007c1aef6ec9ce266adb5a3646 | [
"MIT"
] | null | null | null | def get_numbers(src: list):
return [src[i] for i in range(1, len(src)) if src[i] > src[i - 1]]
src = [300, 2, 12, 44, 1, 1, 4, 10, 7, 1, 78, 123, 55]
print(*get_numbers(src)) | 30 | 70 | 0.577778 | 39 | 180 | 2.615385 | 0.615385 | 0.117647 | 0.254902 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.167832 | 0.205556 | 180 | 6 | 71 | 30 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 0.5 | 0.25 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
ed3f9929c03d7a9fc00fab6558850610bbfb95b1 | 358 | py | Python | month01/day08/review.py | Amiao-miao/all-codes | ec50036d42d40086cac5fddf6baf4de18ac91e55 | [
"Apache-2.0"
] | 1 | 2021-02-02T02:17:37.000Z | 2021-02-02T02:17:37.000Z | month01/day08/review.py | Amiao-miao/all-codes | ec50036d42d40086cac5fddf6baf4de18ac91e55 | [
"Apache-2.0"
] | null | null | null | month01/day08/review.py | Amiao-miao/all-codes | ec50036d42d40086cac5fddf6baf4de18ac91e55 | [
"Apache-2.0"
] | null | null | null | """
复习
# 做法 + 用法
获取数据
逻辑处理
显示结果
获取数据
逻辑处理
显示结果
# 做法
def 函数名():
获取数据
逻辑处理
显示结果
# 用法
函数名()
函数名()
# 做法
def 函数名(参数):
逻辑处理
return 结果
# ... | 11.548387 | 21 | 0.256983 | 30 | 358 | 3.066667 | 0.4 | 0.26087 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.670391 | 358 | 31 | 22 | 11.548387 | 0.779661 | 0.72067 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ed5a9a8b7f4fd7d0bce28a09828e2e9139b42558 | 3,395 | py | Python | evennia/utils/tests/test_evform.py | bradley-evans/evennia | 4ad54ffd7ce5755454551dd26a2a410b3e417345 | [
"BSD-3-Clause"
] | 127 | 2015-04-16T15:27:59.000Z | 2022-03-10T08:35:37.000Z | evennia/utils/tests/test_evform.py | bradley-evans/evennia | 4ad54ffd7ce5755454551dd26a2a410b3e417345 | [
"BSD-3-Clause"
] | 14 | 2015-12-17T08:02:18.000Z | 2022-01-30T15:15:38.000Z | evennia/utils/tests/test_evform.py | bradley-evans/evennia | 4ad54ffd7ce5755454551dd26a2a410b3e417345 | [
"BSD-3-Clause"
] | 54 | 2015-06-23T07:27:45.000Z | 2022-02-22T01:46:05.000Z | """
Unit tests for the EvForm text form generator
"""
from django.test import TestCase
from evennia.utils import evform
class TestEvForm(TestCase):
def test_form(self):
self.maxDiff = None
form1 = evform._test()
form2 = evform._test()
self.assertEqual(form1, form2)
# self... | 53.888889 | 101 | 0.385862 | 414 | 3,395 | 3.152174 | 0.217391 | 0.402299 | 0.539464 | 0.536398 | 0.466667 | 0.418391 | 0.418391 | 0.403831 | 0.311111 | 0.296552 | 0 | 0.16135 | 0.362887 | 3,395 | 62 | 102 | 54.758065 | 0.441979 | 0.759352 | 0 | 0 | 0 | 0 | 0.026144 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ed6b5761d5c676588b40343c7b0dc45ab65558a7 | 82 | py | Python | main.py | imnoidpara/clipper | 361c6524331e4d3f7d27f7e6d7b41d92ed7aa258 | [
"MIT"
] | null | null | null | main.py | imnoidpara/clipper | 361c6524331e4d3f7d27f7e6d7b41d92ed7aa258 | [
"MIT"
] | null | null | null | main.py | imnoidpara/clipper | 361c6524331e4d3f7d27f7e6d7b41d92ed7aa258 | [
"MIT"
] | null | null | null | import clipper as clipper
if __name__ == '__main__':
print("I'm alive!")
| 16.4 | 27 | 0.634146 | 11 | 82 | 4 | 0.909091 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.231707 | 82 | 4 | 28 | 20.5 | 0.698413 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ed8379c90230ae6e38776584079f4894188f5a70 | 62 | py | Python | apps/ImageSearch/algs/RandomSampling/__init__.py | AmFamMLTeam/NEXT | 2b604230395be1b98e84115c20b5f509d5f24411 | [
"Apache-2.0"
] | 2 | 2020-11-16T17:01:36.000Z | 2022-03-04T17:07:59.000Z | apps/ImageSearch/algs/RandomSampling/__init__.py | AmFamMLTeam/NEXT | 2b604230395be1b98e84115c20b5f509d5f24411 | [
"Apache-2.0"
] | null | null | null | apps/ImageSearch/algs/RandomSampling/__init__.py | AmFamMLTeam/NEXT | 2b604230395be1b98e84115c20b5f509d5f24411 | [
"Apache-2.0"
] | null | null | null | from apps.ImageSearch.algs.base import BaseAlgorithm as MyAlg
| 31 | 61 | 0.854839 | 9 | 62 | 5.888889 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 62 | 1 | 62 | 62 | 0.946429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9c09806f24dd9bc860176dc9cf89fdd5b235475c | 256 | py | Python | bizhi/apps/picture/admin.py | cjz-yu/question_bank | 3332b987481dd9d3adea51a6ca6c8ae5ee4ab5d1 | [
"Apache-2.0"
] | null | null | null | bizhi/apps/picture/admin.py | cjz-yu/question_bank | 3332b987481dd9d3adea51a6ca6c8ae5ee4ab5d1 | [
"Apache-2.0"
] | 10 | 2020-03-24T17:25:58.000Z | 2022-03-11T23:56:24.000Z | bizhi/apps/picture/admin.py | cjz-yu/question_bank | 3332b987481dd9d3adea51a6ca6c8ae5ee4ab5d1 | [
"Apache-2.0"
] | null | null | null | from django.contrib import admin
from django.contrib import admin
from . import models
# Register your models here.
admin.site.register(models.Category)
admin.site.register(models.Picture)
admin.site.register(models.Comment)
# Register your models here.
| 23.272727 | 36 | 0.808594 | 36 | 256 | 5.75 | 0.361111 | 0.130435 | 0.246377 | 0.333333 | 0.289855 | 0.289855 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105469 | 256 | 10 | 37 | 25.6 | 0.90393 | 0.207031 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9c0f39227d6f0fb8c39174d0fb9d618902b47207 | 24,508 | py | Python | tests/unit_tests/test_tethys_services/test_utilities.py | quyendong/tethys | 99bcb524d5b2021b88d5fa15b7ed6b8acb460997 | [
"BSD-2-Clause"
] | 1 | 2020-10-08T20:38:33.000Z | 2020-10-08T20:38:33.000Z | tests/unit_tests/test_tethys_services/test_utilities.py | quyendong/tethys | 99bcb524d5b2021b88d5fa15b7ed6b8acb460997 | [
"BSD-2-Clause"
] | 1 | 2018-04-14T19:40:54.000Z | 2018-04-14T19:40:54.000Z | tests/unit_tests/test_tethys_services/test_utilities.py | quyendong/tethys | 99bcb524d5b2021b88d5fa15b7ed6b8acb460997 | [
"BSD-2-Clause"
] | 1 | 2021-09-07T14:47:11.000Z | 2021-09-07T14:47:11.000Z | import unittest
import mock
from django.core.exceptions import ObjectDoesNotExist
from social_core.exceptions import AuthAlreadyAssociated, AuthException
from tethys_dataset_services.engines import HydroShareDatasetEngine
from tethys_services.utilities import ensure_oauth2, initialize_engine_object, list_dataset_engi... | 41.120805 | 120 | 0.66109 | 2,733 | 24,508 | 5.518478 | 0.054885 | 0.068094 | 0.074393 | 0.059475 | 0.836693 | 0.781925 | 0.717146 | 0.689696 | 0.659926 | 0.617557 | 0 | 0.00232 | 0.261221 | 24,508 | 595 | 121 | 41.189916 | 0.830664 | 0 | 0 | 0.56391 | 0 | 0 | 0.097193 | 0.073894 | 0 | 0 | 0 | 0 | 0.160401 | 1 | 0.082707 | false | 0.035088 | 0.037594 | 0.002506 | 0.125313 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9c21f6da78a79ada9aa90b3ab4440534dc41a8b8 | 39 | py | Python | tests/tests.py | ryanwallace96/opinet | 72495ceef2382cb76f2318f970147cc7c6c8a45a | [
"MIT"
] | null | null | null | tests/tests.py | ryanwallace96/opinet | 72495ceef2382cb76f2318f970147cc7c6c8a45a | [
"MIT"
] | null | null | null | tests/tests.py | ryanwallace96/opinet | 72495ceef2382cb76f2318f970147cc7c6c8a45a | [
"MIT"
] | null | null | null | """
Test suite for evosim package.
"""
| 9.75 | 30 | 0.641026 | 5 | 39 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 39 | 3 | 31 | 13 | 0.78125 | 0.769231 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9c2ee5284b2256407dd57a1161d73a5d80dc4f6e | 308 | py | Python | bin/binaryFunctions.py | Thearchermancoding/TruthTable | 91c85b0efa204f76c7fbca82add46ed9c49b7c7f | [
"MIT"
] | null | null | null | bin/binaryFunctions.py | Thearchermancoding/TruthTable | 91c85b0efa204f76c7fbca82add46ed9c49b7c7f | [
"MIT"
] | null | null | null | bin/binaryFunctions.py | Thearchermancoding/TruthTable | 91c85b0efa204f76c7fbca82add46ed9c49b7c7f | [
"MIT"
] | null | null | null | def xor(a, b):
return bool_to_int((not (a and b)) and (a or b))
def bool_to_int(b):
return 1 if b else 0
def half_adder(a, b):
return xor(a, b), bool_to_int(a and b)
def full_adder(a, b, c):
s1, c1 = half_adder(a, b)
s2, c2 = half_adder(s1, c)
return s2, bool_to_int((c1 or c2)) | 19.25 | 52 | 0.603896 | 68 | 308 | 2.558824 | 0.338235 | 0.057471 | 0.206897 | 0.126437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04329 | 0.25 | 308 | 16 | 53 | 19.25 | 0.709957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.3 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9c4b2d1538bdbeccab95787a895390820c4b0859 | 108 | py | Python | script/kmeans.py | Syencil/mobile-yolov5-pruning-distillation | 5d52454bb397ae49677b5da398e4192abc681325 | [
"MIT"
] | 554 | 2020-10-15T06:46:47.000Z | 2022-03-31T11:21:24.000Z | script/kmeans.py | ycbob/mobile-yolov5-pruning-distillation | 5d52454bb397ae49677b5da398e4192abc681325 | [
"MIT"
] | 70 | 2020-11-03T11:47:43.000Z | 2022-03-30T13:53:31.000Z | script/kmeans.py | ycbob/mobile-yolov5-pruning-distillation | 5d52454bb397ae49677b5da398e4192abc681325 | [
"MIT"
] | 121 | 2020-10-26T07:22:33.000Z | 2022-03-28T08:32:55.000Z | from utils.utils import kmean_anchors
if __name__ == '__main__':
_ = kmean_anchors("data/voc.yaml", 20) | 27 | 42 | 0.722222 | 15 | 108 | 4.466667 | 0.8 | 0.358209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.148148 | 108 | 4 | 42 | 27 | 0.706522 | 0 | 0 | 0 | 0 | 0 | 0.192661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
9c4e54263be9a0b80815383da7d97ebdfa59c565 | 167 | py | Python | 2020/week5/keywords.py | Zeyu-Li/cc_club | df1f47ce68f83dea1a95f03e29c7a942716fd8df | [
"MIT"
] | null | null | null | 2020/week5/keywords.py | Zeyu-Li/cc_club | df1f47ce68f83dea1a95f03e29c7a942716fd8df | [
"MIT"
] | null | null | null | 2020/week5/keywords.py | Zeyu-Li/cc_club | df1f47ce68f83dea1a95f03e29c7a942716fd8df | [
"MIT"
] | null | null | null | words = int(input())
word_list = set()
for _ in range(words):
word = input()
word_list.add(word.lower().replace("-", " ", len(word)))
print(len(word_list))
| 16.7 | 60 | 0.610778 | 24 | 167 | 4.083333 | 0.583333 | 0.244898 | 0.265306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173653 | 167 | 9 | 61 | 18.555556 | 0.710145 | 0 | 0 | 0 | 0 | 0 | 0.011976 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9c56f5b71da8dffbb6ee7bc13fe2d82ccb455488 | 5,046 | py | Python | integration/ackermann/test.py | stepanek-m/retdec-regression-tests | 12b834b14ede2826fec451368fa8192ab00ddadf | [
"MIT"
] | null | null | null | integration/ackermann/test.py | stepanek-m/retdec-regression-tests | 12b834b14ede2826fec451368fa8192ab00ddadf | [
"MIT"
] | null | null | null | integration/ackermann/test.py | stepanek-m/retdec-regression-tests | 12b834b14ede2826fec451368fa8192ab00ddadf | [
"MIT"
] | null | null | null | from regression_tests import *
class TestBase(Test):
def test_produce_expected_output(self):
self.assert_c_produces_output_when_run(
input='0 0',
expected_return_code=0,
expected_output=
'''Naive: 3 (4 calls)
Iterative: 3 (2 calls)
Formula: 3 (1 calls)
'''
... | 39.116279 | 109 | 0.66409 | 706 | 5,046 | 4.450425 | 0.164306 | 0.089115 | 0.096754 | 0.160407 | 0.742839 | 0.720242 | 0.718969 | 0.640038 | 0.473265 | 0.331318 | 0 | 0.048274 | 0.207689 | 5,046 | 128 | 110 | 39.421875 | 0.737619 | 0.013872 | 0 | 0.180851 | 0 | 0.010638 | 0.188687 | 0.009172 | 0 | 0 | 0.003494 | 0 | 0.478723 | 1 | 0.074468 | false | 0 | 0.010638 | 0 | 0.202128 | 0.010638 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
9c6dd2a2270938d9b2cafa08eef09aa666d41615 | 661 | py | Python | sfepy/discrete/__init__.py | BubuLK/sfepy | 3e8e2082c26d574dc334fe3a0e0eeb723f7a6657 | [
"BSD-3-Clause"
] | 510 | 2015-01-19T16:22:25.000Z | 2022-03-30T19:02:51.000Z | sfepy/discrete/__init__.py | vlukes/sfepy | f02f88c5df9814ad710c658429e23c90744b0d9d | [
"BSD-3-Clause"
] | 402 | 2015-01-22T10:57:50.000Z | 2022-03-30T15:19:23.000Z | sfepy/discrete/__init__.py | vlukes/sfepy | f02f88c5df9814ad710c658429e23c90744b0d9d | [
"BSD-3-Clause"
] | 156 | 2015-01-05T14:23:38.000Z | 2022-03-22T13:08:30.000Z | from __future__ import absolute_import
from sfepy.discrete.common.domain import Domain
from sfepy.discrete.common.region import Region
from sfepy.discrete.common.fields import Field
from sfepy.discrete.common.poly_spaces import PolySpace
from .functions import Functions, Function
from .conditions import Conditions
fro... | 38.882353 | 76 | 0.818457 | 82 | 661 | 6.47561 | 0.439024 | 0.067797 | 0.12806 | 0.173258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134644 | 661 | 16 | 77 | 41.3125 | 0.928322 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.933333 | 0 | 0.933333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
92c0a8012f32f2d77627fdced3e59869ef77c9e5 | 279 | py | Python | uploader/admin.py | RishikaBhatia17/gdrive-to-commons | 3cda6d4c30d31cced21cc42a6b25876f593be55f | [
"Apache-2.0"
] | 6 | 2019-05-19T15:26:27.000Z | 2019-09-14T05:13:15.000Z | uploader/admin.py | abbasidaniyal/labs-tools-gdrive-to-commons | 9fdc5cd28e0753d72d8dc508b1aa3ae4b23368fd | [
"Apache-2.0"
] | 51 | 2020-01-11T11:10:08.000Z | 2021-06-10T18:00:04.000Z | uploader/admin.py | abbasidaniyal/labs-tools-gdrive-to-commons | 9fdc5cd28e0753d72d8dc508b1aa3ae4b23368fd | [
"Apache-2.0"
] | 14 | 2020-01-02T03:26:28.000Z | 2020-03-19T09:57:35.000Z | from django.contrib import admin
from uploader.models import FileUpload
@admin.register(FileUpload)
class FileUploadAdmin(admin.ModelAdmin):
list_display = ("username", "number_of_files", "uploaded_at")
readonly_fields = ("username", "number_of_files", "uploaded_at")
| 27.9 | 68 | 0.770609 | 33 | 279 | 6.272727 | 0.666667 | 0.135266 | 0.154589 | 0.202899 | 0.299517 | 0.299517 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114695 | 279 | 9 | 69 | 31 | 0.838057 | 0 | 0 | 0 | 0 | 0 | 0.243728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
92d2822c678a417bb5e287b5cce9773d36725ad4 | 26 | py | Python | bye_wiki/__init__.py | jwflory/metabrainz_wikibye | 6f3044a36b113cdaa28f5065b590d75130c60908 | [
"BSD-3-Clause"
] | 3 | 2016-10-29T16:26:00.000Z | 2018-07-22T23:34:50.000Z | bye_wiki/__init__.py | jwflory/metabrainz_wikibye | 6f3044a36b113cdaa28f5065b590d75130c60908 | [
"BSD-3-Clause"
] | 1 | 2022-01-24T18:11:37.000Z | 2022-01-24T18:11:37.000Z | bye_wiki/__init__.py | jwflory/metabrainz_wikibye | 6f3044a36b113cdaa28f5065b590d75130c60908 | [
"BSD-3-Clause"
] | null | null | null | __version__ = '0.0.3-dev'
| 13 | 25 | 0.653846 | 5 | 26 | 2.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.115385 | 26 | 1 | 26 | 26 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
92e3d64cb1ebcc6a5abf09e96fbc136a8fc63c05 | 91 | py | Python | seakylib/data/__init__.py | sseaky/seakylib | df646bcc2fd924ec4699554eb33eb5ed95cdb012 | [
"MIT"
] | 1 | 2020-11-10T03:30:45.000Z | 2020-11-10T03:30:45.000Z | seakylib/data/__init__.py | sseaky/seakylib | df646bcc2fd924ec4699554eb33eb5ed95cdb012 | [
"MIT"
] | null | null | null | seakylib/data/__init__.py | sseaky/seakylib | df646bcc2fd924ec4699554eb33eb5ed95cdb012 | [
"MIT"
] | 1 | 2020-11-10T03:30:47.000Z | 2020-11-10T03:30:47.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: Seaky
# @Date: 2019/11/6 14:00
| 15.166667 | 26 | 0.56044 | 15 | 91 | 3.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 0.186813 | 91 | 5 | 27 | 18.2 | 0.527027 | 0.901099 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
130d6f09dd9463d6deb29b89ff2f379c7727640f | 140 | py | Python | src/pylubridate/__init__.py | qiushiyan/pylubridate | f033798caafff574b7e7eedf368cb7bf023b97ba | [
"MIT"
] | null | null | null | src/pylubridate/__init__.py | qiushiyan/pylubridate | f033798caafff574b7e7eedf368cb7bf023b97ba | [
"MIT"
] | null | null | null | src/pylubridate/__init__.py | qiushiyan/pylubridate | f033798caafff574b7e7eedf368cb7bf023b97ba | [
"MIT"
] | null | null | null | # read version from installed package
from importlib.metadata import version
from .date import as_date
__version__ = version("pylubridate")
| 28 | 38 | 0.821429 | 18 | 140 | 6.111111 | 0.611111 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121429 | 140 | 4 | 39 | 35 | 0.894309 | 0.25 | 0 | 0 | 0 | 0 | 0.106796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
1342b27ab7e018c9d3a0b704e1d5860d673d5fee | 116 | py | Python | dataStructures/dynamicStack/t5.py | kaanguney/c_plus_plus | cc7c4d26184ea9dd86aec588aa8a07dbcd65b33a | [
"MIT"
] | null | null | null | dataStructures/dynamicStack/t5.py | kaanguney/c_plus_plus | cc7c4d26184ea9dd86aec588aa8a07dbcd65b33a | [
"MIT"
] | null | null | null | dataStructures/dynamicStack/t5.py | kaanguney/c_plus_plus | cc7c4d26184ea9dd86aec588aa8a07dbcd65b33a | [
"MIT"
] | null | null | null | if True:
while True:
for x in range(1,20):
else
l = | 23.2 | 32 | 0.293103 | 12 | 116 | 2.833333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 0.646552 | 116 | 5 | 33 | 23.2 | 0.756098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1349527330b6a981f20be4cdbbdd1d0bc1bd996e | 1,416 | py | Python | request.py | nalin-adhikari/python-playground | 7cefe5a09dba8a7299a6a031655e7d4a280d775a | [
"Apache-2.0"
] | null | null | null | request.py | nalin-adhikari/python-playground | 7cefe5a09dba8a7299a6a031655e7d4a280d775a | [
"Apache-2.0"
] | null | null | null | request.py | nalin-adhikari/python-playground | 7cefe5a09dba8a7299a6a031655e7d4a280d775a | [
"Apache-2.0"
] | null | null | null | import requests
def get_single_data():
url = 'https://jsonplaceholder.typicode.com/posts/1'
response = requests.get(url, None, headers={"Content-Type": "application/json"})
return response.json()
def get_all_data():
url = 'https://jsonplaceholder.typicode.com/posts'
response = requests.get(url, ... | 32.181818 | 95 | 0.658192 | 176 | 1,416 | 5.232955 | 0.215909 | 0.043431 | 0.124864 | 0.168295 | 0.747014 | 0.747014 | 0.747014 | 0.606949 | 0.606949 | 0.603692 | 0 | 0.003393 | 0.167373 | 1,416 | 43 | 96 | 32.930233 | 0.777778 | 0 | 0 | 0.59375 | 0 | 0.0625 | 0.387006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15625 | false | 0 | 0.03125 | 0 | 0.34375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1351b93c7ca69cd4792e3bca20d658b6465670d9 | 776 | py | Python | 2-time-series-forecasting/2-tsf-simple-rnn.py | MLStruckmann/tensorflow-templates | ca35a8f055929ee4ec552fa03737d808a0fe3491 | [
"MIT"
] | null | null | null | 2-time-series-forecasting/2-tsf-simple-rnn.py | MLStruckmann/tensorflow-templates | ca35a8f055929ee4ec552fa03737d808a0fe3491 | [
"MIT"
] | null | null | null | 2-time-series-forecasting/2-tsf-simple-rnn.py | MLStruckmann/tensorflow-templates | ca35a8f055929ee4ec552fa03737d808a0fe3491 | [
"MIT"
] | null | null | null | # Simple time series forecasting models
# Sequence to vector 1
model = keras.models.Sequential([
keras.layers.SimpleRNN(20, return_sequences=True, input_shape=[None, 1]),
keras.layers.SimpleRNN(20, return_sequences=True),
keras.layers.SimpleRNN(1)
])
# Sequence to vector 2
model = keras.models.Sequ... | 35.272727 | 81 | 0.73067 | 102 | 776 | 5.480392 | 0.303922 | 0.19678 | 0.250447 | 0.236136 | 0.665474 | 0.665474 | 0.665474 | 0.665474 | 0.665474 | 0.665474 | 0 | 0.034328 | 0.136598 | 776 | 22 | 82 | 35.272727 | 0.8 | 0.199742 | 0 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 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 | 4 |
13533a467efe295f69fd778eb99b41445227fdf9 | 239 | py | Python | bot/utils/__init__.py | hugovk/bot | 46d3f877b569a8a6db8a50fbd80ff49c90ba04cf | [
"MIT",
"BSD-3-Clause"
] | 1,003 | 2018-11-17T21:10:01.000Z | 2022-03-31T22:50:39.000Z | bot/utils/__init__.py | hugovk/bot | 46d3f877b569a8a6db8a50fbd80ff49c90ba04cf | [
"MIT",
"BSD-3-Clause"
] | 1,474 | 2018-11-17T10:18:14.000Z | 2022-03-31T18:01:39.000Z | bot/utils/__init__.py | hugovk/bot | 46d3f877b569a8a6db8a50fbd80ff49c90ba04cf | [
"MIT",
"BSD-3-Clause"
] | 771 | 2018-11-21T08:36:07.000Z | 2022-03-31T14:56:39.000Z | from bot.utils.helpers import CogABCMeta, find_nth_occurrence, has_lines, pad_base64
from bot.utils.services import send_to_paste_service
__all__ = ['CogABCMeta', 'find_nth_occurrence', 'has_lines', 'pad_base64', 'send_to_paste_service']
| 47.8 | 99 | 0.820084 | 35 | 239 | 5.085714 | 0.542857 | 0.078652 | 0.134831 | 0.303371 | 0.494382 | 0.494382 | 0.494382 | 0.494382 | 0 | 0 | 0 | 0.018182 | 0.079498 | 239 | 4 | 100 | 59.75 | 0.790909 | 0 | 0 | 0 | 0 | 0 | 0.288703 | 0.087866 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
13547bb6ac94bc0e657fb5345e5cd3d9d3c4ef39 | 625 | py | Python | modulo 1/aulas/4.1 - Bibliotecas + PyPI.py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null | modulo 1/aulas/4.1 - Bibliotecas + PyPI.py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null | modulo 1/aulas/4.1 - Bibliotecas + PyPI.py | GabrielBrotas/Python | 9441b6b86ff3cb7fa5921b508c484075adac08b3 | [
"MIT"
] | null | null | null | #PyPI sao os indices de pacotes extras (python package index)
#pode procurar novos pacotes por la de acordo com diversos filtros
#depois vai aparecer uma lamapada vermelha, clica nela e seleciona para instalar o pacote, automaticamente vai baixar
import emoji #para saber as funcoes do pacote so ir no PyPI e ver os da... | 39.0625 | 117 | 0.7824 | 102 | 625 | 4.77451 | 0.764706 | 0.020534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1712 | 625 | 15 | 118 | 41.666667 | 0.940154 | 0.8352 | 0 | 0 | 0 | 0 | 0.27957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 4 |
135742f7122e447c43df6a1100480c15500867f2 | 140 | py | Python | prob29_distinct_powers.py | ctlewitt/Project-Euler | e3016137f64efaaee524ae0349060c2b22512bf2 | [
"MIT"
] | null | null | null | prob29_distinct_powers.py | ctlewitt/Project-Euler | e3016137f64efaaee524ae0349060c2b22512bf2 | [
"MIT"
] | null | null | null | prob29_distinct_powers.py | ctlewitt/Project-Euler | e3016137f64efaaee524ae0349060c2b22512bf2 | [
"MIT"
] | null | null | null | MIN = 2
MAX = 100
powers = set()
for a in range(MIN, MAX+1):
for b in range(MIN, MAX+1):
powers.add(a ** b)
print len(powers) | 14 | 31 | 0.571429 | 27 | 140 | 2.962963 | 0.555556 | 0.175 | 0.25 | 0.325 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.271429 | 140 | 10 | 32 | 14 | 0.72549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.142857 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
135be5529ea8158e9b9b3edb7e0d81d9a4e16a9e | 2,894 | py | Python | machine/test_rotor.py | garybake/Enigma | 2151a491649e54881f5614e376682e3ac831ccbf | [
"MIT"
] | null | null | null | machine/test_rotor.py | garybake/Enigma | 2151a491649e54881f5614e376682e3ac831ccbf | [
"MIT"
] | null | null | null | machine/test_rotor.py | garybake/Enigma | 2151a491649e54881f5614e376682e3ac831ccbf | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import unittest
from rotor import Rotor
import map_set
class RotorTest(unittest.TestCase):
def setUp(self):
# mappi = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
self.mapping = 'WXYZABCDEFGHIJKLMNOPQRSTUV'
r = Rotor(key_order=self.mapping, start_state='A')
self.rtr = r
... | 30.463158 | 62 | 0.597443 | 376 | 2,894 | 4.449468 | 0.18617 | 0.322773 | 0.325164 | 0.21578 | 0.629408 | 0.419008 | 0.220562 | 0.108189 | 0.058577 | 0.058577 | 0 | 0.007313 | 0.243953 | 2,894 | 95 | 63 | 30.463158 | 0.757313 | 0.100207 | 0 | 0.306452 | 0 | 0 | 0.033141 | 0.010019 | 0 | 0 | 0 | 0 | 0.580645 | 1 | 0.080645 | false | 0 | 0.048387 | 0 | 0.145161 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
1387be2aeb6ac73ae6eb7ec603c1b3311bbb9b61 | 40,217 | py | Python | A_Heuristic2.py | Adam-shafey/gameAI | 2d8eefec359a3e48b49063bb938fa39e2df30dd4 | [
"MIT"
] | null | null | null | A_Heuristic2.py | Adam-shafey/gameAI | 2d8eefec359a3e48b49063bb938fa39e2df30dd4 | [
"MIT"
] | null | null | null | A_Heuristic2.py | Adam-shafey/gameAI | 2d8eefec359a3e48b49063bb938fa39e2df30dd4 | [
"MIT"
] | null | null | null | from queue import PriorityQueue
from queue import LifoQueue
import IO
import time
import Game
#each state of the grid, which is our array
class State(object):
def __init__(self, grid, parent, currentLocation, move = 0, start_grid = 0):
self.grid = grid
self.parent = parent
self.c... | 58.454942 | 125 | 0.475023 | 5,209 | 40,217 | 3.660971 | 0.056441 | 0.367488 | 0.091138 | 0.022496 | 0.799371 | 0.792921 | 0.725066 | 0.692239 | 0.678972 | 0.610855 | 0 | 0.073634 | 0.378994 | 40,217 | 688 | 126 | 58.454942 | 0.68993 | 0.079916 | 0 | 0.421793 | 0 | 0 | 0.007037 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015817 | false | 0 | 0.008787 | 0 | 0.057996 | 0.017575 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
138a10676c5fc65711df4ab2609e02be47ab3bd4 | 534 | py | Python | asyncio_apns/errors.py | etataurov/asyncio-apns | 9004ed5a607865266991180ba064e024a658e323 | [
"MIT"
] | 6 | 2016-07-16T03:43:42.000Z | 2019-02-14T10:31:49.000Z | asyncio_apns/errors.py | etataurov/asyncio-apns | 9004ed5a607865266991180ba064e024a658e323 | [
"MIT"
] | 17 | 2015-12-21T13:31:10.000Z | 2019-06-19T11:37:53.000Z | asyncio_apns/errors.py | etataurov/asyncio-apns | 9004ed5a607865266991180ba064e024a658e323 | [
"MIT"
] | 10 | 2016-03-21T14:46:55.000Z | 2019-06-05T06:01:52.000Z | class APNsError(Exception):
def __init__(self, status, identifier):
super().__init__()
self.status = status
self.identifier = identifier
def __repr__(self):
return "APNsError(status={}, identifier={})".format(
self.status, self.identifier)
def __str__(self):
... | 26.7 | 60 | 0.627341 | 52 | 534 | 5.980769 | 0.365385 | 0.102894 | 0.102894 | 0.128617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.250936 | 534 | 19 | 61 | 28.105263 | 0.7775 | 0.050562 | 0 | 0.142857 | 0 | 0 | 0.09505 | 0 | 0 | 0 | 0 | 0.052632 | 0 | 1 | 0.285714 | false | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
13a92c13fc531882b093aa9143f5bd73d4e4032f | 94 | py | Python | Resene naloge/euler97.py | CadezDavid/ProjectEuler | 9e11aa5782fb600c98eba9e04766b3bd79acea0e | [
"MIT"
] | null | null | null | Resene naloge/euler97.py | CadezDavid/ProjectEuler | 9e11aa5782fb600c98eba9e04766b3bd79acea0e | [
"MIT"
] | null | null | null | Resene naloge/euler97.py | CadezDavid/ProjectEuler | 9e11aa5782fb600c98eba9e04766b3bd79acea0e | [
"MIT"
] | null | null | null | i = 28433
for _ in range(1, 7830458):
i *= 2
i %= 10**10
i += 1
print(str(i)[-10:]) | 10.444444 | 27 | 0.478723 | 18 | 94 | 2.444444 | 0.611111 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318182 | 0.297872 | 94 | 9 | 28 | 10.444444 | 0.348485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
13db52292c301e3cbe25dbf69858a7a6619c3c73 | 35 | py | Python | example1.py | cs-fullstack-fall-2018/python-review-exercise-3-noobintheus | ad1983e2fafc14314b2eb33145de0c028d4b4d83 | [
"Apache-2.0"
] | null | null | null | example1.py | cs-fullstack-fall-2018/python-review-exercise-3-noobintheus | ad1983e2fafc14314b2eb33145de0c028d4b4d83 | [
"Apache-2.0"
] | null | null | null | example1.py | cs-fullstack-fall-2018/python-review-exercise-3-noobintheus | ad1983e2fafc14314b2eb33145de0c028d4b4d83 | [
"Apache-2.0"
] | null | null | null | for x in range(1,101):
print(x) | 17.5 | 22 | 0.6 | 8 | 35 | 2.625 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 0.228571 | 35 | 2 | 23 | 17.5 | 0.62963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
13e530ac9a3babb4f6c9ecf7362ffbaaf85ea042 | 1,351 | py | Python | src/bpp/migrations/0132_unique_rekord_id_kolejnosc.py | iplweb/django-bpp | 85f183a99d8d5027ae4772efac1e4a9f21675849 | [
"BSD-3-Clause"
] | 1 | 2017-04-27T19:50:02.000Z | 2017-04-27T19:50:02.000Z | src/bpp/migrations/0132_unique_rekord_id_kolejnosc.py | mpasternak/django-bpp | 434338821d5ad1aaee598f6327151aba0af66f5e | [
"BSD-3-Clause"
] | 41 | 2019-11-07T00:07:02.000Z | 2022-02-27T22:09:39.000Z | src/bpp/migrations/0132_unique_rekord_id_kolejnosc.py | iplweb/bpp | f027415cc3faf1ca79082bf7bacd4be35b1a6fdf | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.12 on 2018-04-30 16:54
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('bpp', '0131_liczba_cytowan'),
]
operations = [
migrations.RunSQL(
"ALT... | 36.513514 | 127 | 0.724648 | 154 | 1,351 | 5.928571 | 0.311688 | 0.118291 | 0.138007 | 0.226725 | 0.795181 | 0.75575 | 0.651698 | 0.651698 | 0.579409 | 0.447974 | 0 | 0.020794 | 0.216876 | 1,351 | 36 | 128 | 37.527778 | 0.842155 | 0.051073 | 0 | 0.391304 | 1 | 0 | 0.650508 | 0.326818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
13eb053fa9e1b739dcff0364ddcc355c4844b080 | 79 | py | Python | scripts/portal/260010601_out00.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 9 | 2021-04-26T11:59:29.000Z | 2021-12-20T13:15:27.000Z | scripts/portal/260010601_out00.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | null | null | null | scripts/portal/260010601_out00.py | Snewmy/swordie | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | [
"MIT"
] | 6 | 2021-07-14T06:32:05.000Z | 2022-02-06T02:32:56.000Z | # Overlooked Area (260010601) => Tent of the Entertainers
sm.warp(260010600, 1) | 39.5 | 57 | 0.759494 | 11 | 79 | 5.454545 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.275362 | 0.126582 | 79 | 2 | 58 | 39.5 | 0.594203 | 0.696203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
13f19eb22ffa2d474b513703c74f9956d0814a44 | 132 | py | Python | lab6/chapter9.py | sydneysmartin/csc121 | 6ef4d323f58f4177c46b5ea38db7bc95a06d865e | [
"CC0-1.0"
] | null | null | null | lab6/chapter9.py | sydneysmartin/csc121 | 6ef4d323f58f4177c46b5ea38db7bc95a06d865e | [
"CC0-1.0"
] | null | null | null | lab6/chapter9.py | sydneysmartin/csc121 | 6ef4d323f58f4177c46b5ea38db7bc95a06d865e | [
"CC0-1.0"
] | null | null | null | def square(x):
return x*x
def hypot(a, b):
x = square(a)
y = square(b)
return (x + y)**.5
c = hypot(3, 4)
print(c) | 13.2 | 22 | 0.507576 | 26 | 132 | 2.576923 | 0.5 | 0.208955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0.295455 | 132 | 10 | 23 | 13.2 | 0.688172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.125 | 0.5 | 0.125 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.